diff --git a/tiled/adapters/arrow.py b/tiled/adapters/arrow.py index 0f7339cbd..ff6ca17a8 100644 --- a/tiled/adapters/arrow.py +++ b/tiled/adapters/arrow.py @@ -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 = [ diff --git a/tiled/client/xarray.py b/tiled/client/xarray.py index 471318dc1..ce8a83b02 100644 --- a/tiled/client/xarray.py +++ b/tiled/client/xarray.py @@ -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 ( @@ -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), @@ -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(), @@ -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"] )