Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
loganbvh committed Jan 30, 2024
1 parent d52ceac commit 268e366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: 23.1.0
rev: 24.1.1
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
Expand Down
4 changes: 1 addition & 3 deletions tdgl/device/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ def kappa(self) -> float:
@property
def Bc2(self) -> pint.Quantity:
"""Upper critical field, :math:`B_{c2}=\\Phi_0/(2\\pi\\xi^2)`."""
return (
ureg("Phi_0") / (2 * np.pi * self.coherence_length**2)
).to_base_units()
return (ureg("Phi_0") / (2 * np.pi * self.coherence_length**2)).to_base_units()

@property
def A0(self) -> pint.Quantity:
Expand Down

0 comments on commit 268e366

Please sign in to comment.