-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathData.py
More file actions
57 lines (31 loc) · 1.5 KB
/
Data.py
File metadata and controls
57 lines (31 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 10 16:13:34 2014
@author: cbeery
"""
#current implimentation uses stmem of depth 1 (+1 current)and used simply for storing last processed data set before annotation
class Data:
def init(self, memory_length):
self.MEMORY_LENGTH = memory_length #number of data sets in memory
self.history = {} #all past data sets and annotations thereof
self.raw = ["Touch", "IR", "UltraSonic", "LastMotorBehavior"] #latest raw data from environment
self.pData = [] #processed data of appropraite new order
self.memory = [] #nested list of processed data in "short term" memory
self.populateInitialDataSet()
def pullEnvironment(self):
""" Retrieve data from environment """
def populateInitialDataSet(self):
""" Create an initial set of data/mem before doing actions """
def processData(self, order exponentials):
""" Change raw data into appropriate order (increase curve complexity) """
def annotate(self):
""" Add annotations to data """
def updateMemory(self):
""" Adds newest data set to memory and removes oldest """
def addToHistory(self):
""" Adds old set (with annotation) to history """
def update(self):
#for instance studies:
#annonate last data set and add to history before updating memory!!!!
#else you will erase data needing annotating
if __name__ == '__main__':