mease_elabftw.util

Functions

convert_datetime(metadata, date_name)

For pynwb all dates need to be of type datetime.datetime.

convert_weight(weight_str)

Takes a weight determines if its in g or kg and converts it into a kg float, so that the nwb_converter accepts it.

get_experiment(experiment_id)

Get the experiment corresponding to the given id through the elabapy Manager.

get_experiments()

Get all experiments accessible with the current token.

get_item(item_id)

get_manager()

Verify that a token is given and creates an elabapy Manager object.

handle_http_error(http_error[, experiment_id])

Unified error handling, for http and wrong id errors.