<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:00:55 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-993] reduceExposure fails when using PFI calib and 2d sky subtraction</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-993</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;Running &lt;tt&gt;reduceExposure.py&lt;/tt&gt; with 2D sky subtraction enabled using the calib &lt;tt&gt;CALIB-PFI-20211220&lt;/tt&gt; fails in the aperture correction computation:&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;
$ reduceExposure.py /projects/HSC/PFS/Subaru --calib /projects/HSC/PFS/Subaru/CALIB-PFI-20211220 --rerun=hassans/sunss/v46588_calibpfi --doraise --id visit=46588 arm=b^r -c measurePsf.oversampleFactor=11 measurePsf.version=Aug0121_v1 measurePsf.targetSize=21 doWriteCalexp=True doSubtractSky2d=True doMeasurePsf=True isr.doFlat=False
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;/tigress/hassans/software/drp_stella/python/pfs/drp/stella/reduceExposure.py&quot;&lt;/span&gt;, line 278, in runDataRef
    linesList, apCorrList)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py&quot;&lt;/span&gt;, line 164, in run
    image = self.subtractSky(exposure, psf, fiberTrace, detectorMap, pfsConfig, sky2d, apCorr)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py&quot;&lt;/span&gt;, line 295, in subtractSky
    image = self.makeSkyImage(exposure.getBBox(), psf, fiberTraces, pfsConfig, sky2d, apCorr)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py&quot;&lt;/span&gt;, line 259, in makeSkyImage
    model.flux[ii], invert=True)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/tigress/hassans/software/drp_stella/python/pfs/drp/stella/apertureCorrections.py&quot;&lt;/span&gt;, line 316, in calculateApertureCorrection
    result = apCorr(wavelength, pfsConfig.select(fiberId=fiberId))
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/tigress/hassans/software/drp_stella/python/pfs/drp/stella/focalPlaneFunction.py&quot;&lt;/span&gt;, line 156, in __call__
    result.values = result.values[0]
IndexError: index 0 is out of bounds &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; axis 0 with size 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is not the case when using the &lt;tt&gt;CALIB-SuNSS-2021-06-16&lt;/tt&gt; calib. Please investigate.&lt;/p&gt;</description>
                <environment></environment>
        <key id="22654">PIPE2D-993</key>
            <summary>reduceExposure fails when using PFI calib and 2d sky subtraction</summary>
                <type id="1" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10503&amp;avatarType=issuetype">Bug</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="hassan">hassan</assignee>
                                    <reporter username="hassan">hassan</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Feb 2022 16:42:54 +0000</created>
                <updated>Mon, 14 Mar 2022 19:08:46 +0000</updated>
                            <resolved>Mon, 14 Mar 2022 19:08:46 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="30524" author="hassan" created="Mon, 28 Feb 2022 16:49:37 +0000"  >&lt;p&gt;Problem occurs because the code currently expects all the fibers where information is available in the calib, to be present in the &lt;tt&gt;pfsConfig&lt;/tt&gt;. For example, there is fiber trace information for &lt;tt&gt;fiberId=2&lt;/tt&gt;, but the relevant pfsConfig does not list fiberId 2 at all, resulting in no data to extract from the &lt;tt&gt;pfsConfig&lt;/tt&gt; for subsequent processing.&lt;/p&gt;

&lt;p&gt;These scenarios should be avoided.&lt;/p&gt;</comment>
                            <comment id="30557" author="hassan" created="Mon, 7 Mar 2022 20:53:09 +0000"  >&lt;p&gt;Problem slightly more extended than the above comment. Basically a book-keeping problem: the&#160;list of fiberIds from&#160;&lt;tt&gt;pfsConfig&lt;/tt&gt;, the aperture correction object ( &lt;tt&gt;apCorr&lt;/tt&gt; ) and&#160;supplied &lt;tt&gt;fiberTraces&lt;/tt&gt; should all be aligned. Added code to ensure that.&lt;/p&gt;</comment>
                            <comment id="30574" author="hassan" created="Mon, 14 Mar 2022 19:08:46 +0000"  >&lt;p&gt;Merged to master.&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|02qpq3:r3s000000000067r</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="134">2DDRP-2022 B</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        </customfields>
    </item>
</channel>
</rss>