initials
This commit is contained in:
0
blipblop/util/__init__.py
Normal file
0
blipblop/util/__init__.py
Normal file
24
blipblop/util/results.py
Normal file
24
blipblop/util/results.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import datetime as dt
|
||||
|
||||
class MeasurementResults():
|
||||
|
||||
def __init__(self, task_name, metadata={}):
|
||||
self._task_name = task_name
|
||||
self._task_timestamp = dt.datetime.now()
|
||||
self._reaction_times = []
|
||||
self._metadata = metadata
|
||||
|
||||
def append(self, reaction_time):
|
||||
self._reaction_times.append(reaction_time)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self._task_name
|
||||
|
||||
@property
|
||||
def starttime(self):
|
||||
return str(self._task_timestamp)
|
||||
|
||||
@property
|
||||
def results(self):
|
||||
return self._reaction_times
|
||||
Reference in New Issue
Block a user