Merge branch 'PythonImprovements' into pytest
This commit is contained in:
commit
2b392241f9
|
@ -620,7 +620,7 @@ class DADF5():
|
||||||
raise ValueError
|
raise ValueError
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'data': mechanics.deviator(x['data']),
|
'data': mechanics.deviatoric_part(x['data']),
|
||||||
'label': 's_{}'.format(x['label']),
|
'label': 's_{}'.format(x['label']),
|
||||||
'meta': {
|
'meta': {
|
||||||
'Unit': x['meta']['Unit'],
|
'Unit': x['meta']['Unit'],
|
||||||
|
|
|
@ -31,7 +31,6 @@ class Geom():
|
||||||
comments lines.
|
comments lines.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
self.__transforms__ = \
|
|
||||||
self.set_microstructure(microstructure)
|
self.set_microstructure(microstructure)
|
||||||
self.set_size(size)
|
self.set_size(size)
|
||||||
self.set_origin(origin)
|
self.set_origin(origin)
|
||||||
|
|
|
@ -9,7 +9,7 @@ from damask import mechanics
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def default(tmp_path,reference_dir):
|
def default(tmp_path,reference_dir):
|
||||||
"""Small DADF5 file for testing."""
|
"""Small DADF5 file in temp location for modification."""
|
||||||
fname = '12grains6x7x8_tensionY.hdf5'
|
fname = '12grains6x7x8_tensionY.hdf5'
|
||||||
shutil.copy(os.path.join(reference_dir,fname),tmp_path)
|
shutil.copy(os.path.join(reference_dir,fname),tmp_path)
|
||||||
f = DADF5(os.path.join(tmp_path,fname))
|
f = DADF5(os.path.join(tmp_path,fname))
|
||||||
|
|
Loading…
Reference in New Issue