v0.6.0
Summary
This release enhances the SimulationRegistry to fully support dictionary-based configurations, ensuring that custom user-defined variables are correctly registered and synchronized during runtime updates.
🚀 Key Features & Improvements
- Dictionary State Synchronization: Updated the
SimulationRegistryto intelligently differentiate between dataclasses and raw dictionaries. The registry now safely uses item assignment (dict["key"] = value) to synchronize custom variables, preventing attribute errors. - Dynamic Variable Registration: The registry now natively iterates through the
variablesdictionary upon initialization, automatically wrapping each custom state in aDynamicValue. This allows external systems to update custom variables on the fly and trigger SimPy events just like standard parameters.
Full Changelog: v0.5.0...v0.6.0