Xagg

Latest version: v0.3.2.4

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

Scan your dependencies

Page 1 of 3

0.3.2.4

Bug fixes
* The `impl='dot_prod'` functionality now supports >2-D data

What's Changed
* Fix dotprod extradims by JPMastrogiacomo in https://github.com/ks905383/xagg/pull/81
* Fix dotprod extradims by ks905383 in https://github.com/ks905383/xagg/pull/83

New Contributors
* JPMastrogiacomo made their first contribution in https://github.com/ks905383/xagg/pull/81

**Full Changelog**: https://github.com/ks905383/xagg/compare/v0.3.2.3...v0.3.2.4

0.3.2.3

Minor updates
* `wm.diag_fig()` no longer needs the extra `subset_find` step to homogenize grids
* `wm.diag_fig()` now covered by tests
* minor bug fixes

What's Changed
* Create tests for diag_fig() robustness, make auxfuncs work with silent option by ks905383 in https://github.com/ks905383/xagg/pull/76


**Full Changelog**: https://github.com/ks905383/xagg/compare/v0.3.2.2...v0.3.2.3

0.3.2.2

Updates
* Regridding weights to the input dataset grid now uses the "conservative" regridding algorithm from `xesmf` instead of the "bilinear" one; the bilinear one is inappropriate for many weights (population, etc.), since it throws away many low-valued source boxes.
* Weights now have `nan`s set to 0 before regridding, to make sure `nan` pixels are included in weights. Since `nan`s usually imply 0s in weights (for example, population weights for which water surfaces are set to `nan`), this prevents entire coarser pixels from being set to 0 if they overlap with a `nan`
* Both of the above can be changed with `xa.set_options(rgrd_alg='bilinear',nan_to_zero_regridding=False)`, respectively.

Bug fixes
* `wm.diag_fig()` now accepts DataArrays, as stated in docs.


What's Changed
* Increase codecov by ks905383 in https://github.com/ks905383/xagg/pull/72
* Diag fig fix by kerriegeil in https://github.com/ks905383/xagg/pull/73
* Add in main updates by ks905383 in https://github.com/ks905383/xagg/pull/74
* Changes regridding algorithm default to conservative, done after setting weight nans to 0s by ks905383 in https://github.com/ks905383/xagg/pull/75


**Full Changelog**: https://github.com/ks905383/xagg/compare/v0.3.2.1...v0.3.2.2

0.3.2.1

Major updates
=================
Creates a module-wide way to set defaults for :
- silencing behavior
- backend algorithm

So, for example, to set the backend to use the dot product implementation, call:

import xagg as xa
xa.set_options(impl='dot_product')


Alternatively, use a `with` block for individual chunks of code, here using an example with `silent`:

with xa.set_options(silent=True):
wm = xa.pixel_overlaps(ds,gdf)

which silences all status updates.

Bug fixes
=================
Closes 55 ; `silent=True` now should suppress all status updates to standard out.

0.3.2.0

Major Changes
Features
- `xesmf` is now an optional dependency, which should remove a lot of installation issues; this should close 47 .
- Support for Windows: the `aux` module has been renamed `auxfuncs`; together with making the `xesmf` dependency optional, this should close 23 22 58 .
- The `weightmap` class now has a new method that creates diagnostic figures, showing individual polygons and the grid that overlaps with them, shaded by overlapping area. Try it out and let me know what you think! (`wm.diag_fig()`)

Bug fixes
- `xagg` is now more robust to grids with a challenging relationship with major longitudes / latitudes: notably, grids can now have grid cells that cross the antimeridian (following GeoJSON conventions of splitting those into MultiPolygons)
- `xa.aux.get_bnds()` now works with grids that are misaligned with the antimeridian, that only partially cross the antimeridian, or that have half pixels at the poles
- `xa.core.process_weights()` now will match `weights` grids to `ds` grids even if they are `np.allclose()` but not identical, and throws a warning if the resultant `weights` variables is entirely 0s or `np.nan`s
- `xa.aux.normalize()` will now return `np.nan` arrays if the vector is entirely 0s (to avoid the divide by 0 warning)
- `silent=True` should now actually prevent all normal standard output. Most warnings are unaffected. Closes 55 .

Short Changelog
* Bump actions/setup-python from 4 to 5 by dependabot in https://github.com/ks905383/xagg/pull/53
* Fixing wraparound issue by ks905383 in https://github.com/ks905383/xagg/pull/60
* Aims to address 58 and 23 by renaming `aux` to `auxfuncs` by ks905383 in https://github.com/ks905383/xagg/pull/61
* Closes 55 by making silent=True silence all std out by ks905383 in https://github.com/ks905383/xagg/pull/63
* make tests more robust to dot product implementation by ks905383 in https://github.com/ks905383/xagg/pull/64
* Remove explicit dependency on `xesmf` by ks905383 in https://github.com/ks905383/xagg/pull/65
* Update test envs to support python 3.9-3.12, plus an env without xesmf by ks905383 in https://github.com/ks905383/xagg/pull/66


**Full Changelog**: https://github.com/ks905383/xagg/compare/v0.3.1.1...v0.3.2.0

0.3.1.1

Bug Fixes
Fixes dimension mismatch issue in 50.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.