Skip to content

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

Description

@ftroeman

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions