Commit ec5cdf21 authored by Martin Řepa's avatar Martin Řepa

FIX

parent 85e1cbf1
......@@ -103,7 +103,7 @@ def exec_new_setup(conf: RootConfig, folder: str, iterations: int) -> Setup:
def get_root_conf(conf_of_conf: dict) -> RootConfig:
conf = RootConfig()
conf.debug = False
conf.debug = True
conf.plot_conf.plot_enabled = False
conf.model_conf.set_ia_id_benign_ration(conf_of_conf['i_a'],
......@@ -167,9 +167,9 @@ if __name__ == "__main__":
print(f'Creating base dir {base_dir}')
os.mkdir(base_dir)
log_file = f'{base_dir}/log'
with open(log_file, 'w') as log:
sys.stderr = log
sys.stdout = log
main(experiment_conf, base_dir)
# main(experiment_conf, base_dir)
# log_file = f'{base_dir}/log'
# with open(log_file, 'w') as log:
# sys.stderr = log
# sys.stdout = log
# main(experiment_conf, base_dir)
main(experiment_conf, base_dir)
......@@ -16,7 +16,7 @@ logger = logging.getLogger(__name__)
@attr.s
class Result:
iterations: int
iterations: int = attr.ib()
zero_sum_nash_val: int = attr.ib()
attacker_value: int = attr.ib()
defender_value: int = attr.ib()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment