Skip to content

Commit

Permalink
fix: flux CI in errors format (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcxve authored Jul 12, 2024
1 parent 9d57577 commit 055074b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elisa/infer/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def _calc_flux(
ci_fn = lambda x: np.quantile(x, q)
intervals = jax.tree_map(ci_fn, boot_flux)
errors = jax.tree_map(
lambda x, y: (x - y[0], x - y[1]), mle_flux, intervals
lambda x, y: (y[0] - x, y[1] - x), mle_flux, intervals
)
add_unit = lambda x: x * unit
return {
Expand Down Expand Up @@ -1117,7 +1117,7 @@ def _calc_flux(
median = jax.tree_map(lambda x: np.median(x), flux)
intervals = jax.tree_map(ci_fn, flux)
errors = jax.tree_map(
lambda x, y: (x - y[0], x - y[1]), median, intervals
lambda x, y: (y[0] - x, y[1] - x), median, intervals
)
add_unit = lambda x: x * unit
return {
Expand Down

0 comments on commit 055074b

Please sign in to comment.