pwassist.io.binning.BinBundle#

class pwassist.io.binning.BinBundle(kinematic_bin, bin_id, paths)[source]#

Bases: object

Contains set of ResultsFile DataFrames for a kinematic bin.

Parameters:
  • kinematic_bin (KinematicBin)

  • bin_id (str)

  • paths (dict[str, Path])

bin_id: str#
property bootstrap: BootstrapFile | None#
property correlation: CorrelationFile | None#
property covariance: CovarianceFile | None#
property data: DataFile#
property fit: FitFile#
get(file_type)[source]#

Get loaded ResultsFile for the given file type, or None if not found.

Return type:

ResultsFile | None

Parameters:

file_type (str | type[ResultsFile])

kinematic_bin: KinematicBin#
property norm_int: NormIntFile | None#
paths: dict[str, Path]#
property randomized: RandomizedFile | None#
unload(file_type=None)[source]#

Drop loaded DataFrame(s) after preprocessing to save memory.

Return type:

None

Parameters:

file_type (str | type[ResultsFile] | None)