forked from psychopy/psychopy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/psychopy/psychopy into dev
- Loading branch information
Showing
24 changed files
with
377 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
# Part of the PsychoPy library | ||
# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. | ||
# Distributed under the terms of the GNU General Public License (GPL). | ||
|
||
# Acknowledgements: | ||
# This code was initially written by Jon Peirce. | ||
# with substantial additions by Andrew Schofield | ||
# CRS Ltd provided support as needed. | ||
# Shader code for mono++ and color++ modes was based on code in Psychtoolbox | ||
# (Kleiner) but does not actually use that code directly | ||
|
||
import psychopy.logging as logging | ||
|
||
try: | ||
from psychopy_crs.bits import ( | ||
BitsSharp, | ||
BitsPlusPlus, | ||
DisplayPlusPlus, | ||
DisplayPlusPlusTouch) | ||
except (ModuleNotFoundError, ImportError): | ||
logging.error( | ||
"Support for Cambridge Research Systems Bits#, Bits++, Display++ and " | ||
"Display++ Touch hardware is not available this session. Please " | ||
"install `psychopy-crs` and restart the session to enable support.") | ||
except Exception as e: | ||
logging.error( | ||
"Error encountered while loading `psychopy-crs`. Check logs for more " | ||
"information.") | ||
|
||
if __name__ == "__main__": | ||
from psychopy.tools.pkgtools import PluginStub | ||
|
||
|
||
class BitsSharp( | ||
PluginStub, | ||
plugin="psychopy-crs", | ||
doclink="https://psychopy.github.io/psychopy-crs/coder/bits/#psychopy_crs.bits.BitsSharp" | ||
): | ||
pass | ||
|
||
|
||
class BitsPlusPlus( | ||
PluginStub, | ||
plugin="psychopy-crs", | ||
doclink="https://psychopy.github.io/psychopy-crs/coder/bits/#psychopy_crs.bits.BitsPlusPlus" | ||
): | ||
pass | ||
|
||
|
||
class DisplayPlusPlus( | ||
PluginStub, | ||
plugin="psychopy-crs", | ||
doclink="https://psychopy.github.io/psychopy-crs/coder/bits/#psychopy_crs.bits.DisplayPlusPlus" | ||
): | ||
pass | ||
|
||
|
||
class DisplayPlusPlusTouch( | ||
PluginStub, | ||
plugin="psychopy-crs", | ||
doclink="https://psychopy.github.io/psychopy-crs/coder/bits/#psychopy_crs.bits.DisplayPlusPlusTouch" | ||
): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.