Skip to content

Hot: inspect fails for newliy written string variables #129

@ahms5

Description

@ahms5

inspect fails for newliy written string variables

    sofa_test = sf.Sofa('GeneralTF')
    sofa_test.add_variable('TestString', 'test', 'string', 'S')
    sofa_test.inspect()

in this case sofa_test.inspect()fails, since 'test' does not have size attribute.
Not sure were to fix this, otherwise I would have opend a PR directly.

and this would work:

    sofa_test = sf.Sofa('GeneralTF')
    sofa_test.add_variable('TestString', 'test', 'string', 'S')
    sf.write_sofa(sofa_test, 'test.sofa')
    sofa_test = sf.read_sofa('test.sofa')
    sofa_test.inspect()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions