Skip to content

Instantly share code, notes, and snippets.

@sofroniewn
sofroniewn / TransformChain.py
Created March 4, 2020 23:40
holder for TransformChain
class TransformChain(ListModel, Transform):
def __init__(self, transforms=[]):
super().__init__(
basetype=Transform,
iterable=transforms,
lookup={str: lambda q, e: q == e.name},
)
def __call__(self, coords):
return tz.pipe(coords, *self)
@sofroniewn
sofroniewn / extent.py
Created October 24, 2020 01:53
extent object for napari
import numpy as np
from ..utils.events import EmitterGroup
class Extent:
"""Extent object holding minimum and maximum values of data.
Parameters
----------
"""
Display many points layers
"""
import numpy as np
import napari
from time import time
data = []
for i in range(50):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.