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 22, 2024
1 parent ad99174 commit abf3f6b
Showing 1 changed file with 9 additions and 5 deletions.
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 @@ -36,8 +36,8 @@
"source": [
"import sys\n",
"\n",
"sys.path.append(\"../\") # Model src\n",
"sys.path.append(\"../../stacchip/\") "
"sys.path.append(\"../\") # Model src\n",
"sys.path.append(\"../../stacchip/\")"
]
},
{
Expand Down Expand Up @@ -228,8 +228,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 @@ -520,7 +522,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 abf3f6b

Please sign in to comment.