<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:02:08 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-1056] fitPfsFluxReference.py: type mismatch caused by 32bit mask</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1056</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;When PfsMerged with 32bit mask is input to fitPfsFluxReference.py, the following exception is raised, because 64bit integer cannot be shortened to the 32bit mask.&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;
Traceback (most recent call last):
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/lsst_stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/multiprocessing/pool.py&quot;&lt;/span&gt;, line 125, in worker
    result = (True, func(*args, **kwds))
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/lsst_stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/multiprocessing/pool.py&quot;&lt;/span&gt;, line 48, in mapstar
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; list(map(*args))
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/lsst_stack/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py&quot;&lt;/span&gt;, line 433, in __call__
    result = self.runTask(task, dataRef, kwargs)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/lsst_stack/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py&quot;&lt;/span&gt;, line 504, in runTask
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; task.runDataRef(dataRef, **kwargs)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/pfs_pipeline/drp_stella/python/pfs/drp/stella/fitPfsFluxReference.py&quot;&lt;/span&gt;, line 146, in runDataRef
    reference = self.run(pfsConfig, merged, mergedLsf)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/pfs_pipeline/drp_stella/python/pfs/drp/stella/fitPfsFluxReference.py&quot;&lt;/span&gt;, line 247, in run
    likelihoods = self.fitModelsToSpectra(
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/pfs_pipeline/drp_stella/python/pfs/drp/stella/fitPfsFluxReference.py&quot;&lt;/span&gt;, line 465, in fitModelsToSpectra
    obsSpectra = self.maskUninterestingRegions(obsSpectra)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/pfs_pipeline/drp_stella/python/pfs/drp/stella/fitPfsFluxReference.py&quot;&lt;/span&gt;, line 735, in maskUninterestingRegions
    spectra.mask[...] |= np.where(
TypeError: ufunc &lt;span class=&quot;code-quote&quot;&gt;&apos;bitwise_or&apos;&lt;/span&gt; output (typecode &lt;span class=&quot;code-quote&quot;&gt;&apos;l&apos;&lt;/span&gt;) could not be coerced to provided output parameter (typecode &lt;span class=&quot;code-quote&quot;&gt;&apos;I&apos;&lt;/span&gt;) according to the casting rule &lt;span class=&quot;code-quote&quot;&gt;&apos;&apos;same_kind&apos;&lt;/span&gt;&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="22860">PIPE2D-1056</key>
            <summary>fitPfsFluxReference.py: type mismatch caused by 32bit mask</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>Fri, 1 Jul 2022 05:22:03 +0000</created>
                <updated>Thu, 7 Jul 2022 06:12:40 +0000</updated>
                            <resolved>Mon, 4 Jul 2022 00:52:11 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="31080" author="sogo.mineo" created="Fri, 1 Jul 2022 07:51:39 +0000"  >&lt;p&gt;Could you review this PR?&lt;/p&gt;</comment>
                            <comment id="31081" author="price" created="Fri, 1 Jul 2022 16:39:01 +0000"  >&lt;p&gt;Changes look fine, but I&apos;m concerned that we&apos;re using 64-bit masks somewhere. Everything should be 32-bit, I thought.&lt;/p&gt;</comment>
                            <comment id="31082" author="sogo.mineo" created="Mon, 4 Jul 2022 00:19:34 +0000"  >&lt;p&gt;One of the origins of 64bit integers is &lt;tt&gt;ii&lt;/tt&gt; at pfs/datamodel/masks.py line 61. Because &lt;tt&gt;ii&lt;/tt&gt; is python&apos;s integer, &lt;tt&gt;value&lt;/tt&gt; at line 63 is python&apos;s integer. &lt;tt&gt;self.flags&lt;span class=&quot;error&quot;&gt;&amp;#91;name&amp;#93;&lt;/span&gt;&lt;/tt&gt; at line 67 and &lt;tt&gt;2**self.flags&lt;span class=&quot;error&quot;&gt;&amp;#91;name&amp;#93;&lt;/span&gt;&lt;/tt&gt; at line 35 are also python&apos;s integer. Therefore MaskHelper.add() returns python&apos;s integer. Because I had written &quot;&lt;tt&gt;np.where(condition, 0, spectra.flags.add(&quot;EDGE&quot;))&lt;/tt&gt;,&quot; the array returned by this &lt;tt&gt;np.where&lt;/tt&gt; had been of &lt;tt&gt;np.int64&lt;/tt&gt; type. This is why I changed &lt;tt&gt;np,where(...)&lt;/tt&gt; to &lt;tt&gt;np,where(...).astype(lhs.dtype)&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="31083" author="sogo.mineo" created="Mon, 4 Jul 2022 00:52:11 +0000"  >&lt;p&gt;Merged to master. Thanks for your 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_10006" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PIPE2D-303</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|02qpjd:00xznup2cri</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>