Skip to content

Commit

Permalink
fix: support null config entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaok committed Feb 18, 2024
1 parent 22c9391 commit e49a22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tapa_fast_cosim/config_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _parse_xo_update_config(config: Dict, tb_output_dir: str) -> None:
# update scalar arguments
change_id_to_name = lambda id_to_val: {id_to_name[int(scalar_arg_id)]: val for scalar_arg_id, val in id_to_val.items()}
for entry in ('scalar_to_val', 'axi_to_data_file', 'axi_to_c_array_size'):
config[entry] = change_id_to_name(config[entry])
config[entry] = change_id_to_name(config[entry] or {})


def _check_scalar_val_format(config: Dict) -> None:
Expand Down

0 comments on commit e49a22f

Please sign in to comment.