This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import tifffile | |
def make_cylinder_profile(x, radius): | |
valid = np.where(x ** 2 <= radius ** 2) | |
profile = np.zeros(m) | |
profile[valid] = 2 * np.sqrt(radius ** 2 - x[valid] ** 2) | |
return profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import gi | |
import numpy as np | |
gi.require_version("Ufo", "0.0") | |
from gi.repository import Ufo | |
N = 8192 | |
RESOURCES = Ufo.Resources() | |
PLUGIN_MANAGER = Ufo.PluginManager() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
RUNNING = set([]) | |
async def coro(name, howlong=5, raise_exc=None): | |
print('start', name) | |
if raise_exc: | |
raise raise_exc |