mesa icon indicating copy to clipboard operation
mesa copied to clipboard

Broken BoltzmannWealth in benchmarks

Open codebreaker32 opened this issue 9 months ago • 1 comments

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

codebreaker32 avatar Feb 15 '26 07:02 codebreaker32

I suggest moving all benchmark models over to use scenario is the best way forward. It also lays the foundation for how we want to do things in Mesa 4.

quaquel avatar Feb 15 '26 13:02 quaquel