pwassist.io.catalog.NormIntFile#

class pwassist.io.catalog.NormIntFile(path, frame)[source]#

Bases: ResultsFile

Normalization integrals with complex values.

Identified by ‘file’ and ‘amplitude’ columns containing complex-valued normalization integral data.

Parameters:
  • path (Path)

  • frame (DataFrame)

frame: DataFrame#
classmethod from_path(path)[source]#

Create an instance of the NormIntFile from a path.

We need to ensure that the complex-valued entries are read correctly, so we override the base class method to handle this.

Note

This method reads the entire CSV file into memory, which may be

inefficient for large files. Use with caution.

Return type:

Self

Parameters:

path (Path)

classmethod identify(path)[source]#

Determine if this file is of this type. Override in subclasses.

Return type:

bool

Parameters:

path (Path)

classmethod matches(columns)#

Check if the required columns are present.

Return type:

bool

Parameters:

columns (Iterable[str])

path: Path#
required_columns: ClassVar[frozenset[str]] = frozenset({'amplitude', 'file'})#