Skip to content

Commit

Permalink
🔧 Do not use deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisbr committed Jun 16, 2024
1 parent 29cfdff commit 9d20938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/sgp4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Propagators.name(orbp::OrbitPropagatorSgp4) = "SGP4 Orbit Propagator"

function Propagators.mean_elements(orbp::OrbitPropagatorSgp4)
# We need to copy the propagator to avoid modifying it.
sgp4d = deepcopy(orbp.sgp4d)
sgp4d = copy(orbp.sgp4d)
sgp4c = sgp4d.sgp4c

# First, we need to create a TLE based on the initial parameters.
Expand Down

0 comments on commit 9d20938

Please sign in to comment.