Skip to content

Commit 0aa8dd8

Browse files
committed
Search for step_path attribute instead of accessing attribute directly
1 parent fac26e1 commit 0aa8dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parastell/magnet_coils.py

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

79-
if self.step_path:
79+
if hasattr(self, "step_path"):
8080
import_geom_to_cubit(self.step_path)
8181
else:
8282
import_geom_to_cubit(self.geometry_file)

0 commit comments

Comments
 (0)