Package kenozooid :: Module dc

Module dc

source code

Dive computer functionality.
Functions
 
backup(drv_name, port, fout)
Backup dive computer data.
source code
 
convert(drv_name, fin, fout)
Convert binary dive computer data into UDDF.
source code
 
extract_dives(fin, fout)
Extract dives from dive computer dump data.
source code
 
create_dives(tg, equipment=None) source code
 
extract_gases(tc) source code
 
uniq_gases(tc) source code
 
cat_gd(fg, fd, equipment=None, dump=None) source code
Variables
  log = logging.getLogger('kenozooid.dc')
  RE_VERSION = re.compile(r' \d+\.\d+$')
Function Details

backup(drv_name, port, fout)

source code 
Backup dive computer data.
Parameters:
  • drv_name - Dive computer driver name.
  • port - Dive computer port.
  • fout - Output file.

convert(drv_name, fin, fout)

source code 
Convert binary dive computer data into UDDF.
Parameters:
  • drv_name - Dive computer driver name.
  • fin - Binary dive computer data file name.
  • fout - Output file.

extract_dives(fin, fout)

source code 
Extract dives from dive computer dump data.
Parameters:
  • fin - UDDF file with dive computer raw data.
  • fout - Output file.

create_dives(tg, equipment=None)

source code 
Decorators:
  • @kf.coroutine

extract_gases(tc)

source code 
Decorators:
  • @kf.coroutine

uniq_gases(tc)

source code 
Decorators:
  • @kf.coroutine