From 11446789d3ad555e62f341b6e43217a5bb34a015 Mon Sep 17 00:00:00 2001 From: Vladimir Kulagin <59147151+KulaginVladimir@users.noreply.github.com> Date: Tue, 28 Nov 2023 22:30:35 +0300 Subject: [PATCH] Update festim/exports/derived_quantities/point_value.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: RĂ©mi Delaporte-Mathurin <40028739+RemDelaporteMathurin@users.noreply.github.com> --- festim/exports/derived_quantities/point_value.py | 1 + 1 file changed, 1 insertion(+) diff --git a/festim/exports/derived_quantities/point_value.py b/festim/exports/derived_quantities/point_value.py index c1a0542d5..742616c6d 100644 --- a/festim/exports/derived_quantities/point_value.py +++ b/festim/exports/derived_quantities/point_value.py @@ -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