Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD: calculate_percentage function. #811

Merged
merged 9 commits into from
Mar 28, 2024
Merged

Conversation

zssherman
Copy link
Collaborator

This function allows the user (ex: aerosol data) to provide fields and calculate the percentage of that field in a volume. The code also checks for invalid numbers if the user provides a threshold. User can also provided a specific time, a range of times, or get an mean of the whole dataset.

This function will eventually be used for the PieChart function I'm working on.

@zssherman zssherman closed this Mar 25, 2024
@zssherman zssherman reopened this Mar 25, 2024
@zssherman
Copy link
Collaborator Author

I'm not sure why the hashes aren't matching...

@zssherman
Copy link
Collaborator Author

Rerunning one more time with the PR now for arm-test-data

@zssherman zssherman closed this Mar 27, 2024
@zssherman zssherman reopened this Mar 27, 2024
Copy link
Collaborator

@AdamTheisen AdamTheisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zssherman this looks good! The only thing I can think of is adding in an example that would show how to use the percentages returned to create a pie chart. Thoughts?

@zssherman
Copy link
Collaborator Author

zssherman commented Mar 28, 2024

@AdamTheisen Yeah I can do that! It's a one liner that I can add in the example. Once the piechart function is actually added, i can swap out the one line in the example with the new function

@zssherman
Copy link
Collaborator Author

@AdamTheisen Example has been added.

@zssherman
Copy link
Collaborator Author

zssherman commented Mar 28, 2024

Once this is approved, we can merge and I'll rerun Bobby's PR

Copy link
Collaborator

@AdamTheisen AdamTheisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zssherman looks good!

@zssherman zssherman merged commit f97a0d3 into ARM-DOE:main Mar 28, 2024
19 checks passed
@zssherman zssherman deleted the calc_percent branch March 28, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants