copy by value not ref

This commit is contained in:
Michaela 2021-10-09 16:17:17 +11:00
parent e33d46f1cb
commit 8a94a7e7a8

View File

@ -50,9 +50,9 @@ def flight_profile_by_type(sonde_type):
for _def_type in SONDE_TYPE_PREDICT_DEFAULTS: for _def_type in SONDE_TYPE_PREDICT_DEFAULTS:
if _def_type in sonde_type: if _def_type in sonde_type:
return SONDE_TYPE_PREDICT_DEFAULTS[_def_type] return SONDE_TYPE_PREDICT_DEFAULTS[_def_type].copy()
return PREDICT_DEFAULTS return PREDICT_DEFAULTS.copy()
def getDensity(altitude): def getDensity(altitude):