Skip to content

Commit

Permalink
BUGFIX: present parameters even if metadata information is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Jul 10, 2024
1 parent ca4a3d6 commit deb02cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def __create_new_value_entry(self, param_name, param, # pylint: disable=too-man

bitmask_dict = None
value_str = format(param.value, '.6f').rstrip('0').rstrip('.')
if 'values' in param_metadata and param_metadata['values'] and \
if param_metadata and 'values' in param_metadata and param_metadata['values'] and \
value_str in param_metadata['values']:
selected_value = param_metadata['values'].get(value_str, None)
new_value_entry = PairTupleCombobox(self.view_port, param_metadata['values'],
Expand Down

0 comments on commit deb02cb

Please sign in to comment.