Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Basilisk for latest support software #454

Merged
merged 5 commits into from
Oct 9, 2023

Conversation

schaubh
Copy link
Contributor

@schaubh schaubh commented Oct 8, 2023

  • Tickets addressed: bsk-453
  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

While Basilisk would compile with the latest python packages and Xcode (v15), at run time errors or warning of deprecation would appear. In particular, this PR addresses

  1. on macOS with Xcode 15, some spice calls causing an error
  2. newest matplotlib 3.8 treating TeX string labeling issues as errors
  3. new numpy causing lots of deprecation warnings about "Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future."

The macOS cspice library was rebuilt with Xcode 15 and now the spice errors are gone. I checked for backwards compatibility with Xcode 14 and all was good.
This PR fixes all the plotting label strings that contained TeX errors. Before matplotlib closed missing brackets with TeX silently, but now it is throwing an error. All TeX strings are now correct.
Finally, test scripts were updated to be fully compliant with the latest numpy.

Verification

Did a clean build and ran full suite of pytest with the latest version of pytest. All tests are passing again without failures, warnings or depreciations.

Documentation

Updated release notes on the newly compiled version of cspice for macOS.

Future work

None

@schaubh schaubh added bug Something isn't working build Build system or compilation enhancement labels Oct 8, 2023
@schaubh schaubh self-assigned this Oct 8, 2023
@schaubh schaubh linked an issue Oct 8, 2023 that may be closed by this pull request
Copy link
Contributor

@joaogvcarneiro joaogvcarneiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a simple comment for one of the functions. Can you also check the commit messages for the last two commits? The last one, in particular, looks odd.

This addresses errors that appeared when calling some spice commands.
Newer version of matplotlib is more strict in correct uses of brackets in TeX
With the latest version of numpy this error appears

	Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future.

These fixes correct this issue and pytest runs again without lots of depreciation warnings.
@schaubh schaubh force-pushed the feature/BSK-453_update_support branch from 6a76711 to bdf4faa Compare October 8, 2023 19:00
@schaubh schaubh changed the title Update support for latest support software Update Basilisk for latest support software Oct 8, 2023
@schaubh schaubh requested a review from joaogvcarneiro October 9, 2023 15:28
@schaubh schaubh merged commit 94f0590 into develop Oct 9, 2023
@schaubh schaubh deleted the feature/BSK-453_update_support branch October 9, 2023 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Build system or compilation enhancement
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Building BSK with Xcode 15 make test_oeStateEphem.py fail
2 participants