Skip to content

Commit 26c5ab0

Browse files
committed
typo fix in src
1 parent fcc5f3e commit 26c5ab0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="rasteret",
11-
version="0.1.7",
11+
version="0.1.8",
1212
author="Sidharth Subramaniam",
1313
author_email="sid@terrafloww.com",
1414
description="Fast and efficient access to Cloud-Optimized GeoTIFFs (COGs)",

src/rasteret/stac/indexer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ def __init__(
3030
self,
3131
data_source: str,
3232
stac_api: str,
33-
output_dir: Optional[Path] = None,
33+
workspace_dir: Optional[Path] = None,
3434
name: Optional[str] = None,
3535
cloud_provider: Optional[CloudProvider] = None,
3636
cloud_config: Optional[CloudConfig] = None,
3737
max_concurrent: int = 50,
3838
):
3939
self.data_source = data_source
4040
self.stac_api = stac_api
41-
self.output_dir = output_dir
41+
self.workspace_dir = workspace_dir
4242
self.cloud_provider = cloud_provider
4343
self.cloud_config = cloud_config
4444
self.name = name
@@ -211,9 +211,9 @@ async def build_index(
211211
)
212212

213213
# Optionally write to disk
214-
if self.output_dir:
215-
logger.info(f"Saving collection to {self.output_dir}")
216-
collection.save_to_parquet(self.output_dir)
214+
if self.workspace_dir:
215+
logger.info(f"Saving collection to {self.workspace_dir}")
216+
collection.save_to_parquet(self.workspace_dir)
217217

218218
logger.info("Index creation completed successfully")
219219
return collection

src/rasteret/tests/test_stac_indexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async def test_index_creation(self, mock_pystac, mock_parser):
105105
indexer = StacToGeoParquetIndexer(
106106
data_source="test-source",
107107
stac_api="https://test-stac.com",
108-
output_dir=Path("/tmp/test_output"),
108+
workspace_dir=Path("/tmp/test_output"),
109109
)
110110

111111
collection = await indexer.build_index(

0 commit comments

Comments
 (0)