Skip to content

Commit

Permalink
Reverts change due to failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap committed May 20, 2024
1 parent 9aae410 commit 7abb1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UQpy/sensitivity/MorrisSensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def _compute_elementary_effects(self, trajectories_physical_space):
self.runmodel_object.run(samples=samples, append_samples=False)
qoi = np.array(self.runmodel_object.qoi_list)
el_effect = np.zeros((self.dimension,))
perms = [np.argwhere(not np.isclose(bi, 0.0))[0, 0] for bi in (samples[1:] - samples[:-1])]
perms = [np.argwhere(bi != 0.0)[0, 0] for bi in (samples[1:] - samples[:-1])]
for count_d, d in enumerate(perms):
el_effect[d] = (qoi[count_d + 1] - qoi[count_d]) / self.delta
elementary_effects.append(el_effect)
Expand Down

0 comments on commit 7abb1d5

Please sign in to comment.