diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-09-29 15:20:28 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-09-29 15:20:28 +0200 |
commit | e723c28c0aab44357516b282846fa4b441af1de3 (patch) | |
tree | e22dcb8c11a5be530c83800991e1f1818a525917 | |
parent | b373d91f8c8056904c6779c7fcfb47ff5d8ee242 (diff) | |
download | meteo_toolbox-e723c28c0aab44357516b282846fa4b441af1de3.tar.gz |
python module restructure
-rw-r--r-- | aggregator/__init__.py | 0 | ||||
-rw-r--r-- | config.yaml | 4 | ||||
-rw-r--r-- | modifier/__init__.py | 0 | ||||
-rw-r--r-- | plotter/__init__.py | 0 | ||||
-rwxr-xr-x | plotter/horizontal.py (renamed from horizontal.py) | 0 | ||||
-rwxr-xr-x | plotter/vertical_from_grib.py (renamed from vertical_from_grib.py) | 0 | ||||
-rwxr-xr-x | run.py | 2 |
7 files changed, 3 insertions, 3 deletions
diff --git a/aggregator/__init__.py b/aggregator/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/aggregator/__init__.py diff --git a/config.yaml b/config.yaml index e358613..5eed3e5 100644 --- a/config.yaml +++ b/config.yaml @@ -1,6 +1,6 @@ --- plotter: - - module: vertical_from_grib + - module: 'plotter.vertical_from_grib' source: dwd_icon-eu/combined.grib2 output: out plots: @@ -8,7 +8,7 @@ plotter: lon: 11.99 name: Antersberg analysis: lcl - - module: horizontal + - module: 'plotter.horizontal' source: dwd_icon-eu/combined.grib2 output: out plots: diff --git a/modifier/__init__.py b/modifier/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/modifier/__init__.py diff --git a/plotter/__init__.py b/plotter/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/plotter/__init__.py diff --git a/horizontal.py b/plotter/horizontal.py index a81b372..a81b372 100755 --- a/horizontal.py +++ b/plotter/horizontal.py diff --git a/vertical_from_grib.py b/plotter/vertical_from_grib.py index 8aa851a..8aa851a 100755 --- a/vertical_from_grib.py +++ b/plotter/vertical_from_grib.py @@ -23,7 +23,7 @@ for plotter in conf['plotter']: modname = plotter['module'] del plotter['module'] - mod = __import__(modname) + mod = __import__(modname, fromlist=[None]) mod.run(**plotter) plt.close('all') |