catch error in case of exisiting dataset

This commit is contained in:
Martin Diehl 2020-11-05 23:00:56 +01:00
parent e649fb195f
commit 4ccd068d3b
1 changed files with 4 additions and 1 deletions

View File

@ -309,7 +309,10 @@ class TestResult:
default.disallow_modification()
time.sleep(2.)
default.add_calculation('sigma','#sigma#*0.0+311.','not the Cauchy stress')
try:
default.add_calculation('sigma','#sigma#*0.0+311.','not the Cauchy stress')
except ValueError:
pass
with h5py.File(default.fname,'r') as f:
# h5py3 compatibility
try: