GheodeAI / va_am

VA-AM (Various Advanced - Analogue Methods) is a Python package based on the deep learning enhancement of the classical statistical Analogue Method. It provides several tools to analyse climatological extreme events, particularly heat waves.
https://va-am.readthedocs.io/en/latest/
GNU General Public License v3.0
2 stars 0 forks source link

Refactor if key in params to dict.get() #17

Closed cosminmarina closed 2 months ago

cosminmarina commented 3 months ago

Change all if initialization as

if "name_param" not in params:
   params["name_param"] = "actual_default_value"

to dict.get()

params.get("name_parma", "actual_default_value")

.

In case of doubts, see