Skip to content

With latest numpy update, generates an error on initialization #53

Description

@rabinnh

Using numpy 1.19.2 (I don't believe this occurred with 1.17.*), tzwhere 3.0.3, on initialization get the following error:

/usr/local/lib/python3.8/dist-packages/numpy/core/_asarray.py:83: 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
return array(a, dtype, copy=False, order=order)

This obviously happens on the "WRAP(polys)" calls on lines 62 and 65.

If I comment out the "import numpy" section and declare WRAP and COLLECTION_TYPE as tuples, then quite obviously this error goes away.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions