<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:47:34 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-33] Sort out Spectrum containers</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-33</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;Currently FiberTraceSet is a std::vector&amp;lt;PTR&amp;lt;FiberTrace&amp;gt;&amp;gt;. For a SpectrumSet I originally had the same concept, but I found that the only way to get rid of the compiler warning &quot;Returning address of a stack object&quot; (something like that) was to go from std::vector&amp;lt;PTR&amp;lt;Spectrum&amp;gt;&amp;gt; to std::vector&amp;lt;Spectrum&amp;gt;. Actually I now have an idea what I might have done wrong (probably created a shared pointer without the &quot;new&quot; in the argument list - should check that) so I think for consistency and to reduce copying I should probably change that back to std::vector&amp;lt;PTR&amp;lt;Spectrum&amp;gt;&amp;gt; and try again...)&lt;/p&gt;</description>
                <environment></environment>
        <key id="10907">PIPE2D-33</key>
            <summary>Sort out Spectrum containers</summary>
                <type id="1" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10503&amp;avatarType=issuetype">Bug</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>Fri, 1 Jul 2016 18:21:04 +0000</created>
                <updated>Tue, 11 Oct 2016 09:59:00 +0000</updated>
                            <resolved>Mon, 10 Oct 2016 00:55:56 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="11104" author="aritter" created="Fri, 15 Jul 2016 07:38:03 +0000"  >&lt;p&gt;Changed SpectrumSet._spectra to PTR(Vector&amp;lt;PTR(Spectrum)&amp;gt;). Tests pass, but I&apos;m still getting a compiler warning:&lt;br/&gt;
python/pfs/drp/stella/stellaLib_wrap.cc:4601:9: warning: destination for this &apos;memset&apos; call is a pointer to dynamic class &apos;Spectrum&amp;lt;float, unsigned short, float, float&amp;gt;&apos;; vtable po&lt;br/&gt;
inter will be overwritten &lt;span class=&quot;error&quot;&gt;&amp;#91;-Wdynamic-class-memaccess&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="11110" author="aritter" created="Fri, 15 Jul 2016 17:23:02 +0000"  >&lt;p&gt;We have a similar warning in LSST (ticket DM-1401). I just gonna leave it like that for now...&lt;/p&gt;</comment>
                            <comment id="11111" author="swinbank" created="Sat, 16 Jul 2016 17:18:20 +0000"  >&lt;p&gt;Pretty sure the plan was you&apos;d chat to JimB about this, then set it back to &quot;in review&quot; if he doesn&apos;t have any good suggestions and agrees that this warning is likely harmless.&lt;/p&gt;</comment>
                            <comment id="11130" author="aritter" created="Tue, 19 Jul 2016 00:02:49 +0000"  >&lt;p&gt;Jim Bosh didn&apos;t really have anything to say about this. Here is the function that contains the error:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;stellaLib_wrap.cc&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
  template &amp;lt;&lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;Type&amp;gt; 
  struct traits_as&amp;lt;Type, pointer_category&amp;gt; {
    &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; Type as(PyObject *obj, bool throw_error) {
      Type *v = 0;      
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; res = (obj ? traits_asptr&amp;lt;Type&amp;gt;::asptr(obj, &amp;amp;v) : SWIG_ERROR);
      &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (SWIG_IsOK(res) &amp;amp;&amp;amp; v) {
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (SWIG_IsNewObj(res)) {
	  Type r(*v);
	  delete v;
	  &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; r;
	} &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
	  &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; *v;
	}
      } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
	&lt;span class=&quot;code-comment&quot;&gt;// Uninitialized &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; value, no Type() constructor required.
&lt;/span&gt;	&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; Type *v_def = (Type*) malloc(sizeof(Type));
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!PyErr_Occurred()) {
	  SWIG_Error(SWIG_TypeError,  swig::type_name&amp;lt;Type&amp;gt;());
	}
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (throw_error) &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; std::invalid_argument(&lt;span class=&quot;code-quote&quot;&gt;&quot;bad type&quot;&lt;/span&gt;);
	memset(v_def,0,sizeof(Type));
	&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; *v_def;
      }
    }
  };
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Seems like the &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;memset&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; command is only called if &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;v&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; is uninitialized, so as long as our code is correct I believe this should not cause a problem.&lt;/p&gt;</comment>
                            <comment id="11423" author="aritter" created="Mon, 10 Oct 2016 00:55:56 +0000"  >&lt;p&gt;Merged into master&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|02qpuc:zw</customfieldvalue>

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

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

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