#!/usr/bin/env python """Verify the satstar filename suffix fix by running the previously-failing F470N iter2 task 18 (frame 03108 exp00005).""" import sys sys.path.insert(0, '/orange/adamginsburg/repos/brick-jwst-2221') class _Opt: filternames = 'F470N' modules = 'nrcb' desaturated = False daophot = True nocrowdsource = True bgsub = False epsf = False blur = False proposal_id = '3958' target = 'sickle' group = False each_exposure = True each_suffix = 'destreak_o007_crf' seed_catalog = '' iteration_label = 'sstest' # fresh tag so no inferred seed catalog exists postprocess_residuals = True basic_only = False residual_negative_threshold = 0.0 local_snr_threshold = 5.0 daofind_roundlo = -1.0 daofind_roundhi = 1.0 skip_mosaic_each_exposure_residuals = True from brick2221.analysis.crowdsource_catalogs_long import do_photometry_step basepath = '/orange/adamginsburg/jwst/sickle/' filename = f'{basepath}/F470N/pipeline/jw03958007001_03108_00005_nrcblong_destreak_o007_crf.fits' do_photometry_step( _Opt(), filtername='F470N', module='nrcb', detector='nrcb', field='007', basepath=basepath, filename=filename, proposal_id='3958', crowdsource_default_kwargs={'maxstars': 500000}, exposurenumber=5, visit_id='001', vgroup_id='03108', use_webbpsf=True, bg_boxsizes={'f470n': 11}, seed_catalog=None, iteration_label='sstest', postprocess_residuals=True, residual_negative_threshold=0.0, local_snr_threshold=5.0, daofind_roundlo=-1.0, daofind_roundhi=1.0, ) print("DONE")