pyopenrivercam 0.8.8__py3-none-any.whl → 0.8.9__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyopenrivercam
3
- Version: 0.8.8
3
+ Version: 0.8.9
4
4
  Summary: pyorc: free and open-source image-based surface velocity and discharge.
5
5
  Author-email: Hessel Winsemius <winsemius@rainbowsensing.com>
6
6
  Requires-Python: >=3.9
@@ -1,4 +1,4 @@
1
- pyorc/__init__.py,sha256=xynVJQMf94pSaM-GTlHZAGLw-D2gujyIx5MfrPiz4KQ,523
1
+ pyorc/__init__.py,sha256=mvuksjtx7rr3dGsP3AIlI2DOsT-dK-WNkLnRv2hBqSA,523
2
2
  pyorc/const.py,sha256=Ia0KRkm-E1lJk4NxQVPDIfN38EBB7BKvxmwIHJrGPUY,2597
3
3
  pyorc/cv.py,sha256=CTv0TbbcKeSQmKsX8mdVDXpSkhKZmr8SgT20YXMvZ0s,49156
4
4
  pyorc/helpers.py,sha256=90TDtka0ydAydv3g5Dfc8MgtuSt0_9D9-HOtffpcBds,30636
@@ -12,7 +12,7 @@ pyorc/api/cross_section.py,sha256=un7_VFHMOpBM8FE7lQnZIsaxidnABzFWlyaDHIUfzoA,52
12
12
  pyorc/api/frames.py,sha256=QJfcftmh47nClw5yGsMULdJXEsAVzucseiLb4LbpVJU,23671
13
13
  pyorc/api/mask.py,sha256=HVag3RkMu4ZYQg_pIZFhiJYkBGYLVBxeefdmWvFTR-4,14371
14
14
  pyorc/api/orcbase.py,sha256=C23QTKOyxHUafyJsq_t7xn_BzAEvf4DDfzlYAopons8,4189
15
- pyorc/api/plot.py,sha256=Aa-t_9aL7ILDj_JIbXpGjwNn9ZkmonsDApwb3w-xwWY,30564
15
+ pyorc/api/plot.py,sha256=-rDmEccwpJXojCyBEKFCd8NpBwLhcZ8tsOq62n26zu4,30898
16
16
  pyorc/api/transect.py,sha256=KU0ZW_0NqYD4jeDxvuWJi7X06KqrcgO9afP7QmWuixA,14162
17
17
  pyorc/api/velocimetry.py,sha256=bfU_XPbUbrdBI2XGprzh_3YADbGHfy4OuS1oBlbLEEI,12047
18
18
  pyorc/api/video.py,sha256=lGD6bcV6Uu2u3zuGF_m3KxX2Cyp9k-YHUiXA42TOE3E,22458
@@ -27,8 +27,8 @@ pyorc/service/velocimetry.py,sha256=UFjxmq5Uhk8wnBLScAyTaVWTPTCnH9hJdKOYBFrGZ_Y,
27
27
  pyorc/velocimetry/__init__.py,sha256=lYM7oJZWxgJ2SpE22xhy7pBYcgkKFHMBHYmDvvMbtZk,148
28
28
  pyorc/velocimetry/ffpiv.py,sha256=MW_6fQ0vxRTA-HYwncgeWHGWiUQFSmM4unYxT7EfnEI,7372
29
29
  pyorc/velocimetry/openpiv.py,sha256=6BxsbXLzT4iEq7v08G4sOhVlYFodUpY6sIm3jdCxNMs,13149
30
- pyopenrivercam-0.8.8.dist-info/entry_points.txt,sha256=Cv_WI2Y6QLnPiNCXGli0gS4WAOAeMoprha1rAR3vdRE,44
31
- pyopenrivercam-0.8.8.dist-info/licenses/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
32
- pyopenrivercam-0.8.8.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
33
- pyopenrivercam-0.8.8.dist-info/METADATA,sha256=Ww1gmQfOwPQAcV2ZSbhZhNcVPgzNMK1iTq85VoRyfTE,11633
34
- pyopenrivercam-0.8.8.dist-info/RECORD,,
30
+ pyopenrivercam-0.8.9.dist-info/entry_points.txt,sha256=Cv_WI2Y6QLnPiNCXGli0gS4WAOAeMoprha1rAR3vdRE,44
31
+ pyopenrivercam-0.8.9.dist-info/licenses/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
32
+ pyopenrivercam-0.8.9.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
33
+ pyopenrivercam-0.8.9.dist-info/METADATA,sha256=8NK4zolq3oMRgMuTKCWZTypoLjzPcev_-it5frg8aac,11633
34
+ pyopenrivercam-0.8.9.dist-info/RECORD,,
pyorc/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """pyorc: free and open-source image-based surface velocity and discharge."""
2
2
 
3
- __version__ = "0.8.8"
3
+ __version__ = "0.8.9"
4
4
 
5
5
  from .api import CameraConfig, CrossSection, Frames, Transect, Velocimetry, Video, get_camera_config, load_camera_config # noqa
6
6
  from .project import * # noqa
pyorc/api/plot.py CHANGED
@@ -6,6 +6,8 @@ import functools
6
6
  import matplotlib.pyplot as plt
7
7
  import matplotlib.ticker as mticker
8
8
  import numpy as np
9
+ import warnings
10
+
9
11
  from matplotlib import colors, patheffects
10
12
 
11
13
  from pyorc import helpers
@@ -194,16 +196,22 @@ def _base_plot(plot_func):
194
196
  < ref._obj.transect.cross_section.z.max()
195
197
  )
196
198
  if check_low and check_high:
197
- ref._obj.transect.cross_section.plot_water_level(
198
- h=ref._obj.transect.h_a,
199
- length=2.0,
200
- linewidth=3.0,
201
- ax=ax,
202
- camera=True,
203
- swap_y_coords=True,
204
- color="r",
205
- label="water level",
206
- )
199
+ try:
200
+ ref._obj.transect.cross_section.plot_water_level(
201
+ h=ref._obj.transect.h_a,
202
+ length=2.0,
203
+ linewidth=3.0,
204
+ ax=ax,
205
+ camera=True,
206
+ swap_y_coords=True,
207
+ color="r",
208
+ label="water level",
209
+ )
210
+ except:
211
+ warnings.warn(
212
+ "Not able to find a unique location for plotting of water level",
213
+ stacklevel=2
214
+ )
207
215
 
208
216
  # draw some depth lines for better visual interpretation.
209
217
  depth_lines = ref._obj.transect.get_depth_perspective(h=ref._obj.transect.h_a)