ENH: Write all computation times#1197
Conversation
There was a problem hiding this comment.
Thanks @larsoner ! Doc nitpicks.
I think we could add a note to the 'getting started' around this section:
sphinx-gallery/doc/getting_started.rst
Line 150 in 11812e6
about the root sg_execution_times.rst file?
sphinx_gallery/tests/test_full.py
Outdated
| # - auto_examples/plot_numpy_matplotlib | ||
| if how == "modify": | ||
| n_ch = "[3-7]" | ||
| n_ch = "[3-9]" |
There was a problem hiding this comment.
Could we amend the comment above to add the global execution file to "Ones that can change on stale:". Also I'm lost, why is this not +1 (8) ?
There was a problem hiding this comment.
Not totally sure why I needed the extra one here but I also think it's okay to be lenient
There was a problem hiding this comment.
... actually updating the comment made it clear I think, pushing
|
I went to fix the unrelated |
|
All green! |
Could we add to our release notes that we are dropping support for 3.7? |
lucyleeow
left a comment
There was a problem hiding this comment.
Thank you for fixing the CI failure!
| # - auto_examples/plot_numpy_matplotlib | ||
| if how == "modify": | ||
| n_ch = "[3-7]" | ||
| n_ch = "([3-9]|10)" |
There was a problem hiding this comment.
I had that originally! But it's bad regex :) [3-9] is a character range. If you write [3-10] regex complains because it sees this as "the range of characters from 3-1, and also the character zero" -- and the range 3-1 doesn't make sense (it would need to be 1-3 and it's also not what we want). So by doing ([3-9]|10) it will match any single digit between 3 and 9, or the literal string 10, which is what we want.
There was a problem hiding this comment.
Ah yes of course, thanks!
Co-authored-by: Lucy Liu <[email protected]>
|
I committed your tweaks so I'll mark for merge, thanks for the quick review @lucyleeow |
… to version 0.15.0 v0.15.0 ------- Support for Python 3.7 dropped in this release. Requirement is now Python >=3.8. Pillow added as a dependency. **Implemented enhancements:** - ENH: Improve logging visibility of errors and filenames `#1225 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1225>`__ (`larsoner <https://github.com/larsoner>`__) - ENH: Improve API usage graph `#1203 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1203>`__ (`larsoner <https://github.com/larsoner>`__) - ENH: Always write sg_execution_times and make DataTable `#1198 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1198>`__ (`larsoner <https://github.com/larsoner>`__) - ENH: Write all computation times `#1197 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1197>`__ (`larsoner <https://github.com/larsoner>`__) - ENH: Support source files in any language `#1192 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1192>`__ (`speth <https://github.com/speth>`__) - FEA Add examples recommender system `#1125 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1125>`__ (`ArturoAmorQ <https://github.com/ArturoAmorQ>`__) (NEWS truncated at 15 lines)
For a while I've wanted a full listing of example computation times. This PR writes them to the
src_dirroot assg_execution_times.html, which I think is hopefully safe enough.Snuck in some cleanups of
pytest.mark.parametrizeso our test names can be a bit shorter in the terminal, too.