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.
Files changed (41) hide show
  1. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/.github/workflows/release.yml +2 -2
  2. {toolsandogh-0.3.1/src/toolsandogh.egg-info → toolsandogh-0.3.2}/PKG-INFO +1 -1
  3. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_locate.py +5 -6
  4. {toolsandogh-0.3.1 → toolsandogh-0.3.2/src/toolsandogh.egg-info}/PKG-INFO +1 -1
  5. toolsandogh-0.3.2/src/toolsandogh.egg-info/scm_version.json +8 -0
  6. toolsandogh-0.3.1/src/toolsandogh.egg-info/scm_version.json +0 -8
  7. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/.github/workflows/ci.yml +0 -0
  8. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/.gitignore +0 -0
  9. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/.pre-commit-config.yaml +0 -0
  10. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/DESIGN.md +0 -0
  11. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/LICENSE +0 -0
  12. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/README.md +0 -0
  13. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/demos/demo_iscat_50nm_bead.py +0 -0
  14. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/pyproject.toml +0 -0
  15. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/setup.cfg +0 -0
  16. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/__init__.py +0 -0
  17. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_canonicalize_video.py +0 -0
  18. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_generate_video.py +0 -0
  19. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_link.py +0 -0
  20. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_load_video.py +0 -0
  21. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_rolling.py +0 -0
  22. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_rvt.py +0 -0
  23. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_simulate_particles.py +0 -0
  24. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_simulate_psf.py +0 -0
  25. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_store_video.py +0 -0
  26. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/_validate_video.py +0 -0
  27. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/__init__.py +0 -0
  28. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/conftest.py +0 -0
  29. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_io.py +0 -0
  30. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_link.py +0 -0
  31. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_locate.py +0 -0
  32. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_rolling.py +0 -0
  33. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_simulate_particles.py +0 -0
  34. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/test_simulate_psf.py +0 -0
  35. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh/tests/testfile.tiff +0 -0
  36. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/SOURCES.txt +0 -0
  37. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/dependency_links.txt +0 -0
  38. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/requires.txt +0 -0
  39. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/scm_file_list.json +0 -0
  40. {toolsandogh-0.3.1 → toolsandogh-0.3.2}/src/toolsandogh.egg-info/top_level.txt +0 -0
  41. {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@v6
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@v6
49
+ - uses: actions/download-artifact@v8
50
50
  with:
51
51
  name: dist
52
52
  path: dist/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolsandogh
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A collection of Python scripts for iSCAT microscopy data analysis
5
5
  Author-email: Marco Heisig <marco.heisig@mpl.mpg.de>
6
6
  License-Expression: GPL-3.0-or-later
@@ -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 > float(min_contrast))
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 < -float(min_contrast))
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 > float(min_contrast))
392
- is_neg = (score == local_min) & (score < -float(min_contrast))
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"],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolsandogh
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A collection of Python scripts for iSCAT microscopy data analysis
5
5
  Author-email: Marco Heisig <marco.heisig@mpl.mpg.de>
6
6
  License-Expression: GPL-3.0-or-later
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.3.2",
3
+ "distance": 0,
4
+ "node": "gd9acb8d90441cb1fca0cc8c398a815769ffdc357",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-07-09"
8
+ }
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "0.3.1",
3
- "distance": 0,
4
- "node": "ge3b2e72fa7b3c57374fd48568db415c492c50b06",
5
- "dirty": false,
6
- "branch": "HEAD",
7
- "node_date": "2026-07-08"
8
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes