<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:03:10 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-1130] The first argument of calls to FluxTableTask.run() should have the same length as the second one</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1130</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;Yamashita-san reported this error:&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;
 File &lt;span class=&quot;code-quote&quot;&gt;&quot;/data22b/work/takuji/new_pfs_pipeline/drp_stella/python/pfs/drp/stella/fitFluxCal.py&quot;&lt;/span&gt;, line 98, in runDataRef
  ss.fluxTable = self.fluxTable.run([ref.dataId &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ref in armRefList],
 File &lt;span class=&quot;code-quote&quot;&gt;&quot;/data22b/work/takuji/new_pfs_pipeline/drp_stella/python/pfs/drp/stella/FluxTableTask.py&quot;&lt;/span&gt;, line 39, in run
  &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; makeFluxTable(identities, spectra, flags, self.config.ignoreFlags,
 File &lt;span class=&quot;code-quote&quot;&gt;&quot;/data22b/work/takuji/new_pfs_pipeline/drp_stella/python/pfs/drp/stella/makeFluxTable.py&quot;&lt;/span&gt;, line 151, in makeFluxTable
  raise RuntimeError(&lt;span class=&quot;code-quote&quot;&gt;&quot;Length mismatch: %d vs %d&quot;&lt;/span&gt; % (len(identities), len(spectra)))
RuntimeError: Length mismatch: 4 vs 2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;tt&gt;fitFluxCal.py:98&lt;/tt&gt; is among the lines copied from &lt;tt&gt;fluxCalibrate.py&lt;/tt&gt;:&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;
&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ff in pfsMerged.fiberId:
    extracted = pfsMerged.extractFiber(PfsSingle, pfsConfig, ff)
    extracted.fluxTable = self.fluxTable.run(
        [ss.identity.getDict() &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ss in calibrated],  # (A)
        [pfsArmList[ii].extractFiber(PfsSingle, pfsConfig, ff) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ii in fiberToArm[ff]],  # (B)
        MaskHelper.fromMerge([pfsArm.flags &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; pfsArm in pfsArmList]),
    )
    extracted.metadata = getPfsVersions()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;tt&gt;FluxTableTask.run()&lt;/tt&gt; expects that (A) has the same length as (B), but apparently it doesn&apos;t. This and the corresponding segment in &lt;tt&gt;fitFluxCal.py&lt;/tt&gt; should be modified like this:&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;
 &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ff in pfsMerged.fiberId:
     extracted = pfsMerged.extractFiber(PfsSingle, pfsConfig, ff)
     extracted.fluxTable = self.fluxTable.run(
-        [ss.identity.getDict() &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ss in calibrated],
+        [calibrated[ii].identity.getDict() &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ii in fiberToArm[ff]],
         [pfsArmList[ii].extractFiber(PfsSingle, pfsConfig, ff) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ii in fiberToArm[ff]],
         MaskHelper.fromMerge([pfsArm.flags &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; pfsArm in pfsArmList]),
     )
     extracted.metadata = getPfsVersions()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="23172">PIPE2D-1130</key>
            <summary>The first argument of calls to FluxTableTask.run() should have the same length as the second one</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</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="sogo.mineo">sogo.mineo</assignee>
                                    <reporter username="sogo.mineo">sogo.mineo</reporter>
                        <labels>
                            <label>flux-calibration</label>
                    </labels>
                <created>Tue, 13 Dec 2022 07:55:32 +0000</created>
                <updated>Thu, 15 Dec 2022 00:14:49 +0000</updated>
                            <resolved>Thu, 15 Dec 2022 00:14:49 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                <comments>
                            <comment id="31972" author="sogo.mineo" created="Wed, 14 Dec 2022 08:18:28 +0000"  >&lt;p&gt;Could you review this PR?&lt;/p&gt;</comment>
                            <comment id="31979" author="sogo.mineo" created="Thu, 15 Dec 2022 00:14:49 +0000"  >&lt;p&gt;Merged. Thank you for the review.&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|zzsvtj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>price</customfieldvalue>

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