[pyfr] 06/32: Fix the HDF5 type of mesh_uuid for imported meshes.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Apr 21 08:21:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository pyfr.
commit e4fde66624f74c4b0bbfae7c7c11a50884a0a73c
Author: Freddie Witherden <freddie at witherden.org>
Date: Wed Jan 27 17:28:47 2016 +0000
Fix the HDF5 type of mesh_uuid for imported meshes.
---
pyfr/readers/base.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pyfr/readers/base.py b/pyfr/readers/base.py
index 8311f9a..e5ebc81 100644
--- a/pyfr/readers/base.py
+++ b/pyfr/readers/base.py
@@ -3,6 +3,8 @@
from abc import ABCMeta, abstractmethod
import uuid
+import numpy as np
+
class BaseReader(object, metaclass=ABCMeta):
@abstractmethod
@@ -17,6 +19,6 @@ class BaseReader(object, metaclass=ABCMeta):
mesh = self._to_raw_pyfrm()
# Add metadata
- mesh['mesh_uuid'] = str(uuid.uuid4())
+ mesh['mesh_uuid'] = np.array(str(uuid.uuid4()), dtype='S')
return mesh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfr.git
More information about the debian-science-commits
mailing list