File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import asyncio
22import contextlib
33import tempfile
4+ from pathlib import Path
45
56import awkward
67import h5py
1011import sparse
1112import tifffile
1213
13- from tiled .catalog import in_memory
14+ from tiled .catalog import from_uri
1415from tiled .client import Context , from_context
1516from tiled .client .register import register
1617from tiled .client .smoke import read
2324@contextlib .contextmanager
2425def client_factory (readable_storage = None ):
2526 with tempfile .TemporaryDirectory () as tempdir :
26- catalog = in_memory (
27- writable_storage = str (tempdir ), readable_storage = readable_storage
27+ catalog = from_uri (
28+ Path (tempdir , "catalog.db" ),
29+ writable_storage = str (tempdir ),
30+ readable_storage = readable_storage ,
31+ init_if_not_exists = True ,
2832 )
2933 app = build_app (catalog )
3034 with Context .from_app (app ) as context :
You can’t perform that action at this time.
0 commit comments