Skip to content

Commit

Permalink
fix error in sc analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
wedeling committed Jan 21, 2025
1 parent 16d7a8f commit 9e9f214
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions easyvvuq/analysis/sc_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ class SCAnalysisResults(AnalysisResults):
def _get_sobols_first(self, qoi, input_):
raw_dict = AnalysisResults._keys_to_tuples(self.raw_data['sobols_first'])
result = raw_dict[AnalysisResults._to_tuple(qoi)][input_]
try:
# return np.array([float(result)])
return np.array([result[0]])
except TypeError:
return np.array(result)
return np.array(result)
# try:
# # return np.array([float(result)])
# return np.array([result[0]])
# except TypeError:
# return np.array(result)

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

def supported_stats(self):
"""Types of statistics supported by the describe method.
Expand Down

0 comments on commit 9e9f214

Please sign in to comment.