Skip to content

Commit 37792a3

Browse files
committed
fix: don't try to access contacts if they are none
1 parent a03e716 commit 37792a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

LoopStructural/modelling/input/process_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,8 @@ def _update_feature_names(self, dataframe):
486486

487487
@property
488488
def contacts(self):
489+
if self._contacts is None:
490+
return None
489491
contacts = self._contacts.copy()
490492
if self._use_thickness:
491493
contacts["val"] = np.nan

0 commit comments

Comments
 (0)