You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error with 'HAS_GRISM' keyword and has_grism definition when running auto_script.go on HST data, proposal 13306. This proposal has F160W imaging and G102 grism spectroscopy for 4 galaxy clusters at z~1.5. The reduction and extraction works if we run Grizli piece by piece and with the has_grism definition shown in the Grizli-Pipeline notebook.
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
Cell In [9], line 7
1 # the magic piece of code that will do everything for you
2
3
4 # This line would do everything up to extracting spectra
5 #auto_script.go(root=root, HOME_PATH=HOME_PATH, **kwargs)
----> 7 auto_script.go(root=root_list[0], **kwargs)
File ~/src/grizli_8_9_2022/grizli/grizli/pipeline/auto_script.py:627, in go(root, HOME_PATH, RAW_PATH, PREP_PATH, PERSIST_PATH, EXTRACT_PATH, filters, fetch_files_args, inspect_ramps, is_dash, run_prepare_dash, run_parse_visits, is_parallel_field, parse_visits_args, manual_alignment, manual_alignment_args, preprocess_args, visit_prep_args, persistence_args, redo_persistence_mask, run_fine_alignment, fine_backup, fine_alignment_args, make_mosaics, mosaic_args, mosaic_drizzle_args, mask_spikes, mosaic_driz_cr_type, make_phot, multiband_catalog_args, only_preprocess, overwrite_fit_params, grism_prep_args, refine_with_fits, run_extractions, include_photometry_in_fit, extract_args, make_thumbnails, thumbnail_args, make_final_report, get_dict, kill, **kwargs)
618 fix_stars = False
620 # For running at the command line
621 # if False:
622 # mos_args = {'mosaic_args': kwargs['mosaic_args'],
623 # 'fix_stars': kwargs['visit_prep_args']['fix_stars'],
624 # 'mask_spikes': kwargs['mask_spikes'], 'skip_single_optical_visits': kwargs['preprocess_args']['skip_single_optical_visits']}
625 # auto_script.make_combined_mosaics(root, **mos_args)
--> 627 make_combined_mosaics(root, mosaic_args=mosaic_args,
628 fix_stars=fix_stars, mask_spikes=mask_spikes,
629 skip_single_optical_visits=skip_single,
630 mosaic_driz_cr_type=mosaic_driz_cr_type,
631 mosaic_drizzle_args=mosaic_drizzle_args)
633 # Make PSFs. Always set get_line_maps=False since PSFs now
634 # provided for each object.
635 mosaic_files = glob.glob('{0}-f*sci.fits'.format(root))
File ~/src/grizli_8_9_2022/grizli/grizli/pipeline/auto_script.py:4349, in make_combined_mosaics(root, fix_stars, mask_spikes, skip_single_optical_visits, ir_wcsref_file, ir_wcs, mosaic_args, mosaic_driz_cr_type, mosaic_drizzle_args, **kwargs)
4346 if fill_mosaics:
4347 if fill_mosaics == 'grism':
4348 # Only fill mosaics if grism filters exist
-> 4349 has_grism = info.meta['HAS_GRISM']
4350 if has_grism:
4351 fill_filter_mosaics(root)
KeyError: 'HAS_GRISM'
The text was updated successfully, but these errors were encountered:
Error with
'HAS_GRISM'
keyword andhas_grism
definition when runningauto_script.go
on HST data, proposal 13306. This proposal has F160W imaging and G102 grism spectroscopy for 4 galaxy clusters at z~1.5. The reduction and extraction works if we run Grizli piece by piece and with thehas_grism
definition shown in the Grizli-Pipeline notebook.The text was updated successfully, but these errors were encountered: