Package kenozooid :: Module data

Module data

source code

Functions
 
ntuple(name, fields)
Create a named tuple with all fields set to None by default.
source code
 
gas(o2, he, depth=0)
Convert oxygen and helium values into Gas data record with id and name.
source code
 
sort_dives(dives)
Sort dives by dive datetime.
source code
 
uniq_dives(dives)
Remove duplicated dives from sorted iterator of dives.
source code
Variables
  Dive = ntuple('Dive', 'number datetime depth duration temp avg...
  Sample = ntuple('Sample', 'depth time temp setpoint setpointby...
  Gas = ntuple('Gas', 'id name o2 he depth')
  BinaryData = ntuple('BinaryData', 'datetime data')
Function Details

ntuple(name, fields)

source code 
Create a named tuple with all fields set to None by default.
Parameters:
  • name - Name of tuple.
  • fields - String containing space separated list of field names.

Variables Details

Dive

Value:
ntuple('Dive', 'number datetime depth duration temp avg_depth mode pro\
file' ' equipment')

Sample

Value:
ntuple('Sample', 'depth time temp setpoint setpointby' ' deco_time dec\
o_depth alarm gas')