Skip to content

Move deep-copy from top-level to dict-level#127

Merged
mattijn merged 1 commit intomasterfrom
deepcopy_on_dict_level
Sep 5, 2021
Merged

Move deep-copy from top-level to dict-level#127
mattijn merged 1 commit intomasterfrom
deepcopy_on_dict_level

Conversation

@mattijn
Copy link
Owner

@mattijn mattijn commented Sep 5, 2021

This PR fix #120. The deep copy is now applied on the dict-level and not on the top-level. It will not throw AttributeErrors for pyshp.

Several tests are included to check if the original data remains untouched and this is OK now for the data files considered in these tests.

Thanks @karimbahgat for providing the hints how to approach this!

@mattijn mattijn merged commit 04b49be into master Sep 5, 2021
@mattijn mattijn deleted the deepcopy_on_dict_level branch June 9, 2022 12:21
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.

AttributeError: 'Reader' object has no attribute 'shp'

1 participant