catch error in case of exisiting dataset
This commit is contained in:
parent
e649fb195f
commit
4ccd068d3b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue