Simulating-an-Economy-ABM icon indicating copy to clipboard operation
Simulating-an-Economy-ABM copied to clipboard

VisualiseEconomy.py might not be instantiating Modular Server right

Open foogunlana opened this issue 8 years ago • 2 comments

Had a bit of trouble getting the script to work, but I changed the instantiation to the below and that got it working for me:

server = ModularServer(
    WealthModel,
    [grid, chart],
    name="Wealth Model",
    model_params={
        "N": economy_scale*economy_scale,
        "width": economy_scale,
        "height": economy_scale
    })

I got the idea to do that from a quick read through the library you used. Perhaps it's been recently updated. I can make a PR if wanted?

foogunlana avatar Sep 17 '17 17:09 foogunlana

Hey @foogunlana, thanks for noticing this! Could you please go ahead and make a PR?

ShrutiAppiah avatar Sep 30 '17 15:09 ShrutiAppiah

Closed by #2 and #3

mratsim avatar Nov 24 '18 15:11 mratsim