<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:56:34 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-691] Fix sky subtraction for pfsObject</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-691</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;I processed the weekly data with DRP version `w.2020.51` and it looks that the sky subtraction for `pfsObject` is not fixed, though `pfsMerged` looks OK. Please investigate the cause and fix it.&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/13307/13307_test_pfsMerged.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/13338/13338_test_pfsObject.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="15202">PIPE2D-691</key>
            <summary>Fix sky subtraction for pfsObject</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="price">price</assignee>
                                    <reporter username="kiyoto.yabe">Kiyoto Yabe</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Jan 2021 23:51:32 +0000</created>
                <updated>Mon, 1 Feb 2021 21:00:31 +0000</updated>
                            <resolved>Wed, 20 Jan 2021 15:54:16 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="18364" author="price" created="Tue, 19 Jan 2021 21:35:42 +0000"  >&lt;p&gt;I ran my fix on the integration test, and the result is below. It&apos;s a smaller number of fibers, but should be enough to demonstrate that it&apos;s fixed.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/13336/13336_pipe2d-691-fixed.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;/p&gt;</comment>
                            <comment id="18365" author="price" created="Tue, 19 Jan 2021 21:47:58 +0000"  >&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;import&lt;/span&gt; matplotlib.pyplot as plt
&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; matplotlib.cm
from lsst.daf.persistence &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; Butler
from pfs.datamodel.utils &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; calculatePfsVisitHash
butler = Butler(&lt;span class=&quot;code-quote&quot;&gt;&quot;/scratch/pprice/pipe2d-691/INTEGRATION/rerun/integration/pipeline&quot;&lt;/span&gt;)
visits = [24, 25]
objId = [0x12, 0x37, 0x47, 0x4c, 0x5d, 0x5e, 0x69]
cmap = matplotlib.cm.rainbow
axes = plt.subplot()
&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ii, obj in enumerate(objId):
    spectrum = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;pfsObject&quot;&lt;/span&gt;, catId=1, tract=0, patch=&lt;span class=&quot;code-quote&quot;&gt;&quot;0,0&quot;&lt;/span&gt;, objId=obj, nVisit=len(visits), pfsVisitHash=calculatePfsVisitHash(visits))
    axes.plot(spectrum.wavelength, spectrum.flux, ls=&lt;span class=&quot;code-quote&quot;&gt;&quot;-&quot;&lt;/span&gt;, color=cmap(ii/len(objId)))

axes.set_xlim(891.5, 893.0)
axes.set_ylim(-1.0e5, +1.0e5)
axes.set_xlabel(&lt;span class=&quot;code-quote&quot;&gt;&quot;Wavelength (nm)&quot;&lt;/span&gt;)
axes.set_ylabel(&lt;span class=&quot;code-quote&quot;&gt;&quot;Flux (nJy)&quot;&lt;/span&gt;)
plt.show()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="18367" author="hassan" created="Tue, 19 Jan 2021 23:00:01 +0000"  >&lt;p&gt;Reviewed. Changes look OK. If you can respond to my single comment wrt the &lt;tt&gt;doSubtractSky1dBeforeMerge&lt;/tt&gt;  optiont removal, that would be appreciated.&lt;/p&gt;</comment>
                            <comment id="18370" author="kiyoto.yabe" created="Wed, 20 Jan 2021 13:41:08 +0000"  >&lt;p&gt;I also confirmed the fix, which looks good. Thanks.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/13338/13338_test_pfsObject.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="18371" author="price" created="Wed, 20 Jan 2021 15:54:16 +0000"  >&lt;p&gt;Merged to master.&lt;/p&gt;</comment>
                            <comment id="18372" author="price" created="Wed, 20 Jan 2021 16:20:27 +0000"  >&lt;p&gt;Reverted the removal of the option to switch between sky subtraction before and after merging: &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=rhl&quot; class=&quot;user-hover&quot; rel=&quot;rhl&quot;&gt;rhl&lt;/a&gt; pointed out that we need this feature.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="14925">PIPE2D-644</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15093">PIPE2D-680</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13336" name="pipe2d-691-fixed.png" size="42991" author="price" created="Tue, 19 Jan 2021 21:34:21 +0000"/>
                            <attachment id="13307" name="test_pfsMerged.png" size="98331" author="kiyoto.yabe" created="Mon, 4 Jan 2021 23:50:09 +0000"/>
                            <attachment id="13338" name="test_pfsObject.png" size="49183" author="kiyoto.yabe" created="Wed, 20 Jan 2021 13:40:44 +0000"/>
                            <attachment id="13306" name="test_pfsObject.png" size="49862" author="kiyoto.yabe" created="Mon, 4 Jan 2021 23:50:22 +0000"/>
                    </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|02qps3:1w</customfieldvalue>

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

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

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