<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:31:07 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-1026] Add counter for physical SM configuration changes</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1026</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;It would be useful to note mechanical changes which could affect data reduction. The obvious parts are the FPA motors, the slit hexapod, and the red exchange mechanism.&lt;/p&gt;

&lt;p&gt;The proposed mechanism is to have per-SM counters which are incremented when moves are made. Some listener, in the icc or alerts actors, will listen to keywords and will increment an opdb table. The value in that table will be added to the headers so that DRP can know whether exposures were taken with possibly different configurations.&lt;/p&gt;

&lt;p&gt;FPA moves and the red exchange mechanism affect only a single camera, so perhaps there should be 12 counters. We do not expect to move FPAs very often, but the rexm will be. &lt;/p&gt;</description>
                <environment></environment>
        <key id="14534">INSTRM-1026</key>
            <summary>Add counter for physical SM configuration changes</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="cloomis">cloomis</reporter>
                        <labels>
                            <label>SPS</label>
                    </labels>
                <created>Wed, 24 Jun 2020 16:31:09 +0000</created>
                <updated>Wed, 30 Sep 2020 12:50:10 +0000</updated>
                            <resolved>Wed, 30 Sep 2020 12:46:02 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="17546" author="cloomis" created="Mon, 17 Aug 2020 17:45:21 +0000"  >&lt;p&gt;After a chat we decided to be dumb and robust:&lt;/p&gt;

&lt;p&gt;Do not bother to maintain counters, and just use MJD or Unix seconds minus some fixed offset. That allows the enu and xcu actors to &lt;b&gt;not&lt;/b&gt; require any external context (visit or counter).&lt;/p&gt;

&lt;p&gt;Keep a separate counter for each fpa, grating, and hexapod. &lt;tt&gt;xcu_b2.fpaMoved=$ticks&lt;/tt&gt;, say. Just use MHS keyword, and let the archiver take care of history,.&lt;/p&gt;

&lt;p&gt;The CCD/HX actors can put the dewar-appropriate keys into the header, and synthesize a single monotonically increasing counter (fpaMoved + hexapodMoved + gratingMoved would do fine). &lt;b&gt;That&lt;/b&gt; actor could generate rows for any opDb tables. &lt;/p&gt;
</comment>
                            <comment id="17605" author="cloomis" created="Tue, 1 Sep 2020 01:19:02 +0000"  >&lt;p&gt;I will implement the XCU and CCD parts of a slight variant on the above, unless waved off. Specifically:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;xcu_$cam (and enu_$sm) generate MHS keywords fpaMoved=MJD_seconds, etc.&lt;/li&gt;
	&lt;li&gt;ccd_$cam and hx_$cam generate MHS keywords configGeneration=$visit,MAX(xcu_$cam.fpaMoved,  enu_$sm.hexapodMoved, enu_$sm.gratingMoved).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;For the opDb, I think we should add a new column to the &lt;tt&gt;sps_exposure&lt;/tt&gt; table (&quot;configGeneration&quot;?), and the sps actor should populate that when it populates the rest of the per-frame row. That is what reductions would use. &lt;tt&gt;sps_exposure&lt;/tt&gt; currently has visit, cam, exptype, exp_start_time, so that seems like a good place to put it.&lt;/p&gt;

&lt;p&gt;Oh, why MJD seconds (e.g. 59085.84979714)? MHS keyword do not have a timestamp type, nor do they have an int8 type which we would require for unix seconds.&lt;/p&gt;

&lt;p&gt;Headers would get all the individual components plus the calculated generation date.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=arnaud.lefur&quot; class=&quot;user-hover&quot; rel=&quot;arnaud.lefur&quot;&gt;arnaud.lefur&lt;/a&gt;&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;?&lt;/p&gt;
</comment>
                            <comment id="17618" author="arnaud.lefur" created="Wed, 2 Sep 2020 16:22:29 +0000"  >&lt;p&gt;Agreed.&lt;br/&gt;
beamConfigDate is the keyword/column name&lt;/p&gt;</comment>
                            <comment id="17814" author="arnaud.lefur" created="Wed, 30 Sep 2020 12:46:02 +0000"  >&lt;p&gt;implemented and currently running at Subaru.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="14671">INSTRM-1054</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14609">INSTRM-1035</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14610">INSTRM-1036</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14708">INSTRM-1064</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14712">INSTRM-1068</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|zzs1mg:020x</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="85">SM1PD-2020 G2</customfieldvalue>
    <customfieldvalue id="86">SM1PD-2020 H</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        </customfields>
    </item>
</channel>
</rss>