swcgeom 0.14.0__tar.gz → 0.16.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.

Potentially problematic release.


This version of swcgeom might be problematic. Click here for more details.

Files changed (119) hide show
  1. swcgeom-0.16.0/.github/workflows/build.yml +38 -0
  2. swcgeom-0.16.0/.github/workflows/github-publish.yml +35 -0
  3. {swcgeom-0.14.0 → swcgeom-0.16.0}/.github/workflows/pypi-publish.yml +12 -12
  4. {swcgeom-0.14.0 → swcgeom-0.16.0}/.github/workflows/test.yml +1 -1
  5. {swcgeom-0.14.0 → swcgeom-0.16.0}/.gitignore +1 -0
  6. swcgeom-0.16.0/.vscode/settings.json +15 -0
  7. {swcgeom-0.14.0 → swcgeom-0.16.0}/CHANGELOG.md +82 -0
  8. {swcgeom-0.14.0/swcgeom.egg-info → swcgeom-0.16.0}/PKG-INFO +3 -3
  9. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/ImageStack.ipynb +7 -1
  10. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/pytorch/branch_dataset.py +1 -1
  11. {swcgeom-0.14.0 → swcgeom-0.16.0}/pyproject.toml +2 -2
  12. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/_version.py +2 -2
  13. swcgeom-0.16.0/swcgeom/analysis/lmeasure.py +821 -0
  14. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/sholl.py +31 -2
  15. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/__init__.py +4 -0
  16. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/branch.py +9 -4
  17. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/branch_tree.py +2 -3
  18. swcgeom-0.14.0/swcgeom/core/segment.py → swcgeom-0.16.0/swcgeom/core/compartment.py +14 -9
  19. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/node.py +0 -8
  20. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/path.py +21 -6
  21. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/population.py +42 -3
  22. swcgeom-0.16.0/swcgeom/core/swc_utils/assembler.py +37 -0
  23. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/swc_utils/base.py +12 -5
  24. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/swc_utils/checker.py +12 -2
  25. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/swc_utils/subtree.py +2 -2
  26. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/tree.py +53 -49
  27. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/tree_utils.py +27 -5
  28. swcgeom-0.16.0/swcgeom/core/tree_utils_impl.py +55 -0
  29. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/images/augmentation.py +6 -1
  30. swcgeom-0.16.0/swcgeom/images/contrast.py +107 -0
  31. swcgeom-0.16.0/swcgeom/images/folder.py +228 -0
  32. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/images/io.py +79 -40
  33. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/__init__.py +2 -0
  34. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/base.py +41 -21
  35. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/branch.py +5 -5
  36. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/geometry.py +42 -18
  37. swcgeom-0.16.0/swcgeom/transforms/image_preprocess.py +100 -0
  38. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/image_stack.py +46 -28
  39. swcgeom-0.16.0/swcgeom/transforms/images.py +102 -0
  40. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/mst.py +10 -18
  41. swcgeom-0.16.0/swcgeom/transforms/neurolucida_asc.py +495 -0
  42. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/population.py +2 -2
  43. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/tree.py +12 -14
  44. swcgeom-0.16.0/swcgeom/transforms/tree_assembler.py +173 -0
  45. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/__init__.py +1 -0
  46. swcgeom-0.16.0/swcgeom/utils/neuromorpho.py +594 -0
  47. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/numpy_helper.py +14 -4
  48. swcgeom-0.16.0/swcgeom/utils/plotter_2d.py +130 -0
  49. swcgeom-0.16.0/swcgeom/utils/renderer.py +133 -0
  50. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/sdf.py +5 -1
  51. {swcgeom-0.14.0 → swcgeom-0.16.0/swcgeom.egg-info}/PKG-INFO +3 -3
  52. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom.egg-info/SOURCES.txt +8 -1
  53. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom.egg-info/requires.txt +2 -2
  54. swcgeom-0.16.0/tests/transforms/test_neurolucida_asc.py +150 -0
  55. swcgeom-0.16.0/tests/utils/test_numpy_helper.py +46 -0
  56. swcgeom-0.14.0/.github/workflows/build.yml +0 -38
  57. swcgeom-0.14.0/.github/workflows/github-publish.yml +0 -35
  58. swcgeom-0.14.0/.vscode/settings.json +0 -20
  59. swcgeom-0.14.0/swcgeom/core/swc_utils/assembler.py +0 -155
  60. swcgeom-0.14.0/swcgeom/core/tree_utils_impl.py +0 -39
  61. swcgeom-0.14.0/swcgeom/images/folder.py +0 -146
  62. swcgeom-0.14.0/swcgeom/transforms/images.py +0 -32
  63. swcgeom-0.14.0/swcgeom/transforms/tree_assembler.py +0 -107
  64. swcgeom-0.14.0/swcgeom/utils/neuromorpho.py +0 -469
  65. swcgeom-0.14.0/swcgeom/utils/renderer.py +0 -244
  66. {swcgeom-0.14.0 → swcgeom-0.16.0}/.pylintrc +0 -0
  67. {swcgeom-0.14.0 → swcgeom-0.16.0}/LICENSE +0 -0
  68. {swcgeom-0.14.0 → swcgeom-0.16.0}/README.md +0 -0
  69. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/Branch.ipynb +0 -0
  70. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/BranchTree.ipynb +0 -0
  71. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/CollectTips.ipynb +0 -0
  72. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/CutTree.ipynb +0 -0
  73. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/Features.ipynb +0 -0
  74. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/GeometryTransform.ipynb +0 -0
  75. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/MST.ipynb +0 -0
  76. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/SpectralClustering.ipynb +0 -0
  77. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/Tree.ipynb +0 -0
  78. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/data/101711-10_4p5-of-16_initial.CNG.swc +0 -0
  79. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/data/101711-11_16-of-16_initial.CNG.swc +0 -0
  80. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/data/1059283677_15257_2226-X16029-Y23953.swc +0 -0
  81. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/data/toydata.swc +0 -0
  82. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/dgl/graph.py +0 -0
  83. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/pytorch/branch.py +0 -0
  84. {swcgeom-0.14.0 → swcgeom-0.16.0}/examples/pytorch/tree_folder_dataset.py +0 -0
  85. {swcgeom-0.14.0 → swcgeom-0.16.0}/git-conventional-commits.yaml +0 -0
  86. {swcgeom-0.14.0 → swcgeom-0.16.0}/setup.cfg +0 -0
  87. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/__init__.py +0 -0
  88. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/__init__.py +0 -0
  89. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/branch_features.py +0 -0
  90. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/feature_extractor.py +0 -0
  91. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/node_features.py +0 -0
  92. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/path_features.py +0 -0
  93. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/trunk.py +0 -0
  94. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/visualization.py +0 -0
  95. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/analysis/volume.py +0 -0
  96. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/swc.py +0 -0
  97. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/swc_utils/__init__.py +0 -0
  98. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/swc_utils/io.py +0 -0
  99. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/core/swc_utils/normalizer.py +0 -0
  100. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/images/__init__.py +0 -0
  101. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/transforms/path.py +0 -0
  102. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/debug.py +0 -0
  103. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/download.py +0 -0
  104. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/dsu.py +0 -0
  105. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/ellipse.py +0 -0
  106. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/file.py +0 -0
  107. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/solid_geometry.py +0 -0
  108. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/transforms.py +0 -0
  109. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom/utils/volumetric_object.py +0 -0
  110. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom.egg-info/dependency_links.txt +0 -0
  111. {swcgeom-0.14.0 → swcgeom-0.16.0}/swcgeom.egg-info/top_level.txt +0 -0
  112. {swcgeom-0.14.0 → swcgeom-0.16.0}/tests/__init__.py +0 -0
  113. {swcgeom-0.14.0 → swcgeom-0.16.0}/tests/analysis/test_volume.py +0 -0
  114. {swcgeom-0.14.0 → swcgeom-0.16.0}/tests/utils/__init__.py +0 -0
  115. {swcgeom-0.14.0 → swcgeom-0.16.0}/tests/utils/test_dsu.py +0 -0
  116. {swcgeom-0.14.0 → swcgeom-0.16.0}/tests/utils/test_sdf.py +0 -0
  117. {swcgeom-0.14.0 → swcgeom-0.16.0}/tests/utils/test_solid_geometry.py +0 -0
  118. {swcgeom-0.14.0 → swcgeom-0.16.0}/tests/utils/test_transforms.py +0 -0
  119. {swcgeom-0.14.0 → swcgeom-0.16.0}/tests/utils/test_volumetric_object.py +0 -0
