-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
WIP, DOC: new doc landing page; clean up doc structure #6694
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6694 +/- ##
==========================================
- Coverage 89.48% 88.14% -1.34%
==========================================
Files 420 420
Lines 75474 75602 +128
Branches 12369 12384 +15
==========================================
- Hits 67535 66639 -896
- Misses 5134 6168 +1034
+ Partials 2805 2795 -10 |
No idea why you're hitting this weird |
... but I can reproduce the error locally, which is weird. |
Actually I had an idea. I did:
And the only results are in It then occurred to me that the problem could be that the rendering order of the docs could have changed, which could lead effectively to a missing |
So far so good! https://14861-1301584-gh.circle-artifacts.com/0/dev/index.html |
@larsoner thanks for the |
Here's the new docs overview page: https://14869-1301584-gh.circle-artifacts.com/0/dev/overview/index.html |
I like it! I don't like that there are so many miscellaneous links at the bottom, though, it actually draws the eye to that content. Ideas:
Also, the naming "The web version of Matti Hämäläinen’s original MNE-C documentation" isn't 100% accurate anymore, because we do keep some things updated like the |
... and the |
@larsoner I started migrating the mne report --path ~/mne_data/MNE-sample-data/ --verbose into corresponding Python code that yields the same output: report = Report(verbose=True)
report.parse_folder('~/mne_data/MNE-sample-data/')
report.save() Is that what you were envisioning? |
This is a noble goal but not strictly necessary. I would say do what you can and don't spend too much time on this. I would say that if people want configurability they should use the |
remaining issues:
|
Are you talking about
You can dump the intersphinx inventory after doc build to see if it shows up under any name, e.g.:
Links in that file definitely exist because we cross-ref them in |
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.
CIs are not happy, otherwise LGTM
mne/report.py
Outdated
... captions='Left Auditory', | ||
... section='evoked', | ||
... replace=True) # doctest: +SKIP | ||
>>> report.save('report.html', overwrite=True) # doctest: +SKIP |
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.
Actually maybe this can just be moved over to:
And moved to tutorials
. Maybe in another PR.
Looks like you need another rebase |
here's the new docs landing page: here's the new tutorial on mne.Report:
|
the evoked plots look terrible (with and without whitening); am I doing something wrong there? They look fine when the figure is created separately using evoked.plot() and then added to the report as a custom figure.
it's because 'sample_audvis-ave.fif' has no baseline correction. This
file was produced mne-c and there was no baseline applied by default
with C code. I would suggest to read + write a baseline corrected file
to make the report look ok.
|
Sorry @jona-sassenhagen, boldface screws up the cross-references: https://15021-1301584-gh.circle-artifacts.com/0/dev/overview/index.html |
This pull request introduces 1 alert when merging 04b96ac into 6d1aa1c - view on LGTM.com new alerts:
|
img=img, id=global_id, div_klass='covariance', | ||
img_klass='covariance', caption=caption, show=show, | ||
image_format=image_format)) | ||
return '\n'.join(html) |
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.
This change captures both the covariance figure and the SVD figure, and iterate over them to add both to the report if they are both present. Previously, the SVD figure was automatically created, and ended up inline in the tutorial (rather than getting captured and put into the report HTML). Currently the choice of whether to show/not show the SVD plot is internal (e.g., user can't choose when instantiating mne.Report
or when calling report.parse_folder
). LMK if you think it should be exposed (and if so, where to expose it and under what name).
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 it should always be shown in the report
Remaining questions:
|
I think it's always useful to have. If it's there by default let's keep it. If it's not there, maybe we should just add it.
I'm not sure, it might be worth having a quick chat with @agramfort to long-term plan this |
Well it's there by default now 🙂
@agramfort ping me on gitter to discuss? Or we could set up a 3-way skype/hangout if you think @larsoner should also weigh in. |
ping me on gitter or hangout whenever you have time to discuss.
+1 to always show the svd of the noise cov. It's very useful for debugging.
… |
thx heaps @drammock ! |
* better introductory paragraphs * add overview files * move files to overview folder * cleanup overview landing page * minor cleanup of install docs * fix crossrefs * update FAQ (esp. bug section; rest is mostly reflowing long lines) * fix more crossrefs; move report and command_line into overview * add output of gen_commands to toctree * fix links/crossrefs/includes * FIX: Refs * fix: rST is not markdown * fix: time != memory * fix: minor tweaks (v0.12 is distant past now!) * move precision, units, ch_types and data_formats to one page * move includes to doc/_includes/ so they won't needlessly render as separate pages * fix crossref * move report examples into docstrings * use standard heading "Page contents" in gen_commands * move c-commands to MNE-C section; move intro note to top; remove learn_python from TOC and add to intro note * remove title formatting * fix crossref; smooth wording * fix unescaped asterisk * fix indentation * fix pydocstyle * fix crossref stupidity * fix pydocstyle again * fix travis? * add warning to top of examples gallery * fix long lines * fix: swallow runtime warning about no subjects_dir set * fix doctest? * really fix doctest? * give up on doctest; move to tutorial * fix missing crossref * fix: different filenames for each report (so the previews don't all render the same one) * fix missing backtick * add boldface per Jona's request * capture and display the noise cov singular values plot in reports * use baselined evoked file * Revert "add boldface per Jona's request" This reverts commit e03bfcd. * fix LGTM [skip travis][skip azp][circle skip]
doc/overview
subfolder (units, supported data formats, numerical precision, etc)doc/tutorials
folder (which containedreports
andcommands
pages); these are now inoverview
(but could move elsewhere)