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

Need to investigate and possibly fix warnings generated during tests #139

Open
samaloney opened this issue Feb 20, 2024 · 0 comments
Open

Comments

@samaloney
Copy link
Collaborator

Describe the bug

I had to add the following to the pytest config to get the tests to pass:

sunkit-spex/setup.cfg

Lines 64 to 80 in 2257afb

filterwarnings =
error
# https://github.com/pytest-dev/pytest-cov/issues/557
# It was fixed and released but it does not seem to be fixed
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
# Raised by sunpy.coordinates.transformations and will be removed in sunpy 6.1
ignore:.*module is deprecated, as it was designed for internal use
# https://github.com/pandas-dev/pandas/issues/54466
# Should stop when pandas 3.0.0 is released
ignore:(?s).*Pyarrow will become a required dependency of pandas:DeprecationWarning
# TODO review and fix just getting test running
ignore:numpy.ndarray size changed.*:RuntimeWarning
ignore:Some input energy values outside valid range.*:UserWarning
ignore:invalid value encountered in.*:RuntimeWarning
ignore:divide by zero encountered in.*:RuntimeWarning
ignore:The truth value of an empty array is ambiguous..*:DeprecationWarning
ignore:LinAlgError when calculating the hessian. Errors may not be calculated.:UserWarning

Need to remove these one by one and check if can really "safely ignore" or need to update the code.

To Reproduce

No response

Screenshots

No response

System Details

No response

Installation method

No response

@samaloney samaloney changed the title Need to ivnvetigage and possibly fix warnings generated during tests Need to investigate and possibly fix warnings generated during tests Feb 20, 2024
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