<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:57:19 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-751] Please add a vectorised version of  DetectorMap.getWavelength(fid, y)</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-751</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;The need to loop over &lt;tt&gt;y&lt;/tt&gt; in python calling &lt;tt&gt;DetectorMap.getWavelength(fid, y)&lt;/tt&gt; is a significant slow-down in SuNSS analysis.  Please provide a version that accepts a numpy array as the second argument.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15415">PIPE2D-751</key>
            <summary>Please add a vectorised version of  DetectorMap.getWavelength(fid, y)</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="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="rhl">rhl</reporter>
                        <labels>
                            <label>SuNSS</label>
                    </labels>
                <created>Wed, 3 Mar 2021 02:18:49 +0000</created>
                <updated>Mon, 5 Apr 2021 21:19:10 +0000</updated>
                            <resolved>Mon, 5 Apr 2021 21:19:10 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="18711" author="rhl" created="Wed, 3 Mar 2021 02:51:55 +0000"  >&lt;p&gt;The lack of this function is for example significantly slows the analysis of OH &lt;tt&gt;arcLines&lt;/tt&gt; files from SuNSS.&lt;/p&gt;</comment>
                            <comment id="18718" author="price" created="Wed, 3 Mar 2021 15:47:07 +0000"  >&lt;p&gt;This function exists, but is named &lt;a href=&quot;https://github.com/Subaru-PFS/drp_stella/blob/master/include/pfs/drp/stella/DetectorMap.h#L108-L121&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;&lt;tt&gt;findWavelength&lt;/tt&gt;&lt;/a&gt;, probably for historical reasons. So I&apos;ll take this as a request to clean up the interface in regard to &lt;tt&gt;get&amp;#42;&lt;/tt&gt; vs &lt;tt&gt;find&amp;#42;&lt;/tt&gt;. I propose:&lt;br/&gt;
1. Move &lt;tt&gt;findWavelength&lt;/tt&gt; to &lt;tt&gt;getWavelength&lt;/tt&gt;.&lt;br/&gt;
2. Move &lt;tt&gt;findPoint&lt;/tt&gt; to &lt;tt&gt;getPoint&lt;/tt&gt;.&lt;br/&gt;
3. Move &lt;tt&gt;findFiberId&lt;/tt&gt; to &lt;tt&gt;getFiberId&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;I&apos;m a little concerned that &lt;tt&gt;get*&lt;/tt&gt; implies a fast return without much in the way of calculation, which is not the case for any of these, but it&apos;s certainly the name we look for first, so perhaps convenience trumps that?&lt;/p&gt;</comment>
                            <comment id="18720" author="rhl" created="Wed, 3 Mar 2021 16:21:21 +0000"  >&lt;p&gt;Oh, good.  I think the name&apos;s OK;  the user doesn&apos;t know that we don&apos;t have these things pre-computed to logically it&apos;s just a `get`&lt;/p&gt;</comment>
                            <comment id="18727" author="rhl" created="Thu, 4 Mar 2021 09:32:08 +0000"  >&lt;p&gt;I don&apos;t see the corresponding vectorised function to return the fibre position (in x) at a set of wavelengths for a given fibre.  This could be done by adding a vector overload to &lt;tt&gt;findPoint&lt;/tt&gt; (returning a 2xn array), or a new function (&lt;tt&gt;getTracePosition&lt;/tt&gt;?)&lt;/p&gt;</comment>
                            <comment id="18728" author="price" created="Thu, 4 Mar 2021 15:28:24 +0000"  >&lt;p&gt;There is &lt;a href=&quot;https://github.com/Subaru-PFS/drp_stella/blob/master/python/pfs/drp/stella/DetectorMap.cc#L44-L47&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;a vectorised version of &lt;tt&gt;findPoint&lt;/tt&gt;&lt;/a&gt; already. If it&apos;s not working for you, check that your types are correct (&lt;tt&gt;fiberId&lt;/tt&gt; arrays should be &lt;tt&gt;int32&lt;/tt&gt;, wavelength arrays should be &lt;tt&gt;float64&lt;/tt&gt;) and the arrays are contiguous.&lt;/p&gt;</comment>
                            <comment id="18729" author="rhl" created="Thu, 4 Mar 2021 15:54:47 +0000"  >&lt;p&gt;Oh, that&apos;s great. I did look at the .h file, but didn&apos;t realise that you can vectorise over both &lt;tt&gt;fiberId, lambda&lt;/tt&gt; which is exactly what I needed.&lt;/p&gt;</comment>
                            <comment id="18749" author="price" created="Fri, 5 Mar 2021 20:05:53 +0000"  >&lt;p&gt;OK, so what&apos;s the verdict on what work needs to be done?&lt;/p&gt;</comment>
                            <comment id="18787" author="rhl" created="Tue, 9 Mar 2021 16:54:41 +0000"  >&lt;p&gt;It sounds as if we should have a chat about a consistent API, but that all the needed functionality is present&lt;/p&gt;</comment>
                            <comment id="19093" author="hassan" created="Fri, 2 Apr 2021 21:23:32 +0000"  >&lt;p&gt;Can this ticket be closed, and a separate ticket on the API update filed?&lt;/p&gt;</comment>
                            <comment id="19097" author="hassan" created="Mon, 5 Apr 2021 21:19:10 +0000"  >&lt;p&gt;Problem  is due to confusion over API. This is the subject of a separate ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15521">PIPE2D-805</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|02qpt6:508yl0chzzy00000yy</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>
    <customfieldvalue id="105">2DDRP-2021 A 4</customfieldvalue>

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