<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:30:36 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-976] Provide functional requirement and use cases of the opDB standard library from the viewpoint of SpS actors</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-976</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;Description: As we discussed in previous ICS/MCS-PFI telecon, I will collect the functional requirements and possible use cases in each site of software development to figure out what kind of function we need in the standard library to access opDB and how we should generalized it. Please provide a list of your required function for this library and example of major use cases from the view point of SpS actors.&lt;br/&gt;
&#160;&lt;br/&gt;
Below are possible examples for MCS/PFI-related tables: * &lt;br/&gt;
&#160;insert (pandas/numpy/&#8230;) array of measured data into `mcs_data`&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;p&gt;&#160;get information from `cobra_geometry`&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;&lt;p&gt;&#160;get target information joining `cobra_status`, `pfs_config_fiber`, and `target`&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;&lt;p&gt;...&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;br/&gt;
If you can provide any performance requirements (speed/stability/&#8230;), that would be great.&lt;br/&gt;
&#160;&lt;br/&gt;
I will compile the requirements and update the proposal of the standard library:&lt;br/&gt;
&lt;a href=&quot;https://sumire.pbworks.com/w/file/fetch/139861650/PFS-DAT-IPM003007-01_opdb_proposal_library.pdf&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://sumire.pbworks.com/w/file/fetch/139861650/PFS-DAT-IPM003007-01_opdb_proposal_library.pdf&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="14379">INSTRM-976</key>
            <summary>Provide functional requirement and use cases of the opDB standard library from the viewpoint of SpS actors</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="kiyoto.yabe">Kiyoto Yabe</reporter>
                        <labels>
                            <label>opDB</label>
                    </labels>
                <created>Mon, 11 May 2020 08:30:31 +0000</created>
                <updated>Tue, 10 Nov 2020 05:02:47 +0000</updated>
                            <resolved>Tue, 10 Nov 2020 05:02:47 +0000</resolved>
                                                                    <component>spt_operational_database</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="17127" author="arnaud.lefur" created="Mon, 11 May 2020 13:38:32 +0000"  >&lt;p&gt;here&apos;s the usecases from spsActor :&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;
opDB.insert(&lt;span class=&quot;code-quote&quot;&gt;&apos;sps_visit&apos;&lt;/span&gt;, pfs_visit_id=visit, exp_type=self.exptype)
opDB.insert(&lt;span class=&quot;code-quote&quot;&gt;&apos;sps_exposure&apos;&lt;/span&gt;, pfs_visit_id=visit, sps_camera_id=camera_id, exptime=self.exptime,
            time_exp_start=self.time_exp_start, time_exp_end=self.time_exp_end)

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;here&apos;s the usecases from iicActor:&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;
opDB.insert(&lt;span class=&quot;code-quote&quot;&gt;&apos;sps_sequence&apos;&lt;/span&gt;, visit_set_id=self.visit_set_id, sequence_type=self.seqtype, name=self.name,
            comments=self.comments, cmd_str=self.rawCmd, status=self.status)
opDB.insert(&lt;span class=&quot;code-quote&quot;&gt;&apos;visit_set&apos;&lt;/span&gt;, pfs_visit_id=visit, visit_set_id=self.visit_set_id)

visit_set_id, = opDB.fetchone(&lt;span class=&quot;code-quote&quot;&gt;&apos;select max(visit_set_id) from sps_sequence&apos;&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;There are not much entries, I don&apos;t think there are strong performance requirements.&lt;/p&gt;</comment>
                            <comment id="17136" author="kiyoto.yabe" created="Wed, 13 May 2020 07:29:56 +0000"  >&lt;p&gt;Thank you for your feedback!&lt;/p&gt;</comment>
                            <comment id="17197" author="arnaud.lefur" created="Wed, 27 May 2020 14:52:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=kiyoto.yabe&quot; class=&quot;user-hover&quot; rel=&quot;kiyoto.yabe&quot;&gt;Kiyoto Yabe&lt;/a&gt;&#160;a few other usecases from our data acquisition GUI:&lt;/p&gt;

&lt;p&gt;&#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-java&quot;&gt;
visits = opDB.fetchall(f&lt;span class=&quot;code-quote&quot;&gt;&apos;select pfs_visit_id from visit_set where visit_set_id={visit_set_id}&apos;&lt;/span&gt;)

exposures = opDB.fetchall(f&lt;span class=&quot;code-quote&quot;&gt;&apos;select sps_exposure.pfs_visit_id,exp_type,sps_module_id,arm,sps_exposure.sps_camera_id from sps_exposure &lt;span class=&quot;code-keyword&quot;&gt;inner&lt;/span&gt; join sps_visit on sps_exposure.pfs_visit_id=sps_visit.pfs_visit_id &lt;span class=&quot;code-keyword&quot;&gt;inner&lt;/span&gt; join sps_camera on sps_exposure.sps_camera_id = sps_camera.sps_camera_id where sps_exposure.pfs_visit_id={visit}&apos;&lt;/span&gt;)

dataFlag, notes = opDB.fetchone(f&lt;span class=&quot;code-quote&quot;&gt;&apos;select data_flag, notes from sps_annotation where pfs_visit_id={exp.visit} and sps_camera_id={exp.camId}&apos;&lt;/span&gt;)

opDB.insert(&lt;span class=&quot;code-quote&quot;&gt;&apos;sps_annotation&apos;&lt;/span&gt;, data_flat=data_flat, notes=notes)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="13721">INSTRM-735</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|zzs1k0:</customfieldvalue>

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