From 0661f895bf678cf2be5083142185a38dc1c69590 Mon Sep 17 00:00:00 2001 From: Mark Stephenson Date: Mon, 23 Sep 2024 12:11:22 -0600 Subject: [PATCH] Issue #180: Deepcopy comms to prevent mutating config --- src/bsk_rl/gym.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bsk_rl/gym.py b/src/bsk_rl/gym.py index 6359b42..06831ff 100644 --- a/src/bsk_rl/gym.py +++ b/src/bsk_rl/gym.py @@ -143,7 +143,7 @@ def __init__( if communicator is None: communicator = NoCommunication() - self.communicator = communicator + self.communicator = deepcopy(communicator) self.communicator.link_satellites(self.satellites) self.sim_rate = sim_rate