-
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 14 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fix ligthcurve breaking when err_dist=None and changed default err_dist to None to match docs |
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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.
Hey @andresgur , rest of changes are fine, but
users when trying this example importing
pytestdoesn't seem to good way.instead this u can just suppress the warning
>>> lc = sim.simulate(2) # doctest: +IGNORE_WARNINGSonce this pr gets merged, i will write tests for #912
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.
Regarding this warning, I’m wondering if we could document which methods only support Poisson, which support Gauss and put that into the docs, with a link to that page in the warning? I feel like if I were the user, I’d like to know which methods I could use with which distribution. :)
I’m assuming this was probably in there before this PR, so we can address this elsewhere, but it seemed worth raising.
Uh oh!
There was an error while loading. Please reload this page.
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.
probably worth of raising an issue.
see #916
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.
@ankitkhushwaha I made the requested change btw, and yes @dhuppenkothen that would be a very good idea to add detail of the methods that handle Gauss/Poiss errors
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.
Hey @andresgur, maintainers are quite busy around this time, so it might take a while for the PR to get reviewed.
Hope u understand.
@Sauravroy34 has mentioned some places where docs related to distribution error can be imporved.