<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:53:03 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-427] reduceArc.py fails with HgAr data taken May 06, 2019</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-427</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;I am unable to run &lt;tt&gt;reduceArc.py&lt;/tt&gt; on the HgAr data taken at LAM on May 06, 2019.&lt;/p&gt;

&lt;p&gt;The script that I have used to ingest data and prepare calibrations is at: &lt;tt&gt;/home/ncaplar/ReductionScripts/May21/pfs_preparation_May.sh&lt;/tt&gt;. It uses the suggested &lt;tt&gt;pfs_build_calibs.sh&lt;/tt&gt;, which can also be found in the same folder.&lt;/p&gt;

&lt;p&gt;Script that I used, which has &lt;tt&gt;reduceArc.py&lt;/tt&gt; command, &lt;tt&gt;pfs_May22_Neon_May_defocus.sh&lt;/tt&gt;, is in the same folder.&lt;/p&gt;

&lt;p&gt;Note that with the same preparation, and using equivalent scripts, Neon and Krypton data passes &lt;tt&gt;reduceArc.py&lt;/tt&gt; command. &lt;/p&gt;

&lt;p&gt;The output from running the final script is at:&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/nevencaplar/4131a30fd406f9f4c0d55aea8ccb348a&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/nevencaplar/4131a30fd406f9f4c0d55aea8ccb348a&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="13585">PIPE2D-427</key>
            <summary>reduceArc.py fails with HgAr data taken May 06, 2019</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="ncaplar">ncaplar</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 May 2019 14:05:59 +0000</created>
                <updated>Thu, 23 May 2019 13:15:55 +0000</updated>
                            <resolved>Wed, 22 May 2019 22:50:25 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="15484" author="hassan" created="Wed, 22 May 2019 14:24:19 +0000"  >&lt;p&gt;Excerpt from script output (L485) showing the error is shown below:&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;
reduceArc FATAL: Failed on dataId={&lt;span class=&quot;code-quote&quot;&gt;&apos;visit&apos;&lt;/span&gt;: 17075, &lt;span class=&quot;code-quote&quot;&gt;&apos;arm&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;r&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;dateObs&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;2019-05-06&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;site&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;L&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;category&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;A&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;expId&apos;&lt;/span&gt;: 17075, &lt;span class=&quot;code-quote&quot;&gt;&apos;spectrograph&apos;&lt;/span&gt;: 1, &lt;span class=&quot;code-quote&quot;&gt;&apos;field&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;ARC&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;ccd&apos;&lt;/span&gt;: 1, &lt;span class=&quot;code-quote&quot;&gt;&apos;filter&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;r&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;expTime&apos;&lt;/span&gt;: 15.0, &lt;span class=&quot;code-quote&quot;&gt;&apos;dataType&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;arc&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;taiObs&apos;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&apos;2019-05-06&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;pfiDesignId&apos;&lt;/span&gt;: 1099528409104, &lt;span class=&quot;code-quote&quot;&gt;&apos;slitOffset&apos;&lt;/span&gt;: 0.0}: Exception: 
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;src/math/CurveFitting.cc&quot;&lt;/span&gt;, line 330, in std::tuple&amp;lt;&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;, ImageT, ImageT, ImageT&amp;gt; pfs::drp::stella::math::{anonymous}::fitProfile1d(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ndarray::ArrayRef&amp;lt;&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ImageT, 1, 1&amp;gt;&amp;amp;, &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ndarray::ArrayRef&amp;lt;&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ImageT, 1, 1&amp;gt;&amp;amp;, &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ndarray::ArrayRef&amp;lt;bool, 1, 1&amp;gt;&amp;amp;, &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ndarray::ArrayRef&amp;lt;ImageT, 1, 1&amp;gt;&amp;amp;, &lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;, bool) [with ImageT = &lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;]
    fitProfile1d:: i = 2: ERROR: dataVar(i) == 0. {0}
lsst::pex::exceptions::Exception: &lt;span class=&quot;code-quote&quot;&gt;&apos;fitProfile1d:: i = 2: ERROR: dataVar(i) == 0.&apos;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="15495" author="price" created="Wed, 22 May 2019 19:10:42 +0000"  >&lt;p&gt;The error is that there is a negative variance (at 1605,469). It appears to be coming from the dark: the value of the dark is -0.01 per second, and after bias subtraction the pixel is already negative (-20). The variance is set after dark subtraction, so we end up with a negative variance. I&apos;m going to post-process the image after ISR to remove negative variances.&lt;/p&gt;</comment>
                            <comment id="15496" author="price" created="Wed, 22 May 2019 19:17:01 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hassan&quot; class=&quot;user-hover&quot; rel=&quot;hassan&quot;&gt;hassan&lt;/a&gt;, could you please review these changes?&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;
price@MacBook:~/pfs/drp_stella (tickets/PIPE2D-427=) $ git sub
commit 5bd04dcf79fadefaada86df2e09577309f7c9145 (HEAD -&amp;gt; tickets/PIPE2D-427, origin/tickets/PIPE2D-427)
Author: Paul Price &amp;lt;price@astro.princeton.edu&amp;gt;
Date:   Wed May 22 15:08:24 2019 -0400

    reduceExposure: mask negative variance pixels
    
    We have low count levels compared to imaging, so we sometimes have
    pixels that are negative after bias+dark, which means the variance
    gets set to a negative number, which causes problems downstream
    (e.g., CurveFitting.cc:330). Find these pixels, set the variance
    to infinity and mask them as BAD.

 python/pfs/drp/stella/reduceExposure.py | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="15497" author="ncaplar" created="Wed, 22 May 2019 22:06:16 +0000"  >&lt;p&gt;Reduction passed successfully after these changes. &lt;/p&gt;</comment>
                            <comment id="15498" author="price" created="Wed, 22 May 2019 22:50:25 +0000"  >&lt;p&gt;Merged to master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="13546">PIPE2D-414</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="13588">PIPE2D-430</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="13586">PIPE2D-428</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|02qpt6:508yjo4</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="49">2DDRP-2019 E</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>