We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
full_copy
clone
When I clone or full_copy a Collection, its extra_fields, are not deepcopied. Mutating the copy will mutate the original:
from pystac import Collection, Extent, SpatialExtent, TemporalExtent data = {"test": "1"} a = Collection(id="test", description="test", extra_fields=data, extent=Extent(spatial=SpatialExtent(bboxes=[0,0,0,0]), temporal=TemporalExtent(intervals=[0,0]))) b = a.full_copy() b.extra_fields.pop("test") a.extra_fields # {}
This probably also happens to Catalogs and to more fields than just extra_fields as well.
extra_fields
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When I
clone
orfull_copy
a Collection, its extra_fields, are not deepcopied. Mutating the copy will mutate the original:This probably also happens to Catalogs and to more fields than just
extra_fields
as well.The text was updated successfully, but these errors were encountered: