Skip to content

Commit

Permalink
Rows numbers now correct on heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlon Dassanayake committed Aug 3, 2023
1 parent acfaf78 commit 2826b74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions control/src/mercury/carrier/Carrier.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@ def create_reshaped_array():

self._segment_data = self._segment_data + reshaped

blank_segment = [[0] * 80]*4

try:

Expand All @@ -1093,7 +1094,11 @@ def create_reshaped_array():
for segment in range(20):
create_reshaped_array()
else:
for i in range(0, segment):
self._segment_data = self._segment_data + blank_segment
create_reshaped_array()
for i in range (segment+1, 20):
self._segment_data = self._segment_data + blank_segment


self._segment_ready = True
Expand Down
3 changes: 3 additions & 0 deletions control/test/static/js/carrier.js
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,9 @@ function readout_output(segment_data) {
if (all_segments_displayed) {
layout["title"] = 'All Segments';
layout.coloraxis["colorbar"] = "v";
} else {
layout.yaxis.autorange=false;
layout.yaxis.range=[first_row+3.5,first_row-0.5];
};

Plotly.newPlot('graph_output', data, layout, config);
Expand Down

0 comments on commit 2826b74

Please sign in to comment.