From dbf9d89636fabe21b27ea09512f2136cd061a273 Mon Sep 17 00:00:00 2001
From: Anne Philipp <anne.philipp@univie.ac.at>
Date: Fri, 14 Dec 2018 00:46:22 +0100
Subject: [PATCH] fixed bug to address purefc variable of c instance

---
 source/python/mods/get_mars_data.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/python/mods/get_mars_data.py b/source/python/mods/get_mars_data.py
index e9c44e5..d96075b 100755
--- a/source/python/mods/get_mars_data.py
+++ b/source/python/mods/get_mars_data.py
@@ -258,7 +258,7 @@ def mk_dates(c, fluxes):
         if c.basetime == '00':
             start = start - timedelta(days=1)
 
-    if not purefc and fluxes:
+    if not c.purefc and fluxes:
         start = start - timedelta(days=1)
         end = end + timedelta(days=1)
 
-- 
GitLab