Skip to content

Commit

Permalink
Merge pull request #371 from girder/deepssm-testing-error-handle
Browse files Browse the repository at this point in the history
Update error handle for training data-array
  • Loading branch information
JakeWags authored Apr 15, 2024
2 parents c7a9f97 + 385eb48 commit 173c7b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/shapeworks/src/components/ShapeViewer/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ export default {
this.showDifferenceFromMean(mapper, renderer, label, domainIndex)
}
if ([1, 2].includes(deepSSMDataTab.value)) {
const data = shapeData.getPointData().getArrayByName('deepssm_error').getData()
let data;
if (shapeData.getPointData().getArrayByName('deepssm_error')) {
data = shapeData.getPointData().getArrayByName('deepssm_error').getData()
}

if (data) {
let normalizeRange;
Expand Down

0 comments on commit 173c7b5

Please sign in to comment.