Skip to content

Commit

Permalink
Changed config file for timeloop
Browse files Browse the repository at this point in the history
  • Loading branch information
a-saraf committed Dec 19, 2023
1 parent e1005fe commit 2602f63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions configs/sims/Timeloop_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@
target_energy = 29206 * (1 - target_energy_improv)
target_area = 2.03 * (1 - target_area_improv)
target_cycles = 7885704 * (1 - target_cycle_improv)

##########################
# ACO Configurations #
##########################
# ACO
aco_config = "default_astrasim.yaml"
7 changes: 3 additions & 4 deletions sims/Timeloop/launch_gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json
from datetime import date, datetime
os.sys.path.insert(0, os.path.abspath('../../'))
from configs import arch_gym_configs
from configs.sims import Timeloop_config

from absl import flags
from absl import app
Expand Down Expand Up @@ -164,9 +164,9 @@ def run_task(task):
reward_formulation = task['reward_formulation']

aco_agent_config_file = os.path.join(
arch_gym_configs.proj_root_path,
Timeloop_config.proj_root_path,
"settings",
arch_gym_configs.aco_config)
Timeloop_config.aco_config)
aco_hyperparams = {"evaporation": evaporation,
"ant_count": ant_count,
"greediness": greediness,
Expand Down Expand Up @@ -275,7 +275,6 @@ def run_task(task):

def main(_):
taskList = []
sim_config = arch_gym_configs.sim_config

if FLAGS.algo == 'rw':
task = {'algo': FLAGS.algo,
Expand Down

0 comments on commit 2602f63

Please sign in to comment.