Skip to content

Commit

Permalink
Move agent export tests from examples to test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-wojnar committed Jul 18, 2023
1 parent e55c619 commit f6e4ac1
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 276 deletions.
136 changes: 0 additions & 136 deletions examples/lite/lite.py

This file was deleted.

139 changes: 0 additions & 139 deletions examples/lite/lite_test.py

This file was deleted.

2 changes: 1 addition & 1 deletion reinforced_lib/agents/base_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def append_value(value: any, value_name: str, args: any) -> any:
if args is None:
raise UnimplementedSpaceError()
elif is_dict(args):
return args | {value_name: value}
return {value_name: value} | args
elif is_array(args):
return [value] + list(args)
else:
Expand Down
Loading

0 comments on commit f6e4ac1

Please sign in to comment.