Skip to content

Commit

Permalink
removed prints
Browse files Browse the repository at this point in the history
  • Loading branch information
skarakuzu committed Jan 15, 2025
1 parent 75b2ddc commit f649ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tiled/adapters/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def init_storage(
data_uri = str(storage.get("filesystem")) + "".join(
f"/{quote_plus(segment)}" for segment in path_parts
)
print("uri", data_uri)

directory = path_from_uri(data_uri)
directory.mkdir(parents=True, exist_ok=True)
assets = [
Expand Down
6 changes: 1 addition & 5 deletions tiled/client/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _build_arrays(self, variables, optimize_wide_table):
array_structure = array_structures[name]
shape = array_structure.shape
spec_names = set(spec.name for spec in array_client.specs)
print("spec_names", spec_names)

if optimize_wide_table and (
(not shape) # empty
or (
Expand All @@ -74,7 +74,6 @@ def _build_arrays(self, variables, optimize_wide_table):
)
):
if "xarray_coord" in spec_names:
print("hello 1")
coords[name] = (
array_client.dims,
coords_fetcher.register(name, array_client, array_structure),
Expand All @@ -93,7 +92,6 @@ def _build_arrays(self, variables, optimize_wide_table):
)
else:
if "xarray_coord" in spec_names:
print("hello 2")
coords[name] = (
array_client.dims,
array_client.read(),
Expand All @@ -114,8 +112,6 @@ def _build_arrays(self, variables, optimize_wide_table):

def read(self, variables=None, *, optimize_wide_table=True):
data_vars, coords = self._build_arrays(variables, optimize_wide_table)
print("corrds", coords)
print("datavars", data_vars)
return xarray.Dataset(
data_vars=data_vars, coords=coords, attrs=self.metadata["attrs"]
)
Expand Down

0 comments on commit f649ccb

Please sign in to comment.