# Error while warping images onto a skymap in the Getting Started Tutorial

**URL:** <https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677>\
**Category:** Support\
**Created:** [June 6, 2022, 2:00pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677 "2022-06-06T14:00:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![prajakta1-618](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/prajakta1-618/32/1963_2.png) [@prajakta1-618](https://www.rubin.community/u/prajakta1-618)\
**Post date:** [June 6, 2022, 2:00pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/1 "2022-06-06T14:00:05Z")

</div>

Hi,  
I’m running [this](https://pipelines.lsst.io/v/daily/getting-started/coaddition.html) part of the LSST pipeline tutorial on the rc\_subset with the lastest weekly (w\_2022\_23). When I run the pipetask to warp the images onto the skymap, I get following error:

> RuntimeError: QuantumGraph is empty.

Complete error log can be found below.

When I check the status of the qgraph, it gives the following output:

> lsst.ctrl.mpexec.cmdLineFwk INFO: QuantumGraph contains 3 quanta for 3 tasks, graph ID: ‘1654520157.0883536-108308’

I’m not sure as to what might be causing this error. Any help with this is appreciated!

Complete error log:

```auto
lsst.pipe.base.graphBuilder WARNING: Dataset type finalized_psf_ap_corr_catalog is not registered.
py.warnings WARNING: /jbodstorage/data_ms19054/lsst_stack/stack/miniconda3-py38_4.9.2-4.0.1/Linux64/ctrl_mpexec/g5ad6d16500+c534962079/python/lsst/ctrl/mpexec/cli/script/qgraph.py:187: UserWarning: QuantumGraph is empty
  qgraph = f.makeGraph(pipelineObj, args)

lsst.daf.butler.cli.utils ERROR: Caught an exception, details are in traceback:
Traceback (most recent call last):
  File "/jbodstorage/data_ms19054/lsst_stack/stack/miniconda3-py38_4.9.2-4.0.1/Linux64/ctrl_mpexec/g5ad6d16500+c534962079/python/lsst/ctrl/mpexec/cli/cmd/commands.py", line 130, in run
    qgraph = script.qgraph(pipelineObj=pipeline, **kwargs)
  File "/jbodstorage/data_ms19054/lsst_stack/stack/miniconda3-py38_4.9.2-4.0.1/Linux64/ctrl_mpexec/g5ad6d16500+c534962079/python/lsst/ctrl/mpexec/cli/script/qgraph.py", line 190, in qgraph
    raise RuntimeError("QuantumGraph is empty.")
RuntimeError: QuantumGraph is empty.

```

---

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [June 7, 2022, 10:36pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/2 "2022-06-07T22:36:37Z")

</div>

> [@prajakta1-618](#):
>
> `finalized_psf_ap_corr_catalog is not registered`

You don’t report the command line you typed, but are you sure you included the `--register-dataset-types` option to `pipetask`?

---

<div class="post-metadata">

**Author:** ![MelissaGraham](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/melissagraham/32/2549_2.png) [@MelissaGraham](https://www.rubin.community/u/MelissaGraham)\
**Post date:** [July 7, 2022, 12:38am UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/3 "2022-07-07T00:38:00Z")

</div>

Hi @prajakta1-618, just doing some late follow-up on this issue. Did Tim’s suggestion to include the `--register-dataset-types` in your command line help with the reported issue?

---

<div class="post-metadata">

**Author:** ![plah](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@plah](https://www.rubin.community/u/plah)\
**Post date:** [September 21, 2022, 2:56am UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/4 "2022-09-21T02:56:28Z")

</div>

I get the same error at the same place in the tutorial. I have look at the FAQ on “QuantumGraph is empty” entry, but it didn’t help. The exact command I used was:

pipetask run -b $RC2\_SUBSET\_DIR/SMALL\_HSC/butler.yaml   
-d “tract = 9813 AND skymap = ‘hsc\_rings\_v1’ AND patch in (38, 39, 40, 41)”   
-p $RC2\_SUBSET\_DIR/pipelines/DRP.yaml#makeWarp   
-i u/$USER/jointcal,u/$USER/fgcm   
-o u/$USER/warps   
–register-dataset-types

---

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [September 26, 2022, 8:47pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/5 "2022-09-26T20:47:15Z")

</div>

Thanks. I have gone through the tutorial myself with the current weekly and I also get the empty graph. This has been filed as [DM-36354](https://jira.lsstcorp.org/browse/DM-36354) and @jeffcarlin will look into it.

---

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [September 26, 2022, 9:12pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/6 "2022-09-26T21:12:00Z")

</div>

> [@plah](#):
>
> -i u/$USER/jointcal,u/$USER/fgcm

We’ve had a look at this and the problem is caused by the tutorial not being updated when the “apply calibration” step was added. If you change the input collection to:

```auto
-i u/$USER/jointcal,u/$USER/fgcm,u/$USER/source_calibration

```

then the command should work.

---

<div class="post-metadata">

**Author:** ![plah](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@plah](https://www.rubin.community/u/plah)\
**Post date:** [September 26, 2022, 11:37pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/7 "2022-09-26T23:37:55Z")

</div>

I tried the substitution for the input and get the below error message:

lsst.daf.butler.registry.\_exceptions.MissingCollectionError: No collection with name ‘u/plah/source\_calibration’ found.

The only directories in u/$USER/ are:  
fgcm jointcal single\_frame warps

When does the source\_calibration directory get made? At present I am at the warping of the images step. In the next tutorial is when we measure sources.

---

<div class="post-metadata">

**Author:** ![jeffcarlin](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/jeffcarlin/32/491_2.png) [@jeffcarlin](https://www.rubin.community/u/jeffcarlin)\
**Post date:** [September 26, 2022, 11:47pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/8 "2022-09-26T23:47:59Z")

</div>

The `source_calibration` collection should have been created as the last step (“Apply the calibrations”) of part 4 ([here](https://pipelines.lsst.io/v/daily/getting-started/uber-cal.html#apply-the-calibrations)).

---

<div class="post-metadata">

**Author:** ![plah](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@plah](https://www.rubin.community/u/plah)\
**Post date:** [September 27, 2022, 11:25pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/9 "2022-09-27T23:25:04Z")

</div>

That worked. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![taceroc](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/taceroc/32/3732_2.png) [@taceroc](https://www.rubin.community/u/taceroc)\
**Post date:** [June 20, 2023, 5:48pm UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/10 "2023-06-20T17:48:17Z")

</div>

Hi, I am doing [Getting started tutorial part 5: coadding images](https://pipelines.lsst.io/getting-started/coaddition.html#getting-started-tutorial-part-5-coadding-images). But I am having the same error as previous mentioned `RuntimeError: QuantumGraph is empty.`

For the wrap part the command that I used  
`pipetask run -b $RC2_SUBSET_DIR/SMALL_HSC/butler.yaml -d "tract = 9813 AND skymap = 'hsc_rings_v1' AND patch in (38, 39, 40, 41)" -p $RC2_SUBSET_DIR/pipelines/DRP.yaml#makeWarp -i u/$USER/jointcal,u/$USER/fgcm,u/$USER/source_calibration -o u/$USER/warps --register-dataset-types`

I added the `u/$USER/source_calibration` as @timj mentioned. But I still have the error.

For the last step “Apply the calibrations” in [Getting started tutorial part 4: Using all the data to calibrate](https://pipelines.lsst.io/getting-started/uber-cal.html) . I was having an error with the command `ValueError: Not all supplied labels (specified or named subsets) are in the pipeline definition, extra labels: {'source_calibration'}`. I changed the subset `#source_calibration` for `#calibrate` (as mentioned in the Wrap Up part of the same tutorial), the command was:

`pipetask run -b $RC2_SUBSET_DIR/SMALL_HSC/butler.yaml -p $RC2_SUBSET_DIR/pipelines/DRP.yaml#calibrate -i u/$USER/single_frame,u/$USER/fgcm,u/$USER/jointcal -o u/$USER/source_calibration --register-dataset-types`

and that work well.

Thank you

---

<div class="post-metadata">

**Author:** ![jeffcarlin](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/jeffcarlin/32/491_2.png) [@jeffcarlin](https://www.rubin.community/u/jeffcarlin)\
**Post date:** [June 23, 2023, 3:08am UTC](https://www.rubin.community/t/error-while-warping-images-onto-a-skymap-in-the-getting-started-tutorial/6677/11 "2023-06-23T03:08:51Z")

</div>

Hi Tatiana -

Could you post more of the traceback that came with the `RuntimeError: QuantumGraph is empty.` message (the full text of the error that was printed to the screen)? Some additional information would help to figure out why you’re getting the error.
