polytope-python 2.0.2__py3-none-any.whl → 2.0.4__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,2 +1,2 @@
1
1
  # Do not change! Do not track in version control!
2
- __version__ = "2.0.2"
2
+ __version__ = "2.0.4"
@@ -5,7 +5,6 @@ from itertools import product
5
5
 
6
6
  from ...utility.exceptions import BadGridError, BadRequestError, GribJumpNoIndexError
7
7
  from ...utility.geometry import nearest_pt
8
- from .catalogue_helper import find_axes_from_qube
9
8
  from .datacube import Datacube, TensorIndexTree
10
9
 
11
10
 
@@ -42,6 +41,8 @@ class FDBDatacube(Datacube):
42
41
  self.gj = gj
43
42
  if len(alternative_axes) == 0:
44
43
  if self.use_catalogue:
44
+ from .catalogue_helper import find_axes_from_qube
45
+
45
46
  logging.info("Find GribJump axes for %s from catalogue", context)
46
47
  self.fdb_coordinates = find_axes_from_qube(partial_request)
47
48
  logging.info("Retrieved available GribJump axes for %s", context)
@@ -19,26 +19,23 @@ class ICONGridMapper(IrregularGridMapper):
19
19
  self._resolution = resolution
20
20
  self._axis_reversed = False
21
21
  self.compressed_grid_axes = [self._mapped_axes[1]]
22
+ self.uuid = mapper_options.uuid
22
23
  if md5_hash is not None:
23
24
  self.md5_hash = md5_hash
24
25
  else:
25
- self.md5_hash = _md5_hash.get(resolution, None)
26
+ self.md5_hash = _md5_hash.get(self.uuid, None)
26
27
 
27
- self.uuid = mapper_options.uuid
28
28
  self.is_irregular = True
29
29
 
30
30
  def grid_latlon_points(self):
31
31
 
32
32
  grid = Grid({"grid": self.uuid})
33
33
 
34
- print(grid)
35
-
36
34
  latlons = grid.to_latlons()
37
35
  latitudes = latlons[0]
38
36
  longitudes = latlons[1]
39
37
 
40
38
  points = list(zip(latitudes, longitudes))
41
- print(len(points))
42
39
  return points
43
40
 
44
41
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: polytope-python
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: Polytope datacube feature extraction library
5
5
  Author-email: "European Centre for Medium-Range Weather Forecasts (ECMWF)" <software.support@ecmwf.int>
6
6
  Maintainer-email: James Hawkes <James.Hawkes@ecmwf.int>, Mathilde Leuridan <Mathilde.Leuridan@ecmwf.int>
@@ -41,6 +41,10 @@ Requires-Dist: h5py; extra == "tests"
41
41
  Requires-Dist: earthkit-data; extra == "tests"
42
42
  Requires-Dist: matplotlib; extra == "tests"
43
43
  Requires-Dist: pyfdb; extra == "tests"
44
+ Provides-Extra: unstructured
45
+ Requires-Dist: eckit; extra == "unstructured"
46
+ Provides-Extra: catalogue
47
+ Requires-Dist: qubed; extra == "catalogue"
44
48
  Dynamic: license-file
45
49
 
46
50
 
@@ -1,5 +1,5 @@
1
1
  polytope_feature/__init__.py,sha256=1OP0y5Ubza4LaBUhegJvJe24u-8zZGrEzAgwPJVqZlk,58
2
- polytope_feature/_version.py,sha256=pdO7OfZZ_neo7AenfgNKypklECxxY-OHfsulaGWkJg0,72
2
+ polytope_feature/_version.py,sha256=A3FgX7aa-kgzCagfJCf8jDipQuQNsJOudNjTAyYScSI,72
3
3
  polytope_feature/options.py,sha256=-BGdmE9sSvBsQx_7ksZhoqwx_AyEsJTyE9yX48l7WzI,3287
4
4
  polytope_feature/polytope.py,sha256=-AaK9uH0iZW3hTLsESpF646MPSPxYD77yWb8uo6Qj8k,9758
5
5
  polytope_feature/shapes.py,sha256=Z7MI4vGlGM3ZiiTDq9v3PcmNPisOfscYvJw3MermCf4,16299
@@ -12,7 +12,7 @@ polytope_feature/datacube/tree_encoding.py,sha256=5Bk6x-NyDXd7BKPIsKuSJk7GETOcJg
12
12
  polytope_feature/datacube/backends/__init__.py,sha256=vQDvMYOAYS7YSmjKohLsBE9zQ7rJwwyT3A-zZJOIdbc,34
13
13
  polytope_feature/datacube/backends/catalogue_helper.py,sha256=SZaJ_UjQfgalsC9SvzdlXRZ9_0yoUEdBSEKrt96qkoY,1059
14
14
  polytope_feature/datacube/backends/datacube.py,sha256=a_BulEIlrf4Set4v1x2TeQFQRB-vQJFlJl3Ia3U-HgM,8236
