Improvements to the Python module#1275
Merged
agodemar merged 3 commits intoJSBSim-Team:masterfrom May 8, 2025
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1275 +/- ##
==========================================
- Coverage 24.77% 24.76% -0.01%
==========================================
Files 169 169
Lines 19598 19598
==========================================
- Hits 4855 4854 -1
- Misses 14743 14744 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bcoconni
added a commit
to bcoconni/jsbsim
that referenced
this pull request
Jun 7, 2025
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.
A number of improvements to the Python module:
get_attribute()andset_attribute()to the Python classFGPropertyNodeto give access to the C++ methodsSGPropertyNode::setAttribute()andSGPropertyNode::getAttribute(). These methods are useful to check the property access to a property: either R/W or read-only or write-only.get_aircraft_name()to the Python classFGAircraftwhich allows to get the full aircraft name (the one specified in the XML element<fdm_config name="..."/>).FGPropertyNode. Currently the only way to check equality between two property nodes instances is to compare their fully qualified names (viaFGPropertyNode.get_fully_qualified_name()which neither fast nor convenient). This is allowing to check if a node is contained in a list of nodes and that kind of things.