Skip to content

Commit

Permalink
rcal-969 Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ddavis-stsci committed Jan 15, 2025
1 parent 759f04c commit 8df70f9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions romancal/pipeline/mosaic_pipeline.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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]
]
Expand Down Expand Up @@ -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"])
Expand Down

0 comments on commit 8df70f9

Please sign in to comment.