

The Warriors finished with an NBA-worst 15 wins in the pandemic-shortened 2020 season and after failing to reach the playoffs last year some thought it was time to break the team up. When autogenerating them we need to run pre-commit run -all-files and fix the documentation issues found.June 16 (Reuters) - Golden State Warriors' players and coaches said winning their fourth NBA Championship in eight years was extra special given the depths the team had sunk to in the last two seasons.

The autogenerated docstrings are checked with codespell in the CIs. It adds CF compliant attributes when possible, units, and name. Note for xarray usersĪ wrapper around gsw called gsw-xarray exists for xarray. To test, after installation, run "pytest" from the source directory. Or the MSVC compiler set used for Python itself on Windows.įor Windows, some of the source code has been modified to C++ because the MSVC C compiler does not support theĬ99 complex data type used in original GSW-C. It is neither necessary nor recommended to run the code generators,Īnd no instructions are provided for them The development version of the package can be installed from a clone of the repo using pip install. Pip users can install the pre-built wheels with: pip install gswĬonda users will find binaries on conda-forge, conda install gsw -channel conda-forge Module to wrap the C functions as numpy ufuncs,Īnd then use an autogenerated Python module to add docstrings and handle masked arrays.ġ65 scalar C functions with only double-precision arguments and return values are wrapped as ufuncs,Īnd 158 of these are exposed in the gsw namespace with an additional wrapper in Python.Ī hand-written wrapper is used for one C function, and others are re-implemented directly in Python instead of being wrapped.Īdditional functions present in GSW-Matlab but not in GSW-C may be re-implemented in Python,īut there is no expectation that all such functions will be provided. The penalty is that a C (or MSVC C++ for Windows) compiler is required to build the package from source.įor the core functionality, we use an auto-generated C extension The primary reasons for this change are that by building on the C implementation we reduce code duplication and we gain an immediate update to the 75-term equation.Īdditional benefits include a major increase in speed, This library replaces the original python-gsw pure-python implementation.

This Python implementation of the Thermodynamic Equation of Seawater 2010 (TEOS-10) is based primarily on numpy ufunc wrappers of the GSW-C implementation.
