From 5219576ed5124f3e9b3c205d8ffa2ca1e4f16876 Mon Sep 17 00:00:00 2001 From: Seher Karakuzu Date: Fri, 8 Mar 2024 09:59:54 -0500 Subject: [PATCH] cleaned the files --- tiled/adapters/csv.py | 3 --- tiled/catalog/adapter.py | 1 - tiled/client/container.py | 11 ----------- tiled/client/register.py | 4 ---- 4 files changed, 19 deletions(-) diff --git a/tiled/adapters/csv.py b/tiled/adapters/csv.py index 8d90f5f9b..e9397cf73 100644 --- a/tiled/adapters/csv.py +++ b/tiled/adapters/csv.py @@ -68,9 +68,6 @@ def __init__( specs=None, access_policy=None, ): - #if not isinstance(data_uris, list): - # data_uris = [data_uris] - # TODO Store data_uris instead and generalize to non-file schemes. self._partition_paths = [path_from_uri(uri) for uri in data_uris] self._metadata = metadata or {} diff --git a/tiled/catalog/adapter.py b/tiled/catalog/adapter.py index f1a17c85b..8f2eb066d 100644 --- a/tiled/catalog/adapter.py +++ b/tiled/catalog/adapter.py @@ -915,7 +915,6 @@ async def keys_range(self, offset, limit): async def items_range(self, offset, limit): if self.data_sources: - print("HEREEEE TYPE OF GET ADAPTOR", self.get_adapter(), type(self.get_adapter())) return it.islice( (await self.get_adapter()).items(), offset, diff --git a/tiled/client/container.py b/tiled/client/container.py index 357b36b91..a0a140fb5 100644 --- a/tiled/client/container.py +++ b/tiled/client/container.py @@ -594,17 +594,6 @@ def new( write_dataframe write_coo_array """ - #print("WHAT THE DATASOURCE", type(data_sources), data_sources) - - - # There is some issue about type of data_sources. In the test it came out as tuple of lists - #if isinstance(data_sources, tuple): - # print("TYPE OF DATASOURCES", type(data_sources)) - # data_sources = data_sources[0] - - #for data_source in data_sources: - # print("WHAT THE DATASOURCE", type(data_source), data_source.assets) - self._cached_len = None metadata = metadata or {} specs = specs or [] diff --git a/tiled/client/register.py b/tiled/client/register.py index 55da0510e..68b5bf661 100644 --- a/tiled/client/register.py +++ b/tiled/client/register.py @@ -280,7 +280,6 @@ async def register_single_item( mimetype = resolve_mimetype( item, settings.mimetypes_by_file_ext, settings.mimetype_detection_hook ) - print("EVER HEREEEEEEEEEEEEEE", f"{mimetype=}") if mimetype is None: unhandled_items.append(item) if not is_directory: @@ -304,11 +303,8 @@ async def register_single_item( key = settings.key_from_filename(item.name) if hasattr(adapter, "generate_data_sources"): # Let the Adapter describe the DataSouce(s). - print("XXXXXXXXXXXXXXXbefore ") data_sources = adapter.generate_data_sources(mimetype, dict_or_none, item, is_directory) - print("XXXXXXXXXXXXXXXXXafter ") else: - print(" XXXXXXXXXXXXXXXxin the else") # Back-compat: Assume one Asset passed as a # parameter named 'data_uri'. data_sources = [