Clisops

Latest version: v0.14.1

Safety actively analyzes 682457 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

0.9.4

-------------------

Bug Fixes
^^^^^^^^^
* Fixed `core.subset_bbox` when using `level_values` (263).
* Fixed `core.subset_level_by_values` using xarray method *nearest* (262).
* Updated a test expectation to support newer xarray behaviour (259).

0.9.3

-------------------

Bug Fixes
^^^^^^^^^
* Fixed a bug associated with the new xarray (2022.6.0+) accessor for native indexers that was introduced in (241). (250, 251).

Other Changes
^^^^^^^^^^^^^
* Fixed a handful of static type hints that were sending out warnings, despite proper use. (251).
* Replaced all skipped doctests with sphinx-compatible python code blocks to prevent errors in downstream projects. (251).
* Adjusted GitHub Actions builds to ensure that the `conda-xesmf` run uses the latest `xarray` available. (251).

0.9.2

-------------------

Breaking Changes
^^^^^^^^^^^^^^^^
* Support has been dropped for Python3.7 and extended to Python3.10. Python3.7 is no longer tested in GitHub actions (234).
* ``packaging`` has been added as a dependency (241).

Bug Fixes
^^^^^^^^^
* Adapted ``clisops.core.subset_bbox_indexer`` to the newest indexing API changes in xarray, with backwards compatibility (241).

Other Changes
^^^^^^^^^^^^^
* Docstrings and documentation configuration adjustments have been made to ensure that builds are adequately tested (232, 235).

0.9.1

-------------------

Bug fixes
^^^^^^^^^
* Fix inconsistent bounds in metadata after subset operation (224).

Other Changes
^^^^^^^^^^^^^
* Use ``roocs-utils`` 0.6.2 to avoid test failure (226).
* Removed unneeded testing dep from environment.yml (223).
* Merged pre-commit autoupdate (227).

0.9.0

-------------------

New Features
^^^^^^^^^^^^
* ``clisops.ops.average.average_time`` and ``clisops.core.average.average_time`` added (211). Allowing averaging over time frequencies of day, month and year.
* New function ``create_time_bounds`` in ``clisops.utils.time_utils``, to generate time bounds for temporally averaged datasets.

* ``clisops`` now uses the `loguru <https://loguru.readthedocs.io/en/stable/index.html>`_ library as its primary logging engine (#216).
The mechanism for enabling log reporting in scripts/notebooks using ``loguru`` is as follows:

.. code-block:: python

import sys
from loguru import logger

logger.activate("clisops")
LEVEL = "INFO || DEBUG || WARNING || etc."
logger.add(sys.stdout, level=LEVEL) for logging to stdout
or
logger.add("my_log_file.log", level=LEVEL, enqueue=True) for logging to a file

Other Changes
^^^^^^^^^^^^^
* Pandas now pinned below version 1.4.0.
* Pre-commit configuration updated with code style conventions (black, pyupgrade) set to Python3.7+ (219).
* ``loguru`` is now an install dependency, with ``pytest-loguru`` as a development-only dependency.
* Added function to convert the longitude axis between different longitude frames (eg. [-180, 180] and [0, 360]) (217, 218).

0.8.0

-------------------

New Features
^^^^^^^^^^^^
* ``clisops.core.average.average_shape`` copies the global and variable attributes from the input data to the results.
* ``clisops.ops.average.average_time`` and ``clisops.core.average.average_time`` added. Allowing averaging over time frequencies of day, month and year.
* New function ``create_time_bounds`` in ``clisops.utils.time_utils``, to generate time bounds for temporally averaged datasets.

Bug fixes
^^^^^^^^^
* ``average_shape`` and ``create_weight_masks`` were adapted to work with xESMF 0.6.2, while maintaining compatibility with earlier versions.
* Fix added to remove ``_FillValue`` added to coordinate variables and bounds by xarray when outputting to netCDF.

Other Changes
^^^^^^^^^^^^^
* Passing ``DataArray`` objects to ``clisops.core.average.average_shape`` is now deprecated. Averaging requires grid cell boundaries, which are not ``DataArray`` coordinates, but independent ``Dataset`` variables. Please pass ``Dataset`` objects and an optional list of variables to average.
* ``average_shape`` performs an initial subset over the averaging region, before computing the weights, to reduce memory usage.
* Minimum xesmf version set to 0.6.2.
* Minimum pygeos version set to 0.9.
* Replace ``cascaded_union`` by ``unary_union`` to anticipate a `shapely` deprecation.

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.