We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d31e437 commit 55860fbCopy full SHA for 55860fb
src/py_eddy_tracker/gui.py
@@ -188,10 +188,11 @@ def update(self):
188
if len(i) == 0:
189
self.m[name]["contour_s"].set_data([], [])
190
else:
191
- self.m[name]["contour_s"].set_data(
192
- flatten_line_matrix(dataset["contour_lon_s"][i]),
193
- flatten_line_matrix(dataset["contour_lat_s"][i]),
194
- )
+ if 'contour_lon_s' in dataset.elements:
+ self.m[name]["contour_s"].set_data(
+ flatten_line_matrix(dataset["contour_lon_s"][i]),
+ flatten_line_matrix(dataset["contour_lat_s"][i]),
195
+ )
196
# text.append(f"{i.shape[0]}")
197
local_path = dataset.extract_ids(dataset["track"][i])
198
x, y, t, n, tr = (
0 commit comments