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