Skip to content

Commit

Permalink
Fix outdir being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
darafferty committed Nov 15, 2024
1 parent 0bcf7a6 commit 2e98a1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bdsf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,14 @@ def process_image(input, **kwargs):
else:
raise RuntimeError("File '" + input + "' not found.")

# Set logging options (must be done explicitly, as they are used before the
# Set logging and outdir options (must be done explicitly, as they are used before the
# kwargs are parsed in img.process())
if 'quiet' in kwargs:
img.opts.quiet = kwargs['quiet']
if 'debug' in kwargs:
img.opts.debug = kwargs['debug']
if 'outdir' in kwargs:
img.opts.outdir = kwargs['outdir']

# Now process it. Any kwargs specified by the user will
# override those read in from the parameter save file or dictionary.
Expand Down

0 comments on commit 2e98a1e

Please sign in to comment.