Merge branch 'PythonImprovements' into pytest

This commit is contained in:
Martin Diehl 2019-11-23 19:22:58 +01:00
commit 2b392241f9
3 changed files with 2 additions and 3 deletions

View File

@ -620,7 +620,7 @@ class DADF5():
raise ValueError
return {
'data': mechanics.deviator(x['data']),
'data': mechanics.deviatoric_part(x['data']),
'label': 's_{}'.format(x['label']),
'meta': {
'Unit': x['meta']['Unit'],

View File

@ -31,7 +31,6 @@ class Geom():
comments lines.
"""
self.__transforms__ = \
self.set_microstructure(microstructure)
self.set_size(size)
self.set_origin(origin)

View File

@ -9,7 +9,7 @@ from damask import mechanics
@pytest.fixture
def default(tmp_path,reference_dir):
"""Small DADF5 file for testing."""
"""Small DADF5 file in temp location for modification."""
fname = '12grains6x7x8_tensionY.hdf5'
shutil.copy(os.path.join(reference_dir,fname),tmp_path)
f = DADF5(os.path.join(tmp_path,fname))