LABSN / expyfun

Experimental paradigm functions.
BSD 3-Clause "New" or "Revised" License
13 stars 21 forks source link

MRG, FIX: Legacy and wrap #410

Closed larsoner closed 4 years ago

larsoner commented 4 years ago
  1. Removes _legacy_setup, which we shouldn't need because it was for old Windows (like Windows 2000) and no longer exists in Pyglet as of Sept 2019.
  2. Adds a workaround for text bugs.

For (2), on master this code:

from expyfun import ExperimentController
with ExperimentController(
        exp_name='CRM corpus example', window_size=(720, 480),
        full_screen=False, participant='foo', session='foo', version='dev',
        output_dir=None) as ec:
    ec.screen_prompt('Report the color and number spoken by the female '
                     'talker.', wrap=True, live_keys=['1'])

Produces:

Screenshot from 2020-03-04 14-23-48

And on this PR:

Screenshot from 2020-03-04 14-22-00

codecov[bot] commented 4 years ago

Codecov Report

Merging #410 into master will not change coverage. The diff coverage is 100%.

@@          Coverage Diff           @@
##           master    #410   +/-   ##
======================================
  Coverage    88.5%   88.5%           
======================================
  Files          49      49           
  Lines        6531    6531           
  Branches     1081    1081           
======================================
  Hits         5780    5780           
  Misses        504     504           
  Partials      247     247