Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
earth_observation_public
Climax
Commits
5e50d124
Commit
5e50d124
authored
3 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Improve state file naming convention.
parent
92a64723
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
climax/core/dataset.py
+11
-2
11 additions, 2 deletions
climax/core/dataset.py
with
11 additions
and
2 deletions
climax/core/dataset.py
+
11
−
2
View file @
5e50d124
...
...
@@ -122,8 +122,17 @@ class EoDataset(torch.utils.data.Dataset):
Spredictors
=
''
.
join
([
ERA5_S_VARIABLE_NAME
[
p
]
for
p
in
predictors
if
p
in
ERA5_S_VARIABLE_NAME
])
plevels
=
[
str
(
p
)
for
p
in
plevels
]
state_file
=
'
_
'
.
join
([
model
.
__name__
,
str
(
predictand
),
Ppredictors
,
*
plevels
,
Spredictors
])
state_file
=
'
_
'
.
join
([
model
.
__name__
,
str
(
predictand
)])
# check if predictors on pressure levels are used
state_file
=
(
'
_
'
.
join
([
state_file
,
Ppredictors
,
*
plevels
])
if
any
([
p
in
ERA5_P_VARIABLE_NAME
for
p
in
predictors
])
else
state_file
)
# check if predictors on surface are used
state_file
=
(
'
_
'
.
join
([
state_file
,
Spredictors
])
if
any
([
p
in
ERA5_S_VARIABLE_NAME
for
p
in
predictors
])
else
state_file
)
# check whether digital elevation model, slope and aspect, and the day
# of year were used
...
...
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