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
dac1a7d0
Commit
dac1a7d0
authored
3 years ago
by
Aurore Dupuis
Browse files
Options
Downloads
Patches
Plain Diff
80 - Synthesis refactoring for hysope2
parent
a9c30e7a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!77
Release 1.7.1
,
!73
Dockerfile corrections and optimizations
,
!70
Resolve "[H2] - Code refactoring"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/let_it_snow_synthesis.py
+3
-0
3 additions, 0 deletions
app/let_it_snow_synthesis.py
python/s2snow/snow_synthesis.py
+1
-2
1 addition, 2 deletions
python/s2snow/snow_synthesis.py
with
4 additions
and
2 deletions
app/let_it_snow_synthesis.py
+
3
−
0
View file @
dac1a7d0
...
@@ -111,6 +111,9 @@ if __name__ == "__main__":
...
@@ -111,6 +111,9 @@ if __name__ == "__main__":
level
=
args
.
log_level
level
=
args
.
log_level
logger
.
setLevel
(
level
)
logger
.
setLevel
(
level
)
if
level
==
"
DEBUG
"
:
logging
.
debug
(
"
Debug level activated.
"
)
# file handler
# file handler
file_handler
=
RotatingFileHandler
(
log_file
,
'
a
'
,
1000000
,
1
)
file_handler
=
RotatingFileHandler
(
log_file
,
'
a
'
,
1000000
,
1
)
formatter
=
logging
.
Formatter
(
fmt
=
'
%(asctime)s.%(msecs)03d %(levelname)s:%(filename)s::%(funcName)s:%(message)s
'
,
formatter
=
logging
.
Formatter
(
fmt
=
'
%(asctime)s.%(msecs)03d %(levelname)s:%(filename)s::%(funcName)s:%(message)s
'
,
...
...
This diff is collapsed.
Click to expand it.
python/s2snow/snow_synthesis.py
+
1
−
2
View file @
dac1a7d0
...
@@ -68,7 +68,6 @@ def compute_snow_synthesis(config, output_dir, h2_chain_version=None, product_co
...
@@ -68,7 +68,6 @@ def compute_snow_synthesis(config, output_dir, h2_chain_version=None, product_co
if
product_counter
is
not
None
:
if
product_counter
is
not
None
:
synthesis_name
=
synthesis_name
+
"
_
"
+
product_counter
synthesis_name
=
synthesis_name
+
"
_
"
+
product_counter
logging
.
info
(
"
Load S2 snow products.
"
)
logging
.
info
(
"
Load S2 snow products.
"
)
product_dict
=
load_snow_products
(
config
.
date_start
,
config
.
date_stop
,
config
.
date_margin
,
product_dict
=
load_snow_products
(
config
.
date_start
,
config
.
date_stop
,
config
.
date_margin
,
config
.
input_products_list
,
config
.
tile_id
)
config
.
input_products_list
,
config
.
tile_id
)
...
@@ -471,7 +470,7 @@ def load_snow_products(date_start, date_stop, date_margin, snow_products_list, t
...
@@ -471,7 +470,7 @@ def load_snow_products(date_start, date_stop, date_margin, snow_products_list, t
logging
.
info
(
"
Keeping product : {}
"
.
format
(
str
(
product
)))
logging
.
info
(
"
Keeping product : {}
"
.
format
(
str
(
product
)))
logging
.
debug
(
"
S2 snow products dictionary:
"
)
logging
.
debug
(
"
S2 snow products dictionary:
"
)
logging
.
debug
(
s2_snow_products
)
return
s2_snow_products
return
s2_snow_products
...
...
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