reflectometry / refl1d

1-D reflectometry fitting
https://refl1d.readthedocs.io/
Other
17 stars 23 forks source link

Dataclass material refactor #159

Closed bmaranville closed 1 year ago

bmaranville commented 1 year ago

Refactor of Material class to a factory function, that outputs subclasses based on value of "fitby" argument, e.g.

m = Material("Pd", fitby="cell_volume")
# returns CellVolumeMaterial class instance