From 1bb3287686d83c74dd3ab07680347b077562c7ea Mon Sep 17 00:00:00 2001
From: Loic Huder <loic.huder@univ-grenoble-alpes.fr>
Date: Fri, 9 Aug 2019 12:11:00 +0200
Subject: [PATCH] Updated pygeodyn_hdf5_forecasts.py to be compatible with
 pygeodyn >= 1.1

---
 webgeodyn/inout/pygeodyn_hdf5_forecasts.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webgeodyn/inout/pygeodyn_hdf5_forecasts.py b/webgeodyn/inout/pygeodyn_hdf5_forecasts.py
index 2e4b5fc..410df0b 100644
--- a/webgeodyn/inout/pygeodyn_hdf5_forecasts.py
+++ b/webgeodyn/inout/pygeodyn_hdf5_forecasts.py
@@ -31,7 +31,7 @@ def load(dataDirectory, dataModel, keepRealisations):
         computed_data = hdf_file['computed']
 
         times = np.array(computed_data['times'])[firstpoint:]
-        times_analysis = np.array(hdf_file['analysis']['times'])[firstpoint:]
+        times_analysis = np.array(hdf_file['analysed']['times'])[firstpoint:]
         indexes_analysis = np.intersect1d(times, times_analysis, return_indices=True)[1]
         times = np.insert(times, indexes_analysis, times_analysis)
 
-- 
GitLab