From e0eb227cd77550d7f34521406b8ab77017183134 Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Thu, 11 Jul 2024 15:46:28 +0200 Subject: progress --- modeling/model_env.py | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'modeling/model_env.py') diff --git a/modeling/model_env.py b/modeling/model_env.py index 473995e..fd262c6 100644 --- a/modeling/model_env.py +++ b/modeling/model_env.py @@ -1,31 +1,42 @@ #!/usr/bin/env python3 -def get_env(): +def generate_environments(): envs = [] screen = {} + generate_variables(screen) + # generate_procedures(screen) + envs.append(screen) + + return envs + + +def generate_procedures(screen): + screen["Procedure1"] = {"text": "proc1", "position": (400, 100)} + screen["Procedure2"] = {"text": "proc2", "position": (400, 200)} + screen["Procedure3"] = {"text": "proc3", "position": (400, 300)} + screen["Procedure4"] = {"text": "proc4", "position": (400, 400)} + screen["Procedure5"] = {"text": "proc5", "position": (400, 500)} + screen["ProcedureOverall"] = {"text": "proc_overall", "position": (400, 500)} + + +def generate_variables(screen): # Variables screen["Algen"] = {"text": "Algen", "position": (100, 100)} screen["AlgenVar"] = {"text": "3", "position": (100, 200)} screen["Mineralien"] = {"text": "Mineralien", "position": (200, 100)} - screen["MineralienVar"] = {"text": "2", "position": (200, 200)} + screen["MineralienVar"] = {"text": "9", "position": (200, 200)} screen["Gifte"] = {"text": "Gifte", "position": (300, 100)} screen["GifteVar1"] = {"text": "3", "position": (300, 200)} - screen["GifteVar2"] = {"text": "8", "position": (300, 300)} - screen["GifteVar3"] = {"text": "1", "position": (300, 400)} + screen["GifteVar2"] = {"text": "1", "position": (300, 300)} + screen["GifteVar3"] = {"text": "8", "position": (300, 400)} screen["GifteVar4"] = {"text": "6", "position": (300, 500)} - screen["Sandstein"] = {"text": "Sandstein", "position": (400, 100)} screen["SandsteinVar1"] = {"text": "3", "position": (400, 200)} screen["SandsteinVar2"] = {"text": "4", "position": (400, 300)} screen["SandsteinVar3"] = {"text": "5", "position": (400, 400)} screen["SandsteinVar4"] = {"text": "6", "position": (400, 500)} - - - envs.append(screen) - - return envs -- cgit v1.2.3