diff --git a/sinergym/utils/common.py b/sinergym/utils/common.py index 5953552eae..99a574b61d 100644 --- a/sinergym/utils/common.py +++ b/sinergym/utils/common.py @@ -293,16 +293,16 @@ def json_to_variables(variables: Dict[str, Any]) -> Dict[str, Tuple[str, str]]: else: raise RuntimeError - elif isinstance(specification['variables_names'], list): + elif isinstance(specification['variable_names'], list): if isinstance(specification['keys'], str): raise RuntimeError elif isinstance(specification['keys'], list): - assert len( specification['variables_names']) == len( + assert len( specification['variable_names']) == len( specification['keys']), 'variable names and keys must have the same len in {}'.format(variable) for variable_name, key_name in list( - zip(specification['variables_names'], specification['keys'])): + zip(specification['variable_names'], specification['keys'])): output[variable_name] = (variable, key_name) else: diff --git a/sinergym/version.txt b/sinergym/version.txt index 132d9f7707..df4bdc7e53 100644 --- a/sinergym/version.txt +++ b/sinergym/version.txt @@ -1 +1 @@ -3.2.8 \ No newline at end of file +3.2.9 \ No newline at end of file