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: object

Methods

convert_unit

counts

Get the photon-excitation energy spectrum.

load

Load a scan with pickle.

norm

remove_steps

save

Save 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]

static load(filepath)

Load a scan with pickle.

Return type:

Scan

save(filepath)

Save a scan with pickle.

Return type:

None