From 5ef97958043cf85c49d7e47a7a7811b320052c76 Mon Sep 17 00:00:00 2001 From: ishitas Date: Wed, 18 Sep 2024 23:22:58 +0000 Subject: [PATCH] Changed placement of logger argument --- metcalcpy/calc_difficulty_index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metcalcpy/calc_difficulty_index.py b/metcalcpy/calc_difficulty_index.py index ecb764c4..29d18556 100644 --- a/metcalcpy/calc_difficulty_index.py +++ b/metcalcpy/calc_difficulty_index.py @@ -126,7 +126,7 @@ def _difficulty_index(logger, sigmaij, muij, threshold, fieldijn, Aplin, sigma_o """ # Check for valid input - _input_check(sigmaij, muij, threshold, fieldijn, sigma_over_mu_ref, under_factor, logger) + _input_check(logger, sigmaij, muij, threshold, fieldijn, sigma_over_mu_ref, under_factor) safe_log(logger, "debug", "Input check passed successfully.") # Variance term in range 0 to 1 safe_log(logger, "debug", "Calculating variance term.") @@ -206,8 +206,8 @@ def forecast_difficulty(logger, sigmaij, muij, threshold, fieldijn, name=A6_1_name) safe_log(logger, "debug", "Default Aplin object created.") safe_log(logger, "debug", "Calling _difficulty_index function.") - dij = _difficulty_index(sigmaij, muij, threshold, fieldijn, - Aplin, sigma_over_mu_ref, logger) + dij = _difficulty_index(logger, sigmaij, muij, threshold, fieldijn, + Aplin, sigma_over_mu_ref) safe_log(logger, "info", "Forecast difficulty index calculation completed.") return dij