Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
py_tools_ds
Commits
914a51d2
Commit
914a51d2
authored
Jul 26, 2019
by
Daniel Scheffler
Browse files
Moved import of 'spectral' package to function level.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
28db628b
Pipeline
#4372
passed with stages
in 1 minute and 6 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
py_tools_ds/io/raster/writer.py
View file @
914a51d2
...
...
@@ -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
\
...
...
py_tools_ds/version.py
View file @
914a51d2
...
...
@@ -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__
=
'2019072
2
_01'
__version__
=
'0.14.
20
'
__versionalias__
=
'2019072
6
_01'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment