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

Fix #339 error message when calculating the median of empty, non-float arrays #342

Open
wants to merge 2 commits into
base: developer
Choose a base branch
from

Conversation

bvenn
Copy link
Member

@bvenn bvenn commented Jan 11, 2025

Please reference the issue(s) this PR is related to

Closes #339

Please list the changes introduced in this PR

  • Some functions within the Array module fail if run with empty non-float sequences. Instead of a System.DivideByZeroException: Attempted to divide by zero.-Exception, a more descriptive Array.median is undefined for an empty non float sequence!-Exeption is thrown

[Required] please make sure you checked that

  • The project builds without problems on your machine

[Optional]

  • Added unit tests regarding the added features

@bvenn bvenn changed the title Fix #339 error message Fix #339 error message when calculating the median of empty, non-float arrays Jan 11, 2025
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.

[Feature Request] Median should give a more helpful error for empty non-float sequences
1 participant