Main

Modules for particular experiments and general functions.

physicslab.experiment.UNITS = 'units'

pandas.Dataframe.attrs tag.

physicslab.experiment.process(data_list: list, by_module: module, **kwargs)pandas.core.frame.DataFrame[source]

Genereal process function calling appropriate process() function from selected experiment module.

Include units attribute.

Parameters
  • data_list (list(pandas.DataFrame)) – List of measurements, which are passed to the appropriate process() function

  • by_module (experiment submodule) – Submodule of experiment by which the individual measurements are to be processed

  • kwargs – Additional keyword arguments are forwarded to by_module.process() function

Returns

Collection of results indexed by measurement’s name

Return type

pandas.DataFrame

physicslab.experiment.print_(df: Union[pandas.core.frame.DataFrame, pandas.core.series.Series])None[source]

Print the data including units row if available.

Does not change the input DataFrame.
If Series is supplied, it’s printed in the DataFrame format.
Parameters

df (pandas.DataFrame or pandas.Series) – Data to be printed