Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The test-morse-pdsp.bats test is failing #365

Open
brettviren opened this issue Jan 27, 2025 · 0 comments
Open

The test-morse-pdsp.bats test is failing #365

brettviren opened this issue Jan 27, 2025 · 0 comments

Comments

@brettviren
Copy link
Member

bats /winch/toolkit/test/test/test-morse-pdsp.bats
test-morse-pdsp.bats

dst does not exist depo-morse-args moving depo-morse-args-tmp
 ✓ morse gen depos
 ✓ morse run wct
 ✗ morse make plots
   (from function `check' in file test/wct-bats.sh, line 176,
    from function `run_idempotently' in file test/wct-bats.sh, line 240,
    in test file test/test/test-morse-pdsp.bats, line 38)
     `run_idempotently -s signal.npz -t peaks.json -- \' failed
   2025-01-27 16:54:59.276035421 [ I ] RUNNING: wirecell-gen morse-summary -o peaks.json signal.npz
   2025-01-27 16:54:59.903150101 [ I ] OUTPUT:
   Traceback (most recent call last):
     File "/winch/local/bin/wirecell-gen", line 33, in <module>
       sys.exit(load_entry_point('wirecell==0.0', 'console_scripts', 'wirecell-gen')())
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/winch/python/wirecell/gen/__main__.py", line 847, in main
       cli(obj=dict())
     File "/winch/local/lib/python3.11/site-packages/click/core.py", line 1161, in __call__
       return self.main(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/winch/local/lib/python3.11/site-packages/click/core.py", line 1082, in main
       rv = self.invoke(ctx)
            ^^^^^^^^^^^^^^^^
     File "/winch/local/lib/python3.11/site-packages/click/core.py", line 1697, in invoke
       return _process_result(sub_ctx.command.invoke(sub_ctx))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/winch/local/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
       return ctx.invoke(self.callback, **ctx.params)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/winch/local/lib/python3.11/site-packages/click/core.py", line 788, in invoke
       return __callback(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/winch/python/wirecell/gen/__main__.py", line 360, in morse_summary
       pms = frame_peaks(signal, channel_ranges)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/winch/python/wirecell/gen/morse.py", line 348, in frame_peaks
       ttpm = wave_peaks(tot_wave, plane)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/winch/python/wirecell/gen/morse.py", line 203, in wave_peaks
       peaks = [peaks[ind] for ind in which_peaks]
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/winch/python/wirecell/gen/morse.py", line 203, in <listcomp>
       peaks = [peaks[ind] for ind in which_peaks]
                ~~~~~^^^^^
   IndexError: index 0 is out of bounds for axis 0 with size 0

3 tests, 1 failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant