Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
let-it-snow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Remote Modules
let-it-snow
Commits
66e9f9bd
Commit
66e9f9bd
authored
8 months ago
by
Céline Raillé
Browse files
Options
Downloads
Patches
Plain Diff
default value date_margin
parent
6c7a3806
No related branches found
No related tags found
2 merge requests
!139
Merge develop 1.12 into master
,
!138
fix margin init in snow synthesis
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/let_it_snow_synthesis.py
+3
-3
3 additions, 3 deletions
app/let_it_snow_synthesis.py
python/s2snow/lis_constant.py
+1
-0
1 addition, 0 deletions
python/s2snow/lis_constant.py
python/s2snow/parser.py
+1
-1
1 addition, 1 deletion
python/s2snow/parser.py
with
5 additions
and
4 deletions
app/let_it_snow_synthesis.py
+
3
−
3
View file @
66e9f9bd
...
...
@@ -30,7 +30,7 @@ from s2snow.lis_exception import LisConfigurationException, NoSnowProductFound,
from
s2snow.snow_synthesis
import
compute_snow_synthesis
from
s2snow.synthesis_config
import
SynthesisConfig
from
s2snow.lis_constant
import
INPUT_PARAMETER_ERROR
,
CONFIGURATION_ERROR
,
TMP_DIR
,
LOG_FILE
,
NO_SNOW_PRODUCT_FOUND
,
\
NO_ZIP_FOUND
,
NO_PRODUCT_MATCHING_SYNTHESIS
,
UNKNOWN_PLATFORM
,
OUTPUT_UNDEFINED
NO_ZIP_FOUND
,
NO_PRODUCT_MATCHING_SYNTHESIS
,
UNKNOWN_PLATFORM
,
OUTPUT_UNDEFINED
,
DEFAULT_DATE_MARGIN
from
s2snow.parser
import
create_synthesis_argument_parser
...
...
@@ -44,7 +44,7 @@ def main(args):
output_dir
=
global_config
.
get
(
"
output_dir
"
,
None
)
date_start
=
global_config
.
get
(
"
date_start
"
,
None
)
date_stop
=
global_config
.
get
(
"
date_stop
"
,
None
)
date_margin
=
global_config
.
get
(
"
date_margin
"
,
None
)
date_margin
=
global_config
.
get
(
"
date_margin
"
,
DEFAULT_DATE_MARGIN
)
log_level
=
global_config
.
get
(
"
log_level
"
,
"
INFO
"
)
config_file
=
global_config
.
get
(
"
config_file
"
,
None
)
h2_chain_version
=
global_config
.
get
(
"
chain_version
"
,
None
)
...
...
@@ -57,7 +57,7 @@ def main(args):
config_file
=
None
date_start
=
None
date_stop
=
None
date_margin
=
None
date_margin
=
DEFAULT_DATE_MARGIN
h2_chain_version
=
None
product_counter
=
None
log_level
=
None
...
...
This diff is collapsed.
Click to expand it.
python/s2snow/lis_constant.py
+
1
−
0
View file @
66e9f9bd
...
...
@@ -72,6 +72,7 @@ DEFAULT_WINDOW_SIZE = 2048
# Synthesis optimisation
SIZE_WINDOW
=
1024
DEFAULT_DATE_MARGIN
=
30
# Filenames
TMP_DIR
=
"
tmp
"
...
...
This diff is collapsed.
Click to expand it.
python/s2snow/parser.py
+
1
−
1
View file @
66e9f9bd
...
...
@@ -135,7 +135,7 @@ def create_synthesis_argument_parser():
arg_parser
.
add_argument
(
"
-m
"
,
"
--date_margin
"
,
help
=
"
date margin related to start and stop date
"
,
type
=
float
,
default
=
30
)
default
=
None
)
arg_parser
.
add_argument
(
"
-o
"
,
"
--output_dir
"
,
help
=
"
Path to output directory; which will contains synthesis Product
"
,
default
=
None
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment