biophysics_fittingexploration_from_seedpointRW_analysisrobust_read_pickle

robust_read_pickle

biophysics_fitting.exploration_from_seedpoint.RW_analysis.robust_read_pickle(path)

Read a pickled dataframe. If it cannot be read, still return a dataframe, containing an error as content. Useful for when you don’t want your code to error during some large-scale analysis.

Parameters:

path (str) – path to the pickled dataframe

Returns:

the pickled DataFrame if reading was succesful, a pd.Series otherwise. Both contain the key ‘init_error’, specifying whether or not the read was succesful.

Return type:

pd.DataFrame | pd.Series