<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:56:21 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>[PIPE2D-678] Add visit and date restrictions for generateReductionSpec</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-678</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;&lt;tt&gt;generateReductionSpec.py&lt;/tt&gt; currently extracts reduction specs for the entire opdb. This will not scale, so we should add options to restrict the list of visits by a visit and/or date range.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15090">PIPE2D-678</key>
            <summary>Add visit and date restrictions for generateReductionSpec</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="sogo.mineo">sogo.mineo</assignee>
                                    <reporter username="price">price</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Dec 2020 16:35:38 +0000</created>
                <updated>Thu, 14 Jan 2021 04:37:59 +0000</updated>
                            <resolved>Thu, 14 Jan 2021 04:37:59 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="18332" author="sogo.mineo" created="Tue, 12 Jan 2021 08:19:38 +0000"  >&lt;p&gt;I wonder how to express a time span in command lines.&lt;/p&gt;

&lt;p&gt;First, I think that the end of a time span should be exclusive. `Sps_exposure.time_exp_start` has microsecond accuracy. If the end of a time span is inclusive, it is difficult to iterate over dates without losing unfortunate records in the gaps at midnights. I mean, if a user wants to do this:&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;
    somecommand.py --daterange=2021-01-01T00:00:00..2021-01-01T23:59:59
    somecommand.py --daterange=2021-01-02T00:00:00..2021-01-02T23:59:59
    somecommand.py --daterange=2021-01-03T00:00:00..2021-01-03T23:59:59
    :
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Then, a record at &lt;tt&gt;2021-01-01T23:59:59.999999&lt;/tt&gt; will be lost. I don&apos;t know how well SQLite3 works, but I know some poor programs that occasionally output &lt;tt&gt;2021-01-01T23:59:60.000000&lt;/tt&gt; by rounding &lt;tt&gt;2021-01-01T23:59:59.9999996&lt;/tt&gt; (This is not related to leap seconds). So, it may be useless for the user to write &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;
    somecommand.py --daterange=2021-01-01T00:00:00..2021-01-01T23:59:59.999999
    somecommand.py --daterange=2021-01-02T00:00:00..2021-01-02T23:59:59.999999
    somecommand.py --daterange=2021-01-03T00:00:00..2021-01-03T23:59:59.999999
    :
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;because these commands still cannot catch &lt;tt&gt;2021-01-01T23:59:60.000000&lt;/tt&gt;. The user cannot simply say &lt;tt&gt;2021-01-01T23:59:60&lt;/tt&gt; because python&apos;s &lt;tt&gt;datetime.datetime&lt;/tt&gt; does not permit 60 for the second.&lt;/p&gt;

&lt;p&gt;Second, if I make the end of a time span exclusive, then it is confusing to keep using &lt;tt&gt;..&lt;/tt&gt;. Should I use &apos;/&apos; as in &lt;a href=&quot;https://en.wikipedia.org/wiki/ISO_8601&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://en.wikipedia.org/wiki/ISO_8601&lt;/a&gt; ?&lt;/p&gt;</comment>
                            <comment id="18333" author="price" created="Tue, 12 Jan 2021 15:36:56 +0000"  >&lt;p&gt;What about having separate &lt;tt&gt;&amp;#45;&amp;#45;begin&lt;/tt&gt; and &lt;tt&gt;&amp;#45;&amp;#45;end&lt;/tt&gt; arguments? Both could default to unset, specifying an open range.&lt;/p&gt;</comment>
                            <comment id="18345" author="sogo.mineo" created="Wed, 13 Jan 2021 06:44:25 +0000"  >&lt;p&gt;I added &lt;tt&gt;-&lt;del&gt;visit-start&lt;/tt&gt;, &lt;tt&gt;&lt;/del&gt;&lt;del&gt;visit-end&lt;/tt&gt;, &lt;tt&gt;&lt;/del&gt;&lt;del&gt;date-start&lt;/tt&gt;, and &lt;tt&gt;&lt;/del&gt;-date-end&lt;/tt&gt;. Could you review the change?&lt;/p&gt;</comment>
                            <comment id="18346" author="price" created="Wed, 13 Jan 2021 16:28:48 +0000"  >&lt;p&gt;Very nice work, thanks!&lt;/p&gt;</comment>
                            <comment id="18347" author="sogo.mineo" created="Thu, 14 Jan 2021 04:37:59 +0000"  >&lt;p&gt;Merged to master. Thank you.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="13573">PIPE2D-423</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|zzs2rz:zk</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>price</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>