The behavior of copy.deepcopy(env) is currently undefined. I would expect either an error to be raised in case the environment should not be copied or for the environments to be compatible with deepcopy
Code example
For example, when using deepcopy on "antmaze-umaze-v2", the reward_type changes from sparse to dense, and reward becomes negative, which I believe shouldn't be the case (see https://github.com/Farama-Foundation/D4RL/blob/master/d4rl/pointmaze/maze_model.py#L196). However, the .step function works, making it harder to notice the mistake.
Describe the bug
The behavior of
copy.deepcopy(env)
is currently undefined. I would expect either an error to be raised in case the environment should not be copied or for the environments to be compatible withdeepcopy
Code example For example, when using deepcopy on "antmaze-umaze-v2", the
reward_type
changes from sparse to dense, and reward becomes negative, which I believe shouldn't be the case (see https://github.com/Farama-Foundation/D4RL/blob/master/d4rl/pointmaze/maze_model.py#L196). However, the.step
function works, making it harder to notice the mistake.Output:
System Info I am using google colab
Additional context Something similar was also discussed here: https://github.com/openai/gym/issues/1863
Checklist