h5analysis.beamline_info.load_beamline
- h5analysis.beamline_info.load_beamline(config, file, key, average=True, norm=False, xoffset=None, xcoffset=None, yoffset=None, ycoffset=None, legend_item=None, twin_y=False)
Load beamline meta data.
- Parameters:
config (dict,) – h5 data configuration
file (string) – file name
key (string) – path to the meta data of interest
**kwargs –
- average: Boolean
determines if array of values or their average is reported
- norm: boolean
normalizes to [0,1]
- xoffset: list
fitting offset (x-stream)
- xcoffset: float
constant offset (x-stream)
- yoffset: list
fitting offset (y-stream)
- ycoffset: float
constant offset (y-stream)
- legend_item: string
Name for legend
- twin_y: boolean
supports a second y-axis on the right-hand side
- Returns:
data – dict with meta data
- Return type:
dict