We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93033f commit 6e3f987Copy full SHA for 6e3f987
test/image/convert_b64.py
@@ -21,7 +21,8 @@
21
22
skipKeys = [
23
'geojson',
24
- 'layers'
+ 'layers',
25
+ 'range'
26
]
27
28
def arraysToB64(obj, newObj) :
@@ -48,8 +49,13 @@ def arraysToB64(obj, newObj) :
48
49
50
newObj[key] = newList
51
else :
- # skip converting arrays with 2 items or less
52
- if(arr.ndim == 1 and arr.shape[0] < 3) :
+ # In a real application one does not need to convert
53
+ # small arrays like those that only have 2 items.
54
+ # But here we convert 2 item array to test typed arrays
55
+ # in more places.
56
+
57
+ # skip converting arrays with 1 item or less
58
+ if(arr.ndim == 1 and arr.shape[0] < 2) :
59
newObj[key] = val
60
continue
61
0 commit comments