Skip to content

Commit

Permalink
update applyChannels to work with old CSV with full image bit ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
nchuynh committed Nov 23, 2021
1 parent 75c962e commit 234ff12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minerva_analysis/client/src/js/views/channelList.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class ChannelList {
let channelIdx = imageChannels[fullName];

if (this.sliders.get(col.channel)) {
if (col.start !== this.image_channels[fullName][0] || col.end !== this.image_channels[fullName][1]){
if (col.start > this.image_channels[fullName][0] || col.end < this.image_channels[fullName][1]){
this.sliders.get(col.channel).value([col.start, col.end]);
this.rangeConnector[channelIdx] = [col.start / defaultRange[1], col.end / defaultRange[1]];
}
Expand Down

0 comments on commit 234ff12

Please sign in to comment.