c2cwsgiutils 6.0.5.dev7__py3-none-any.whl → 6.0.5.dev11__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.
- c2cwsgiutils/acceptance/image.py +4 -1
- {c2cwsgiutils-6.0.5.dev7.dist-info → c2cwsgiutils-6.0.5.dev11.dist-info}/METADATA +1 -1
- {c2cwsgiutils-6.0.5.dev7.dist-info → c2cwsgiutils-6.0.5.dev11.dist-info}/RECORD +6 -6
- {c2cwsgiutils-6.0.5.dev7.dist-info → c2cwsgiutils-6.0.5.dev11.dist-info}/LICENSE +0 -0
- {c2cwsgiutils-6.0.5.dev7.dist-info → c2cwsgiutils-6.0.5.dev11.dist-info}/WHEEL +0 -0
- {c2cwsgiutils-6.0.5.dev7.dist-info → c2cwsgiutils-6.0.5.dev11.dist-info}/entry_points.txt +0 -0
c2cwsgiutils/acceptance/image.py
CHANGED
@@ -126,8 +126,8 @@ def check_image(
|
|
126
126
|
if generate_expected_image:
|
127
127
|
skimage.io.imsave(expected_filename, image_to_check)
|
128
128
|
return
|
129
|
+
skimage.io.imsave(result_filename, image_to_check)
|
129
130
|
if not os.path.isfile(expected_filename):
|
130
|
-
skimage.io.imsave(result_filename, image_to_check)
|
131
131
|
skimage.io.imsave(expected_filename, image_to_check)
|
132
132
|
assert False, "Expected image not found: " + expected_filename
|
133
133
|
expected = skimage.io.imread(expected_filename)
|
@@ -137,6 +137,9 @@ def check_image(
|
|
137
137
|
if mask is not None:
|
138
138
|
expected[mask] = [255, 255, 255]
|
139
139
|
|
140
|
+
assert (
|
141
|
+
expected.shape == image_to_check.shape
|
142
|
+
), f"Images have different shapes expected {expected.shape} != actual {image_to_check.shape}"
|
140
143
|
score, diff = skimage.metrics.structural_similarity(
|
141
144
|
expected, image_to_check, multichannel=True, full=True, channel_axis=2
|
142
145
|
)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
c2cwsgiutils/__init__.py,sha256=YHZ6OY8BvFrZAoBpbEWmAZ-60nqDer_CKHgY-LSHAKs,3986
|
2
2
|
c2cwsgiutils/acceptance/__init__.py,sha256=vjtpPfu0kbXUOYMx15Z8713IfPFZA9XnkUKkIFtVj_M,1500
|
3
3
|
c2cwsgiutils/acceptance/connection.py,sha256=WKD4yDDvOqpKTcwCn9cIK5W_AWxumGboe8Sel7ZeXHI,9146
|
4
|
-
c2cwsgiutils/acceptance/image.py,sha256=
|
4
|
+
c2cwsgiutils/acceptance/image.py,sha256=C5AhOCcP2AzJWueewuVBOAArmw09jKzlLXXh56RcC7g,7406
|
5
5
|
c2cwsgiutils/acceptance/package-lock.json,sha256=lEzM84lx2V_uAfPAThLsvE0N5uY89Dx3JzZQK0_7qVY,76668
|
6
6
|
c2cwsgiutils/acceptance/package.json,sha256=l674c6_4bUrkITsQAjwl7-fj24oSMrp61ZBLaACNacw,101
|
7
7
|
c2cwsgiutils/acceptance/print.py,sha256=j5K1c2Kn0eEnhgdbZNBVkdscK02pQhtPIh6lJzHMJcM,2323
|
@@ -60,8 +60,8 @@ c2cwsgiutils/stats_pyramid/_db_spy.py,sha256=ZGRdrI17Bdl3mzaLjfPyAaEW3KK8Pikrgi-
|
|
60
60
|
c2cwsgiutils/stats_pyramid/_pyramid_spy.py,sha256=P212MGGl2VV_7UU4AXZA-rOuF7ouaONRklZwpas2wc8,3209
|
61
61
|
c2cwsgiutils/templates/index.html.mako,sha256=zrdMxncl3PFwdg1TVDKAjH1CaXw1m7yr9dj8Hi7rYGw,1362
|
62
62
|
c2cwsgiutils/version.py,sha256=z4of1DDr6J7PDw4AUOz31Gp63khgXf3JfiIaoWUM-9I,2870
|
63
|
-
c2cwsgiutils-6.0.5.
|
64
|
-
c2cwsgiutils-6.0.5.
|
65
|
-
c2cwsgiutils-6.0.5.
|
66
|
-
c2cwsgiutils-6.0.5.
|
67
|
-
c2cwsgiutils-6.0.5.
|
63
|
+
c2cwsgiutils-6.0.5.dev11.dist-info/LICENSE,sha256=rM6IWxociA3daRkXnNLYOxGndT5fbs3BfVZCA2Xgt-g,1304
|
64
|
+
c2cwsgiutils-6.0.5.dev11.dist-info/METADATA,sha256=-eKJw2BnsCBhh71Y--b3YzW1M_NsmT8ZY2mU3gKAKn0,33568
|
65
|
+
c2cwsgiutils-6.0.5.dev11.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
66
|
+
c2cwsgiutils-6.0.5.dev11.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
|
67
|
+
c2cwsgiutils-6.0.5.dev11.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|