Skip to content

Commit

Permalink
added a check for n dimensional field in point_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
kzqureshi committed Apr 26, 2024
1 parent 8497dfa commit 2016596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discretisedfield/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def point_columns(self):

@point_columns.setter
def point_columns(self, val):
if len(val) != 3:
if len(val) != len(self._point_columns):
msg = f"Cannot change column names with a list of lenght {len(val)}."
raise ValueError(msg)

Expand Down

0 comments on commit 2016596

Please sign in to comment.