Comments (2)
Multiple runs can refer to resources with the same uid, this means that these runs also share datum, because datum looked up by resource uid. The name uid
implies that it is unique.
from event-model.
But if there is not an index enforcing it.... I think there is an index enforcing that the datum_ids in the Datum collection are unique. It is allowed for events from multiple runs to refer to the same datum if they really do share data (the primary driver here is for backgrounds).
This is a bit of an edge case because we want:
- runs to be able share references to the same data on disk (primarily for background / calibration reasons)
- ensure that all foreign keys are included in the event stream if you jump it at a
Start
document (so a consumer never has to know what oracle to go to to resolve them) - the Resource and Datum documents to be primarily generated by
Ophyd
objects (as that is where the knowledge about the file writing lives)
Previously, ophyd objects directly inserted the resource/datum into data broker (which got point 3 and 1). To fix this we changed how those documents got routed, added the collect_asset_docs
which fixed point 2 and allowed us to tack the run_start onto the resource documents to make it easier to collect them later without affecting 1 or 3.
There is something nice about having the duplicated Resource documents share a resource uid as that is the key we use to determine if we need another handler and these all should be able to share said handler.
from event-model.
Related Issues (20)
- Sort existing schema alphabetically
- Allow event counters to be defined outside of a run
- Slight difference between the current bluesky bundler and event model HOT 2
- Switch from `partials` to Compose classes HOT 1
- Use the python skeleton's version determination method
- Reorder the schema for easier review
- Investigate independent versioning for schema HOT 1
- Add a unit test for schema rejecting dots in keys
- make new release of event-model HOT 1
- Allow precision to be null in Descriptor
- New pydantic release 2.0.0 breaks event-model HOT 1
- Issues with pydantic v2
- What should event counters do if seq_num is specified? HOT 2
- run_start.additionalProperties should either be True, or a field for additionalProperties should be provided. HOT 1
- Move from pydantic version 1 to 2 HOT 1
- Reviewing StreamResource and StreamDatum from the storage, access perspective HOT 43
- ComposeStreamBundle.compose_stream_datum: `AttributeError: 'dict' object has no attribute 'compose_stream_datum'` HOT 1
- Searching and version switching in the docs does not work
- Add specific data type HOT 1
- Add NotRequired things to the DataKey schema
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from event-model.