Skip to content
Snippets Groups Projects
Commit 8f5bed9c authored by Felix Kleinert's avatar Felix Kleinert
Browse files

Do not exec map plots

parent f521c8e4
Branches
Tags
3 merge requests!125Release v0.10.0,!124Update Master to new version v0.10.0,!97Felix issue106 hpc modules for juwels
Pipeline #33806 passed
......@@ -97,6 +97,10 @@ class TimeTracking(object):
logging.info(f"{self._name} finished after {self}")
def get_host():
return socket.gethostname()
def prepare_host(create_new=True, sampling="daily"):
hostname = socket.gethostname()
try:
......
......@@ -6,6 +6,8 @@ import argparse
import logging
import os
from typing import Union, Dict, Any
import socket
from src import helpers
from src.run_modules.run_environment import RunEnvironment
......@@ -46,6 +48,8 @@ class ExperimentSetup(RunEnvironment):
# experiment setup
self._set_param("data_path", helpers.prepare_host(sampling=sampling))
# self._set_param("hostname", helpers.get_host())
self._set_param("hostname", "jwc0123")
self._set_param("create_new_model", create_new_model, default=True)
if self.data_store.get("create_new_model"):
trainable = True
......
......@@ -199,7 +199,7 @@ class PostProcessing(RunEnvironment):
forecast_path=path, plot_name_affix="cali-ref", plot_folder=self.plot_path)
plot_conditional_quantiles(self.test_data.stations, pred_name="obs", ref_name="CNN",
forecast_path=path, plot_name_affix="like-bas", plot_folder=self.plot_path)
if "PlotStationMap" in plot_list:
if ("PlotStationMap" in plot_list) and (not self.data_store.get("hostname")[:2] == "jw"):
PlotStationMap(generators={'b': self.test_data}, plot_folder=self.plot_path)
if "PlotMonthlySummary" in plot_list:
PlotMonthlySummary(self.test_data.stations, path, r"forecasts_%s_test.nc", self.target_var,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment