Skip to content

Commit

Permalink
Change channel_max to numChannels in first payload
Browse files Browse the repository at this point in the history
  • Loading branch information
tddough98 committed Nov 23, 2020
1 parent 6b79eb0 commit 53a3b05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browser/blueprints.py
Expand Up @@ -220,7 +220,7 @@ def load(filename):
if is_trk_file(filename):
payload['screen_scale'] = project.scale_factor
if is_npz_file(filename):
payload['channel_max'] = project.num_channels
payload['numChannels'] = project.num_channels
payload['numFeatures'] = project.num_features

current_app.logger.debug('Loaded file %s in %s s.',
Expand Down
2 changes: 1 addition & 1 deletion browser/static/js/main_zstack.js
Expand Up @@ -1052,7 +1052,7 @@ function startCaliban(filename, settings) {
loadFile(filename, settings.rgb, (payload) => {
numFrames = payload.numFrames;
numFeatures = payload.numFeatures;
numChannels = payload.channel_max;
numChannels = payload.numChannels;
project_id = payload.project_id;

const rawWidth = payload.dimensions[0];
Expand Down

0 comments on commit 53a3b05

Please sign in to comment.