nps-cli 0.1.0__tar.gz → 0.1.1__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.
- {nps_cli-0.1.0 → nps_cli-0.1.1}/PKG-INFO +29 -4
- {nps_cli-0.1.0 → nps_cli-0.1.1}/README.md +29 -4
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps/main.py +4 -3
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps_cli.egg-info/PKG-INFO +29 -4
- {nps_cli-0.1.0 → nps_cli-0.1.1}/pyproject.toml +1 -1
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps/__init__.py +0 -0
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps/config.py +0 -0
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps_cli.egg-info/SOURCES.txt +0 -0
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps_cli.egg-info/dependency_links.txt +0 -0
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps_cli.egg-info/entry_points.txt +0 -0
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps_cli.egg-info/requires.txt +0 -0
- {nps_cli-0.1.0 → nps_cli-0.1.1}/nps_cli.egg-info/top_level.txt +0 -0
- {nps_cli-0.1.0 → nps_cli-0.1.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nps-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A simple CLI for sampling point clouds from large volumetric datasets
|
|
5
5
|
Author: Jakob Troidl
|
|
6
6
|
License-Expression: MIT
|
|
@@ -20,13 +20,12 @@ Requires-Dist: ruff; extra == "dev"
|
|
|
20
20
|
# CLI for Point Cloud Sampling
|
|
21
21
|
|
|
22
22
|
```
|
|
23
|
-
pip install nps
|
|
23
|
+
pip install nps-cli
|
|
24
24
|
````
|
|
25
25
|
### Get started
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
```zsh
|
|
29
|
-
|
|
28
|
+
nps --help
|
|
30
29
|
Usage: nps [OPTIONS]
|
|
31
30
|
|
|
32
31
|
Options:
|
|
@@ -52,6 +51,32 @@ Options:
|
|
|
52
51
|
-h, --help Show this message and exit.
|
|
53
52
|
```
|
|
54
53
|
|
|
54
|
+
### Example usage
|
|
55
|
+
|
|
55
56
|
```bash
|
|
56
57
|
nps --cv-path precomputed://gs://neuroglancer-janelia-flyem-hemibrain/v1.0/segmentation
|
|
57
58
|
```
|
|
59
|
+
|
|
60
|
+
### Reading Point Clouds
|
|
61
|
+
|
|
62
|
+
Please refer to the [pocaduck](https://github.com/JaneliaSciComp/pocaduck?tab=readme-ov-file#querying-point-clouds) repo on how to read point clouds from the output directory:
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
from pocaduck import Query
|
|
66
|
+
|
|
67
|
+
# Create a query object
|
|
68
|
+
query = Query(storage_config=<PATH>) # path to folder where nps output is stored
|
|
69
|
+
|
|
70
|
+
# Get all available labels
|
|
71
|
+
labels = query.get_labels()
|
|
72
|
+
print(f"Available labels: {labels}")
|
|
73
|
+
|
|
74
|
+
# Get all points for a label (aggregated across all blocks)
|
|
75
|
+
points = query.get_points(label=12345)
|
|
76
|
+
print(f"Retrieved {points.shape[0]} points for label 12345")
|
|
77
|
+
|
|
78
|
+
# Close the query connection when done
|
|
79
|
+
query.close()
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
For optimized point cloud reading, consider [this](https://github.com/JaneliaSciComp/pocaduck?tab=readme-ov-file#running-the-optimization-pipeline).
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# CLI for Point Cloud Sampling
|
|
2
2
|
|
|
3
3
|
```
|
|
4
|
-
pip install nps
|
|
4
|
+
pip install nps-cli
|
|
5
5
|
````
|
|
6
6
|
### Get started
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
```zsh
|
|
10
|
-
|
|
9
|
+
nps --help
|
|
11
10
|
Usage: nps [OPTIONS]
|
|
12
11
|
|
|
13
12
|
Options:
|
|
@@ -33,6 +32,32 @@ Options:
|
|
|
33
32
|
-h, --help Show this message and exit.
|
|
34
33
|
```
|
|
35
34
|
|
|
35
|
+
### Example usage
|
|
36
|
+
|
|
36
37
|
```bash
|
|
37
38
|
nps --cv-path precomputed://gs://neuroglancer-janelia-flyem-hemibrain/v1.0/segmentation
|
|
38
|
-
```
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Reading Point Clouds
|
|
42
|
+
|
|
43
|
+
Please refer to the [pocaduck](https://github.com/JaneliaSciComp/pocaduck?tab=readme-ov-file#querying-point-clouds) repo on how to read point clouds from the output directory:
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
from pocaduck import Query
|
|
47
|
+
|
|
48
|
+
# Create a query object
|
|
49
|
+
query = Query(storage_config=<PATH>) # path to folder where nps output is stored
|
|
50
|
+
|
|
51
|
+
# Get all available labels
|
|
52
|
+
labels = query.get_labels()
|
|
53
|
+
print(f"Available labels: {labels}")
|
|
54
|
+
|
|
55
|
+
# Get all points for a label (aggregated across all blocks)
|
|
56
|
+
points = query.get_points(label=12345)
|
|
57
|
+
print(f"Retrieved {points.shape[0]} points for label 12345")
|
|
58
|
+
|
|
59
|
+
# Close the query connection when done
|
|
60
|
+
query.close()
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
For optimized point cloud reading, consider [this](https://github.com/JaneliaSciComp/pocaduck?tab=readme-ov-file#running-the-optimization-pipeline).
|
|
@@ -34,8 +34,9 @@ def main(cv_path, mip, timestamp, output_dir, num_workers, cpus_per_worker, queu
|
|
|
34
34
|
click.echo("Sampling points only (no SVIDs)...")
|
|
35
35
|
svids = None
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
points_dir = os.path.join(output_dir, 'points')
|
|
38
|
+
if not os.path.exists(points_dir):
|
|
39
|
+
os.makedirs(points_dir)
|
|
39
40
|
|
|
40
41
|
if worker_type == 'LocalWorker':
|
|
41
42
|
click.echo("Using LocalWorker for sampling.")
|
|
@@ -52,7 +53,7 @@ def main(cv_path, mip, timestamp, output_dir, num_workers, cpus_per_worker, queu
|
|
|
52
53
|
svids=svids,
|
|
53
54
|
block_size=np.array(block_size),
|
|
54
55
|
num_workers=num_workers,
|
|
55
|
-
out_dir=
|
|
56
|
+
out_dir=points_dir,
|
|
56
57
|
fraction=fraction,
|
|
57
58
|
worker_config=worker_config
|
|
58
59
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nps-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A simple CLI for sampling point clouds from large volumetric datasets
|
|
5
5
|
Author: Jakob Troidl
|
|
6
6
|
License-Expression: MIT
|
|
@@ -20,13 +20,12 @@ Requires-Dist: ruff; extra == "dev"
|
|
|
20
20
|
# CLI for Point Cloud Sampling
|
|
21
21
|
|
|
22
22
|
```
|
|
23
|
-
pip install nps
|
|
23
|
+
pip install nps-cli
|
|
24
24
|
````
|
|
25
25
|
### Get started
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
```zsh
|
|
29
|
-
|
|
28
|
+
nps --help
|
|
30
29
|
Usage: nps [OPTIONS]
|
|
31
30
|
|
|
32
31
|
Options:
|
|
@@ -52,6 +51,32 @@ Options:
|
|
|
52
51
|
-h, --help Show this message and exit.
|
|
53
52
|
```
|
|
54
53
|
|
|
54
|
+
### Example usage
|
|
55
|
+
|
|
55
56
|
```bash
|
|
56
57
|
nps --cv-path precomputed://gs://neuroglancer-janelia-flyem-hemibrain/v1.0/segmentation
|
|
57
58
|
```
|
|
59
|
+
|
|
60
|
+
### Reading Point Clouds
|
|
61
|
+
|
|
62
|
+
Please refer to the [pocaduck](https://github.com/JaneliaSciComp/pocaduck?tab=readme-ov-file#querying-point-clouds) repo on how to read point clouds from the output directory:
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
from pocaduck import Query
|
|
66
|
+
|
|
67
|
+
# Create a query object
|
|
68
|
+
query = Query(storage_config=<PATH>) # path to folder where nps output is stored
|
|
69
|
+
|
|
70
|
+
# Get all available labels
|
|
71
|
+
labels = query.get_labels()
|
|
72
|
+
print(f"Available labels: {labels}")
|
|
73
|
+
|
|
74
|
+
# Get all points for a label (aggregated across all blocks)
|
|
75
|
+
points = query.get_points(label=12345)
|
|
76
|
+
print(f"Retrieved {points.shape[0]} points for label 12345")
|
|
77
|
+
|
|
78
|
+
# Close the query connection when done
|
|
79
|
+
query.close()
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
For optimized point cloud reading, consider [this](https://github.com/JaneliaSciComp/pocaduck?tab=readme-ov-file#running-the-optimization-pipeline).
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "nps-cli"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "A simple CLI for sampling point clouds from large volumetric datasets"
|
|
9
9
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
10
|
requires-python = ">=3.11"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|