<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:48:27 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-100] Please address code review issues with PIPE2D-48</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-100</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description></description>
                <environment></environment>
        <key id="11213">PIPE2D-100</key>
            <summary>Please address code review issues with PIPE2D-48</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/major.svg">Major</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="aritter">aritter</assignee>
                                    <reporter username="aritter">aritter</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Oct 2016 03:23:45 +0000</created>
                <updated>Thu, 22 Jun 2017 21:30:56 +0000</updated>
                            <resolved>Thu, 22 Jun 2017 21:30:56 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                <comments>
                            <comment id="11946" author="aritter" created="Fri, 17 Mar 2017 03:48:19 +0000"  >&lt;p&gt;These are the original comments in &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-48&quot; title=&quot;Change extraction tasks to read FiberTrace parameters from disk&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-48&quot;&gt;&lt;del&gt;PIPE2D-48&lt;/del&gt;&lt;/a&gt;:&lt;/p&gt;

&lt;div class=&quot;panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelContent&quot;&gt;
&lt;ol&gt;
	&lt;li&gt;Please remove personal entries from .gitignore&lt;/li&gt;
	&lt;li&gt;There should be no config overrides in runPipeline&lt;/li&gt;
	&lt;li&gt;Please move runPipeline to examples&lt;/li&gt;
	&lt;li&gt;Please put all white-space only changes into a separate commit, and label it appropriately&lt;/li&gt;
	&lt;li&gt;Check that the memory is contiguous for all the data in a given fibre. If you need to transpose, please add a note to &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-35&quot; title=&quot;Read &amp;amp; write 2-D outputs according to the data model &quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-35&quot;&gt;&lt;del&gt;PIPE2D-35&lt;/del&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Please don&apos;t comment out templates; remove them&lt;/li&gt;
	&lt;li&gt;Remove all cout &amp;lt;&amp;lt; statements; use logging (including tracing as appropriate)&lt;/li&gt;
	&lt;li&gt;remove all python print statements to use log&lt;/li&gt;
	&lt;li&gt;How many info logs should become debug?&lt;/li&gt;
	&lt;li&gt;Please remove all if False blocks. If they are possibly useful control them with variables (probably set by LsstDebug)&lt;/li&gt;
	&lt;li&gt;There&apos;s no need to specify the wavelength files on the command line.&lt;/li&gt;
	&lt;li&gt;Please factor the I/O into separate functions, and don&apos;t read it for every exposure&lt;/li&gt;
	&lt;li&gt;Use &quot;not success&quot; not &quot;success == False&quot;&lt;/li&gt;
	&lt;li&gt;What do comments like &quot;THIS DOESN&apos;T WORK&quot; mean?&lt;/li&gt;
	&lt;li&gt;Please remove all commented out code&lt;/li&gt;
	&lt;li&gt;Use np.empty((N, M)) not np.array(shape=(N, M))&lt;/li&gt;
	&lt;li&gt;Explain shape for wLenTemp&lt;/li&gt;
	&lt;li&gt;Use k += 1 not k = k + 1&lt;/li&gt;
	&lt;li&gt;Use # not &quot;&quot;&quot; ... &quot;&quot;&quot; for comments&lt;/li&gt;
	&lt;li&gt;Things like getAllFluxes() should not need to make a copy if you get the column/row major right&lt;/li&gt;
	&lt;li&gt;Split Spectra.py tests into separate tests if you might not want to run them (and then use a skip decorator)&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="11956" author="aritter" created="Fri, 24 Mar 2017 07:41:59 +0000"  >&lt;p&gt;1. Please remove personal entries from .gitignore:&lt;br/&gt;
  done&lt;/p&gt;

&lt;p&gt;2. There should be no config overrides in runPipeline:&lt;br/&gt;
  already happened&lt;/p&gt;

&lt;p&gt;3. Please move runPipeline to examples&lt;br/&gt;
  already happened&lt;/p&gt;

&lt;p&gt;4. Please put all white-space only changes into a separate commit, and label it appropriately:&lt;br/&gt;
  filed ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-166&quot; title=&quot;Remove all remaining trailing spaces&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-166&quot;&gt;&lt;del&gt;PIPE2D-166&lt;/del&gt;&lt;/a&gt; and put white-space change commits there&lt;/p&gt;

&lt;p&gt;5. Check that the memory is contiguous for all the data in a given fibre. If you need to transpose, please add a note to &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-35&quot; title=&quot;Read &amp;amp; write 2-D outputs according to the data model &quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-35&quot;&gt;&lt;del&gt;PIPE2D-35&lt;/del&gt;&lt;/a&gt;:&lt;br/&gt;
  I checked all class variables in &lt;tt&gt;FiberTrace&lt;/tt&gt; and &lt;tt&gt;Spectrum&lt;/tt&gt; visually if the storage order makes sense and could not find any problems&lt;/p&gt;

&lt;p&gt;6. Please don&apos;t comment out templates; remove them&lt;br/&gt;
  I filed ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-167&quot; title=&quot;Remove all commented out code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-167&quot;&gt;&lt;del&gt;PIPE2D-167&lt;/del&gt;&lt;/a&gt; and moved commits which remove commented out lines there&lt;/p&gt;

&lt;p&gt;7.  Remove all &lt;tt&gt;cout &amp;lt;&amp;lt;&lt;/tt&gt; statements; use logging (including tracing as appropriate):&lt;br/&gt;
  I filed ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-165&quot; title=&quot;Replace {{cout &amp;lt;&amp;lt;}} and {{print}} with appropriate LSST log messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-165&quot;&gt;&lt;del&gt;PIPE2D-165&lt;/del&gt;&lt;/a&gt; and moved commits there&lt;/p&gt;

