<!-- 
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-890] fiberProfileSet does not return the expected number of fibers</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-890</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;As expected following &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-819&quot; title=&quot;fiberProfiles should contain an entry for every fibre in pfsConfig for that spectrograph&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-819&quot;&gt;&lt;del&gt;PIPE2D-819&lt;/del&gt;&lt;/a&gt;, when reading in an example SuNSS &lt;tt&gt;fiberProfileSet&lt;/tt&gt; instance, the number of fibers returned is expected to be 254, so the number of good fibers (251) plus the 3 known bad fibers.&lt;/p&gt;

&lt;p&gt;However only 251 fibers are returned in this particular case:&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;
In [1]: &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; lsst.daf.persistence as dafPersist 
   ...: dataDir=&lt;span class=&quot;code-quote&quot;&gt;&apos;/projects/HSC/PFS/Subaru&apos;&lt;/span&gt; 
   ...: calibRoot=&lt;span class=&quot;code-quote&quot;&gt;&apos;/projects/HSC/PFS/Subaru/CALIB-SuNSS-2021-06-16&apos;&lt;/span&gt; 
   ...: butler = dafPersist.Butler(dataDir, calibRoot=calibRoot) 
   ...: dataId = dict(visit=46229, arm=&lt;span class=&quot;code-quote&quot;&gt;&quot;r&quot;&lt;/span&gt;, spectrograph=1) 
   ...: fiberProfiles = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&quot;fiberProfiles&quot;&lt;/span&gt;, dataId) 
   ...: len(fiberProfiles.fiberId)                                                                                                                                         
CameraMapper INFO: Loading exposure registry from /projects/HSC/PFS/Subaru/registry.sqlite3
CameraMapper INFO: Loading calib registry from /projects/HSC/PFS/Subaru/CALIB-SuNSS-2021-06-16/calibRegistry.sqlite3
Out[1]: 251
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Moreover, the indexing is such that one has to specify the fiberId, not the element position:&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;
In [6]: fiberProfiles[0]                                                                                                                                                   
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
&amp;lt;ipython-input-6-53f0baa2a284&amp;gt; in &amp;lt;module&amp;gt;
----&amp;gt; 1 fiberProfiles[0]

/tigress/HSC/PFS/stack/20190925/stack/miniconda3-4.5.12-1172c30/Linux64/drp_stella/w.2021.34/python/pfs/drp/stella/fiberProfileSet.py in __getitem__(self, fiberId)
     79 
     80     def __getitem__(self, fiberId):
---&amp;gt; 81         &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; self.fiberProfiles[fiberId]
     82 
     83     def __setitem__(self, fiberId, fiberProfile):

KeyError: 0

In [7]: fiberProfiles[3]                                                                                                                                                   
Out[7]: &amp;lt;pfs.drp.stella.fiberProfile.FiberProfile at 0x2b8346e68fd0&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It would be useful, and consistent, to have the NumPy-style indexing on a boolean condition (as implemented for &lt;tt&gt;pfsConfig&lt;/tt&gt; in &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-770&quot; title=&quot;Support sub-selection of pfsConfig&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-770&quot;&gt;&lt;del&gt;PIPE2D-770&lt;/del&gt;&lt;/a&gt;), such that:&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;
fiberProfiles[fiberProfiles.fiberId==3]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;returns the &lt;tt&gt;FiberProfile&lt;/tt&gt; corresponding to fiberId 3.&lt;/p&gt;</description>
                <environment></environment>
        <key id="17007">PIPE2D-890</key>
            <summary>fiberProfileSet does not return the expected number of fibers</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="1" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="price">price</assignee>
                                    <reporter username="hassan">hassan</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Aug 2021 20:51:27 +0000</created>
                <updated>Tue, 24 Aug 2021 20:51:27 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                    <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15442">PIPE2D-770</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15567">PIPE2D-819</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|zzs8z4:</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>