Upgrading to GitLab 12.0.2.

Commit 577e71c8 authored by Shreyas Bapat's avatar Shreyas Bapat

Add patches for upstream issue

parent c97627f6
From: Shreyas Bapat <bapat.shreyas@gmail.com>
Date: Tue, 14 May 2019 18:52:19 +0530
Subject: Raise warnings in cdflib
---
heliopy/data/util.py | 5 ++++-
heliopy/data/wind.py | 7 +++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/heliopy/data/util.py b/heliopy/data/util.py
index fa5f876..5095bf5 100644
--- a/heliopy/data/util.py
+++ b/heliopy/data/util.py
@@ -17,7 +17,10 @@ import astropy.units as u
import sunpy.timeseries as ts
import warnings
import collections as coll
-import cdflib
+try:
+ import cdflib
+except:
+ warnings.warn("Package cdflib not found")
import numpy as np
import pandas as pd
diff --git a/heliopy/data/wind.py b/heliopy/data/wind.py
index afebe5a..f62d9d0 100644
--- a/heliopy/data/wind.py
+++ b/heliopy/data/wind.py
@@ -9,10 +9,13 @@ import pathlib as path
import pandas as pd
import numpy as np
import astropy.units as u
-import cdflib
+import warnings
+try:
+ import cdflib
+except:
+ warnings.warn("Package cdflib not found")
import datetime as dt
from collections import OrderedDict
-import warnings
from heliopy.data import cdasrest
from heliopy.data import util
0001-Raise-warnings-in-cdflib.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment