cymr.network.Network.get_unit#

Network.get_unit(layer, sublayer, segment, unit)#

Get indices for a unit.

Parameters:
  • layer ({'f', 'c'}) – Layer to access.

  • sublayer (str) – Sublayer to access.

  • segment (str) – Segment to access.

  • unit (int) – Index of the unit within the segment.

Returns:

ind – Absolute index of the unit within the layer.

Return type:

int