h5analysis.beamlines.REIXS.LogLoader
- class h5analysis.beamlines.REIXS.LogLoader
Bases:
objectGenerate spreadsheet with meta data from h5 file.
Methods
append(column, scan, text)Append to logbook entry
export(filename)Export the created spreadsheet in csv format as log file.
filter(column, value)Replace logbook entry
load(config, filename, logbook[, ncols])Load meta data from h5 file.
replace(column, scan, text)Replace logbook entry
show([scans])Display the spreadsheet as pandas DataFrame **kwargs: optional Options: scans: int list - one or two entries determins the lower and upper bound of scan entries,upper not required NOTE: The export option will override scans option
- append(column, scan, text)
Append to logbook entry
- Parameters:
column (string) – Column title of the cell for which to append
scan (int) – Scan number of cell for which to append
text (string) – Text to append in selected cell
- export(filename)
Export the created spreadsheet in csv format as log file.
- Parameters:
filename (string) – file name of the created csv file
- filter(column, value)
Replace logbook entry
- Parameters:
column (string) – Column title of the cell to which replace
value (string) – Entry value to replace with condition - !,>,or less (== implied)
- load(config, filename, logbook, ncols=[])
Load meta data from h5 file.
- Parameters:
config (dict) – REIXS beamline endstation configuration
filename (string) – filename
logbook (dict) – Specify column configuration for specific REIXS endstation
**kwargs (optional) –
- Options:
- ncols: string list
determines which columns are ecluded in the logbook from columns dictionary
- replace(column, scan, text)
Replace logbook entry
- Parameters:
column (string) – Column title of the cell to which replace
scan (int) – Scan number of cell to which replace
text (string) – Text to replace current text in selected cell