-
Notifications
You must be signed in to change notification settings - Fork 195
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
Add documentation of preprocessing and sorting split by channel group. #2316
Add documentation of preprocessing and sorting split by channel group. #2316
Conversation
So if the goal of this is to be a full tutorial run locally and converted to And thanks! I think the growing number of multishank datasets really requires some documentation for SI users to understand how to do this with the machinery. |
Thanks @zm711! It is pretty light with toy example data so I think 'Module Example Gallery' would be the right place, maybe under 'core' as it contains information on both preprocessing and sorting? |
Hi @JoeZiminski Thanks so much for this!! @zm711 honestly I think that the gallery is mainly there as legacy and we will remove it in a future refactoring of the docs. The modules documentation is already the place for detailed information about each module, and IMO the gallery is just redundant (plus hard to maintain!). What do you think? In that regard, I'd keep this in the "How to" section! |
I was always in support of the I think getting rid of them would be okay (they do break the most--although I will say they did help me catch a bug in one of the widgets one time :) ). My biggest problem with them is that they currently (almost) all require datalad. So if they stick around I really think they need to switch to being a simulated dataset so that anyone can run them rather than just people with the fortitude to get datalad working. |
I think we need to keep the gallery which auto generated as long it is fast enought. |
@JoeZiminski did you intend to include this: |
Hi @JoeZiminski Maybe I am wrong and you directly wrote the rst. Then it is OK. In short, we have 3 types of documentation:
For me: |
Maybe I should open an issue where we can discuss the rules for example generation and then when we have the official rules laid out I can open a PR to add it to the development portion of the docs so we can have it laid out in stone how we want to organize examples. Does that sound like a plan? I think the structure isn't clear currently so we keep rehashing where examples should go. |
I am agree that the structure is not perfect and is should be orthogonal to this case 1 but the sphinx-gallary need to be somehow a section in the main toctree. |
Thanks everyone! For now I did not make the documentation in a I will redo this page in the standard format as described above ( |
This looks great. I second @alejoe91:
Out of curiosity, what do you mean here by unpredictable behavior: Also you say:
Why? I think the rst works better than
|
) | ||
|
||
|
||
Further notes on preprocessing by channel group |
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 find this section a bit confusing. Is the goal of it eliminating the confusion that people might have of thinking that when they apply a pre-processing step to aggregate recording it will still apply per-group?
If so, I will start the session by stating the possible confusion, then saying that this is not correct and then your illustrative example.
I feel that the first paragraph is trying to add some context but I don't think that's necessary as this is at the end of a tutorial that should have make this all clear.
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 @h-mayorquin this is a very good point, it is strange to have a seciton at the end re-visiting the entire article in more detail. I've dropped the second half of this section and integrated the rest into a note within the page body. Let me know what you think!
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 re-read the current one and it looks great to me!
import numpy as np | ||
|
||
# Create a toy 384 channel recording with 4 shanks (each shank contain 96 channels) | ||
recording, _ = se.toy_example(duration=[1.00], num_segments=1, num_channels=384) |
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.
Open question:
When do we use toy_example
and we do we use generate_recording
or generate_ground_truth_recording
. I personally would prefer to only use the latter but maybe it does not matter.
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 am not sure on this and will defer to @alejoe91 @samuelgarcia
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 think that for docs toy_example
is ok! It's actually easier to intepret
Co-authored-by: Heberto Mayorquin <[email protected]>
@JoeZiminski maybe this was buried in the discussion!
Did you include on purpose? If so, should it be referenced somewhere? I would remove it for now! |
@JoeZiminski just pinging you on this! We are planning a release on Friday, so it would be great if you can tackle the remaining points by then :) |
@alejoe91 @h-mayorquin @samuelgarcia my apologies for the delay!
Otherwise from my end I think this is good to go, thanks a lot for your feedback! |
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.
one super tiny typo :)
Co-authored-by: Zach McKenzie <[email protected]>
Thanks all for your reviews! |
This PR adds a 'How to' page on preprocessing and sorting when splitting the recording into channel groups. I could not get the formatting (e.g. inclusion of notes, warning sections) to work with the sphinx-gallery approach as described in this example. I am not 100% sure why, I thought to have the docuemntation reviewed and the best place for it descided before persevering with this.
I also had some general questions