Skip to content

Commit

Permalink
Update festim/exports/derived_quantities/point_value.py
Browse files Browse the repository at this point in the history
Co-authored-by: Rémi Delaporte-Mathurin <[email protected]>
  • Loading branch information
KulaginVladimir and RemDelaporteMathurin authored Nov 28, 2023
1 parent 6f77e56 commit 1144678
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions festim/exports/derived_quantities/point_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class PointValue(DerivedQuantity):

def __init__(self, field: str or int, x: int or float or list) -> None:
super().__init__(field)
# make sure x is an iterable
if not hasattr(x, "__iter__"):
x = [x]
self.x = x
Expand Down

0 comments on commit 1144678

Please sign in to comment.