Skip to content

Commit

Permalink
Merge pull request #34 from alexpron/shanoir-d-issue#31
Browse files Browse the repository at this point in the history
Adding a shanoir_downloader_logs directory in shanoir2bids
  • Loading branch information
quentinduche authored Dec 6, 2024
2 parents e1b0d65 + c5ed780 commit 659a4a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shanoir2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,10 @@ def set_log_filename(self):
curr_time.minute,
curr_time.second,
)
self.log_fn = opj(self.dl_dir, basename)
dir_log = opj(self.dl_dir, 'shanoir_downloader_logs')
if not ope(dir_log):
Path(dir_log).mkdir(parents=True, exist_ok=True)
self.log_fn = opj(self.dl_dir, 'shanoir_downloader_logs', basename)

def toggle_longitudinal_version(self):
self.longitudinal = True
Expand Down

0 comments on commit 659a4a0

Please sign in to comment.