#951 - Can not view and change the log level from the cli.

- Fixed write transaction issue in transactions_to_file.py
This commit is contained in:
Chris McCarthy
2023-06-09 22:23:45 +01:00
parent 29d1566789
commit 3c8a8188fb
4 changed files with 53 additions and 15 deletions

View File

@@ -16,11 +16,10 @@ def turn_action_space_to_array(_action_space):
Args:
_action_space: The action space.
"""
return_array = []
for x in range(len(_action_space)):
return_array.append(str(_action_space[x]))
return return_array
if isinstance(_action_space, list):
return [str(i) for i in _action_space]
else:
return [str(_action_space)]
def turn_obs_space_to_array(_obs_space, _obs_assets, _obs_features):