diff --git a/romancal/stpipe/core.py b/romancal/stpipe/core.py index 7b12eb857..54a145677 100644 --- a/romancal/stpipe/core.py +++ b/romancal/stpipe/core.py @@ -11,8 +11,7 @@ from ..lib.suffix import remove_suffix -if os.environ.get("CI") == "false": - from stpipe import crds_client +from stpipe import crds_client _LOG_FORMATTER = logging.Formatter( @@ -67,13 +66,11 @@ def finalize_result(self, model, reference_files_used): # this will only run if 'parent' is none, which happens when an individual # step is being run or if self is a RomanPipeline and not a RomanStep. - - if os.environ.get("CI") == "false": # no CRDS connection, do not run - if self.parent is None: - model.meta.ref_file.crds.sw_version = crds_client.get_svn_version() - model.meta.ref_file.crds.context_used = crds_client.get_context_used( - model.crds_observatory - ) + if self.parent is None: + model.meta.ref_file.crds.sw_version = crds_client.get_svn_version() + model.meta.ref_file.crds.context_used = crds_client.get_context_used( + model.crds_observatory + ) def record_step_status(self, model, step_name, success=True): """