fossilfree / numerous

Numerous - an object-oriented modelling and simulation engine.
https://numerous.com
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Allow external events #208

Closed mrdobalina2k closed 1 year ago

mrdobalina2k commented 1 year ago

This feature branch lets the user decide to create external event action functions (time and state-events). The external action is chosen using the keyword is_external=True on the add_event, add_time_event methods on item and model.

This requires the newest numerous solver 2.1.0, which supports this functionality. NumerousEvents are wrapped as NumerousSolverEvents (time and state-events) which are created in the EventFactory in solver_interface.py. I am missing tests at the moment, but these will be added.