Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Dec 6, 2024
1 parent 7c1beb7 commit ba22d9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions large_image/widgets/components.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
import ipyvue
import traitlets
from pathlib import Path
from typing import Callable, List, Union


class DualInput(ipyvue.VueTemplate):
class DualInput(ipyvue.VueTemplate): # type: ignore
template_file = __file__, 'DualInput.vue'

label = traitlets.Unicode(default_value='Value').tag(sync=True)
currentValue = traitlets.Int(default_value=0).tag(sync=True)
valueMax = traitlets.Int(default_value=10).tag(sync=True)
sliderLabels = traitlets.List(default_value=[]).tag(sync=True)
sliderLabels = traitlets.List([""], allow_none=True).tag(sync=True)
maxMerge = traitlets.Bool(default_value=False).tag(sync=True)

class FrameSelector(ipyvue.VueTemplate, traitlets.HasTraits):
class FrameSelector(ipyvue.VueTemplate ): # type: ignore
template_file = __file__, 'FrameSelector.vue'
components = traitlets.Dict({
'DualInput': DualInput().template.template,
}).tag(sync=True)

imageMetadata = traitlets.Dict().tag(sync=True)
currentFrame = traitlets.Int(default_value=0).tag(sync=True)
updateFrameCallback = None
updateFrameCallback: Union[Callable, None] = None

def vue_frameUpdate(self, data=None):
if self.updateFrameCallback is not None:
Expand Down
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ matplotlib
pylibmc>=1.5.1
redis
simplejpeg
ipyvue

# External dependencies
pip>=9
Expand Down

0 comments on commit ba22d9c

Please sign in to comment.