1.0.3
BiosimRust v1.0.3
Bug Fixes
-
Genome comparison crash: Fixed assertion failure when comparing genomes of different lengths using Hamming distance methods. The simulator now automatically falls back to Jaro-Winkler distance when genomes have unequal lengths, preventing crashes when gene insertion/deletion mutations are enabled.
-
Migrate distance challenge: Fixed challenge 7 (MIGRATE_DISTANCE) to require a minimum distance traveled. Individuals must now travel at least half the maximum grid dimension from their birth location to survive, preventing all individuals from passing regardless of movement.
Code Quality
- Removed outdated TODO comment about optimizing for long genomes (optimization already exists for Jaro-Winkler method).
Compatibility
This release maintains full compatibility with existing simulations. The genome comparison fix improves upon the C++ version by gracefully handling variable-length genomes without crashes.