crash when processing NetCDF string array variables
glance, version 0.3.2
Glance crashed when processing variables that are arrays of strings. The other variables in the file worked fine, so I was able to generate a report by omitting the string variables.
This is not holding me up, but it would be nice to have it fixed in a future version. Would be nice to be able to compare the strings, but in the near term even something like printing a warning and skipping the string variables would be an improvement.
Reduced it to a simple case of comparing a variable to itself. The test case is on the "apollo" lustre drive.
glance reportGen --nolonlat /apollo/ait/glance_test_cases/20170307_seiss/OR_SEIS-L1b-EHIS_G16_s20170511738060_e20170511738060_c20170511743066.nc /apollo/ait/glance_test_cases/20170307_seiss/OR_SEIS-L1b-EHIS_G16_s20170511738060_e20170511738060_c20170511743066.nc element_label
Traceback (most recent call last):
File "/home/graemem/opt/glance.env/bin/glance", line 9, in <module>
load_entry_point('uwglance==0.3.2', 'console_scripts', 'glance')()
File "/home/graemem/opt/glance.env/lib/python2.7/site-packages/uwglance-0.3.2-py2.7.egg/glance/compare.py", line 1487, in main
rc = lower_locals[args[0].lower()](*args[1:])
File "/home/graemem/opt/glance.env/lib/python2.7/site-packages/uwglance-0.3.2-py2.7.egg/glance/compare.py", line 1301, in reportGen
return reportGen_library_call(a_path, b_path, args[2:], tempOptions)
File "/home/graemem/opt/glance.env/lib/python2.7/site-packages/uwglance-0.3.2-py2.7.egg/glance/compare.py", line 764, in reportGen_library_call
fileDescriptionForDisplay = "file A")
File "/home/graemem/opt/glance.env/lib/python2.7/site-packages/uwglance-0.3.2-py2.7.egg/glance/load.py", line 262, in load_variable_data
raise exceptionToRaise
ValueError: Unable to retrieve element_label data. The variable name may not exist in this file or an error may have occured while attempting to access the data. Details of file access error observed: could not convert string to float: B