lava
lava copied to clipboard
Virtual ports should inherit the capabilities of their parent ports
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 What is the current status of this issue?