lbm_suite2p_python 1.0.4__tar.gz → 2.0.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.
- lbm_suite2p_python-2.0.0/LICENSE.md +17 -0
- {lbm_suite2p_python-1.0.4/lbm_suite2p_python.egg-info → lbm_suite2p_python-2.0.0}/PKG-INFO +23 -17
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/README.md +3 -0
- lbm_suite2p_python-2.0.0/lbm_suite2p_python/VERSION +1 -0
- lbm_suite2p_python-2.0.0/lbm_suite2p_python/__init__.py +36 -0
- lbm_suite2p_python-2.0.0/lbm_suite2p_python/_benchmarking.py +29 -0
- lbm_suite2p_python-2.0.0/lbm_suite2p_python/merging.py +561 -0
- lbm_suite2p_python-2.0.0/lbm_suite2p_python/postprocessing.py +431 -0
- lbm_suite2p_python-2.0.0/lbm_suite2p_python/run_lsp.py +703 -0
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python/utils.py +33 -102
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python/volume.py +14 -29
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python/zplane.py +389 -228
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0/lbm_suite2p_python.egg-info}/PKG-INFO +23 -17
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python.egg-info/SOURCES.txt +3 -1
- lbm_suite2p_python-2.0.0/lbm_suite2p_python.egg-info/requires.txt +22 -0
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/pyproject.toml +61 -30
- lbm_suite2p_python-2.0.0/tests/test_run_volume.py +79 -0
- lbm_suite2p_python-1.0.4/LICENSE.md +0 -38
- lbm_suite2p_python-1.0.4/lbm_suite2p_python/VERSION +0 -1
- lbm_suite2p_python-1.0.4/lbm_suite2p_python/__init__.py +0 -35
- lbm_suite2p_python-1.0.4/lbm_suite2p_python/run_lsp.py +0 -611
- lbm_suite2p_python-1.0.4/lbm_suite2p_python/s3d.py +0 -400
- lbm_suite2p_python-1.0.4/lbm_suite2p_python.egg-info/requires.txt +0 -18
- lbm_suite2p_python-1.0.4/tests/test_run_volume.py +0 -28
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/MANIFEST.in +0 -0
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python/__main__.py +0 -0
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python/default_ops.py +0 -0
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python.egg-info/dependency_links.txt +0 -0
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python.egg-info/entry_points.txt +0 -0
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/lbm_suite2p_python.egg-info/top_level.txt +0 -0
- {lbm_suite2p_python-1.0.4 → lbm_suite2p_python-2.0.0}/setup.cfg +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
This software license is the 3-clause BSD license plus a fourth clause that prohibits redistribution for commercial purposes without further permission.
|
|
2
|
+
|
|
3
|
+
BSD 3-Clause License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2024, Miller Brain Observatory.
|
|
6
|
+
|
|
7
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
12
|
+
|
|
13
|
+
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
14
|
+
|
|
15
|
+
Redistributions for commercial purposes are not permitted without the written permission of all code authors. For purposes of this license, commercial purposes is the incorporation of LBM-Suite2p-Python into anything for which you will charge fees or other compensation. Contact mbo@rockefeller.edu for more information.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lbm_suite2p_python
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Light Beads Microscopy Pipeline using Suite2p
|
|
5
5
|
License-Expression: BSD-3-Clause
|
|
6
6
|
Project-URL: homepage, https://github.com/MillerBrainObservatory/LBM-Suite2p-Python
|
|
@@ -8,25 +8,28 @@ Keywords: Pipeline,Numpy,Microscopy,ScanImage,Suite2p,tiff
|
|
|
8
8
|
Classifier: Development Status :: 3 - Alpha
|
|
9
9
|
Classifier: Intended Audience :: Science/Research
|
|
10
10
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
11
|
-
Requires-Python: <3.
|
|
11
|
+
Requires-Python: <3.12.10,>=3.12.7
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE.md
|
|
14
|
-
Requires-Dist:
|
|
15
|
-
Requires-Dist:
|
|
16
|
-
Requires-Dist:
|
|
17
|
-
Requires-Dist: mkl-fft>=1.3.13
|
|
18
|
-
Requires-Dist: imageio[ffmpeg]
|
|
19
|
-
Requires-Dist: matplotlib>=3.10.1
|
|
20
|
-
Requires-Dist: h5py
|
|
14
|
+
Requires-Dist: mkl_fft
|
|
15
|
+
Requires-Dist: mbo_utilities[gui,suite3d]>=1.0.7
|
|
16
|
+
Requires-Dist: suite2p_mbo
|
|
21
17
|
Requires-Dist: tqdm
|
|
22
|
-
Requires-Dist:
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
Requires-Dist:
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Requires-Dist:
|
|
18
|
+
Requires-Dist: pandas
|
|
19
|
+
Requires-Dist: matplotlib
|
|
20
|
+
Requires-Dist: dask>=2025.9.1
|
|
21
|
+
Requires-Dist: zarr==3.1.3
|
|
22
|
+
Requires-Dist: seaborn>=0.13.2
|
|
23
|
+
Provides-Extra: cpsam
|
|
24
|
+
Requires-Dist: cellpose==4.0.6; extra == "cpsam"
|
|
25
|
+
Requires-Dist: pytorch; extra == "cpsam"
|
|
26
|
+
Requires-Dist: torchaudio; extra == "cpsam"
|
|
27
|
+
Provides-Extra: cpu
|
|
28
|
+
Requires-Dist: torch>=2.7.0; extra == "cpu"
|
|
29
|
+
Requires-Dist: torchvision>=0.22.0; extra == "cpu"
|
|
30
|
+
Provides-Extra: cu126
|
|
31
|
+
Requires-Dist: torch>=2.7.0; extra == "cu126"
|
|
32
|
+
Requires-Dist: torchvision>=0.22.0; extra == "cu126"
|
|
30
33
|
Dynamic: license-file
|
|
31
34
|
|
|
32
35
|
# Light Beads Microscopy (LBM) Pipeline: Suite2p
|
|
@@ -71,6 +74,9 @@ cd LBM-Suite2p-Python
|
|
|
71
74
|
pip install ".[all]" # optional, contains ".[gui, notebook]"
|
|
72
75
|
```
|
|
73
76
|
|
|
77
|
+
## Issues
|
|
78
|
+
Widgets may throw "Invalid Rect" errors. This can be safely ignored until it is [resolved](https://github.com/pygfx/wgpu-py/issues/716#issuecomment-2880853089).
|
|
79
|
+
|
|
74
80
|
---
|
|
75
81
|
|
|
76
82
|
## Acknowledgements
|
|
@@ -40,6 +40,9 @@ cd LBM-Suite2p-Python
|
|
|
40
40
|
pip install ".[all]" # optional, contains ".[gui, notebook]"
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
## Issues
|
|
44
|
+
Widgets may throw "Invalid Rect" errors. This can be safely ignored until it is [resolved](https://github.com/pygfx/wgpu-py/issues/716#issuecomment-2880853089).
|
|
45
|
+
|
|
43
46
|
---
|
|
44
47
|
|
|
45
48
|
## Acknowledgements
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
# from lbm_suite2p_python.utils import *
|
|
3
|
+
# from lbm_suite2p_python.volume import *
|
|
4
|
+
# from lbm_suite2p_python.run_lsp import *
|
|
5
|
+
# from lbm_suite2p_python.zplane import *
|
|
6
|
+
# from lbm_suite2p_python.default_ops import default_ops
|
|
7
|
+
|
|
8
|
+
# try:
|
|
9
|
+
# import suite3d
|
|
10
|
+
# except ImportError:
|
|
11
|
+
# HAS_S3D = False
|
|
12
|
+
# else:
|
|
13
|
+
# HAS_S3D = True
|
|
14
|
+
|
|
15
|
+
__version__ = (Path(__file__).parent / "VERSION").read_text().strip()
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
# "run_volume",
|
|
19
|
+
# "run_plane",
|
|
20
|
+
# "plot_traces",
|
|
21
|
+
# "plot_volume_signal",
|
|
22
|
+
# "plot_projection",
|
|
23
|
+
# "plot_execution_time",
|
|
24
|
+
# "plot_noise_distribution",
|
|
25
|
+
# "animate_traces",
|
|
26
|
+
# "save_images_to_movie",
|
|
27
|
+
# "get_common_path",
|
|
28
|
+
# "update_ops_paths",
|
|
29
|
+
# "dff_rolling_percentile",
|
|
30
|
+
# "dff_maxmin",
|
|
31
|
+
# "dff_shot_noise",
|
|
32
|
+
# "combine_tiffs",
|
|
33
|
+
# "load_ops",
|
|
34
|
+
# "load_planar_results",
|
|
35
|
+
"default_ops",
|
|
36
|
+
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import psutil
|
|
2
|
+
import subprocess
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def get_cpu_percent():
|
|
6
|
+
return psutil.cpu_percent(interval=None)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def get_ram_used():
|
|
10
|
+
return psutil.virtual_memory().used // (1024 * 1024)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def get_gpu_stats():
|
|
14
|
+
"""Return (gpu_util%, mem_used_MiB) for GPU 0 (or zeros if unavailable)."""
|
|
15
|
+
try:
|
|
16
|
+
result = subprocess.run(
|
|
17
|
+
[
|
|
18
|
+
"nvidia-smi",
|
|
19
|
+
"--query-gpu=utilization.gpu,memory.used",
|
|
20
|
+
"--format=csv,noheader,nounits",
|
|
21
|
+
],
|
|
22
|
+
capture_output=True,
|
|
23
|
+
text=True,
|
|
24
|
+
check=True,
|
|
25
|
+
)
|
|
26
|
+
util, mem = result.stdout.strip().split("\n")[0].split(", ")
|
|
27
|
+
return int(util), int(mem)
|
|
28
|
+
except Exception:
|
|
29
|
+
return 0, 0
|