Package bmrblib :: Module misc
[hide private]
[frames] | no frames]

Module misc

source code

Functions for manipulating NMR-STAR dictionary data.

This file is part of the BMRB library.

Functions [hide private]
 
no_missing(data, name)
Check that there are no None values in the data.
source code
 
translate(data, format='str', reverse=False)
Translate all values back-and-forth between Python structures and NMR-STAR strings.
source code
Variables [hide private]
  __package__ = 'bmrblib'

Imports: ndarray, warn


Function Details [hide private]

no_missing(data, name)

source code 

Check that there are no None values in the data.

Parameters:
  • data (anything) - The data to check.
  • name (str) - The name associated with the data.

translate(data, format='str', reverse=False)

source code 

Translate all values back-and-forth between Python structures and NMR-STAR strings.

Parameters:
  • data (anything) - The data to translate.
  • format (str) - The format to convert to. This can be 'str', 'int', or 'float'.