Skip to content
Snippets Groups Projects
Commit 3814ac6a authored by v.gramlich1's avatar v.gramlich1
Browse files

Fixed Error in load_stations

parent f3367dc8
No related branches found
No related tags found
1 merge request!302Draft: Resolve "Class-based Oversampling technique"
Pipeline #71605 canceled
...@@ -12,7 +12,7 @@ import os ...@@ -12,7 +12,7 @@ import os
def load_stations(external_station_list=None): def load_stations(external_station_list=None):
import json import json
if external_station_list is None: if external_station_list is None:
filename = 'supplement/station_list_north_german_plain_rural.json' external_station_list = 'supplement/station_list_north_german_plain_rural.json'
try: try:
filename = external_station_list filename = external_station_list
with open(filename, 'r') as jfile: with open(filename, 'r') as jfile:
...@@ -24,7 +24,7 @@ def load_stations(external_station_list=None): ...@@ -24,7 +24,7 @@ def load_stations(external_station_list=None):
def main(parser_args): def main(parser_args):
plots = remove_items(DEFAULT_PLOT_LIST, "PlotConditionalQuantiles") plots = remove_items(DEFAULT_PLOT_LIST, "PlotConditionalQuantiles")
workflow = DefaultWorkflow(stations=load_stations('supplement/German_background_station.json'), workflow = DefaultWorkflow(stations=load_stations('supplement/German_background_stations.json'),
#stations=["DEBW013", "DEBW087", "DEBW107", "DEBW076"], #stations=["DEBW013", "DEBW087", "DEBW107", "DEBW076"],
epochs=150, epochs=150,
train_model=True, create_new_model=True, network="UBA", train_model=True, create_new_model=True, network="UBA",
......
...@@ -24,7 +24,7 @@ def load_stations(external_station_list = None): ...@@ -24,7 +24,7 @@ def load_stations(external_station_list = None):
def main(parser_args): def main(parser_args):
plots = remove_items(DEFAULT_PLOT_LIST, "PlotConditionalQuantiles") plots = remove_items(DEFAULT_PLOT_LIST, "PlotConditionalQuantiles")
workflow = DefaultWorkflow(stations=load_stations('supplement/German_background_station.json'), workflow = DefaultWorkflow(stations=load_stations('supplement/German_background_stations.json'),
#stations=["DEBW013", "DEBW087", "DEBW107", "DEBW076"], #stations=["DEBW013", "DEBW087", "DEBW107", "DEBW076"],
epochs=150, epochs=150,
train_model=True, create_new_model=True, network="UBA", train_model=True, create_new_model=True, network="UBA",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment