From 72fc4d0ecf6e176f11a178bae488e5bcf4693530 Mon Sep 17 00:00:00 2001 From: Phil Hodge Date: Thu, 9 Jun 2016 12:11:40 -0400 Subject: [PATCH] import datamodels from ..; models changed to datamodels --- jwst/ipc/ipc_corr.py | 1 - jwst/ipc/ipc_step.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/jwst/ipc/ipc_corr.py b/jwst/ipc/ipc_corr.py index bcf9bef7d7..f39cb5bc3c 100644 --- a/jwst/ipc/ipc_corr.py +++ b/jwst/ipc/ipc_corr.py @@ -7,7 +7,6 @@ from collections import namedtuple import logging import numpy as np -from jwst import datamodels from . import x_irs2 diff --git a/jwst/ipc/ipc_step.py b/jwst/ipc/ipc_step.py index 2c4363d0bf..3309ef9a56 100755 --- a/jwst/ipc/ipc_step.py +++ b/jwst/ipc/ipc_step.py @@ -1,5 +1,5 @@ from jwst.stpipe import Step -from jwst import datamodels +from .. import datamodels from . import ipc_corr @@ -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') @@ -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)