Skip to content

Commit

Permalink
exposed all documents in event_model namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
evalott100 committed Oct 7, 2024
1 parent 90963dc commit adf40d1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/user/reference/release-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Changed
* Added a `Limits` type for storing EPICS limit data and a `NotRequired[Limits]` `limits` field to `DataKey`.
* Added a `NotRequired` `dtype_numpy` field to `DataKey` for specifying the numpy dtype of data.
* Bumped from `jsonschema 3.*` to `jsonschema 4.*`.
* Added all documents to `event_model` namespace.

v1.21.0 (2024-05-21)
====================
Expand Down
37 changes: 32 additions & 5 deletions event_model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,21 @@
import numpy
from typing_extensions import Literal

from .documents import Dtype
from .documents.datum import Datum
from .documents.datum_page import DatumPage
from .documents.event import Event
from .documents.event import Event, PartialEvent
from .documents.event_descriptor import (
Configuration,
DataKey,
Dtype,
EventDescriptor,
Limits,
LimitsRange,
PerObjectHint,
)
from .documents.event_page import EventPage
from .documents.resource import Resource
from .documents.run_start import RunStart
from .documents.event_page import EventPage, PartialEventPage
from .documents.resource import PartialResource, Resource
from .documents.run_start import Calculation, Hints, Projection, Projections, RunStart
from .documents.run_stop import RunStop
from .documents.stream_datum import StreamDatum, StreamRange
from .documents.stream_resource import StreamResource
Expand All @@ -62,7 +64,32 @@


__all__ = [
# Document types
"Datum",
"DatumPage",
"Event",
"PartialEvent",
"Configuration",
"DataKey",
"Dtype",
"EventDescriptor",
"Limits",
"LimitsRange",
"PerObjectHint",
"EventPage",
"PartialEventPage",
"PartialResource",
"Resource",
"Calculation",
"Hints",
"Projection",
"Projections",
"RunStart",
"RunStop",
"StreamDatum",
"StreamRange",
"StreamResource",
# Schema and version
"DocumentNames",
"schemas",
"schema_validators",
Expand Down

0 comments on commit adf40d1

Please sign in to comment.