aboutsummaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-01-30 01:08:59 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-01-30 01:08:59 +0100
commit29a21550e9cdaeb371190b5684dc6c2201b1a905 (patch)
treeea6d1119e5667aba1e439aed5f07e2b5b4529eec /run.py
parent46ff89bade0f7ca4d5b1edfaa75dacf48c25be86 (diff)
downloadmeteo_toolbox-29a21550e9cdaeb371190b5684dc6c2201b1a905.tar.gz
minor RAM optimisation
Diffstat (limited to 'run.py')
-rwxr-xr-xrun.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/run.py b/run.py
index 244da10..f239f45 100755
--- a/run.py
+++ b/run.py
@@ -22,6 +22,8 @@ def create_aggregators(cfg):
return ret
+mpl.use('agg')
+
# Define custom gpm and gpdm units. The default gpm in metpy is aliased to meter.
# We need the correct definition
units.define('_gpm = 9.80665 * J/kg')