From 3814ac6ad991aec18b0ed843233d9a681ae54e2b Mon Sep 17 00:00:00 2001 From: "v.gramlich1" <v.gramlichfz-juelich.de> Date: Wed, 30 Jun 2021 09:26:04 +0200 Subject: [PATCH] Fixed Error in load_stations --- run_with_oversampling.py | 4 ++-- run_without_oversampling.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/run_with_oversampling.py b/run_with_oversampling.py index 78da204c..30371a13 100644 --- a/run_with_oversampling.py +++ b/run_with_oversampling.py @@ -12,7 +12,7 @@ import os def load_stations(external_station_list=None): import json 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: filename = external_station_list with open(filename, 'r') as jfile: @@ -24,7 +24,7 @@ def load_stations(external_station_list=None): def main(parser_args): 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"], epochs=150, train_model=True, create_new_model=True, network="UBA", diff --git a/run_without_oversampling.py b/run_without_oversampling.py index 7b0826be..b88cb143 100644 --- a/run_without_oversampling.py +++ b/run_without_oversampling.py @@ -24,7 +24,7 @@ def load_stations(external_station_list = None): def main(parser_args): 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"], epochs=150, train_model=True, create_new_model=True, network="UBA", -- GitLab