Skip to content

Commit

Permalink
Fix bugs from previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Aug 30, 2024
1 parent 74a099e commit 4b2d479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pipeline/templates/types_enumeration_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ classdef Types < openminds.abstract.TypesEnumeration
enumeration
None('None')
{%- for type in types %}
{{type.name}}({{type.class_name}})
{{type.name}}("{{type.class_name}}")
{%- endfor %}
end

Expand Down
4 changes: 2 additions & 2 deletions pipeline/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def _get_display_label_method_expression(schema_short_name, property_names):
str_formatter = this_config['stringFormat']

if not prop_names:
return "str = '<missing name>'"
return "str = '<missing name>';"

if not isinstance(prop_names, list):
prop_names = [prop_names]
Expand Down Expand Up @@ -434,7 +434,7 @@ def _get_display_label_method_expression(schema_short_name, property_names):
return "str = obj.name;"
else:
warnings.warn(f"No display label method found for {schema_short_name}.")
return "str = '<missing name>'"
return "str = '<missing name>';"

def _create_property_validator_functions(name, property_info):

Expand Down

0 comments on commit 4b2d479

Please sign in to comment.