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.
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
JP-3463: Dark current noise floor #236
JP-3463: Dark current noise floor #236
Changes from 20 commits
2bf0d49
cd07af9
a89a88f
05de5ac
bebf811
87ed46e
df8350e
c3294eb
1ac03ac
06f2b2d
43a0163
9e7ba5c
5237fd9
99faff7
af7cac3
9fb0069
b6114da
563a0f1
b4e6433
0f827d2
dd5974a
df7689e
3ed79cb
4259f39
9996de4
c00eac5
76a8422
4ed2a1f
bc33f79
47dc8c7
af6fbca
7c11971
6155385
baa1e45
23e3562
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 893 in src/stcal/jump/jump.py
Codecov / codecov/patch
src/stcal/jump/jump.py#L891-L893
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.
The only places in
ols_fit.py
thatavg_dark_current
should appear is at lines 1157 and 1199.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.
This
else
is unnecessary.Check warning on line 114 in src/stcal/ramp_fitting/ols_fit.py
Codecov / codecov/patch
src/stcal/ramp_fitting/ols_fit.py#L114
Check warning on line 488 in src/stcal/ramp_fitting/ols_fit.py
Codecov / codecov/patch
src/stcal/ramp_fitting/ols_fit.py#L486-L488
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.
The
avg_dark_current
is not needed as a part of this tuple. I am surprised this doesn't cause problems with the multiprocessing, since this tuple is a list of parameters to be used byols_ramp_fit_single
.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.
The
avg_dark_current
parameter needs to be removed from the docstring.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.
The
avg_dark_current
needs to be removed from the function parameters, since it is now a member parameter inramp_data
.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.
The parentheses are unnecessary and should be removed.
Check warning on line 367 in tests/test_jump.py
Codecov / codecov/patch
tests/test_jump.py#L367
Check warning on line 370 in tests/test_jump.py
Codecov / codecov/patch
tests/test_jump.py#L370
Check warning on line 376 in tests/test_jump.py
Codecov / codecov/patch
tests/test_jump.py#L375-L376