Skip to content

Commit dcfe456

Browse files
committed
add example config
1 parent 289d037 commit dcfe456

File tree

1 file changed

+166
-0
lines changed

1 file changed

+166
-0
lines changed
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# This file contains the default configuration for the flash loader.
2+
3+
core:
4+
# defines the loader
5+
loader: flash
6+
# Since this will run on maxwell most probably, we have a lot of cores at our disposal
7+
num_cores: 10
8+
# the beamline where experiment took place
9+
beamline: cfel
10+
# the ID number of the beamtime
11+
beamtime_id: 11019101
12+
# the year of the beamtime
13+
year: 2023
14+
# the instrument used
15+
instrument: hextof # hextof, wespe, etc
16+
17+
# The paths to the raw and parquet data directories. If these are not
18+
# provided, the loader will try to find the data based on year beamtimeID etc
19+
paths:
20+
# location of the raw data.
21+
raw: ""
22+
# location of the intermediate parquet files.
23+
processed: ""
24+
25+
# The beamtime directories for different DAQ systems.
26+
# (Not to be changed by user)
27+
beamtime_dir:
28+
pg2: "/asap3/flash/gpfs/pg2/"
29+
cfel: "/asap3/fs-flash-o/gpfs/hextof/"
30+
31+
32+
dataframe:
33+
daq: fl1user3 # DAQ system name to resolve filenames/paths
34+
ubid_offset: 5 # Offset correction to the pulseId
35+
forward_fill_iterations: 2 # Number of iterations to fill the pulseId forward
36+
split_sector_id_from_dld_time: True # Remove reserved bits for dldSectorID from dldTimeSteps column
37+
sector_id_reserved_bits: 3 # Bits reserved for dldSectorID in the dldTimeSteps column
38+
sector_delays: [0., 0., 0., 0., 0., 0., 0., 0.] # Sector delays
39+
40+
# Time and binning settings
41+
tof_binwidth: 2.0576131995767355E-11 # Base time-of-flight bin width in seconds
42+
tof_binning: 8 # Binning parameter for time-of-flight data
43+
44+
# Columns used for jitter correction
45+
index: index
46+
jitter_cols: [dldPosX, dldPosY, dldTimeSteps]
47+
formats: [per_file, per_train, per_electron]
48+
fill_formats: [per_train, per_file] # Channels with this format will be forward filled
49+
50+
# Column settings
51+
columns:
52+
x: dldPosX
53+
corrected_x: X
54+
kx: kx
55+
y: dldPosY
56+
corrected_y: Y
57+
ky: ky
58+
tof: dldTimeSteps
59+
tof_ns: dldTime
60+
corrected_tof: tm
61+
timestamp: timeStamp
62+
auxiliary: dldAux
63+
sector_id: dldSectorID
64+
delay: delayStage
65+
corrected_delay: pumpProbeTime
66+
67+
units:
68+
# These are the units of the columns
69+
dldPosX: 'step'
70+
dldPosY: 'step'
71+
dldTimeSteps: 'step'
72+
tof_voltage: 'V'
73+
extractorVoltage: 'V'
74+
extractorCurrent: 'A'
75+
cryoTemperature: 'K'
76+
sampleTemperature: 'K'
77+
dldTime: 'ns'
78+
delay: 'ps'
79+
timeStamp: 's'
80+
energy: 'eV'
81+
E: 'eV'
82+
kx: '1/A'
83+
ky: '1/A'
84+
85+
# The channels to load.
86+
# channels have the following structure:
87+
# <channelAlias>:
88+
# format: per_pulse/per_electron/per_train
89+
# index_key: the hdf5 index key
90+
# dataset_key: the hdf5 dataset key
91+
# slice: int to slice a multidimensional data along axis=1. If not defined, there is no slicing
92+
# dtype: the datatype of the data
93+
# subChannels: further aliases for if the data is multidimensional and needs to be split in different cols
94+
# used currently for the auxiliary channel
95+
# <subChannelAlias>:
96+
# slice: int to slice a multidimensional data along axis=1. Must be defined
97+
# dtype: the datatype of the data
98+
99+
channels:
100+
# The timestamp
101+
# timeStamp:
102+
# format: per_file
103+
# dataset_key: "/uncategorised/FLASH.DIAG/TIMINGINFO/TIME1.BUNCH_FIRST_INDEX.1/time"
104+
# event key
105+
numEvents:
106+
format: per_file
107+
dataset_key: /DLD/NumOfEvents
108+
# detector x position
109+
dldPosX:
110+
format: per_electron
111+
dataset_key: /DLD/DLD/xPos
112+
dtype: uint32
113+
114+
# detector y position
115+
dldPosY:
116+
format: per_electron
117+
dataset_key: /DLD/DLD/yPos
118+
dtype: uint32
119+
120+
# Detector time-of-flight channel
121+
# if split_sector_id_from_dld_time is set to True, This this will generate
122+
# also the dldSectorID channel
123+
dldTimeSteps:
124+
format: per_electron
125+
dataset_key: /DLD/DLD/times
126+
dtype: uint32
127+
128+
# The auxiliary channel has a special structure where the group further contains
129+
# a multidimensional structure so further aliases are defined below
130+
dldAux:
131+
format: per_train
132+
dataset_key: "/SlowData/hextof/dld/info/Aux"
133+
sub_channels:
134+
sampleBias:
135+
slice: 0
136+
dtype: float32
137+
tofVoltage:
138+
slice: 1
139+
dtype: float64
140+
extractorVoltage:
141+
slice: 2
142+
extractorCurrent:
143+
slice: 3
144+
cryoTemperature:
145+
slice: 4
146+
sampleTemperature:
147+
slice: 5
148+
dldTimeBinSize:
149+
slice: 15
150+
151+
vuRead:
152+
format: per_train
153+
dataset_key: /SlowData/hextof/logic/kmic1/Sample_VURead
154+
155+
156+
157+
# metadata collection from scicat
158+
# metadata:
159+
# scicat_url: <URL>
160+
# scicat_token: <TOKEN>
161+
162+
# The nexus collection routine shall be finalized soon for both instruments
163+
# nexus:
164+
# reader: "flash"
165+
# definition: "NXmpes"
166+
# input_files: ["NXmpes_config_HEXTOF_light.json"]

0 commit comments

Comments
 (0)