The if current_num_chans == 0: branches in RMF.apply_rmf can never be reached because _flatten_arrays already removes empty groups with if t:. Therefore the code can be simplified.
Proposed changes are pushed to my forked repo and PR #28 if you are interested.