Skip to content
Snippets Groups Projects

Resolve "Adapt/Overwrite env config attr in Study config"

1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
  • The pprint import and its instances were removed from study_server.py to clean up the code. The change will not affect the functionality, as the pprint statements were only used for debugging and are not necessary for the server's operations.
@@ -19,7 +19,6 @@ import random
import signal
import subprocess
from pathlib import Path
from pprint import pprint
from subprocess import Popen
from typing import Tuple, Any
@@ -192,10 +191,7 @@ class Study:
environment_config, Loader=yaml.Loader
)
if level.config_overwrite is not None:
pprint(self.current_config)
pprint(level.config_overwrite)
deep_update(self.current_config, level.config_overwrite)
pprint(self.current_config)
environment_config = yaml.dump(self.current_config)
seed = int(random.random() * 1000000)
Loading