Skip to content

Commit

Permalink
fix append to append stat_value, not a list of stat_value
Browse files Browse the repository at this point in the history
  • Loading branch information
bikegeek committed Jan 6, 2025
1 parent 85e2e7d commit acfdb8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metcalcpy/agg_stat_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def _calc_stats(self, cases):
try:
stat_values = []
stat_value = globals()[func_name](values, self.column_names, logger=logger)
stat_values.append([stat_value])
stat_values.append(stat_value)
safe_log(logger, "info", f"Statistic calculated for bootstrap iteration: {stat_value}")
except Exception as e:
safe_log(logger, "error", f"Error calculating statistic for bootstrap iteration: {e}")
Expand All @@ -324,7 +324,7 @@ def _calc_stats(self, cases):
# Calculate the statistic for each bootstrap iteration
try:
stat_value = globals()[func_name](values, self.column_names, logger=logger)
stat_values.append([stat_value])
stat_values.append(stat_value)
safe_log(logger, "info", f"Statistic calculated for bootstrap iteration: {stat_value}")
except Exception as e:
safe_log(logger, "error", f"Error calculating statistic for bootstrap iteration: {e}")
Expand Down

0 comments on commit acfdb8c

Please sign in to comment.