Convenience functions that read or write to the HDF5 file
Returns the description of an output variable. If the description is empty, returns the variable name.
Parameters: |
|
---|
Returns a list of the output variables names in the HDF5 file.
Parameters: | hf – An open HDF5 filehandle or a string containing the HDF5 filename to use. |
---|---|
Returns: | A sorted list of the output variable names in the HDF5 file. |
Returns a list of the input parameter names in the HDF5 file.
Parameters: | hf – An open HDF5 filehandle or a string containing the HDF5 filename to use. |
---|
Returns a list of arrays of input parameter objects.
Parameters: | hf – An open HDF5 filehandle or a string containing the HDF5 filename to use. |
---|
“get_params2(hf)
Returns a list of tuples containing the parameter name and the attributes dictionary.
Parameters: | hf – An open HDF5 filehandle or a string containing the HDF5 filename to use. |
---|
Returns the response function for an output variable.
Parameters: |
|
---|
Returns an array containing the values of the output variable.
Parameters: |
|
---|---|
Returns: | An array |
Raises: | ValueError – if var is not found or var is None and there are multiple output variables. |
Same as get_result() except a puq.PDF object is returned.
get_sensitivity(hf, var).
Returns the sensitivity indices for var in a list of tuples. The first element of a tuple is the parameter name, the second element is a dictionary with keys equal to parameter names and values consisting of dictionaries with keys equal to sensitivity indices. E.g., for a Smolyak run
[(<param name>,{‘ustar’:float, ‘std’:float}), ... }
The keys in the sub dictionaries will vary depending on the type of sensitivity analysis (Smolyak or Morris) but will contain at least ‘ustar’ and ‘std’. Morris also contains ‘u’ and ‘ustar_conf95’.
Parameters: |
|
---|
Returns the description of an input variable. If the description is empty, returns the variable name.
Parameters: |
|
---|
Sets values of the output variable in the HDF5 file. Writes array to ‘/output/data/var‘.
Parameters: |
|
---|