Skip to content

Hot: inspect fails for newliy written string variables #129

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()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions