From ec944e003f0c907b57ef9c2c19d1527bc6e32357 Mon Sep 17 00:00:00 2001 From: Samuel Juhel <10011382+spjuhel@users.noreply.github.com> Date: Fri, 30 Aug 2024 09:35:52 +0200 Subject: [PATCH] Non escaped quotes again --- doc/tutorial/climada_hazard_TropCyclone.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial/climada_hazard_TropCyclone.ipynb b/doc/tutorial/climada_hazard_TropCyclone.ipynb index 6152a8bfb..b82b38184 100644 --- a/doc/tutorial/climada_hazard_TropCyclone.ipynb +++ b/doc/tutorial/climada_hazard_TropCyclone.ipynb @@ -1743,14 +1743,14 @@ "# 1. Which is the time frequency of the data?\n", "# The values of a DataArray are numpy.arrays.\n", "# The nummpy.ediff1d computes the different between elements in an array\n", - "diff_time_ns = np.ediff1d(tc_syn["time"])\n", + "diff_time_ns = np.ediff1d(tc_syn[\"time\"])\n", "diff_time_h = diff_time_ns.astype(int)/1000/1000/1000/60/60\n", "print('Mean time frequency in hours:', diff_time_h.mean())\n", "print('Std time frequency in hours:', diff_time_h.std())\n", "print()\n", "\n", "# 2. Compute the maximum sustained wind for each day.\n", - "print('Daily max sustained wind:', tc_syn["max_sustained_wind"].groupby('time.day').max())" + "print('Daily max sustained wind:', tc_syn[\"max_sustained_wind\"].groupby('time.day').max())" ] }, {