Skip to content

Commit

Permalink
Fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Jul 15, 2024
1 parent 60becb5 commit 406fdae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions myapp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# for `making_your_first_app.rst` in ARMI documentation.
# (That's also why the imports aren't all at the top)

# ruff: noqa: E402

# tutorial-configure-start
import armi

Expand Down
2 changes: 1 addition & 1 deletion myapp/fluxSolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ def setFakePower(core):
coords = b.spatialLocator.getGlobalCoordinates()
r = np.linalg.norm(abs(coords - center))
fuelFlag = 10 if b.isFuel() else 1.0
b.p.power = peakPower / r ** 2 * fuelFlag / b.getSymmetryFactor()
b.p.power = peakPower / r**2 * fuelFlag / b.getSymmetryFactor()
b.p.pdens = b.p.power / vol
b.p.mgFlux = mgFluxBase * b.p.pdens
2 changes: 1 addition & 1 deletion myapp/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Settings related to the DummyPhysicsPlugin"""

from armi.operators.settingsValidation import Query, validateVersion
from armi.operators.settingsValidation import Query
from armi.settings import setting


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

setup(
name="armi-example-app",
version=__version__,
version=__version__, # noqa: F821
description="A simple example application built using the Advanced Reactor "
"Modeling Interface (ARMI)",
author="TerraPower, LLC",
Expand Down

0 comments on commit 406fdae

Please sign in to comment.