get_channel_ids

MPPData.get_channel_ids(to_channels, from_channels=None)[source]

Map channel names to ids.

Parameters
  • to_channels (List[str]) – Channel names for which would like to know the ids.

  • from_channels (Union[DataFrame, List[str], None]) – Get channel_ids assuming ordering of from_channels. By default use the ordering of MPPData.channels. This is useful for models that are trained with different output than input channels.

Return type

Channel ids that can be used to index MPPData.mpp.