ellipsis 3.2.1__py3-none-any.whl → 3.2.3__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.

Potentially problematic release.


This version of ellipsis might be problematic. Click here for more details.

ellipsis/__init__.py CHANGED
@@ -6,7 +6,7 @@ from ellipsis import user
6
6
  from ellipsis import path
7
7
  from ellipsis import util
8
8
  from ellipsis import compute
9
- __version__ = '3.2.1'
9
+ __version__ = '3.2.3'
10
10
 
11
11
 
12
12
 
@@ -1 +1 @@
1
- from ellipsis.compute.root import createCompute, listComputes, execute, terminatecompute, terminateAll, addToLayer
1
+ from ellipsis.compute.root import createCompute, listComputes, execute, terminateCompute, terminateAll, addToLayer
ellipsis/compute/root.py CHANGED
@@ -79,7 +79,7 @@ def parseResults(r):
79
79
 
80
80
  return results
81
81
 
82
- def terminatecompute(computeId, token, awaitTillTerminated = True):
82
+ def terminateCompute(computeId, token, awaitTillTerminated = True):
83
83
  computeId = sanitize.validUuid('computeId', computeId, True)
84
84
  token = sanitize.validString('token', token, True)
85
85
  sanitize.validBool('awaitTillTerminated',awaitTillTerminated, True)
@@ -145,13 +145,13 @@ def addToLayer(response, pathId, timestampId, token):
145
145
  token = sanitize.validString('token', token, True)
146
146
 
147
147
  for url in response:
148
- memfile = downloadFile(url, filePath, token)
148
+ memfile = downloadFile(url, token)
149
149
  addFile(pathId = pathId, timestampId=timestampId, token = token, fileFormat='tif', memFile=memfile, name='out.tif')
150
150
  activate(pathId=pathId, timestampId=timestampId, token=token)
151
151
 
152
152
 
153
153
 
154
- def downloadFile(url, filePath, token):
154
+ def downloadFile(url, token):
155
155
  memfile = BytesIO()
156
156
  apiManager.download(url = url, filePath='', memfile=memfile, token = token)
157
157
  memfile.seek(0)
