I hereby claim:
- I am glyg on github.
- I am glyg (https://keybase.io/glyg) on keybase.
- I have a public key ASBkD0fyyN9VGEg1GJKlxQfw3_WBzI7xGVdkmNthXVGNago
To claim this, I am signing this object:
""" | |
See: https://docs.scipy.org/doc/scipy/reference/signal.html#waveforms | |
""" | |
from dataclasses import dataclass, field | |
from functools import partial | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy import signal |
import matplotlib.pyplot as plt | |
import io | |
def quiver_overlay(img, x, y, u, v, rescale, **kwargs): | |
"""Plots a quiver and return a superposable visualisation | |
Parameters | |
---------- | |
img: ndarray, | |
the input (2D) image array |
import numpy as np | |
img = np.random.poisson(size=(1024, 1024)) | |
pad_x, pad_y = np.meshgrid(np.arange(-5, 5), np.arange(-5, 5)) | |
cx = np.random.randint(0, img.shape[0], 12) | |
cy = np.random.randint(0, img.shape[0], 12) | |
xx = cx[:, None, None] + pad_x |
import os | |
import sys | |
from pathlib import Path | |
sys.path.append(r"C:\Users\endo\Documents\endo-py") | |
import numpy as np | |
import matplotlib.pyplot as plt |
I hereby claim:
To claim this, I am signing this object:
import os | |
import ipyvolume as ipv | |
from tyssue import Sheet, config, SheetGeometry | |
from tyssue.draw import sheet_view | |
from tyssue.io import hdf5 | |
from pathlib import Path | |
import numpy as np | |
import pandas as pd | |
i = 0 |
def MyClass() | |
def __init__(self, data): | |
self._backups = deque() | |
self.data = data | |
def copy(self): | |
return MyClass(self.data) | |
def backup(self): | |
"""Creates a copy of self and keeps a reference to it |