Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
METRo projects
metro
Commits
5d4e8a97
Commit
5d4e8a97
authored
May 04, 2018
by
Miguel Tremblay
Browse files
Merge branch 'coor' into 'master'
verify if Lat,Lon is missing in station configuration See merge request
!5
parents
c81767a2
ac38ad5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/executable_module/metro_preprocess_fsint2.py
View file @
5d4e8a97
...
...
@@ -95,7 +95,12 @@ class Metro_preprocess_fsint2(Metro_preprocess):
forecast_data
=
pForecast
.
get_data_collection
()
pStation
=
self
.
get_infdata_reference
(
'STATION'
)
station_data
=
pStation
.
get_data
()
if
station_data
.
get_latitude
()
is
None
or
station_data
.
get_longitude
()
is
None
:
sMessage
=
_
(
"Station position (latitude, longitude) is missing in station configuration file."
)
metro_logger
.
print_message
(
metro_logger
.
LOGGER_MSG_STOP
,
\
sMessage
).
Metro_util_error
(
sMessage
)
if
self
.
infdata_exist
(
'HORIZON'
):
pHorizon
=
self
.
get_infdata_reference
(
'HORIZON'
)
horizon_data
=
pHorizon
.
get_data
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment