Skip to content

Commit

Permalink
Format with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jobar8 committed Oct 17, 2024
1 parent 8bdeed3 commit 67c37a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/attractor_explorer/attractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Attractor(param.Parameterized):
equations: tuple[str, ...] = ()
__abstract = True


@staticmethod
@jit(cache=True)
def fn(x, y, a, b, *o):
Expand Down Expand Up @@ -266,7 +265,7 @@ def _add_item(self, item):
self.example = item

def _remember(self):
vals = self.current().vals() # type: ignore
vals = self.current().vals() # type: ignore
self._add_item(vals)

def args(self, name):
Expand Down
7 changes: 5 additions & 2 deletions src/attractor_explorer/attractors_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def update_attractor(self):
'orientation': 'vertical',
'button_type': 'warning',
'button_style': 'outline',
'stylesheets': [':host(.outline) .bk-btn-group .bk-btn-warning.bk-active {color:white}']
'stylesheets': [':host(.outline) .bk-btn-group .bk-btn-warning.bk-active {color:white}'],
},
'resolution': {'widget_type': pn.widgets.RadioButtonGroup, 'button_type': 'success'},
},
Expand All @@ -143,7 +143,10 @@ def update_attractor(self):
show_name=False,
parameters=['input_examples_filename', 'load', 'example', 'remember_this_one'],
),
title='Load and Save',collapsed=True, header_color='white',header_background='#2c71b4',
title='Load and Save',
collapsed=True,
header_color='white',
header_background='#2c71b4',
),
],
main=[
Expand Down

0 comments on commit 67c37a8

Please sign in to comment.