From 389bf301e81958c5a94d443ef54a87cefea25798 Mon Sep 17 00:00:00 2001 From: Richard Gerum <14153051+rgerum@users.noreply.github.com> Date: Mon, 18 Dec 2023 17:03:05 -0500 Subject: [PATCH] SemiAffineFiberMaterial accept also "None" as a string --- saenopy/materials.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/saenopy/materials.py b/saenopy/materials.py index 2e1f48b..e310693 100644 --- a/saenopy/materials.py +++ b/saenopy/materials.py @@ -108,6 +108,12 @@ class SemiAffineFiberMaterial(Material, Saveable): def __init__(self, k, d_0=None, lambda_s=None, d_s=None): super().__init__() + if d_0 == "None": + d_0 = None + if lambda_s == "None": + lambda_s = None + if d_s == "None": + d_s = None # parameters self.k = k self.d_0 = d_0 if d_0 is not None and d_0 >= 0 else None