Skip to content

Commit

Permalink
Merge pull request #1285
Browse files Browse the repository at this point in the history
Fix for bug found in prior PR for specifying num stdErrors
  • Loading branch information
bfinzer authored May 30, 2024
2 parents 094edeb + 29d79f7 commit 75fed09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ export const StandardErrorAdornmentModel = UnivariateMeasureAdornmentModel
setNumStErrs(numStErrs: number) {
self._numStErrs = numStErrs
self.dynamicNumStErrs = undefined
self.invalidateMeasures()
},
setDynamicNumStErrs(numStErrs: number | undefined) {
self.dynamicNumStErrs = numStErrs
self.invalidateMeasures()
}
}))
.views(self => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export const MeasureInstance = types.model("MeasureInstance", {
setValue(value: number) {
self.value = value
self.isValid = true
},
setIsValid(isValid: boolean) {
self.isValid = isValid
}
}))

Expand Down Expand Up @@ -78,6 +81,9 @@ export const UnivariateMeasureAdornmentModel = AdornmentModel
},
setShowMeasureLabels(showLabels: boolean) {
self.showMeasureLabels = showLabels
},
invalidateMeasures() {
self.measures.forEach(measure => measure.setIsValid(false))
}
}))
.views(self => ({
Expand Down

0 comments on commit 75fed09

Please sign in to comment.