Skip to content

Broken BoltzmannWealth in benchmarks #3307

@codebreaker32

Description

@codebreaker32

Recent merged PR #3178 has modified the model signature of BoltzmannWealth Model which is failing the global_benhcmarks.py

07:05:03 starting benchmarks.
Traceback (most recent call last):
  File "/home/aman/mesa/benchmarks/global_benchmark.py", line 90, in <module>
    results = run_experiments(model, config)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/aman/mesa/benchmarks/global_benchmark.py", line 71, in run_experiments
    run_model(model_class, seed, config["parameters"])
  File "/home/aman/mesa/benchmarks/global_benchmark.py", line 34, in run_model
    model = model_class(rng=seed, **parameters)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I see two solution:

  1. Revert the BoltzmannWealth to match old signature
  2. Modify all benchmarks examples to use Scenario and then update global_benchmarks.py

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