Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warnings with latest numpy (1.10) #6

Closed
fmaussion opened this issue Oct 16, 2015 · 1 comment
Closed

Deprecation warnings with latest numpy (1.10) #6

fmaussion opened this issue Oct 16, 2015 · 1 comment

Comments

@fmaussion
Copy link
Member

From the travis log:

......../home/travis/build/OGGM/oggm/oggm/prepro/gis.py:209: DeprecationWarning: non integer (and non boolean) array-likes will not be accepted as indices in the future
  glacier_mask[y, x] = 0  # on the nunataks, no
/home/travis/build/OGGM/oggm/oggm/prepro/gis.py:211: DeprecationWarning: non integer (and non boolean) array-likes will not be accepted as indices in the future
  glacier_mask[ext_yx] = 1
/home/travis/build/OGGM/oggm/oggm/prepro/gis.py:212: DeprecationWarning: non integer (and non boolean) array-likes will not be accepted as indices in the future
  glacier_ext[ext_yx] = 1
/home/travis/build/OGGM/oggm/oggm/prepro/centerlines.py:457: DeprecationWarning: non integer (and non boolean) array-likes will not be accepted as indices in the future
  zoutline = topo[ext_yx]
/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/skimage/graph/mcp.py:89: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  return m.traceback(end), costs[end]
/home/travis/build/OGGM/oggm/oggm/tests/test_prepro.py:223: DeprecationWarning: non integer (and non boolean) array-likes will not be accepted as indices in the future
  my_mask[ext_yx] = 1
/home/travis/build/OGGM/oggm/oggm/tests/test_prepro.py:252: DeprecationWarning: non integer (and non boolean) array-likes will not be accepted as indices in the future
  kien_mask[ext_yx] = 1
../home/travis/build/OGGM/oggm/oggm/prepro/centerlines.py:577: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  heigts.append(topo[head.y, head.x])
.../home/travis/build/OGGM/oggm/oggm/prepro/geometry.py:471: DeprecationWarning: non integer (and non boolean) array-likes will not be accepted as indices in the future
  costgrid[y, x] *= cost_factor
/home/travis/build/OGGM/oggm/oggm/prepro/geometry.py:683: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  widths[i0:i1] = np.NaN
./home/travis/build/OGGM/oggm/oggm/prepro/climate.py:137: DeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future
  time = time[p0:p1+1]
/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/netCDF4/utils.py:359: DeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future
  beg, end, inc = e.indices(length)
.............
@fmaussion
Copy link
Member Author

Addressed by #15

pat-schmitt added a commit to pat-schmitt/oggm that referenced this issue Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant