Closed hyanwong closed 7 months ago
The update introduces enhancements to the GeneticInheritanceGraphLibrary by refining data type definitions to optimize memory usage and ensuring data integrity. It specifically improves field type specifications and validation mechanisms for chromosome data, including support for circular chromosomes through negative edge numbers. Additionally, the test suite is expanded with new scenarios to ensure robust handling of these changes.
Files | Changes |
---|---|
.../tables.py |
- Renamed _non_int_fieldtypes to _non_int64_fieldtypes - Added np.int16 types for chromosome fields- Updated add_row for better integer validation |
tests/test_tables.py |
- New test for negative chromosome numbers - Added assertions for negative value tests |
"In the heart of the code, where the bits softly glow,
A rabbit hopped in, with changes in tow.
🧬 For genes not just threads, but a tapestry bold,
With chromosomes tiny, and stories untold.
🐇 With a hop and a skip, it refined with great care,
Ensuring each byte was placed just right, fair and square.
So here's to the changes, both big and quite small,
May they help us uncover the mysteries that call."
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Should never have > 32767 chromosomes
Summary by CodeRabbit