Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
penaguerrero committed Oct 3, 2024
1 parent 5da311a commit 4bf36c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jwst/emicorr/emicorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def apply_emicorr(output_model, emicorr_model,
# Interleave (straight copy) into 4 amps
noise_x = np.arange(nx4) * 4
for k in range(4):
output_model.data[..., noise_x + k] = output_model.data[..., noise_x + k] - dd_noise
output_model.data[..., noise_x + k] -= dd_noise

# clean up
del data
Expand Down
4 changes: 2 additions & 2 deletions jwst/emicorr/tests/test_emicorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import numpy as np
from jwst.emicorr import emicorr, emicorr_step
from stdatamodels.jwst.datamodels import Level1bModel, EmiModel
from stdatamodels.jwst.datamodels import RampModel, EmiModel


subarray_example_case = {
Expand All @@ -33,7 +33,7 @@

def mk_data_mdl(data, subarray, readpatt, detector):
# create input_model
input_model = Level1bModel(data=data)
input_model = RampModel(data=data)
input_model.meta.instrument.name = 'MIRI'
input_model.meta.instrument.detector = detector
input_model.meta.exposure.type = 'MIR_4QPM'
Expand Down

0 comments on commit 4bf36c4

Please sign in to comment.