io
Utilities for reading and writing data to disk.
load_aman(obs_id, preprocess_cfg, dets, job, min_dets, logger, fp_flag=False, save=False)
Load and preprocess an observation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obs_id
|
str
|
The |
required |
preprocess_cfg
|
dict
|
The loaded preprocess configuration. |
required |
dets
|
dict
|
Detector selections dictionairy. Check your preprocess config to see what the minimum set of selections needed here are. |
required |
job
|
Job
|
The |
required |
min_dets
|
int
|
The minimum number of detectors allowed after preprocessing that we want.
If fewer than |
required |
logger
|
LoggerLike
|
Logger to log to when preprocessing.
Note that the log level will be set to |
required |
fp_flag
|
bool
|
If |
False
|
save
|
bool
|
If |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
aman |
Optional[AxisManager]
|
If we loaded and preprocessed successfully this is the loaded observation.
If something failed this is |
Source code in lat_beams/utils/io.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |