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

import datamodels from ..; models changed to datamodels #11

Merged
merged 1 commit into from
Jun 9, 2016
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 0 additions & 1 deletion jwst/ipc/ipc_corr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from collections import namedtuple
import logging
import numpy as np
from jwst import datamodels

from . import x_irs2

Expand Down
6 changes: 3 additions & 3 deletions jwst/ipc/ipc_step.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from jwst.stpipe import Step
from jwst import datamodels
from .. import datamodels
from . import ipc_corr


Expand All @@ -14,7 +14,7 @@ class IPCStep(Step):
def process(self, input):

# Open the input data model
with models.open(input) as input_model:
with datamodels.open(input) as input_model:

# Get the name of the ipc reference file to use
self.ipc_name = self.get_reference_file(input_model, 'ipc')
Expand All @@ -29,7 +29,7 @@ def process(self, input):
return result

# Open the ipc reference file data model
ipc_model = models.IPCModel(self.ipc_name)
ipc_model = datamodels.IPCModel(self.ipc_name)

# Do the ipc correction
result = ipc_corr.do_correction(input_model, ipc_model)
Expand Down