From 0fbd04f474dc7b0490f7ab4295f7c1924ff5b564 Mon Sep 17 00:00:00 2001 From: "Timothy A. Smith" <tasmith4@illinois.edu> Date: Sun, 21 Jul 2019 23:41:38 -0500 Subject: [PATCH] rename data storage dictionary --- input.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/input.py b/input.py index 7f808dc..38b7118 100644 --- a/input.py +++ b/input.py @@ -13,52 +13,52 @@ class FluxDataSingle: self.direction = self.dirs[direction] -uniformData = {} -uniformData["Case a:x"] = FluxDataSingle( +singleData = {} +singleData["Case a:x"] = FluxDataSingle( "2 4 4 4 20,1 1 1 1 5.5", "4 11.2 8 8 46.4,1 2.6 1 1 7.1", "x") -uniformData["Case a:y"] = FluxDataSingle( +singleData["Case a:y"] = FluxDataSingle( "2 4 4 4 20,1 1 1 1 5.5", "4 8 11.2 8 46.4,1 1 2.6 1 7.1", "y") -uniformData["Case a:z"] = FluxDataSingle( +singleData["Case a:z"] = FluxDataSingle( "2 4 4 4 20,1 1 1 1 5.5", "4 8 8 11.2 46.4,1 1 1 2.6 7.1", "z") -uniformData["Case b:x"] = FluxDataSingle( +singleData["Case b:x"] = FluxDataSingle( "1 -1 -1 -1 5.5,2 -4 -4 -4 20", "-1 2.6 1 1 -7.1,-4 11.2 8 8 -46.4", "x") -uniformData["Case b:y"] = FluxDataSingle( +singleData["Case b:y"] = FluxDataSingle( "1 -1 -1 -1 5.5,2 -4 -4 -4 20", "-1 1 2.6 1 -7.1,-4 8 11.2 8 -46.4", "y") -uniformData["Case b:z"] = FluxDataSingle( +singleData["Case b:z"] = FluxDataSingle( "1 -1 -1 -1 5.5,2 -4 -4 -4 20", "-1 1 1 2.6 -7.1,-4 8 8 11.2 -46.4", "z") -uniformData["Case c:x"] = FluxDataSingle( +singleData["Case c:x"] = FluxDataSingle( "2 4 8 12 64,1 1 2 3 11", "4 11.2 16 24 134.4,1 2.6 2 3 12.6", "x") -uniformData["Case c:y"] = FluxDataSingle( +singleData["Case c:y"] = FluxDataSingle( "2 4 8 12 64,1 1 2 3 11", "8 16 35.2 48 268.8,2 2 5.6 6 25.2", "y") -uniformData["Case c:z"] = FluxDataSingle( +singleData["Case c:z"] = FluxDataSingle( "2 4 8 12 64,1 1 2 3 11", "12 24 48 75.2 403.2,3 3 6 10.6 37.8", "z") -uniformData["Case d:x"] = FluxDataSingle( +singleData["Case d:x"] = FluxDataSingle( "1 -1 -2 -3 11,2 -4 -8 -12 64", "-1 2.6 2 3 -12.6,-4 11.2 16 24 -134.4", "x") -uniformData["Case d:y"] = FluxDataSingle( +singleData["Case d:y"] = FluxDataSingle( "1 -1 -2 -3 11,2 -4 -8 -12 64", "-2 2 5.6 6 -25.2,-8 16 35.2 48 -268.8", "y") -uniformData["Case d:z"] = FluxDataSingle( +singleData["Case d:z"] = FluxDataSingle( "1 -1 -2 -3 11,2 -4 -8 -12 64", "-3 3 6 10.6 -37.8,-12 24 48 75.2 -403.2", "z") @@ -70,6 +70,6 @@ uniformData["Case d:z"] = FluxDataSingle( "Case c:x", "Case c:y", "Case c:z", "Case d:x", "Case d:y", "Case d:z"]) def data(request): - return uniformData[request.param] + return singleData[request.param] -- GitLab