RAVE
|
Public Member Functions | |
__init__ (self, configfile=None) | |
parse_config (self, configfile) | |
parse_float_tuple (self, values) | |
parse_int_tuple (self, values) | |
jsonmap_to_volumecfg (self, config) | |
jsonmap_to_coordinatecfg (self, config) | |
copy_volume (self, volume, source) | |
create (self, volume, nod=None) | |
Public Attributes | |
float | _coordinatecfg = c.lon * math.pi / 180.0 |
Protected Attributes | |
_configfile = configfile | |
_volumeconfig = self._volumeconfig[nod] | |
_coordinatecfg = self.parse_config(self._configfile) | |
Support for creating static cluttermaps from a json configuration file. The format of the json file should be according to acqva_static.json.
Lib.acqva_cluttermap_generator.acqva_cluttermap_generator.jsonmap_to_coordinatecfg | ( | self, | |
config ) |
Translates a json map according to format definition into a structure of objects.. :config: a json structure according to spec :return: the coordinate cfg :throws: Exception if there are problems with configuration
Lib.acqva_cluttermap_generator.acqva_cluttermap_generator.jsonmap_to_volumecfg | ( | self, | |
config ) |
Translates a json map according to format definition into a structure of objects.. :config: a json structure according to spec :return: the object mapping :throws: Exception if there are problems with configuration
Lib.acqva_cluttermap_generator.acqva_cluttermap_generator.parse_config | ( | self, | |
configfile ) |
Loads and validates the acqva static cluttermap definition. :param configfile: The file to load :return: the config on success :throws: Exception if configuration not according to allowed format.