Skip to content

[WIP] Fix pd warning #683

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

Merged
merged 4 commits into from
Mar 22, 2022
Merged

[WIP] Fix pd warning #683

merged 4 commits into from
Mar 22, 2022

Conversation

AlexanderJuestel
Copy link
Contributor

Description

Please include a summary of the changes.

Relates to #682

Copy link
Collaborator

@Japhiolite Japhiolite left a comment

Choose a reason for hiding this comment

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

Have you tested if this works? I think, if inplace is removed, the change has to be assigned to a variable.

@AlexanderJuestel
Copy link
Contributor Author

AlexanderJuestel commented Mar 18, 2022

Haven't tested it yet......will do so soon

@AlexanderJuestel AlexanderJuestel changed the title Fix pd warning [WIP] Fix pd warning Mar 18, 2022
Copy link
Collaborator

@Japhiolite Japhiolite left a comment

Choose a reason for hiding this comment

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

Tested the proposed changes, which yield expected errors. Removing the deprecated inplace argument must go hand in hand with assigning the change, i.e.

self._surface_points.df['surface'] = self._surface_points.df['surface'].cat.add_categories(surface_list)
self._orientations.df['surface'] = self._orientations.df['surface'].cat.add_categories(surface_list)

should do the trick.

@AlexanderJuestel
Copy link
Contributor Author

Thanks for testing! I will change the PR accordingly and try to fix the other obsolete inplace places as well

@Japhiolite Japhiolite merged commit 10596d8 into master Mar 22, 2022
@Japhiolite Japhiolite deleted the fix_pd_warning branch March 22, 2022 20:32
@AlexanderJuestel
Copy link
Contributor Author

fixes #682

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