SDXorg / PySD-Cookbook

Simple Recipes for Powerful Analysis of System Dynamics Models
61 stars 33 forks source link

run(...,collect=True) #15

Closed Dr-Oscar-Benavente closed 7 years ago

Dr-Oscar-Benavente commented 7 years ago

Dear all,

I'm having issues using the model.run(...,collect=True) function.

When running the last step of the Hello tea temperature example http://pysd-cookbook.readthedocs.io/en/latest/analyses/getting_started/Hello_World_Teacup.html), I got the following error:

TypeError: run() got an unexpected keyword argument 'collect'

Its seems that the model.run() function does not have the collect argument implemented.

Could you give me some advices, please?

Cheers, Oscar

JamesPHoughton commented 7 years ago

Hey Oscar,

Thanks for catching some outdated documentation! I ended up removing the collect parameter, as it wasn't useful and got in the way of things that were. The best way to go forwards is to save the output from the two different simulation runs in different pandas dataframes, and if you need to, concatenate them together.

I'll update the docs, keep me posted if anything else seems amiss.

JamesPHoughton commented 7 years ago

These docs are updated, there are still a number of others that need work, however.

Dr-Oscar-Benavente commented 7 years ago

Thank you James for everything. It was of much help.

Cheers, OIscar

2017-03-14 16:43 GMT-03:00 James Houghton notifications@github.com:

These docs are updated, there are still a number of others that need work, however.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JamesPHoughton/PySD-Cookbook/issues/15#issuecomment-286537504, or mute the thread https://github.com/notifications/unsubscribe-auth/AY8N8Wijlwg2pVooscu8UigzuuNoi2c_ks5rlu3ggaJpZM4MRqvB .

--

Confusion will be my epitaphAs I crawl a cracked and broken pathIf we make it we can all sit back and laugh, But I fear tomorrow I'll be crying, Yes I fear tomorrow I'll be crying King Crimson