41 Remap the input channel identifiers. Returns a new IOVSet
42 with the channel number changed according to the provided mapping
54 iovs = IOVSet(iov._replace(channel=mapping[iov.channel])
55 for iov
in iovs
if has_channel(iov.channel))
58 log.debug(
"WARNING: %s has %i unmapped channels %r",
59 folder, len(bad_channels), repr(bad_channels))
62 iovs = flatten_channels(iovs)
65 iovs.sort(key=
lambda iov: (iov.channel, iov.since))