Skip to content

Commit

Permalink
Fix bug where angle is taken from the same output as module_type (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
royderegt authored and tckarenchiang committed Nov 12, 2024
1 parent fcedd3e commit 60805d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __evaluate_cppn(
The output ranges between [0,1] and we have 4 rotations available (0, 90, 180, 270).
"""
angle = max(0, int(outputs[0] * 4 - 1e-6)) * (np.pi / 2.0)
angle = max(0, int(outputs[1] * 4 - 1e-6)) * (np.pi / 2.0)

return module_type, angle

Expand Down

0 comments on commit 60805d3

Please sign in to comment.