Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Nov 4, 2024
1 parent 24a1bcf commit 527d97b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bidscoin/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ def eventstable(self) -> pd.DataFrame:
if self.time.get('start'):
start = pd.Series([True] * len(df))
for column, value in self.time['start'].items():
start &= self.logtable[column].astype(str) == str(value)
start &= (self.logtable[column].astype(str) == str(value)).values
if start.any():
df['onset'] = df['onset'] - df['onset'][start].iloc[0] # Take the time of the first occurrence as zero
LOGGER.bcdebug(f"Reseting clock offset of: {df['onset'][start.values].iloc[0]}")

Check failure on line 120 in bidscoin/bids.py

View workflow job for this annotation

GitHub Actions / Check for spelling errors

Reseting ==> Resetting
df['onset'] = df['onset'] - df['onset'][start.values].iloc[0] # Take the time of the first occurrence as zero

# Loop over the row groups to filter/edit the rows
rows = pd.Series([len(self.rows) == 0] * len(df)).astype(bool) # Boolean series with True values if no row expressions were specified
Expand Down

0 comments on commit 527d97b

Please sign in to comment.