Skip to content

[#632] Fix SWIG re-registration bug in dataFileToViz#1380

Closed
sassy-asjp wants to merge 1 commit into
AVSLab:developfrom
sassy-asjp:fix/bsk-632-dataFileToViz-reregister-fix
Closed

[#632] Fix SWIG re-registration bug in dataFileToViz#1380
sassy-asjp wants to merge 1 commit into
AVSLab:developfrom
sassy-asjp:fix/bsk-632-dataFileToViz-reregister-fix

Conversation

@sassy-asjp
Copy link
Copy Markdown
Contributor

@sassy-asjp sassy-asjp commented Apr 30, 2026

  • Tickets addressed: bsk-632
  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

dataFileToViz SWIG file unintentionally caused SWIG type wrappers incompatible to the vizInterface ones to be generated. 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 Python wrappers.

Instead of just including the vizStructures.h inside dataFileToViz.i, I included declared just what was needed for the SWIG build.

Verification

Failing combinations of tests now pass, for example pytest -vv tests/test_scenarioAttLocPoint.py tests/test_scenarioDataToViz.py tests/test_scenarioAttitudeConstrainedManeuver.py now passes.

Documentation

None

Future work

None

@sassy-asjp sassy-asjp requested a review from a team as a code owner April 30, 2026 13:03
dataFileToViz SWIG file unintentionally caused SWIG type wrappers
incompatible to the vizInterface ones to be generated. 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 Python wrappers.
@sassy-asjp sassy-asjp force-pushed the fix/bsk-632-dataFileToViz-reregister-fix branch from 29c6468 to d74a7bf Compare April 30, 2026 13:22
@sassy-asjp
Copy link
Copy Markdown
Contributor Author

Ah, actually this fix doesn't actually work for everything.

At least I think the root cause is clear. I'll think a bit more about the correct fix.

@sassy-asjp sassy-asjp closed this Apr 30, 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.

1 participant