Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couple of critical errors in running 'cce' example #7

Open
ftroeman opened this issue Jun 14, 2019 · 0 comments
Open

Couple of critical errors in running 'cce' example #7

ftroeman opened this issue Jun 14, 2019 · 0 comments

Comments

@ftroeman
Copy link

ftroeman commented Jun 14, 2019

Running the 'cce' example using the latest implementation of abcEconomics produces an AttributeError: 'Simulation' object has no attribute 'declare_service'. Looking at 'init.py' in the source code for the latest abcEconomics implementation, the Simulation class no longer has the 'declare_service()' function. The latest documentations referred to all indicate that declare_service() is still a usable function. Is there a change in the way services are implemented?

Bypassing the 'declare_service()' functions, I find that the 'build_agents()' function also produces a critical error for each agent that we are trying to build:
` File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/abce/singleprocess.py", line 45, in insert_or_append
agent.init(**ChainMap(simulation_parameters, ap))

TypeError: init() missing 14 required positional arguments: 'num_firms', 'price_stickiness', 'network_weight_stickiness', 'dividends_percent', 'capital_types', 'output_tax_shares', 'production_functions', 'outputs', 'money', 'sam', 'tax_change_time', 'carbon_prod', 'carbon_tax', and 'tax'`

Does the 'cce' code only work with specific, older versions of abce/abcEconomics?

Would greatly appreciate your advice in resolving these issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant