def test(dtb_url=default_dtb, schema="Football", market="1x2", margin='basic', csv=True, csvfile="", bookmakers=None): if bookmakers is None: bookmakers = default_bookmakers closed, opening, _, _ = load_data(dtb_url=dtb_url, schema=schema, market=market, to_numpy=False, csv=csv, csv_file=csvfile) if closed is None: return for bookmaker in bookmakers: closed_pom = closed[closed['Bookmaker'] == bookmaker] opening_pom = opening[opening['Bookmaker'] == bookmaker] closed_odds = to_odds(closed_pom, market=market) closed_results = closed_pom['results'] opening_odds = to_odds(opening_pom, market=market) opening_results = opening_pom['results'] test = Tests.Tests(closed_odds=closed_odds, opening_odds=opening_odds, market=market, schema=schema, margin=margin, opening_results=opening_results, closed_results=closed_results, Bookmaker=bookmaker, test_list=config.default_list, txt_path=config.txt_path, pickle_path=config.pickle_path, png_path=config.png_path) test.test() test.save()
import Tests if __name__ == '__main__': print "WoWLootSimulator::Begin" numberOfFreshGearingRuns = 10000 numberOfRaidWeeks = 40 lootSimulationTest = Tests.Tests(numberOfFreshGearingRuns, numberOfRaidWeeks) #lootSimulationTest.Test_Realistic() lootSimulationTest.Test_Realistic_BalancedRoster() #lootSimulationTest.Test_PerfectLootCouncil_BalancedRoster() #lootSimulationTest.Test_NoPersonalLootItemTrading() print "WoWLootSimulator::End"