We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdfb1be4 commit25c3665Copy full SHA for 25c3665
xga/generate/ciao/spec.py
@@ -152,6 +152,15 @@ def _chandra_spec_cmds(sources: Union[BaseSource, BaseSample], outer_radius: Uni
152
extra_file_name=''
153
grouptype_int='NONE'
154
binspec_int='NONE'
155
+
156
+# Do we actually need to run this generation? If matching products already exist then we won't bother
157
+try:
158
+source.get_spectra(obs_id=obs_id,inst=inst,telescope='chandra',outer_radius=outer_radius,inner_radius=inner_radius)
159
+# If the expected outputs from this function do exist for the current ObsID, we'll just
160
+# move on to the next one
161
+continue
162
+exceptNoProductAvailableError:
163
+pass
164
165
# Setting up the top level path for the eventual destination of the products to be generated here
166
dest_dir=os.path.join(OUTPUT,"chandra",obs_id)