<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:35:06 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-1403] Add table to relate matched guidestar with spot</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1403</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;Following from the ICS/PFI telecon 2021-10-15: provide a mapping between the observed objects using the AGC and the stars in the input catalogue. &lt;/p&gt;

&lt;p&gt;This might be just a join key from the &lt;tt&gt;guide_stars&lt;/tt&gt; table to the &lt;tt&gt;agc_data&lt;/tt&gt; table, but this should be investigated.&lt;/p&gt;</description>
                <environment></environment>
        <key id="18248">INSTRM-1403</key>
            <summary>Add table to relate matched guidestar with spot</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="kiyoto.yabe">Kiyoto Yabe</assignee>
                                    <reporter username="hassan">hassan</reporter>
                        <labels>
                            <label>EngRun</label>
                    </labels>
                <created>Fri, 15 Oct 2021 16:29:41 +0000</created>
                <updated>Fri, 5 Nov 2021 00:41:18 +0000</updated>
                            <resolved>Fri, 5 Nov 2021 00:41:18 +0000</resolved>
                                                                    <component>spt_operational_database</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="24793" author="kiyoto.yabe" created="Tue, 26 Oct 2021 06:25:28 +0000"  >&lt;p&gt;I pushed the current implementation draft in &lt;a href=&quot;https://github.com/Subaru-PFS/spt_operational_database/blob/tickets/INSTRM-1403/python/opdb/models.py&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/spt_operational_database/blob/tickets/INSTRM-1403/python/opdb/models.py&lt;/a&gt;&#160;&lt;/p&gt;

