From 1641c9ba833ceb696ebbd938b32c3d3818f5b923 Mon Sep 17 00:00:00 2001 From: Steve Goldman <32876747+s-goldman@users.noreply.github.com> Date: Thu, 26 Oct 2023 11:25:27 -0400 Subject: [PATCH] proper handling of aperture for full poller --- drizzlepac/haputils/poller_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drizzlepac/haputils/poller_utils.py b/drizzlepac/haputils/poller_utils.py index a2a70f430..a0c887cd2 100644 --- a/drizzlepac/haputils/poller_utils.py +++ b/drizzlepac/haputils/poller_utils.py @@ -1097,7 +1097,8 @@ def build_poller_table(input: str, log_level, all_mvm_exposures=[], poller_type= if 'aperture' in input_table.colnames: cols['aperture'] = input_table['aperture'].tolist() else: - cols['aperture'] = ['empty_aperture'] * len(usable_datasets) + add_col = Column(['empty_aperture'] * len(usable_datasets), name='aperture', dtype='str') + input_table.add_column(add_col, index=7) poller_dtype+=('str',) else: raise ValueError("Input table is empty. Exiting...")