From 5d0287d0a10a46e5e3d12f79caece11f020cdc12 Mon Sep 17 00:00:00 2001 From: o_arnold Date: Fri, 16 Feb 2024 16:07:45 +0100 Subject: [PATCH] fixed import/export error for maps with no points --- pyceps/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyceps/cli.py b/pyceps/cli.py index b8615ca..ce71372 100755 --- a/pyceps/cli.py +++ b/pyceps/cli.py @@ -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 @@ -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)