From d61b93b98a8f4464e3446aebd66aaa1b4bd2c704 Mon Sep 17 00:00:00 2001 From: Wei Xu Date: Tue, 8 Aug 2023 22:33:18 -0700 Subject: [PATCH] Fix grid_search parse_config() needs to be called before write_config() due to https://github.com/HorizonRobotics/alf/pull/1476 --- alf/bin/grid_search.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/alf/bin/grid_search.py b/alf/bin/grid_search.py index 974537767..97611717a 100644 --- a/alf/bin/grid_search.py +++ b/alf/bin/grid_search.py @@ -394,10 +394,7 @@ def launch_snapshot_gridsearch(): # write the current conf file as # ``/alf_config.py`` or ``/configured.gin`` conf_file = common.get_conf_file() - if conf_file.endswith('.gin'): - # for gin, we need to parse it first. Otherwise, configured.gin will be - # empty - common.parse_conf_file(conf_file) + common.parse_conf_file(conf_file) common.write_config(root_dir) # generate a snapshot of ALF repo as ``/alf``