Update pre commit#463
Open
aknierim wants to merge 17 commits into
Open
Conversation
Member
|
Are the pre-commit steps in the readme.md with this still up to date? |
Member
Author
They are now :) |
chrbeckm
reviewed
Jul 19, 2025
Comment on lines
+1
to
+9
| import matplotlib.pyplot as plt | ||
|
|
||
| # begin solution | ||
| import numpy as np | ||
| import uncertainties as unc | ||
| import uncertainties.unumpy as unp | ||
| from uncertainties.unumpy import nominal_values as noms, std_devs as stds | ||
| import matplotlib.pyplot as plt | ||
| from linregress import ulinregress | ||
| from uncertainties.unumpy import nominal_values as noms | ||
| from uncertainties.unumpy import std_devs as stds |
Member
There was a problem hiding this comment.
Doesn't this mess with the automated template build?
Comment on lines
1
to
6
| import matplotlib.pyplot as plt | ||
| import numpy as np | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| x = np.linspace(0, 10, 1000) | ||
| y = x ** np.sin(x) | ||
|
|
Member
There was a problem hiding this comment.
May consider the layout on the tex slides for this, slide 162 ff. We used this spaced layout to easier introduce the latter matplotlib settings without changing the position of "reference" lines.
Comment on lines
1
to
6
| import matplotlib.pyplot as plt | ||
| import numpy as np | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| x = np.linspace(0, 10, 1000) | ||
| y = x ** np.sin(x) | ||
| # set figure size and use constrained_layout |
chrbeckm
reviewed
Jul 19, 2025
Comment on lines
1
to
6
| import matplotlib.pyplot as plt | ||
| import numpy as np | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| x = np.linspace(0, 10, 1000) | ||
| y = x ** np.sin(x) | ||
|
|
chrbeckm
reviewed
Jul 19, 2025
| print() # Für den Abstand zur letzten Lösung | ||
| # end solution | ||
| for metal, mass in zip(metals, masses): | ||
| for metal, mass in zip(metals, masses, strict=False): |
Member
There was a problem hiding this comment.
With this, we should introduce the keyword argument in the python notebook.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ruff.tomlto configure ruff linter and formatter