Skip to content

Conversation

@nvaytet
Copy link
Member

@nvaytet nvaytet commented Feb 2, 2026

This adds the .data property to the Result object returned from Model.run().
It is similar to the .data property for component readings, but it returns a data group with one data entry for each component.
Screenshot_20260202_150406

return sc.DataGroup(
{
key: value.data
for key, value in chain(self.choppers.items(), self.detectors.items())
Copy link
Member

Choose a reason for hiding this comment

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

It might be nice if we can sort the names by the distance from the source.

Copy link
Member Author

Choose a reason for hiding this comment

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

Should we also add in the data from the source?

Copy link
Member

@YooSunYoung YooSunYoung left a comment

Choose a reason for hiding this comment

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

Looks very useful...!

@nvaytet nvaytet merged commit 729f16e into main Feb 3, 2026
4 checks passed
@nvaytet nvaytet deleted the result-data branch February 3, 2026 09:54
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.

3 participants