Skip to content

Calculating XS ratio statistics - #327

Open
eitan-weinstein wants to merge 8 commits into
svalinn:mainfrom
eitan-weinstein:xs_relative_stats
Open

Calculating XS ratio statistics#327
eitan-weinstein wants to merge 8 commits into
svalinn:mainfrom
eitan-weinstein:xs_relative_stats

Conversation

@eitan-weinstein

Copy link
Copy Markdown
Contributor

Follows #307.

This PR updates the function xs_plotting.plot_relative_group_xs() to calculate the mean and standard deviation of every plotted ratio series using np.nanmean() or np.nanstd() respectively (to account for regions in which the control series may be zero). These values are included both in the legend of the ratio plots, akin to the approach in alara_output_processing/alara_output_plotting.py, while also saving all statistics to a DataFrame corresponding to each ratio plot produced that is saved as a CSV upon the completion of the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant