-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor PhtonData and FrequencyResponsiveness #37
Comments
More from Joe: (if my understanding is correct, and each element of frames is a session), just checking, can it always be assumed the number of frames will be the same across sessions? (e.g. if one day, things go wrong halfway through the session etc) |
From Joe:
|
fps -> sampling_rate ? |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
This is nice function, it might be worth doccing the operation in the doctoring Originally posted by @JoeZiminski in #25 (comment) |
There is always a struggle between well organised and explicitly labelled data and performance gains / memory usage. If performance does become an issue, nested dictionary where the top level has info for the entire experiment, then each session has information for all data in that session e.g. Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
this np.fromiter is very cool I didn't know about that Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Originally posted by @JoeZiminski in #25 (comment) |
Check also all the comments in the PR review #49 |
From Joe:
for these variables, I get IDE style warning that all class attributes should be defined in init (i.e. initialise as None). Unfortunately, the IDE complains even if putting a type hint there rather than initialising. It does seem worth doing this even though annoying.
related to this, because this function contains routines that make assumptions based on the experimental setup (e.g. baseline before and after triggers) e.g. self.n_all_triggers - 2 * self.n_session_boundary_baseline_triggers ) * self.n_sessions. Maybe this function can be factored out somewhere, if it may change depending on experimental setup (e.g. there could be multiple versions). Then, it can return all these variables in the init where they are saved as class attributes
Related to #34
The text was updated successfully, but these errors were encountered: