fitter
Master fitting and map making script.
You typically want to run the witcher command instead of this.
            deep_merge(a, b)
    Based on https://gist.github.com/angstwad/bf22d1822c38a92ec0a9?permalink_comment_id=3517209
Source code in witch/fitter.py
              470 471 472 473 474 475 476 477 478 479 480 481  |  | 
            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
              484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499  |  | 
            print_once(*args)
    Helper function to print only once when running with MPI. Only the rank 0 process will print.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                *args
             | 
            
                  Unpack[tuple[Any, ...]]
             | 
            
               Arguments to pass to print.  | 
            
                  ()
             | 
          
Source code in witch/fitter.py
              34 35 36 37 38 39 40 41 42 43 44 45 46  |  |