Skip to content

Fix sample script to use correct concore function names#226

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix-sample-script
Feb 9, 2026
Merged

Fix sample script to use correct concore function names#226
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix-sample-script

Conversation

@avinxshKD
Copy link

The sample script.py generated by concore init was using MATLAB-style function names (concore_unchanged, concore_read, concore_write) that don't exist in Python. Changed it to use the actual function names (unchanged, read, write) and added the required initialization pattern from the existing demos

this Fixes #223

@avinxshKD
Copy link
Author

@pradeeban The CI failures are in test_concoredocker.py, this PR only modifies init.py.

The failing tests are catching a path construction bug in concoredocker.py (os.path.join(inpath + str(port), name) should use proper path joining). That fix is already in #219.

Happy to rebase once #219 is merged or I can include that fix here if preferred. Thanks

@pradeeban pradeeban merged commit 0f302de into ControlCore-Project:dev Feb 9, 2026
0 of 4 checks passed
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.

2 participants