fit_generic_contimuum PowerLaw1D error NonFiniteValueError
- Dominant language
- Python
- Stars
- 204
- Forks
- 134
- Avg merge
- 12h 55m
- Merged PRs (30d)
- 1
Description
specutils 1.8.0
astropy 5.1.0
python 3.10
macports install
----
when running the module from specutils.fitting fit_generic_continuum
using the model=PowerLaw1D
the code returns an error:
Exception has occurred: NonFiniteValueError
Objective function has encountered a non-finite value, this will cause the fit to fail!
Please remove non-finite values from your input data before fitting to avoid this error.
when changing the model to the default or Polynomial1D for instance there is no pb,
- the data used to produce the spectrum1D don't contain any NAN or other bizarre values.
Contributor guide
Research direction
Start with specutils.fitting.fit_generic_continuum and reproduce the failure using PowerLaw1D with the reported specutils 1.8.0, astropy 5.1.0, and Python 3.10 versions. Compare this path with the default and Polynomial1D models, and consider the issue resolved when valid input data no longer causes NonFiniteValueError in the PowerLaw1D case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100