Replace slycot (Fortran 77) with slicot (C11) via compatibility layer#1
Draft
Copilot wants to merge 1 commit into
Draft
Replace slycot (Fortran 77) with slicot (C11) via compatibility layer#1Copilot wants to merge 1 commit into
Copilot wants to merge 1 commit into
Conversation
Copilot
AI
changed the title
[WIP] Review replacement of slucot with slicot in C11
Replace slycot (Fortran 77) with slicot (C11) via compatibility layer
Jan 31, 2026
Owner
|
@copilot Is it following the same coding pattern as python control codebase? |
Author
The ✅ Follows conventions:
The core functionality and structure are solid—these are documentation/polish items rather than functional issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Replaces slycot (Fortran 77 SLICOT wrapper) with slicot (C11 SLICOT translation) throughout python-control. Uses a compatibility layer to minimize invasive changes.
Changes
Compatibility Layer (
control/slicot_compat.py)_check_info()patternAPI Compatibility Fixes
sb03od: Parameter reorder, omit unused n/m/Q paramsab09ad/ab09md/ab09nd: Add ordsel param, slice reduced-order outputsab13dd: Add fpeak_in param, extract scalars from arraysab13md: Cast ITYPE/NBLOCK to int32tb01pd: Handle tol=None → 0.0sb10ad: Return gamma_out as first valueMigration
@pytest.mark.slycot/@pytest.mark.noslicotExample Usage
Test Results
430 passed, 1 skipped, 1 xfail (test sensitivity)
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.