microsoft / yardl

Tooling for streaming instrument data
https://microsoft.github.io/yardl/
MIT License
29 stars 5 forks source link

basic algebra on computed fields #73

Closed KrisThielemans closed 8 months ago

KrisThielemans commented 9 months ago

It'd be nice to be able to do some basic manipulations for a computed field, e.g. subtracting 1

ScannerInformation: !record
  fields:
    # edge information for TOF bins in mm (e.g. start,edge1, ... end)
    tofBinEdges: float*
  computedFields:
    numberOfTOFBins: size(tofBinEdges)-1
johnstairs commented 9 months ago

Agree!

johnstairs commented 8 months ago

@KrisThielemans, this is now available in the v0.3.1 release.