PyOPIA 2.4.2__tar.gz → 2.4.3__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 (26) hide show
  1. {pyopia-2.4.2 → pyopia-2.4.3}/PKG-INFO +1 -1
  2. pyopia-2.4.3/pyopia/__init__.py +1 -0
  3. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/simulator/silcam.py +23 -23
  4. pyopia-2.4.2/pyopia/__init__.py +0 -1
  5. {pyopia-2.4.2 → pyopia-2.4.3}/LICENSE +0 -0
  6. {pyopia-2.4.2 → pyopia-2.4.3}/README.md +0 -0
  7. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/background.py +0 -0
  8. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/classify.py +0 -0
  9. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/cli.py +0 -0
  10. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/exampledata.py +0 -0
  11. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/instrument/__init__.py +0 -0
  12. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/instrument/common.py +0 -0
  13. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/instrument/holo.py +0 -0
  14. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/instrument/silcam.py +0 -0
  15. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/instrument/uvp.py +0 -0
  16. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/io.py +0 -0
  17. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/pipeline.py +0 -0
  18. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/plotting.py +0 -0
  19. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/process.py +0 -0
  20. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/simulator/__init__.py +0 -0
  21. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/statistics.py +0 -0
  22. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/tests/__init__.py +0 -0
  23. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/tests/test_classify.py +0 -0
  24. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/tests/test_notebooks.py +0 -0
  25. {pyopia-2.4.2 → pyopia-2.4.3}/pyopia/tests/test_pipeline.py +0 -0
  26. {pyopia-2.4.2 → pyopia-2.4.3}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyOPIA
3
- Version: 2.4.2
3
+ Version: 2.4.3
4
4
  Summary: A Python Ocean Particle Image Analysis toolbox.
5
5
  Home-page: https://github.com/sintef/pyopia
6
6
  Keywords: Ocean,Particles,Imaging,Measurement,Size distribution
@@ -0,0 +1 @@
1
+ __version__ = '2.4.3'
@@ -15,15 +15,7 @@ from pyopia.pipeline import Pipeline
15
15
 
16
16
 
17
17
  class SilcamSimulator():
18
- def __init__(self, total_volume_concentration=1000,
19
- d50=1000,
20
- MinD=10,
21
- PIX_SIZE=28,
22
- PATH_LENGTH=40,
23
- imx=2048,
24
- imy=2448,
25
- nims=50):
26
- '''SilCam simulator
18
+ '''SilCam simulator
27
19
 
28
20
  Parameters
29
21
  ----------
@@ -44,20 +36,28 @@ class SilcamSimulator():
44
36
  nims : int, optional
45
37
  number of images to simulate, by default 50
46
38
 
47
- Example:
48
- --------
39
+ Example
40
+ -------
49
41
 
50
- ```python
51
- from pyopia.simulator.silcam import SilcamSimulator
42
+ .. code-block:: python
52
43
 
53
- sim = SilcamSimulator()
54
- sim.check_convergence()
55
- sim.synthesize()
56
- sim.process_synthetic_image()
57
- sim.plot()
58
- ```
44
+ from pyopia.simulator.silcam import SilcamSimulator
59
45
 
60
- '''
46
+ sim = SilcamSimulator()
47
+ sim.check_convergence()
48
+ sim.synthesize()
49
+ sim.process_synthetic_image()
50
+ sim.plot()
51
+
52
+ '''
53
+ def __init__(self, total_volume_concentration=1000,
54
+ d50=1000,
55
+ MinD=10,
56
+ PIX_SIZE=28,
57
+ PATH_LENGTH=40,
58
+ imx=2048,
59
+ imy=2448,
60
+ nims=50):
61
61
  self.total_volume_concentration = total_volume_concentration
62
62
  self.d50 = d50
63
63
  self.MinD = MinD
@@ -97,7 +97,7 @@ class SilcamSimulator():
97
97
  '''Check statistical convergence of randomly selected size distributions
98
98
  over the `nims`number of images
99
99
 
100
- Attributes added by method
100
+ Parameters
101
101
  ----------
102
102
  data['volume_distribution'] : array
103
103
  volume distribution of shape (nims, dias)
@@ -164,7 +164,7 @@ class SilcamSimulator():
164
164
  def synthesize(self):
165
165
  '''Synthesize an image and measure droplets
166
166
 
167
- Attributes added by method
167
+ Parameters
168
168
  ----------
169
169
  data['synthetic_image_data']['image'] : array
170
170
  synthetic image
@@ -205,7 +205,7 @@ class SilcamSimulator():
205
205
  def process_synthetic_image(self):
206
206
  '''Put the synthetic image `data['synthetic_image_data']['image']` through a basic pyopia processing pipeline
207
207
 
208
- Attributes added by method
208
+ Parameters
209
209
  ----------
210
210
  data['synthetic_image_data']['pyopia_processed_volume_distribution'] : array
211
211
  pyopia processed volume distribution associated with `dias`size classes
@@ -1 +0,0 @@
1
- __version__ = '2.4.2'
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