sidewinder_spec package

Subpackages

Submodules

sidewinder_spec.nomad module

shed_sidewinder.nomad.gsas_header_subparser(string)[source]

Parse GSAS header into top level metadata

shed_sidewinder.nomad.parse(file_dir)[source]

Parse a folder full of GSAS and FullProf filesfrom the NOMAD beamline into an event stream

file_dir: str
The path to the folder containing the data
name: str
The name of the document
doc: dict
The event model document
shed_sidewinder.nomad.parse_bank_data(string)[source]

Parse the bank information from the GSAS file

sidewinder_spec.pal_xfel module

shed_sidewinder.pal_xfel.format_keys(*args)[source]
shed_sidewinder.pal_xfel.parse_hdf5(fn)[source]

Parse hdf5 file from the PAL-XFEL beamline into an event stream

fn: str
The path to the hdf5 file
name: str
The name of the document
doc: dict
The event model document

Module contents

shed_sidewinder.time_from_epoch(dt, epoch=datetime.datetime(1970, 1, 1, 0, 0))[source]