Skip to content

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.

3 participants