Wrote binspectrum.Spectrum class and added a notice_values method to it. The Spectrum.bin_counts method returns bin_lo, bin_hi, bin_mid, and counts for noticed values only (in the specified unit).
Also modified plot.py functions to use Spectrum.bin_counts only if it is a binspectrum.Spectrum object.
Wrote
binspectrum.Spectrum
class and added anotice_values
method to it. TheSpectrum.bin_counts
method returns bin_lo, bin_hi, bin_mid, and counts for noticed values only (in the specified unit).Also modified
plot.py
functions to useSpectrum.bin_counts
only if it is abinspectrum.Spectrum
object.