Skip to content

Commit

Permalink
Actually fix the thing
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Dec 30, 2022
1 parent 2338b21 commit 849956a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion civet/extraction/starting_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class SurfaceModel(RegularSurface['SurfaceModel']):
def get_model(cls, name: str) -> Optional['SurfaceModel']:
data_paths = MNI_DATAPATH.split(':')
possible_models = map(lambda b: Path(b) / 'surface-extraction' / name, data_paths)
actual_models = filter(None, possible_models)
actual_model_paths = filter(lambda p: p.is_file(), possible_models)
actual_models = map(cls, actual_model_paths)
return next(actual_models, None)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='pycivet',
version='0.1.1',
version='0.1.2',
description='Object-oriented CIVET bindings for Python',
long_description=readme,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 849956a

Please sign in to comment.