flasc.analysis.analysis_input.AnalysisInput

flasc.analysis.analysis_input.AnalysisInput#

class flasc.analysis.analysis_input.AnalysisInput(df_list_in: List[DataFrame | FlascDataFrame], df_names: List[str], num_blocks: int = 10, schema_overrides: dict | None = None)[source]#

Bases: object

AnalysisInput class.

This class holds the structured inputs for calculating energy ratios

Methods

get_df

Get the concatenated dataframe.

resample_energy_table

Use the block column of an energy table to resample the data.

Parameters:
  • df_list_in (List[pd.DataFrame | FlascDataFrame])

  • df_names (List[str])

  • num_blocks (int)

  • schema_overrides (dict)

get_df() DataFrame[source]#

Get the concatenated dataframe.

Returns:

The concatenated dataframe

Return type:

pl.DataFrame

resample_energy_table(perform_resample: bool = True) DataFrame[source]#

Use the block column of an energy table to resample the data.

Parameters:

perform_resample (bool) -- Boolean, if False returns original energy table. Defaults to True.

Returns:

A new energy table with (approximately)

the same number of rows as the original

Return type:

pl.DataFrame