@@ -329,8 +329,8 @@ def getRaster(pathId, timestampId, extent, token = None, showProgress = True, ep
329
329
  y_index = tileY - y1_osm
330
330
 
331
331
  r = iterate(fetch, 0, tileX, tileY)
332
+ r_total[0:r.shape[0],y_index*w:(y_index+1)*w,x_index*w:(x_index+1)*w] = r
332
333
 
333
- r_total[:,y_index*w:(y_index+1)*w,x_index*w:(x_index+1)*w] = r
334
334
  I = I + 1
335
335
  if showProgress:
336
336
  loadingBar(I, len(tiles))
@@ -381,6 +381,7 @@ def analyse(pathId, timestampIds, geometry, returnType= 'all', approximate=True,
381
381
  return r
382
382
 
383
383
 
384
+
384
385
  def add(pathId, token, description= None, date ={'from': datetime.datetime.now(), 'to': datetime.datetime.now()}):
385
386
 
386
387
 
ellipsis/util/root.py CHANGED
@@ -21,8 +21,8 @@ import multiprocessing
21
21
  import warnings
22
22
  import uuid
23
23
  import shapely
24
- from shapely.ops import cascaded_union
25
24
 
25
+ from io import BytesIO
26
26
 
27
27
  from ellipsis import sanitize
28
28
  from rasterio.warp import reproject as warp, Resampling, calculate_default_transform
@@ -487,7 +487,7 @@ def cut(sh, bounds, tile, chosen):
487
487
  collections = np.array(['collection' in str(type(x)) for x in sh_intersects['geometry']])
488
488
  geometryCollections = sh_intersects['geometry'][collections].values
489
489
 
490
- newGeometries = [ cascaded_union([geometry for geometry in collection if chosen in str(type(geometry))]) for collection in geometryCollections ]
490
+ newGeometries = [ shapely.ops.cascaded_union([geometry for geometry in collection if chosen in str(type(geometry))]) for collection in geometryCollections ]
491
491
 
492
492
  sh_intersects['geometry'][collections] = newGeometries
493
493
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ellipsis
3
- Version: 3.2.1
3
+ Version: 3.2.3
4
4
  Summary: Package to interact with the Ellipsis API
5
5
  Home-page: https://github.com/ellipsis-drive-internal/python-package
6
6
  Author: Daniel van der Maas
@@ -11,24 +11,24 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.6
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: pandas
14
+ Requires-Dist: Fiona
15
15
  Requires-Dist: Pillow
16
- Requires-Dist: matplotlib
16
+ Requires-Dist: Shapely
17
+ Requires-Dist: dill
17
18
  Requires-Dist: geopandas
18
- Requires-Dist: pyproj
19
+ Requires-Dist: geopy
20
+ Requires-Dist: imagecodecs
19
21
  Requires-Dist: imageio
22
+ Requires-Dist: matplotlib
20
23
  Requires-Dist: numpy
21
- Requires-Dist: imagecodecs
24
+ Requires-Dist: pandas
25
+ Requires-Dist: pygltflib
26
+ Requires-Dist: pyproj
27
+ Requires-Dist: rasterio
22
28
  Requires-Dist: requests
23
29
  Requires-Dist: requests-toolbelt
24
- Requires-Dist: rasterio
25
- Requires-Dist: Shapely
26
- Requires-Dist: geopy
27
30
  Requires-Dist: scikit-image
28
- Requires-Dist: Fiona
29
- Requires-Dist: pygltflib
30
31
  Requires-Dist: tifffile
31
- Requires-Dist: dill
32
32
 
33
33
  # Ellipsis Drive Python Package
34
34
 
@@ -1,12 +1,12 @@
1
- ellipsis/__init__.py,sha256=-Xy1_i1cnwMfp6HBcWbfwqRb43Ho-SWJ8WSgQ04-UAs,237
1
+ ellipsis/__init__.py,sha256=HIFPMdYQQE4ad73-VzjQhkZ-Xif4ByuPRfOxTCdrAws,237
2
2
  ellipsis/apiManager.py,sha256=iX6XFwilMfuCQYioAmgRgReL8W63FUBr3UC506ucIF4,5603
3
3
  ellipsis/sanitize.py,sha256=VuTPjHAUNCGUaOzKU2ojloiEN8kPhm53fIjbk6E9IEg,10597
4
4
  ellipsis/account/__init__.py,sha256=jTmwL9HVS27vAHPC_2a98RQJWbpSKBN4ptiXpY0qJgk,101
5
5
  ellipsis/account/root.py,sha256=p8AehZQizaPlpGdFB5RsMduyUF4ynN0cGDz41nIxjYM,1942
6
6
  ellipsis/account/accessToken/__init__.py,sha256=ivwhK1eC4g74PAKaeTReb1QhIpKXyvmfdqZV6wDY-EY,66
7
7
  ellipsis/account/accessToken/root.py,sha256=TYo8wTyWyzytaqOTsuQC-Vn3y7BhYMC88EItZafpISA,1281
8
- ellipsis/compute/__init__.py,sha256=D_PEEIfNar00N85LUF4m1p9R4icrnAktJP_26PoAPqA,115
9
- ellipsis/compute/root.py,sha256=Ec5BgrfGDV_cKN-3RpMVLJqRv9mk1kKRRggbxKmsV1Y,5342
8
+ ellipsis/compute/__init__.py,sha256=zcjm8GX1kSi5PEK5CXsR3wc2wxBdy3EIMo_y1sFEguQ,115
9
+ ellipsis/compute/root.py,sha256=4FTcMDQARJuRZgFvo3Sfk_3Z3rpy737JvH0fsxUG-E8,5324
10
10
  ellipsis/path/__init__.py,sha256=NzdcTpXpicdrBWLgsFP6WY7ARIBKUFnkwa5VuB1Qdpc,506
11
11
  ellipsis/path/root.py,sha256=GqiYjAkdSchkQf1NzcSFZvBrmoQir7K2fqmZosqghFM,7953
12
12
  ellipsis/path/bookmark/__init__.py,sha256=vNrqGcWl5MN_xVAiClP6W6NilmsV-fqYOnJukbYcNwc,56
@@ -35,7 +35,7 @@ ellipsis/path/raster/root.py,sha256=-y0SEukHEYUDvyJyDI1x7gtcDm-Wum_Ze7ekSYJr6O4,
35
35
  ellipsis/path/raster/style/__init__.py,sha256=mxlqVtSd2dsKai3DAVQjtNsh2KnTrZVyF8loRwUNT7E,61
36
36
  ellipsis/path/raster/style/root.py,sha256=YFQlGTdgjpwXn4h0ug7LrQZFLmRp2bdJN71A0iqZRFo,1627
37
37
  ellipsis/path/raster/timestamp/__init__.py,sha256=brmFXg69CKRcWaAfPbxWfsvHvnn5q8GBQhVzUTVb4_w,842
38
- ellipsis/path/raster/timestamp/root.py,sha256=JxMjB834jVHYsjA9KeIjUttvf9K5S8zHI44iC03cdhQ,17507
38
+ ellipsis/path/raster/timestamp/root.py,sha256=6fGels-BtxWpF6EarxWni-AHK-5r2kb7fqVUFEnLNY4,17519
39
39
  ellipsis/path/raster/timestamp/util.py,sha256=eupFFSBp5CaTDIRg6DYnZnfWY61h81JZ7c15NdJ-j5E,2580
40
40
  ellipsis/path/raster/timestamp/file/__init__.py,sha256=Ln9_dQ4-PMwb5VP--Qh09IV5zmr-47RShpe0-f_NVh4,97
41
41
  ellipsis/path/raster/timestamp/file/root.py,sha256=KD8E64eZtS62C-WCl3BTeVjsc08BaLXpuLwxfbmnTLI,4545
@@ -66,9 +66,9 @@ ellipsis/path/vector/timestamp/order/root.py,sha256=kknhHJSuj91WaRF-qzfovummHwpl
66
66
  ellipsis/user/__init__.py,sha256=um_b42pc2otFiQRGqMajcEtONQpC2ei4r-EY3j7bsfQ,43
67
67
  ellipsis/user/root.py,sha256=dsMK6wGBdeCmOd3YsbIv9cEcQ6tAiSGr0jmtBhQl5-0,484
68
68
  ellipsis/util/__init__.py,sha256=_sNBUXDKJVGffRyt93xdUrJ4gON651Sp-unr7LKVCEc,756
69
- ellipsis/util/root.py,sha256=Ts7DeaD_X7x-csmq5V2sa_hYrt1mCd59T7-NUQcWj3Y,23980
70
- ellipsis-3.2.1.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
71
- ellipsis-3.2.1.dist-info/METADATA,sha256=wehcxhDesgn_cQzN89hMbh36KVDaLSrDDTbmiI0GNA4,1842
72
- ellipsis-3.2.1.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
73
- ellipsis-3.2.1.dist-info/top_level.txt,sha256=eG8gfaVDyprKdb-dsGSh_lFMSa3DiZCsJFqze239RjA,9
74
- ellipsis-3.2.1.dist-info/RECORD,,
69
+ ellipsis/util/root.py,sha256=3pw-tXGTQC5PMUtpReJEA9rgyJZNlTM3uUISPz2Sq6Q,23976
70
+ ellipsis-3.2.3.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
71
+ ellipsis-3.2.3.dist-info/METADATA,sha256=hI6pIwOoWjIROT2Zbz3TEAsc8V-XhLvHKkZk4fEV-Ag,1842
72
+ ellipsis-3.2.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
73
+ ellipsis-3.2.3.dist-info/top_level.txt,sha256=eG8gfaVDyprKdb-dsGSh_lFMSa3DiZCsJFqze239RjA,9
74
+ ellipsis-3.2.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5