Skip to content

Commit

Permalink
Merge pull request #417 from PanDAWMS/tania_dev
Browse files Browse the repository at this point in the history
userDash | transform numpy float64 to usual float to avoid JS failures
  • Loading branch information
tkorchug authored Nov 26, 2024
2 parents e7b700d + 2632f15 commit 4e84a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/libs/exlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ def build_stack_histogram(data_raw, **kwargs):
for site, sd in data_raw.items():
data_all.extend(sd)

stats.append(np.average(data_all) if not np.isnan(np.average(data_all)) else 0)
stats.append(np.std(data_all) if not np.isnan(np.std(data_all)) else 0)
stats.append(round_to_n_digits(np.average(data_all), 3) if not np.isnan(np.average(data_all)) else 0)
stats.append(round_to_n_digits(np.std(data_all), 3) if not np.isnan(np.std(data_all)) else 0)

if stats[1] == 0:
n_bins = 1
Expand Down

0 comments on commit 4e84a2f

Please sign in to comment.