From 8df70f91b50834256ee7fb555696c814784c307e Mon Sep 17 00:00:00 2001 From: Dave Davis Date: Wed, 15 Jan 2025 13:59:01 -0500 Subject: [PATCH] rcal-969 Fix syntax --- romancal/pipeline/mosaic_pipeline.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/romancal/pipeline/mosaic_pipeline.py b/romancal/pipeline/mosaic_pipeline.py index 24e89f08f..26c20cf56 100644 --- a/romancal/pipeline/mosaic_pipeline.py +++ b/romancal/pipeline/mosaic_pipeline.py @@ -1,11 +1,11 @@ #!/usr/bin/env python from __future__ import annotations +import json import logging import re from os.path import basename, isfile from typing import TYPE_CHECKING -import json import asdf import numpy as np @@ -100,8 +100,6 @@ def process(self, input): except (KeyError, json.JSONDecodeError): if patch_match.PATCH_TABLE is None: patch_match.load_patch_table() - if patch_match.PATCH_TABLE is None: - raise RuntimeError("No patch table has been loaded") skycell_record = patch_match.PATCH_TABLE[ np.where(patch_match.PATCH_TABLE["name"][:] == skycell_name)[0][0] ] @@ -163,8 +161,8 @@ def process(self, input): def generate_tan_wcs(skycell_record): - # extract the wcs info from the record for generate_tan_wcs - # we need the scale, ra, dec, bounding_box + ''' extract the wcs info from the record for generate_tan_wcs + we need the scale, ra, dec, bounding_box''' scale = float(skycell_record["pixel_scale"]) ra_center = float(skycell_record["ra_projection_center"])