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)