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

Remove special handling of empty dataframes #120

Closed
wants to merge 3 commits into from
Closed

Conversation

fhenneke
Copy link
Contributor

This PR simplifies how dataframes are concatenated after fetching from prod and barn. The behavior should be identical, except for the unnecessary copies.

The change was introduces in #85 to avoid a deprecation warning. This is not required anymore.

the assert is not required in the remainder of the code, as individual
rows are just uploaded to dune as is
@bram-vdberg
Copy link
Collaborator

The change was introduces in #85 to avoid a deprecation warning. This is not required anymore.
Why is it not required anymore? If there was a version change it might be good to document that in this PR as well.

Base automatically changed from remove_solver_overlap_assert to main October 25, 2024 15:37
Copy link
Contributor

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit. 🐍

@fhenneke
Copy link
Contributor Author

The change is not correct as it would still lead to a FutureWarning if one of the data frames is empty. The warning is about a change of behavior in determining data types when one dataframe is empty but has a conflicting datatype with the other data frame. This seems to happen here.

A full fix would require also changing the creation of the dataframe to use no types or compatible types.

Closing this for now as there are more important changes to work on.

@fhenneke fhenneke closed this Oct 29, 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

Successfully merging this pull request may close these issues.

3 participants