polytope-python 1.0.4__tar.gz → 1.0.5__tar.gz

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.
Files changed (57) hide show
  1. {polytope-python-1.0.4/polytope_python.egg-info → polytope-python-1.0.5}/PKG-INFO +1 -1
  2. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/backends/fdb.py +7 -6
  3. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/engine/hullslicer.py +1 -1
  4. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/options.py +3 -7
  5. polytope-python-1.0.5/polytope/version.py +1 -0
  6. {polytope-python-1.0.4 → polytope-python-1.0.5/polytope_python.egg-info}/PKG-INFO +1 -1
  7. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope_python.egg-info/requires.txt +1 -1
  8. {polytope-python-1.0.4 → polytope-python-1.0.5}/requirements.txt +1 -1
  9. polytope-python-1.0.4/polytope/version.py +0 -1
  10. {polytope-python-1.0.4 → polytope-python-1.0.5}/LICENSE +0 -0
  11. {polytope-python-1.0.4 → polytope-python-1.0.5}/MANIFEST.in +0 -0
  12. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/__init__.py +0 -0
  13. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/__init__.py +0 -0
  14. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/backends/__init__.py +0 -0
  15. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/backends/datacube.py +0 -0
  16. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/backends/mock.py +0 -0
  17. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/backends/xarray.py +0 -0
  18. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/datacube_axis.py +0 -0
  19. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/index_tree_pb2.py +0 -0
  20. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/tensor_index_tree.py +0 -0
  21. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/__init__.py +0 -0
  22. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_cyclic/__init__.py +0 -0
  23. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_cyclic/datacube_cyclic.py +0 -0
  24. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/__init__.py +0 -0
  25. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/datacube_mappers.py +0 -0
  26. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/mapper_types/__init__.py +0 -0
  27. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/mapper_types/healpix.py +0 -0
  28. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/mapper_types/healpix_nested.py +0 -0
  29. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/mapper_types/local_regular.py +0 -0
  30. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/mapper_types/octahedral.py +0 -0
  31. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/mapper_types/reduced_ll.py +0 -0
  32. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_mappers/mapper_types/regular.py +0 -0
  33. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_merger/__init__.py +0 -0
  34. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_merger/datacube_merger.py +0 -0
  35. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_reverse/__init__.py +0 -0
  36. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_reverse/datacube_reverse.py +0 -0
  37. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_transformations.py +0 -0
  38. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_type_change/__init__.py +0 -0
  39. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/transformations/datacube_type_change/datacube_type_change.py +0 -0
  40. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/datacube/tree_encoding.py +0 -0
  41. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/engine/__init__.py +0 -0
  42. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/engine/engine.py +0 -0
  43. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/polytope.py +0 -0
  44. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/shapes.py +0 -0
  45. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/utility/__init__.py +0 -0
  46. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/utility/combinatorics.py +0 -0
  47. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/utility/exceptions.py +0 -0
  48. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/utility/geometry.py +0 -0
  49. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/utility/list_tools.py +0 -0
  50. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope/utility/profiling.py +0 -0
  51. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope_python.egg-info/SOURCES.txt +0 -0
  52. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope_python.egg-info/dependency_links.txt +0 -0
  53. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope_python.egg-info/not-zip-safe +0 -0
  54. {polytope-python-1.0.4 → polytope-python-1.0.5}/polytope_python.egg-info/top_level.txt +0 -0
  55. {polytope-python-1.0.4 → polytope-python-1.0.5}/pyproject.toml +0 -0
  56. {polytope-python-1.0.4 → polytope-python-1.0.5}/setup.cfg +0 -0
  57. {polytope-python-1.0.4 → polytope-python-1.0.5}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: polytope-python
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Polytope datacube feature extraction library
5
5
  Home-page: https://github.com/ecmwf/polytope
6
6
  Author: ECMWF
@@ -55,7 +55,7 @@ class FDBDatacube(Datacube):
55
55
  val = self._axes[name].type
56
56
  self._check_and_add_axes(options, name, val)
57
57
 
58
- logging.info("Polytope created axes for: " + str(self._axes.keys()))
58
+ logging.info("Polytope created axes for %s", self._axes.keys())
59
59
 
60
60
  def check_branching_axes(self, request):
61
61
  polytopes = request.polytopes()
@@ -85,12 +85,9 @@ class FDBDatacube(Datacube):
85
85
  self.get_fdb_requests(requests, fdb_requests, fdb_requests_decoding_info)
86
86
 
87
87
  # here, loop through the fdb requests and request from gj and directly add to the nodes
88
-
89
- # TODO: here, loop through the fdb requests and request from gj and directly add to the nodes
90
88
  complete_list_complete_uncompressed_requests = []
91
89
  complete_fdb_decoding_info = []
92
90
  for j, compressed_request in enumerate(fdb_requests):
93
- # TODO: can we do gj extract outside of this loop?
94
91
  uncompressed_request = {}
95
92
 
96
93
  # Need to determine the possible decompressed requests
