Hot: inspect fails for newliy written string variables
Open
Nobody has claimed this yet.
hot
- Dominant language
- Python
- Stars
- 34
- Forks
- 4
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
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()
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided reproduction using Sofa.add_variable and Sofa.inspect, then compare the in-memory object with the object returned after write_sofa/read_sofa. Trace why inspect handles the round-tripped string variable but not the newly created one; done means inspect succeeds for the in-memory string variable without requiring serialization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100