Skip to content

Commit 20cdc39

Browse files
committed
Import from step_path only if attribute is present
1 parent 64483e7 commit 20cdc39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

parastell/magnet_coils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ def import_geom_cubit(self):
7676
if cubit_utils.initialized:
7777
first_vol_id += get_last_id("volume")
7878

79-
import_geom_to_cubit(self.step_path)
79+
if self.step_path:
80+
import_geom_to_cubit(self.step_path)
81+
else:
82+
import_geom_to_cubit(self.geometry_file)
83+
8084
self.cubit_volume_ids = self.volume_ids + first_vol_id
8185

8286
def merge_surfaces(self):

0 commit comments

Comments
 (0)