pytzwhere icon indicating copy to clipboard operation
pytzwhere copied to clipboard

VisibleDeprecationWarning

Open kovar-ursa opened this issue 3 years ago • 1 comments

miniforge3/envs/a50-dev/lib/python3.9/site-packages/tzwhere/tzwhere.py:65: 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.self.unprepTimezoneNamesToPolygons[tzname] = WRAP(polys)

kovar-ursa avatar Dec 18 '21 21:12 kovar-ursa

ValueError on numpy==1.24.1

  File ".../venv/lib/python3.8/site-packages/tzwhere/tzwhere.py", line 62, in __init__
    self.timezoneNamesToPolygons[tzname] = WRAP(polys)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (1, 2) + inhomogeneous part.

John2013 avatar Dec 29 '22 06:12 John2013