Skip to content

ValueError when computing summary Catalog #38

@lukasfurtak

Description

@lukasfurtak

Hi Jacopo,

I get the following ValueError when running pyp_beagle --compute-summary on on a BEAGLE output directory:

Traceback (most recent call last):
  File "/home/angers1NS/furtak/miniconda3/envs/beagle/bin/pyp_beagle", line 11, in <module>
    sys.exit(main())
  File "/home/angers1NS/furtak/miniconda3/envs/beagle/lib/python2.7/site-packages/pyp_beagle/command_line.py", line 125, in main
    summary_catalogue.compute(file_list)
  File "/home/angers1NS/furtak/miniconda3/envs/beagle/lib/python2.7/site-packages/pyp_beagle/beagle_summary_catalogue.py", line 259, in compute
    d = self.compute_single(file, self.hdu_col)
  File "/home/angers1NS/furtak/miniconda3/envs/beagle/lib/python2.7/site-packages/pyp_beagle/beagle_summary_catalogue.py", line 167, in compute_single
    mean, median, interval = get1DInterval(par_values, probability, self.credible_intervals)
  File "/home/angers1NS/furtak/miniconda3/envs/beagle/lib/python2.7/site-packages/pyp_beagle/beagle_summary_catalogue.py", line 74, in get1DInterval
    low, high = f_interp([0.5*(1.-lev/100.), 1.-0.5*(1.-lev/100.)])
  File "/home/angers1NS/furtak/miniconda3/envs/beagle/lib/python2.7/site-packages/scipy/interpolate/polyint.py", line 79, in __call__
    y = self._evaluate(x)
  File "/home/angers1NS/furtak/miniconda3/envs/beagle/lib/python2.7/site-packages/scipy/interpolate/interpolate.py", line 664, in _evaluate
    below_bounds, above_bounds = self._check_bounds(x_new)
  File "/home/angers1NS/furtak/miniconda3/envs/beagle/lib/python2.7/site-packages/scipy/interpolate/interpolate.py", line 693, in _check_bounds
    raise ValueError("A value in x_new is below the interpolation "
ValueError: A value in x_new is below the interpolation range.

I use the same json-summary file as in issue #37 and it works perfectly fine for other BEAGLE-outputs obtained with the same beagle-parameter file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions