Closed duncanwp closed 2 years ago
Hi. I also had issues with iris version 3.1.0 when using it with cis version 1.7.3. Got this error when running cis version: AttributeError: module 'iris' has no attribute 'cube' Installed cis with iris 3.0.4 and no error now.
This is due to Iris changing what they import and I get this error when using JASMIN's jaspy
environment. It can be fixed by running from iris.cube import Cube
in your own code. An actual fix is replacing all the calls to it.
I believe this was fixed by https://github.com/cedadev/cis/commit/96d1b87617701d71023a0fcc2434f83378bed8a0 - I'll try and cut a new release ASAP
Hmm, they do look wrong too but they didn't break the unit tests. Maybe they're not covered but I'd be surprised. I'll take a closer look, thanks Adam.
OK, I think this is all of them now: https://github.com/cedadev/cis/commit/5cad043e57cafb39d9e713bde4b0ccf15c4a182d. I've also fixed Python 3.9 compatibility (https://github.com/cedadev/cis/commit/eddd1322d25081eedade36fbf53c7e6bd1e55bee) and cftime compatibility (https://github.com/cedadev/cis/commit/07b316fc80284060f355341d945336d41b59657f).
They all pass locally but it turns out our CI service died so I won't know for sure until I fix https://github.com/cedadev/cis/issues/35!
The latest version of
iris
(v3.1) has changed it's import structure so that somecis
functions are now broken. E.g. hereThis should be easy to fix.