Skip to content

Conversation

@bdphilli
Copy link
Contributor

Fix: Handle epistemic-only case by creating empty aleat_resample array
When there are no aleatory variables (only epistemic), create an empty
aleat_resample array with shape (aleat_samps, 0) for consistency. This
ensures downstream code that expects the aleat_resample attribute to
exist doesn't fail.

Previously, the method would return early without creating the attribute,
which could cause AttributeError in code that expects it to exist.

- Add new SobolComp component for computing Sobol indices
- Extend UQPCEGroup with compute_sobols option to expose sensitivity indices
- Add model_matrix to interface.initialize() return values
- Sobol indices are computed from PCE coefficients using interaction matrix
- Outputs main effects (sobols) and total effects (total_sobols) for each response
When there are no aleatory variables (only epistemic), create an empty
aleat_resample array with shape (aleat_samps, 0) for consistency. This
ensures downstream code that expects the aleat_resample attribute to
exist doesn't fail.

Previously, the method would return early without creating the attribute,
which could cause AttributeError in code that expects it to exist.
@jnschmid jnschmid merged commit 052db81 into nasa:main Dec 4, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants