<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:34:22 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>[DAMD-110] Add mapping of fibre to MTP connector to pfsConfig/Design</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-110</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;it would be nice to know to which MTP belong a given fiber. &lt;br/&gt;
at least when the flux uniformity across the slit is checked at LAM we do need this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15574">DAMD-110</key>
            <summary>Add mapping of fibre to MTP connector to pfsConfig/Design</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="rhl">rhl</assignee>
                                    <reporter username="fmadec">fmadec</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Apr 2021 14:41:44 +0000</created>
                <updated>Mon, 28 Jun 2021 23:16:03 +0000</updated>
                            <resolved>Mon, 28 Jun 2021 23:16:03 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                <comments>
                            <comment id="19222" author="cloomis" created="Tue, 27 Apr 2021 14:52:57 +0000"  >&lt;p&gt;That is in the GFM file, though encoded in a slightly non-obvious way.&lt;/p&gt;</comment>
                            <comment id="19223" author="rhl" created="Tue, 27 Apr 2021 14:54:21 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=price&quot; class=&quot;user-hover&quot; rel=&quot;price&quot;&gt;price&lt;/a&gt; How should we do this? Adding an extra column to the DESIGN/CONFIG tables would probably be best, but we&apos;ll have to think about backwards compatibility.&lt;br/&gt;
 There was also talk about adding a relative transmission for each fibre (e.g. 3 is c. 10% due to a Cable A problem), should we do that at the same time? Currently there&apos;s just a binary decision &quot;Is fibre &lt;tt&gt;BLOCKED&lt;/tt&gt;?&quot;&lt;/p&gt;</comment>
                            <comment id="19224" author="rhl" created="Tue, 27 Apr 2021 14:55:02 +0000"  >&lt;p&gt;I think we need it in the pfsConfig as it looks as if e.g. we may need this information for sky subtraction.&lt;/p&gt;</comment>
                            <comment id="19225" author="price" created="Tue, 27 Apr 2021 16:03:02 +0000"  >&lt;p&gt;I don&apos;t see the need to have it in the &lt;tt&gt;pfsConfig&lt;/tt&gt; if it&apos;s in pfs&amp;#95;utils (&lt;tt&gt;pfs.utils.fiberids.FiberIds&lt;/tt&gt;) and static. But if it&apos;s not static, then we need a way of minimally choosing the correct configuration.&lt;/p&gt;

&lt;p&gt;Having the relative transmission might be nice (though it&apos;s theoretically available through the &lt;tt&gt;fiberProfiles&lt;/tt&gt;), but again I don&apos;t see the need to put it in the &lt;tt&gt;pfsConfig&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="19227" author="rhl" created="Tue, 27 Apr 2021 16:59:07 +0000"  >&lt;p&gt;Currently the pipelines don&apos;t use anything accessed via &lt;tt&gt;pfs_utils&lt;/tt&gt;, and I think it makes things more complicated if we have to start doing so.  My concern is what we should do if MTPs move together (and I think that there&apos;s evidence for that).&lt;br/&gt;
If it&apos;s just Fabrice in his lab, then I agree that documenting the interface for him would probably be enough.&lt;/p&gt;</comment>
                            <comment id="19228" author="price" created="Tue, 27 Apr 2021 17:07:28 +0000"  >&lt;p&gt;We already &lt;a href=&quot;https://github.com/Subaru-PFS/pfs_pipe2d/blob/master/bin/build_pfs.sh#L88&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;distribute pfs&amp;#95;utils along with the 2D pipeline&lt;/a&gt;, and we use it to create &lt;tt&gt;pfsDesign&lt;/tt&gt; files for DCB (&lt;tt&gt;makeDummyCableBDesign.py&lt;/tt&gt;).&lt;/p&gt;</comment>
                            <comment id="19271" author="price" created="Wed, 5 May 2021 18:34:04 +0000"  >&lt;p&gt;I think we agreed in a recent meeting that using the mapping in pfs&amp;#95;utils is sufficient. I propose closing this &lt;tt&gt;WONTFIX&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="19296" author="fmadec" created="Fri, 7 May 2021 14:14:49 +0000"  >&lt;p&gt;well&lt;/p&gt;

&lt;p&gt;if so can we be sure that we have the proper API with pfs_utils and so a proper ticket? &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hassan&quot; class=&quot;user-hover&quot; rel=&quot;hassan&quot;&gt;hassan&lt;/a&gt; ?&lt;/p&gt;</comment>
                            <comment id="19297" author="hassan" created="Fri, 7 May 2021 14:16:47 +0000"  >&lt;p&gt;OK. Let me check. If there is missing/failing functionality I will file a new ticket.&lt;/p&gt;</comment>
                            <comment id="19300" author="rhl" created="Fri, 7 May 2021 14:38:58 +0000"  >&lt;p&gt;I&apos;m working on this (that is, I wrote the code).  I assume that the name we want is e.g.  &lt;tt&gt;D1-3-1&lt;/tt&gt; &lt;/p&gt;</comment>
                            <comment id="19302" author="fmadec" created="Fri, 7 May 2021 15:39:00 +0000"  >&lt;p&gt;D1-3 tell us which mtp but not which fiber in the mtp connector, if I am correct&lt;/p&gt;

