This file contains hidden or 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
| { | |
| "title": "OME", | |
| "description": "The OME element is a container for all information objects accessible by OME.\n\nThese information objects include descriptions of the imaging experiments and\nthe people who perform them, descriptions of the microscope, the resulting\nimages and how they were acquired, the analyses performed on those images, and\nthe analysis results themselves. An OME file may contain any or all of this\ninformation.\n\nWith the creation of the Metadata Only Companion OME-XML and Binary Only OME-\nTIFF files the top level OME node has changed slightly. It can EITHER: Contain\nall the previously expected elements OR: Contain a single BinaryOnly element\nthat points at its Metadata Only Companion OME-XML file.\n\nParameters\n----------\nbinary_only : BinaryOnly, optional\n Pointer to an external metadata file. If this element is\n present, then no other metadata may be present in this\n file, i.e. this file is a place-holder.\ncreator : str, optional\n This is the |
This file contains hidden or 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
| """ | |
| This requires jpype: `pip install jpype1` | |
| You will also need to have java accessible (`conda install openjdk` works) | |
| Lastly, download the loci_tools.jar from: | |
| https://downloads.openmicroscopy.org/bio-formats/latest/artifacts/ | |
| and set the path in the `LOCI` variable below | |
| """ | |
| from ome_types import from_xml |
This file contains hidden or 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
| from typing import Container | |
| from magicgui import magicgui, widgets | |
| from qtpy.QtWidgets import QWidget, QVBoxLayout | |
| @magicgui | |
| def my_widget(x: int): ... | |
| # in pseudocode the above is similar to |
This file contains hidden or 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
| from napari.layers import Image, Layer | |
| from magicgui import magicgui | |
| def custom_get_layers(combo_widget): | |
| from napari.utils._magicgui import find_viewer_ancestor | |
| viewer = find_viewer_ancestor(combo_widget.native) | |
| if not viewer: | |
| return [] | |
This file contains hidden or 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
| from typing import Callable, Optional, TypeVar, overload, Union | |
| from typing_extensions import ParamSpec, Literal | |
| from functools import wraps | |
| P = ParamSpec("P") | |
| R = TypeVar("R") | |
| @overload | |
| def decorator(func: Callable[P, R], param: int = ...) -> Callable[P, R]: |
This file contains hidden or 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 re | |
| import shutil | |
| import sys | |
| from pathlib import Path | |
| from subprocess import check_call | |
| from typing import Any, Dict, Sequence, Union | |
| from grayskull.strategy.pypi import ( | |
| PYPI_CONFIG, | |
| Configuration, |
This file contains hidden or 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
| # modified from https://github.com/adamkglaser/io_benchmarks | |
| import threading | |
| import multiprocessing | |
| import zarr | |
| import numpy as np | |
| import z5py | |
| import h5py | |
| import tifffile | |
| import dask.array as da |
This file contains hidden or 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
| from graphviz import Digraph | |
| from vispy import scene | |
| def trace(root): | |
| nodes, edges = set(), set() | |
| def build(v): | |
| if v not in nodes: | |
| nodes.add(v) | |
| for child in v.children: | |
| edges.add((child, v)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.