CORE-GATECH-GROUP / serpent-tools

A suite of parsers designed to make interacting with SERPENT output files simple and flawless
http://serpent-tools.readthedocs.io/en/latest/
MIT License
52 stars 33 forks source link

ENH Allow spectra to be normalized per unit lethargy, but not to a unit maximum #455

Closed drewejohnson closed 1 year ago

drewejohnson commented 3 years ago

Is your feature request related to a problem? Please describe. Sometimes it is useful to normalize spectra according to lethargy and not set the max value to be unity. This is particularly useful for comparing items over depletion (watching peaks shift and grow) or comparing different concepts.

Describe the solution you'd like Add a new keyword argument to spectrumPlot that controls if the spectra should be divided by the maximum value, e.g.,

det.spectrumPlot(normalize=True, unitMax=False)

or, if we also want to allow normalized such that the area under the curve is one, maybe a by="max" or by="area" or by=None could work.

Describe alternatives you've considered Doing it all by hand

Additional context N/A