Skip to content

Commit

Permalink
Fix output name
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Mar 13, 2022
1 parent 01c68f6 commit 219fad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='pl-surfdisterr',
version='1.0.0',
version='1.1.0',
description=' Distance error of a .obj mask mesh to a .mnc volume.',
long_description=readme,
long_description_content_type='text/markdown',
Expand Down
8 changes: 2 additions & 6 deletions surfdisterr.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,10 @@ def main(options: Namespace, inputdir: Path, outputdir: Path):

logger.debug('Discovering input files...')
subjects = [
Subject(mask, output_dir, output_dir / Path(mask.name).with_suffix(options.chamfer_suffix))
for mask, output_dir in PathMapper(inputdir, outputdir, glob=options.mask, suffix='')
Subject(mask, in_output.parent, in_output.parent / Path(mask.name).with_suffix(options.chamfer_suffix))
for mask, in_output in PathMapper(inputdir, outputdir, glob=options.mask, suffix='')
]

logger.debug('Creating output directories...')
for subject in subjects:
subject.output_dir.mkdir(parents=True)

nproc = len(os.sched_getaffinity(0))
logger.debug('Using {} threads.', nproc)
with ThreadPoolExecutor(max_workers=nproc) as pool:
Expand Down

0 comments on commit 219fad4

Please sign in to comment.