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

Fix pathing problems #260

Merged

Conversation

willGraham01
Copy link
Collaborator

@willGraham01 willGraham01 commented Nov 14, 2023

@alessandrofelder Noticed your test data wasn't being found because our MANIFEST is told to ignore the tests directory when packaging.

Changed the tox command and paths in the to-be regression tests to point to the repository clone, which should then resolve the paths correctly using the repo clone.

@willGraham01
Copy link
Collaborator Author

willGraham01 commented Nov 14, 2023

Looks like the tests are still failing, but it looks like a genuine test fail now? Rather than a path problem.

Feel free to push to this branch or merge in and fix on yours.

@alessandrofelder alessandrofelder marked this pull request as ready for review November 14, 2023 17:04
@alessandrofelder alessandrofelder merged commit 9bde054 into fix-pandas-deprecation Nov 14, 2023
5 of 8 checks passed
@alessandrofelder alessandrofelder deleted the fix-pandas-deprecation-willg branch November 14, 2023 17:04
@alessandrofelder
Copy link
Member

I'll merge and fix on my branch (have already fixed one of the problems locally) - thanks!

@willGraham01
Copy link
Collaborator Author

No problem - fingers crossed I haven't undone that local fix 😅

willGraham01 added a commit that referenced this pull request Nov 15, 2023
* add a failing test for get_region_totals

reproduces #254
fails as expected with pandas 2.1.3
passes with pandas 1.5.3
a dummy volumes.csv created by cutting down version from registration_output data

* distribute test points across region/hemisphere, save regression data

regression data from pandas 1.5.3

* basic local fix

* use safe_concat util instead

* tweak test

avoid using hard-coded paths and writing tmp data to codebase

* Fix pathing problems (#260)

* adapt test_subdirectories to extra data subdir

---------

Co-authored-by: Will Graham <32364977+willGraham01@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants