Skip to content

Commit

Permalink
Merge pull request #59 from andrsd/fixes
Browse files Browse the repository at this point in the history
Fixing some alerts found by LGTM
  • Loading branch information
andrsd committed May 16, 2022
2 parents 5cd6473 + aed7bb9 commit 665ebb4
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 16 deletions.
3 changes: 0 additions & 3 deletions otter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ def main():

qapp.exec()

del window
del qapp


if __name__ == '__main__':
main()
3 changes: 2 additions & 1 deletion otter/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"computed_vs_measured",
"csvplotter",
"mesh_inspector",
"movie"
"model_inspector",
"viz"
]
2 changes: 0 additions & 2 deletions otter/plugins/computed_vs_measured/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ def main():
safe_timer(50, lambda: None)
app.exec()

del app


if __name__ == '__main__':
main()
2 changes: 0 additions & 2 deletions otter/plugins/csvplotter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def main():
safe_timer(50, lambda: None)
app.exec()

del app


if __name__ == '__main__':
main()
2 changes: 0 additions & 2 deletions otter/plugins/mesh_inspector/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ def main():
plugin.loadFile(args.mesh_file)
app.exec()

del app


if __name__ == '__main__':
main()
2 changes: 0 additions & 2 deletions otter/plugins/model_inspector/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ def main(args):
plugin.loadFile(args.model_file)
app.exec()

del app


if __name__ == '__main__':
main(args)
1 change: 0 additions & 1 deletion otter/plugins/model_inspector/moosetree/search.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# flake8: noqa
"""Tools for iterating and locating nodes."""
import sys
from enum import Enum

class IterMethod(Enum):
Expand Down
1 change: 0 additions & 1 deletion otter/plugins/model_inspector/pyhit/pyhit.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

"""Wrapper for hit parser."""
import os
import subprocess
import otter.plugins.model_inspector.moosetree
import otter.plugins.model_inspector.hit

Expand Down
2 changes: 0 additions & 2 deletions otter/plugins/viz/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ def main():
plugin.loadFile(args.file)
app.exec()

del app


if __name__ == '__main__':
main()

0 comments on commit 665ebb4

Please sign in to comment.