Skip to content

Fix double wrap by NTNDArray - #54

Open
Monarda wants to merge 2 commits into
mainfrom
53-fix-double-wrap-of-initial-value-in-sharedpvopen
Open

Fix double wrap by NTNDArray#54
Monarda wants to merge 2 commits into
mainfrom
53-fix-double-wrap-of-initial-value-in-sharedpvopen

Conversation

@Monarda

@Monarda Monarda commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This is a bug which exists in all the NT types but only blows up in NTNDArray. Because of the implementation it tries to wrap any values passed into open() twice. NTScalars, NTEnums, and NTTables just no-op the second wrap but NTNDArray has a different implementation involving numpy and instead crashes out.

This PR includes a pair of regression tests for thread and asyncio and the simple fix in server/raw.py.

… the desired behaviour; include regression tests
@Monarda
Monarda requested a review from aqshafei July 13, 2026 07:55
@Monarda Monarda self-assigned this Jul 13, 2026
@Monarda Monarda linked an issue Jul 13, 2026 that may be closed by this pull request
@Monarda Monarda changed the title Fix double wrap in NTNDArray Fix double wrap by NTNDArray Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix double wrap of initial value in SharedPV.open()

1 participant