You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
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!
The text was updated successfully, but these errors were encountered: