Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mathleur committed Sep 9, 2024
1 parent 0b88abc commit a04776b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions polytope/datacube/backends/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ def _create_axes(self, name, values, transformation_type_key, transformation_opt
for axis_name in final_axis_names:
self.fake_axes.append(axis_name)
# if axis does not yet exist, create it
print("FIRST")
print(axis_name)
print(transformation.change_val_type(axis_name, values))
if transformation.change_val_type(axis_name, values) is not None:
print("HERE?")
print(axis_name)
# first need to change the values so that we have right type
values = transformation.change_val_type(axis_name, values)
if self._axes is None or axis_name not in self._axes.keys():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ def transformation_axes_final(self):
def change_val_type(self, axis_name, values):
return_idx = [self._final_transformation.transform_type(val) for val in values]
if None in return_idx:
print("NOW")
print(axis_name)
print(return_idx)
print("NOW NOW")
print(any(return_idx))
return None
return_idx.sort()
return return_idx
Expand Down
1 change: 0 additions & 1 deletion polytope/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class Config(ConfigModel):
class PolytopeOptions(ABC):
@staticmethod
def get_polytope_options(options):

parser = argparse.ArgumentParser(allow_abbrev=False)
conflator = Conflator(app_name="polytope", model=Config, cli=False, argparser=parser, **options)
config_options = conflator.load()
Expand Down

0 comments on commit a04776b

Please sign in to comment.