-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated documentation for version 0.0.2 (#9)
* Integration of CI/CD practices (#2) * Integration CI/CD pipeline to this project * Corrected github actions test workflow * Install the package before test it * Created empty __init__.py inside tests to record coverage * Changed name of sample_images_generator.py to utils.py for clarity * Updated test workflow to use a non-supported workaround for the multiple OpenMP runtime library issue * Updated test workflow to report coverage * Moved non-pytorch compatibility test to last position * Added test for datasets with zero expected samples * Changed PatchSampler to take as base the patche size instead of the input image's chunk sizes * Reverted change in the computation when masks elements are relative smaller than patch sizes * Fixed spatial chunk size computation when patch sizes are grater than the chunk size * Fixed missing patches from chunks smaller than the input image chunk size * Padding and stride added to PatchSampler and ImageBase classes to allow overlapping patches extraction * Added tests for stride and pad parameters of PatchSampler class * Fixed patch slices generation in PatchSampler to always retrieve patches of the defined shape * Standardized patch sampling method to handle smaller and bigger mask scales than image scale * Added example notebook to documentation * Fix offset (#8) * Changed PatchSampler to take as base the patche size instead of the input image's chunk sizes * Reverted change in the computation when masks elements are relative smaller than patch sizes * Fixed spatial chunk size computation when patch sizes are grater than the chunk size * Fixed missing patches from chunks smaller than the input image chunk size * Padding and stride added to PatchSampler and ImageBase classes to allow overlapping patches extraction * Added tests for stride and pad parameters of PatchSampler class * Fixed patch slices generation in PatchSampler to always retrieve patches of the defined shape * Standardized patch sampling method to handle smaller and bigger mask scales than image scale * Added example notebook to documentation * Fixed incorrect sampling of patches on masked regions * Updated documentation for version 0.0.2 * Updated tests/utils.py to use an example image from a public S3 bucket
- Loading branch information
Showing
144 changed files
with
2,189 additions
and
5,792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Release to Test PyPI | ||
|
||
on: | ||
release: | ||
types: [ released, prereleased ] | ||
|
||
jobs: | ||
release: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Tools | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Package and Upload | ||
env: | ||
VERSION: ${{ github.event.release.tag_name }} | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,3 +137,6 @@ tests/test_zarrs/* | |
tests/test_tiffs/* | ||
tests/*.png | ||
.vscode/settings.json | ||
|
||
/docs_build/ | ||
/jupyter_execute/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 5704830082c07750dd4f65112d73bff2 | ||
config: ca6db5e3c63f8be4f91f3b82db3b81cf | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+13 KB
(110%)
docs/.doctrees/autoapi/zarrdataset/_imageloaders/index.doctree
Binary file not shown.
Binary file modified
BIN
+3.64 KB
(110%)
docs/.doctrees/autoapi/zarrdataset/_maskfuncs/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+19.8 KB
(110%)
docs/.doctrees/autoapi/zarrdataset/_zarrdataset/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-18 Bytes
(100%)
docs/.doctrees/examples/advanced_example_pytorch_inference.doctree
Binary file not shown.
Binary file modified
BIN
+440 Bytes
(100%)
docs/.doctrees/examples/advanced_masked_datasets_example.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-32 Bytes
(100%)
docs/.doctrees/examples/basic_labeled_datasets_example.doctree
Binary file not shown.
Binary file modified
BIN
+114 Bytes
(100%)
docs/.doctrees/examples/basic_masked_datasets_example.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+118 KB
docs/_images/0493ea7949336c8bafa6c2a4a4fb0b6f684533792c8a8aee276b84450c0c67ea.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 added
BIN
+23.4 KB
docs/_images/14f77fdbefbffee0f204c62d7ca15a5007c9e1ccf295938f7dfbce40dff911db.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 added
BIN
+100 KB
docs/_images/1b9d3ae60591d9fa3d3765b22339938d8e2e0f747098c8f8890f0dfd31350263.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 added
BIN
+372 KB
docs/_images/2aa6d8e78d812bedbf9cb39408d1225ee70f51ceba3d55b2907fc903dfca5cac.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 added
BIN
+7.32 KB
docs/_images/35caf5d6a16a402da32ca7028c903bf35d4a356a2cc6d94421b48e1413335fa9.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 added
BIN
+107 KB
docs/_images/4e0e23bdb35ff463a282b0662c51ebe482fdeb0fb21e017109fefe9fe682fff5.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 added
BIN
+359 KB
docs/_images/51bb3e68b17996eba92cdf91265cc913643519e5f5dde09c75ea57aded64d6e8.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 added
BIN
+49.6 KB
docs/_images/5e5194f3aacd660f1d602d50e46aff1b64a2b0f19f6be64ea92299b4973e7d97.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 added
BIN
+42.6 KB
docs/_images/6e34f8ee7b278bfd8a09e6905ef8262eb47d5a1d1fb29441f644e0aa49eb63dd.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 added
BIN
+29.5 KB
docs/_images/754e8e0d0d095c71d66538d669e039318c29e89bca3e925b23b587a091be1603.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 added
BIN
+59.1 KB
docs/_images/845f208486df8f8430ae79295cf9999af568961227d3a7f74143891b3feaf295.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 added
BIN
+101 KB
docs/_images/8c2a029504368753fc523a63f10d74fc682d6cf97a23a2d3d607c1a82ed61aba.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 added
BIN
+301 KB
docs/_images/9d6d81e4243d6ff0402a7e6324a0f516f03ecf71cdee64ec322aa28e8e1ef266.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 added
BIN
+129 KB
docs/_images/a29b08481e2598a61febed5711e2d9285586fdc5a6112febb2b8b4f32587e173.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 added
BIN
+30.6 KB
docs/_images/a89460b27e574359592e522b7085cd793e44415667461cfb486dd68e3e154352.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 added
BIN
+98.8 KB
docs/_images/db7d97bf2f0692371951419e0014fc7f39aecdce0e091723176657940810f457.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 added
BIN
+114 KB
docs/_images/e16ff8424e5b53a5108a7f2c87a24cb50ae3850bb800f3a40b6d89a3c87b4be8.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 added
BIN
+75.7 KB
docs/_images/ee452c4ccae35fc77d15bea56dce7c6a644de67d7e546c281e6b1cc08f9c7b2e.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 added
BIN
+334 KB
docs/_images/efb0e0c981a2a37c61e11c54650023abd22cd8217f80b9af551ca2c50a0ee414.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 added
BIN
+7.28 KB
docs/_images/f99c6c24479005965377053093c7c4b95248d8010913dabe394641feeb087266.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 added
BIN
+72.8 KB
docs/_images/fad1bda0fb99150f350bad3eb2d11531e570bf1fb182fda50859b693662a8898.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.