ctdclient.model.bottles module

class ctdclient.model.bottles.BottleClosingDepths(config)[source]

Bases: UserDict

Writes the pressure values one wants to close the bottles to the Seasave.psa in the required format. The class is instantiated with a default bottle layout which is set in the configuration file. To apply a closing setup, update_bottle_information() must be called with a dict of the following format:

{BottleID: pressure value as difference from the air pressure,
[str]: [str],

1: 4, 2: 6, 6: Bo}

instantiate_bottle_info()[source]

Sets a default bottle layout according to the configuration file.