-
Notifications
You must be signed in to change notification settings - Fork 181
Fix err dist none #909
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
Open
andresgur
wants to merge
15
commits into
StingraySoftware:main
Choose a base branch
from
andresgur:fix_err_dist_none
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix err dist none #909
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
fbb6275
Changed valid statistic None to 'None'
e3b6084
Made 'none' default err_dist to reflect doc
a03a85b
Fixed valid_statistics, changed 'None' to 'none' in Lightcurve
099a1f5
Avoid breaking the API, and improve consistency
matteobachetti 2531bf5
If the input is counts, the err_dist should be Poisson
matteobachetti 5d204fc
Fix bug when defining default err_dist
matteobachetti 538f23f
Added .rst for PR 909
61dee3c
Added err_dist=poiss to avoid warnings crashing tests
4dc40bc
Fixed warnings related to err_dist=none not passing tests in test_sim…
f6ce539
Fixed warnings related to err_dist=none not passing tests in test_cro…
4d0fa09
Fixed warnings related to err_dist=none not passing tests in test_lom…
90c3772
Fixed warnings related to err_dist=none not passing tests in test_cro…
79b7a2d
Fixed warnings related to err_dist=none not passing tests in test_lig…
bf9d22a
Fixed warnings related to err_dist=none in simulator.rst causing the …
9383422
Removed pytest dependency, ignored warnings instead with doctest: +IG…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do .lower() so either "None" or "none" is fine from the user perspective. I kept "None" as that's what e.g. matplolib uses. But we could keep it as "none" in valid_statistics as poiss and gauss are not capitalized, but from the user perspective it does not matter.
Having None type would make the code more clunky and we would unnecessarily need to handle that case separately, while if "none" is taken as a string makes all the cases the same and the code more straightforward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I just pushed the suggested change