Skip to content

State variable, string without default value #279

@TeikiRaihauti

Description

@TeikiRaihauti

If a state variable, with the datatype "string" has no default value (in the XML default =""). The pyx can't be generated.

Can be fixed in "src/pycropml/render_cyml.py", in function default_value(inp) :

  • Add :
    elif type_ == "STRING": return "''" (line 480)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions