Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transsss filename issue in maxfilter #248

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions osl/maxfilter/maxfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ def run_maxfilter(infif, outfif, args, logfile_tag=''):

if ('tsss' in args) and args['tsss']:
outfif = outfif.replace('.fif', 'tsss.fif')
elif ('trans' in args) and args['trans']:
outfif = outfif.replace('.fif', 'trans.fif')
elif logfile_tag != '_trans':
outfif = outfif.replace('.fif', 'sss.fif')

Expand Down Expand Up @@ -498,8 +500,8 @@ def run_multistage_maxfilter(infif, outbase, args):
if ('trans' in args) and args['trans'] is not None:

infif = outfif # input is output from previous stage
outfif = outbase.format('trans.fif')
outlog = outbase.format('trans.log')
outfif = outbase.format('.fif')
outlog = outbase.format('.log')

if os.path.exists(outfif):
os.remove(outfif)
Expand Down Expand Up @@ -615,8 +617,8 @@ def run_cbu_3stage_maxfilter(infif, outbase, args):
# Stage 3 - Translate to default

infif = outfif # input is output from previous stage
outfif = outbase.format('trans.fif')
outlog = outbase.format('trans.log')
outfif = outbase.format('.fif')
outlog = outbase.format('.log')

if os.path.exists(outfif):
os.remove(outfif)
Expand Down
Loading