Menu

SVN archive Commit Log


Commit Date  
[r2808] by root

migration from CVS

2006-11-12 15:56:19 Tree
[r2807] by root

migration from CVS

2006-11-12 15:56:18 Tree
[r2806] by root

migration from CVS

2006-11-12 15:56:17 Tree
[r2805] by root

migration from CVS

2006-11-12 15:56:16 Tree
[r2804] by root

migration from CVS

2006-11-12 15:56:15 Tree
[r2803] by root

migration from CVS

2006-11-12 15:55:03 Tree
[r2802] by root

"website at home.gna.org"

2006-11-12 12:47:44 Tree
[r2801] by bugman

Two functions for converting a string bit pattern to a float and a number of IEEE-754 constants.

The fucntions 'bitpatternToFloat()' and 'bitpatternToInt()' have been added to 'float.py'. The
first converts a 64 bit IEEE-754 bit pattern in the form of a string into a 64 bit Python float.
The second converts an arbitrary bit pattern into its integer representation. By looping over each
8 characters of the string (1 byte), 'bitpatternToFloat()' calls 'bitpatternToInt()' to create an
array of integers. Then 'packBytesAsPyFloat()' is called to convert the byte array into the float.
These two functions convert between big and little endian when necessary.

By passing big-endian 64 bit patterns to the 'bitpatternToFloat()' function, the following IEEE-754
constants are defined:
PosZero: 0000000000000000000000000000000000000000000000000000000000000000
NegZero: 1000000000000000000000000000000000000000000000000000000000000000
PosEpsilonDenorm: 0000000000000000000000000000000000000000000000000000000000000001
NegEpsilonDenorm: 1000000000000000000000000000000000000000000000000000000000000001
PosEpsilonNorm: 0000000000010000000000000000000000000000000000000000000000000001
NegEpsilonNorm: 1000000000010000000000000000000000000000000000000000000000000001
PosMax: 0111111111101111111111111111111111111111111111111111111111111111
NegMin: 1111111111101111111111111111111111111111111111111111111111111111
PosInf: 0111111111110000000000000000000000000000000000000000000000000000
NegInf: 1111111111110000000000000000000000000000000000000000000000000000
PosNaN_A: 0111111111110000000000000000000000000000001000000000000000000000
NegNaN_A: 1111111111110000000000000000000000000000001000000000000000000000
PosNaN_B: 0111111111110000000000000000011111111111111111111110000000000000
NegNaN_B: 1111111111110000000000000000011111111111111111111110000000000000
PosNaN_C: 0111111111110101010101010101010101010101010101010101010101010101
NegNaN_C: 1111111111110101010101010101010101010101010101010101010101010101
PosNaN = PosNaN_C
NegNaN = NegNaN_C

2006-11-11 09:57:35 Tree
[r2800] by bugman

Ported r2798 and r2799 from the 1.3 line (fix for bug #7676).

The command used was:
svn merge -r2797:2799 svn+ssh://bugman@.../svn/relax/1.3

These changes fix bug #7676 (https://gna.org/bugs/?7676) reported by Stephen Headey <s dot j dot
headey at massey dot ac dot nz>.

2006-11-10 07:21:56 Tree
[r2799] by bugman

Fix for bug #7676 (https://gna.org/bugs/?7676).

This bug was reported by Stephen Headey <s dot j dot headey at massey dot ac dot nz>. The issue was
originally reported at https://mail.gna.org/public/relax-users/2006-11/msg00003.html (Message-id:
<59ADAF5CA6A8FC4C889BD4097D912BB1072D330D@...>). Together with r2798
(https://mail.gna.org/public/relax-commits/2006-11/msg00096.html) which fixed the issue of not
having 2 header lines, this gives more flexibility in reading XEasy text files.

The function 'self.det_dimensions()' has been added to determine which of w1 or w2 is the proton
dimension. The intensity reading function 'self.intensity_xeasy()' then uses this info to return
the correct proton and heteronucleus names for the given data line.

2006-11-10 07:18:32 Tree
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.