<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:49:44 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-224] Add support for DM-4141 to reduceArc*.py</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-224</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;The new support for proper unit exit codes (LSST&apos;s DM-4141) requires some boiler plate added to TaskRunner;  please add it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="11705">PIPE2D-224</key>
            <summary>Add support for DM-4141 to reduceArc*.py</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="rhl">rhl</assignee>
                                    <reporter username="rhl">rhl</reporter>
                        <labels>
                    </labels>
                <created>Sat, 22 Jul 2017 13:13:23 +0000</created>
                <updated>Tue, 25 Jul 2017 20:15:56 +0000</updated>
                            <resolved>Tue, 25 Jul 2017 20:15:56 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="12416" author="price" created="Tue, 25 Jul 2017 18:26:24 +0000"  >&lt;p&gt;I &lt;b&gt;think&lt;/b&gt; you could get rid of &lt;tt&gt;ReduceArcTaskRunner.&amp;#95;&amp;#95;call&amp;#95;&amp;#95;&lt;/tt&gt; completely (along with the associated maintenance) if you changed the &lt;tt&gt;getTargetList&lt;/tt&gt;:&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;
&lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;ReduceArcTaskRunner(TaskRunner):
    &lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;Get parsed values into the ReduceArcTask.run&quot;&lt;/span&gt;&quot;&quot;
    @staticmethod
    def getTargetList(parsedCmd, **kwargs):
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; [(parsedCmd.id.refList, dict(butler=parsedCmd.butler, wLenFile=parsedCmd.wLenFile, lineList=parsedCmd.lineList))]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="12417" author="rhl" created="Tue, 25 Jul 2017 19:03:43 +0000"  >&lt;p&gt;That fails with &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;
Traceback (most recent call last):
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;bin/reduceArcRefSpec.py&quot;&lt;/span&gt;, line 4, in &amp;lt;module&amp;gt;
    ReduceArcRefSpecTask.parseAndRun()
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/Users/rhl/LSST/pipe/base/python/lsst/pipe/base/cmdLineTask.py&quot;&lt;/span&gt;, line 532, in parseAndRun
    resultList = taskRunner.run(parsedCmd)
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/Users/rhl/LSST/pipe/base/python/lsst/pipe/base/cmdLineTask.py&quot;&lt;/span&gt;, line 227, in run
    resultList = list(mapFunc(self, targetList))
  File &lt;span class=&quot;code-quote&quot;&gt;&quot;/Users/rhl/LSST/pipe/base/python/lsst/pipe/base/cmdLineTask.py&quot;&lt;/span&gt;, line 368, in __call__
    dataRef, kwargs = args
ValueError: too many values to unpack
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;
(Pdb) w
  /Users/rhl/PFS/drp/stella/bin/reduceArcRefSpec.py(4)&amp;lt;module&amp;gt;()
-&amp;gt; ReduceArcRefSpecTask.parseAndRun()
  /Users/rhl/LSST/pipe/base/python/lsst/pipe/base/cmdLineTask.py(532)parseAndRun()
-&amp;gt; resultList = taskRunner.run(parsedCmd)
  /Users/rhl/LSST/pipe/base/python/lsst/pipe/base/cmdLineTask.py(227)run()
-&amp;gt; resultList = list(mapFunc(self, targetList))
&amp;gt; /Users/rhl/LSST/pipe/base/python/lsst/pipe/base/cmdLineTask.py(368)__call__()
-&amp;gt; dataRef, kwargs = args
(Pdb) p type(args)
&amp;lt;type &lt;span class=&quot;code-quote&quot;&gt;&apos;dict&apos;&lt;/span&gt;&amp;gt;
(Pdb) p args.keys()
[&lt;span class=&quot;code-quote&quot;&gt;&apos;butler&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;lineList&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;expRefList&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;refSpec&apos;&lt;/span&gt;]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="12419" author="price" created="Tue, 25 Jul 2017 19:10:10 +0000"  >&lt;p&gt;If &lt;tt&gt;type(args)&lt;/tt&gt; is &lt;tt&gt;dict&lt;/tt&gt; then I don&apos;t think you can be using the code I provided, where &lt;tt&gt;type(args)&lt;/tt&gt; would be &lt;tt&gt;tuple&lt;/tt&gt;?&lt;/p&gt;</comment>
                            <comment id="12421" author="rhl" created="Tue, 25 Jul 2017 19:31:14 +0000"  >&lt;p&gt;Sorry, you&apos;re right (I cut and pasted something foolish from pdb).  But there is still a problem;  &lt;tt&gt;dataRef&lt;/tt&gt; is a list, and it&apos;s passed to &lt;tt&gt;task.writeMetadata&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="12422" author="price" created="Tue, 25 Jul 2017 19:33:59 +0000"  >&lt;p&gt;You could add to &lt;tt&gt;ReduceArcTask&lt;/tt&gt;:&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;
    def _getMetadataName(self):
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; None
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Why does &lt;tt&gt;reduceArc*.py&lt;/tt&gt; need a list of input dataRefs?&lt;/p&gt;</comment>
                            <comment id="12423" author="rhl" created="Tue, 25 Jul 2017 20:09:17 +0000"  >&lt;p&gt;Paul and I discussed this.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;reduceArc.py&lt;/tt&gt; was designed to add sets of exposures together to improve the S/N and then write a calibration product for later reduction.  It currently processes individual images, but I&apos;d rather not address this problem with this ticket.&lt;/p&gt;

&lt;p&gt;Paul&apos;s proposal to simply turn off metadata is a workaround, but as the metadata dumping doesn&apos;t work sensibly for &lt;b&gt;any&lt;/b&gt; &lt;tt&gt;pipe_driver&lt;/tt&gt; scripts which process multiple {{dataRef}}s it&apos;s acceptable here.&lt;/p&gt;</comment>
                            <comment id="12424" author="rhl" created="Tue, 25 Jul 2017 20:15:56 +0000"  >&lt;p&gt;rebased, merged, pushed&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|ii02i7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>price</customfieldvalue>

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