Maintenance scheduled for Thursday, January 28th at 15:00 MST. Expected downtime <1 hour.

Merge branch 'validator-missing-key' into 'master'

Added results_type key

See merge request mdomanski/fluegg!30
parents e6aad0e0 f8462747
...@@ -193,7 +193,8 @@ class SimulationParameters: ...@@ -193,7 +193,8 @@ class SimulationParameters:
'varying_dd', 'varying_dd',
'density', 'density',
'diameter', 'diameter',
'sim_name'] 'sim_name',
'results_type']
# create dictionary from the valid keys # create dictionary from the valid keys
init_values = [None] * len(valid_keys) init_values = [None] * len(valid_keys)
...@@ -399,6 +400,13 @@ class SimulationParameters: ...@@ -399,6 +400,13 @@ class SimulationParameters:
else: else:
raise ValueError('sim_name must be type str') raise ValueError('sim_name must be type str')
# Results type
elif key == "results_type":
if isinstance(value, str):
return
else:
raise ValueError('results_type must be type str')
def generate_sim(self): def generate_sim(self):
d = self.get_dict() d = self.get_dict()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment