eblur / newdust

Holding place for major rewrite of eblur/dust code
BSD 2-Clause "Simplified" License
5 stars 5 forks source link

Custom models #12

Closed eblur closed 6 years ago

eblur commented 6 years ago

By running SingleGrainPop(..., custom=True) one can use SizeDist, Composition, and ScatModel objects as input.

If the scatm argument is a string, the SingleGrainPop object will be instantiated with the corresponding ScatModel set forth in newdust.grainpop.SCATMODELS. However, the user must provide a valid Sizedist and Composition object when custom=True. These arguments are used to construct the underlying GrainDist object. (SingleGrainPop is a sub-class of GrainDist)