URL: <http://gna.org/bugs/?23017> Summary: Multidimensional numpy arrays are not being stored as IEEE 754 arrays in the XML state and results files. Project: relax Submitted by: bugman Submitted on: Tue 02 Dec 2014 07:52:23 PM UTC Category: relax's source code Specific analysis category: All analyses Priority: 5 - Normal Severity: 3 - Normal Status: None Assigned to: bugman Originator Name: Originator Email: Open/Closed: Open Release: 3.3.3 Discussion Lock: Any Operating System: All systems _______________________________________________________ Details: The following relax code demonstrates the problem: from numpy import array pipe.create('test', 'mf') cdp.test = array([1, 2, 3.]) cdp.test2 = array([[1, 2, 3.], [4, 5, 6]]) state.save('test', force=True) Opening the test.bz2 file, the XML for the numpy arrays is: <test type="dtype('float64')"> <value> array([ 1., 2., 3.]) </value> <ieee_754_byte_array> [[0, 0, 0, 0, 0, 0, 240, 63], [0, 0, 0, 0, 0, 0, 0, 64], [0, 0, 0, 0, 0, 0, 8, 64]] </ieee_754_byte_array> </test> <test2 type="dtype('float64')"> <value> array([[ 1., 2., 3.], [ 4., 5., 6.]]) </value> </test2> The <test2> tag should also be represented with the non-truncating <ieee_754_byte_array> tag. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?23017> _______________________________________________ Message sent via/by Gna! http://gna.org/