Skip to content

Commit 0003047

Browse files
committed
add shape property to iosys
1 parent 9fa4aac commit 0003047

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

control/iosys.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ def find_states(self, name_list):
432432
lambda self: list(self.state_index.keys()), # getter
433433
set_states) # setter
434434

435+
@property
436+
def shape(self):
437+
"""2-tuple of I/O system dimension, (noutputs, ninputs)."""
438+
return (self.noutputs, self.ninputs)
439+
435440
# TODO: add dict as a means to selective change names? [GH #1019]
436441
def update_names(self, **kwargs):
437442
"""update_names([name, inputs, outputs, states])

0 commit comments

Comments
 (0)