-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Issue 3328 correctly point notebook download URLs according to versions #3333
Issue 3328 correctly point notebook download URLs according to versions #3333
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #3333 +/- ##
===========================================
- Coverage 99.70% 99.55% -0.16%
===========================================
Files 248 253 +5
Lines 18899 19523 +624
===========================================
+ Hits 18844 19436 +592
- Misses 55 87 +32 ☔ View full report in Codecov by Sentry. |
Switching the download URL based on the current version of the docs page sounds good to me. Will https://docs.pybamm.org default to stable after this change? I know it the previous version the pybamm docs defaulted to latest, which could make the problem repeat. |
I just checked the Read the Docs configuration options; I can't find a way to set the
I get that – the versioning is deemed incorrect for notebooks on |
Ok thank you for taking a look and this is definitely an improvement. I only asked about stable/latest because I had assumed I installed my PyBaMM environment incorrectly when I first saw the errors. However, a release would also prevent that since I assume major changes to parameter and external function names are rare. So this change extra on top of what I was hoping to see. |
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, @agriyakhetarpal! Looks good overall, some comments below.
In order to refactor URLs Co-authored-by: Saransh Chopra <[email protected]>
…tarpal/pybamm into notebook-downloads-fix
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 for fixing the mess 🙂
Let me know if this is ready to merge
Yes, please go ahead! |
Description
Closes #3328; ensures that users of the example notebooks can download the correct notebook from GitHub according to the latest version, stable versions starting from 23.5, and on PR builds. The Google Colab badge now points to the correct renditions of the notebooks, rather than the
develop
branch.Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick
(or$ nox -s quick
).Further checks: