diff --git a/scopesim/optics/fov_manager.py b/scopesim/optics/fov_manager.py index 89d0f859..6c361af9 100644 --- a/scopesim/optics/fov_manager.py +++ b/scopesim/optics/fov_manager.py @@ -258,7 +258,7 @@ def split(self, axis, value, aperture_id=None) -> None: continue if vol[f"{axis}_min"] >= value or vol[f"{axis}_max"] <= value: continue - new_vol = vol.copy() + new_vol = deepcopy(vol) new_vol[f"{axis}_min"] = value vol[f"{axis}_max"] = value self.insert(self.index(vol) + 1, new_vol) @@ -364,7 +364,7 @@ def _get_new_vols(): if not all(_volume_in_range(vol, axis, edge) for axis, edge in zip(axes, edges)): continue - new_vol = vol.copy() + new_vol = deepcopy(vol) for axis, edge in zip(axes, edges): new_vol[f"{axis}_min"] = max(edge[0], vol[f"{axis}_min"]) new_vol[f"{axis}_max"] = min(edge[1], vol[f"{axis}_max"])