From 17bd248e6a83206edae1e202b51b71177f8de2e2 Mon Sep 17 00:00:00 2001 From: Haadi Khan Date: Fri, 21 Jun 2024 18:51:24 -0400 Subject: [PATCH] Added get_model --- python/anyon_braiding_simulator/Simulator.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/anyon_braiding_simulator/Simulator.py b/python/anyon_braiding_simulator/Simulator.py index 1e8615a..250f9d6 100644 --- a/python/anyon_braiding_simulator/Simulator.py +++ b/python/anyon_braiding_simulator/Simulator.py @@ -36,6 +36,14 @@ def set_model(self, model: Model) -> None: """ self._model = model + def get_model(self) -> Model: + """ + Get the model for the simulator. + """ + if self._model is None: + raise ValueError('Model has not been set') + return self._model + def list_anyons(self) -> list: """ List the anyons currently in the simulator.