-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Preprocess-tod does not work with only an obs_id passed in. Query is listed as optional, it does not appear to be optional 😂
>>> so-site-pipeline preprocess-tod --obs-id=obs_1741870288_satp1_1111111 20251215_satp1_configs/20251215_preprocess_satp1.yaml
Traceback (most recent call last):
File "/global/homes/k/kmharrin/.local/soconda/20250710_0.2.1/bin/so-site-pipeline", line 8, in <module>
sys.exit(main())
^^^^^^
File "/global/homes/k/kmharrin/.local/soconda/20250710_0.2.1/lib/python3.12/site-packages/sotodlib/site_pipeline/cli.py", line 121, in main
_main(**vars(args))
File "/global/homes/k/kmharrin/.local/soconda/20250710_0.2.1/lib/python3.12/site-packages/sotodlib/site_pipeline/preprocess_tod.py", line 430, in main
_main(executor=executor,
File "/global/homes/k/kmharrin/.local/soconda/20250710_0.2.1/lib/python3.12/site-packages/sotodlib/site_pipeline/preprocess_tod.py", line 340, in _main
obs_list = sp_util.get_obslist(context, query=query, obs_id=obs_id, min_ctime=min_ctime,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/global/homes/k/kmharrin/.local/soconda/20250710_0.2.1/lib/python3.12/site-packages/sotodlib/site_pipeline/util.py", line 381, in get_obslist
with open(query, "r") as fname:
^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
This error can be bypassed just by sending in --query= type=='obs'
Metadata
Metadata
Assignees
Labels
No labels