Skip to content

non-increasing time in Fornax model? #67

@mcolomerm

Description

@mcolomerm

I got this when running sntools for Fornax model:
sntools ${input} --format SNEWPY-Fornax_2021 --detector JUNO --distance 10 --verbose --randomseed $k --output ${output} --t AdiabaticMSW_NMO

"""
Traceback (most recent call last):
  File "/usr/lib64/python3.9/concurrent/futures/process.py", line 246, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/user/mcolomer/.local/lib/python3.9/site-packages/sntools/channel.py", line 42, in gen_evts
    event_rate = interpolate.pchip(flux.raw_times, raw_nevts)
  File "/user/mcolomer/.local/lib/python3.9/site-packages/scipy/interpolate/_cubic.py", line 234, in __init__
    x, _, y, axis, _ = prepare_input(x, y, axis)
  File "/user/mcolomer/.local/lib/python3.9/site-packages/scipy/interpolate/_cubic.py", line 61, in prepare_input
    raise ValueError("`x` must be strictly increasing sequence.")
ValueError: `x` must be strictly increasing sequence.
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/user/mcolomer/.local/bin/sntools", line 8, in <module>
    sys.exit(main())
  File "/user/mcolomer/.local/lib/python3.9/site-packages/sntools/genevts.py", line 47, in main
    events.extend(result.result())
  File "/usr/lib64/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/lib64/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
ValueError: `x` must be strictly increasing sequence.

It should not happen that times are non increasing.

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