ctdclient.model.dshipcaller module

class ctdclient.model.dshipcaller.DshipCaller(config)[source]

Bases: object

Fetches DSHIP information via API or UDP telegram and generates Seabird-specific XML from that.

generate_random_numbers()[source]

A dummy number generator for GUI testing purposes.

call_api(url=None, dict_of_samples=None)[source]

A collection of API calls according to the values in the dict_of_samples, which holds the names of the individual columns in the metadata header and their respective names in the API.

Parameters:
  • url (str | None)

  • dict_of_samples (dict | None)

  • timeout – (Default value = 0.1)

ctdclient.model.dshipcaller.get_station_log(cruise_id)[source]
Return type:

None | str

ctdclient.model.dshipcaller.get_ctd_last_event(station_log_json)[source]
Return type:

dict

ctdclient.model.dshipcaller.get_station_id(event_json)[source]
Return type:

str

ctdclient.model.dshipcaller.retrieve_station_and_event_info()[source]
Return type:

str | None