Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .basedpyright/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1338,8 +1338,24 @@
{
"code": "reportAny",
"range": {
"startColumn": 16,
"endColumn": 23,
"startColumn": 12,
"endColumn": 19,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 26,
"endColumn": 33,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 35,
"endColumn": 50,
"lineCount": 1
}
},
Expand Down Expand Up @@ -4659,22 +4675,6 @@
"lineCount": 1
}
},
{
"code": "reportUnknownMemberType",
"range": {
"startColumn": 11,
"endColumn": 38,
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 11,
"endColumn": 40,
"lineCount": 1
}
},
{
"code": "reportUnknownMemberType",
"range": {
Expand Down
2 changes: 1 addition & 1 deletion contrib/weights-from-txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


with open(sys.argv[1]) as inf:
lines = [ln.strip() for ln in inf.readlines() if ln.strip()]
lines = [line for ln in inf if (line := ln.strip())]

rule_name = sys.argv[2]

Expand Down
4 changes: 1 addition & 3 deletions modepy/modal_decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ def skyline_pessimize(modal_values: ArrayF) -> ArrayF:
cur_val = max(my_modes[-1], my_modes[-2])

for imode in range(nmodes-1, -1, -1):
if my_modes[imode] > cur_val:
cur_val = my_modes[imode]

cur_val = max(cur_val, my_modes[imode])
result[iel, imode] = cur_val

return result
Expand Down
2 changes: 1 addition & 1 deletion modepy/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def plot_element_values(
pt.plot(orig_nodes[0], orig_values, "x")
elif dims == 2:
import matplotlib.pyplot as pt
import matplotlib.tri as tri
from matplotlib import tri

triangulation = tri.Triangulation(nodes[0], nodes[1], triangles=submesh)
ax = pt.subplot(1, 1, 1, projection="3d")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ exclude = [
preview = true

[tool.ruff.lint]
extend-select = [
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle
Expand Down
Loading