nanophotonics / nplab

Core functions and instrument scripts for the Nanophotonics lab experimental scripts
GNU General Public License v3.0
38 stars 15 forks source link

Nonetype and int are being compared in nplab/utils/hdf5_browser #88

Closed eoinell closed 4 years ago

eoinell commented 4 years ago

When simply running the hdf5 browser code, it generates the error message '<' not supported between instances of 'NoneType' and 'int' That could be corrupted In py3, comparisons of this sort aren't allowed, but None is treated as < all integers in py2. I tried commenting out all the occurrences of '<' in data_renderers.py, however the error message persisted.

YagoDel commented 4 years ago

Fixed by 214a60c9fe46102694005f7be53c144bea23b2dc