Skip to content

Commit

Permalink
Merge pull request #11 from MaxBo/feature/numpy2.0
Browse files Browse the repository at this point in the history
remove unnessesary cimport numpy
  • Loading branch information
MaxBo authored Aug 21, 2024
2 parents 7df9d17 + e728673 commit f46eaf4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

### Removed

## [1.6.3] - 2024-08-21

### Added
### Fixed
### Changed
- removed unnessesary cimports of numpy

## [1.6.2] - 2024-08-19

Expand All @@ -29,6 +35,7 @@



[unreleased]: https://github.com/MaxBo/cythonarrays/compare/v1.6.2...HEAD
[unreleased]: https://github.com/MaxBo/cythonarrays/compare/v1.6.3...HEAD
[1.6.3]: https://github.com/MaxBo/cythonarrays/compare/v1.6.2...v1.6.3
[1.6.2]: https://github.com/MaxBo/cythonarrays/compare/v1.6.1...v1.6.2
[1.6.1]: https://github.com/MaxBo/cythonarrays/releases/tag/v1.6.1
2 changes: 1 addition & 1 deletion cythonarrays/src/cythonarrays/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.6.2'
__version__ = '1.6.3'
2 changes: 1 addition & 1 deletion cythonarrays/src/cythonarrays/array_shapes.pxd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
cimport numpy as np

cimport cython

from .numpy_types cimport np_floating
Expand Down
4 changes: 1 addition & 3 deletions cythonarrays/src/cythonarrays/array_shapes.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


import numpy as np
cimport numpy as np
oldsettings = np.seterr(divide='ignore')

from .numpy_types import typedict
Expand Down Expand Up @@ -141,8 +140,7 @@ cdef class ArrayShapes(object):

elif msg.startswith('Buffer dtype mismatch'):
arr, np_dtype = self._change_dtype(msg, arr.shape, default)
#print intern_name, arr.dtype, np_dtype, arr.itemsize
#print msg

try:
setattr(self, intern_name, arr)
except ValueError as err:
Expand Down
1 change: 0 additions & 1 deletion cythonarrays/src/cythonarrays/numpy_types.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Arrays/Memoryviews
"""

cimport cython
cimport numpy as np

ctypedef cython.int long32

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

cimport cython
cimport numpy as np


cdef class Example():
"""
Expand Down

0 comments on commit f46eaf4

Please sign in to comment.