@@ -109,7 +106,9 @@ class FDBDatacube(Datacube):
109
106
  complete_uncompressed_request = (uncompressed_request, compressed_request[1])
110
107
  complete_list_complete_uncompressed_requests.append(complete_uncompressed_request)
111
108
  complete_fdb_decoding_info.append(fdb_requests_decoding_info[j])
109
+ logging.debug("The requests we give GribJump are: %s", complete_list_complete_uncompressed_requests)
112
110
  output_values = self.gj.extract(complete_list_complete_uncompressed_requests)
111
+ logging.debug("GribJump outputs: %s", output_values)
113
112
  self.assign_fdb_output_to_nodes(output_values, complete_fdb_decoding_info)
114
113
 
115
114
  def get_fdb_requests(
@@ -124,7 +123,7 @@ class FDBDatacube(Datacube):
124
123
 
125
124
  # First when request node is root, go to its children
126
125
  if requests.axis.name == "root":
127
- logging.info("Looking for data for the tree: " + str([leaf.flatten() for leaf in requests.leaves]))
126
+ logging.info("Looking for data for the tree: %s", [leaf.flatten() for leaf in requests.leaves])
128
127
 
129
128
  for c in requests.children:
130
129
  self.get_fdb_requests(c, fdb_requests, fdb_requests_decoding_info)
@@ -162,7 +161,7 @@ class FDBDatacube(Datacube):
162
161
  for j, idx in enumerate(sub_lat_idxs):
163
162
  if idx not in seen_indices:
164
163
  # TODO: need to remove it from the values in the corresponding tree node
165
- # TODO: need to readjust the range we give to gj ... DONE?
164
+ # TODO: need to read just the range we give to gj ... DONE?
166
165
  original_fdb_node_range_vals.append(actual_fdb_node[0].values[j])
167
166
  seen_indices.add(idx)
168
167
  new_current_start_idx.append(idx)
@@ -325,6 +324,8 @@ class FDBDatacube(Datacube):
325
324
  request_ranges_with_idx = list(enumerate(interm_request_ranges))
326
325
  sorted_list = sorted(request_ranges_with_idx, key=lambda x: x[1][0])
327
326
  original_indices, sorted_request_ranges = zip(*sorted_list)
327
+ logging.debug("We sorted the request ranges into: %s", sorted_request_ranges)
328
+ logging.debug("The sorted and unique leaf node ranges are: %s", new_fdb_node_ranges)
328
329
  return (original_indices, sorted_request_ranges, new_fdb_node_ranges)
329
330
 
330
331
  def datacube_natural_indexes(self, axis, subarray):
@@ -91,7 +91,7 @@ class HullSlicer(Engine):
91
91
  flattened = {flattened_tuple[0]: flattened_tuple[1]}
92
92
 
93
93
  values = self.axis_values_between.get((flattened_tuple, ax.name, lower, upper, method), None)
94
- if self.axis_values_between.get((flattened_tuple, ax.name, lower, upper, method), None) is None:
94
+ if values is None:
95
95
  values = datacube.get_indices(flattened, ax, lower, upper, method)
96
96
  self.axis_values_between[(flattened_tuple, ax.name, lower, upper, method)] = values
97
97
  return values
@@ -56,13 +56,9 @@ class PolytopeOptions(ABC):
56
56
  alternative_axes: List[GribJumpAxesConfig] = []
57
57
 
58
58
  parser = argparse.ArgumentParser(allow_abbrev=False)
59
- config_options = Conflator(app_name="polytope", model=Config, cli=False, argparser=parser).load()
60
- config_options = Config(
61
- axis_config=options.get("axis_config", []),
62
- compressed_axes_config=options.get("compressed_axes_config", [""]),
63
- pre_path=options.get("pre_path", {}),
64
- alternative_axes=options.get("alternative_axes", []),
65
- )
59
+ conflator = Conflator(app_name="polytope", model=Config, cli=False, argparser=parser, **options)
60
+ config_options = conflator.load()
61
+
66
62
  axis_config = config_options.axis_config
67
63
  compressed_axes_config = config_options.compressed_axes_config
68
64
  pre_path = config_options.pre_path
@@ -0,0 +1 @@
1
+ __version__ = "1.0.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: polytope-python
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Polytope datacube feature extraction library
5
5
  Home-page: https://github.com/ecmwf/polytope
6
6
  Author: ECMWF
@@ -4,5 +4,5 @@ scipy
4
4
  sortedcontainers
5
5
  tripy
6
6
  xarray
7
- conflator@ git+https://github.com/ecmwf/conflator.git@main
7
+ conflator
8
8
  protobuf
@@ -4,5 +4,5 @@ scipy
4
4
  sortedcontainers
5
5
  tripy
6
6
  xarray
7
- conflator @ git+https://github.com/ecmwf/conflator.git@main
7
+ conflator
8
8
  protobuf
@@ -1 +0,0 @@
1
- __version__ = "1.0.4"
File without changes