dsavransky / EXOSIMS

Simulator for exoplanet direct imaging space missions
BSD 3-Clause "New" or "Revised" License
25 stars 35 forks source link

addressing numpy deprecation of ragged array creation #331

Closed dsavransky closed 1 year ago

dsavransky commented 1 year ago

Describe your changes

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.

Also adds minimum package versions for most dependencies.

Type of change

Reference any relevant issues (don't forget the #)

Checklist before requesting a review