-
Notifications
You must be signed in to change notification settings - Fork 1
/
sim_data.py
executable file
·74 lines (59 loc) · 1.75 KB
/
sim_data.py
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
class SimData(object):
"""
Abstract class; subclass instances store output data for an individual simulation run.
Instance Variables:
- times
- markings
- event_freqs
- events
- iterations
"""
##############################################
## Instance Variables: Getters and Setters
##############################################
@property
def times(self):
""" 1D array of times corresponding to marking data. """
return self._times
@times.setter
def times(self, t):
""" Stores times. """
self._times = t
@property
def markings(self):
"""
2D array of marking data for each timepoint in times.
Dimensions: len(times) x P
"""
return self._markings
@markings.setter
def markings(self, m):
""" Stores the markings. """
self._markings = m
@property
def events(self):
"""
Array of events (transitions) that occurred between each timepoint in times.
Dimensions: i x
"""
return self._events
@events.setter
def events(self, e):
""" Stores the events. """
self._events = e
@property
def event_freqs(self):
""" List (length T) giving number of times each transition fired during simulation. """
return self._event_freqs
@event_freqs.setter
def event_freqs(self, e):
""" Stores the event frequencies. """
self._event_freqs = e
@property
def iterations(self):
""" Number of iterations simulated. """
return self._iterations
@iterations.setter
def iterations(self, i):
""" Stores the number of iterations. """
self._iterations = i