Repository navigation
Document the overwrite constructor keyword - #429
Conversation
|
@hobu Rtree should not accept contributions like this. It makes a mockery of open source. In @KennyMcSimpson's profile, I see 122 PRs in 96 projects on October 3. |
I'm sorry. I'm a student that time who new to open source field, but I should have approached this more thoughtfully. I do this bcs I heard that Claude has a policy where you can qualify for access to the model if you make enough open-source contributions.So I put that goal ahead of contributing responsibly. That was disrespectful to the community and maintainers' time. I won't do that again. In the future, I'll take the time to understand each project's needs and expectations and submit changes I understand. I contribute in the community through useful contributions, rather than chasing rewards. Thank you for calling this out and apologize again ORZ |
The file serialization tutorial tells readers to control replacement through
Property.overwrite, butIndexsets that property from itsoverwritekeyword argument when storage already exists. Document the keyword in the constructor and property reference, and use it in the tutorial.The executable examples show that reopening preserves entries by default,
overwrite=Truecreates an empty index, and the empty index remains empty after closing and reopening. Close the tutorial's disk indexes before cleaning up their temporary directories so the examples also work on Windows.Validation on Windows with libspatialindex 2.1.0:
The executable Python code is unchanged; the two changes in
rtree/index.pyare docstrings.AI assistance was used to investigate, implement, test and prepare this pull request.
Refs #157.