From 736be41eabf0f150ad292c690dca18e94fa2fcc2 Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Mon, 16 Sep 2024 19:57:27 -0700 Subject: [PATCH] chore: arbitrary types allowed --- src/py/mat3ra/made/tools/calculate/calculators.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/py/mat3ra/made/tools/calculate/calculators.py b/src/py/mat3ra/made/tools/calculate/calculators.py index 3f6771c2..e39fcee3 100644 --- a/src/py/mat3ra/made/tools/calculate/calculators.py +++ b/src/py/mat3ra/made/tools/calculate/calculators.py @@ -131,6 +131,9 @@ class FixFilmRigidXY(BaseModel): Created following https://wiki.fysik.dtu.dk/ase/ase/constraints.html#making-your-own-constraint-class """ + class Config: + arbitrary_types_allowed = True + film_indices: List[int] = [] initial_positions: Optional[np.ndarray] = None reference_center: Optional[np.ndarray] = None