<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:37:50 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>[INSTRM-1640] FiberID sometimes takes too long</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1640</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;Fiber ID matching took ~35s. This is with the non easyId algorithm, and happened several times. &lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2022-06-19 23:44:45.204Z cmds             20 CommandLink.py:121 &amp;gt; 2 280 i text=&quot;loaded 2394 targets from DB&quot;
2022-06-19 23:44:45.205Z cmds             20 CommandLink.py:121 &amp;gt; 2 280 i text=&quot;Starting Fiber ID&quot;
2022-06-19 23:45:19.401Z cmds             20 CommandLink.py:121 &amp;gt; 2 280 i text=&quot;Fiber ID finished&quot;
2022-06-19 23:45:19.689Z cmds             20 CommandLink.py:121 &amp;gt; 2 280 i text=&quot;wrote matched cobras to database&quot;
2022-06-19 23:45:19.689Z cmds             20 CommandLink.py:121 &amp;gt; 2 280 i frameId=7739802; filename=/data/raw/2022-06-19/mcs/PFSC07739802.fits
2022-06-19 23:45:19.690Z cmds             20 CommandLink.py:121 &amp;gt; 2 280 : exposureState=done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="22837">INSTRM-1640</key>
            <summary>FiberID sometimes takes too long</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="karr">karr</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                            <label>EngRun</label>
                    </labels>
                <created>Mon, 20 Jun 2022 00:02:59 +0000</created>
                <updated>Fri, 2 Sep 2022 12:56:35 +0000</updated>
                            <resolved>Thu, 21 Jul 2022 02:52:54 +0000</resolved>
                                                                    <component>ics_mcsActor</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="31057" author="karr" created="Mon, 20 Jun 2022 00:43:35 +0000"  >&lt;p&gt;I&apos;ll take a look at that. It definitely shouldn&apos;t be taking that long!&lt;/p&gt;</comment>
                            <comment id="31058" author="karr" created="Mon, 20 Jun 2022 00:44:06 +0000"  >&lt;p&gt;Do you have examples of frameIds where this happens?&lt;/p&gt;</comment>
                            <comment id="31059" author="cloomis" created="Mon, 20 Jun 2022 01:39:09 +0000"  >&lt;p&gt;(In the log segment): 7739802&lt;/p&gt;</comment>
                            <comment id="31061" author="karr" created="Mon, 20 Jun 2022 08:34:50 +0000"  >&lt;p&gt;I&apos;ve figured out what&apos;s causing the problem - in some cases when there are a lot of ambiguous fibre identifications, the determination of the distance from target is being inefficiently.&lt;/p&gt;

&lt;p&gt;I have the idea of what will fix it, but need to work out the complex book-keeping to go with tracking all the assignments through the loop,.&#160;&lt;/p&gt;</comment>
                            <comment id="31063" author="karr" created="Mon, 20 Jun 2022 11:25:45 +0000"  >&lt;p&gt;Spoke too soon. The distance calculation is lightning fast (using cdist); the bottleneck was the use of argsort to find the global closest matches between unassigned fibres and unassigned cobras.&#160;&lt;/p&gt;

&lt;p&gt;Have replaced argsort with the use of argpartition, as it&apos;s only the closest points that are of interest; this is a significant improvement.&#160; We still probably want it faster, but I need to think about how to do so.&#160;&lt;/p&gt;

&lt;p&gt;I&apos;ve pushed an update, but I want to run it though some more tests to be really sure that I haven&apos;t broken anything.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="31101" author="karr" created="Fri, 8 Jul 2022 07:50:24 +0000"  >&lt;p&gt;There are a couple of modifications that will speed things up in extreme cases, like the dot crossing routines, mostly via complicated book-keeping so we don&apos;t need to recompute distances between points and targets.&#160; In addition, for regular convergence runs, once the cobra_target table is properly populated, we can save time by doing fast matching at the beginning of the sequence for no longer moving cobras, the way we match the fiducial fibres.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="31139" author="karr" created="Thu, 14 Jul 2022 04:33:37 +0000"  >&lt;p&gt;Implemented the first set of changes.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="31160" author="hassan" created="Fri, 15 Jul 2022 16:20:27 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=karr&quot; class=&quot;user-hover&quot; rel=&quot;karr&quot;&gt;karr&lt;/a&gt; will close this ticket based on the first set of changes, and file a new ticket for the work related to the &lt;tt&gt;cobra_target&lt;/tt&gt; table.&lt;/p&gt;</comment>
                            <comment id="31174" author="karr" created="Thu, 21 Jul 2022 02:52:47 +0000"  >&lt;p&gt;Merged to master.x&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|02qpiq:i</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="152">preEngRun07Sep</customfieldvalue>

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