Skip to content

Commit

Permalink
Bugfix: whites tries to import stimuli which causes problems on Python2
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Oct 4, 2021
1 parent af219e6 commit a0a12cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stimuli/illusions/whites.py
Expand Up @@ -2,10 +2,8 @@
import matplotlib.pyplot as plt
import math

import stimuli
from stimuli.utils import degrees_to_pixels, pad_img, get_annulus_mask
from stimuli.Stimulus import Stimulus
from stimuli import illusions
from stimuli.illusions.square_wave import square_wave


Expand Down Expand Up @@ -795,7 +793,7 @@ def domijan2015_white():


if __name__ == "__main__":
stim = stimuli.illusions.whites.white()
stim = white()
plt.subplot(4, 2, 1)
plt.imshow(stim.img, cmap="gray")
plt.subplot(4, 2, 2)
Expand Down

0 comments on commit a0a12cc

Please sign in to comment.