Skip to content

Commit

Permalink
save figure with label name
Browse files Browse the repository at this point in the history
  • Loading branch information
mayofaulkner committed Oct 10, 2023
1 parent 2a66a13 commit 04733ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibllib/io/extractors/video_motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,8 @@ def process(self):

if self.upload:
fig = self.plot_with_behavior() if self.behavior else self.plot_without_behavior()
save_fig_path = Path(self.session_path.joinpath('snapshot', 'video', 'video_wheel_alignment.png'))
save_fig_path = Path(self.session_path.joinpath('snapshot', 'video',
f'video_wheel_alignment_{self.label}.png'))
save_fig_path.parent.mkdir(exist_ok=True, parents=True)
fig.savefig(save_fig_path)
snp = ReportSnapshot(self.session_path, self.eid, content_type='session', one=self.one)
Expand Down

0 comments on commit 04733ac

Please sign in to comment.