&lt;p&gt;D1-3-&amp;lt;specId&amp;gt;-&amp;lt;mtp position&amp;gt; &lt;br/&gt;
it would be nice to have also the position in case we identify fiber that show bad illumination (as we did on SM1)&lt;/p&gt;</comment>
                            <comment id="19303" author="rhl" created="Fri, 7 May 2021 15:58:46 +0000"  >&lt;p&gt;There are 4 of values per fibre (A, BA, BC, and C). &#160;So do you want me to return&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;
(&lt;span class=&quot;code-quote&quot;&gt;&quot;D0-1-1&quot;&lt;/span&gt;, (2, 26, 31, 7))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;or something else?&lt;/p&gt;

&lt;p&gt;Or just the 4 raw strings, including the cobra number?&lt;/p&gt;</comment>
                            <comment id="19304" author="fmadec" created="Fri, 7 May 2021 16:08:21 +0000"  >&lt;p&gt;it may be worth to have the complete information, no ?&lt;br/&gt;
or we could have different option that returns different information ?&lt;/p&gt;


&lt;p&gt;for my perspective I only need which mtp and position on Cable A but... so D0-1-x-26 for example or simply DO-1 according what I am looking for (mtp only for this last example)&lt;/p&gt;</comment>
                            <comment id="21407" author="hassan" created="Wed, 9 Jun 2021 21:36:57 +0000"  >&lt;p&gt;As discussed during the DRP telecon on 2021-06-04, this functionality will be implemented in pfs_utils, not the datamodel. &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1288&quot; title=&quot;Provide a function to map fiberIds to MTP connectors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1288&quot;&gt;&lt;del&gt;INSTRM-1288&lt;/del&gt;&lt;/a&gt; covers that work.&lt;/p&gt;</comment>
                            <comment id="21496" author="rhl" created="Wed, 16 Jun 2021 14:24:59 +0000"  >&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;
Return MTP information &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; the specified fiberIds

        Args
        ----
        fiberIds : array of 1-indexed fiberIds
        pfsConfig : `pfs.datamodel.PfsConfig`
           Tell us e.g. which fibres go to SuNSS

        Returns
        -------
        an array of (&lt;span class=&quot;code-quote&quot;&gt;&quot;MTPID&quot;&lt;/span&gt;, (holes), cobraId) where &lt;span class=&quot;code-quote&quot;&gt;&quot;holes&quot;&lt;/span&gt; are &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; the A, BA, BC, and C connectors,
        and cobraId is the 0-indexed global cobra ID

        For SuNSS, the &lt;span class=&quot;code-quote&quot;&gt;&quot;cobra ID&quot;&lt;/span&gt; is negative, and its absolute value is the ID in the
        ferrule (&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; the imaging leg) or 127 + ID (&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; the diffuse leg)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The usage is:&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-python&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; lsst.daf.persistence &lt;span class=&quot;code-keyword&quot;&gt;as&lt;/span&gt; dafPersist
&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; pfs.utils.fiberids &lt;span class=&quot;code-keyword&quot;&gt;as&lt;/span&gt; fiberids

butler = dafPersist.Butler(&lt;span class=&quot;code-quote&quot;&gt;&quot;/projects/HSC/PFS/Subaru&quot;&lt;/span&gt;)
dataId = &lt;span class=&quot;code-object&quot;&gt;dict&lt;/span&gt;(visit=45783, arm=&lt;span class=&quot;code-quote&quot;&gt;&quot;r&quot;&lt;/span&gt;, spectrograph=1)
pfsConfig = butler.get(&lt;span class=&quot;code-quote&quot;&gt;&apos;pfsConfig&apos;&lt;/span&gt;, dataId)

fiberIds = fiberids.FiberIds()

fiberIds.fiberIdToMTP(pfsConfig.fiberId, pfsConfig)[100] &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;which returns&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;
(&lt;span class=&quot;code-quote&quot;&gt;&apos;U1-2-1&apos;&lt;/span&gt;, [26, 2, 7, 31], -51)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(where &lt;tt&gt;-51&lt;/tt&gt; indicated an imaging SuNSS &quot;cobra&quot;).&lt;/p&gt;</comment>
                            <comment id="21497" author="rhl" created="Wed, 16 Jun 2021 14:25:16 +0000"  >&lt;p&gt;Pushed to&#160;tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-110&quot; title=&quot;Add mapping of fibre to MTP connector to pfsConfig/Design&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-110&quot;&gt;&lt;del&gt;DAMD-110&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="21524" author="hassan" created="Fri, 18 Jun 2021 01:04:59 +0000"  >&lt;p&gt;Proposed changes in branch look fine.&lt;/p&gt;</comment>
                            <comment id="21594" author="hassan" created="Mon, 28 Jun 2021 23:16:03 +0000"  >&lt;p&gt;Merged to master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="15577">INSTRM-1259</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15575">INSTRM-1258</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="16705">INSTRM-1288</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:508yl0chzzy0000026r</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="105">2DDRP-2021 A 4</customfieldvalue>
    <customfieldvalue id="109">2DDRP-2021 A5</customfieldvalue>
    <customfieldvalue id="111">2DDRP-2021 A 6</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>