Skip to content

Commit

Permalink
Syntax edits
Browse files Browse the repository at this point in the history
  • Loading branch information
ishita9 committed Sep 18, 2024
1 parent 44d991c commit 9288adc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions metcalcpy/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ def _get_confidence_interval_and_value_eclv(logger, bootstrap_dist, stat_val, al
"""

# TODO Only percentile method for the confident intervals is implemented
logger = self.logger
if stat_val is None:
logger.warning("Statistic value is None. Skipping confidence interval calculation.")
val = None
Expand Down Expand Up @@ -571,7 +570,6 @@ def _all_the_same(elements):


def _validate_arrays(logger, values_lists):
logger = self.logger
t = values_lists[0]
t_type = type(t)
logger.debug(f"Validating arrays. First array type: {t_type}, shape: {t.shape}")
Expand Down
2 changes: 0 additions & 2 deletions metcalcpy/calc_difficulty_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ def _difficulty_index(logger, sigmaij, muij, threshold, fieldijn, Aplin, sigma_o
means more difficult.
"""
safe_log(logger, "debug", f"Checking input: sigmaij shape: {sigmaij.shape}, muij shape: {muij.shape if isinstance(muij, np.ndarray) else 'scalar'}, "
f"threshold: {threshold}, fieldijn shape: {fieldijn.shape}, sigma_over_mu_ref: {sigma_over_mu_ref}, under_factor: {under_factor}")
# Check for valid input
_input_check(sigmaij, muij, threshold, fieldijn, sigma_over_mu_ref, under_factor, logger)
safe_log(logger, "debug", "Input check passed successfully.")
Expand Down
2 changes: 1 addition & 1 deletion test/test_event_equalize_against_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_event_equalize_against_values():
& (stats_data[series_var].isin(series_var_vals_no_group))
]
ee_stats_equalize_unique = (list(set(ee_stats_equalize['equalize'])))
f_plot = event_equalize_against_values(f_plot, ee_stats_equalize_unique, None)
f_plot = event_equalize_against_values(None, f_plot, ee_stats_equalize_unique)

# append EE data to result
if output_data.empty:
Expand Down

0 comments on commit 9288adc

Please sign in to comment.