Skip to content

Commit

Permalink
RF: Don't import psychopy_cedrus in global experiment script
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Nov 28, 2024
1 parent 38704f0 commit a3b2748
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 56 deletions.
6 changes: 0 additions & 6 deletions psychopy_cedrus/components/lumina.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ class LuminaButtonBoxBackend(DeviceBackend):

def getParams(self):
return util.getXidButtonBoxParams(key="lumina")

def addRequirements(self: ButtonBoxComponent):
self.exp.requireImport(
importName="lumina",
importFrom="psychopy_cedrus"
)

def writeDeviceCode(self, buff):
return util.writeXidButtonBoxCode(
Expand Down
15 changes: 0 additions & 15 deletions psychopy_cedrus/components/rb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ class RBPhotodiodeValidatorBackend(DeviceBackend):

def getParams(self):
return util.getXidPhotodiodeParams(key="rb")

def addRequirements(self):
"""
Add any required module/package imports for this backend
"""
self.exp.requireImport(
importName="rb",
importFrom="psychopy_cedrus"
)

def writeDeviceCode(self, buff):
return util.writeXidPhotodiodeCode(
Expand All @@ -48,12 +39,6 @@ class RBButtonBoxBackend(DeviceBackend):

def getParams(self):
return util.getXidButtonBoxParams(key="rb")

def addRequirements(self: ButtonBoxComponent):
self.exp.requireImport(
importName="rb",
importFrom="psychopy_cedrus"
)

def writeDeviceCode(self, buff):
return util.writeXidButtonBoxCode(
Expand Down
20 changes: 0 additions & 20 deletions psychopy_cedrus/components/riponda.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ class RipondaPhotodiodeValidatorBackend(DeviceBackend):

def getParams(self):
return util.getXidPhotodiodeParams(key="riponda")

def addRequirements(self):
"""
Add any required module/package imports for this backend
"""
self.exp.requireImport(
importName="riponda",
importFrom="psychopy_cedrus"
)

def writeDeviceCode(self, buff):
return util.writeXidPhotodiodeCode(
Expand All @@ -51,12 +42,6 @@ class RipondaButtonBoxBackend(DeviceBackend):

def getParams(self):
return util.getXidButtonBoxParams(key="riponda")

def addRequirements(self: ButtonBoxComponent):
self.exp.requireImport(
importName="riponda",
importFrom="psychopy_cedrus"
)

def writeDeviceCode(self, buff):
return util.writeXidButtonBoxCode(
Expand Down Expand Up @@ -114,11 +99,6 @@ def getParams(self: VoiceKeyComponent):

return params, order

def addRequirements(self):
self.exp.requireImport(
importName="riponda", importFrom="psychopy_cedrus"
)

def writeDeviceCode(self: VoiceKeyComponent, buff):
# get inits
inits = getInitVals(self.params)
Expand Down
15 changes: 0 additions & 15 deletions psychopy_cedrus/components/stimtracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ class StimTrackerPhotodiodeValidatorBackend(DeviceBackend):

def getParams(self):
return util.getXidPhotodiodeParams(key="stimtracker")

def addRequirements(self):
"""
Add any required module/package imports for this backend
"""
self.exp.requireImport(
importName="stimtracker",
importFrom="psychopy_cedrus"
)

def writeDeviceCode(self, buff):
return util.writeXidPhotodiodeCode(
Expand All @@ -51,12 +42,6 @@ class StimTrackerButtonBoxBackend(DeviceBackend):
def getParams(self):
return util.getXidButtonBoxParams(key="stimtracker")

def addRequirements(self: ButtonBoxComponent):
self.exp.requireImport(
importName="stimtracker",
importFrom="psychopy_cedrus"
)

def writeDeviceCode(self, buff):
return util.writeXidButtonBoxCode(
self,
Expand Down

0 comments on commit a3b2748

Please sign in to comment.