Skip to content

Commit

Permalink
aperture values added to cols and not input_table
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman committed Nov 2, 2023
1 parent 24c1ce7 commit 511fa54
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions drizzlepac/haputils/poller_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,15 +805,15 @@ def parse_obset_tree(det_tree, log_level):
is_grism = True
filt_indx -= 1
grism_sep_obj = GrismExposureProduct(

Check warning on line 807 in drizzlepac/haputils/poller_utils.py

View check run for this annotation

Codecov / codecov/patch

drizzlepac/haputils/poller_utils.py#L807

Added line #L807 was not covered by tests
prod_list[0],
prod_list[1],
prod_list[2],
prod_list[3],
prod_list[4],
filename[1],
prod_list[6],
prod_list[7],
log_level,
prod_list[0], # prop_id
prod_list[1], # obset_id
prod_list[2], # instrument
prod_list[3], # detector
prod_list[4], # aperture_from_poller
filename[1], # filename
prod_list[6], # filters
prod_list[7], # filetype
log_level, # log_level
)
else:
sep_obj = ExposureProduct(
Expand Down Expand Up @@ -1328,14 +1328,9 @@ def build_poller_table(
if "aperture" in input_table.colnames:
cols["aperture"] = input_table["aperture"].tolist()
else:
add_col = Column(
["empty_aperture"] * len(usable_datasets), name="aperture", dtype="str"
)
input_table.add_column(add_col, index=7)
poller_dtype += ("str",)
cols["aperture"] = ["empty_aperture"] * len(usable_datasets)
else:
raise ValueError("Input table is empty. Exiting...")

# If MVM processing and a poller file is the input, this implies there is
# only one skycell of interest for all the listed filenames in the poller
# file. Establish the WCS, but no need for discovery of overlapping skycells
Expand Down

0 comments on commit 511fa54

Please sign in to comment.