numpy v1.24 expires the deprecation on ragged array creation. This had two impacts on EXOSIMS:
1) The DRM2array method in MissionSim sometimes created ragged arrays when parsing keywords allowing both None entries and variable length arrays. This was fixed by catching the value error generated and re-issuing the array command with dtype=object
2) The unit test for scheduleRevisit was erroneously passing sInd as a list instead of an int. This has been fixed.
Type of change
Bug fix (non-breaking change which fixes an issue)
Reference any relevant issues (don't forget the #)
N/A
Checklist before requesting a review
[x] I have verified that all unit tests pass in a clean virtual environment and added new unit tests, as needed
[x] I have run e2eTests and added new test scripts, as needed
[x] I have verified that all docstrings are properly formatted and added new documentation, as needed
Describe your changes
numpy v1.24 expires the deprecation on ragged array creation. This had two impacts on EXOSIMS: 1) The
DRM2array
method inMissionSim
sometimes created ragged arrays when parsing keywords allowing both None entries and variable length arrays. This was fixed by catching the value error generated and re-issuing the array command withdtype=object
2) The unit test forscheduleRevisit
was erroneously passingsInd
as a list instead of an int. This has been fixed.Type of change
Reference any relevant issues (don't forget the #)
N/A
Checklist before requesting a review
e2eTests
and added new test scripts, as needed