singnet / reputation-simulation

Market simulation based on Reputation System
1 stars 2 forks source link

using rn.json returns error #4

Closed tiero closed 5 years ago

tiero commented 5 years ago

After cloning and installing the reputation-simulation, I run: python3 snsim/reputation_simulation/ReputationSim.py snsim/rn.json

This what happens here:

/Users/tiero/projects/snet/reputation-simulation
Traceback (most recent call last):
  File "snsim/reputation_simulation/ReputationSim.py", line 912, in <module>
    main()
  File "snsim/reputation_simulation/ReputationSim.py", line 902, in main
    runner.call(config['batch']['parameter_combinations'], config,rs=rs)
  File "snsim/reputation_simulation/ReputationSim.py", line 826, in call
    self.set_param(myconfigfile, setting)
  File "snsim/reputation_simulation/ReputationSim.py", line 809, in set_param
    nextKey = next(iter(new_val.items()))[0]
AttributeError: 'str' object has no attribute 'items'
deborahduong commented 5 years ago

Hi, I changed the config so as to be able to include more kinds of runs in the batch like SOM and TOM that have more than one parameter change that characterizes them. I just put in a new config file to use with the new setup, snsim/debugRn.json. Please use that one. There is a problem with halfTenth that I am debugging now.

tiero commented 5 years ago

All works now, thanks! @deborahduong

deborahduong commented 5 years ago

yes, still debugging the halfTenth