(self, amt, player_that_bets)
return fraction
reverse of self.get_fraction_of_pot_raise()

        Args:
            amt:                number of chips (total bet, not additional!)
            player_that_bets:   any PokerPlayer in self.seats

        Returns:
            float:              fraction of pot that produces a raise by the given amt of chips
reverse of self.get_fraction_of_pot_raise()
reverse of self . get_fraction_of_pot_raise ()
def get_frac_from_chip_amt(self, amt, player_that_bets):
        """
        reverse of self.get_fraction_of_pot_raise()

        Args:
            amt:                number of chips (total bet, not additional!)
            player_that_bets:   any PokerPlayer in self.seats

        Returns:
            float:              fraction of pot that produces a raise by the given amt of chips

        """
        _player = player_that_bets if isinstance(player_that_bets, PokerPlayer) else self.seats[player_that_bets]

        to_call = self._get_biggest_bet_out_there_aka_total_to_call() - _player.current_bet
        pot_after_call = self.main_pot + sum(self.side_pots) + sum([p.current_bet for p in self.seats]) + to_call

        delta = amt - _player.current_bet
        fraction = float(delta - to_call) / float(pot_after_call)

        return fraction
def get_frac_from_chip_amt ( self , amt , player_that_bets ) : _player = player_that_bets if isinstance ( player_that_bets , PokerPlayer ) else self . seats [ player_that_bets ] to_call = self . _get_biggest_bet_out_there_aka_total_to_call ( ) - _player . current_bet pot_after_call = self . main_pot + sum ( self . side_pots ) + sum ( [ p . current_bet for p in self . seats ] ) + to_call delta = amt - _player . current_bet fraction = float ( delta - to_call ) / float ( pot_after_call ) return fraction