Skip to content

[#632] Fix SWIG incompatibility between dataFileToViz and vizInterface#1382

Merged
schaubh merged 4 commits into
AVSLab:developfrom
sassy-asjp:fix/bsk-632-dataFileToViz-reregister-fix
May 1, 2026
Merged

[#632] Fix SWIG incompatibility between dataFileToViz and vizInterface#1382
schaubh merged 4 commits into
AVSLab:developfrom
sassy-asjp:fix/bsk-632-dataFileToViz-reregister-fix

Conversation

@sassy-asjp
Copy link
Copy Markdown
Contributor

Description

dataFileToViz SWIG file defines SWIG type wrappers that are incompatible to the ones defined in vizInterface. Some combinations of dataFileToViz and vizInterface imports will thus cause usage of one to fail due to generic SwigPyObjects getting emitted instead of the proper wrappers.

I modified the SWIG wrappers to be compatible.

Verification

The failing combination of tests now pass

Documentation

None

Future work

None

…terface

dataFileToViz SWIG file defines SWIG type wrappers that are incompatible
to the ones defined in vizInterface. Some combinations of dataFileToViz
and vizInterface imports will thus cause usage of one to fail due to
generic SwigPyObjects getting emitted instead of the proper wrappers.
@sassy-asjp sassy-asjp requested a review from a team as a code owner May 1, 2026 01:40
schaubh added 2 commits April 30, 2026 20:46
Add a fresh-interpreter unit test that verifies dataFileToViz and
vizInterface shared ThrClusterMap wrappers work in both import orders.
Also add the release note snippet for the PR.
@schaubh schaubh self-requested a review May 1, 2026 02:57
@schaubh schaubh self-assigned this May 1, 2026
@schaubh schaubh added bug Something isn't working enhancement New feature or request labels May 1, 2026
@schaubh schaubh added this to Basilisk May 1, 2026
@schaubh schaubh moved this to 👀 In review in Basilisk May 1, 2026
@schaubh
Copy link
Copy Markdown
Contributor

schaubh commented May 1, 2026

Thanks @sassy-asjp for the solution to this issue. I added a unit test to check this behavior, and added a release notes snippet. Could you please check my unit test to ensure you agree with this test?

@sassy-asjp
Copy link
Copy Markdown
Contributor Author

@schaubh

Thanks, I think that makes sense!

@schaubh schaubh merged commit 4a21df9 into AVSLab:develop May 1, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Basilisk May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Importing dataFileToViz can break other Viz related functionality on newer SWIG

2 participants