Skip to content

Commit

Permalink
Fix autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCN7 committed Jan 29, 2025
1 parent 5ce0866 commit e5b4e6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sinergym/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,8 @@ def json_to_variables(variables: Dict[str, Any]) -> Dict[str, Tuple[str, str]]:
raise RuntimeError

elif isinstance(specification['keys'], list):
assert len(
specification['variable_names']) == len(
specification['keys']), 'variable names and keys must have the same len in {}'.format(variable)
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['variable_names'], specification['keys'])):
output[variable_name] = (variable, key_name)
Expand Down

0 comments on commit e5b4e6a

Please sign in to comment.