Skip to content
Snippets Groups Projects
Commit 79fd10f2 authored by Florian Schültke's avatar Florian Schültke
Browse files

Merge branch 'fix/tank_design_liquid_hydrogen' into 'main'

Fix tank design LH2

See merge request !253
parents 148a17bf cfafb83d
No related branches found
No related tags found
1 merge request!253Fix tank design LH2
......@@ -53,9 +53,12 @@ def method_liquid_hydrogen(paths_and_names, routing_dict, dict_ac_exchange, dict
""" Preparation. """
# Check if any values from aircraft exchange file are missing.
# Since no tank information is available in the first loop, these values are excluded from the check.
values_to_exclude = ['tank_designator', 'tank_cross_section_name', 'tank_cross_section_position',
'additional_fuselage_length']
for key, value in dict_ac_exchange.items():
# Check, if any value is 'None'.
if value is None:
if (key not in values_to_exclude) and (value is None):
# If any value is 'None', the tank design is impossible and the program aborted.
runtime_output.critical('Error: Tank design not possible due to missing parameter in aircraft exchange '
+ 'file (' + key + ')! '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment