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

Checks in readers/writers to enforce correct types for event_name and event_id container and elements #951

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
merge develop into branch
  • Loading branch information
Eliane Kobler committed Oct 23, 2024
commit d080feff3e4744545d1c886d53b8eec8bd83358c
1 change: 0 additions & 1 deletion doc/tutorial/1_main_climada.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@
"exp_litpop = LitPop.from_countries(\n",
" \"Puerto Rico\", res_arcsec=120\n",
") # We'll go lower resolution than default to keep it simple\n",
"exp_litpop.set_geometry_points() # Set geodataframe geometries from lat lon data\n",
"\n",
"exp_litpop.plot_hexbin(pop_name=True, linewidth=4, buffer=0.1);"
]
Expand Down
4 changes: 1 addition & 3 deletions doc/tutorial/climada_engine_Forecast.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@
"### generate exposure\n",
"# find out which hazard coord to consider\n",
"CHE_borders = u_plot._get_borders(\n",
" np.stack(\n",
" [exposure.gdf[\"latitude\"].values, exposure.gdf[\"longitude\"].values], axis=1\n",
" )\n",
" np.stack([exposure.latitude, exposure.longitude], axis=1)\n",
")\n",
"centroid_selection = np.logical_and(\n",
" np.logical_and(\n",
Expand Down
8 changes: 2 additions & 6 deletions doc/tutorial/climada_engine_Impact.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1486,9 +1486,7 @@
"\n",
"# Set Hazard in Exposures points\n",
"# set centroids from exposures coordinates\n",
"centr_pnt = Centroids.from_lat_lon(\n",
" exp_pnt.gdf[\"latitude\"].values, exp_pnt.gdf[\"longitude\"].values, exp_pnt.crs\n",
")\n",
"centr_pnt = Centroids.from_lat_lon(exp_pnt.latitude, exp_pnt.longitude, exp_pnt.crs)\n",
"# compute Hazard in that centroids\n",
"tr_pnt = TCTracks.from_ibtracs_netcdf(storm_id=\"2007314N10093\")\n",
"tc_pnt = TropCyclone.from_tracks(tr_pnt, centroids=centr_pnt)\n",
Expand Down Expand Up @@ -2007,9 +2005,7 @@
"\n",
"# compute sequence of hazards using TropCyclone video_intensity method\n",
"exp_sea = add_sea(exp_video, (100, 5))\n",
"centr_video = Centroids.from_lat_lon(\n",
" exp_sea.gdf[\"latitude\"].values, exp_sea.gdf[\"longitude\"].values\n",
")\n",
"centr_video = Centroids.from_lat_lon(exp_sea.latitude, exp_sea.longitude)\n",
"centr_video.check()\n",
"\n",
"track_name = \"2017242N16333\"\n",
Expand Down
Loading
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.