USRA-STI / gdt-fermi

Gamma-ray Data Tools - Fermi mission components
Apache License 2.0
3 stars 7 forks source link

Handle recent matplotlib and numpy API changes #42

Closed joshuarwood closed 3 months ago

joshuarwood commented 3 months ago

This pull request addresses the following API changes for third party dependencies:

This was tested with numpy v1.26.0 and v2.0.1 to ensure backwards compatibility. All unit tests passed in both numpy versions.

I added a new unit test tests/missions/fermi/test_plot.py to help catch future matplotlib API changes.

I reduced the relative tolerance on two unit tests inside tests/missions/fermi/gbm/dol/test_legacy_functions.py down to 1e-2 (1%). This was the tolerance I originally intended for them. We didn't catch them in an earlier round of testing. They cropped up here because float32 support is handled a little different on my new mac.

Not sure why some of my older commits from Aug 6 & 7 appear in the commit log. They were already added to main in PR #38.