Skip to content

Commit

Permalink
BUG: update precision in pandas output
Browse files Browse the repository at this point in the history
  • Loading branch information
jungheejung committed Sep 8, 2024
1 parent f5c2bc7 commit 3811cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacetop_prep/events/bidsify_fractional_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def parse_args():
events_sorted = events.sort_values(by='onset')
precision_dic = {'onset': 3, 'duration': 3}
events_sorted = events_sorted.round(precision_dic)
events = events.fillna("n/a")
events = events_sorted.fillna("n/a")
Path(beh_savedir).mkdir( parents=True, exist_ok=True )
events.to_csv(join(beh_savedir, f"{sub_bids}_{ses_bids}_task-fractional_acq-mb8_{run_bids}_events.tsv"), sep='\t', index=False)

Expand Down

0 comments on commit 3811cad

Please sign in to comment.