Skip to content

Commit

Permalink
Fix meta issue in multilayer_load_and_preprocess (#1094)
Browse files Browse the repository at this point in the history
* fix multilayer load samp length

* update meta info

---------

Co-authored-by: Michael McCrackan <mmccrack@login18.chn.perlmutter.nersc.gov>
Co-authored-by: Michael McCrackan <mmccrack@login23.chn.perlmutter.nersc.gov>
  • Loading branch information
3 people authored Jan 22, 2025
1 parent 6deb415 commit 46d26f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sotodlib/preprocess/preprocess_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,15 @@ def multilayer_load_and_preprocess(obs_id, configs_init, configs_proc,

if check_cfg_match(aman_cfgs_ref, meta_proc.preprocess['pcfg_ref'],
logger=logger):
aman = context_init.get_obs(meta_proc, no_signal=no_signal)

meta_init.restrict('dets', meta_proc.dets.vals)
aman = context_init.get_obs(meta_init, no_signal=no_signal)
logger.info("Running initial pipeline")
pipe_init.run(aman, aman.preprocess)

pipe_proc = Pipeline(configs_proc["process_pipe"], logger=logger)
logger.info("Running dependent pipeline")
proc_aman = context_proc.get_meta(obs_id, meta=meta_proc)
proc_aman = context_proc.get_meta(obs_id, meta=aman)

aman.preprocess.merge(proc_aman.preprocess)

Expand Down

0 comments on commit 46d26f0

Please sign in to comment.