Skip to content

Commit 8cb4476

Browse files
authored
Merge pull request refnx#839 from andyfaff/orso
MAINT: SLD naming from orso file
2 parents a988a79 + 4365b1b commit 8cb4476

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

refnx/reflect/structure.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,10 +876,12 @@ def from_orso(cls, sample_model):
876876
mat = layer.material
877877
if mat.formula is not None:
878878
sld = MaterialSLD(
879-
mat.formula, density=mat.mass_density.magnitude
879+
mat.formula,
880+
density=mat.mass_density.magnitude,
881+
name=layer.original_name,
880882
)
881883
else:
882-
sld = SLD(mat.get_sld() * 1e6)
884+
sld = SLD(mat.get_sld() * 1e6, name=layer.original_name)
883885

884886
slab = Slab(
885887
layer.thickness.magnitude,

0 commit comments

Comments
 (0)