Commit 67cee50d authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Moved matplotlib import to function level to avoid static TLS ImportError. Updated version info.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 3e86cf3d
Pipeline #12913 passed with stages
in 38 seconds
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
History History
======= =======
0.3.6 (2020-09-25)
------------------
* Moved matplotlib import to function level to avoid static TLS ImportError.
0.3.5 (2020-09-24) 0.3.5 (2020-09-24)
------------------ ------------------
......
...@@ -33,7 +33,6 @@ import warnings ...@@ -33,7 +33,6 @@ import warnings
import numpy as np import numpy as np
from pandas import DataFrame, Series from pandas import DataFrame, Series
from matplotlib import pyplot as plt
from . import __path__ from . import __path__
from .sensorspecs import get_LayerBandsAssignment from .sensorspecs import get_LayerBandsAssignment
...@@ -241,6 +240,8 @@ class RelativeSpectralResponse(object): ...@@ -241,6 +240,8 @@ class RelativeSpectralResponse(object):
:param band: band key to plot a single band instead of all bands :param band: band key to plot a single band instead of all bands
:param normalize: normalize RSRs to 0-1 (default: True) :param normalize: normalize RSRs to 0-1 (default: True)
""" """
from matplotlib import pyplot as plt
if band and band not in self.bands: if band and band not in self.bands:
raise ValueError("Parameter 'band' must be a string out of those: %s." raise ValueError("Parameter 'band' must be a string out of those: %s."
% ', '.join(self.bands)) % ', '.join(self.bands))
......
...@@ -22,5 +22,5 @@ ...@@ -22,5 +22,5 @@
# with this program. If not, see <http://www.gnu.org/licenses/>. # with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.3.5' __version__ = '0.3.6'
__versionalias__ = '20200924.01' __versionalias__ = '20200925.01'
Supports Markdown
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