-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EEG Browser] Addition of new changes to signal plot of electrophysiology_browser module from EEGNet #8415
[EEG Browser] Addition of new changes to signal plot of electrophysiology_browser module from EEGNet #8415
Conversation
…d filtered epoch bugfix
DB Structure for HED Tags + supporting changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jeffersoncasimir for this amazing work. A few comments:
- Can those warnings be fixed?
npm run compile:
/var/www/loris/modules/electrophysiology_browser/jsx/react-series-data-viewer/src/eeglab/EEGLabSeriesProvider.tsx
21:9 warning 'updateFilteredEpochs' is defined but never used @typescript-eslint/no-unused-vars
/var/www/loris/modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/logic/dragBounds.tsx
31:38 warning 'fromState' is defined but never used @typescript-eslint/no-unused-vars
50:1 warning Missing JSDoc @param "root0" type jsdoc/require-param-type
51:1 warning Missing JSDoc @param "root0."0"" type jsdoc/require-param-type
52:1 warning Missing JSDoc @param "root0."1"" type jsdoc/require-param-type
55:43 warning '_' is defined but never used @typescript-eslint/no-unused-vars
/var/www/loris/modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/logic/filterEpochs.tsx
121:1 warning The type 'Epoch' is undefined jsdoc/no-undefined-types
125:1 warning The type 'Epoch' is undefined jsdoc/no-undefined-types
console
VM225 react_devtools_backend.js:2655 Warning: Each child in a list should have a unique "key" prop.
Check the render method of `SeriesRenderer`. See https://reactjs.org/link/warning-keys for more information.
VM225 react_devtools_backend.js:2655 Warning: Internal React error: Expected static flag was missing. Please notify the React team.
at SeriesRenderer (https://10.31.82.74/electrophysiology_browser/js/electrophysiologySessionView.js:43454:25)
VM225 react_devtools_backend.js:2655 Warning: Internal React error: Expected static flag was missing. Please notify the React team.
at SeriesCursor (https://10.31.82.74/electrophysiology_browser/js/electrophysiologySessionView.js:43075:22)
VM225 react_devtools_backend.js:2655 Warning: Each child in a list should have a unique "key" prop.
Check the render method of `TimeMarker`. See https://reactjs.org/link/warning-keys for more information.
- Any reason why the upper axis line is gone?
-
If the older images are unused, can you delete them?
-
I wasn't able to isolate a channel. Let me know if this works on your side, I may not trigger the feature appropriately.
d225595
to
223fc33
Compare
I addressed all the warnings and deleted the unused images.
The top axis was actually not originally there (see older demo) but I had added it back before I implemented overflow toggling. I did not find an elegant way to bring it back in while having consistent appearance between the two modes so I left it looking as it was.
How the 'isolate' feature works:
Let me know if there is still an issue after following these steps |
e90140d
to
e014119
Compare
PR aces#8242 modified the electrodes DB schemas and since then, the EEG Browser is broken. This fixes the issue by rewriting the query logic. Also fixes a few issues with the download buttons and the layout.
|
||
### Stacked View | ||
Hovering channel names while in 'stacked' or 'spread (default)' view will thicken the respective signal(s). While in stacked view, a feature called "Isolate" becomes available. [[Isolate Mode Demo](#isolate-mode)] | ||
<br/><br/>![Stacked View](./../../images/signal-stacked.png) <br/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think these images should be here. The sentences make sense without them and I don't think they add enough value to justify the cost of adding binary files to our github repo.
|
||
### Isolate Mode | ||
Hovering channel names while in 'isolate' mode will make that signal the only visible signal on the plot. | ||
<br/><br/>![Isolate Mode](./../../images/signal-isolated.png) <br/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think these images should be here. The sentences make sense without them and I don't think they add enough value to justify the cost of adding binary files to our github repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if we have the option to host the files on a server to avoid committing the images. Documentation wise, I think those images were a good addition to document the module's new features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driusan This PR updates a README that was already containing images. Maybe we can discuss the images issue later to not hold this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, once images are committed they're in the repo forever and need to be downloaded with every clone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I skimmed most of the code and other than the binary files being committed to GitHub I think this can probably go in.
@driusan Images have been migrated on a remote server, the PR is good to go. |
7654766
to
d2e140a
Compare
This PR brings in the latest changes to the signal plot of the electrophysiology_browser module from the EEGNet project.
High-level list of changes
File Changes
Here is a list of the files that were changed, and below them, a list of the major changes to that file. Feel free to ask for more details and I would not mind spending some time walking through some of the motivations behind the changes with the reviewer:
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/color/index.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/eeglab/EEGLabSeriesProvider.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/AnnotationForm.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/Epoch.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/EventManager.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/IntervalSelect.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/LineChunk.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/ResponsiveViewer.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/SeriesCursor.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/SeriesRenderer.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/logic/dragBounds.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/logic/fetchChunks.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/logic/filterEpochs.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/logic/pagination.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/logic/timeSelection.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/state/bounds.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/state/cursor.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/state/dataset.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/index.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/store/types.tsx
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/vector/index.tsx