PyOPIA 2.4.1__tar.gz → 2.4.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 (26) hide show
  1. {pyopia-2.4.1 → pyopia-2.4.2}/PKG-INFO +1 -1
  2. pyopia-2.4.2/pyopia/__init__.py +1 -0
  3. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/simulator/silcam.py +27 -1
  4. pyopia-2.4.2/pyopia/tests/__init__.py +1 -0
  5. pyopia-2.4.1/pyopia/__init__.py +0 -1
  6. {pyopia-2.4.1 → pyopia-2.4.2}/LICENSE +0 -0
  7. {pyopia-2.4.1 → pyopia-2.4.2}/README.md +0 -0
  8. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/background.py +0 -0
  9. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/classify.py +0 -0
  10. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/cli.py +0 -0
  11. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/exampledata.py +0 -0
  12. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/instrument/__init__.py +0 -0
  13. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/instrument/common.py +0 -0
  14. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/instrument/holo.py +0 -0
  15. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/instrument/silcam.py +0 -0
  16. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/instrument/uvp.py +0 -0
  17. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/io.py +0 -0
  18. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/pipeline.py +0 -0
  19. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/plotting.py +0 -0
  20. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/process.py +0 -0
  21. {pyopia-2.4.1/pyopia/tests → pyopia-2.4.2/pyopia/simulator}/__init__.py +0 -0
  22. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/statistics.py +0 -0
  23. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/tests/test_classify.py +0 -0
  24. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/tests/test_notebooks.py +0 -0
  25. {pyopia-2.4.1 → pyopia-2.4.2}/pyopia/tests/test_pipeline.py +0 -0
  26. {pyopia-2.4.1 → pyopia-2.4.2}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyOPIA
3
- Version: 2.4.1
3
+ Version: 2.4.2
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.2'
@@ -94,6 +94,18 @@ class SilcamSimulator():
94
94
  return (a / n) * (x / n) ** (a - 1) * np.exp(-(x / n) ** a)
95
95
 
96
96
  def check_convergence(self):
97
+ '''Check statistical convergence of randomly selected size distributions
98
+ over the `nims`number of images
99
+
100
+ Attributes added by method
101
+ ----------
102
+ data['volume_distribution'] : array
103
+ volume distribution of shape (nims, dias)
104
+ data['cumulative_volume_concentration'] : float
105
+ cumulative mean volume concentration of length `nims`
106
+ data['cumulative_d50'] : float
107
+ cumulative average d50 of length `nims`
108
+ '''
97
109
  self.data['weibull_x'] = np.linspace(np.min(self.dias), np.max(self.dias), 10000)
98
110
  self.data['weibull_y'] = self.weibull_distribution(self.data['weibull_x'])
99
111
 
@@ -150,7 +162,14 @@ class SilcamSimulator():
150
162
  self.dias)
151
163
 
152
164
  def synthesize(self):
153
- '''synthesize an image and measure droplets
165
+ '''Synthesize an image and measure droplets
166
+
167
+ Attributes added by method
168
+ ----------
169
+ data['synthetic_image_data']['image'] : array
170
+ synthetic image
171
+ data['synthetic_image_data']['input_volume_distribution'] : array
172
+ Volume distribution used to create the synthetic image
154
173
  '''
155
174
  nc = int(sum(self.data['number_distribution'])) # number concentration
156
175
 
@@ -184,6 +203,13 @@ class SilcamSimulator():
184
203
  self.data['synthetic_image_data']['input_volume_distribution'] = log_vd
185
204
 
186
205
  def process_synthetic_image(self):
206
+ '''Put the synthetic image `data['synthetic_image_data']['image']` through a basic pyopia processing pipeline
207
+
208
+ Attributes added by method
209
+ ----------
210
+ data['synthetic_image_data']['pyopia_processed_volume_distribution'] : array
211
+ pyopia processed volume distribution associated with `dias`size classes
212
+ '''
187
213
  pipeline_config = {
188
214
  'general': {
189
215
  'raw_files': '',
@@ -0,0 +1 @@
1
+ # -*- coding: utf-8 -*-
@@ -1 +0,0 @@
1
- __version__ = '2.4.1'
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