the monkey patch should be used only for export Dream3D
Initially it got activated at the start of _result.py This led to failure of other tests. Use the patch only when needed.
This commit is contained in:
parent
fc44112109
commit
85010a8d6d
|
@ -84,8 +84,6 @@ class AttributeManagerNullterm(h5py.AttributeManager):
|
||||||
super().create(name=name,data=data,shape=shape,dtype=dtype)
|
super().create(name=name,data=data,shape=shape,dtype=dtype)
|
||||||
|
|
||||||
|
|
||||||
h5py._hl.attrs.AttributeManager = AttributeManagerNullterm # 'Monkey patch'
|
|
||||||
|
|
||||||
class Result:
|
class Result:
|
||||||
"""
|
"""
|
||||||
Add data to and export data from a DADF5 (DAMASK HDF5) file.
|
Add data to and export data from a DADF5 (DAMASK HDF5) file.
|
||||||
|
@ -1972,6 +1970,8 @@ class Result:
|
||||||
Directory to save DREAM3D files. Will be created if non-existent.
|
Directory to save DREAM3D files. Will be created if non-existent.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
h5py._hl.attrs.AttributeManager = AttributeManagerNullterm # 'Monkey patch'
|
||||||
|
|
||||||
Phase_types = {'Primary': 0}
|
Phase_types = {'Primary': 0}
|
||||||
#further additions to these can be done by looking at 'Create Ensemble Info' filter
|
#further additions to these can be done by looking at 'Create Ensemble Info' filter
|
||||||
# other options could be 'Precipitate' and so on.
|
# other options could be 'Precipitate' and so on.
|
||||||
|
|
Loading…
Reference in New Issue