`vmax` and `vmin` not adjusted when changing `cut_index` or `cut_axis` (and probably also a lot of other things too) + missing "normalise" button
Code with which the bug become clear:
import datacube
import glob
import numpy as np
import xarray
%matplotlib widget
dat_files = glob.glob("/home/jovyan/steelelab/measurement_data/Triton/Edouard"+\
"/LS261/RF_meas/Third_cooldown/RF_vs_Vg_vs_Temp/**/*.dat")
data = np.loadtxt(file, delimiter=",")
print(data.shape)
#with open(file.strip(".dat")+".meta.txt") as f:
# print(f.read())
# Manaully hacking the outer loop out of the meta.txt file, I see it has 81 points...
data2 = np.reshape(data, (81,data.shape[0]//81,8))
D2.load_xarray(xarray.DataArray(data2, name='Z'))
D2.show_dashboard()
The default behaviour when changing cut axis, changing cut index, or changing any of the data processing should be to readjust vmax
and vmin
, but that does not happen right now.
In dataset above, the slider limits are set by the "frequency" column (which goes to 10^10): when changing to another slice of the data, it becomes impossible to renavigate the image.
There should also be a "normalise" button and function in the class.