current progress#6
Conversation
|
|
||
| curr_shelve = shelve.open(full_file_path, flag='n') | ||
| # BUG with paradigm_frequency_inhibition at 1Hz, possibly too long sim? | ||
| curr_shelve['populations'] = [[(i, timestamps) for i, timestamps in enumerate(p.get_timestamps()) if len(timestamps) > 0] for p in self.populations] |
There was a problem hiding this comment.
Here(L210) is the only change I want you to check:pray:
|
This generally works but it has the disadvantage that it produces a ragged list of lists (ragged meaning, that the lists have different sizes depending on the number of spikes. The issue with this is that when we convert this to an array the datatype of the array is The way I am doing it now is that I have one array that contains the unit that emitted the spike and another array with the spike time. So I would suggest something along those lines: But I would have to actually run the code in the lab to know if the details are right. |
os.path.join