Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update references to collections directory #135

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ When submitting STAC records to ingest, a pull request can be made with the data

### `collections/`

The `ingestion-data/collections/` directory holds json files representing the data for VEDA collection metadata (STAC).
The `ingestion-data/production/collections/` directory holds json files representing the data for VEDA collection metadata (STAC).

Should follow the following format:

Expand Down
42 changes: 24 additions & 18 deletions transformation-scripts/collection-and-item-ingest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,23 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The following cell retrieves collection JSON files from `/ingestion-data/collections/` and save collectionIds to a list."
"Set the testing mode to `True` when testing and `False` otherwise. When the testing mode is `True`, the notebook will be set to run against `dev` endpoints."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"testing_mode = True"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The following cell retrieves collection JSON files from the `collections` directory and save collectionIds to a list."
]
},
{
Expand All @@ -64,7 +80,13 @@
" \"combined_CMIP6_daily_GISS-E2-1-G_tas_kerchunk_DEMO\",\n",
"]\n",
"\n",
"json_file_paths = glob.glob(\"../ingestion-data/collections/*.json\")\n",
"local_collections_path = (\n",
" \"../ingestion-data/staging/collections/*.json\"\n",
" if testing_mode\n",
" else \"../ingestion-data/production/collections/*.json\"\n",
")\n",
"\n",
"json_file_paths = glob.glob(local_collections_path)\n",
"filtered_list = [\n",
" item\n",
" for item in json_file_paths\n",
Expand All @@ -81,22 +103,6 @@
"]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Set the testing mode to `True` when testing and `False` otherwise. When the testing mode is `True`, the notebook will be set to run against `dev` endpoints."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"testing_mode = True"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Loading
Loading