mozarrt 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. mozarrt-0.1.0/.gitattributes +2 -0
  2. mozarrt-0.1.0/.github/workflows/publish.yml +72 -0
  3. mozarrt-0.1.0/.github/workflows/test.yml +47 -0
  4. mozarrt-0.1.0/.gitignore +8 -0
  5. mozarrt-0.1.0/PKG-INFO +12 -0
  6. mozarrt-0.1.0/notebooks/mobie_collection.csv +2 -0
  7. mozarrt-0.1.0/notebooks/playground.ipynb +586 -0
  8. mozarrt-0.1.0/pixi.lock +24734 -0
  9. mozarrt-0.1.0/pyproject.toml +74 -0
  10. mozarrt-0.1.0/src/mozarrt/__init__.py +3 -0
  11. mozarrt-0.1.0/src/mozarrt/cli.py +18 -0
  12. mozarrt-0.1.0/src/mozarrt/collect.py +220 -0
  13. mozarrt-0.1.0/src/mozarrt/folder.py +86 -0
  14. mozarrt-0.1.0/src/mozarrt/mobie_collection.py +30 -0
  15. mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/.zattrs +66 -0
  16. mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/.zgroup +3 -0
  17. mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/s0/.zarray +25 -0
  18. mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/s0/.zattrs +1 -0
  19. mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/s0/0/0/0 +0 -0
  20. mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/.zattrs +66 -0
  21. mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/.zgroup +3 -0
  22. mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/s0/.zarray +25 -0
  23. mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/s0/.zattrs +1 -0
  24. mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/s0/0/0/0 +0 -0
  25. mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/.zattrs +66 -0
  26. mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/.zgroup +3 -0
  27. mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/s0/.zarray +25 -0
  28. mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/s0/.zattrs +1 -0
  29. mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/s0/0/0/0 +0 -0
  30. mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/.zattrs +66 -0
  31. mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/.zgroup +3 -0
  32. mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/s0/.zarray +25 -0
  33. mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/s0/.zattrs +1 -0
  34. mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/s0/0/0/0 +0 -0
  35. mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/.zattrs +55 -0
  36. mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/.zgroup +3 -0
  37. mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/s0/.zarray +25 -0
  38. mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/s0/.zattrs +1 -0
  39. mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/s0/0/0/0 +0 -0
  40. mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/.zattrs +55 -0
  41. mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/.zgroup +3 -0
  42. mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/s0/.zarray +25 -0
  43. mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/s0/.zattrs +1 -0
  44. mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/s0/0/0/0 +0 -0
  45. mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/.zattrs +55 -0
  46. mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/.zgroup +3 -0
  47. mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/s0/.zarray +25 -0
  48. mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/s0/.zattrs +1 -0
  49. mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/s0/0/0/0 +0 -0
  50. mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/.zattrs +55 -0
  51. mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/.zgroup +3 -0
  52. mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/s0/.zarray +25 -0
  53. mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/s0/.zattrs +1 -0
  54. mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/s0/0/0/0 +0 -0
  55. mozarrt-0.1.0/tests/test_cli.py +9 -0
  56. mozarrt-0.1.0/tests/test_folder.py +73 -0
