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
f39810c5
Commit
f39810c5
authored
3 years ago
by
Aurore Dupuis
Browse files
Options
Downloads
Plain Diff
Merge branch '88-logging-error-on-synthesis' into 'develop'
Resolve "Logging error on synthesis" Closes
#88
See merge request
!81
parents
ef7809d3
bcfaabb6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!90
Develop
,
!84
Merge develop
,
!81
Resolve "Logging error on synthesis"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/s2snow/compute_NOBS.py
+4
-6
4 additions, 6 deletions
python/s2snow/compute_NOBS.py
python/s2snow/compute_SOD_SMOD.py
+3
-3
3 additions, 3 deletions
python/s2snow/compute_SOD_SMOD.py
with
7 additions
and
9 deletions
python/s2snow/compute_NOBS.py
+
4
−
6
View file @
f39810c5
...
...
@@ -36,12 +36,12 @@ def compute_NOBS(input_file, synthesis_name=None, output_dir=None):
:return:
"""
logging
.
debug
(
"
compute_NOBS
"
)
logging
.
debug
(
"
input_file
"
,
input_file
)
logging
.
debug
(
"
synthesis_name
"
,
synthesis_name
)
logging
.
debug
(
"
output_dir
"
,
output_dir
)
logging
.
debug
(
"
input_file
: %s
"
,
input_file
)
logging
.
debug
(
"
synthesis_name
: %s
"
,
synthesis_name
)
logging
.
debug
(
"
output_dir
: %s
"
,
output_dir
)
if
not
os
.
path
.
isfile
(
input_file
):
logging
.
error
(
"
Input file does not exist :
{}
"
,
input_file
)
logging
.
error
(
"
Input file does not exist :
%s
"
,
input_file
)
return
if
output_dir
is
None
:
...
...
@@ -69,8 +69,6 @@ def compute_NOBS(input_file, synthesis_name=None, output_dir=None):
with
rasterio
.
open
(
output_file
,
'
w
'
,
**
profile
)
as
dst
:
dst
.
write
(
S
.
astype
(
rasterio
.
uint16
),
1
)
logging
.
info
(
"
End of compute_NOBS.py
"
)
def
show_help
():
"""
...
...
This diff is collapsed.
Click to expand it.
python/s2snow/compute_SOD_SMOD.py
+
3
−
3
View file @
f39810c5
...
...
@@ -38,9 +38,9 @@ def compute_SOD_SMOD(input_file, synthesis_name=None, output_dir=None):
"""
logging
.
info
(
"
Start compute_SOD_SMOD.py using: {}
"
.
format
(
input_file
))
logging
.
debug
(
"
compute_SOD_SMOD
"
)
logging
.
debug
(
"
tmp_dir
"
,
output_dir
)
logging
.
debug
(
"
input_file
"
,
input_file
)
logging
.
debug
(
"
synthesis_name
"
,
synthesis_name
.
format
(
"
XXX
"
))
logging
.
debug
(
"
tmp_dir
: %s
"
,
output_dir
)
logging
.
debug
(
"
input_file
: %s
"
,
input_file
)
logging
.
debug
(
"
synthesis_name
: %s
"
,
synthesis_name
.
format
(
"
XXX
"
))
if
not
os
.
path
.
isfile
(
input_file
):
msg
=
"
Input file does not exist : {}
"
.
format
(
input_file
)
...
...
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