From d0a48a1c69201a252f893f5b04fc754ac1b4498e Mon Sep 17 00:00:00 2001 From: imedan Date: Mon, 10 Jun 2024 18:21:54 -0500 Subject: [PATCH] add option to skip RM fields --- bin/validate_designs_batches.py | 113 +++++++++++++++++++++----------- 1 file changed, 74 insertions(+), 39 deletions(-) diff --git a/bin/validate_designs_batches.py b/bin/validate_designs_batches.py index 8f3d376..b1b7964 100644 --- a/bin/validate_designs_batches.py +++ b/bin/validate_designs_batches.py @@ -39,7 +39,7 @@ primary_hdu.header['fps_calibrations_version'] = fps_calib_ver -def valid_field(all_files, offset_min_skybrightness, cache_bs): +def valid_field(all_files, offset_min_skybrightness, cache_bs, skip_rm): # need import here for create new connection from mugatu.fpsdesign import FPSDesign from mugatu.designmode import (build_brigh_neigh_query, @@ -84,14 +84,9 @@ def validate_design(design_file, exp, obsTime, bright_safety = False return des, decolide, bright_safety - - def design_outputs_to_array(des, decolide, - bright_safety, - db_query_results_boss, - db_query_results_apogee, - desmode_manual): + def design_array_format(): """ - Output validation parameters as a structured array + return blank design array """ dtype = np.dtype([('file_name', '