calib
Tools for mapping sources and groups to a detector type.
The current implementation tries to mimic the PSCalib source code from CalibFileFinder.py (https://github.com/lcls-psana/PSCalib/blob/master/src/CalibFileFinder.py).
Functions:
| Name | Description |
|---|---|
group_from_det_type |
str) -> str: Retrieve the group string |
source_from_det_info |
str, hutch: str) -> str: Retrieve the source string |
Exceptions:
group_from_det_type(det_type)
Retrieve the group string from the detector type.
Source code in lute/io/calib.py
187 188 189 190 191 192 193 194 | |
select_calib_file(calib_dir, run)
Select the calibration file from the calibration directory and run number.
Source code in lute/io/calib.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
source_from_det_info(det_type, hutch)
Retrieve the source string from the detector type and hutch.
Source code in lute/io/calib.py
197 198 199 200 201 202 203 204 205 206 207 208 209 | |