From 8fca31e06596c7046b572830d91535800836c977 Mon Sep 17 00:00:00 2001 From: mathleur Date: Thu, 19 Sep 2024 16:40:54 +0100 Subject: [PATCH 1/2] remove bug --- .../datacube_mappers/mapper_types/local_regular.py | 1 - 1 file changed, 1 deletion(-) diff --git a/polytope/datacube/transformations/datacube_mappers/mapper_types/local_regular.py b/polytope/datacube/transformations/datacube_mappers/mapper_types/local_regular.py index 8ae8d545..44d46998 100644 --- a/polytope/datacube/transformations/datacube_mappers/mapper_types/local_regular.py +++ b/polytope/datacube/transformations/datacube_mappers/mapper_types/local_regular.py @@ -25,7 +25,6 @@ def __init__(self, base_axis, mapped_axes, resolution, local_area=[]): self._axis_reversed = {mapped_axes[0]: True, mapped_axes[1]: False} self._first_axis_vals = self.first_axis_vals() self.compressed_grid_axes = [self._mapped_axes[1]] - self.md5_hash = md5_hash.get(resolution, None) def first_axis_vals(self): first_ax_vals = [self._first_axis_max - i * self._first_deg_increment for i in range(self.first_resolution + 1)] From f622f6f6281b7ef940f239d4edaf23c22b490884 Mon Sep 17 00:00:00 2001 From: mathleur Date: Thu, 19 Sep 2024 16:43:35 +0100 Subject: [PATCH 2/2] clean up --- polytope/datacube/transformations/datacube_transformations.py | 1 - polytope/engine/hullslicer.py | 1 - 2 files changed, 2 deletions(-) diff --git a/polytope/datacube/transformations/datacube_transformations.py b/polytope/datacube/transformations/datacube_transformations.py index 34af2255..4212d7dd 100644 --- a/polytope/datacube/transformations/datacube_transformations.py +++ b/polytope/datacube/transformations/datacube_transformations.py @@ -14,7 +14,6 @@ def create_transform(name, transformation_type_key, transformation_options): file_name = ".datacube_" + transformation_file_name module = import_module("polytope.datacube.transformations" + file_name + file_name) constructor = getattr(module, transformation_type) - # transformation_type_option = transformation_options[transformation_type_key] transformation_type_option = transformation_options new_transformation = deepcopy(constructor(name, transformation_type_option)) diff --git a/polytope/engine/hullslicer.py b/polytope/engine/hullslicer.py index 20257bba..8d3df84a 100644 --- a/polytope/engine/hullslicer.py +++ b/polytope/engine/hullslicer.py @@ -201,7 +201,6 @@ def remove_compressed_axis_in_union(self, polytopes): for p in polytopes: if p.is_in_union: for axis in p.axes(): - # if axis in self.compressed_axes: if axis == self.compressed_axes[-1]: self.compressed_axes.remove(axis)