Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 23, 2024
1 parent e549c31 commit 96ff9ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ parts:
file: clay-v0/data_labels
- file: clay-v0-interpolation
- title: Software release notes v0.1
file: clay-v0/changelog-v1.0
file: clay-v0/changelog-v1.0
14 changes: 9 additions & 5 deletions docs/tutorials/v1-inference-simsearch-naip-stacchip.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
"source": [
"import sys\n",
"\n",
"sys.path.append(\"../../\") # Model src\n",
"sys.path.append(\"../../\") # Model src\n",
"\n",
"# If the pip install for stacchip doesn't work above, \n",
"# If the pip install for stacchip doesn't work above,\n",
"# git clone the repo and comment out the following with the path\n",
"sys.path.append(\"../../../stacchip/\")"
]
Expand Down Expand Up @@ -212,8 +212,10 @@
" indexer = NoStatsChipIndexer(item)\n",
"\n",
" # Obtain the item bounds and centroid\n",
" bounds, centroid_x, centroid_y = get_bounds_centroid(item.assets[\"image\"].href)\n",
" print(f\"Bounds coordinates: {bounds}, centroid coordinates: {centroid_x}, {centroid_y}\")\n",
" bounds, centroid_x, centroid_y = get_bounds_centroid(item.assets[\"image\"].href)\n",
" print(\n",
" f\"Bounds coordinates: {bounds}, centroid coordinates: {centroid_x}, {centroid_y}\"\n",
" )\n",
"\n",
" # Instantiate the chipper\n",
" chipper = Chipper(indexer, asset_blacklist=[\"metadata\"])\n",
Expand Down Expand Up @@ -494,7 +496,9 @@
" date = datetime.datetime.strptime(f\"{YEAR}-06-01\", \"%Y-%m-%d\")\n",
" gsd = 0.6\n",
"\n",
" lon, lat = box(bounding_box[0], bounding_box[1], bounding_box[2], bounding_box[3]).centroid.coords[0]\n",
" lon, lat = box(\n",
" bounding_box[0], bounding_box[1], bounding_box[2], bounding_box[3]\n",
" ).centroid.coords[0]\n",
"\n",
" datacube = prep_datacube(\n",
" np.array(tile), lat, lon, pd.to_datetime(f\"{YEAR}-06-01\"), gsd, model.device\n",
Expand Down

0 comments on commit 96ff9ee

Please sign in to comment.