Skip to content

Commit

Permalink
save stdout logs to log file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Dec 19, 2024
1 parent 95b2dd7 commit 076d0af
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions reg_chxr.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@
help='Remote modality',
default=''
)
parser.add_argument(
"--inNode",
help="perform in-node implicit parallelization in conjunction with --thread",
dest="inNode",
action="store_true",
default=False,
)
parser.add_argument(
"--thread",
help="use threading to branch in parallel",
dest="thread",
action="store_true",
default=False,
)
parser.add_argument('-V', '--version', action='version',
version=f'%(prog)s {__version__}')

Expand Down Expand Up @@ -140,6 +154,8 @@ def main(options: Namespace, inputdir: Path, outputdir: Path):
#
# Refer to the documentation for more options, examples, and advanced uses e.g.
# adding a progress bar and parallelism.
log_file = os.path.join(outputdir, 'terminal.log')
logger.add(log_file)
if not health_check(options): return

cube_cl = PACSClient(options.CUBEurl, options.CUBEuser, options.CUBEpassword)
Expand Down

0 comments on commit 076d0af

Please sign in to comment.