<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:22:03 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-150] Updating scheme for AIT sequence/exposure database</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-150</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;We agreed on a updated scheme for the AIT exposure database in order to facilitate the sharing of the data between institutes. &lt;/p&gt;

&lt;p&gt;This consist in 3 tables :&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;a table which list all the exposures (filled by the ccdActor)
&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;CREATE TABLE exp
(
  expid bigint NOT NULL,
  exptype text,
  exptime double precision,
  obsdate text,
  quality text,
  CONSTRAINT id PRIMARY KEY (expid)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;a table which link a single exposure to an exposure group&lt;/li&gt;
&lt;/ul&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;CREATE TABLE expgroup
(
  expid bigint NOT NULL,
  groupid bigint,
  CONSTRAINT id PRIMARY KEY (expid)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
	&lt;li&gt;a table which list the experiments (per sm):&lt;/li&gt;
&lt;/ul&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;CREATE TABLE sm0
(
  testid bigint NOT NULL,
  groupid bigint,
  testname text,
  experiment text,
  date text,
  arm text,
  drp text,
  operator text,
  cmdstr text,
  status text,
  comments text,
  anomalies text,
  exptime double precision,
  lowbound double precision,
  upbound double precision,
  nbimage bigint,
  CONSTRAINT id PRIMARY KEY (index)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

</description>
                <environment></environment>
        <key id="11694">INSTRM-150</key>
            <summary>Updating scheme for AIT sequence/exposure database</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="arnaud.lefur">arnaud.lefur</assignee>
                                    <reporter username="arnaud.lefur">arnaud.lefur</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Jul 2017 17:08:19 +0000</created>
                <updated>Tue, 3 Jul 2018 15:44:44 +0000</updated>
                            <resolved>Tue, 3 Jul 2018 15:44:44 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="12392" author="cloomis" created="Wed, 12 Jul 2017 22:02:53 +0000"  >&lt;p&gt;How much should this be compatible with &lt;a href=&quot;http://sumire.pbworks.com/w/file/fetch/110768635/PFS_software_meeting_Princeton_Yasuda.pdf&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Yasuda-san&apos;s survey ops db&lt;/a&gt;? (See the schema pages 7+) &lt;/p&gt;

&lt;p&gt;The obvious overlap is the Exposure table. I think that the observing schema needs to be split, with the core part merged into AIT&apos;s &lt;tt&gt;exp&lt;/tt&gt; and the observing conditions and fiber allocation details pulled out. Something like:&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-sql&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;TABLE&lt;/span&gt; Exposure
(
  &lt;span class=&quot;code-comment&quot;&gt;--    &lt;span class=&quot;code-keyword&quot;&gt;include&lt;/span&gt; Pxyz &lt;span class=&quot;code-keyword&quot;&gt;and&lt;/span&gt; seqno, &lt;span class=&quot;code-keyword&quot;&gt;to&lt;/span&gt; allow merging 
&lt;/span&gt;  &lt;span class=&quot;code-comment&quot;&gt;--    &lt;span class=&quot;code-keyword&quot;&gt;from&lt;/span&gt; multiple sites.
&lt;/span&gt;  exposureId &lt;span class=&quot;code-keyword&quot;&gt;CHAR&lt;/span&gt;[10] &lt;span class=&quot;code-keyword&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;KEY&lt;/span&gt;, 

  &lt;span class=&quot;code-comment&quot;&gt;--    denormalize frameId &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; convenience. &lt;span class=&quot;code-keyword&quot;&gt;Or&lt;/span&gt;
&lt;/span&gt;  &lt;span class=&quot;code-comment&quot;&gt;--    &lt;span class=&quot;code-keyword&quot;&gt;add&lt;/span&gt; functions.
&lt;/span&gt;  visitId &lt;span class=&quot;code-keyword&quot;&gt;INTEGER&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;NULL&lt;/span&gt;,
  site &lt;span class=&quot;code-keyword&quot;&gt;CHAR&lt;/span&gt;[1] &lt;span class=&quot;code-keyword&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;NULL&lt;/span&gt;,

  &lt;span class=&quot;code-comment&quot;&gt;--    &lt;span class=&quot;code-keyword&quot;&gt;add&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;WITHOUT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;TIME&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;ZONE&lt;/span&gt;?
&lt;/span&gt;  obsdate &lt;span class=&quot;code-keyword&quot;&gt;TIMESTAMP&lt;/span&gt;,
  exptime &lt;span class=&quot;code-keyword&quot;&gt;FLOAT&lt;/span&gt;,

  &lt;span class=&quot;code-comment&quot;&gt;--    bias, dark, arc, flat, &lt;span class=&quot;code-keyword&quot;&gt;object&lt;/span&gt;, junk
&lt;/span&gt;  exptype &lt;span class=&quot;code-keyword&quot;&gt;TEXT&lt;/span&gt;,

  &lt;span class=&quot;code-comment&quot;&gt;--    OK, bad
&lt;/span&gt;  quality &lt;span class=&quot;code-keyword&quot;&gt;TEXT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;DEFAULT&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&apos;OK&apos;&lt;/span&gt;,
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We also need to know which cameras are part of this Exposure. Note&lt;br/&gt;
that the individual cameras will have their own exptime and obsdate, but we do not track that here. We could. And the NIR 5.57s*N exptimes argue that we have to.&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-sql&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;TABLE&lt;/span&gt; CamExposure
(
  camExposureId &lt;span class=&quot;code-keyword&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;KEY&lt;/span&gt;,

  exposureId &lt;span class=&quot;code-keyword&quot;&gt;CHAR&lt;/span&gt;[10] &lt;span class=&quot;code-keyword&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;NULL&lt;/span&gt;,
  spectrograph &lt;span class=&quot;code-keyword&quot;&gt;INTEGER&lt;/span&gt;,
  arm &lt;span class=&quot;code-keyword&quot;&gt;CHAR&lt;/span&gt;[1], 
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Yes, there will be up to 12 CamExposure rows per Exposure.&lt;/p&gt;</comment>
                            <comment id="12438" author="cloomis" created="Wed, 26 Jul 2017 17:00:20 +0000"  >&lt;p&gt;Comment from &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; copied from &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-114&quot; title=&quot;Design per-exposure logs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-114&quot;&gt;&lt;del&gt;INSTRM-114&lt;/del&gt;&lt;/a&gt;:&lt;/p&gt;


&lt;p&gt;The current very simple exposure logs of LAM is there:&lt;br/&gt;
&lt;a href=&quot;https://people.lam.fr/madec.fabrice/pfs/&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://people.lam.fr/madec.fabrice/pfs/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13447" author="arnaud.lefur" created="Mon, 4 Jun 2018 09:45:19 +0000"  >&lt;p&gt;I&apos;ve almost covered everything fixing &lt;a href=&quot;https://github.com/Subaru-PFS/ics_spsaitActor/commit/dc2284ecc1d6e057547baf386ae85bef84bd7b9a&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;tickets/INSTRM-274&lt;/a&gt;.&#160;The mechanism to fill experiment table is not working yet .&lt;/p&gt;

&lt;p&gt;The scheme is very similar to Craig&apos;s proposal&lt;/p&gt;
&lt;ol&gt;
	&lt;li&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;Create table
c.execute(&apos;&apos;&apos;CREATE TABLE Exposure
             (exposureId CHAR[10] PRIMARY KEY, 
              site CHAR[1] NOT NULL, 
              visit INTEGER NOT NULL,
              obsdate TIMESTAMP,
              exptime FLOAT,
              exptype TEXT,
              quality TEXT)&apos;&apos;&apos;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&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;c.execute(&apos;&apos;&apos;CREATE TABLE CamExposure
            (camExposureId CHAR[12] NOT NULL PRIMARY KEY,
             exposureId CHAR[10] NOT NULL,
             spectrograph INTEGER,
             arm CHAR[1])&apos;&apos;&apos;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&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;c.execute(&apos;&apos;&apos;CREATE TABLE Experiment
             (experimentId INTEGER PRIMARY KEY,
              name TEXT,
              visitStart INTEGER NOT NULL,
              visitEnd INTEGER NOT NULL,
              type Text,
              cmdStr TEXT,
              comments TEXT,
              anomalies TEXT)&apos;&apos;&apos;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;For now&#160;the quality flag is by default set to &quot;OK&quot;.&#160;&lt;br/&gt;
But we have to be careful because the definition of &quot;OK&quot; is certainly not the same for us, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=rhl&quot; class=&quot;user-hover&quot; rel=&quot;rhl&quot;&gt;rhl&lt;/a&gt; or &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=ncaplar&quot; class=&quot;user-hover&quot; rel=&quot;ncaplar&quot;&gt;ncaplar&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="13726" author="arnaud.lefur" created="Tue, 3 Jul 2018 15:44:44 +0000"  >&lt;p&gt;merged in &lt;a href=&quot;https://github.com/Subaru-PFS/ics_spsaitActor/commit/428f8d0e3e9bb5ceb1946fd917fa1bc0956b8813&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;428f8d0&lt;/a&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="11610">INSTRM-114</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="11610">INSTRM-114</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|ii03cm:r</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="24">2017-10A</customfieldvalue>

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