Skip to content

Conversation

@gwbischof
Copy link
Contributor

Method to check that documents are generated in an acceptable order.

@gwbischof gwbischof marked this pull request as ready for review July 8, 2019 14:25
@gwbischof gwbischof requested a review from danielballan July 8, 2019 14:25
Copy link
Member

@danielballan danielballan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's discuss the big picture in #98 first.

@gwbischof
Copy link
Contributor Author

Fixes #98

@gwbischof gwbischof requested a review from danielballan July 18, 2019 20:18

def validate_order(run_iterable):
"""
Validates the order of a Bluesky Run.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you copy over the content from #98 here to explain what constraints this is enforcing?

if name == 'event':
event_check(doc)
if name == 'event_page':
for event in unpack_event_page(doc):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not address:

Event[Page]s across streams are in time order up to the time resolution of a Page. That is, if we denote event_page['time'][0] as a_i ("a initial") and event_page['time'][-1] as a_f ("a final") for a given EventPage a, if b follows a and then b_f >= a_i. In English, each EventPage's highest time must be greater than or equal to the preceding EventPages' lowest times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants