Commit 914a51d2 authored by Daniel Scheffler's avatar Daniel Scheffler

Moved import of 'spectral' package to function level.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 28db628b
Pipeline #4372 passed with stages
in 1 minute and 6 seconds
......@@ -23,7 +23,6 @@
import os
import multiprocessing
from spectral.io import envi
try:
import gdal
......@@ -54,6 +53,8 @@ def write_numpy_to_image(array, path_out, outFmt='GTIFF', gt=None, prj=None):
def write_envi(arr, outpath, gt=None, prj=None):
from spectral.io import envi
if gt or prj:
assert gt and prj, 'gt and prj must be provided together or left out.'
......@@ -69,6 +70,8 @@ shared_array_on_disk__memmap = None
def init_SharedArray_on_disk(out_path, dims, gt=None, prj=None):
from spectral.io import envi
global shared_array_on_disk__memmap
global shared_array_on_disk__path
path = out_path if not os.path.splitext(out_path)[1] == '.bsq' else \
......
......@@ -19,5 +19,5 @@
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.14.19'
__versionalias__ = '20190722_01'
__version__ = '0.14.20'
__versionalias__ = '20190726_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