titusjan / argos

Argos: a data viewer that can read HDF5, NetCDF4, and other file formats.
GNU General Public License v3.0
176 stars 26 forks source link

Bug: levels argument is required for float input types #14

Closed wlievens closed 3 years ago

wlievens commented 4 years ago

Version info:

image

I get the following dialog on a particular HDF5 test file generated with h5py (attached).

image

The error in question happens when activating 2D Image Plot view on node mode_low_gain/example_sequence/rts/<RESULTS>/map.

image

The zipped HDF5 file is here:

test.zip

titusjan commented 4 years ago

Thanks for the bug report. I've encounter errors like this before when the data had a small range (e.g. all zeros like your data set). That's one of the reasons I started to write a new color bar in PyQtGraph (PgColorBar). The development branch already uses this and therefore does not give the error above.

I haven't made a release so far. Is it possible for you to clone the development branch for the time being? You will need to install the following dependencies as well: cmlib and pgcolorbar. You can install those last two simply with pip cmlib and pip pgcolorbar

titusjan commented 3 years ago

Should be closed with Argos 0.3. Please let me know if the issue persists.