Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
gms_preprocessing
Commits
54cb3838
Commit
54cb3838
authored
Nov 28, 2017
by
Daniel Scheffler
Browse files
Merge branch 'enhancement/provide_more_options'
parents
a00a4f1c
3fe57806
Pipeline
#1623
failed with stage
in 10 minutes and 30 seconds
Changes
4
Pipelines
2
Show whitespace changes
Inline
Side-by-side
gms_preprocessing/options/config.py
View file @
54cb3838
...
...
@@ -368,7 +368,7 @@ class JobConfig(object):
return
getattr
(
self
.
DB_job_record
,
attr_db_job_record
)
# 3. JSON parameters: parameters that have been defined via JSON Input (command line or advanced UI params)
if
val_json
is
not
None
:
if
val_json
and
val_json
is
not
None
:
return
val_json
# fallback: if nothing has been returned until here
...
...
gms_preprocessing/options/options_default.json
View file @
54cb3838
...
...
@@ -101,7 +101,7 @@
}
},
"usecase"
:
{
/*NOTE:
These
options
will
not
respected
in
the
WebApp!
Use
the
WebApp
GUI
instead.*/
"usecase"
:
{
/*NOTE:
These
options
will
be
not
respected
in
the
WebApp!
Use
the
WebApp
GUI
instead.*/
"virtual_sensor_id"
:
10
,
/*
"None"
:
use
WebApp
input;
1
:
Landsat
-8
,
10
:
Sentinel
-2
A
10
m*/
"datasetid_spatial_ref"
:
"None"
,
/*
"None"
:
use
WebApp
input*/
...
...
gms_preprocessing/processing/process_controller.py
View file @
54cb3838
...
...
@@ -40,7 +40,7 @@ __author__ = 'Daniel Scheffler'
class
process_controller
(
object
):
def
__init__
(
self
,
job_ID
,
exec_mode
=
'Python'
,
db_host
=
'localhost'
,
parallelization_level
=
'scenes'
,
delete_old_output
=
False
,
job_config_kwargs
=
None
):
# type: (
str
, str, str, str, bool) -> None
# type: (
int
, str, str, str, bool
, dict
) -> None
"""gms_preprocessing process controller
...
...
tests/test_gms_preprocessing.py
View file @
54cb3838
...
...
@@ -282,6 +282,18 @@ testdata.append('MultipleDatasetsInOneJob')
summary_testResults
,
summary_errors
,
summary_failures
,
summary_skipped
,
jobstatus
=
[[]
for
_
in
range
(
5
)]
@
unittest
.
SkipTest
class
Test_in_normal_mode
(
unittest
.
TestCase
):
def
setUp
(
self
):
# Testjob Landsat-8
self
.
PC
=
process_controller
(
26186740
,
parallelization_level
=
'scenes'
,
db_host
=
'geoms'
,
delete_old_output
=
True
,
job_config_kwargs
=
dict
(
is_test
=
False
))
def
test
(
self
):
self
.
PC
.
run_all_processors
()
if
__name__
==
'__main__'
:
# Part 1: Creating and running a testsuite for each dataset-testcase, and querying the job.status of the job.
for
items
in
testdata
:
...
...
Daniel Scheffler
@danschef
mentioned in commit
697e52b0
·
Feb 06, 2018
mentioned in commit
697e52b0
mentioned in commit 697e52b01f4d26f058b4121f06ffb9c3bdb180e4
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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