@@ -0,0 +1,2 @@
1
+ # SCM syntax highlighting & preventing 3-way merges
2
+ pixi.lock merge=binary linguist-language=YAML linguist-generated=true
@@ -0,0 +1,72 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'mozarrt-*'
7
+ branches:
8
+ - main
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ build:
15
+ name: Build wheel and source distribution
16
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
17
+ runs-on: ubuntu-latest
18
+
19
+ environment: release
20
+ permissions:
21
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
22
+
23
+ steps:
24
+ - name: Checkout code
25
+ uses: actions/checkout@v6
26
+ with:
27
+ fetch-depth: 0
28
+
29
+ - name: Set up Pixi
30
+ uses: prefix-dev/setup-pixi@v0.9.3
31
+ with:
32
+ cache: true
33
+ environments: >-
34
+ py312
35
+ build
36
+
37
+ - name: Test
38
+ run: pixi run --environment py312 test
39
+
40
+ - name: Build package
41
+ run: pixi run --environment build build
42
+
43
+ - name: Upload artifacts
44
+ uses: actions/upload-artifact@v6
45
+ with:
46
+ name: python-artifacts
47
+ path: dist/*
48
+ if-no-files-found: error
49
+
50
+ publish:
51
+ name: Publish to PyPI
52
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
53
+ needs:
54
+ - build
55
+ runs-on: ubuntu-latest
56
+
57
+ permissions:
58
+ contents: write
59
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
60
+
61
+ steps:
62
+ - name: Download Python artifacts
63
+ uses: actions/download-artifact@v7
64
+ with:
65
+ name: python-artifacts
66
+ path: dist
67
+ - name: Add assets to release
68
+ uses: softprops/action-gh-release@v2
69
+ with:
70
+ files: dist/*
71
+ - name: Publish package distributions to PyPI
72
+ uses: pypa/gh-action-pypi-publish@v1.13.0
@@ -0,0 +1,47 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ concurrency:
10
+ group: test-${{ github.head_ref }}
11
+ cancel-in-progress: true
12
+
13
+ env:
14
+ PYTHONUNBUFFERED: "1"
15
+ FORCE_COLOR: "1"
16
+
17
+ jobs:
18
+ run:
19
+ name: ${{ matrix.pixi-environment }} - ${{ matrix.os }}
20
+ runs-on: ${{ matrix.os }}
21
+ permissions:
22
+ contents: read
23
+ strategy:
24
+ fail-fast: false
25
+ matrix:
26
+ os: [ubuntu-latest, windows-latest, macos-latest]
27
+ pixi-environment:
28
+ - py312
29
+ - py313
30
+ - py314
31
+ steps:
32
+ - uses: actions/checkout@v6
33
+
34
+ - name: Set up Pixi
35
+ uses: prefix-dev/setup-pixi@v0.9.3
36
+ with:
37
+ cache: true
38
+ environments: ${{ matrix.pixi-environment }}
39
+
40
+ - name: Run tests
41
+ run: pixi run --environment ${{ matrix.pixi-environment }} cov-xml
42
+
43
+ - name: Upload coverage reports to Codecov
44
+ uses: codecov/codecov-action@v5
45
+ with:
46
+ token: ${{ secrets.CODECOV_TOKEN }}
47
+ slug: fmi-faim/mozarrt
@@ -0,0 +1,8 @@
1
+ # pixi environments
2
+ .pixi/*
3
+ !.pixi/config.toml
4
+ .DS_Store
5
+ __pycache__
6
+ .vscode
7
+ dist
8
+ .coverage
mozarrt-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: mozarrt
3
+ Version: 0.1.0
4
+ Summary: MoBIE OME-Zarr Tools
5
+ Author-email: Jan Eglinger <jan.eglinger@fmi.ch>
6
+ Requires-Python: >=3.12
7
+ Requires-Dist: cyclopts<5,>=4.5.0
8
+ Requires-Dist: loguru<0.8,>=0.7.3
9
+ Requires-Dist: mobiedantic<0.5,>=0.4.1
10
+ Requires-Dist: natsort<9,>=8.4.0
11
+ Requires-Dist: ngio<0.6,>=0.5.3
12
+ Requires-Dist: pandas<3,>=2.3.3
@@ -0,0 +1,2 @@
1
+ uri,name,type,channel,color,blend,affine,tps,view,exclusive,group,contrast_limits,grid,grid_position,display,format,spot_radius,bounding_box
2
+ /Users/eglijan/data/zenodo/20200812-CardiomyocyteDifferentiation14-Cycle1.zarr/B/03/0,WellName,,,,,,,,,,,,,,,,