ndscope crashes when zooming on minute trend plots
To reproduce, show several days of a channel's trend (minute trends are used), zoom slightly inwards on the x-axis, ndscope crashes with the error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ndscope/data.py", line 457, in remote_recv
self.db[trend].extend(dbd)
File "/usr/lib/python3/dist-packages/ndscope/data.py", line 218, in extend
self.buffers[chan].extend(buf)
File "/usr/lib/python3/dist-packages/ndscope/data.py", line 107, in extend
self.data[mod] = np.append(self.data[mod], buf.data[mod][ind])
KeyError: 'min'
Aborted
I've seen cases of max and mean as well.
Edited by Jameson Rollins