Closed hyanwong closed 7 months ago
The recent updates focus on enhancing table initialization in the GeneticInheritanceGraphLibrary by introducing initial_size
parameters across various classes. This change ensures tables are properly initialized with expected sizes, improving efficiency and consistency. Adjustments were made to both the library's core and its testing suite, ensuring thorough validation of the new initialization process.
Files | Summary |
---|---|
.../tables.py |
Introduced initial_size parameters for table classes and initial_sizes for TableCollection , alongside adjustments for consistency. |
tests/gigutil.py |
Modified initialise_population to accept initial_sizes , impacting table initialization. |
tests/test_gigutil.py |
Adjusted test_inversion to utilize new population size parameters. |
tests/test_tables.py |
Added tests for verifying initial sizes in table initialization and copying. |
"In the realm of code, where tables align,
A rabbit hopped, making changes so fine.
🐇 With a tweak and a hop, sizes set just right,
Ensuring tables grow, with efficiency in sight.
So here's to the rabbit, with logic so bright,
Guiding our code, through the day and the night."
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?
Summary by CodeRabbit