Skip to content

Commit

Permalink
Merge pull request #233 from pik-copan/196-review_linting
Browse files Browse the repository at this point in the history
STY: clean up `flake8` configuration
  • Loading branch information
fkuehlein authored Jul 4, 2024
2 parents ff775ea + d072998 commit 6c6bcc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
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

0 comments on commit 6c6bcc9

Please sign in to comment.