[io] fix bug in last commit
siconos_run_options are only created in write mode.
@@ -576,7 +576,8 @@ class MechanicsHdf5(object):
use_compression=self._use_compression)
self._solv_data = data(self._data, 'solv', 4,
use_compression=self._use_compression)
- if 'siconos_mechanics_run_options' in self._data:
+
+ if self._mode == 'w':
self._run_options_data = data(self._data, 'siconos_mechanics_run_options', 1,
use_compression=self._use_compression)
