Hot: inspect fails for newliy written string variables
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
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.
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()
- Dominant language
- Python
- Stars
- 37
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from pyfar/sofar
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
invalid SOFA files for UTF-8 stringsPossibly taken @f-brinkmann claimed this 28 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Move sofar-related pyfar functionality to sofarMay be free again @f-brinkmann claimed this 92 days ago, and no pull request is open. Openfeature
-
[MAINT] Remove restrcition for Numpy 2.5Possibly taken @f-brinkmann claimed this 28 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 56/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kludex/python-multipart#375 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 3 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 11 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
FuRongJun-1999/dsh-memory#1000 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gcivil-nyu-org/team5-mon-fall26#154 ·
Maintainers usually reply within 1 day