Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grid SEPTREFHUM
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
VIPS
Models
GRID
Grid SEPTREFHUM
Commits
2e5e66a6
Commit
2e5e66a6
authored
3 months ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
fix: Ensure correct weather data path is used
parent
f1c54d59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SEPTREFHUM.py
+3
-2
3 additions, 2 deletions
SEPTREFHUM.py
with
3 additions
and
2 deletions
SEPTREFHUM.py
+
3
−
2
View file @
2e5e66a6
...
@@ -98,6 +98,7 @@ else:
...
@@ -98,6 +98,7 @@ else:
weather_data_path
=
infile_path
weather_data_path
=
infile_path
if
year
<
today
.
year
:
if
year
<
today
.
year
:
weather_data_path
=
f
"
{
infile_archive_path
}{
year
}
/
"
weather_data_path
=
f
"
{
infile_archive_path
}{
year
}
/
"
logging
.
info
(
f
"
Use weather data from
{
weather_data_path
}
"
)
# Path to store intermediary calculations and generated results
# Path to store intermediary calculations and generated results
tmpfile_path
=
f
"
tmp/
{
year
}
/
"
tmpfile_path
=
f
"
tmp/
{
year
}
/
"
...
@@ -123,8 +124,8 @@ if last_wh_date is not None:
...
@@ -123,8 +124,8 @@ if last_wh_date is not None:
start_date
=
last_wh_date
-
timedelta
(
days
=
2
)
start_date
=
last_wh_date
-
timedelta
(
days
=
2
)
logging
.
info
(
f
"
Last date of WH calculations is
{
last_wh_date
}
. Start date =
{
start_date
}
"
)
logging
.
info
(
f
"
Last date of WH calculations is
{
last_wh_date
}
. Start date =
{
start_date
}
"
)
weatherdata_files
=
glob
.
glob
(
f
"
{
infile
_path
}{
filename_pattern
}
"
)
weatherdata_files
=
glob
.
glob
(
f
"
{
weather_data
_path
}{
filename_pattern
}
"
)
logging
.
debug
(
f
"
{
infile
_path
}{
filename_pattern
}
"
)
logging
.
debug
(
f
"
{
weather_data
_path
}{
filename_pattern
}
"
)
logging
.
debug
(
"
What are the weatherdata files?
"
)
logging
.
debug
(
"
What are the weatherdata files?
"
)
logging
.
debug
(
weatherdata_files
)
logging
.
debug
(
weatherdata_files
)
...
...
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