Skip to content

preprocess-tod cannot accept just an obs-id #1500

@kmharrington

Description

@kmharrington

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions