Skip to content

Commit

Permalink
add materials
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed Sep 30, 2024
1 parent e6fee4c commit b023f94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/easyreflectometry/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ def remove_material(self, index: int) -> None:

def default(self):
self.reset()
self._materials = MaterialCollection()
materials = MaterialCollection()
for material in materials:
self._materials.append(material)

layers = [
Layer(material=self._materials[0], thickness=0.0, roughness=0.0, name='Vacuum Layer'),
Layer(material=self._materials[1], thickness=100.0, roughness=3.0, name='Multi-layer'),
Expand Down

0 comments on commit b023f94

Please sign in to comment.