<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:58:12 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-797] Running FitContinuumTask from a notebook returns an empty image</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-797</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;The following code with &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;dataId = {&lt;span class=&quot;code-quote&quot;&gt;&apos;visit&apos;&lt;/span&gt;: 46032, &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;spectrograph&apos;&lt;/span&gt;: 1} &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; returns an empty image;  in fact, &lt;tt&gt;continuum&lt;/tt&gt; contains no fibres.&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;
from pfs.drp.stella &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; SpectrumSet

exp = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;calexp&quot;&lt;/span&gt;, dataId)
detMap = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;detectorMap&quot;&lt;/span&gt;, dataId)
spectra = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;pfsArm&quot;&lt;/span&gt;, dataId)
profiles = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;fiberProfiles&quot;&lt;/span&gt;, dataId)

traces = profiles.makeFiberTracesFromDetectorMap(detMap)

continua = fitContinuumTask.run(SpectrumSet.fromPfsArm(spectra))
im = continua.makeImage(exp.getBBox(), traces)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="15501">PIPE2D-797</key>
            <summary>Running FitContinuumTask from a notebook returns an empty image</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="rhl">rhl</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Mar 2021 16:02:11 +0000</created>
                <updated>Fri, 28 Jan 2022 17:16:27 +0000</updated>
                            <resolved>Wed, 28 Jul 2021 16:02:46 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="19053" author="rhl" created="Fri, 26 Mar 2021 20:23:36 +0000"  >&lt;p&gt;Please add &lt;tt&gt;&lt;em&gt;DefaultName&lt;/tt&gt; if you&apos;re in this code (and maybe check that _all&lt;/em&gt; Tasks have it set).&lt;/p&gt;</comment>
                            <comment id="21752" author="price" created="Wed, 28 Jul 2021 15:02:41 +0000"  >&lt;p&gt;It works for me with the current version. Maybe it got fixed as part of something else recently? But I&apos;ll go ahead and add &lt;tt&gt;&amp;#95;DefaultName&lt;/tt&gt; to all tasks.&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-SuNSS-2021-06-16 --rerun price/pipe2d-797 --id visit=46032 arm=r -c isr.doFlat=False doWriteCalexp=True

&amp;gt;&amp;gt;&amp;gt; from lsst.daf.persistence &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; Butler
&amp;gt;&amp;gt;&amp;gt; from pfs.drp.stella &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; SpectrumSet
&amp;gt;&amp;gt;&amp;gt; from pfs.drp.stella.fitContinuum &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; FitContinuumTask
&amp;gt;&amp;gt;&amp;gt; from lsst.afw.display &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; Display
&amp;gt;&amp;gt;&amp;gt; butler = Butler(&lt;span class=&quot;code-quote&quot;&gt;&quot;/projects/HSC/PFS/Subaru/rerun/price/pipe2d-797&quot;&lt;/span&gt;)
&amp;gt;&amp;gt;&amp;gt; fitContinuumTask = FitContinuumTask(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;fitContinuum&quot;&lt;/span&gt;)
&amp;gt;&amp;gt;&amp;gt; dataId = {&lt;span class=&quot;code-quote&quot;&gt;&apos;visit&apos;&lt;/span&gt;: 46032, &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;spectrograph&apos;&lt;/span&gt;: 1} 
&amp;gt;&amp;gt;&amp;gt; exp = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;calexp&quot;&lt;/span&gt;, dataId)
&amp;gt;&amp;gt;&amp;gt; detMap = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;detectorMap&quot;&lt;/span&gt;, dataId)
&amp;gt;&amp;gt;&amp;gt; spectra = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;pfsArm&quot;&lt;/span&gt;, dataId)
&amp;gt;&amp;gt;&amp;gt; profiles = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;fiberProfiles&quot;&lt;/span&gt;, dataId)
&amp;gt;&amp;gt;&amp;gt; traces = profiles.makeFiberTracesFromDetectorMap(detMap)
&amp;gt;&amp;gt;&amp;gt; continua = fitContinuumTask.run(SpectrumSet.fromPfsArm(spectra))
&amp;gt;&amp;gt;&amp;gt; im = continua.makeImage(exp.getBBox(), traces)
&amp;gt;&amp;gt;&amp;gt; Display(frame=1, backend=&lt;span class=&quot;code-quote&quot;&gt;&quot;ds9&quot;&lt;/span&gt;).mtv(im)
&amp;gt;&amp;gt;&amp;gt; (im.array &amp;gt; 0).sum()
6947238
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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/13961/13961_pipe2d-797.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="21753" author="price" created="Wed, 28 Jul 2021 15:59:03 +0000"  >&lt;p&gt;Added &lt;tt&gt;&amp;#95;DefaultName&lt;/tt&gt; where it was missing.&lt;/p&gt;</comment>
                            <comment id="21754" author="price" created="Wed, 28 Jul 2021 16:02:46 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;</comment>
                            <comment id="21755" author="hassan" created="Wed, 28 Jul 2021 16:02:52 +0000"  >&lt;p&gt;Software changes related to &lt;tt&gt;_DetaultName&lt;/tt&gt; look fine to me.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13961" name="pipe2d-797.png" size="119118" author="price" created="Wed, 28 Jul 2021 15:02:09 +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|02qpq3:r25</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="102">2DDRP-2021 A3</customfieldvalue>

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