Skip to content

Commit

Permalink
able to set name
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed Jan 29, 2024
1 parent 5e5328b commit 6c41faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EasyReflectometry/sample/items/gradient_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def roughness(self, roughness: float) -> None:

# Class constructors
@classmethod
def default(cls, interface=None) -> GradientLayer:
def default(cls, name: str = 'Air-Deuterium', interface=None) -> GradientLayer:
"""
Default constructor for a gradient layer object. The default is air to deuterium.
Expand All @@ -105,7 +105,7 @@ def default(cls, interface=None) -> GradientLayer:
thickness=2.,
roughness=0.2,
discretisation_elements=10,
name='Air-Deuterium',
name=name,
interface=interface
)

Expand Down

0 comments on commit 6c41faa

Please sign in to comment.