Skip to content

Filtering with a Migration #169

@jpfairbanks

Description

@jpfairbanks

@KevinDCarlson I was reading the tests and I don't see why this migration filters things. Shouldn't I have to assert that d == l somewhere?

#Filter impossible edges out of a mechanical linkage
M = @migration SchMechLink SchMechLink begin
  V => V
  E => @join begin
          e :: E
          L :: Len
          (l:eL) :: (x->len(x)^2)
          (d:eL) :: (x->sum((pos(src(x))-pos(tgt(x))).^2))
      end
  Pos => Pos
  Len => Len
  src => src(e)
  tgt => tgt(e)
  pos => pos
  len => len(e)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions