Skip to content

Commit

Permalink
Merge pull request #418 from eoyilmaz/417-attributeerror-module-numpy…
Browse files Browse the repository at this point in the history
…-has-no-attribute-int32-did-you-mean-int32

417 attributeerror module numpy has no attribute int32 did you mean int32
  • Loading branch information
eoyilmaz authored Oct 15, 2024
2 parents 3ee7cca + 4e1fd9b commit d5470c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ If applicable, add screenshots to help explain your problem.

**Versions (please complete the following information):**
- OS: [e.g. Windows, MacOS, Linux]
- Python Version [e.g. 3.9, 3.10]
- ArgyllCMS Version [e.g. 3.0.2, 3.1.0, 3.2.0]
- DisplayCAL Version [e.g. 3.9.12]
- Python Version: [e.g. 3.9, 3.10]
- ArgyllCMS Version: [e.g. 3.0.2, 3.1.0, 3.2.0]
- DisplayCAL Version: [e.g. 3.9.12]

**Additional context**
Add any other context about the problem here.
12 changes: 6 additions & 6 deletions DisplayCAL/wxenhancedplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def _circle(self, dc, coords, size=1):
wh = 5.0 * size
rect = np.zeros((len(coords), 4), float) + [0.0, 0.0, wh, wh]
rect[:, 0:2] = coords - [fact, fact]
dc.DrawEllipseList(rect.astype(np.Int32))
dc.DrawEllipseList(rect.astype(np.int32))

def _dot(self, dc, coords, size=1):
dc.DrawPointList(coords)
Expand All @@ -678,7 +678,7 @@ def _square(self, dc, coords, size=1):
wh = 5.0 * size
rect = np.zeros((len(coords), 4), float) + [0.0, 0.0, wh, wh]
rect[:, 0:2] = coords - [fact, fact]
dc.DrawRectangleList(rect.astype(np.Int32))
dc.DrawRectangleList(rect.astype(np.int32))

def _triangle(self, dc, coords, size=1):
shape = [
Expand All @@ -689,7 +689,7 @@ def _triangle(self, dc, coords, size=1):
poly = np.repeat(coords, 3, 0)
poly.shape = (len(coords), 3, 2)
poly += shape
dc.DrawPolygonList(poly.astype(np.Int32))
dc.DrawPolygonList(poly.astype(np.int32))

def _triangle_down(self, dc, coords, size=1):
shape = [
Expand All @@ -700,19 +700,19 @@ def _triangle_down(self, dc, coords, size=1):
poly = np.repeat(coords, 3, 0)
poly.shape = (len(coords), 3, 2)
poly += shape
dc.DrawPolygonList(poly.astype(np.Int32))
dc.DrawPolygonList(poly.astype(np.int32))

def _cross(self, dc, coords, size=1):
fact = 2.5 * size
for f in [[-fact, -fact, fact, fact], [-fact, fact, fact, -fact]]:
lines = np.concatenate((coords, coords), axis=1) + f
dc.DrawLineList(lines.astype(np.Int32))
dc.DrawLineList(lines.astype(np.int32))

def _plus(self, dc, coords, size=1):
fact = 2.5 * size
for f in [[-fact, 0, fact, 0], [0, -fact, 0, fact]]:
lines = np.concatenate((coords, coords), axis=1) + f
dc.DrawLineList(lines.astype(np.Int32))
dc.DrawLineList(lines.astype(np.int32))


class PlotGraphics:
Expand Down

0 comments on commit d5470c0

Please sign in to comment.