<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:00:47 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-981] ReferenceLineSet.sort() fails</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-981</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;The following example:&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; ReferenceLine, ReferenceLineSet
lines=[]
lines.append(ReferenceLine(&lt;span class=&quot;code-quote&quot;&gt;&apos;OH&apos;&lt;/span&gt;, 3456.0, 1.234, 0))
lines.append(ReferenceLine(&lt;span class=&quot;code-quote&quot;&gt;&apos;NaI&apos;&lt;/span&gt;, 1234.0, 3.0, 0))
lineSet = ReferenceLineSet.fromRows(lines)
lineSet.sort()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;fails with the following error:&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;
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
&amp;lt;ipython-input-80-beabf8b7f75f&amp;gt; in &amp;lt;module&amp;gt;
      4 lines.append(ReferenceLine(&lt;span class=&quot;code-quote&quot;&gt;&apos;NaI&apos;&lt;/span&gt;, 1234.0, 3.0, 0))
      5 lineSet = ReferenceLineSet.fromRows(lines)
----&amp;gt; 6 lineSet.sort()

/tigress/hassans/software/drp_stella/python/pfs/drp/stella/referenceLine.py in sort(self)
    159         Lines are sorted by species and then by wavelength.
    160         &quot;&quot;&quot;
--&amp;gt; 161         self.data.sort_values((&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;wavelength&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;status&quot;&lt;/span&gt;), inplace=True)
    162 
    163     def writeLineList(self, filename):

/tigress/HSC/PFS/stack/20190925/python/miniconda3-4.5.12/envs/lsst-scipipe/lib/python3.7/site-packages/pandas/core/frame.py in sort_values(self, by, axis, ascending, inplace, kind, na_position)
   4717 
   4718             by = by[0]
-&amp;gt; 4719             k = self._get_label_or_level_values(by, axis=axis)
   4720 
   4721             &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; isinstance(ascending, (tuple, list)):

/tigress/HSC/PFS/stack/20190925/python/miniconda3-4.5.12/envs/lsst-scipipe/lib/python3.7/site-packages/pandas/core/&lt;span class=&quot;code-keyword&quot;&gt;generic&lt;/span&gt;.py in _get_label_or_level_values(self, key, axis)
   1704             values = self.axes[axis].get_level_values(key)._values
   1705         &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;:
-&amp;gt; 1706             raise KeyError(key)
   1707 
   1708         # Check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; duplicates

KeyError: (&lt;span class=&quot;code-quote&quot;&gt;&apos;description&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;wavelength&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;status&apos;&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Please fix.&lt;/p&gt;</description>
                <environment></environment>
        <key id="22630">PIPE2D-981</key>
            <summary>ReferenceLineSet.sort() fails</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>Fri, 18 Feb 2022 22:11:55 +0000</created>
                <updated>Fri, 18 Feb 2022 22:52:17 +0000</updated>
                            <resolved>Fri, 18 Feb 2022 22:52:17 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                <comments>
                            <comment id="30491" author="hassan" created="Fri, 18 Feb 2022 22:52:17 +0000"  >&lt;p&gt;Fix 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|zzst3r:</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>