agepy.spec.photons.BaseScan
- class BaseScan(data_files, anode, scan_var=None, raw='dld_rd#raw', time_per_step=None, roi=None, target_density=None, intensity_upstream=None, **norm)
Bases:
objectMethods
convert_unitGet the photon-excitation energy spectrum.
Load a scan with pickle.
normremove_stepsSave a scan with pickle.
transform_norm- counts(roi=None)
Get the photon-excitation energy spectrum.
- Parameters:
- roi: dict, optional
Ignore set region of interest and use the provided one instead.
- Returns:
Tuple[np.ndarray,np.ndarray,np.ndarray]The number of counts (normalized), the respective statistical uncertainties, and the exciting-photon energies.
- Return type:
Tuple[ndarray,ndarray,ndarray]
- save(filepath)
Save a scan with pickle.
- Return type:
None