toolsandogh 0.3.1__tar.gz → 0.3.2__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.
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/.github/workflows/release.yml +2 -2
- {toolsandogh-0.3.1/src/toolsandogh.egg-info → toolsandogh-0.3.2}/PKG-INFO +1 -1
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_locate.py +5 -6
- {toolsandogh-0.3.1 → toolsandogh-0.3.2/src/toolsandogh.egg-info}/PKG-INFO +1 -1
- toolsandogh-0.3.2/src/toolsandogh.egg-info/scm_version.json +8 -0
- toolsandogh-0.3.1/src/toolsandogh.egg-info/scm_version.json +0 -8
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/.github/workflows/ci.yml +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/.gitignore +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/.pre-commit-config.yaml +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/DESIGN.md +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/LICENSE +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/README.md +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/demos/demo_iscat_50nm_bead.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/pyproject.toml +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/setup.cfg +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/__init__.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_canonicalize_video.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_generate_video.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_link.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_load_video.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_rolling.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_rvt.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_simulate_particles.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_simulate_psf.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_store_video.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_validate_video.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/__init__.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/conftest.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_io.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_link.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_locate.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_rolling.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_simulate_particles.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_simulate_psf.py +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/testfile.tiff +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/SOURCES.txt +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/dependency_links.txt +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/requires.txt +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/scm_file_list.json +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/top_level.txt +0 -0
- {toolsandogh-0.3.1 → toolsandogh-0.3.2}/uv.lock +0 -0
|
@@ -28,7 +28,7 @@ jobs:
|
|
|
28
28
|
enable-cache: true
|
|
29
29
|
python-version: "3.12"
|
|
30
30
|
- run: uv build -o dist
|
|
31
|
-
- uses: actions/upload-artifact@
|
|
31
|
+
- uses: actions/upload-artifact@v7
|
|
32
32
|
with:
|
|
33
33
|
name: dist
|
|
34
34
|
path: dist/
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
id-token: write # PyPI Trusted Publishing (OIDC)
|
|
47
47
|
contents: write # create GitHub Release
|
|
48
48
|
steps:
|
|
49
|
-
- uses: actions/download-artifact@
|
|
49
|
+
- uses: actions/download-artifact@v8
|
|
50
50
|
with:
|
|
51
51
|
name: dist
|
|
52
52
|
path: dist/
|
|
@@ -9,7 +9,6 @@ contrasts, and per-emitter statistics. The auxiliary function
|
|
|
9
9
|
Y, X)``.
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
-
import functools
|
|
13
12
|
from typing import Callable, Literal
|
|
14
13
|
|
|
15
14
|
import jax
|
|
@@ -360,7 +359,7 @@ def _detect_peaks_one_frame(
|
|
|
360
359
|
(1, 1, 1),
|
|
361
360
|
"same",
|
|
362
361
|
)
|
|
363
|
-
is_peak = (score == local_ext) & (score >
|
|
362
|
+
is_peak = (score == local_ext) & (score > min_contrast)
|
|
364
363
|
elif sign == "negative":
|
|
365
364
|
local_ext = jax.lax.reduce_window(
|
|
366
365
|
score,
|
|
@@ -370,7 +369,7 @@ def _detect_peaks_one_frame(
|
|
|
370
369
|
(1, 1, 1),
|
|
371
370
|
"same",
|
|
372
371
|
)
|
|
373
|
-
is_peak = (score == local_ext) & (score < -
|
|
372
|
+
is_peak = (score == local_ext) & (score < -min_contrast)
|
|
374
373
|
else: # "both"
|
|
375
374
|
local_max = jax.lax.reduce_window(
|
|
376
375
|
score,
|
|
@@ -388,8 +387,8 @@ def _detect_peaks_one_frame(
|
|
|
388
387
|
(1, 1, 1),
|
|
389
388
|
"same",
|
|
390
389
|
)
|
|
391
|
-
is_pos = (score == local_max) & (score >
|
|
392
|
-
is_neg = (score == local_min) & (score < -
|
|
390
|
+
is_pos = (score == local_max) & (score > min_contrast)
|
|
391
|
+
is_neg = (score == local_min) & (score < -min_contrast)
|
|
393
392
|
is_peak = is_pos | is_neg
|
|
394
393
|
|
|
395
394
|
coords = jnp.argwhere(is_peak) # (n, 3)
|
|
@@ -444,6 +443,7 @@ def _extract_stamp(
|
|
|
444
443
|
# ---------------------------------------------------------------------------
|
|
445
444
|
|
|
446
445
|
|
|
446
|
+
@jax.jit(static_argnames=["iterations"])
|
|
447
447
|
def _fit_emitters_batch(
|
|
448
448
|
stamps: Float[Array, "n Pz Py Px"],
|
|
449
449
|
psf: Float[Array, "Pz Py Px"],
|
|
@@ -529,7 +529,6 @@ def _make_shifted_psf_2d(
|
|
|
529
529
|
return shifted_psf, 2
|
|
530
530
|
|
|
531
531
|
|
|
532
|
-
@functools.partial(jax.jit, static_argnames=("iterations", "is_3d"))
|
|
533
532
|
def _fit_one_emitter(
|
|
534
533
|
stamp: Float[Array, "Pz Py Px"],
|
|
535
534
|
psf: Float[Array, "Pz Py Px"],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|