Skip to content

Commit 20c87c3

Browse files
committed
Minor fix
1 parent 07b9266 commit 20c87c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bidscoin/bidsapps/slicereport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def slicer_append(inputimage: Path, operations: str, outlineimage: Path, mainopt
130130
jt.outputPath = f"{os.getenv('HOSTNAME')}:{workdir if DEBUG else tempfile.gettempdir()}/{jt.jobName}.out"
131131
LOGGER.bcdebug(f"nativeSpecification: {cluster} -> {jt.nativeSpecification}")
132132
JOBIDS.append(pbatch.runJob(jt))
133-
pbatch.deleteJobTemplate(jt)
134133
LOGGER.info(f"Your '{jt.jobName}' job has been submitted with ID: {JOBIDS[-1]}")
134+
pbatch.deleteJobTemplate(jt)
135135

136136
else:
137137
process = subprocess.run(command, shell=True, capture_output=True, text=True)
@@ -247,7 +247,7 @@ def slicereport(bidsfolder: str, pattern: str, outlinepattern: str, outlineimage
247247
if not images:
248248
LOGGER.warning(f"Could not find images using: {session.relative_to(bidsdir)}/{pattern}")
249249
continue
250-
LOGGER.info(f"Processing {len(images)} images in: {session.relative_to(bidsdir)}")
250+
LOGGER.info(f"Processing {len(images)} image(s) in: {session.relative_to(bidsdir)}")
251251
outlineimages = [''] * len(images)
252252
if outlinepattern:
253253
outlinesession = outlinedir/session.relative_to(bidsdir)

0 commit comments

Comments
 (0)