Skip to content

Commit 0a191aa

Browse files
authored
Merge pull request #873 from genematx/restructure
Restructure
2 parents d06b081 + 3515ca7 commit 0a191aa

File tree

19 files changed

+33
-20
lines changed

19 files changed

+33
-20
lines changed

bluesky-tiled-plugins/bluesky_tiled_plugins/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from .bluesky_event_stream import BlueskyEventStream # noqa: F401
2-
from .bluesky_run import BlueskyRun # noqa: F401
3-
from .catalog_of_bluesky_runs import CatalogOfBlueskyRuns # noqa: F401
4-
from .tiled_writer import TiledWriter # noqa: F401
1+
from .clients.bluesky_event_stream import BlueskyEventStream # noqa: F401
2+
from .clients.bluesky_run import BlueskyRun # noqa: F401
3+
from .clients.catalog_of_bluesky_runs import CatalogOfBlueskyRuns # noqa: F401
4+
from .writing.tiled_writer import TiledWriter # noqa: F401
55

66
__all__ = [
77
"BlueskyEventStream",

bluesky-tiled-plugins/bluesky_tiled_plugins/clients/__init__.py

Whitespace-only changes.

bluesky-tiled-plugins/bluesky_tiled_plugins/catalog_of_bluesky_runs.py renamed to bluesky-tiled-plugins/bluesky_tiled_plugins/clients/catalog_of_bluesky_runs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from tiled.queries import Comparison, Eq, Like
1111
from tiled.utils import safe_json_dump
1212

13+
from ..queries import RawMongo, ScanIDRange, TimeRange, _PartialUID, _ScanID
1314
from .bluesky_run import BlueskyRunV2, BlueskyRunV3
14-
from .queries import RawMongo, ScanIDRange, TimeRange, _PartialUID, _ScanID
1515

1616

1717
class CatalogOfBlueskyRuns(Container):

bluesky-tiled-plugins/bluesky_tiled_plugins/exporters.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,26 @@
44

55

66
async def json_seq_exporter(mimetype, adapter, metadata, filter_for_access):
7-
"""
8-
Export BlueskyRun is newline-delimited sequence of JSON.
7+
"""Export BlueskyRun as newline-delimited sequence of JSON documents.
8+
9+
This callback is to be configured on the server-side to enable exporting
10+
BlueskyRun objects in JSON-Seq format.
11+
12+
The resulting stream yields strings, each of which is a JSON document
13+
representing one of the standard Bluesky documents: start, descriptor,
14+
event, stream_resource, stream_datum, and stop, in the appropriate order.
915
10-
Format is like:
16+
For example:
1117
18+
```
1219
{"name": "start", "doc": {...}}
1320
{"name": "descriptor", "doc": {...}}
21+
{"name": "event", "doc": {...}}
22+
{"name": "stream_resource", "doc": {...}}
23+
{"name": "stream_datum", "doc": {...}}
1424
...
25+
{"name": "stop", "doc": {...}}
26+
```
1527
"""
1628
for spec in adapter.specs:
1729
if spec.name == "BlueskyRun" and spec.version.startswith("3."):

bluesky-tiled-plugins/bluesky_tiled_plugins/writing/__init__.py

Whitespace-only changes.

bluesky-tiled-plugins/bluesky_tiled_plugins/dispatcher.py renamed to bluesky-tiled-plugins/bluesky_tiled_plugins/writing/_dispatcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
That code has been extremely stable for about ten years, so divergence
1111
is not a pressing concern.
1212
"""
13+
1314
import sys
1415
import types
1516
from itertools import count

0 commit comments

Comments
 (0)