GithubHelp home page GithubHelp logo

Optional dependence unit tests about ocbpy HOT 7 CLOSED

aburrell avatar aburrell commented on May 29, 2024
Optional dependence unit tests

from ocbpy.

Comments (7)

aburrell avatar aburrell commented on May 29, 2024

pysat is still failing, likely due to pysatCDF installation issues.

from ocbpy.

jklenzing avatar jklenzing commented on May 29, 2024

Looking through the logs, I see this error popping up in the pysat-related tests:

ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject

This is likely due to a mismatch between netcdf and cftime versions in the current linux wheels on pip. Documented in pysat/pysat#401.

This is part of the reason we migrated to conda to manage the install environment over there. An alternative is to place a cap on netcdf and cftime versions.

from ocbpy.

jklenzing avatar jklenzing commented on May 29, 2024

OK. tracked this down in a better fashion. The netCDF4 wheel was compiled with a newer version of numpy, which is capped at 1.15.4 (see #50) here. This is where the numpy.ufunc error above is coming from. Looking into possible fixes in my fork.

Using a later version of numpy fixes the ufunc problem, but opens up the other issue documented in #50. Because python 2.7 and 3.5 do not support later versions of numpy, this does not fix them. I would lean toward dropping support for the older versions as it will be more difficult to maintain these in the future. 3.5 has reached the end of its lifecycle (final release November 1, 2019), and matplotlib and numpy have both dropped support for this.

from ocbpy.

jklenzing avatar jklenzing commented on May 29, 2024

Adding the pysat test instruments to the main package so that pysat 2.2 will have a pip-installable form for the unit tests here. pysat/pysat#435

from ocbpy.

aburrell avatar aburrell commented on May 29, 2024

@jklenzing so we need pysat>=2.2.0 for this, correct?

from ocbpy.

jklenzing avatar jklenzing commented on May 29, 2024

Yes. You can install from the develop branch for now, but I think we've closed all the milestones but one.

from ocbpy.

aburrell avatar aburrell commented on May 29, 2024

I will wait for the moment, I have one more issue I can work on here in the meantime.

from ocbpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.