Skip to content

Commit

Permalink
renaming post_collection to post_stac_collection
Browse files Browse the repository at this point in the history
  • Loading branch information
dchandan committed Aug 24, 2023
1 parent 6e500d8 commit f93b10d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions STACpopulator/populator_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from STACpopulator.input import GenericLoader
from STACpopulator.stac_utils import (
create_stac_collection,
post_collection,
post_stac_collection,
post_stac_item,
stac_collection_exists,
stac_host_reachable,
Expand Down Expand Up @@ -86,7 +86,7 @@ def ingest(self) -> None:
if not stac_collection_exists(self.stac_host, self.collection_id):
LOGGER.info(f"Creating collection '{self.collection_name}'")
pystac_collection = create_stac_collection(self.collection_id, self._collection_info)
post_collection(self.stac_host, pystac_collection)
post_stac_collection(self.stac_host, pystac_collection)
LOGGER.info("Collection successfully created")
else:
LOGGER.info(f"Collection '{self.collection_name}' already exists")
Expand Down
2 changes: 1 addition & 1 deletion STACpopulator/stac_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def create_stac_collection(collection_id: str, collection_info: dict[str, Any])
return collection.to_dict()


def post_collection(stac_host: str, json_data: dict[str, Any]) -> None:
def post_stac_collection(stac_host: str, json_data: dict[str, Any]) -> None:
"""
Post a STAC collection.
Expand Down

0 comments on commit f93b10d

Please sign in to comment.