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

JP-2037 and JP-1926: Fixing ramp fitting multiprocessing to work with new STCAL interface. #30

Merged
merged 5 commits into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/stcal/ramp_fitting/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ def update_dqflags(input_flags):
dqflags["JUMP_DET"] = input_flags["JUMP_DET"]
dqflags["NO_GAIN_VALUE"] = input_flags["NO_GAIN_VALUE"]
dqflags["UNRELIABLE_SLOPE"] = input_flags["UNRELIABLE_SLOPE"]


def update_dqflags_from_ramp_data(ramp_data):
dqflags["DO_NOT_USE"] = ramp_data.flags_do_not_use
dqflags["SATURATED"] = ramp_data.flags_saturated
dqflags["JUMP_DET"] = ramp_data.flags_jump_det
dqflags["NO_GAIN_VALUE"] = ramp_data.flags_no_gain_val
dqflags["UNRELIABLE_SLOPE"] = ramp_data.flags_unreliable_slope
Loading