Skip to content

Commit

Permalink
Update auxiliary.py
Browse files Browse the repository at this point in the history
removed the f statement since codacy didn't liked it.
  • Loading branch information
vogt31337 authored Jan 12, 2024
1 parent 6d4faac commit 2e6428a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandapower/auxiliary.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def version_check(package_name, level="UserWarning", ignore_not_installed=False)
version_check("numba")
NUMBA_INSTALLED = True
except UserWarning:
msg = f'The numba version is too old.\n'
msg = 'The numba version is too old.\n'
log_to_level(msg, logger, 'warning')
NUMBA_INSTALLED = False
except ImportError:
Expand Down Expand Up @@ -971,7 +971,7 @@ def _write_lookup_to_net(net, element, element_lookup):
def _check_if_numba_is_installed(level="warning"):
if not NUMBA_INSTALLED:
msg = (

Check warning on line 973 in pandapower/auxiliary.py

View check run for this annotation

Codecov / codecov/patch

pandapower/auxiliary.py#L973

Added line #L973 was not covered by tests
f'numba cannot be imported and numba functions are disabled.\n'
'numba cannot be imported and numba functions are disabled.\n'
'Probably the execution is slow.\n'
'Please install numba to gain a massive speedup.\n'
'(or if you prefer slow execution, set the flag numba=False to avoid this warning!)')
Expand Down

0 comments on commit 2e6428a

Please sign in to comment.