<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:33:51 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>[DAMD-62] Change filenameFormat for pfsObject or update datamodel.txt</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-62</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;I noticed that the filename format for pfsObject (and pfsSingle and pfsReference as well) described in drp.py is&lt;/p&gt;

&lt;p&gt;&quot;pfsObject-%(catId)03d-%(tract)05d-%(patch)s-%(objId)016x-%(nVisit)03d-%(pfsVisitHash)016x.fits&quot;&lt;/p&gt;

&lt;p&gt;, but, according to datamodel.txt, it should be&lt;/p&gt;

&lt;p&gt;&quot;pfsObject-%05d-%s-%03d-%016x-%03d-0x%016x.fits&quot; % (tract, patch, catId, objId, nVisit % 1000, pfsVisitHash)&lt;/p&gt;

&lt;p&gt;(I mean the location of catId is different)&lt;/p&gt;

&lt;p&gt;Could tell me which one is correct?&lt;/p&gt;</description>
                <environment></environment>
        <key id="13637">DAMD-62</key>
            <summary>Change filenameFormat for pfsObject or update datamodel.txt</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="hassan">hassan</assignee>
                                    <reporter username="kiyoto.yabe">Kiyoto Yabe</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Jun 2019 08:09:32 +0000</created>
                <updated>Thu, 29 Aug 2019 18:23:06 +0000</updated>
                            <resolved>Tue, 27 Aug 2019 16:48:38 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="15697" author="hassan" created="Wed, 26 Jun 2019 18:15:01 +0000"  >&lt;p&gt;The definition in datamodel.txt is correct. I will update the formats in &lt;tt&gt;drp.py&lt;/tt&gt; accordingly.&lt;/p&gt;</comment>
                            <comment id="15698" author="hassan" created="Wed, 26 Jun 2019 19:28:54 +0000"  >&lt;p&gt;Initial fix pushed to branch. Unit test being considered.&lt;/p&gt;</comment>
                            <comment id="15814" author="price" created="Thu, 25 Jul 2019 15:06:08 +0000"  >&lt;p&gt;I think that the fix should be to change &lt;tt&gt;datamodel.txt&lt;/tt&gt;, not the code. The reason for this is sorting: &lt;tt&gt;catId&lt;/tt&gt; is the most fundamental discriminator between spectra (e.g., it&apos;s the difference between a galactic archeology target and a high-z quasar target) and should therefore be listed first in the filename so that a sorted list of files will group the common &lt;tt&gt;catId&lt;/tt&gt; files together.&lt;/p&gt;</comment>
                            <comment id="15816" author="rhl" created="Thu, 25 Jul 2019 16:08:55 +0000"  >&lt;p&gt;The version in the datamodel.txt is correct by definition, so the drp.py should have conformed. If we wanted to move the catId to the front, that should have been filed as a DAMD ticket &lt;b&gt;before&lt;/b&gt; the change was made.&lt;/p&gt;

&lt;p&gt;I agree that the change is reasonable (especially as while most PFS SSP targets will come from HSC, and thus have &lt;tt&gt;catId==1&lt;/tt&gt; the GA ones will not). In the interest of efficiency let us take this ticket as the one that proposes the change. Normally this would come up for discussion at the DRP meeting where we discuss both 1-D and 2-D, but if &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hassan&quot; class=&quot;user-hover&quot; rel=&quot;hassan&quot;&gt;hassan&lt;/a&gt; chooses I think we can make this decision in a less formal way as the codebase is already broken and LAM is about to be off for the month of Ao&#251;t.&lt;/p&gt;</comment>
                            <comment id="15817" author="hassan" created="Thu, 25 Jul 2019 16:38:45 +0000"  >&lt;p&gt;Proposal from &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=price&quot; class=&quot;user-hover&quot; rel=&quot;price&quot;&gt;price&lt;/a&gt; agreed: &lt;tt&gt;catId&lt;/tt&gt; will now be the first element of the file name.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;datamodel.txt&lt;/tt&gt; and the code base need to be updated accordingly as part of this ticket.&lt;/p&gt;</comment>
                            <comment id="15994" author="hassan" created="Tue, 27 Aug 2019 16:48:38 +0000"  >&lt;p&gt;Fixed in 15d0cf0.&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|02qpt6:508yl03zc9</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="52">2DDRP-2019 F</customfieldvalue>
    <customfieldvalue id="55">2DDRP-2019 G</customfieldvalue>

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