Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STY: clean up flake8 configuration #233

Merged
merged 1 commit into from
Jul 4, 2024
Merged
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
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,5 @@ commands =
[flake8]
extend-exclude =
.git, .cache, .tox, .ropeproject, build, docs/source/conf.py
extend-ignore =
E121, E123, E126, E226, E24, E704, E731, F401, F403, F405, F812, F841, W503
per-file-ignores =
*/__init__.py:UnusedImport
examples/*.py:E305
*/__init__.py:F401,F403
20 changes: 10 additions & 10 deletions src/pyunicorn/utils/navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,16 +1404,16 @@ def _write_kml_link(self, f, i, j, relwidth=0.1):
f.write("""
</coordinates></LineString></MultiGeometry></Placemark>""")

def _improve_step(self):
"""improve layout by one step"""
# TODO: fruchterman or some such
for i in self.shown:
posi = self.position[i]
for j, line in self.lines[i].items():
if j > i:
posj = posi
# disterr = (((posi-posj)**2).sum()-1000000.0)**2
self._update()
# def _improve_step(self):
# """improve layout by one step"""
# # TODO: fruchterman or some such
# for i in self.shown:
# posi = self.position[i]
# for j, line in self.lines[i].items():
# if j > i:
# posj = posi
# # disterr = (((posi-posj)**2).sum()-1000000.0)**2
# self._update()

def _process_expand_button_on(self, i):
"""expand a shown supernode and show collapsed descendants"""
Expand Down