Skip to content

Fix inefficient spatial covariance calculation and parameter mapping in uncertainty SA#3965

Open
man080107 wants to merge 3 commits into
PecanProject:developfrom
man080107:fix/emulator-and-sa-bugs
Open

Fix inefficient spatial covariance calculation and parameter mapping in uncertainty SA#3965
man080107 wants to merge 3 commits into
PecanProject:developfrom
man080107:fix/emulator-and-sa-bugs

Conversation

@man080107
Copy link
Copy Markdown
Contributor

Resolves #3964

Simplified the calcSpatialCov.matrix function to directly return the spatial covariance matrix based on the input parameters.
@infotroph infotroph requested a review from mdietze April 29, 2026 15:30
Copy link
Copy Markdown
Member

@mdietze mdietze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, I'd recommend that separate bugs be separate issues and PRs. These two fixes have absolutely no relationship with one another.

Also, can you confirm that the cov calculation has been tested and does indeed return an object of the correct format, dimensions, and values?

Comment thread modules/emulator/R/calcSpatialCov.matrix.R
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unclear why this was added to the function since it's unused

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix inefficient spatial covariance calculation and parameter mapping in uncertainty SA

2 participants