<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:34:13 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-96] Index fibers from multiple spectrographs in PfsDesign</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-96</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;Our current &lt;tt&gt;PfsDesign&lt;/tt&gt; (and &lt;tt&gt;PfsConfig&lt;/tt&gt;) assumes a single identifier is sufficient to index all fibers in the entire instrument (all spectrographs), which identifier is called &lt;tt&gt;fiberId&lt;/tt&gt;. However, it appears that this is not a scheme that is currently supported/approved in the &lt;a href=&quot;https://sumire.pbworks.com/w/file/fetch/129816660/PFS-GEN-LNA780701-01_FOCCoS%20Fiber%20Mapping%20revisao%202018-09-17[1833].pdf&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;slit design&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I argue that all fibers should appear in the &lt;tt&gt;PfsDesign&lt;/tt&gt;, so that the 2D pipeline knows what to extract and record; this means that JEG&apos;s &quot;science fiber&quot; index (&lt;tt&gt;sfib&lt;/tt&gt; in the &lt;a href=&quot;https://github.com/Subaru-PFS/pfs_utils/blob/master/data/fiberids/grandfibermap.20171114.txt&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;&quot;Grand Fiber Map&quot; table&lt;/a&gt;) is not sufficient for this.&lt;/p&gt;

&lt;p&gt;I believe our options are:&lt;br/&gt;
1. Add a spectrograph index to &lt;tt&gt;PfsDesign&lt;/tt&gt;, so the primary keys are the spectrograph and the &lt;tt&gt;fiberId&lt;/tt&gt;; here, &lt;tt&gt;fiberId&lt;/tt&gt; is what JEG calls &lt;tt&gt;hole&lt;/tt&gt; and the slit design calls &quot;Slit position&quot;. I think the pipeline can work with this, but may need a bit of tweaking.&lt;br/&gt;
2. Extend &lt;tt&gt;fiberId&lt;/tt&gt; so that it incorporates the spectrograph: &lt;tt&gt;fiberId= 651*spectrograph + slitPosition&lt;/tt&gt;. Then &lt;tt&gt;fiberId=1..651&lt;/tt&gt; are on &lt;tt&gt;spectrograph=1&lt;/tt&gt;, &lt;tt&gt;fiberId=652..1302&lt;/tt&gt; are on &lt;tt&gt;spectrograph=2&lt;/tt&gt;, and so on. This is my preferred option, as I think the pipeline already supports it.&lt;br/&gt;
3. Use both schemes, so the &lt;tt&gt;PfsDesign&lt;/tt&gt; includes &lt;tt&gt;spectrograph&lt;/tt&gt;, &lt;tt&gt;hole&lt;/tt&gt; and &lt;tt&gt;fiberId&lt;/tt&gt;. This might be the most user-friendly, but I worry about the unnecessary duplication of information.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15047">DAMD-96</key>
            <summary>Index fibers from multiple spectrographs in PfsDesign</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="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="price">price</assignee>
                                    <reporter username="price">price</reporter>
                        <labels>
                            <label>SuNSS</label>
                    </labels>
                <created>Tue, 24 Nov 2020 16:03:36 +0000</created>
                <updated>Mon, 1 Feb 2021 21:01:10 +0000</updated>
                            <resolved>Fri, 29 Jan 2021 18:40:11 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                <comments>
                            <comment id="18072" author="price" created="Tue, 24 Nov 2020 17:28:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=fmadec&quot; class=&quot;user-hover&quot; rel=&quot;fmadec&quot;&gt;fmadec&lt;/a&gt; points out that the slit number is potentially different from the spectrograph number. This may or may not complicate things.&lt;/p&gt;</comment>
                            <comment id="18114" author="yuki.moritani" created="Fri, 4 Dec 2020 16:37:24 +0000"  >&lt;p&gt;Just for recording...&lt;br/&gt;
