Skip to content

Commit d660ffc

Browse files
authored
added missing method (#287)
1 parent f8b1beb commit d660ffc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/easyreflectometry/project.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,12 @@ def load_orso_file(self, path: Union[Path, str]) -> None:
268268
self._experiments[0].name = 'Experiment from ORSO'
269269
self._experiments[0].model = self.models[0]
270270
self._with_experiments = True
271-
272271
pass
272+
273+
def set_sample_from_orso(self, sample) -> None:
274+
model = Model(sample=sample)
275+
self.models = ModelCollection([model])
276+
273277
def load_new_experiment(self, path: Union[Path, str]) -> None:
274278
new_experiment = load_as_dataset(str(path))
275279
new_index = len(self._experiments)

0 commit comments

Comments
 (0)