Expyriment 1.0.0 #275
fladd
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Aug 2025
For installation instructions, please see https://docs.expyriment.org/Installation.html!
New Features:
numpy & mediadecoder
[feature], since all dependencies are installed by default.-Istarts an interactive session--displaydefines which display to show the (fullscreen)window on
--display-resolutionsets the fullscreen resolution to use(overwrites automatically detected maximal display resolution)
--text-sizesets the default experiment text size (as definedin
design.defaults.experiment_text_size)--window-sizesets the default size of the window (when usingwindow-mode)
low_performancewhich allows forother threads to be processed while waiting (at the cost of accuracy)
event_detected_functionto set a function that iscalled as soon as a quit event is detected (but before the end function
is called)
quit_denied_functionto set a function that is calledwhen a user declines the quitting (i.e. presses "n")
event_detected_functionto set a function that iscalled as soon as a quit event is detected (but before the end function
is called)
quit_confirmed_functionto set a function that iscalled when a user confirms the quitting (i.e. presses "y")
quit_denied_functionto set a function that is calledwhen a user declines the quitting (i.e. presses "n")
textandkeyparametersdisplayto set display index for showing screen ondisplay_resolutionto overwrite detected native resolutionaudiosystem_deviceto select audio deviceis_playingto check whether the audio stimulus isplaying
lengthto get the length of the audio stimulustimeto get the current playback timewait_timeto wait until specified playback time is reachedwait_endto wait until the audio stimulus has finishedplaying
pauseto pause (and unpause) playback of the audio stimulusseekto seek to a specified playback timeforwardto forward playback by specified durationrewindto rewind playback by specified duration or to thestart
seek,rewind,forward,wait_timemethods all take multipleconvenient time formats now (e.g. "00:01:30")
audio_backendvideo_audio_backend(OpenGL mode only)
n_framesto get the total number of frames of the videofpsto get the frame rate in frames per secondwait_timeto wait until a certain timeseekto seek to any position in the videoseek,rewind,forward,wait_timemethods all take multipleconvenient time formats now (e.g. "00:01:30")
get_display_resolutionmisc.get_display_infoupdatemethod has newblockingparameter to control blocking onvertical retrace (OpenGL mode only) behaviour per call
getmethod now has parameterclear_event_cueMediaTimefor representing time as used in the context ofmedia playback
misc.get_audio_devicesto get a list of available audiodevices
Changed:
Python 2 support has been removed
Expyriment now only works with Python 3.9 or higher
deprecated and obsolete classes, methods and parameter were removed
experimentin control.startpackage building with flit and pyproject.toml
revision number and build data (
__revision__,__date__) removed fromsource files
Python 2 support has been removed
Expyriment now only works with Python 3.10 or higher
Documentation not shipped with Expyriment anymore (i.e. no offline
documentation available, only online)
rewrite of permutation module
pause_key has been removed
When running in virtual environment, Expyriment settings folder will be local
to that environment
Always use maximal display resolution by default for fullscreen mode (unless
overwritten by control.defaults.display_resolution)
expyriment.control.defaults.openg_glis now calledexpyriment.control.defaults.openglOpenGL mode "3" has been removed: OpenGL mode "2" (default) now does what
"3" used to do (i.e. "alternative blocking")
updated command line interface options:
-0,-g,--no-opengl,-1,-2,-3are deprecated--openglio.TextMenu:
widthis now an optional parameter. If not defined, surfacewidth is based on the widest item in the menu
io.GamePad.wait_press: removed
time.sleep(0.0005)Deprecated io.Screen.get_monitor_resolution and misc.get_monitor_resolution
misc.get_system_info:
as_textoutputrenaming:
misc.py2py3_sort_array()tomisc.string_sort_array()more consistent function naming in
misc:byte2unicode()tobytes_to_unicode()unicode2byte()tounicode_to_bytes()str2unicode()tostr_to_unicode()unicode2str()tounicode_to_str()number2ascii()tonumpad_digit_code_to_ascii()more consistent function naming in
misc.geometry:position2coordinates()toposition_to_coordinates()coordinates2position() tocoordinates_to_position()cartesian2polar()tocartesian_to_polar()position2visual_angle()toposition_to_visual_angle()tuples2points()totuples_to_points()polar2cartesian()topolar_to_cartesian()components with American spelling are now also available in British spelling,
enhancing consistency with the overall spelling in the library:
control.initialize->control.initialisedesign.randomize->design.randomisedesign.Experiment.is_initialized->design.Experiment.is_initialiseddesign.Experiment.bws_factor_randomized->design.Experiment.bws_factor_randomisedcontrol.defaults.initialize_delay->control.defaults.initialise_delayFixed:
line_widthvaluessavewhen using OpenGLmisc.get_display_infoThis discussion was created from the release Expyriment 1.0.0.
Beta Was this translation helpful? Give feedback.
All reactions