nanograv / enterprise_extensions

A set of extension codes, utilities, and scripts for the enterprise PTA analysis framework.
MIT License
26 stars 59 forks source link

HyperModel no longer works in numpy version 1.24 #201

Closed AaronDJohnson closed 1 year ago

AaronDJohnson commented 1 year ago

Ragged array creation will now always raise a ValueError unless dtype=object is passed. This includes very deeply nested sequences.`

The creation of a HyperModel previously resulted in a deprecation warning:

VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.

This has now been changed to result in an error, and therefore we need to change the way the HyperModel is created to avoid this issue if we want to stay up to date with numpy.

AaronDJohnson commented 1 year ago

Fixed with #202