Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Jul 15, 2024
1 parent a112d29 commit 53733b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bidscoin/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ def check_runindices(session: Path) -> bool:
if not (pd.isna(scans_table.loc[scan, 'acq_time']) or pd.isna(scans_table.loc[prevscan, 'acq_time'])):
acq_time = datetime.datetime.fromisoformat(scans_table.loc[scan, 'acq_time'])
acq_prev = datetime.datetime.fromisoformat(scans_table.loc[prevscan, 'acq_time'])
if (acq_time - acq_prev).total_seconds() <= 0:
if (acq_time - acq_prev).total_seconds() < 0:
LOGGER.warning(f"Acquisition times do not increase with the run-indices. Please check `{scans_tsv}`")
return False

Expand Down

0 comments on commit 53733b4

Please sign in to comment.