&lt;p&gt;We use the similar table as `cobra_match` for matching of spots on AGC like this.&#160;&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;class &lt;/span&gt;guide_star_match(Base):
    &apos;&apos;&apos;AGC matching information.
    &apos;&apos;&apos;

    __tablename__ = &lt;span class=&quot;code-quote&quot;&gt;&apos;guide_star_match&apos;&lt;/span&gt;
    __table_args__ = (UniqueConstraint(&lt;span class=&quot;code-quote&quot;&gt;&apos;pfs_design_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;guide_star_id&apos;&lt;/span&gt;),
                      ForeignKeyConstraint([&lt;span class=&quot;code-quote&quot;&gt;&apos;agc_exposure_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;agc_camera_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;spot_id&apos;&lt;/span&gt;],
                                           [&lt;span class=&quot;code-quote&quot;&gt;&apos;agc_data.agc_exposure_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;agc_data.agc_camera_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;agc_data.spot_id&apos;&lt;/span&gt;]),
                      {})

    pfs_design_id = Column(BigInteger,
                           primary_key=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;True&lt;/span&gt;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;, autoincrement=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;,
                           comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;pfsDesignId&apos;&lt;/span&gt;
                           )
    guide_star_id = Column(BigInteger,
                           primary_key=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;True&lt;/span&gt;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;, autoincrement=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;,
                           comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;GuideStar identifier&apos;&lt;/span&gt;
                           )
    agc_exposure_id = Column(Integer,
                             comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;AGC exposure number identifier&apos;&lt;/span&gt;)
    agc_camera_id = Column(Integer,
                           comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;AGC camera identifier&apos;&lt;/span&gt;)
    spot_id = Column(Integer,
                     comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;The AGC spot identifier&apos;&lt;/span&gt;)
    column_placeholder = Column(REAL)
    flags = Column(Integer, comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;Flags&apos;&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Any comments are welcome.&lt;/p&gt;</comment>
                            <comment id="24818" author="kiyoto.yabe" created="Wed, 27 Oct 2021 01:00:56 +0000"  >&lt;p&gt;I&apos;m not sure who should be the reviewer but feel free to re-assign.&lt;/p&gt;</comment>
                            <comment id="24842" author="hassan" created="Thu, 28 Oct 2021 01:21:43 +0000"  >&lt;p&gt;The proposed table and key constraints look great. No additional comments.&lt;/p&gt;</comment>
                            <comment id="24843" author="kiyoto.yabe" created="Thu, 28 Oct 2021 02:37:03 +0000"  >&lt;p&gt;Sorry &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;, after talking to &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hiro&quot; class=&quot;user-hover&quot; rel=&quot;hiro&quot;&gt;Yoshida, Hiroshige&lt;/a&gt;&#160;personally, we decided to revert to the original idea:&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;class &lt;/span&gt;agc_match(Base):
    &apos;&apos;&apos;AGC matching information.
    &apos;&apos;&apos;

    __tablename__ = &lt;span class=&quot;code-quote&quot;&gt;&apos;agc_match&apos;&lt;/span&gt;
    __table_args__ = (UniqueConstraint(&lt;span class=&quot;code-quote&quot;&gt;&apos;agc_exposure_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;agc_camera_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;spot_id&apos;&lt;/span&gt;),
                      ForeignKeyConstraint([&lt;span class=&quot;code-quote&quot;&gt;&apos;agc_exposure_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;agc_camera_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;spot_id&apos;&lt;/span&gt;],
                                           [&lt;span class=&quot;code-quote&quot;&gt;&apos;agc_data.agc_exposure_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;agc_data.agc_camera_id&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;agc_data.spot_id&apos;&lt;/span&gt;]),
                      {})

    agc_exposure_id = Column(Integer,
                             primary_key=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;True&lt;/span&gt;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;, autoincrement=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;,
                             comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;AGC exposure number identifier&apos;&lt;/span&gt;)
    agc_camera_id = Column(Integer,
                           primary_key=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;True&lt;/span&gt;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;, autoincrement=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;,
                           comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;AGC camera identifier&apos;&lt;/span&gt;)
    spot_id = Column(Integer,
                     primary_key=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;True&lt;/span&gt;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;, autoincrement=&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;False&lt;/span&gt;&lt;/span&gt;,
                     comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;The AGC spot identifier&apos;&lt;/span&gt;)
    pfs_design_id = Column(BigInteger,
                           comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;pfsDesignId&apos;&lt;/span&gt;)
    guide_star_id = Column(BigInteger,
                           comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;GuideStar identifier&apos;&lt;/span&gt;)
    agc_nominal_x_mm = Column(REAL,
                              comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;Nominal designed x-position on the AGC [PFI mm]&apos;&lt;/span&gt;)
    agc_nominal_y_mm = Column(REAL,
                              comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;Nominal designed y-position on the AGC [PFI mm]&apos;&lt;/span&gt;)
    agc_center_x_mm = Column(REAL,
                             comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;Center measured x-position on the AGC [PFI mm]&apos;&lt;/span&gt;)
    agc_center_y_mm = Column(REAL,
                             comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;Center measured y-position on the AGC [PFI mm]&apos;&lt;/span&gt;)
    flags = Column(Integer, comment=&lt;span class=&quot;code-quote&quot;&gt;&apos;Flags&apos;&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;br/&gt;
 I also added columns for the designed and measured position of spots in PFI coordinate. The naming is similar to that in cobra tables (which is originated from datamodel in the long history), but it may not be so easy to understand.&#160;&lt;/p&gt;

&lt;p&gt;So, could both of you (&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;&#160; and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hiro&quot; class=&quot;user-hover&quot; rel=&quot;hiro&quot;&gt;Yoshida, Hiroshige&lt;/a&gt;) review them again please?&lt;/p&gt;</comment>
                            <comment id="24863" author="hassan" created="Thu, 28 Oct 2021 14:46:25 +0000"  >&lt;p&gt;Thanks for the updates. But shouldn&apos;t the additional columns be in &lt;tt&gt;agc_data&lt;/tt&gt;? &lt;/p&gt;

&lt;p&gt;As they are additional columns, and the main purpose of this ticket is to ensure we can map guidestar with spot, I&apos;m fine if you and Yoshida-san feel that these additional columns are necessary.&lt;/p&gt;</comment>
                            <comment id="24880" author="kiyoto.yabe" created="Fri, 29 Oct 2021 09:31:25 +0000"  >&lt;p&gt;I think `agc_data` should contain purely detections and measured values in pix, so I excluded positions in mm from the table as in `mcs_data` and `cobra_match`. I&apos;m not sure whether we need those information but it would be useful.&lt;/p&gt;</comment>
                            <comment id="24928" author="hassan" created="Tue, 2 Nov 2021 20:41:50 +0000"  >&lt;p&gt;Proposed schema seems acceptable for the Nov Eng Run. Further revisions after that may be possible but will be captured in future tickets.&lt;/p&gt;</comment>
                            <comment id="24949" author="kiyoto.yabe" created="Thu, 4 Nov 2021 12:01:37 +0000"  >&lt;p&gt;OK, I&apos;ll merge the current one.&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|zzsgdz:</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="123">PreEngRun4</customfieldvalue>
    <customfieldvalue id="124">EngRun3Cleanup</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>