fitter
Master fitting and map making script. Docs will exist someday...
deep_merge(a, b)
Based on https://gist.github.com/angstwad/bf22d1822c38a92ec0a9?permalink_comment_id=3517209
Source code in witch/fitter.py
191 192 193 194 195 196 197 198 199 200 201 202 |
|
load_config(start_cfg, cfg_path)
We want to load a config and if it has the key "base", load that as well and merge them. We only want to take things from base that are not in the original config so we merge the original into the newly loaded one.
Source code in witch/fitter.py
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
|
print_once(*args)
Helper function to print only once when running with MPI. Only the rank 0 process will print.
Arguments:
*args: Arguments to pass to print.
Source code in witch/fitter.py
24 25 26 27 28 29 30 31 32 33 34 35 |
|