<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:59:23 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-889] pfsConfig.selectByFiberStatus does not return the fiber indices</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-889</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;The method &lt;tt&gt;PfsConfig.selectByFiberStatus()&lt;/tt&gt; returns indices of each fiberId specified, if that fiber has the corresponding &lt;tt&gt;FiberStatus&lt;/tt&gt; matching that specified in the method argument.&lt;/p&gt;

&lt;p&gt;However the method does not behave as expected. The outputs of the following two lines should be the same:&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;
pfsConfig.selectFiber([3, 201, 649])
array([  0,  84, 253])
pfsConfig.selectByFiberStatus(pfs.datamodel.FiberStatus.GOOD, [3, 201, 649])
array([0, 1, 2])
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="17006">PIPE2D-889</key>
            <summary>pfsConfig.selectByFiberStatus does not return the fiber indices</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="10100" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="No further work should be done on this.">Won&apos;t Fix</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="price">price</assignee>
                                    <reporter username="hassan">hassan</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Aug 2021 18:19:53 +0000</created>
                <updated>Mon, 23 Aug 2021 18:51:36 +0000</updated>
                            <resolved>Mon, 23 Aug 2021 18:51:36 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="21848" author="price" created="Mon, 23 Aug 2021 18:43:39 +0000"  >&lt;p&gt;This is behaving exactly as expected. &lt;tt&gt;pfsConfig.selectFiber(&lt;span class=&quot;error&quot;&gt;&amp;#91;3, 201, 649&amp;#93;&lt;/span&gt;)&lt;/tt&gt; returns the indices of the provided fiberIds. &lt;tt&gt;pfsConfig.selectByFiberStatus(pfs.datamodel.FiberStatus.GOOD, &lt;span class=&quot;error&quot;&gt;&amp;#91;3, 201, 649&amp;#93;&lt;/span&gt;)&lt;/tt&gt; returns the indices of fibers that are &lt;tt&gt;GOOD&lt;/tt&gt; in the provided array, and since fibers 3, 201 and 649 are all &lt;tt&gt;GOOD&lt;/tt&gt;, you get indices &lt;tt&gt;0, 1, 2&lt;/tt&gt; (see &lt;a href=&quot;https://github.com/Subaru-PFS/datamodel/blob/master/python/pfs/datamodel/pfsConfig.py#L627-L628&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/datamodel/blob/master/python/pfs/datamodel/pfsConfig.py#L627-L628&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;pfsConfig.selectByFiberStatus&lt;/tt&gt; is from a while ago, and I don&apos;t think it&apos;s the most helpful. I now find myself using &lt;tt&gt;pfsConfig.select&lt;/tt&gt; and &lt;tt&gt;pfsArm.select&lt;/tt&gt; in most places I want to select fibers.&lt;/p&gt;</comment>
                            <comment id="21849" author="hassan" created="Mon, 23 Aug 2021 18:51:25 +0000"  >&lt;p&gt;You are right, sorry. The issue is in a different area with respect to &lt;tt&gt;DisplayDetectorMap&lt;/tt&gt;. Closing ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="17004">PIPE2D-887</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17005">PIPE2D-888</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|zzs8yo:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="116">2DDRP-2021 A 8</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>