Skip to content

Conversation

@vineetbansal
Copy link
Collaborator

@anushka255 - I'm seeing a lot of warnings on running the snakemake pipeline, primarily from pandas. While these are not critical now, they will turn into hard-to-debug errors in the future (e.g. SettingWithCopyWarning) when pandas changes its behavior in some future version. The Aspire project, for example, decided to totally get rid of pandas because they couldn't handle the regular API behavior changes from them.

This PR treats all warnings as errors when running the tests, and should serve as a base PR to ensure we've weeded out all warnings. We can handle these gradually of course.

Trying to catch all warnings instead of only the ones from pandas might seem like an overkill, but I think the warnings originate from a handful of lines (unclosed files in tests, other changes like np.random.shuffle(<series>) -> <series>.sample(frac=1)), so it should be manageable. If this turns into a never ending exercise then we can restrict ourselves to pandas.

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