question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

warning in doc build: The fit may be unsuccessful (modeling tied constraints)

See original GitHub issue

Description

I noticed in the doc build for #11367 it failed due to a likely unrelated warning coming from the modeling package:

/home/docs/checkouts/readthedocs.org/user_builds/astropy/envs/11367/lib/python3.8/site-packages/scipy/optimize/optimize.py:282: RuntimeWarning: Values in x were outside bounds during a minimize step, clipping to bounds
  warnings.warn("Values in x were outside bounds during a "
/home/docs/checkouts/readthedocs.org/user_builds/astropy/envs/11367/lib/python3.8/site-packages/astropy/modeling/fitting.py:1166: AstropyUserWarning: The fit may be unsuccessful; check fit_info['message'] for more information.
  warnings.warn("The fit may be unsuccessful; check "

I thought it might be a fluke, but locally I get the same warning, as well as

/home/embray/src/astropy/astropy/astropy/timeseries/__init__.py:docstring of astropy.timeseries.BoxLeastSquaresResults.popitem:: WARNING: py:class reference target not found: (k, v), remove and return some (key, value) pair as a

There is something fishy going on here.

System Details

Linux-5.4.0-65-generic-x86_64-with-Ubuntu-18.04-bionic Python 3.7.5 (default, Nov 7 2019, 10:50:52) [GCC 8.3.0] Numpy 1.19.4 astropy 4.3.dev644+gbb12bf9b2 Scipy 1.5.4 Matplotlib 3.3.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
saimncommented, Dec 16, 2021

Putting a traceback.print_stack() in the did not parse as fits unit unit warning confirms that those uncatched warnings come from the plots (matplotlib.sphinxext.plot_directive).

0reactions
pllimcommented, Jan 26, 2022

@dhomeier fixed the existing warnings in #12788 . Hopefully we are more vigilant going forward so they don’t creep back in. Thanks, Derek!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for astropy.modeling.fitting
[docs]class ModelLinearityError(ModelsError): """Raised when a non-linear model is passed to a linear fitter.""" class UnsupportedConstraintError(ModelsError, ...
Read more >
Runtime warnings and convergence problems - Stan
In most cases the warnings actually indicate important problems with your model. This does not mean that every time you see a warning...
Read more >
Edge TPU Compiler - Coral.ai
In this case, cache space is first allocated to model A's data (as much as can fit). If space remains after that, cache...
Read more >
Troubleshoot Dataflow errors - Google Cloud
This error occurs if your job's graph size exceeds 10 MB. Certain conditions in your pipeline can cause the job graph to exceed...
Read more >
CRAN - Package 'survival'
inherently non-parametric; a fit of the model will normally be followed ... The check for tied survival times can fail due to floating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found