aodn / content

Tracks AODN Portal content and configuration issues
0 stars 0 forks source link

SOOP XBT files - compliance checker CF exception #466

Open lbesnard opened 3 years ago

lbesnard commented 3 years ago

New XBT files don't pass the IOOS CC checker installed on RC/prod

AttributeError: type object 'str' has no attribute 'char'
AttributeError: __getattribute__
Exception ignored in: 'netCDF4._netCDF4.Dataset.__dealloc__'
AttributeError: __getattribute__

However this was fixed by IOOS in https://github.com/ioos/compliance-checker/commit/308bc2017b2faee12aefdcbd6523aa8006e3236e#diff-39a699a3319b28c340cda1b09157d21e

We're just running a too old version of CC. Keeping this issue open for the record until we update CC on our infrastructure.

In the meantime, CF and IMOS checks will have to be removed from the aodndata databags. (removing IMOS checks as doesn't accept unitless string variables such as HISTORY_..)

EDIT: please note that the commit fixing this bug is from August this year. The latest CC release, 4.3.3, doesn't include this fix anyway.

mhidas commented 3 years ago

removing IMOS checks as doesn't accept unitless string variables such as HISTORY_

This might be easier/quicker to fix than the CF issue, because it's under our own control. Please lodge an issue in the cc-plugin-imos repo so we don't forget about it.

lbesnard commented 3 years ago

I completely forgot about this issue, and re-added by mistake the cf checks in the imos po watch config. I lodge an unnecessary issue at IOOS: https://github.com/ioos/compliance-checker/issues/865