PyOPIA 2.5.0__tar.gz → 2.5.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.
- {pyopia-2.5.0 → pyopia-2.5.1}/PKG-INFO +1 -1
- pyopia-2.5.1/pyopia/__init__.py +1 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/instrument/holo.py +19 -18
- pyopia-2.5.0/pyopia/__init__.py +0 -1
- {pyopia-2.5.0 → pyopia-2.5.1}/LICENSE +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/README.md +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/background.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/classify.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/cli.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/exampledata.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/instrument/__init__.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/instrument/common.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/instrument/silcam.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/instrument/uvp.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/io.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/pipeline.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/plotting.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/process.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/simulator/__init__.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/simulator/silcam.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/statistics.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/tests/__init__.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/tests/test_classify.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/tests/test_notebooks.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyopia/tests/test_pipeline.py +0 -0
- {pyopia-2.5.0 → pyopia-2.5.1}/pyproject.toml +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.5.1'
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
'''
|
|
2
|
-
|
|
2
|
+
This is a module containing basic processing for reconstruction of in-line holographic images with :mod:`pyopia.pipeline`.
|
|
3
|
+
|
|
4
|
+
See (and references therein):
|
|
5
|
+
Davies EJ, Buscombe D, Graham GW & Nimmo-Smith WAM (2015)
|
|
6
|
+
'Evaluating Unsupervised Methods to Size and Classify Suspended Particles
|
|
7
|
+
Using Digital In-Line Holography'
|
|
8
|
+
Journal of Atmospheric and Oceanic Technology 32, (6) 1241-1256,
|
|
9
|
+
https://doi.org/10.1175/JTECH-D-14-00157.1
|
|
10
|
+
https://journals.ametsoc.org/view/journals/atot/32/6/jtech-d-14-00157_1.xml
|
|
11
|
+
|
|
12
|
+
2022-11-01 Alex Nimmo-Smith alex.nimmo.smith@plymouth.ac.uk
|
|
3
13
|
'''
|
|
4
14
|
|
|
5
15
|
import os
|
|
@@ -17,20 +27,6 @@ from glob import glob
|
|
|
17
27
|
import logging
|
|
18
28
|
logger = logging.getLogger()
|
|
19
29
|
|
|
20
|
-
'''
|
|
21
|
-
This is a module containing basic processing for reconstruction of in-line holographic images.
|
|
22
|
-
|
|
23
|
-
See (and references therein):
|
|
24
|
-
Davies EJ, Buscombe D, Graham GW & Nimmo-Smith WAM (2015)
|
|
25
|
-
'Evaluating Unsupervised Methods to Size and Classify Suspended Particles
|
|
26
|
-
Using Digital In-Line Holography'
|
|
27
|
-
Journal of Atmospheric and Oceanic Technology 32, (6) 1241-1256,
|
|
28
|
-
https://doi.org/10.1175/JTECH-D-14-00157.1
|
|
29
|
-
https://journals.ametsoc.org/view/journals/atot/32/6/jtech-d-14-00157_1.xml
|
|
30
|
-
|
|
31
|
-
2022-11-01 Alex Nimmo-Smith alex.nimmo.smith@plymouth.ac.uk
|
|
32
|
-
'''
|
|
33
|
-
|
|
34
30
|
|
|
35
31
|
class Initial():
|
|
36
32
|
'''PyOpia pipline-compatible class for one-time setup of holograhic reconstruction
|
|
@@ -472,7 +468,7 @@ class Focus():
|
|
|
472
468
|
|
|
473
469
|
Returns
|
|
474
470
|
-------
|
|
475
|
-
:class:`pyopia.pipeline.Data`
|
|
471
|
+
data : :class:`pyopia.pipeline.Data`
|
|
476
472
|
|
|
477
473
|
containing the following keys:
|
|
478
474
|
|
|
@@ -547,11 +543,12 @@ class MergeStats():
|
|
|
547
543
|
|
|
548
544
|
Parameters
|
|
549
545
|
----------
|
|
546
|
+
None
|
|
550
547
|
|
|
551
548
|
Returns
|
|
552
549
|
-------
|
|
553
|
-
|
|
554
|
-
|
|
550
|
+
data : :class:`pyopia.pipeline.Data`
|
|
551
|
+
Updated pipeline data, where data['stats'] includes the new columns: 'holo_filename', 'z', and 'ifocus'
|
|
555
552
|
'''
|
|
556
553
|
|
|
557
554
|
def __init__(self):
|
|
@@ -573,6 +570,10 @@ class MergeStats():
|
|
|
573
570
|
ifocus.append(stack_ifocus[np.argmin(total_diff)])
|
|
574
571
|
|
|
575
572
|
stats['ifocus'] = np.array(ifocus, dtype=np.int64)
|
|
573
|
+
z = (np.arange(data['settings']['steps']['initial']['minZ'],
|
|
574
|
+
(data['settings']['steps']['initial']['maxZ'] + data['settings']['steps']['initial']['stepZ']),
|
|
575
|
+
data['settings']['steps']['initial']['stepZ']))
|
|
576
|
+
stats['z'] = z[stats['ifocus']-1]
|
|
576
577
|
stats['holo_filename'] = data['filename']
|
|
577
578
|
data['stats'] = stats
|
|
578
579
|
return data
|
pyopia-2.5.0/pyopia/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.5.0'
|
|
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
|