Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v0.3.0 #10

Merged
merged 20 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ dist
__pycache__
.pytest_cache
.mypy_cache
.ruff_cache
.venv
.tox
dask-worker-space
*.egg-info
Expand All @@ -19,4 +21,4 @@ output.tif.msk
.DS_Store

*#
*~
*~
35 changes: 17 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
exclude: 'docs|test|setup.py'
repos:
- repo: https://github.com/psf/black
rev: 21.7b0
exclude: "docs"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: black
language_version: python
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
language_version: python

- repo: https://github.com/PyCQA/pydocstyle
rev: 6.1.1
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: pydocstyle
language_version: python
- id: ruff
args: [ --fix ]
types_or: [ python, pyi, jupyter ]

- id: ruff-format
types_or: [ python, pyi, jupyter ]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.910'
rev: v1.10.0
hooks:
- id: mypy
language_version: python
28 changes: 21 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# CHANGELOG

## v0.2.0
## v0.3.0

### Changed
- New `src/` project structure
- Update depencies to latest major versions.
- Migrate setup metadata and tooling to `pyproject.toml`
- Switch linting and formatting to `ruff` and **reformat everything**
- `mypy` pre-commit and fix typing here and there
- migrate to newer `bump-my-version` package config in `pyproject.toml` to, guess, bump the version

## Fixed

- Fix issue with with latest dask versions (>2023.9.2) that made test fail

## v0.2.0

### Changed

Expand All @@ -16,17 +30,17 @@

### Added

- Worker.read() takes an optional masked parameter, when set to False, ignores
- Worker.read() takes an optional masked parameter, when set to False, ignores
dataset mask.

### Fixed

- Fixed inconsistency in between the way cog_worker and rasterio.windows
rounds bounding boxes to pixels and vice-verca, which would occasionally cause
- Fixed inconsistency in between the way cog_worker and rasterio.windows
rounds bounding boxes to pixels and vice-verca, which would occasionally cause
gaps in files generated by Manager.chunk_save().
- Fixed issue where Worker.lnglat_bounds() would fail inverse transforms for
- Fixed issue where Worker.lnglat_bounds() would fail inverse transforms for
chunks >10000 px.
- Fixed distributed test suite to be compatible with current behavior of
- Fixed distributed test suite to be compatible with current behavior of
dask.distributed.

## v0.1.4 - 2021-11-29
Expand All @@ -37,7 +51,7 @@

### Added

- Add parameter `compute=False` to have DaskManager return Delayed objects
- Add parameter `compute=False` to have DaskManager return Delayed objects
instead of computing immediately.

## v0.1.3 - 2021-10-02
Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ Note: requires `pandoc` to build convert jupyter notebooks.
1. Create release candidate branch
2. Run tests `tox`
3. Update changelog
4. Bump to new version `bump2version [major/minor/patch]`
4. Bump to new version `bump-my-version [major/minor/patch]`
5. Build docs `cd sphinx_docs && make ghpages`
6. Commit docs
7. Merge to `main`
8. Publish to pypi `tox -e release`

File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Scalable geospatial analysis on Cloud Optimized GeoTIFFs.
- **PyPI**: https://pypi.org/project/cog-worker

cog_worker is a simple library to help write scripts to conduct scaleable
analysis of gridded data. It's intended to be useful for moderate- to large-scale
analysis of gridded data. It's intended to be useful for moderate- to large-scale
GIS, remote sensing, and machine learning applications.

## Installation
Expand Down Expand Up @@ -123,4 +123,4 @@ distributed_manager = DaskManager(

# Execute in worker pool and save chunks to disk as they complete.
distributed_manager.chunk_save('output.tif', MyAnalysis, chunksize=2048)
```
```
Binary file removed cog_worker/__init__.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 116ab50c53e331c65a37185835288728
config: 161f4fa986221183a5783980cd0c9435
tags: 645f666f9bcd5a90fca523b33c5a78b7
440 changes: 0 additions & 440 deletions docs/_images/examples_1._quick-start_1_0.svg

This file was deleted.

482 changes: 0 additions & 482 deletions docs/_images/examples_1._quick-start_5_0.svg

This file was deleted.

419 changes: 0 additions & 419 deletions docs/_images/examples_1._quick-start_5_2.svg

This file was deleted.

371 changes: 0 additions & 371 deletions docs/_images/examples_1._quick-start_5_3.svg

This file was deleted.

Binary file added docs/_images/examples_1._quick-start_9_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_images/examples_1._quick-start_9_1.png
Binary file not shown.
406 changes: 0 additions & 406 deletions docs/_images/examples_2._tutorial_11_0.svg

This file was deleted.

406 changes: 0 additions & 406 deletions docs/_images/examples_2._tutorial_11_1.svg

This file was deleted.

Binary file added docs/_images/examples_2._tutorial_14_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading