hexrd.config.dumper module
- class hexrd.config.dumper.NumPyIncludeDumper(stream, **kwargs)[source]
Bases:
DumperA yaml.Dumper implementation that will dump numpy.ndarray’s. The arrays are saved using numpy.save(…) in path generate from the values path in the YAML document, relative to the location of the YAML document. For example
- “foo”:
“bar”: ndarray
The ndarray would be saved in foo/bar.npy.
- yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.represent_none>, <class 'str'>: <function SafeRepresenter.represent_str>, <class 'bytes'>: <function SafeRepresenter.represent_binary>, <class 'bool'>: <function SafeRepresenter.represent_bool>, <class 'int'>: <function SafeRepresenter.represent_int>, <class 'float'>: <function SafeRepresenter.represent_float>, <class 'list'>: <function SafeRepresenter.represent_list>, <class 'tuple'>: <function Representer.represent_tuple>, <class 'dict'>: <function SafeRepresenter.represent_dict>, <class 'set'>: <function SafeRepresenter.represent_set>, <class 'datetime.date'>: <function SafeRepresenter.represent_date>, <class 'datetime.datetime'>: <function SafeRepresenter.represent_datetime>, None: <function SafeRepresenter.represent_undefined>, <class 'complex'>: <function Representer.represent_complex>, <class 'collections.OrderedDict'>: <function Representer.represent_ordered_dict>, <class 'function'>: <function Representer.represent_name>, <class 'builtin_function_or_method'>: <function Representer.represent_name>, <class 'module'>: <function Representer.represent_module>, <class 'hexrd.preprocess.profiles.HexrdPPScript_Arguments'>: <bound method YAMLObject.to_yaml of <class 'hexrd.preprocess.profiles.HexrdPPScript_Arguments'>>, <class 'hexrd.preprocess.profiles.Eiger_Arguments'>: <bound method YAMLObject.to_yaml of <class 'hexrd.preprocess.profiles.Eiger_Arguments'>>, <class 'hexrd.preprocess.profiles.Dexelas_Arguments'>: <bound method YAMLObject.to_yaml of <class 'hexrd.preprocess.profiles.Dexelas_Arguments'>>, <class 'numpy.ndarray'>: <function NumPyIncludeDumper.ndarray_representer>}