code: def pot_for_component(pot, q, component=1, reverse=False):
      
      # currently only used by legacy wrapper: consider moving/removing
      if component==1:
          return pot
      elif component==2:
          if reverse:
              return pot/q + 0.5*(q-1)/q
          else:
              return q*pot - 0.5 * (q-1)
      else:
          raise NotImplementedError
docs: q for secondaries should already be flipped (via q_for_component)