Skip to content

Commit

Permalink
STY: explicitly don't use inputs and skip mypy missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Dec 23, 2024
1 parent 7b85d48 commit 7f22cfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "bad_tools.*"
Expand Down
10 changes: 9 additions & 1 deletion src/bad_tools/xrt/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ def __init__(self, *args, pattern, **kwargs):
self._pattern = pattern
self._I_cumsum = (pattern.I1 / pattern.I1.sum()).cumsum()

def _set_annulus(self, axis1, axis2, rMin, rMax, phiMin, phiMax):
def _set_annulus(
self,
axis1,
axis2,
rMin, # noqa: ARG002
rMax, # noqa: ARG002
phiMin,
phiMax,
):
# if rMax > rMin:
# A = 2. / (rMax**2 - rMin**2)
# r = np.sqrt(2*np.random.uniform(0, 1, self.nrays)/A + rMin**2)
Expand Down

0 comments on commit 7f22cfb

Please sign in to comment.