From 2fc9e4483873fd7a3ccd19c51e69cc845e234b3b Mon Sep 17 00:00:00 2001 From: rozyczko Date: Mon, 24 Nov 2025 14:02:20 +0100 Subject: [PATCH] added missing method --- src/easyreflectometry/project.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/easyreflectometry/project.py b/src/easyreflectometry/project.py index b2487bb2..e6c2cd3d 100644 --- a/src/easyreflectometry/project.py +++ b/src/easyreflectometry/project.py @@ -268,8 +268,12 @@ def load_orso_file(self, path: Union[Path, str]) -> None: self._experiments[0].name = 'Experiment from ORSO' self._experiments[0].model = self.models[0] self._with_experiments = True - pass + + def set_sample_from_orso(self, sample) -> None: + model = Model(sample=sample) + self.models = ModelCollection([model]) + def load_new_experiment(self, path: Union[Path, str]) -> None: new_experiment = load_as_dataset(str(path)) new_index = len(self._experiments)