Skip to content

Commit

Permalink
Update visualization script, typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkreissl committed Mar 12, 2020
1 parent e1fca0a commit d73ba3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions samples/visualization_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ def decreaseTemp():


# Register button callbacks
visualizer.keyboardManager.register_button(
visualizer.keyboard_manager.register_button(
visualization_opengl.KeyboardButtonEvent(
'u', visualization_opengl.KeyboardFireEvent.Hold, increaseTemp))
visualizer.keyboardManager.register_button(
visualizer.keyboard_manager.register_button(
visualization_opengl.KeyboardButtonEvent(
'j', visualization_opengl.KeyboardFireEvent.Hold, decreaseTemp))

Expand Down
2 changes: 1 addition & 1 deletion src/python/espressomd/visualization_opengl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ class openGLLive:
return np.array(
self.specs['particle_charge_colors'][0]) * c + (1 - c) * np.array([1, 1, 1])
else:
c = 1.0 * q / self.maxq
c = 1.0 * q / self.max_q

return np.array(
self.specs['particle_charge_colors'][1]) * c + (1 - c) * np.array([1, 1, 1])
Expand Down

0 comments on commit d73ba3b

Please sign in to comment.