-
Notifications
You must be signed in to change notification settings - Fork 6
Update pre commit #463
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
base: main
Are you sure you want to change the base?
Update pre commit #463
Conversation
|
Are the pre-commit steps in the readme.md with this still up to date? |
They are now :) |
| 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 |
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.
Doesn't this mess with the automated template build?
| import matplotlib.pyplot as plt | ||
| import numpy as np | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| x = np.linspace(0, 10, 1000) | ||
| y = x ** np.sin(x) | ||
|
|
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.
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.
| 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 |
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.
same as mattex1.py
| import matplotlib.pyplot as plt | ||
| import numpy as np | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| x = np.linspace(0, 10, 1000) | ||
| y = x ** np.sin(x) | ||
|
|
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.
Same as mattex1.py
| 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): |
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.
With this, we should introduce the keyword argument in the python notebook.
ruff.tomlto configure ruff linter and formatter