15
- polytope_feature/datacube/backends/fdb.py,sha256=Rw42Y0yx7uxrkL0PcS39X1tVPheFkFWTrhRUHhZc1Fo,20221
15
+ polytope_feature/datacube/backends/fdb.py,sha256=JjfFRl3492V1Wv4gvN12KSkqcs-e5yYNuWDfT0J127g,20238
16
16
  polytope_feature/datacube/backends/mock.py,sha256=OASnzHjxCOLwrei7fTbTwwtLWQv1qDRkTLnhOCpTDNc,2214
17
17
  polytope_feature/datacube/backends/xarray.py,sha256=CAswFLA7otXD0-ZEk9cRECBFpzod-q7ADiQpLIXaoCw,6815
18
18
  polytope_feature/datacube/quadtree/quad_tree.py,sha256=KfGwA3rBVcAkU17Se2WjP9sD6sVi-0dEZx2_dutkg_k,6062
@@ -33,7 +33,7 @@ polytope_feature/datacube/transformations/datacube_mappers/mapper_types/reduced_
33
33
  polytope_feature/datacube/transformations/datacube_mappers/mapper_types/reduced_ll.py,sha256=tPLrW22UxRSdSmk-WteP3Fc_j8GPYQkq9LuCVZ11f7c,113330
34
34
  polytope_feature/datacube/transformations/datacube_mappers/mapper_types/regular.py,sha256=flITP2SD8OekRiThV7GCYJZbd6X0gA6a4szeUjaULjE,3511
35
35
  polytope_feature/datacube/transformations/datacube_mappers/mapper_types/irregular_mapper_types/__init__.py,sha256=bh0QAy3gr9hz5O8fu5tm6zI7ukI1UnQ-xszAiBYDNhg,33
36
- polytope_feature/datacube/transformations/datacube_mappers/mapper_types/irregular_mapper_types/icon.py,sha256=H8eFPql4zmEupoC4Q1tQjAvrezxZ7SPiLLzW6oUYmw8,1061
36
+ polytope_feature/datacube/transformations/datacube_mappers/mapper_types/irregular_mapper_types/icon.py,sha256=4UfnbGh2gYm43OSVq9Qc_uRymq1ooEhYayArDvvjn3o,1012
37
37
  polytope_feature/datacube/transformations/datacube_mappers/mapper_types/irregular_mapper_types/lambert_conformal.py,sha256=rdzdWdrO1TUy35mAT6El6NHwEwik6FDiaHLkB6qrbpQ,9617
38
38
  polytope_feature/datacube/transformations/datacube_mappers/mapper_types/irregular_mapper_types/unstructured.py,sha256=MU2Hxhk8wJNdXf_hbGtwDyDeRb_G6mOOYI9m8fXDQK4,823
39
39
  polytope_feature/datacube/transformations/datacube_merger/__init__.py,sha256=551OlMzHoR-AcuIbohQb3JOKuXobyR4ueV1rcfPorvg,31
@@ -57,8 +57,8 @@ polytope_feature/utility/exceptions.py,sha256=S76Rc0I6AzQXQgTOgFkSSjsVhvMtiQ17nb
57
57
  polytope_feature/utility/geometry.py,sha256=ntZogrkF3dpvMHaDReAUj2HXbGS-9LlNIYVJEpcpdw8,763
58
58
  polytope_feature/utility/list_tools.py,sha256=0WeWCRzm8jHdcM_1BPu1s-yr5D0UUmtQIVe4HHGfRJk,760
59
59
  polytope_feature/utility/profiling.py,sha256=PS8z7u6xyiBMlbcddOO5LS6ua8E1CJOzi3CtDaDv7p4,322
60
- polytope_python-2.0.2.dist-info/licenses/LICENSE,sha256=VtcDVlw8N6T2GAxlk6b-8OvqAG_V751y269wWcv_lEU,11379
61
- polytope_python-2.0.2.dist-info/METADATA,sha256=L3yjaF8htyGgJ2pH4w11EIIs4LG5uL5WHE_8oe3m4Nw,11015
62
- polytope_python-2.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
- polytope_python-2.0.2.dist-info/top_level.txt,sha256=4I919dNk-eQpuqcYHdiBpwAZcNrWeMPYuROzfpqmGRk,17
64
- polytope_python-2.0.2.dist-info/RECORD,,
60
+ polytope_python-2.0.4.dist-info/licenses/LICENSE,sha256=VtcDVlw8N6T2GAxlk6b-8OvqAG_V751y269wWcv_lEU,11379
61
+ polytope_python-2.0.4.dist-info/METADATA,sha256=9ShfFzlfON8_FbW0xd-mIT8cTowsAqkLIR-LBRoAwSM,11159
62
+ polytope_python-2.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
+ polytope_python-2.0.4.dist-info/top_level.txt,sha256=4I919dNk-eQpuqcYHdiBpwAZcNrWeMPYuROzfpqmGRk,17
64
+ polytope_python-2.0.4.dist-info/RECORD,,