Attention
You’re viewing an old version of the L’ART Research Assistant documentation. The project has moved to https://lart.readthedocs.io/projects/research-assistant.
research_client.memorygame.eel
Exposes the Memory Game to Python Eel.
Functions
|
Discards a Response. |
|
Redirect participant in right sequence after Memory Game end screen. |
|
Gets a list of missing fields. |
Retrieves the available versions of the Memory Game. |
|
|
Initialises a new Memory Game Response. |
|
Checks whether a Response is complete. |
|
Load specified sections of a Memory Game version implementation. |
|
Adds Memory Game Scores to a Response. |
|
Submits a (complete) Response for long-term storage. |
- _expose(func)[source]
Wraps, renames and exposes a function to eel.
- Return type:
TypeVar
(F
, bound=Callable
[...
,Any
])- Parameters:
func (F)
- _handleexception(exc)[source]
Passes exception to exceptionhandler if defined, otherwise continues raising.
- Return type:
None
- Parameters:
exc (Exception)
- end(instid, data=None)[source]
Redirect participant in right sequence after Memory Game end screen.
- Return type:
str
- Parameters:
instid (str)
data (Optional[dict[str, str]])
- getmissing(instid)[source]
Gets a list of missing fields.
- Return type:
list
[str
]- Parameters:
instid (str)
- getversions()[source]
Retrieves the available versions of the Memory Game.
- Return type:
dict
[str
,str
]
- init(data)[source]
Initialises a new Memory Game Response.
- Return type:
str
- Parameters:
data (dict[str, Any])
- iscomplete(instid)[source]
Checks whether a Response is complete.
- Return type:
bool
- Parameters:
instid (str)
- load_version(instid, sections)[source]
Load specified sections of a Memory Game version implementation.
- Return type:
dict
[str
,dict
[str
,Any
]]- Parameters:
instid (str)
sections (list[str])
- setscores(instid, data)[source]
Adds Memory Game Scores to a Response.
- Return type:
str
- Parameters:
instid (str)
data (dict[str, str])
- store(instid)[source]
Submits a (complete) Response for long-term storage.
- Return type:
bool
- Parameters:
instid (str)
- F = TypeVar(F, bound=Callable)
Type:
TypeVar
Invariant
TypeVar
bound totyping.Callable
[…,typing.Any
].