&lt;p&gt;8. remove all python print statements to use log:&lt;br/&gt;
  included in ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-165&quot; title=&quot;Replace {{cout &amp;lt;&amp;lt;}} and {{print}} with appropriate LSST log messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-165&quot;&gt;&lt;del&gt;PIPE2D-165&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;9.  How many info logs should become debug?:&lt;br/&gt;
  included in ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-165&quot; title=&quot;Replace {{cout &amp;lt;&amp;lt;}} and {{print}} with appropriate LSST log messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-165&quot;&gt;&lt;del&gt;PIPE2D-165&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;10. Please remove all if False blocks. If they are possibly useful control them with variables (probably set by LsstDebug):&lt;/p&gt;


&lt;p&gt;11. There&apos;s no need to specify the wavelength files on the command line.&lt;br/&gt;
  already happened&lt;/p&gt;

&lt;p&gt;12. Please factor the I/O into separate functions, and don&apos;t read it for every exposure&lt;br/&gt;
  Filed ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-182&quot; title=&quot;Please factor the I/O in reduceArc(RefSpec)Task into separate functions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-182&quot;&gt;&lt;del&gt;PIPE2D-182&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;13. Use &quot;not success&quot; not &quot;success == False&quot;&lt;br/&gt;
  Done as part of this ticket.&lt;/p&gt;

&lt;p&gt;14. What do comments like &quot;THIS DOESN&apos;T WORK&quot; mean?&lt;br/&gt;
  &quot;THIS DOESN&apos;T WORK&quot; was a leftover from a previous code change. It concerned the values of the private class variable &lt;tt&gt;_iTrace&lt;/tt&gt; in the C++ classes &lt;tt&gt;FiberTrace&lt;/tt&gt; and &lt;tt&gt;Spectrum&lt;/tt&gt;. Setting the value for the &lt;tt&gt;Spectrum&lt;/tt&gt; is being taken care of in &lt;tt&gt;ExtractSpectraTask&lt;/tt&gt;. I removed all the lines which set &lt;tt&gt;iTrace&lt;/tt&gt; for the spectra (commit &quot;reduceArcTask: check iTrace for correct values&quot;). Currently the trace IDs have to be set for the FiberTraceSet via &lt;tt&gt;assignITrace&lt;/tt&gt; after tracing the FiberTraces. I filed ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-180&quot; title=&quot;include assignITrace in findAndTraceApertures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-180&quot;&gt;&lt;del&gt;PIPE2D-180&lt;/del&gt;&lt;/a&gt; to include &lt;tt&gt;assignITrace&lt;/tt&gt; in &lt;tt&gt;findAndTraceApertures&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;15. Please remove all commented out code&lt;br/&gt;
  I filed ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-167&quot; title=&quot;Remove all commented out code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-167&quot;&gt;&lt;del&gt;PIPE2D-167&lt;/del&gt;&lt;/a&gt; to remove all commented out code from all source files&lt;/p&gt;

&lt;p&gt;16. Use np.empty((N, M)) not np.array(shape=(N, M))&lt;br/&gt;
  I filed ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-173&quot; title=&quot;Use np.empty((N, M)) not np.ndarray(shape=(N, M))&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-173&quot;&gt;&lt;del&gt;PIPE2D-173&lt;/del&gt;&lt;/a&gt; to replace all appearances of &lt;tt&gt;np.array&lt;/tt&gt; with &lt;tt&gt;np.empty&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;17. Explain shape for wLenTemp&lt;br/&gt;
  Changed setting of wLenTemp to &lt;tt&gt;wLenTemp = wavelengths&lt;span class=&quot;error&quot;&gt;&amp;#91;np.where(traceIds == traceId)&amp;#93;&lt;/span&gt;&lt;/tt&gt; which should be much clearer&lt;/p&gt;

&lt;p&gt;18. Use k += 1 not k = k + 1&lt;br/&gt;
  Done&lt;/p&gt;

&lt;p&gt;19. Use # not &quot;&quot;&quot; ... &quot;&quot;&quot; for comments&lt;br/&gt;
  Filed ticket &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-169&quot; title=&quot;Use # not &amp;quot;&amp;quot;&amp;quot; ... &amp;quot;&amp;quot;&amp;quot; for comments&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-169&quot;&gt;&lt;del&gt;PIPE2D-169&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;20. Things like getAllFluxes() should not need to make a copy if you get the column/row major right&lt;br/&gt;
  They need to in this case to create an array of the shape nFiberx x nCCDRows. The FiberTraces and Spectra are still only as long as they appear on the CCD. This is hidden from the end user as they are persisted with the height of nCCDRows. It would be a lot of work to change this...&lt;/p&gt;

&lt;p&gt;21. Split Spectra.py tests into separate tests if you might not want to run them (and then use a skip decorator)&lt;br/&gt;
  Removed all &lt;tt&gt;if True:&lt;/tt&gt; statements&lt;/p&gt;</comment>
                            <comment id="12296" author="aritter" created="Thu, 22 Jun 2017 21:30:56 +0000"  >&lt;p&gt;merged into master&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="11512">PIPE2D-166</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11513">PIPE2D-167</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11514">PIPE2D-168</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11515">PIPE2D-169</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11519">PIPE2D-172</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11511">PIPE2D-165</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11520">PIPE2D-173</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|ii00uv:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="22">2014-16</customfieldvalue>

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