<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:34:11 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-93] Clarify that hash is 63-bit</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-93</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;Currently the &lt;tt&gt;datamodel.txt&lt;/tt&gt; defines a hash as a 63-bit unsigned int, fitted into 64 bit &lt;em&gt;signed&lt;/em&gt; integers:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/Subaru-PFS/datamodel/blob/7af03e7b2adba3b5e190995b54296d70683e6d17/datamodel.txt#L28&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/datamodel/blob/7af03e7b2adba3b5e190995b54296d70683e6d17/datamodel.txt#L28&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;In various places I refer to a SHA-1, which is a strong 160-bit hash, as used by e.g. git&lt;br/&gt;
 (&lt;a href=&quot;https://en.wikipedia.org/wiki/SHA-1&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://en.wikipedia.org/wiki/SHA-1&lt;/a&gt;). We truncate these hashes to 63bits (so as to fit&lt;br/&gt;
 in standard 64-bit signed integers). Sixty-three bits would produce up to 2^63 ~ 9e18 values.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This is fine and from recent discussions in the slack datamodel channel, in line with needs.&lt;/p&gt;

&lt;p&gt;However, some later parts of the text in that file are inconsistent: &lt;a href=&quot;https://github.com/Subaru-PFS/datamodel/blob/7af03e7b2adba3b5e190995b54296d70683e6d17/datamodel.txt#L105&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/datamodel/blob/7af03e7b2adba3b5e190995b54296d70683e6d17/datamodel.txt#L105&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;pfsVisitHash&lt;br/&gt;
 An integer uniquely defining the set of visits contributing to a reduced spectrum;&lt;br/&gt;
 this will be calculated as a SHA-1 truncated to 64 bits&lt;br/&gt;
 See calculate_pfsVisitHash() in&lt;br/&gt;
 python/pfs/datamodel/utils.py&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;(This should mention a truncation of the SHA-1 to 63 bits, and then fitted into a signed int).&lt;/p&gt;

&lt;p&gt;Update the text accordingly.&lt;/p&gt;

&lt;p&gt;There is a related problem raised in the discussion on slack, and that is the SHA generation function is not consistent with the 63-bit truncation:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/Subaru-PFS/datamodel/blob/fa98c08c8ac839956f0d4e8489523e4898894a8b/python/pfs/datamodel/utils.py#L51&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/datamodel/blob/fa98c08c8ac839956f0d4e8489523e4898894a8b/python/pfs/datamodel/utils.py#L51&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will be fixed in a separate PIPE2D ticket.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="15015">DAMD-93</key>
            <summary>Clarify that hash is 63-bit</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="10100" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="No further work should be done on this.">Won&apos;t Fix</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="hassan">hassan</assignee>
                                    <reporter username="hassan">hassan</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Nov 2020 21:08:53 +0000</created>
                <updated>Mon, 4 Jan 2021 20:23:06 +0000</updated>
                            <resolved>Mon, 9 Nov 2020 13:31:49 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="18031" author="hassan" created="Mon, 9 Nov 2020 13:31:49 +0000"  >&lt;p&gt;Withdrawn. Follow approach of using all 64 bits, and encoding into a signed 64-bit integer.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15016">PIPE2D-652</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|02qpro:</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>
                                                                <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>