From e925b904bda17819fbe880cab267773c6cc51edf Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Wed, 13 Mar 2019 15:08:10 +0100 Subject: [PATCH] give 'density' instead of density_type - the type is given with the class --- xml/readDensity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/readDensity.py b/xml/readDensity.py index 634f054..58908c2 100644 --- a/xml/readDensity.py +++ b/xml/readDensity.py @@ -372,7 +372,7 @@ if (density_type == 'Constant'): process = subprocess.Popen(density_value_cmd.split(), stdout=subprocess.PIPE) density_value_stream, error = process.communicate() density_value = density_value_stream.decode() - constant_density = ConstantProperty(density_type, density_value) + constant_density = ConstantProperty('density', density_value) constant_density.writeAsMediumPropertyToFile(sys.argv[1]) if (density_type == 'TemperatureDependent'): -- GitLab