Skip to content

Commit cce863e

Browse files
require spatialist>=0.17.0 and adapt to new interface
1 parent fbb1993 commit cce863e

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- pyyaml
1717
- requests
1818
- shapely
19-
- spatialist>=0.16.2
19+
- spatialist>=0.17.0
2020
- sqlalchemy>=1.4,<2.0
2121
- sqlalchemy-utils>=0.37,<0.42
2222
- coverage

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ dependencies:
1616
- pyyaml
1717
- requests
1818
- shapely
19-
- spatialist>=0.16.2
19+
- spatialist>=0.17.0
2020
- sqlalchemy>=1.4,<2.0
2121
- sqlalchemy-utils>=0.37,<0.42

pyroSAR/examine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def __init__(self):
439439
getattr(self, 'home')).group('version')
440440

441441
try:
442-
out, err = run(['which', 'gdal-config'], void=False)
442+
returncode, out, err = run(['which', 'gdal-config'], void=False)
443443
gdal_config = out.strip('\n')
444444
self.gdal_config = gdal_config
445445
except sp.CalledProcessError:

pyroSAR/gamma/auxil.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def process(cmd, outdir=None, logfile=None, logpath=None,
452452
# create an environment containing the locations of all GAMMA submodules to be passed to the subprocess calls
453453
gammaenv = os.environ.copy()
454454
gammaenv['GAMMA_HOME'] = gamma_home
455-
out, err = run([ExamineGamma().gdal_config, '--datadir'], void=False)
455+
returncode, out, err = run([ExamineGamma().gdal_config, '--datadir'], void=False)
456456
gammaenv['GDAL_DATA'] = out.strip()
457457
for module in ['DIFF', 'DISP', 'IPTA', 'ISP', 'LAT']:
458458
loc = os.path.join(gammaenv['GAMMA_HOME'], module)
@@ -464,7 +464,8 @@ def process(cmd, outdir=None, logfile=None, logpath=None,
464464
gammaenv['PATH'] += os.pathsep + subloc
465465

466466
# execute the command
467-
out, err = run(cmd, outdir=outdir, logfile=log, inlist=inlist, void=False, errorpass=True, env=gammaenv)
467+
returncode, out, err = run(cmd, outdir=outdir, logfile=log, inlist=inlist,
468+
void=False, errorpass=True, env=gammaenv)
468469
gammaErrorHandler(out, err)
469470
if not void:
470471
return out, err

pyroSAR/snap/auxil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def parse_node(name, use_existing=True):
108108

109109
cmd = [gpt, operator, '-h']
110110

111-
out, err = run(cmd=cmd, void=False)
111+
returncode, out, err = run(cmd=cmd, void=False)
112112

113113
if re.search('Unknown operator', out + err):
114114
raise RuntimeError("unknown operator '{}'".format(operator))

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ psycopg2
88
pyyaml
99
requests
1010
shapely
11-
spatialist>=0.16.2
11+
spatialist>=0.17.0
1212
sqlalchemy-utils>=0.37,<0.42
1313
sqlalchemy>=1.4,<2.0

0 commit comments

Comments
 (0)