Skip to content

Commit

Permalink
explicit conversion to int
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkure committed Sep 15, 2024
1 parent 3e11acb commit dbc36a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stytra/stimulation/stimuli/visual.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ def draw_block(self, p, point, w, h):
p.setRenderHint(QPainter.Antialiasing)
p.setBrush(QBrush(QColor(*self.color)))
p.drawRect(
point.x(),
point.y(),
int(point.x()),
int(point.y()),
int(
self.grating_period
/ (2 * max(self._experiment.calibrator.mm_px, 0.0001))
Expand Down

0 comments on commit dbc36a4

Please sign in to comment.