1. Spectrum¶
-
class
npat.
Spectrum
(filename=None, db=None)[source]¶ Spectrum is a class for fitting and plotting gamma ray data from High-Purity Germanium (HPGe) detectors.
…
Parameters: - filename : str
Path to .Spe file.
- db : str, optional
Path to sqlite database
Attributes: - fits : list
List of peaks (PeakFit class) found in spectrum fit.
- meta : dict
Metadata about spectrum.
- hist : np.ndarray
1D histogram of pulse amplitudes (energy).
Methods
plot(show=True, fit=True, saveas=None, zoom=None, logscale=True, grayscale=False, labels=False, square_fig=False) Plots the spectrum. Various options for plotting. save(*saveas) Functionality depends on filetype. summarize(printout=True, saveas=None) Prints and/or saves summary of peaks/isotopes. -
auto_calibrate
(guess=[], data=[], **param)[source]¶ Description
…
Parameters: - x : type
Description of parameter x.