cta-observatory / ctapipe

Low-level data processing pipeline software for CTAO or similar arrays of Imaging Atmospheric Cherenkov Telescopes
https://ctapipe.readthedocs.org
BSD 3-Clause "New" or "Revised" License
63 stars 267 forks source link

ctapipe-train-disp-reconstructor help fails and is missing example #2351

Closed kosack closed 1 year ago

kosack commented 1 year ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

ctapipe-train-disp-reconstructor --help

Expected behavior Help string is printed

Supporting information

The traceback is:

    fhelp = cls.class_get_trait_help(trait, helptext=fhelp).splitlines()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kkosack/miniconda3/envs/cta-v0.19/lib/python3.11/site-packages/traitlets/config/configurable.py", line 284, in class_get_trait_help
    helptext = "\n".join(wrap_paragraphs(helptext, 76))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kkosack/miniconda3/envs/cta-v0.19/lib/python3.11/site-packages/traitlets/utils/text.py", line 29, in wrap_paragraphs
    text = dedent(text).strip()
           ^^^^^^^^^^^^
  File "/Users/kkosack/miniconda3/envs/cta-v0.19/lib/python3.11/textwrap.py", line 435, in dedent
    text = _whitespace_only_re.sub('', text)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'tuple'

Likely a missing help string or something. Possibly non-text input in the help?