SDXorg / pysd

System Dynamics Modeling in Python
http://pysd.readthedocs.org/
MIT License
350 stars 89 forks source link

Implementation of a stepper function #420

Closed rogersamso closed 10 months ago

rogersamso commented 11 months ago

Description

This PR aims to add the possibility for users to run individual model steps in a for loop. This will be useful to couple PySD models with any other model.

Related issues

Type of change

(please delete options that are not relevant)

PR verification (to be filled by reviewers)

rogersamso commented 11 months ago

@enekomartinmartinez the code is ready for review!

rogersamso commented 11 months ago

I might get rid of this commit aaedce3b003655d5b44cbbc02bed3d98f2bbd3ee, as it is not working as expected. I'll keep you posted.

rogersamso commented 11 months ago

I might get rid of this commit aaedce3, as it is not working as expected. I'll keep you posted.

done!

rogersamso commented 11 months ago

An interesting addition to what we already have, would be to be able to store simulation results from all coupled models (in case they are all PySD models) into a single outputs file. But this requires a bit of extra thought, and we can leave it for the future.