Skip to content

Commit

Permalink
run formatter on example notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Dec 5, 2024
1 parent 60dbc47 commit c50c464
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/examples/time_series_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,11 @@
" timeout=None,\n",
")\n",
"tilejsons = request.json()\n",
"tilejson_preview = {timestamp: tilejson for i, (timestamp, tilejson) in enumerate(tilejsons.items()) if i < 2}\n",
"tilejson_preview = {\n",
" timestamp: tilejson\n",
" for i, (timestamp, tilejson) in enumerate(tilejsons.items())\n",
" if i < 2\n",
"}\n",
"print(json.dumps(tilejson_preview, indent=2))"
]
},
Expand Down
5 changes: 4 additions & 1 deletion docs/examples/xarray_backend_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@
"source": [
"fs = earthaccess.get_fsspec_https_session()\n",
"\n",
"ds = xr.open_dataset(fs.open(results[0].data_links(access=\"external\")[0]), engine=\"h5netcdf\")\n",
"ds = xr.open_dataset(\n",
" fs.open(results[0].data_links(access=\"external\")[0]),\n",
" engine=\"h5netcdf\",\n",
")\n",
"print(\"Data Variables:\")\n",
"for var in ds.data_vars:\n",
" print(str(var))\n",
Expand Down

0 comments on commit c50c464

Please sign in to comment.