How to use the jupyter-innotater.jupyter_innotater.watchlist.WatchList function in jupyter-innotater

To help you get started, we’ve selected a few jupyter-innotater examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ideonate / jupyter-innotater / jupyter-innotater / jupyter_innotater / data.py View on Github external
self.height = kwargs.get('height', 0)
        self.path = kwargs.get('path', '')

        self.transform = kwargs.get('transform', None)

        self.annotation_styles = kwargs.get('annotation_styles', {})

        self.colorspace = 'BGR'
        if 'colorspace' in kwargs:
            self.colorspace = kwargs['colorspace']
            if self.colorspace not in ('BGR', 'RGB'):
                raise Exception("Parameter colorspace must be either 'RGB' or 'BGR'")

        self.max_repeats = 0

        self.watchlist = WatchList()