diff --git a/framework/h5py_interface_creator.py b/framework/h5py_interface_creator.py index b6ea009341..22e60487b3 100644 --- a/framework/h5py_interface_creator.py +++ b/framework/h5py_interface_creator.py @@ -186,7 +186,12 @@ def addGroup(self,rlz): @ Out, None """ parentID = rlz.get("RAVEN_parentID",[None])[0] - groupName = str(rlz.get("prefix")[0] if not isinstance(rlz.get("prefix"),basestring) else rlz.get("prefix")) + prefix = rlz.get("prefix") + if prefix is not None: + groupName = str(prefix[0] if not isinstance(prefix,basestring) else prefix) + else: + # this can happen when we want to add sampler generated data (e.g. LimitSurface) in the database + groupName = str(len(self.allGroupPaths)) if parentID: #If Hierarchical structure, firstly add the root group if not self.firstRootGroup or parentID == "None": diff --git a/tests/framework/PostProcessors/LimitSurface/test_LimitSurface.xml b/tests/framework/PostProcessors/LimitSurface/test_LimitSurface.xml index 889c9574f2..a454e06236 100644 --- a/tests/framework/PostProcessors/LimitSurface/test_LimitSurface.xml +++ b/tests/framework/PostProcessors/LimitSurface/test_LimitSurface.xml @@ -4,10 +4,10 @@ framework/PostProcessors/LimitSurface.testLimitSurfacePostProcessor alfoa 2014-07-10 - Models.PostProcessors.LimitSurface, Functions.External + Models.PostProcessors.LimitSurface, Functions.External, Databases.HDF5 This test is aimed to check the capability of RAVEN to generate Limit Surfaces from a pre-generated data set (in this case, generated with - a MonteCarlo sampling), outputting the generated Limit Surface in DataObject.PointSet(s) reporting both transition boundaries (-1 1) or just + a MonteCarlo sampling), outputting the generated Limit Surface in DataObject.PointSet(s) and Databases.HDF5 reporting both transition boundaries (-1 1) or just one of them. @@ -24,12 +24,19 @@ Moved LimitSurface Postprocessor tests in a specific directory (tests/framework/PostProcessors/LimitSurface) and updated for new DataObject structure + Added an additional IOStep to check that the limit surface DataObject can be dumped into a Database of type HDF5 R-RA-1 limitSurface - FirstMRun,ComputeLimitSurfacePositive,ComputeLimitSurfaceNegative,ComputeLimitSurfacePositiveNegative + + FirstMRun, + ComputeLimitSurfacePositive, + ComputeLimitSurfaceNegative, + ComputeLimitSurfacePositiveNegative, + dumpLimitSurfacePositiveNegativeInHDF5 + 1 @@ -134,8 +141,16 @@ LimitSurfacePositiveNegative LimitSurfacePositiveNegative_dump + + LimitSurfacePositiveNegative + test_db_database + - + + + + + csv