Skip to content

Commit

Permalink
Quickfix for alignment target conversion when loading from hydra config
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjoy committed Oct 16, 2024
1 parent 95f05b5 commit e52e4fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions align_system/cli/run_align_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ def _compute_time_stats(times_s):
# some nested conversion to dict (from OmegaConf objects)
# otherwise this can cause some downstream issues with
# serialization
alignment_target.kdma_values = [OmegaConf.to_container(c) for c in
alignment_target.kdma_values]
alignment_target.kdma_values = [OmegaConf.to_container(c)
if isinstance(c, DictConfig) else c
for c in alignment_target.kdma_values]
elif cfg.align_to_target:
alignment_target = scenario.get_alignment_target()
else:
Expand Down

0 comments on commit e52e4fc

Please sign in to comment.