Skip to content

Commit

Permalink
[STYLE] Format the style
Browse files Browse the repository at this point in the history
  • Loading branch information
daspk04 committed Jul 8, 2024
1 parent 2622fb1 commit 4888138
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pint/pint_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def _set(key: str, value):
try:
import uncertainties
except ImportError:
raise Exception('Failed to import uncertainties library!\n Please install uncertainies')
raise Exception(
"Failed to import uncertainties library!\n Please install uncertainies"
)

# Measured constants subject to correlation
# R_i: Rydberg constant
Expand Down Expand Up @@ -111,7 +113,9 @@ def _set(key: str, value):
[R_i, g_e, m_u, m_e, m_p, m_n], corr
)
except AttributeError:
raise Exception('Correlation cannot be calculated!\n Please install numpy package')
raise Exception(
"Correlation cannot be calculated!\n Please install numpy package"
)
else:
R_i = uncertainties.ufloat(*R_i)
g_e = uncertainties.ufloat(*g_e)
Expand Down

0 comments on commit 4888138

Please sign in to comment.