PyOPIA 2.13.0__tar.gz → 2.13.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.
Files changed (34) hide show
  1. {pyopia-2.13.0 → pyopia-2.13.1}/PKG-INFO +1 -1
  2. pyopia-2.13.1/pyopia/__init__.py +1 -0
  3. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/exampledata.py +33 -6
  4. pyopia-2.13.0/pyopia/__init__.py +0 -1
  5. {pyopia-2.13.0 → pyopia-2.13.1}/.gitignore +0 -0
  6. {pyopia-2.13.0 → pyopia-2.13.1}/LICENSE +0 -0
  7. {pyopia-2.13.0 → pyopia-2.13.1}/README.md +0 -0
  8. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/auxillarydata.py +0 -0
  9. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/background.py +0 -0
  10. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/cf_metadata.json +0 -0
  11. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/classify.py +0 -0
  12. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/cli.py +0 -0
  13. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/dataexport/__init__.py +0 -0
  14. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/dataexport/ecotaxa.py +0 -0
  15. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/instrument/__init__.py +0 -0
  16. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/instrument/common.py +0 -0
  17. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/instrument/holo.py +0 -0
  18. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/instrument/silcam.py +0 -0
  19. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/instrument/uvp.py +0 -0
  20. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/io.py +0 -0
  21. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/metadata.py +0 -0
  22. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/pipeline.py +0 -0
  23. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/plotting.py +0 -0
  24. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/process.py +0 -0
  25. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/simulator/__init__.py +0 -0
  26. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/simulator/silcam.py +0 -0
  27. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/statistics.py +0 -0
  28. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/tests/__init__.py +0 -0
  29. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/tests/test_auxillarydata.py +0 -0
  30. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/tests/test_classify.py +0 -0
  31. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/tests/test_io.py +0 -0
  32. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/tests/test_notebooks.py +0 -0
  33. {pyopia-2.13.0 → pyopia-2.13.1}/pyopia/tests/test_pipeline.py +0 -0
  34. {pyopia-2.13.0 → pyopia-2.13.1}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyOPIA
3
- Version: 2.13.0
3
+ Version: 2.13.1
4
4
  Summary: A Python Ocean Particle Image Analysis toolbox.
5
5
  Project-URL: Repository, https://github.com/sintef/pyopia
6
6
  Project-URL: Documentation, https://pyopia.readthedocs.io
@@ -0,0 +1 @@
1
+ __version__ = "2.13.1"
@@ -10,14 +10,18 @@ logger = logging.getLogger()
10
10
 
11
11
 
12
12
  def get_classifier_database_from_pysilcam_blob(download_directory="./"):
13
- """Downloads a specified filename from the pysilcam.blob into the working dir. if it doesn't already exist
14
-
15
- only works for known filenames that are on this blob
13
+ """Downloads and unzips the silcam_database of labelled example images from pysilcam.blob
14
+ into the working dir. if it doesn't already exist
16
15
 
17
16
  Parameters
18
17
  ----------
19
- filename : string
20
- known filename on the blob
18
+ download_directory : string
19
+ directory to download and unzip the silcam_database.zip into. Defaults to "./"
20
+
21
+ Returns
22
+ -------
23
+ string
24
+ download_directory, the directory that the silcam_database.zip was downloaded and unzipped into
21
25
 
22
26
  """
23
27
  if os.path.exists(os.path.join(download_directory)):
@@ -47,6 +51,13 @@ def get_file_from_pysilcam_blob(filename, download_directory="./"):
47
51
  ----------
48
52
  filename : string
49
53
  known filename on the blob
54
+ download_directory : string
55
+ directory to download the file into. Defaults to "./"
56
+
57
+ Returns
58
+ -------
59
+ string
60
+ filename of the downloaded file
50
61
 
51
62
  """
52
63
  if os.path.exists(os.path.join(download_directory, filename)):
@@ -59,10 +70,16 @@ def get_file_from_pysilcam_blob(filename, download_directory="./"):
59
70
  def get_example_silc_image(download_directory="./"):
60
71
  """calls `get_file_from_pysilcam_blob` for a silcam iamge
61
72
 
73
+ Parameters
74
+ ----------
75
+ download_directory : string
76
+ directory to download the file into. Defaults to "./"
77
+
62
78
  Returns
63
79
  -------
64
80
  string
65
- filename
81
+ filename of the downloaded silcam image
82
+
66
83
  """
67
84
  filename = "D20181101T142731.838206.silc"
68
85
  if os.path.isfile(filename):
@@ -78,6 +95,11 @@ def get_example_model(download_directory="./"):
78
95
  Download from the pysilcam blob storage into the working dir.
79
96
  If the file exists, skip the download.
80
97
 
98
+ Parameters
99
+ ----------
100
+ download_directory : string
101
+ directory to download the file into. Defaults to "./"
102
+
81
103
  Returns
82
104
  -------
83
105
  string
@@ -97,6 +119,11 @@ def get_example_model(download_directory="./"):
97
119
  def get_example_hologram_and_background(download_directory="./"):
98
120
  """calls `get_file_from_pysilcam_blob` for a raw hologram, and its associated background image.
99
121
 
122
+ Parameters
123
+ ----------
124
+ download_directory : string
125
+ directory to download the file into. Defaults to "./"
126
+
100
127
  Returns
101
128
  -------
102
129
  string
@@ -1 +0,0 @@
1
- __version__ = "2.13.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