Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d70-t
d70-t / sphinx_design_converter.py
Created June 8, 2022 21:25
Converter for sphinx-panel markdown to spinx-design markdown
import re
block_re = re.compile("^(`{3,})([^`]*)$")
separator_re = re.compile(r"^-{3,}\s*$")
class Text:
ticks = 0
def __init__(self, content):
self.content = content
def gen(self):
@d70-t
d70-t / mzz.ipynb
Created May 19, 2022 17:47
gribscan with MultiZarrToZarr
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d70-t
d70-t / renumberingstore.py
Last active May 17, 2022 15:55
renumber shards
import re
from typing import Dict, Optional, Sequence
import zarr.storage
class RenumberShardsStore(zarr.storage.Store):
def __init__(
self,
base: zarr.storage.BaseStore,
shards: Dict[str, Sequence[int]],
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.