Skip to content

Commit

Permalink
est all indicies
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed Nov 4, 2024
1 parent 2b91109 commit d0a1af1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/easyreflectometry/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def models(self) -> ModelCollection:
@models.setter
def models(self, models: ModelCollection) -> None:
self._replace_collection(models, self._models)
self._current_model_index = 0
# Use setter to update indicies for current model, assembly and layer
self.current_model_index = 0
self._materials.extend(self._get_materials_in_models())
for model in self._models:
model.interface = self._calculator
Expand Down

0 comments on commit d0a1af1

Please sign in to comment.