Author: bugman
Date: Fri Jan 30 17:52:57 2015
New Revision: 27400
URL: http://svn.gna.org/viewcvs/relax?rev=27400&view=rev
Log:
More advanced support for different numpy number types in the lib.xml relax
library module.
This allows numpy int16, int32, float32, and float64 objects to be stored and
retrieved from relax
XML save and results files.
Modified:
trunk/lib/xml.py
Modified: trunk/lib/xml.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/lib/xml.py?rev=27400&r1=27399&r2=27400&view=diff
==============================================================================
--- trunk/lib/xml.py (original)
+++ trunk/lib/xml.py Fri Jan 30 17:52:57 2015
@@ -24,7 +24,7 @@
# Python module imports (note that some of these are needed for the eval()
function call).
import numpy
-from numpy import set_printoptions, array, inf, nan, ndarray, zeros
+from numpy import set_printoptions, array, int16, int32, float32, float64,
inf, nan, ndarray, zeros
from re import search
# Modify numpy for better output of numbers and structures.
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits