Skip to content

Commit

Permalink
fixed import/export error for maps with no points
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRobsAT committed Feb 16, 2024
1 parent 0bd5168 commit 5d0287d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyceps/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ def execute_commands(args):
logger.warning('a valid study root is necessary to import maps!')
else:
study.import_maps(study.mapNames)
# import lesion data
for map_name in import_maps:
# import lesion data for all loaded maps
for map_name in study.maps.keys():
study.maps[map_name].import_lesions(directory=None)
data_changed = True

Expand All @@ -433,7 +433,7 @@ def execute_commands(args):

if args.convert:
if args.convert.lower() == 'all':
export_maps += study.mapNames
export_maps += study.maps.keys()
else:
export_maps.append(args.convert)

Expand Down

0 comments on commit 5d0287d

Please sign in to comment.