Naming and Consistency Planning for CTModels.jl#242
Conversation
- Refactor test/runtests.jl to use CTBase.run_tests with glob patterns - Add test/coverage.jl for coverage post-processing - Extract docs/api_reference.jl following CTBase pattern - Refactor docs/make.jl with DocumenterReference.reset_config() - Fix test/io/test_ext_exceptions.jl to use dummy types for stub testing - Update .gitignore for test output files
🎯 Action Plan: PR #242 - Naming and Consistency Planning for CTModels.jlDate: 2025-12-17 📋 OverviewIssue Summary: Issue #169 "[Dev] Naming and consistency" requests adding alias functions so both PR Summary: This PR implements:
Status: ✅ Implementation Complete - All tests passing 🎯 Implementation Completed✅ T1: Time aliases in
|
| File | Changes |
|---|---|
src/ocp/times.jl |
Added 4 time aliases + docstrings |
src/ocp/objective.jl |
Added 2 cost aliases + docstrings |
test/ocp/test_times.jl |
Added tests for time aliases |
test/ocp/test_objective.jl |
Added tests for cost aliases |
💡 Next Steps
- Commit changes: The implementation is complete and verified.
- Push to PR: Update the PR with the new commits.
- Wait for CI: Ensure all CI checks pass.
- Merge: Once CI is green, the PR can be merged to close issue [Dev] Naming and consistency #169.
Added is_* style aliases for time predicates: - is_initial_time_fixed, is_initial_time_free - is_final_time_fixed, is_final_time_free Added is_* style aliases for cost definitions: - is_mayer_cost_defined - is_lagrange_cost_defined These aliases improve consistency between has_* and is_* naming conventions. Also included corresponding regression tests.
Issue #169.