eblur / pyxsis

Python code for manipulating high resolution X-ray spectra
GNU Lesser General Public License v3.0
9 stars 1 forks source link

Binning #6

Closed eblur closed 7 years ago

eblur commented 7 years ago

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.