tAdded legacy read mode for old data files - sphere - GPU-based 3D discrete ele… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit afb3b8c648cb2ea08955d5a16a51691d2c0a2663 | |
parent 5f80feadeeb6d2409daf56d63ee53a442b82e44f | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 12 Mar 2013 22:10:01 +0100 | |
Added legacy read mode for old data files | |
Diffstat: | |
M python/sphere.py | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -304,6 +304,8 @@ class Spherebin: | |
self.bonds_delta_t = numpy.fromfile(fh, dtype=numpy.float64, c… | |
self.bonds_omega_n = numpy.fromfile(fh, dtype=numpy.float64, c… | |
self.bonds_omega_t = numpy.fromfile(fh, dtype=numpy.float64, c… | |
+ else: | |
+ self.nb0 = 0 | |
finally: | |
if fh is not None: |