We had conversations on slack and the option 2 seems preferred (&lt;tt&gt;fh+sp*651&lt;/tt&gt; in terms of GFM), but Fabrice would like to think a little more about which options is the best. Having the same fiberid between the modules looks also simple.&lt;/p&gt;</comment>
                            <comment id="18126" author="yuki.moritani" created="Tue, 8 Dec 2020 11:35:05 +0000"  >&lt;p&gt;I was asked to confirm the fiber mapping on the spectrograph side.&lt;br/&gt;
 According to the design document by Brazil (&lt;a href=&quot;https://sumire.pbworks.com/w/file/141387879/PFS-GEN-LNA780701-04_FOCCoS%20Fiber%20Mapping.pdf&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;document on PBworks&lt;/a&gt;), the numbering schema of fiber (&lt;tt&gt;fh&lt;/tt&gt;) hole is identical.&lt;/p&gt;

&lt;p&gt;GFM doesn&apos;t entry three fibers (&lt;tt&gt;fh=280, 309, 359&lt;/tt&gt;) for SM3 and SM4 since there is no counterpart on PFI side. (If the slit is connected to the all fiber lamp, for instance, these three fibers are illuminated)&lt;/p&gt;

&lt;p&gt;Note that FCA4, which is now being assembled on SM2 was built lacking three fibers&#160;(&lt;tt&gt;fh=280, 309, 359&lt;/tt&gt;). But mapping is correct.&lt;/p&gt;


&lt;p&gt;So, I think the fiber index is defined uniquely when you use spectrograph module (not slit serial number). Note that fiber status (blocked/broken/unilluminated) will change in some cases (but I think this is beyond this ticket..).&lt;/p&gt;</comment>
                            <comment id="18128" author="rhl" created="Tue, 8 Dec 2020 14:13:16 +0000"  >&lt;blockquote&gt;&lt;p&gt;So, I think the fiber index is defined uniquely when you use spectrograph module (not slit serial number). Note that fiber status (blocked/broken/unilluminated) will change in some cases (but I think this is beyond this ticket..).&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;That&apos;s right.  We set those in the pfsConfig file:&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;
      fiberStatus    32-bit &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; (enumerated type: GOOD,BROKENFIBER,BLOCKED,BLACKSPOT,UNILLUMINATED)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="18305" author="hassan" created="Mon, 4 Jan 2021 23:07:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=fmadec&quot; class=&quot;user-hover&quot; rel=&quot;fmadec&quot;&gt;fmadec&lt;/a&gt;: do you have any issues with the proposal (option 2, &lt;tt&gt;fh+sp*651&lt;/tt&gt;) ? I propose if there is no issue by end of business Weds 06 Jan 2021, we implement that proposal.&lt;/p&gt;</comment>
                            <comment id="18306" author="fmadec" created="Tue, 5 Jan 2021 10:05:08 +0000"  >&lt;p&gt;I think you should use multi -index, so option 3 , that will be the most flexible solution.&lt;/p&gt;

&lt;p&gt;for my perspective (testing) spectrograph, I like to have identification from spectrograph point view. fiber 2 on SM1 is &quot;identical&quot; to fiber 2 on SMx, I mean it should be at the extreme position , etc ...&lt;br/&gt;
I guess that will be useful also using the entire instrument to have a fast way to know which fiber is on which SM.&lt;/p&gt;

&lt;p&gt;We need to agree on way to use DCB, allfiber, SunSS ... I though we said we need a dedicated telecon for that, it may be better to have this telecon before we set this, no ?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="18353" author="hassan" created="Fri, 15 Jan 2021 16:28:36 +0000"  >&lt;p&gt;Hassan needs to arrange a dedicated telecon the week of 18 Jan 2021 to agree on proposal. Participants: Fabrice, Arnaud, Craig, Paul, Robert, Jim, Yuki.&lt;/p&gt;</comment>
                            <comment id="18386" author="hassan" created="Mon, 25 Jan 2021 15:29:16 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=fmadec&quot; class=&quot;user-hover&quot; rel=&quot;fmadec&quot;&gt;fmadec&lt;/a&gt;&#160;has no objections with option 2 given that a trivial function can be introduced to decode the fiberId to extract the SM number. So we shall go with option 2.&lt;/p&gt;</comment>
                            <comment id="18398" author="price" created="Wed, 27 Jan 2021 20:08:56 +0000"  >&lt;p&gt;Code changes are done. I haven&apos;t yet built new simulated data (for the integration test and weekly) because there are other tickets touching the same dataset, so we&apos;d have to recreate the data again after they merge.&lt;/p&gt;</comment>
                            <comment id="18401" author="cloomis" created="Wed, 27 Jan 2021 23:03:38 +0000"  >&lt;p&gt;Should have payed a bit more attention to the grandfibermap.txt changes earlier, sorry.&lt;/p&gt;

&lt;p&gt;Ideally, grandfibermap.txt is just a data file and not accessed directly. Until now it has been machine-generated. The trivial code in fiberids.py is supposed to wrap all access &amp;#8211; this is the way the ICS (fps/cobraCharmer) accesses the GFM. One could have added a fiberId method or property, though it does not really matter since the GFM will be getting other updates.&lt;/p&gt;

&lt;p&gt;The cobras.pdf file covers most of the geometry and nomenclature. The unexplained columns in GFM are:&lt;br/&gt;
cm: cobra-in-module. 1-57.  1 is the bottom-left cobra in a module when looked at with the wide (29-cobra) board down. Increasing as you move across the module.&lt;br/&gt;
mf: module-in-field. 1-14. The number of the module within the field, with 1 at the center of the PFI.&lt;br/&gt;
cf: cobra-in-field (1-798).  57*(mf-1)+cm&lt;/p&gt;

&lt;p&gt;Note that the &quot;mod&quot; field is very very confusing and should be renamed. The A and B are &lt;em&gt;not&lt;/em&gt; the id of the board, but of the fiber bundle coming off the module. &lt;/p&gt;

&lt;p&gt;The &quot;id&quot; column contains the id of the USCONNEC connector hole at the Cable B-C interface according to a convention in a different reference document. I believe that the &lt;em&gt;values&lt;/em&gt; are currently both incorrect and incomplete. A different ticket covers updating that map.&lt;/p&gt;

</comment>
                            <comment id="18402" author="price" created="Thu, 28 Jan 2021 20:12:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt;, I&apos;ve added code to &lt;tt&gt;fiberids.py&lt;/tt&gt; to read that extra column. Is this sufficient to allow merging?&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;
&amp;gt;&amp;gt;&amp;gt; from pfs.utils.fiberids &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; FiberIds
&amp;gt;&amp;gt;&amp;gt; ff = FiberIds()
&amp;gt;&amp;gt;&amp;gt; ff.fiberId
array([   2,    3,    4, ..., 2332, 2333, 2334], dtype=uint16)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="18403" author="cloomis" created="Thu, 28 Jan 2021 21:28:47 +0000"  >&lt;p&gt;Good for me.&lt;/p&gt;</comment>
                            <comment id="18415" author="price" created="Fri, 29 Jan 2021 18:40:11 +0000"  >&lt;p&gt;Merged to master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15095">INSTRM-1138</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|zzs2rz:zu</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>hassan</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="93">2DDRP-2021 A</customfieldvalue>

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