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

Address warnings in tox tests #124

Merged
merged 12 commits into from
Mar 8, 2023
Merged

Address warnings in tox tests #124

merged 12 commits into from
Mar 8, 2023

Conversation

mgerbino
Copy link
Collaborator

@mgerbino mgerbino commented Mar 3, 2023

Renamed TestLike class in test_ccl.py to address warning:
[cannot collect test class 'TestLike' because it has a __init__ constructor (from: Login.py)](https://stackoverflow.com/questions/62460557/cannot-collect-test-class-testmain-because-it-has-a-init-constructor-from)

@mgerbino mgerbino linked an issue Mar 3, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2023

Codecov Report

Merging #124 (237330d) into master (c9945eb) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #124   +/-   ##
=======================================
  Coverage   61.52%   61.52%           
=======================================
  Files          30       30           
  Lines        1931     1931           
=======================================
  Hits         1188     1188           
  Misses        743      743           
Impacted Files Coverage Δ
soliket/clusters/clusters.py 86.23% <100.00%> (ø)
soliket/clusters/massfunc.py 95.12% <100.00%> (ø)

@itrharrison itrharrison added the repo Related to repo functionality label Mar 3, 2023
@mgerbino
Copy link
Collaborator Author

mgerbino commented Mar 3, 2023

Most of the warnings have been addressed. The pkg_resources.declare_namespace DeprecationWarning remains, but I doubt we can address it ourselves. @itrharrison , there are 3 warnings raised by the cross-correlation test:

  • 2 warnings are about non pre-defined data type in the sacc
  • 1 warning is raised by CCL and has to do with spline integration
    I can try to address them but you might have a better picture in mind of where to look.

@mgerbino mgerbino self-assigned this Mar 3, 2023
@mgerbino
Copy link
Collaborator Author

mgerbino commented Mar 3, 2023

@itrharrison , tests on oldest supported versions fail because of the replacement of interp2d with RegularGridInterpolator. The latter did not support the "cubic" interpolation method in the oldest versions of scipy, while it does with the current.

@mgerbino mgerbino marked this pull request as ready for review March 7, 2023 10:09
@itrharrison itrharrison merged commit bbeabd2 into master Mar 8, 2023
@itrharrison itrharrison deleted the dev-122-fix-tox-warnings branch March 8, 2023 16:50
mgerbino added a commit that referenced this pull request Oct 4, 2023
* renamed TestLike to CheckLike in test_ccl.py

* replaced distutils.version.Looseversion with packaging.version.Version

* replaced deprecated interp2d with RegularGridInterpolator in clusters

* flake8 compliant

* removed python3.7 from env list in tox.ini

* removed py3.7 from conda reqs

* upgraded latest version to py3.8

* correct data types in shearkappa test file

* edits to setup.cfg for pyversion bump and fgspectra from pip

* mflike actually still required before #104 merged

---------

Co-authored-by: Martina Gerbino <bradamante@martina.local>
Co-authored-by: Ian Harrison <itrharrison@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repo Related to repo functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix warnings in tox tests
3 participants