You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Fix README and CONTRIBUTING inconsistencies with implementation (#56)
* docs: Fix README and CONTRIBUTING inconsistencies with implementation
- Update README.md API Reference to match actual implementation
- Add detailed parameter descriptions for all methods
- Include missing getter methods for precision control
- Fix insert() signature to show optional parameters
- Add len() and n property documentation
- Remove "(2D only)" from varargs query (works for 3D/4D too)
- Add return type annotations for clarity
- Update CONTRIBUTING.md project structure
- Update file paths to reflect current project layout
- Change cpp/ to include/prtree/core/ and src/cpp/bindings/
- Update Python wrapper path from __init__.py to core.py
- Add pyproject.toml to project structure
- Update test directory structure (unit/integration/e2e)
All examples verified to work correctly with current implementation.
* docs: Comprehensive documentation update with detailed docstrings
Major improvements:
1. **README.md**:
- Clarified Thread Safety section with detailed explanations
- Distinguished between read and write operations
- Added concrete examples of thread-safe usage patterns
- Explained when external synchronization is needed
2. **src/python_prtree/core.py**:
- Added comprehensive docstrings to all classes and methods
- Included detailed Args, Returns, Raises, Examples sections
- Added performance complexity analysis
- Documented thread safety for each method
- Added See Also cross-references
- Explained precision selection behavior
- Provided extensive usage examples for each method
3. **docs/README.md** (new):
- Created documentation directory guide
- Explained purpose of each subdirectory
- Added navigation guide for users and developers
Documentation now follows NumPy/Google docstring style with:
- Complete parameter descriptions with types
- Return value specifications
- Exception documentation
- Performance characteristics
- Thread safety notes
- Practical examples for all methods
- Cross-references between related methods
All README examples verified to work correctly with implementation.
* docs: Fix documentation inconsistencies across all files
Thoroughly verified all documentation against actual implementation
and fixed the following inconsistencies:
**README.md:**
- Removed precision control methods (set/get_adaptive_epsilon, etc.)
that are not exposed in the Python API. These methods exist in C++
bindings but are not accessible to users through the Python wrapper.
**docs/DEVELOPMENT.md:**
- Removed reference to non-existent benchmarks/python/ directory
- Removed tests/legacy/ from test organization section (internal only)
- Fixed cross-reference paths to use ../ prefix (CONTRIBUTING.md,
README.md, CHANGES.md) since DEVELOPMENT.md is in docs/ subdirectory
**docs/ARCHITECTURE.md:**
- Removed benchmarks/python/README.md from directory structure
- Added tests/legacy/ directory to test suite structure
**Makefile:**
- Fixed CPP_DIR variable from 'cpp' to 'src/cpp' to match actual
directory structure
All changes verified with tests - README examples still pass.
---------
Co-authored-by: Claude <[email protected]>
0 commit comments