-
Notifications
You must be signed in to change notification settings - Fork 0
Development
We use uv as a project manager:
- Install uv
- Run
uv build
to build.whl
- Run
uv run python tests/test.py
to test the package.
The project can be divided into three parts:
- a data fetcher
- a torch datasets
- some utils
uv doesn't support automatically bump version, see https://github.com/astral-sh/uv/issues/6298 .
An elegant workaround is using dunamai to calculate version number from git tag. And git tag
should be the only source of version numbers.
So the best practice to release a stable version is:
- Create a release in GitHub, or (locally) run
git tag v<x.y.z>
- Trigger the
uv-publish.yml
, or (locally) runetc/bump-version.bash
to set theversion
inpyproject.toml
automatically, anduv publish
.
the best practice to release an unstable version is:
- Check if the previous stable version is correctly tagged
- Trigger the
uv-publish.yml
, or (locally) runetc/bump-version.bash
to set theversion
inpyproject.toml
automatically, anduv publish
.
- PyPI pre-release version badge are not supported: https://github.com/badges/shields/issues/4692
We won't add any dataset that are available in other dataloaders, like torchgeo
"There are only two hard things in Computer Science: cache invalidation and naming things." (Phil Karlton). As a small project, we met both: The download cache and the API naming.
To avoid naming issue, we use this naming method in the future:
- The class and typing are
PacalCase
, the const value areALL_UPPER_CASE
, and everything else should besnake_case
- The package naming may be a huge problem, but let it go
- Use clear words: use
channel
instead ofband
,hsi
instead ofcasi
,lidar
instead ofdsm
There's background and labels, the sparse matrix make 0 to be the background. So the label starts from 1 ...
It won't affect the data:
WARNING:rasterio._env:CPLE_AppDefined in 2013_IEEE_GRSS_DF_Contest_CASI.tif: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.
WARNING:rasterio._env:CPLE_AppDefined in TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.