lava icon indicating copy to clipboard operation
lava copied to clipboard

Virtual ports should inherit the capabilities of their parent ports

Open mathisrichter opened this issue 3 years ago • 1 comments

Objective of issue: Virtual ports should inherit the capabilities of their parent ports

Lava version:

  • [ ] 0.4.0 (feature release)
  • [ ] 0.3.1 (bug fixes)
  • [x] 0.3.0 (current version)
  • [ ] 0.2.0
  • [ ] 0.1.2

I'm submitting a ...

  • [ ] bug report
  • [x] feature request
  • [ ] documentation request

Current behavior:

  • When a virtual port is created, it has a number of generic capabilities, like connecting. But when creating a virtual port on a RefPort, the user cannot use the connect_var() method on the virtual port.

Expected behavior:

  • Whatever port a virtual port is created on, it should inherit all those capabilities that also make sense for the virtual port to have.

Steps to reproduce:

v = Var((6,))
rp = RefPort((1, 2, 3))
rp.reshape(newshape=(6,)).connect_var(v)  # this does not work

mathisrichter avatar Mar 22 '22 22:03 mathisrichter

@mathisrichter What is the current status of this issue?

tim-shea avatar Jan 17 '24 18:01 tim-shea