mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 01:29:10 +00:00
superscript.py - v 1.0.5.002
changelog: - more information given - performance improvements
This commit is contained in:
parent
109fa745f1
commit
0e634ee5e0
@ -1,5 +1,5 @@
|
||||
4.70712074003092,-9.680091676788177,-9.091986654577209,1.1915300443059813,-1.4713488276998827,-4.839660673615731,0.3418705511689435,-4.09407058212278,1.0365028705487518,-0.8786093675405482,-4.893455902250896,-7.669766590259293,-1.7280019087631953,-0.621792072586814,2.9671923696805926,1.3207894779658442,-3.893028347691045,3.925795749900832,9.200017281633993,-2.383381205089483,-2.511634412848041,0.3937091160851143,-2.6995063226241385,-0.5302230172451026,1.4888812242537668,5.9616579157931255,-3.321899351612423,-9.942957719112924,-5.84663914857817,-7.594449421484919,4.725641592790364,-0.13975195942901308,3.9733484839678628,9.329075191753347,-0.5915897929360447,3.3067638286907552,-3.719010043178148,-2.285134778999149,6.1413258453655715,-7.563237223085806,-9.147648691192432,-0.7422400517672916,7.949605834001449,-5.6501859053266195,7.304411014349451,-6.534414117824188,8.983314995015078,6.448786159803738,4.72267886446609,-2.764343532112261,-3.8186526609780085,6.5272695489930435,3.9905710434809993,-5.927194062279115,6.285799217795372,-7.38443094202117,-9.20164121879081,-3.3410046047772664,-9.443929351014402,-1.6567979974676543,3.9375130102146922,-3.949377670467369,-4.059345271120851,-7.458629061915632,-4.6607337464745076,9.166971736451345,-0.929980141531745,2.342543239920916,-9.997164399443196,-4.235518703164301,-5.580185844360188,-5.3644790924811065,-7.612428311315735,-9.670029731105911,3.5282391890747,-4.064262939765413,-4.271673771661655,3.0450605949134513,8.331328172801229,-8.655820590977168,2.3228441990088413,-6.840757890073612,-8.857075224414697,4.715926090662556,4.480240555894078,-7.614064710444177,4.601697661463486,2.746520342624482,-1.177048472457825,-7.439925831365393,-9.72731147998806,8.143320460142416,1.501239899379632,2.815724760228939,-2.6502868534270956,4.992704957334764,-8.041158019723373,8.91376469821273,9.463678033185893,9.465460050682065
|
||||
-8.424108150597462,0.1900144504871406,-9.419941696157132,6.509433360610451,-2.4108418538601972,2.051308601190451,3.5763309515489095,6.864185645214672,9.450484109180163,4.889607397982392,-0.37197724162617973,-7.546595015167115,-8.043390641187171,2.02074331807405,1.563797669469544,0.9193839722292942,-7.086753487281003,-7.612364775448317,2.3815602839701473,4.34989792752271,-4.887435457235401,2.0674551206310294,-5.376147863354516,-3.038006935870361,5.997492218711455,-4.2136791475515345,1.3051836596884598,-2.9818932232712285,8.357447800200767,7.345189017904627,-4.297101533416519,3.679078116805117,-9.596974900452434,0.9945207605043667,5.843993017385758,2.8071911871656745,1.5862772970168955,-5.659156446626056,3.3235360246038503,1.7057214518553323,4.122825614636449,5.59986711320642,0.31320599540134886,-3.99975272381692,5.842116293010829,4.918562701653098,-1.8688638852780848,-2.8752958121250654,5.608928186650427,-0.5441392362202517,-7.94360116947675,1.6732925311154805,2.6355137408742895,-0.7277016983957356,-6.317097209338753,3.103290146433043,2.749060660304046,6.359670850173757,-4.654215671201665,-8.164487754700918,-3.115686214134749,4.983697195465105,9.857425085583962,-0.7629750085117877,1.7253358163097854,5.694055360646415,3.606085272257433,1.6842390658707451,-5.044597121895382,-3.246267141018137,-5.741507506039973,-7.677693256053752,2.480448999096156,-2.6501684507804812,5.326720470989297,-0.6370988347019484,0.09103213293279211,-5.5798224467027175,4.7299008087748735,7.815650611352613,-6.491436271070883,-1.353129819727119,0.9523933122110435,-3.2868086830576804,5.810287128076599,-8.222692081271113,1.8266872744387737,5.01856043336495,-8.89270150971409,2.249621483835371,6.971755656940701,2.566582354088329,-0.5808687348825696,4.633663602437522,8.512990798673634,-9.929372015724061,6.936478126257736,2.732126894061439,7.085798344250577,7.393584372621021
|
||||
4.861188561193009,-2.7134366443223428,-1.771638653486633,5.392815482406448,-6.017151799260258,3.086690177308782,9.56720799942697,-7.153488073055792,-3.149621471602984,7.901022315801178,-8.421112449862827,2.0208545015983415,7.374465665953526,-9.26185158698486,9.003799999662611,-6.539593222855606,-2.082953057454038,0.19181990957832085,-8.632431829975996,9.465786613636492,-9.7473737420232,-4.284863292840198,-6.123289938344576,-9.440445481644959,7.418153891657873,0.08022483566342231,9.157544764038004,0.2682998822527871,-6.9940563685676205,8.203108281441253,-2.305548976218457,-4.912322394616979,-7.287788335658529,-2.721653565602944,7.6810140535099265,-2.2419869304288547,4.847729758370114,-1.2203922269616978,-6.610420380393847,7.033335205909893,-6.7051037054029505,-0.11161087120511226,3.2443558186425836,4.412876131564801,5.831267396424693,-4.181086978742794,-2.5458744062815146,1.9547924011648163,-2.0955184547043393,-8.376282744415779,-3.4284830142193883,5.943217155800944,-4.842096345879872,-7.253988012113228,-8.81112697918271,-0.003339223027671423,-2.954839514471672,-6.560094421345191,-7.307385520661594,4.298605728295605,9.62959813242929,-6.648222482628013,2.439835376114736,3.4175880409657555,-3.7822854331487887,-9.622611976172163,-9.532318779167628,9.65178929942645,3.69470401843801,7.675851886157634,-2.67188936265587,1.7264402263517002,-2.9075660780290153,4.9788841202293135,-7.488498541580546,-4.86792661903487,8.252637997771785,0.4006207145932823,9.059061068770696,-6.154457575610346,-9.024566755087724,-1.0404243705487186,-8.839882676750934,-0.02869168411799805,-6.418044959149638,2.4042943334250175,9.66053772648229,-2.742404931013218,2.4360247478962,-9.859328044217134,-3.1752438231504883,4.919437536445413,-2.770840013652405,0.07377014775450874,-8.605802522279816,-2.750997973306559,-5.414968845796957,-5.7679337887985005,4.675891971675332,-2.627384687423868
|
||||
-8.443943094096637,9.872351395371695,-1.5912721732817374,-8.528424939370176,-9.701805913781044,8.64773053001182,9.829582002251875,-5.748563862856464,1.0213939755303496,-5.0996523505007225,3.0636246465846497,-0.47806797511850085,0.05878554849622297,6.937648875421502,-2.520292258396431,-9.821486995743108,-9.490115065911304,7.16734428957831,-9.471155581184764,-8.396962554151738,5.773869919622177,-8.131012667024685,5.57956547809165,3.529902861391083,-2.967376522451519,-4.722711949009328,-9.240789983730572,-7.988651450651767,9.776272288689867,-3.658480338384164,-1.7242634216613872,-3.653931290774029,8.363303117779594,2.645594889948569,1.377098450722876,-9.649695225259364,-5.89072637631368,-2.4220746200046506,2.3236175957500205,9.846414941053297,5.772058544884413,-8.727797060917538,-2.203753635096888,2.4052265560776256,-9.56372951965794,-5.606580720217318,1.6650605938771967,-8.804953256473432,6.645762993231962,-3.244639931659856,2.6570227725084017,-1.6007147852984076,7.389191521741807,-4.209645609570742,-8.890128956870722,-9.634679296584725,8.908371788627289,5.300902254483455,0.7320420465836115,1.0440831937529644,-3.4580922460467844,-9.020178889477528,-1.9580496046130396,-7.805572039443842,4.208453183929059,7.789857649854252,1.5764274147656359,-1.4424284095535551,-6.916153781029681,-7.86887505735721,-3.1756631248089366,9.050828284385869,7.212140892082115,-0.9826613031963625,9.019276820884961,3.644269874162866,0.16588686398289632,3.3374494645657133,-9.988406176657797,-5.346888732847271,0.3037664974694092,-3.8607201291831856,-7.407897077364456,-3.950278408073147,7.743251178716989,2.2170421411287204,1.1548735984305694,7.964786438043898,-4.7628703154321705,-0.04991356872370467,-9.323763862505531,4.5339011764752115,1.087010637964724,-6.361086205424085,0.36340778391210904,-0.23940975528674535,4.877920082702854,-4.02409321670908,-9.01794762071777,-0.7976604142972512
|
||||
9.612124894101857,6.8577565804710545,8.991409029609098,-7.576572469273559,7.666268838531963,-7.698233413311053,1.3333810054972552,-9.214613508379376,-9.31802169863894,-6.143357888913641,2.9334234417437184,-0.32317563283858775,6.711802559060118,-1.8491664066588225,7.721682919107387,4.399241505632837,6.244618506660817,8.364558099140847,7.509626099619545,-9.254758088879967,3.901254241708706,-3.512517929930283,5.472242228308492,-9.80093789090829,-4.88665056939648,-6.596191719843183,0.21118867659345675,-4.887641593820071,-4.104028510735123,5.749641124545967,3.602705464337392,-0.42244974494188803,-3.8865719478193483,-1.6852134337560578,4.434111178608402,0.23011504998179078,6.757167398074479,-9.693756372503707,8.629555197698295,-8.740521853154037,-7.751078084400698,-9.897053465028288,1.9719055489725168,9.68022394011377,1.5748800732082202,0.9437216196339655,6.981340581467215,9.720513686594213,4.584201718937875,-3.9249247430999468,-4.275822392990973,-7.6521394843554225,8.69586195121721,3.814955919962948,3.009993620550608,3.0601055337862206,6.310859555773092,-4.9336534977577395,-9.435847029766613,-5.076408875909431,0.08411268138248928,-3.749708757134771,-4.175906497092243,-4.001458014345944,0.07136716586609992,5.4905634708086595,-9.560089544602079,1.1107358895544177,-9.455737749845895,6.412651578613886,6.049467547591611,-9.791349069322916,-9.211583960632177,8.823298824611804,-4.048619162572402,-7.372905600706683,-2.9234888484136823,-6.220248146242211,-3.2092827363356458,8.384223649628638,3.3860749371079653,2.1286893601792034,8.840539639146044,-5.152837620498982,-2.214491791173181,-8.483553813529843,-5.188264071677522,-3.565162747549304,2.09391953905444,3.738885598123513,-5.329703186313031,-1.3580108558078052,9.99364627287973,-3.6856662393244077,-1.5988090671497233,-6.809626166513432,-2.788046033328147,-6.3632608882254615,4.714925798238143,-4.88230175946037
|
||||
3.1630010613819266,9.4292307303114,-0.323251889179911,-5.386181559067866,2.534879621508633,-5.165597428986722,6.781430809047265,-0.6282127632735541,-1.0861042779691985,9.35487366197819,8.797857763983743,-1.7228656825441355,-8.537192856364065,5.052775825388903,-5.801718614169187,-3.991567829343965,-6.354838195228005,-5.789567658308035,-2.234361028326452,-7.824326717389576,9.944153435265441,-2.6250058262846743,5.187785540324899,-7.817733885932993,-0.5495374257657222,-1.9071654677837895,5.573891899068942,-1.488902249404024,0.1466900371151887,-1.9859573811436793,-7.2484840322743,1.1313354023315867,-7.5618652049793855,-5.827244176508111,3.545169414494671,6.308215883868659,-6.718473082814393,8.377856694673874,-8.16137266764721,-5.075101123286288,-4.5852911742407,6.719021169503613,-6.029113281204543,5.273328597459566,0.0763770865509823,9.28885677894446,-7.947793863113885,7.845554524426525,-8.521879358485565,0.9347947446861724,-0.28152137414332934,9.527815722615298,-7.781986361995141,2.51994233096182,-8.375584210551812,7.579152243875466,-6.011614079234309,7.9368523400199,5.794364333401118,0.3270958957976884,3.343149418463785,1.187118681195516,5.683636971125912,3.058057837202666,2.9731154581416703,-5.951054389944959,-3.938143670001601,-8.423951328854164,2.0094359968578157,5.976845213102051,-4.498822138796992,5.810899623653306,-2.827881055139718,-1.8019945971538682,-4.9529807256756175,-1.9837251605735169,6.296210829315669,-3.2065733117364754,4.453313976934407,2.5735548193312408,5.146019114708203,-8.390100760859474,-5.111322602030599,4.295829898355002,2.883101334770684,6.65043004394818,-8.552982078286695,6.058368688959515,-9.298443633133909,5.416227761836057,3.1281090859797303,-2.7702280295615633,-5.368155844397277,2.684599018010413,6.603278656476263,0.493963745183553,9.93340040961121,0.8827110366761914,-0.44455956717372125,-6.748670065028741
|
||||
6.542296157559289,-4.673766607185295,-1.655895129300406,0.918209908948235,2.8694117062272078,-4.50297617419654,-8.555393424416343,-0.8451646772993637,-5.502478482981161,3.7393214415492686,1.1303949983411936,-8.843834825051891,0.1525580480134785,-2.509520569886872,-7.2708155377447685,-6.985636447086776,-0.9437618858164178,7.7399854908313515,-2.607234595695733,-8.795702862339965,9.9696168389248,1.2331949933066255,-9.655538013694184,4.850180287638743,-0.8587066265618475,8.70059494121088,-7.721033875964618,6.940183300648368,-9.232007064557202,-4.8978901956939165,-2.0268568451287,4.091453500296922,-9.956003970918745,1.8585991523815473,-5.09553772739705,-0.2286792890090581,-4.501294061313754,-8.70023355793232,0.7426670182776984,4.715497324358681,9.686644349219563,8.269948493529341,4.984317712087412,-9.437623024210255,-1.0534823931214667,9.608823628851418,-2.6332068117394165,-8.057170930302103,-9.743710461870283,-3.337632155241228,-6.501042503531435,2.194382690602712,-7.42315133954826,2.911858704500643,3.158418490595693,7.484649262701598,1.6470373155344813,-6.061393093019387,3.660451182392851,-3.4459575254499146,-7.189201001276326,-0.19240762631782715,0.12870174904799825,3.618960833026714,-3.766225616338186,4.528556079041081,1.0163271611826286,2.3999525084645956,-6.879123348784875,3.9522719302622136,-7.81633997377612,8.523342842566095,4.318488633063733,1.7203975601128878,-4.9842885659559215,-6.430105111813429,-3.7232266461039636,0.2979685014530844,3.991329488510244,-6.581382396224768,4.116738382943552,5.746746496886768,-9.631600802511766,2.3750434881677673,-4.364124891293402,-9.886396101863966,1.464327404213389,2.233312839129791,-1.0582430103058158,-5.5969649756489765,-0.7958167325478236,5.223086048806927,-9.396289975287386,-8.867711544036862,-8.71173762021845,1.7306169427259288,4.944071857656414,-0.30571049742613887,3.725285856304687,6.842918676123311
|
||||
-6.380962022950387,-7.23238786803212,7.724710932023122,8.820538118298728,-3.6247705993923702,-6.02910990094589,3.7783178082555136,7.382385748358594,7.1007772701997425,5.001608772556798,-0.3162902785528452,4.9796937758184985,0.03496683143143109,-5.9558491121412915,-8.406812074837156,6.486559121653531,-6.0768780899203385,-3.3307517540180225,-7.312999618157723,-2.914816041791446,-5.970236300833753,-3.6560427666514794,-4.318455314200678,-1.8697040766541804,6.200264734935381,-3.582682396420463,-7.86746508318619,-5.393477387577561,-8.533907349929386,0.7606219494832551,8.444703482630658,-2.4182177108605263,0.5167259026816655,-5.985575218519017,-0.4847645461345884,0.4938867790464485,3.3859633669265996,-5.488059596933974,-3.7018166734392004,1.9263404033770026,5.79333752602202,-7.861928423684102,-2.814719160010231,-7.457927237113687,-2.702639878663753,-1.0850988615218515,-2.8231982388751558,-6.699927959365358,4.5740210740062714,8.38356578875976,3.103579268695791,2.6238194762487304,0.34302801049465614,7.139699465511622,-6.9800185555674155,-2.4276445929860007,-1.1514716479418574,9.368369278785124,-9.574398566249748,6.6354782142969775,-4.370050426679546,7.301706721616622,7.717969385037431,-1.2558003938911622,-6.391743288043347,-6.913152807322913,-3.3966992760326704,6.55582203961173,-1.6854504831178385,1.8531758974318198,-0.2284060262449099,-7.831582717429722,8.115664615950568,5.352325134114736,8.49370615028851,8.378819084479552,-6.977461558209212,9.610993133155741,-8.824455668008648,6.4374563357201,7.016879991233818,-8.409965558647961,-3.102735995280746,0.6716366345097065,7.423452161669736,7.948855843951115,1.5686150915987955,-4.578358687412251,3.0102241016763323,6.534732365885727,2.4204803891869986,0.08970064307457726,6.171973872208451,9.440962219684756,4.968324039364651,2.922023625220117,-8.991016434695545,-8.475870805636951,-0.7214240683900393,-6.8150348280874145
|
||||
1.6415418790420429,-4.68382005962376,6.3513972473855205,7.643704574574755,-0.8145467010137359,8.671474576469894,5.45383343668545,-9.4510090598109,4.099436509971175,3.6168224384134877,-1.3261944869697846,0.23325520577602532,-6.698614035684713,-5.215338996751262,-6.800072151923078,6.595179591664802,7.556648446838409,6.288400237464934,1.3716731555034674,5.63407862327082,2.149316675981135,-6.384809711292405,-6.340082975138818,5.553527499831619,-3.704310294625417,5.2689956833057146,5.001979425343988,-5.393407137620176,1.3384740729331828,-1.223537737218095,9.89797815395471,-5.784777060606443,-3.3207771632682253,0.27455689618758683,3.471904391154986,-2.6372312514949625,8.671482125296514,9.022718108941902,-6.242145931189715,-2.9104308518656152,-2.545587555122575,2.056949635755924,6.784372241194362,-6.592300461822487,-8.767364450698995,7.181491792958067,0.8713219419356815,5.487413338010009,9.611853228411597,-4.298601592409767,3.479304772708902,2.6684427161432662,-3.5025260874436936,7.729917927038382,9.225758796611998,-1.8596887516912037,-1.2518413082635789,-5.785177100669296,-7.025376434217061,6.160069521108127,-9.399311448577482,-4.379881418664211,-8.122261514178478,7.934267309677633,8.735817171356778,9.790926538266142,-0.8243870696971243,-7.852689538083952,7.981935542589838,-2.0735409824724904,9.020032792938451,-1.955969480414435,-7.632118536265815,-9.138864984258623,-2.5399698457077164,1.519481291997911,4.186570245179681,-1.9675132113088463,0.9531494871320216,7.4254851954775205,0.5486483093251593,4.647829037537392,-4.023059086640237,-8.207960430472687,2.269270288967899,-9.965662236303771,-7.377604843084704,-6.495410792459277,-9.155307827098227,-7.550273837801629,-2.580759349404584,5.9446290891432785,9.563272303326645,-5.448165855656946,2.074489755722695,7.429875376423773,0.36146653006902696,-1.697792241583782,-6.854175474546061,-1.3463273799611049
|
||||
-0.20865461444407885,-7.468800174091676,3.1100743583567123,-6.38856000184266,-0.7288995055783687,4.439380706650006,-6.742961592416846,-7.695233390810272,9.793180149973345,-0.9263675889304821,2.8779457711853436,-9.632924775703358,6.291838752691326,-5.8521239175777895,-0.055068458060976155,-0.18885028920767866,-7.506821745976349,1.9963322226082312,-7.034120081345114,-3.8537233966950506,6.57231766128962,7.9324667080131555,-6.119671627762681,4.107503940906723,-9.378703152476795,8.381783046891652,3.337136237757406,-4.251474828195894,7.143164061073538,7.729974002010568,7.8448818393705615,0.15083281184151076,7.439616964452743,9.846824011915793,-3.2404094429959613,7.347951525581973,-5.140733443216128,-7.445493835123907,3.7697792600698836,6.981794330976694,-6.9173508434805715,-7.817656961634545,4.490854473245387,-8.697731264036793,0.6382850317081399,5.795509605303309,1.1466867909946359,6.145435846470246,6.550422586845471,3.0456342954663675,3.953776905595305,3.1891975207480208,-2.7896199685803786,9.204691246096338,7.9829700066234075,-1.0564654991959088,8.601559866724251,1.526314737225638,2.9801431604106003,8.054125889844691,-8.872314685247282,-6.496162701714963,-7.653415312635936,1.8543555604598438,9.701615152611598,1.9574374117654258,-6.350500206574754,5.644784368614538,-8.02128983737304,-7.185493707807935,8.223920703325376,-9.245847496833164,9.316165823946385,1.584506388184888,-2.446125243428572,-2.440911967817307,-2.1599472586744177,8.526024909024699,-3.207272921378655,-6.462929551065367,5.917111401259227,-2.1648801534070934,-8.698474372578552,-4.355748832176134,7.17417022803707,2.0814012954334,-2.6273410129812946,-7.069315426086122,-1.0142519669591827,5.180561003550306,7.216583223812577,1.7650169674330591,7.0261347144494515,-1.5493911448681388,5.053325004495541,-0.43829339911996,9.470377105456983,4.1602125904972596,8.47287007688659,7.727301940496247
|
||||
|
|
@ -3,9 +3,11 @@
|
||||
#Notes:
|
||||
#setup:
|
||||
|
||||
__version__ = "1.0.5.000"
|
||||
__version__ = "1.0.5.001"
|
||||
|
||||
__changelog__ = """changelog:
|
||||
1.0.5.001:
|
||||
- grammar
|
||||
1.0.5.000:
|
||||
- service now iterates forever
|
||||
- ready for production other than pulling json data
|
||||
@ -46,17 +48,17 @@ import numpy as np
|
||||
import time
|
||||
|
||||
def titanservice():
|
||||
|
||||
print("[OK] loading data")
|
||||
|
||||
start = time.time()
|
||||
|
||||
source_dir = 'data'
|
||||
file_list = glob.glob(source_dir + '/*.csv') #supposedly sorts by alphabetical order, skips reading teams.csv because of redundancy
|
||||
data = []
|
||||
files = [fn for fn in glob.glob('data/*.csv')
|
||||
if not os.path.basename(fn).startswith('teams')]
|
||||
|
||||
#for file_path in file_list:
|
||||
# if not os.path.basename(file_list).startswith("teams")
|
||||
# data.append(analysis.load_csv(file_path))
|
||||
|
||||
for i in files:
|
||||
data.append(analysis.load_csv(i))
|
||||
|
||||
@ -64,6 +66,10 @@ def titanservice():
|
||||
measure_stats = []
|
||||
teams = analysis.load_csv("data/teams.csv")
|
||||
|
||||
end = time.time()
|
||||
|
||||
print("[OK] loaded data in " + str(end - start) + "seconds")
|
||||
|
||||
#assumes that team number is in the first column, and that the order of teams is the same across all files
|
||||
#unhelpful comment
|
||||
for measure in data: #unpacks 3d array into 2ds
|
||||
|
Loading…
Reference in New Issue
Block a user