Skip to content

Maintenance / Minor changes#952

Merged
bcoconni merged 7 commits intoJSBSim-Team:masterfrom
bcoconni:Maintenance
Sep 1, 2023
Merged

Maintenance / Minor changes#952
bcoconni merged 7 commits intoJSBSim-Team:masterfrom
bcoconni:Maintenance

Conversation

@bcoconni
Copy link
Member

This PR brings a number of minor changes:

  • Fixes a number of typos.
  • Fixes the list of supported versions of the Python interpreter in README.md.
  • The last parameter of FGInitialCondition::Load() is renamed from useStoredPath to useAircraftPath which, I think, is more explicit.
  • Adds a helper method FGPropertyManager::Unbind() that takes a std::shared_ptr argument. This avoids explicitly calling the method std::shared_ptr::get() when using Unbind() i.e. this is syntactic sugar 😃
  • Fixes the function FindDifferences in JSBSim_utils.py as the DataFrames.lookup method is now obsolete in the library pandas 2.0.
  • The sleep time of the method getOutput has been increased from 0.5s to 1.0s in the test case TestInputSocket.py. This is to avoid this test to randomly fail with MSVC when our CI workflow is executed on GitHub.

@codecov
Copy link

codecov bot commented Aug 26, 2023

Codecov Report

Merging #952 (424a47a) into master (e4aa2a9) will increase coverage by 0.01%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #952      +/-   ##
==========================================
+ Coverage   24.89%   24.90%   +0.01%     
==========================================
  Files         168      168              
  Lines       18887    18890       +3     
==========================================
+ Hits         4701     4704       +3     
  Misses      14186    14186              
Files Changed Coverage Δ
src/FGFDMExec.cpp 39.16% <0.00%> (ø)
src/initialization/FGInitialCondition.cpp 45.33% <0.00%> (ø)
src/initialization/FGInitialCondition.h 74.71% <ø> (ø)
src/math/FGParameterValue.h 100.00% <ø> (ø)
src/models/FGInertial.cpp 62.12% <0.00%> (ø)
src/models/FGInertial.h 78.57% <ø> (ø)
src/input_output/FGPropertyManager.cpp 52.89% <100.00%> (ø)
src/input_output/FGPropertyManager.h 86.20% <100.00%> (-1.07%) ⬇️

... and 1 file with indirect coverage changes

@seanmcleod
Copy link
Member

All looks good to me.

@bcoconni
Copy link
Member Author

Good !

I've also added some further changes to the unit tests:

  • The method GetGamma() has been removed from the class DummyAtmosphere in the test FGAtmosphereTest as it was a duplication of FGAtmosphere::SHRatio.
  • The test FGauxiliaryTest now calls FGPropertyManager::Unbind() to avoid having messages about properties already being tied.
    • The class name in FGAuxiliaryTest has also been renamed FGAuxiliaryTest instead of FGAtmosphereTest (the code was obviously copied from FGAtmosphereTest 😉).

@bcoconni bcoconni merged commit 11146b8 into JSBSim-Team:master Sep 1, 2023
@bcoconni bcoconni deleted the Maintenance branch September 2, 2023 11:20
bcoconni added a commit to bcoconni/jsbsim that referenced this pull request Sep 2, 2023
* Remove useless parameters.
* Increase the sleep time in `TestInputSocket.py` to avoid failures with MSVC.
* Fix the deprecated method `lookup` from pandas.
* A couple of small improvements to `FGPropertyManager::Unbind()`.
* Fix the supported versions of the Python language in `README.md`
* Improvements to some unit tests.
* Fix a number of small details.
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