ctdclient.model.bottles module¶
- class ctdclient.model.bottles.BottleClosingDepths(config)[source]¶
Bases:
UserDictWrites 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}
- Parameters:
config (ConfigurationFile)
- instantiate_bottle_info()[source]¶
Sets a default bottle layout according to the configuration file.
- check_bottle_data(bottle_data_table)[source]¶
Assures that are a maximum of two bottles are closed at the same depth.
Sea-Birds water carousel is physically to slow to support the guaranteed closing of more bottles. To enable the input of more bottles on the same depth, they get shifted by a user-definable constant time.
- Parameters:
bottle_data_table (
dict) – The bottle data information