Commit c83af65fdedfa22985acf3a6d40fabe18c047602

Authored by eg7eg7
Committed by GitHub
1 parent 0ea8820a
Exists in master

changed iterator access (#232)

iteritems was removed from python3.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -421,7 +421,7 @@ def check_for_export(options, suffix='', remove_surfaces=False): @@ -421,7 +421,7 @@ def check_for_export(options, suffix='', remove_surfaces=False):
421 try: 421 try:
422 from invesalius.project import Project 422 from invesalius.project import Project
423 423
424 - for threshold_name, threshold_range in Project().presets.thresh_ct.iteritems(): 424 + for threshold_name, threshold_range in Project().presets.thresh_ct.items():
425 if isinstance(threshold_range[0], int): 425 if isinstance(threshold_range[0], int):
426 path_ = u'{}-{}-{}.stl'.format(options.export_to_all, suffix, threshold_name) 426 path_ = u'{}-{}-{}.stl'.format(options.export_to_all, suffix, threshold_name)
427 export(path_, threshold_range, remove_surface=True) 427 export(path_, threshold_range, remove_surface=True)