<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:04:02 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[PIPE2D-1189] fitFluxCal fails on making flux table</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1189</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ fitFluxCal.py /work/drp --calib=/work/drp/CALIB --rerun=test01 --no-versions --clobber-config --id visit=82905 &lt;span class=&quot;code-quote&quot;&gt;&apos;spectrograph=1^3&apos;&lt;/span&gt;
[...]
fitFluxCal FATAL: Failed on dataId={&lt;span class=&quot;code-quote&quot;&gt;&apos;visit&apos;&lt;/span&gt;: 82905, &lt;span class=&quot;code-quote&quot;&gt;&apos;spectrograph&apos;&lt;/span&gt;: 3, &lt;span class=&quot;code-quote&quot;&gt;&apos;dateObs&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;2022-11-18&apos;&lt;/span&gt;}: KeyError: &lt;span class=&quot;code-quote&quot;&gt;&apos;NO_DATA&apos;&lt;/span&gt;
Traceback (most recent call last):
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py&quot;&lt;/span&gt;, line 436, in __call__
    result = self.runTask(task, dataRef, kwargs)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py&quot;&lt;/span&gt;, line 504, in runTask
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; task.runDataRef(dataRef, **kwargs)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/takuji/pipeline/drp_stella/python/pfs/drp/stella/fitFluxCal.py&quot;&lt;/span&gt;, line 206, in runDataRef
    outputs = self.run(pfsMerged, pfsMergedLsf, references, pfsConfig, pfsArmList, sky1dList)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/takuji/pipeline/drp_stella/python/pfs/drp/stella/fitFluxCal.py&quot;&lt;/span&gt;, line 130, in run
    extracted.fluxTable = self.fluxTable.run(
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/takuji/pipeline/drp_stella/python/pfs/drp/stella/FluxTableTask.py&quot;&lt;/span&gt;, line 37, in run
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; makeFluxTable(identities, spectra, self.config.ignoreFlags,
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/takuji/pipeline/drp_stella/python/pfs/drp/stella/makeFluxTable.py&quot;&lt;/span&gt;, line 161, in makeFluxTable
    maskVal = flags.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;NO_DATA&quot;&lt;/span&gt;, *ignoreFlags)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/takuji/pipeline/datamodel/python/pfs/datamodel/masks.py&quot;&lt;/span&gt;, line 47, in get
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; sum(self[name] &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; name in args)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/takuji/pipeline/datamodel/python/pfs/datamodel/masks.py&quot;&lt;/span&gt;, line 47, in &amp;lt;genexpr&amp;gt;
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; sum(self[name] &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; name in args)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/work/takuji/pipeline/datamodel/python/pfs/datamodel/masks.py&quot;&lt;/span&gt;, line 35, in __getitem__
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 2**self.flags[name]
KeyError: &lt;span class=&quot;code-quote&quot;&gt;&apos;NO_DATA&apos;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This looks like a bug from a corner case: it&apos;s iterating over a fiber that doesn&apos;t have any data associated with it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="23317">PIPE2D-1189</key>
            <summary>fitFluxCal fails on making flux table</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="price">price</assignee>
                                    <reporter username="takuji.yamashita">Takuji Yamashita</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 Mar 2023 14:28:54 +0000</created>
                <updated>Mon, 20 Mar 2023 18:44:43 +0000</updated>
                            <resolved>Mon, 20 Mar 2023 18:44:43 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                <comments>
                            <comment id="32456" author="price" created="Mon, 20 Mar 2023 17:09:08 +0000"  >&lt;p&gt;I&apos;ve fixed the error by reducing the selection of fibers to those that are available, but the root of the problem is the use of &lt;tt&gt;spectrograph=1^3&lt;/tt&gt; in the &lt;tt&gt;&amp;#45;&amp;#45;id&lt;/tt&gt; specification. Since the input to the task is a visit, this gets parsed as one visit with &lt;tt&gt;spectrograph=1&lt;/tt&gt; and one visit with &lt;tt&gt;spectrograph=3&lt;/tt&gt;. There is a warning in the log:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
root WARN: Unexpected ID spectrograph; guessing type is &lt;span class=&quot;code-quote&quot;&gt;&quot;str&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;That&apos;s not exactly clear, and this behaviour is not really what we want, but since we&apos;re going to be dumping the Gen2 middleware soon-ish, I&apos;m not going to go to the trouble of discovering what the proper fix should be. Users should take note that sub-components of a visit should not be specified for &lt;tt&gt;fitFluxCal.py&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="32457" author="price" created="Mon, 20 Mar 2023 18:44:43 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzswk7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>