Skip to content

Commit

Permalink
Merge branch 'hackathon2025' of https://github.com/UCL-CCS/EasyVVUQ i…
Browse files Browse the repository at this point in the history
…nto hackathon2025
  • Loading branch information
JonMcCullough committed Jan 21, 2025
2 parents 1ad85d5 + 9e9f214 commit 06c6165
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 06c6165

Please sign in to comment.