@@ -0,0 +1,38 @@
1
+ name: Build Python Package
2
+
3
+ on:
4
+ workflow_call:
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v3
11
+
12
+ - name: Set up Python
13
+ uses: actions/setup-python@v3
14
+ with:
15
+ python-version: "3.10"
16
+
17
+ - name: Get history and tags for SCM versioning to work
18
+ run: |
19
+ git fetch --prune --unshallow
20
+ git fetch --depth=1 origin +refs/tags/*:refs/tags/*
21
+ git describe --tags
22
+ git describe --tags $(git rev-list --tags --max-count=1)
23
+
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install build
28
+
29
+ - name: Build package
30
+ run: python -m build
31
+
32
+ - name: Archive production artifacts
33
+ uses: actions/upload-artifact@v3
34
+ with:
35
+ name: release
36
+ path: |
37
+ dist/
38
+ swcgeom.egg-info/
@@ -0,0 +1,35 @@
1
+ name: Release to GitHub
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ build:
13
+ uses: ./.github/workflows/build.yml
14
+
15
+ publish:
16
+ runs-on: ubuntu-latest
17
+ needs: build
18
+ steps:
19
+ - name: Get version
20
+ id: get_version
21
+ run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
22
+
23
+ - name: Download release
24
+ uses: actions/download-artifact@v3
25
+ with:
26
+ name: release
27
+
28
+ - name: Pack release
29
+ run: tar czf swcgeom-${{ steps.get_version.outputs.VERSION }}.tgz dist/
30
+
31
+ - name: Create release
32
+ uses: softprops/action-gh-release@v1
33
+ with:
34
+ token: ${{ secrets.GH_TOKEN }}
35
+ files: swcgeom-${{ steps.get_version.outputs.VERSION }}.tgz
@@ -6,26 +6,26 @@ name: Release to PyPI
6
6
  on:
7
7
  push:
8
8
  tags:
9
- - v*
9
+ - v*
10
10
 
11
11
  permissions:
12
12
  contents: read
13
13
 
14
14
  jobs:
15
- build:
15
+ build:
16
16
  uses: ./.github/workflows/build.yml
17
17
 
18
- release:
18
+ publish:
19
19
  runs-on: ubuntu-latest
20
20
  needs: build
21
21
  steps:
22
- - name: Download release
23
- uses: actions/download-artifact@v3
24
- with:
25
- name: release
22
+ - name: Download release
23
+ uses: actions/download-artifact@v3
24
+ with:
25
+ name: release
26
26
 
27
- - name: Publish package
28
- uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
29
- with:
30
- user: __token__
31
- password: ${{ secrets.PYPI_API_TOKEN }}
27
+ - name: Publish package
28
+ uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
29
+ with:
30
+ user: __token__
31
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -3,7 +3,7 @@ name: Run tests
3
3
  on: [push]
4
4
 
5
5
  jobs:
6
- build:
6
+ test:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
@@ -1,5 +1,6 @@
1
1
  # Auto generated
2
2
  _version.py
3
+ .DS_Store
3
4
 
4
5
  # Byte-compiled / optimized / DLL files
5
6
  __pycache__/
@@ -0,0 +1,15 @@
1
+ {
2
+ "[python]": {
3
+ "editor.defaultFormatter": "ms-python.black-formatter"
4
+ },
5
+ "python.analysis.typeCheckingMode": "basic",
6
+ "python.testing.pytestArgs": [
7
+ "tests"
8
+ ],
9
+ "python.testing.unittestEnabled": false,
10
+ "python.testing.pytestEnabled": true,
11
+ "isort.args": [
12
+ "--profile",
13
+ "black"
14
+ ],
15
+ }
@@ -1,5 +1,87 @@
1
1
  # Changelog
2
2
 
3
+ ## **0.16.0**&emsp;<sub><sup>2024-03-16 ([bf2bf95...7029483](https://github.com/yzx9/swcgeom/compare/bf2bf95ee9fbfb7eba871db7303292f1dfcc7b8f...70294836643e51ca43d039887bbd71de3a9b561b?diff=split))</sup></sub>
4
+
5
+ ### Features
6
+
7
+ ##### &ensp;`analysis`
8
+
9
+ - add l\-measure support \(close \#13\) ([15ddc33](https://github.com/yzx9/swcgeom/commit/15ddc333c4cdce42fe99fb2383fa0768bc2e35b2))
10
+
11
+ ##### &ensp;`core`
12
+
13
+ - \`Tree\` accpet values with custom names ([722f84f](https://github.com/yzx9/swcgeom/commit/722f84fdd71133d07e74b5f90171b3671a4fe4c9))
14
+ - add \`Population\.map\` parallel processing support ([a1ee5bb](https://github.com/yzx9/swcgeom/commit/a1ee5bb6344ad5ab7b6572962f3b84caedf1351f))
15
+
16
+ ##### &ensp;`images`
17
+
18
+ - add image contrast functions ([85b881e](https://github.com/yzx9/swcgeom/commit/85b881e91e878daf6fb3aa2862b5cd62eaa3488b))
19
+ - stat image stack folder ([ffc5e3a](https://github.com/yzx9/swcgeom/commit/ffc5e3a649a4d8203c2530b6351a7b509b262cf3))
20
+
21
+ ##### &ensp;`transforms`
22
+
23
+ - add basic neuronlucida asc format support \(close \#12\) ([619a275](https://github.com/yzx9/swcgeom/commit/619a275aaa5a311c66e1a2438e6251ee4b9bd703))
24
+ - add \`SGuoImPreProcess\` ([dab7481](https://github.com/yzx9/swcgeom/commit/dab74818e5ea82d27450758f868bdc633b8992bf))
25
+ - add image stack related transforms ([7029483](https://github.com/yzx9/swcgeom/commit/70294836643e51ca43d039887bbd71de3a9b561b))
26
+
27
+ ##### &ensp;`utils`
28
+
29
+ - \`Tree\` support array like inputs ([1f228d0](https://github.com/yzx9/swcgeom/commit/1f228d055b99c8545ba51da5af2bca8d7b760f3f))
30
+ - download source swc and log from neuromorpho ([d4fbfb6](https://github.com/yzx9/swcgeom/commit/d4fbfb6f0b89990bf63b481333d6c3c3cb16705c))
31
+
32
+ ### Bug Fixes
33
+
34
+ ##### &ensp;`utils`
35
+
36
+ - expecting a figure from the axes ([bf2bf95](https://github.com/yzx9/swcgeom/commit/bf2bf95ee9fbfb7eba871db7303292f1dfcc7b8f))
37
+
38
+ ### Performance Improvements
39
+
40
+ ##### &ensp;`core`
41
+
42
+ - use NamedTuple for SWCNames and SWCTypes ([300bfea](https://github.com/yzx9/swcgeom/commit/300bfeac92b90e09f262a850ecc226257c2af2e5))
43
+
44
+
45
+ ### BREAKING CHANGES
46
+
47
+ - `core` \`Tree\` accpet values with custom names ([722f84f](https://github.com/yzx9/swcgeom/commit/722f84fdd71133d07e74b5f90171b3671a4fe4c9))
48
+ - `core` remove deprecated \`Tree\.Node\.get\_branch\` and \`Node\.child\_ids\` method ([1de86af](https://github.com/yzx9/swcgeom/commit/1de86afc21451be4c6bde5084688170d901eb625))
49
+
50
+ <br>
51
+
52
+ ## **0.15.0**&emsp;<sub><sup>2024-01-28 ([d300b41...8c9e0ab](https://github.com/yzx9/swcgeom/compare/d300b41689ee892fe5a23dad57f92e1054c0f9e9...8c9e0ab45c447d3d8121b0cc4178be5f65d18a56?diff=split))</sup></sub>
53
+
54
+ ### Features
55
+
56
+ ##### `core`
57
+
58
+ - expose subtree id mapping ([35738a3](https://github.com/yzx9/swcgeom/commit/35738a31b2373a43ab29550335a457c51b7befce))
59
+
60
+ ##### `images`
61
+
62
+ - add dtype support ([d300b41](https://github.com/yzx9/swcgeom/commit/d300b41689ee892fe5a23dad57f92e1054c0f9e9))
63
+
64
+ ##### `transforms`
65
+
66
+ - generate image stack patch ([decd3a1](https://github.com/yzx9/swcgeom/commit/decd3a1ee63e1657aafa24ec5dfbf7439d25a551))
67
+ - add \`extra\_repr\` api ([ca19361](https://github.com/yzx9/swcgeom/commit/ca1936146783ebccc2ffe25596799580e89b3432))
68
+
69
+ ### Bug Fixes
70
+
71
+ ##### `core`
72
+
73
+ - fix classmethod typing annotations ([0123eeb](https://github.com/yzx9/swcgeom/commit/0123eeb46142c3c3a695a5cf2495588a2effe275))
74
+
75
+ ##### `transforms`
76
+
77
+ - should stack images ([8c9e0ab](https://github.com/yzx9/swcgeom/commit/8c9e0ab45c447d3d8121b0cc4178be5f65d18a56))
78
+
79
+
80
+ ### BREAKING CHANGES
81
+ - `core` remove assembler module ([414533d](https://github.com/yzx9/swcgeom/commit/414533d17238ed45972dff1909cf025a19b7fa1e))
82
+ <br>
83
+
84
+
3
85
  ## **0.14.0**&emsp;<sub><sup>2023-12-26 ([b9c95f5...cc22018](https://github.com/yzx9/swcgeom/compare/b9c95f58f725490f3b624233cc0be20b31605e53...cc22018ad79af18ecd812b932812a0ff40a0fe40?diff=split))</sup></sub>
4
86
 
5
87
  ### Features
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: swcgeom
3
- Version: 0.14.0
3
+ Version: 0.16.0
4
4
  Summary: Neuron geometry library for swc format
5
5
  Author-email: yzx9 <yuan.zx@outlook.com>
6
6
  License: Apache-2.0
@@ -19,14 +19,14 @@ Requires-Dist: sdflit>=0.2.1
19
19
  Requires-Dist: seaborn>=0.12.0
20
20
  Requires-Dist: tifffile>=2022.8.12
21
21
  Requires-Dist: typing_extensions>=4.4.0
22
+ Requires-Dist: tqdm>=4.46.1
22
23
  Requires-Dist: v3d-py-helper>=0.1.0
23
24
  Provides-Extra: all
24
25
  Requires-Dist: beautifulsoup4>=4.11.1; extra == "all"
25
26
  Requires-Dist: certifi>=2023.5.7; extra == "all"
26
27
  Requires-Dist: chardet>=5.2.0; extra == "all"
27
28
  Requires-Dist: lmdb>=1.4.1; extra == "all"
28
- Requires-Dist: pycurl>=7.0.0; extra == "all"
29
- Requires-Dist: tqdm>=4.46.1; extra == "all"
29
+ Requires-Dist: requests>=2.0.0; extra == "all"
30
30
  Requires-Dist: urllib3>=1.26.0; extra == "all"
31
31
 
32
32
  # SWCGEOM
@@ -49,6 +49,12 @@
49
49
  "outputs": [],
50
50
  "source": [
51
51
  "trans = ToImageStack(resolution=[1, 1, 1])\n",
52
+ "\n",
53
+ "# load entire image stack into memory, should be avoided for large images\n",
54
+ "x = trans(tree1)\n",
55
+ "print(x.dtype, x.shape)\n",
56
+ "\n",
57
+ "# save image stack to file\n",
52
58
  "trans.transform_and_save(\"test.tif\", tree1)"
53
59
  ]
54
60
  }
@@ -69,7 +75,7 @@
69
75
  "name": "python",
70
76
  "nbconvert_exporter": "python",
71
77
  "pygments_lexer": "ipython3",
72
- "version": "3.11.6"
78
+ "version": "3.12.1"
73
79
  },
74
80
  "orig_nbformat": 4,
75
81
  "vscode": {
@@ -8,7 +8,7 @@ import torch
8
8
  import torch.utils.data
9
9
  from tree_folder_dataset import TreeFolderDataset
10
10
 
11
- from swcgeom import Branch
11
+ from swcgeom.core import Branch
12
12
  from swcgeom.transforms import Identity, Transform
13
13
  from swcgeom.utils import numpy_err
14
14
 
@@ -22,6 +22,7 @@ dependencies = [
22
22
  "seaborn>=0.12.0",
23
23
  "tifffile>=2022.8.12",
24
24
  "typing_extensions>=4.4.0",
25
+ "tqdm>=4.46.1",
25
26
  "v3d-py-helper>=0.1.0",
26
27
  ]
27
28
 
@@ -31,8 +32,7 @@ all = [
31
32
  "certifi>=2023.5.7",
32
33
  "chardet>=5.2.0",
33
34
  "lmdb>=1.4.1",
34
- "pycurl>=7.0.0",
35
- "tqdm>=4.46.1",
35
+ "requests>=2.0.0",
36
36
  "urllib3>=1.26.0",
37
37
  ]
38
38
 
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.14.0'
16
- __version_tuple__ = version_tuple = (0, 14, 0)
15
+ __version__ = version = '0.16.0'
16
+ __version_tuple__ = version_tuple = (0, 16, 0)