index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
8.19k
signature
stringlengths
2
42.8k
embed_func_code
listlengths
768
768
20,971
argufy.parser
__get_description
Get argument description from docstring.
@staticmethod def __get_description( name: str, docstring: 'Docstring' ) -> Optional['DocstringParam']: """Get argument description from docstring.""" return next((d for d in docstring.params if d.arg_name == name), None)
(name: str, docstring: 'Docstring') -> Optional[ForwardRef('DocstringParam')]
[ 0.022805407643318176, -0.03327672556042671, 0.028140535578131676, -0.01511920802295208, 0.0222990233451128, -0.02578946202993393, 0.05743852257728577, 0.010218124836683273, 0.048359762877225876, -0.01813943311572075, -0.01407930999994278, 0.0223532784730196, -0.01709953509271145, -0.027959683910012245, 0.002138572046533227, 0.027380958199501038, 0.047708697617053986, 0.04199378192424774, -0.06018747016787529, 0.013175051659345627, 0.021919233724474907, -0.004437650088220835, 0.010200039483606815, -0.03884695842862129, -0.03790653124451637, 0.03396396338939667, 0.05168743431568146, -0.022443704307079315, -0.033656515181064606, -0.046732097864151, -0.0201107170432806, -0.0804428681731224, 0.0033073266968131065, 0.05610021948814392, 0.017633046954870224, 0.06517897546291351, -0.0011506694136187434, 0.05389382690191269, -0.06214066594839096, -0.052736375480890274, 0.022335194051265717, 0.021774552762508392, 0.004525815602391958, -0.03776184841990471, -0.014251119457185268, -0.0008613065583631396, -0.027905426919460297, -0.02929798699915409, -0.09093227237462997, -0.0010681557469069958, 0.07017048448324203, -0.008798438124358654, -0.019785182550549507, -0.03942568600177765, -0.005651617888361216, 0.002602004911750555, 0.014061224646866322, 0.07870668917894363, 0.05823427066206932, 0.06206832826137543, 0.0233660489320755, 0.0016525330720469356, 0.009087800979614258, 0.015453783795237541, -0.03783418983221054, -0.021322423592209816, 0.014775589108467102, -0.03982355818152428, 0.020273482427001, 0.0340363010764122, -0.01974901370704174, 0.010172911919653416, -0.06007895618677139, 0.03913632407784462, 0.019007520750164986, -0.03316821530461311, -0.04647890478372574, -0.02477669157087803, 0.06875984370708466, -0.049842748790979385, 0.01652080938220024, 0.010218124836683273, -0.03729163482785225, -0.03920866176486015, 0.005597362294793129, -0.057076819241046906, -0.0224617887288332, -0.023854348808526993, 0.05610021948814392, 0.013175051659345627, -0.03088948130607605, -0.017687302082777023, -0.0030835226643830538, 0.050204452127218246, 0.0014230773085728288, -0.04676826670765877, -0.022045830264687538, -0.04611720144748688, 0.008124765940010548, 0.0425725057721138, -0.002624611370265484, 0.035971418023109436, 0.040293775498867035, 0.023402219638228416, 0.02502988465130329, -0.060621511191129684, -0.011258022859692574, 0.005095498636364937, 0.04080015793442726, -0.03271608427166939, -0.02656712383031845, -0.06803643703460693, -0.02833947166800499, -0.0009534279233776033, -0.009503760375082493, -0.0009364730794914067, 0.02828521654009819, -0.011050042696297169, -0.017859112471342087, 0.009015460498631, 0.006289120297878981, -0.010371848940849304, -0.029804371297359467, -0.04691294953227043, 0.03244480863213539, -0.015752188861370087, -0.047346994280815125, 0.030274586752057076, -0.02378200739622116, -0.042970381677150726, 0.07147261500358582, -0.027941597625613213, -0.018184645101428032, 0.024396903812885284, 0.0169638954102993, -0.0022900355979800224, 0.06836196780204773, 0.05993427708745003, -0.03855759650468826, 0.0076138596050441265, 0.0028190268203616142, 0.002461844589561224, 0.002464105375111103, -0.022805407643318176, -0.03289693593978882, -0.045683156698942184, -0.001789302215911448, -0.027109680697321892, 0.035790566354990005, 0.039932072162628174, -0.01530005969107151, -0.03967887908220291, 0.013175051659345627, -0.009250568225979805, 0.04412783309817314, -0.059681084007024765, 0.000010243556971545331, -0.029424583539366722, -0.025409674271941185, -0.002633653813973069, 0.032933108508586884, -0.028719261288642883, -0.009485675022006035, -0.05667894333600998, 0.049842748790979385, 0.022516045719385147, -0.0010088137350976467, -0.017786771059036255, 0.01384420320391655, -0.0007041915669105947, -0.034470345824956894, 0.012108026072382927, -0.021250082179903984, 0.012786219827830791, 0.04300655052065849, 0.07964711636304855, -0.05530447140336037, 0.06243003159761429, 0.01312983874231577, -0.04647890478372574, 0.03754482790827751, 0.030744800344109535, -0.058668315410614014, 0.000577595317736268, 0.03651397302746773, 0.022425619885325432, 0.017108576372265816, 0.013862287625670433, -0.026223506778478622, -0.024523500353097916, -0.007961998693645, 0.010869191028177738, 0.010272379964590073, 0.007939392700791359, -0.027073509991168976, -0.01046227477490902, -0.019604330882430077, 0.035790566354990005, 0.07085772603750229, 0.0008748704567551613, 0.07331730425357819, 0.020942633971571922, -0.01618623360991478, 0.0741492211818695, 0.04423634335398674, 0.040474627166986465, 0.07725987583398819, 0.018202729523181915, -0.11205575615167618, -0.004103074315935373, 0.0034678326919674873, -0.004756401292979717, 0.044851239770650864, -0.04148739576339722, 0.02763414941728115, -0.006818111520260572, -0.04398315027356148, -0.007139123510569334, -0.04647890478372574, 0.023926688358187675, 0.07443858683109283, -0.0024008071050047874, 0.12319622188806534, 0.010154826566576958, 0.07516199350357056, -0.04394698143005371, 0.06224917992949486, -0.05378531664609909, 0.009494718164205551, -0.005624489858746529, -0.0031558633781969547, -0.07472795248031616, 0.036387376487255096, 0.005307999439537525, -0.032408636063337326, -0.03902781009674072, -0.050421472638845444, -0.015345272608101368, -0.001340563758276403, -0.05573851615190506, -0.028321387246251106, 0.006913058925420046, -0.02833947166800499, 0.0997578352689743, -0.0575108639895916, -0.03286076709628105, -0.005312520544975996, -0.0004385655338410288, 0.015517082065343857, -0.006822633091360331, 0.015571337193250656, 0.012487814761698246, -0.011456959880888462, -0.022805407643318176, -0.0025228820741176605, -0.02003837563097477, -0.04926402121782303, -0.02365541085600853, 0.027362871915102005, -0.014043140225112438, -0.01615910604596138, 0.012885688804090023, 0.001076633227057755, 0.05425553023815155, 0.0014027315191924572, -0.025066055357456207, 0.03047352284193039, -0.030509693548083305, -0.05045764148235321, -0.027308616787195206, 0.10453232377767563, -0.006736728362739086, -0.0014931573532521725, -0.029732029885053635, 0.036061841994524, -0.007161729969084263, 0.05855980142951012, -0.00469762459397316, 0.03503098711371422, 0.030997993424534798, 0.06304492801427841, -0.0321192741394043, -0.013500584289431572, 0.03499481827020645, 0.041125692427158356, 0.017235172912478447, 0.001999542349949479, 0.022516045719385147, -0.04217463359236717, 0.03284268081188202, 0.011077171191573143, 0.021919233724474907, 0.017578791826963425, 0.02412562631070614, 0.02401711419224739, 0.05816192924976349, 0.0190436914563179, 0.013961756601929665, 0.011267065070569515, -0.014866014942526817, -0.007057740353047848, 0.01860964670777321, 0.008310139179229736, -0.006451886612921953, -0.043368253856897354, -0.022262852638959885, -0.00883460883051157, -0.026603294536471367, -0.0202192272990942, -0.02300434559583664, -0.029840542003512383, 0.01387133076786995, -0.024921374395489693, 0.06478110700845718, -0.03486822172999382, -0.002536446088925004, -0.0027172977570444345, 0.028429897502064705, 0.0079484349116683, 0.06438323110342026, -0.009214397519826889, -0.02644052915275097, 0.026946913450956345, -0.07035133987665176, 0.032336294651031494, -0.015227719210088253, -0.05664277449250221, -0.0032259433064609766, 0.0575108639895916, 0.06054917350411415, -0.036857590079307556, -0.02815861999988556, 0.005922895390540361, -0.0038250149227678776, -0.030618203803896904, -0.011267065070569515, -0.005344169680029154, 0.004959859885275364, -0.039100151509046555, -0.0190979465842247, 0.06232151761651039, -0.039642706513404846, -0.00957610085606575, 0.023583071306347847, 0.022516045719385147, 0.0510002002120018, 0.05136190354824066, -0.02786925807595253, 0.12724730372428894, -0.059210870414972305, 0.029099049046635628, -0.06655345112085342, -0.011927174404263496, -0.011900045908987522, 0.03541077673435211, 0.04148739576339722, 0.01683729887008667, 0.023926688358187675, 0.013970798812806606, -0.050312962383031845, 0.010190997272729874, -0.02222668193280697, 0.013437286019325256, -0.00018000401905737817, -0.04535762220621109, 0.04275335744023323, -0.038991641253232956, 0.04561081528663635, 0.042970381677150726, 0.012587282806634903, -0.03586290404200554, 0.030346926301717758, 0.01242451649159193, -0.06478110700845718, -0.038629937916994095, -0.08789396286010742, -0.003763977438211441, 0.005859597120434046, -0.03468737006187439, -0.01150217279791832, -0.024451158940792084, 0.016719745472073555, 0.030799055472016335, 0.02258838526904583, -0.07957477867603302, -0.03725546598434448, -0.09064290672540665, 0.01886283978819847, -0.013563882559537888, 0.015851657837629318, 0.011854832991957664, -0.01316600851714611, -0.025518184527754784, 0.005742043722420931, -0.029153304174542427, -0.055412981659173965, 0.04926402121782303, 0.000401830009650439, -0.08659182488918304, 0.026964997872710228, 0.025355417281389236, -0.035899076610803604, -0.03537460416555405, -0.00701252743601799, -0.007758541032671928, 0.02282349392771721, 0.03718312457203865, 0.060621511191129684, -0.000709278043359518, 0.013979841955006123, -0.0317394845187664, -0.05733001232147217, 0.011909089051187038, -0.03707461059093475, 0.008283010683953762, -0.01776868663728237, 0.022733068093657494, 0.09078758955001831, -0.0019452868727967143, -0.031395867466926575, 0.043259743601083755, -0.024161797016859055, 0.03758099675178528, 0.06847047805786133, 0.011511215008795261, 0.028194790706038475, 0.007148166187107563, 0.022317107766866684, 0.01873624324798584, -0.03242672234773636, -0.08463862538337708, 0.030744800344109535, -0.016050593927502632, -0.08377053588628769, 0.024469243362545967, -0.017633046954870224, 0.008721576072275639, -0.00011282041668891907, 0.03694801777601242, 0.0000967133091762662, 0.03481396660208702, 0.025644781067967415, 0.001164233312010765, 0.017596876248717308, -0.03982355818152428, -0.016249531880021095, -0.026784146204590797, 0.02092454954981804, 0.053206589072942734, -0.09114929288625717, 0.011854832991957664, 0.04926402121782303, 0.07270240783691406, -0.034723538905382156, -0.01173727959394455, -0.1085110604763031, -0.030853312462568283, 0.007600295357406139, 0.0090561518445611, -0.0030270065180957317, 0.03255331888794899, 0.03783418983221054, 0.019531991332769394, -0.05743852257728577, 0.028267132118344307, 0.03060011938214302, 0.051615092903375626, -0.012605368159711361, -0.034777794033288956, -0.008210670202970505, 0.07226836681365967, -0.03888313099741936, -0.0052627865225076675, -0.025717120617628098, 0.02329370751976967, -0.014341545291244984, -0.003103868570178747, 0.041957609355449677, 0.02519265189766884, 0.03647780045866966, 0.018464965745806694, -0.0576193742454052, 0.005619968753308058, 0.01550803892314434, 0.01879049837589264, -0.038449086248874664, -0.03309587389230728, -0.013563882559537888, -0.03466928377747536, -0.0342533253133297, -0.0552682988345623, 0.057908736169338226, 0.05270020663738251, -0.03494056314229965, 0.022136256098747253, -0.015046867541968822, 0.040546964854002, 0.0202192272990942, 0.0013756037224084139, 0.028918197378516197, -0.030383097007870674, -0.04904700070619583, 0.02815861999988556, -0.05139807239174843, 0.04101718217134476, -0.08304712921380997, -0.018718158826231956, 0.018383583053946495, -0.013319732621312141, 0.005818905774503946, -0.02170221135020256, 0.020381994545459747, 0.03456077352166176, 0.02680223248898983, 0.002995357383042574, 0.005339648574590683, 0.01527293212711811, 0.06065768375992775, 0.006727685686200857, -0.03859376907348633, -0.01891709491610527, 0.02105114609003067, -0.030166074633598328, -0.04174058884382248, 0.02644052915275097, -0.019405394792556763, -0.03237246721982956, -0.04025760293006897, -0.0266756359487772, 0.01206281315535307, 0.03671290725469589, -0.028429897502064705, -0.01840166747570038, 0.020309653133153915, -0.01312983874231577, 0.05103636905550957, -0.07017048448324203, 0.025102226063609123, -0.034072473645210266, 0.07812796533107758, 0.045393794775009155, 0.02289583347737789, 0.01423303410410881, 0.028249045833945274, -0.017153790220618248, 0.05928320810198784, -0.03978738933801651, 0.048829976469278336, -0.003067698096856475, -0.00882104504853487, -0.023384133353829384, 0.017452195286750793, -0.03490439057350159, -0.041957609355449677, -0.04973423480987549, 0.07263007014989853, -0.03354800119996071, -0.03512141481041908, 0.019785182550549507, 0.032697997987270355, 0.013093668036162853, -0.008436734788119793, 0.04155973717570305, 0.03416289761662483, 0.045972518622875214, 0.041125692427158356, 0.020725613459944725, -0.022009659558534622, -0.032824594527482986, -0.021503275260329247, -0.007835403084754944, -0.08203436434268951, 0.027362871915102005, 0.019531991332769394, -0.016150062903761864, 0.04774486646056175, 0.0404384545981884, -0.0036712908186018467, 0.006696036551147699, -0.0017033976037055254, -0.003180730389431119, 0.004390176851302385, 0.018428795039653778, -0.026639465242624283, 0.011574513278901577, -0.016195276752114296, 0.004069164860993624, 0.0024912331718951464, -0.026241591200232506, -0.002834851387888193, -0.013744734227657318, -0.01787719689309597, 0.012659624218940735, -0.03564588353037834, 0.0048920405097305775, 0.03107033297419548, 0.0014852451859042048, -0.013175051659345627, -0.00003655890395748429, -0.0029908360447734594, -0.05892150476574898, -0.020797953009605408, 0.009485675022006035, 0.04387464001774788, -0.023944774642586708, 0.07389603555202484, -0.005701351910829544, -0.04145122691988945, -0.002382721984758973, 0.038919299840927124, -0.007690721657127142, -0.0009884679457172751, -0.007799232378602028, -0.000634111522231251, -0.029659690335392952, 0.013283561915159225, 0.019188372418284416, 0.008396043442189693, 0.060621511191129684, -0.0006838457193225622, -0.0020164973102509975, 0.03313204273581505, 0.027236275374889374, -0.01891709491610527, -0.09852804243564606, 0.013383030891418457, -0.03855759650468826, -0.09035354107618332, 0.011818663217127323, 0.020291568711400032, -0.0006052882527001202, -0.02264264225959778, 0.038629937916994095, -0.036025673151016235, -0.005357733462005854, -0.02927990071475506, 0.0043494850397109985, -0.0403299443423748, -0.038159724324941635, 0.05982576310634613, 0.008088595233857632, 0.012533027678728104, -0.04228314384818077, 0.03474162518978119, -0.043440595269203186, 0.10409827530384064, -0.01194525882601738, -0.06221300736069679, 0.04499591886997223, -0.011258022859692574, -0.02786925807595253, 0.06022363901138306, 0.008454820141196251, 0.02211817167699337, 0.04618954285979271, -0.028013939037919044, -0.03978738933801651, 0.007568646688014269, -0.03535652160644531, -0.028556494042277336, 0.027380958199501038, -0.08586841821670532, 0.008296574465930462, -0.03239055350422859, -0.06908537447452545, -0.03309587389230728, -0.044019319117069244, -0.01654793694615364, 0.028845857828855515, -0.012741006910800934, 0.005000551231205463, 0.05367680639028549, 0.05877682566642761, -0.014142608270049095, -0.014269204810261726, -0.025301162153482437, -0.005963587202131748, 0.008775832131505013, -0.040293775498867035, 0.029750116169452667, 0.007532475981861353, -0.018193688243627548, -0.011158553883433342, 0.009666526690125465, 0.012641538865864277, 0.06029598042368889, -0.023384133353829384, -0.02821287512779236, 0.02591605857014656, -0.03101607784628868, -0.022932004183530807, -0.04036611318588257, 0.013970798812806606, 0.0008839130168780684, 0.04608102887868881, -0.04362144693732262, -0.013654308393597603, -0.010091528296470642, 0.0532427616417408, -0.006818111520260572, 0.01962241716682911, 0.0320650190114975, -0.010344721376895905, 0.025047969073057175, -0.020617101341485977, 0.010733552277088165, 0.008020776323974133, -0.013093668036162853, -0.0223532784730196, -0.0319022536277771, -0.007071304135024548, 0.025011800229549408, 0.007008005864918232, -0.0869535282254219, 0.04365761578083038, -0.006158002652227879, -0.004751880187541246, 0.02087029442191124, 0.0017180917784571648, -0.0027760746888816357, -0.004302011337131262, -0.007062261458486319, 0.04108951985836029, -0.019730927422642708, -0.008405085653066635, 0.02157561667263508, -0.093464195728302, -0.030021393671631813, 0.03971504792571068, -0.002464105375111103, -0.01597825437784195, -0.026060739532113075, 0.003427141113206744, -0.0073290178552269936, 0.004582331515848637, 0.002909452887251973, 0.052338503301143646, -0.02419796586036682, -0.0015157639281824231, -0.028628835454583168, -0.004168633371591568, 0.11176639050245285, -0.020761782303452492, 0.06640876829624176, 0.01420590654015541, -0.007491784635931253, -0.0035673012025654316, -0.005660660564899445, 0.024523500353097916, -0.056064046919345856, 0.050421472638845444, 0.006917580030858517, -0.02378200739622116, 0.01868198812007904, -0.044019319117069244, -0.060332149267196655, 0.014965483918786049, 0.037508655339479446, -0.0017553925281390548, 0.01633995771408081, -0.025644781067967415, 0.025644781067967415, 0.020381994545459747, 0.01040801964700222, -0.007170772645622492, 0.024288391694426537, -0.061453431844711304, 0.0319022536277771 ]
20,972
argufy.parser
__get_keyword_args
Get keyward arguments from docstring.
@staticmethod def __get_keyword_args( signature: 'Signature', docstring: 'Docstring' ) -> List[str]: """Get keyward arguments from docstring.""" return [ x.arg_name for x in docstring.params if x.arg_name not in list(signature.parameters) ]
(signature: 'Signature', docstring: 'Docstring') -> List[str]
[ -0.04371445253491402, -0.03609400987625122, 0.021982740610837936, 0.014962966553866863, -0.0024094050750136375, 0.004563301336020231, 0.02716464176774025, 0.0265729371458292, 0.09366870671510696, 0.01886283978819847, -0.014694008976221085, 0.0030616254080086946, -0.029656976461410522, -0.06322278827428818, -0.039339423179626465, -0.03374512121081352, 0.05443686619400978, 0.05063560977578163, -0.0356278195977211, -0.011699623428285122, -0.024152325466275215, -0.009117637760937214, -0.009440385736525059, -0.043786175549030304, -0.006575995124876499, 0.04235173761844635, 0.013976790942251682, 0.005293967202305794, 0.031736910343170166, -0.037761542946100235, -0.04654746502637863, -0.04188554733991623, 0.02874252200126648, 0.03833531588315964, 0.010650691576302052, -0.008248009718954563, 0.02931629680097103, 0.03690088167786598, 0.020817261189222336, -0.00014064201968722045, 0.004626058042049408, 0.009180394001305103, 0.021713783964514732, -0.05640921741724014, -0.018826980143785477, -0.0030055928509682417, 0.0069794305600225925, -0.004890532232820988, -0.0619317963719368, -0.019436614587903023, 0.031450022011995316, -0.011412736028432846, 0.02090691216289997, -0.0414552167057991, -0.03127071633934975, -0.010067951865494251, 0.0327230840921402, 0.04808948561549187, 0.006280142348259687, 0.07545135915279388, 0.028419774025678635, 0.033798910677433014, 0.04163452237844467, 0.010032090358436108, -0.025192292407155037, -0.05386309325695038, 0.01868353597819805, -0.020422790199518204, -0.012380980886518955, 0.003075073240324855, -0.034372687339782715, -0.03844289854168892, -0.034892670810222626, 0.03166518732905388, -0.011816170997917652, -0.05988772585988045, -0.04504130780696869, 0.027720486745238304, 0.018880771473050117, -0.025837788358330727, -0.01162790134549141, -0.004675366450101137, -0.04457511752843857, 0.01875525712966919, 0.026967406272888184, 0.006221868563443422, -0.024241978302598, 0.030804524198174477, 0.04930875822901726, 0.021821366623044014, -0.03991319611668587, 0.039160117506980896, -0.0032812736462801695, 0.027594972401857376, -0.006495308130979538, -0.00717218266800046, -0.026483284309506416, -0.0508149154484272, 0.00012537311704363674, 0.008481105789542198, 0.0012360808905214071, 0.03494646027684212, 0.05870431661605835, 0.01804700493812561, 0.0037766024470329285, -0.07451897859573364, -0.03959044814109802, -0.0601746141910553, 0.04335584491491318, 0.011089987121522427, 0.006508755963295698, -0.0653744488954544, 0.02874252200126648, 0.009906577877700329, 0.005943946540355682, -0.04292551428079605, 0.03231068328022957, -0.020888982340693474, -0.01852216199040413, -0.018647674471139908, 0.012309258803725243, -0.007037704344838858, -0.014442983083426952, 0.003810222027823329, 0.017258064821362495, -0.004859153646975756, -0.014380226843059063, 0.0747341439127922, -0.00899212434887886, -0.031234856694936752, 0.057915374636650085, 0.014236782677471638, -0.011663761921226978, -0.00474708853289485, 0.014622287824749947, -0.025030918419361115, 0.10414009541273117, 0.009861751459538937, -0.023453038185834885, -0.004206933546811342, 0.013107163831591606, 0.018898701295256615, 0.005827398505061865, 0.023166149854660034, -0.07089702785015106, -0.007208043709397316, -0.006064977031201124, -0.0344623364508152, 0.05343276262283325, 0.008310766890645027, 0.00589912012219429, -0.0019039904000237584, 0.008481105789542198, -0.013268537819385529, 0.01323267724364996, -0.05497477948665619, 0.015644323080778122, -0.03819187358021736, -0.018558023497462273, 0.014711939729750156, 0.037295348942279816, -0.04357101023197174, -0.012721658684313297, -0.06705991178750992, 0.016191203147172928, 0.022986846044659615, 0.042853791266679764, -0.01916765794157982, -0.009763133712112904, 0.01786770112812519, -0.013922999612987041, 0.07035911083221436, -0.0011733243009075522, 0.011807206086814404, 0.017320821061730385, 0.054293423891067505, -0.0555126927793026, 0.06505169719457626, 0.021516548469662666, -0.02933422662317753, 0.028365982696413994, -0.013214746490120888, -0.07638374716043472, -0.009314872324466705, 0.056050609797239304, -0.011287222616374493, -0.02529987506568432, 0.015572601929306984, -0.03340443968772888, -0.030284540727734566, -0.02354268915951252, -0.0075935483910143375, 0.03582505136728287, 0.03819187358021736, -0.026268118992447853, 0.02447507344186306, -0.050492167472839355, 0.02108621783554554, 0.004240552894771099, -0.008109048940241337, 0.04762329161167145, -0.005603267811238766, -0.03690088167786598, 0.038873229175806046, 0.059385672211647034, 0.03686501830816269, 0.04489786550402641, -0.004415375180542469, -0.0776747390627861, -0.008714201860129833, 0.014353331178426743, -0.03808429092168808, 0.04055869206786156, -0.028061164543032646, 0.007275282870978117, -0.008933850564062595, -0.022395141422748566, 0.01757184788584709, -0.050850775092840195, -0.026608798652887344, 0.07867884635925293, 0.014658148400485516, 0.0759534165263176, 0.002085536252707243, 0.059959448873996735, -0.012900963425636292, 0.09194738417863846, -0.0233633853495121, -0.008732132613658905, -0.03632710501551628, 0.01565328799188137, -0.04715710133314133, -0.008328697644174099, 0.029746627435088158, -0.0420648530125618, -0.047981902956962585, -0.0265729371458292, -0.036596063524484634, 0.048914287239313126, -0.05282312631607056, -0.008691788651049137, -0.002285012509673834, 0.000791741709690541, 0.08800268173217773, -0.05909878760576248, -0.002801633905619383, 0.024510934948921204, 0.02709292061626911, 0.033565815538167953, 0.009413490071892738, -0.02406267262995243, 0.0005524822045117617, 0.002501298673450947, 0.002037348225712776, 0.015572601929306984, -0.023739924654364586, 0.00144900509621948, 0.006876330357044935, 0.022466862574219704, -0.010471386834979057, -0.018378717824816704, 0.05934981256723404, 0.008019397035241127, 0.05192660167813301, 0.024403352290391922, 0.010525178164243698, 0.05985186621546745, 0.009050398133695126, -0.09072811156511307, 0.01116170920431614, 0.07078944146633148, -0.039805613458156586, -0.009700377471745014, -0.008306284435093403, 0.02395508997142315, 0.007019774056971073, 0.010641725733876228, 0.02185722626745701, -0.015922246500849724, 0.0397338941693306, 0.08147599548101425, -0.018647674471139908, 0.005132593214511871, 0.04493372514843941, 0.012533389031887054, 0.024241978302598, 0.025479178875684738, -0.008149392902851105, -0.008785923942923546, -0.020709678530693054, -0.0036286762915551662, 0.010829996317625046, 0.0782485157251358, -0.01916765794157982, 0.017446335405111313, 0.046762630343437195, 0.011529283598065376, -0.035663679242134094, 0.04532819613814354, -0.0074501046910882, 0.03808429092168808, 0.0578436553478241, 0.014478843659162521, -0.0338706336915493, 0.02139103412628174, -0.022054461762309074, 0.014487809501588345, -0.0007329074433073401, -0.022000670433044434, -0.07681407779455185, -0.06505169719457626, 0.024385420605540276, -0.028868036344647408, -0.01963385008275509, -0.07925262302160263, -0.029119061306118965, -0.015133305452764034, -0.003397821681573987, 0.00905488058924675, 0.09431420266628265, 0.017831839621067047, -0.02436749078333378, 0.013824381865561008, -0.05461617186665535, 0.038873229175806046, -0.009727273136377335, -0.042961373925209045, -0.028437703847885132, 0.014380226843059063, 0.02476196177303791, -0.016720151528716087, -0.003985044080764055, -0.004670883994549513, 0.023112358525395393, -0.0513886883854866, 0.005518097896128893, -0.013107163831591606, 0.03815601393580437, -0.05565613880753517, -0.03955458849668503, -0.008871093392372131, -0.056050609797239304, -0.0052222455851733685, 0.032221030443906784, -0.011448596604168415, 0.02874252200126648, 0.029513532295823097, -0.02522815205156803, 0.11554386466741562, -0.028724592179059982, 0.05511822551488876, -0.024618517607450485, 0.012022371403872967, -0.02820460870862007, 0.11382254213094711, 0.0233633853495121, -0.026967406272888184, -0.0021729471627622843, -0.020709678530693054, -0.010758274234831333, 0.11030817031860352, -0.0262860506772995, -0.018298031762242317, -0.022359279915690422, 0.023040637373924255, 0.04292551428079605, -0.0033485128078609705, -0.0039222873747348785, 0.020978635177016258, -0.011143779382109642, -0.03311755508184433, -0.02506677806377411, -0.016209132969379425, -0.028168747201561928, -0.026088815182447433, -0.03492853045463562, 0.015034687705338001, 0.019131798297166824, -0.05117352306842804, 0.0009519952000118792, -0.05888361856341362, -0.008862128481268883, 0.07365831732749939, -0.00015997329319361597, -0.05407825857400894, -0.00763837480917573, -0.08126083016395569, -0.018647674471139908, 0.05357620492577553, 0.07875056564807892, 0.025210222229361534, -0.04737226665019989, -0.007934227585792542, 0.007853539660573006, 0.018315961584448814, -0.05293070897459984, 0.029172852635383606, -0.014720904640853405, -0.04077385738492012, 0.0021863949950784445, 0.014496774412691593, -0.05156799405813217, -0.07509275525808334, -0.03299203887581825, 0.021982740610837936, 0.036076080054044724, -0.015581566840410233, 0.007831127382814884, 0.010677587240934372, -0.005446376278996468, 0.006118768360465765, -0.0648365318775177, 0.006311520934104919, -0.017491159960627556, 0.06637854874134064, -0.0032207584008574486, 0.023040637373924255, 0.057736072689294815, -0.004765018820762634, 0.0016025345539674163, 0.049846671521663666, -0.033099621534347534, 0.044395811855793, 0.06799229234457016, 0.03704432398080826, 0.05816640332341194, -0.05816640332341194, -0.01932903192937374, 0.050492167472839355, -0.016388436779379845, -0.06347382068634033, 0.027415668591856956, -0.04780259728431702, 0.006392207928001881, -0.05952911823987961, 0.030499707907438278, 0.0060694594867527485, 0.015115374699234962, 0.03865806385874748, 0.016684290021657944, -0.021588269621133804, 0.04141935706138611, -0.02289719320833683, 0.010354839265346527, 0.008924884721636772, -0.024241978302598, 0.01069551706314087, 0.054293423891067505, 0.0671674907207489, -0.04651160538196564, 0.013537495397031307, 0.043427567929029465, 0.03324306756258011, -0.042208295315504074, -0.01712358556687832, -0.03263343125581741, -0.03426510468125343, -0.012614076025784016, -0.011045161634683609, -0.0006337295635603368, 0.08190632611513138, 0.052572101354599, -0.03324306756258011, -0.017553918063640594, 0.033153414726257324, 0.011206535622477531, 0.008203184232115746, -0.027989443391561508, -0.03596849739551544, -0.010480351746082306, 0.10564625263214111, -0.06092769280076027, -0.005549476481974125, -0.04306895658373833, -0.0034673020709306, 0.016953246667981148, 0.0014983138535171747, 0.03604021668434143, -0.0006651078583672643, 0.018791118636727333, -0.026035023853182793, -0.08326904475688934, -0.01764356903731823, 0.013860243372619152, 0.008360075764358044, -0.02623225748538971, -0.039805613458156586, -0.0654461681842804, -0.06225454807281494, -0.018002178519964218, -0.028724592179059982, 0.002886803587898612, 0.04855567589402199, -0.01218374539166689, 0.10170155018568039, -0.0032005866523832083, 0.04213657230138779, 0.047981902956962585, -0.04920117184519768, 0.044826142489910126, -0.05045630410313606, -0.055978886783123016, 0.03229275345802307, -0.024241978302598, 0.06350968033075333, -0.0531458742916584, 0.047049518674612045, -0.004159865900874138, -0.016379471868276596, -0.03587884455919266, -0.018038040027022362, 0.014147130772471428, 0.03358374536037445, 0.031288646161556244, 0.0012584939831867814, -0.029836280271410942, -0.04683435335755348, 0.03984147682785988, 0.004805362317711115, 0.025676414370536804, 0.004110557027161121, 0.02026141621172428, -0.016747046262025833, -0.07609686255455017, 0.03526920825242996, -0.017742186784744263, -0.02067381702363491, -0.03412165865302086, 0.012784415856003761, 0.014039548113942146, 0.011116883717477322, -0.015465019270777702, -0.021283451467752457, 0.030499707907438278, -0.03672157600522041, 0.039518725126981735, -0.03378098085522652, 0.007266317494213581, 0.03485680744051933, 0.06964189559221268, 0.021283451467752457, 0.05508236214518547, -0.03865806385874748, 0.0163615420460701, 0.022126182913780212, 0.09539002925157547, -0.04457511752843857, 0.012533389031887054, -0.06673716008663177, 0.002680603414773941, -0.015249853953719139, 0.008104566484689713, 0.002460955176502466, -0.037582237273454666, -0.02139103412628174, 0.015142270363867283, -0.009157980792224407, -0.033153414726257324, -0.0005821795202791691, 0.02225169725716114, 0.005952911451458931, -0.037295348942279816, 0.03984147682785988, -0.02897561900317669, -0.046690911054611206, 0.012900963425636292, 0.020171763375401497, -0.018719397485256195, -0.0811891108751297, -0.002068726345896721, -0.026303980499505997, -0.06867364794015884, 0.021928949281573296, 0.007122873794287443, -0.023560620844364166, 0.03582505136728287, 0.026859823614358902, -0.029567323625087738, -0.016558777540922165, -0.02313029021024704, 0.06494411826133728, 0.001883818651549518, 0.013761625625193119, -0.02868873067200184, 0.007866987958550453, 0.030481776222586632, 0.023219941183924675, -0.007875952869653702, -0.04055869206786156, 0.0042876205407083035, -0.03751051425933838, -0.012811311520636082, 0.01932903192937374, -0.06562547385692596, -0.018468370661139488, 0.02411646395921707, 0.04468270018696785, 0.0003653330495581031, 0.0046350229531526566, -0.03586091473698616, -0.019203519448637962, -0.004724675323814154, 0.014631252735853195, 0.010489317588508129, -0.012990616261959076, 0.06394001096487045, 0.019311102107167244, 0.027935652062296867, 0.0060694594867527485, 0.019526267424225807, -0.03421131148934364, 0.012963720597326756, 0.01741047389805317, -0.009476246312260628, -0.02581985853612423, 0.06519514322280884, 0.03937528282403946, -0.010722413659095764, 0.0824083760380745, 0.01833389140665531, -0.01209409348666668, -0.030804524198174477, 0.021050356328487396, -0.037761542946100235, -0.06605580449104309, -0.002682844642549753, -0.03862220421433449, -0.049452200531959534, 0.034426476806402206, 0.020010389387607574, 0.0042674485594034195, -0.029352158308029175, 0.08649652451276779, -0.05275140330195427, 0.03526920825242996, 0.01693531684577465, -0.029244575649499893, -0.06110699847340584, -0.047336407005786896, 0.03494646027684212, 0.0015666736289858818, -0.0068808128125965595, -0.07165010273456573, 0.04005664214491844, -0.042853791266679764, 0.06322278827428818, -0.019884876906871796, -0.05013355612754822, 0.06390415132045746, -0.013411981984972954, 0.027935652062296867, 0.06196765974164009, 0.006298073101788759, 0.02470817044377327, -0.009852785617113113, 0.01121550053358078, -0.05006183683872223, -0.009556933306157589, 0.021516548469662666, -0.06186007708311081, 0.05361206457018852, -0.04113246873021126, -0.02079932950437069, -0.00032358872704207897, -0.06705991178750992, -0.035950567573308945, -0.04106074571609497, -0.004836740903556347, 0.0508149154484272, 0.028401844203472137, 0.034426476806402206, 0.03392442315816879, 0.03715190663933754, -0.009001089259982109, -0.012156849727034569, 0.0026245706249028444, 0.021014494821429253, 0.016110515221953392, -0.00961072463542223, 0.012470632791519165, -0.038120150566101074, -0.014147130772471428, -0.02185722626745701, -0.0059349811635911465, -0.011332049034535885, 0.044395811855793, -0.019239380955696106, 0.010480351746082306, 0.007988018915057182, -0.0496673658490181, -0.016209132969379425, -0.07333556562662125, 0.06297176331281662, -0.00023197528207674623, 0.020135903730988503, -0.004325722809880972, -0.027236364781856537, -0.01763460412621498, 0.05719815567135811, -0.033906493335962296, 0.0029450776055455208, 0.06196765974164009, -0.015097444877028465, 0.02377578616142273, -0.03604021668434143, -0.013546460308134556, 0.029656976461410522, -0.022933054715394974, 0.0003541265323292464, -0.00028562656370922923, -0.01477469690144062, -0.0513886883854866, -0.004751570988446474, -0.052536237984895706, 0.06419103592634201, -0.03132450953125954, -0.01320578157901764, -0.025658484548330307, 0.045364055782556534, -0.000542676483746618, 0.029764559119939804, -0.0010651812190189958, 0.0005821795202791691, 0.019131798297166824, -0.03815601393580437, 0.009825889952480793, -0.050205279141664505, -0.006571512669324875, 0.04059455543756485, -0.019884876906871796, -0.022395141422748566, -0.00961072463542223, -0.024385420605540276, 0.020243486389517784, 0.0073245917446911335, -0.01489124447107315, 0.014147130772471428, -0.03948286548256874, 0.006199455354362726, -0.004325722809880972, 0.0014669355005025864, 0.09065639227628708, -0.0665578544139862, 0.06203937903046608, 0.05461617186665535, -0.024672308936715126, 0.010623795911669731, 0.005159488879144192, 0.036255382001399994, -0.07774645835161209, 0.021104147657752037, 0.044395811855793, -0.06648613512516022, -0.09546175599098206, -0.03690088167786598, -0.008158357813954353, 0.01932903192937374, 0.016621533781290054, 0.0012708210851997137, -0.008732132613658905, -0.05332517996430397, -0.01735668256878853, -0.004854671191424131, 0.02931629680097103, 0.0210324265062809, 0.031109342351555824, -0.04328412190079689, 0.005482237320393324 ]
20,973
argufy.parser
__get_parent_module
Get name of module importing this module.
@staticmethod def __get_parent_module() -> Optional[ModuleType]: """Get name of module importing this module.""" stack = inspect.stack() # TODO: need way to better identify parent module stack_frame = stack[2] result = inspect.getmodule(stack_frame[0]) or None return result
() -> Optional[module]
[ 0.02425847388803959, -0.009894661605358124, 0.021720437332987785, 0.01785820908844471, -0.009710745885968208, -0.01441898662596941, 0.06558431684970856, 0.04781806841492653, -0.006161174271255732, -0.00991305336356163, -0.019108835607767105, -0.09784312546253204, -0.021996309980750084, -0.015623633749783039, -0.013664931990206242, -0.019954847171902657, 0.041601717472076416, -0.0020518088713288307, 0.033012859523296356, -0.048480164259672165, 0.004859970882534981, 0.03656243160367012, 0.02046981081366539, -0.05852195620536804, -0.045280031859874725, 0.07062360644340515, 0.016828281804919243, 0.005333553534001112, -0.019274359568953514, -0.008639437146484852, -0.020984774455428123, -0.07415478676557541, -0.004836981184780598, 0.012028083205223083, 0.004836981184780598, 0.04215346649289131, -0.04568464681506157, 0.0067037250846624374, -0.04608926177024841, -0.0735662579536438, 0.004712838213890791, -0.006289915181696415, 0.0004232933570165187, -0.033178381621837616, 0.022106660529971123, 0.01679149828851223, -0.010308471508324146, -0.02755056321620941, 0.016993805766105652, 0.01361895352602005, 0.06407620757818222, -0.018805375322699547, -0.006165771745145321, 0.0003566239320207387, -0.010897002182900906, 0.05145959556102753, 0.008648633025586605, -0.06128069385886192, -0.047045622020959854, 0.042889129370450974, 0.011255637742578983, 0.02083764225244522, 0.031523142009973526, 0.009821095503866673, -0.016304122284054756, 0.013812065124511719, -0.009821095503866673, -0.030290907248854637, -0.06087607890367508, -0.009324522688984871, -0.07739169895648956, -0.004581798333674669, -0.0038392390124499798, -0.0023771096020936966, 0.01839156448841095, -0.08026078343391418, -0.022088268771767616, -0.017094958573579788, 0.03367495536804199, -0.04145458713173866, -0.009738333523273468, 0.026483852416276932, -0.02392742596566677, 0.01945827528834343, 0.05723454803228378, -0.03352782130241394, 0.013499408029019833, 0.04097640514373779, -0.009329120628535748, -0.008280801586806774, -0.06974080950021744, -0.020598551258444786, 0.004910547751933336, 0.0415649339556694, 0.026833292096853256, -0.028966713696718216, 0.014354616403579712, -0.03282894194126129, -0.018741004168987274, -0.019421491771936417, 0.047045622020959854, 0.046236392110586166, -0.02308141253888607, 0.011853363364934921, 0.0075451391749084, 0.025233225896954536, -0.008680818602442741, 0.018189257010817528, 0.046346742659807205, -0.04483863338828087, -0.0530780553817749, -0.06271523237228394, -0.049914706498384476, 0.005443903151899576, 0.05510112643241882, -0.06510613858699799, -0.016294926404953003, 0.02111351490020752, 0.03917403146624565, 0.005494480021297932, -0.025619449093937874, 0.10777456313371658, -0.0025748189073055983, -0.036433689296245575, 0.06076572835445404, 0.03247950226068497, -0.01516384445130825, -0.04612604156136513, 0.004112813621759415, -0.0645911768078804, 0.060839295387268066, -0.019954847171902657, -0.0631934180855751, 0.010023402981460094, -0.0007006036466918886, 0.07886302471160889, 0.0047864047810435295, 0.08158498257398605, -0.04572143033146858, 0.005788744892925024, -0.034723274409770966, -0.0028529914561659098, -0.008575066924095154, 0.00015848355542402714, -0.02659420110285282, 0.02841496653854847, 0.005908289924263954, 0.04450758546590805, -0.013720107264816761, 0.023154979571700096, 0.005094463471323252, -0.04888477921485901, 0.018207648769021034, 0.03086104430258274, -0.01785820908844471, -0.019182400777935982, -0.021095125004649162, 0.008496902883052826, -0.006653148215264082, -0.10210996866226196, -0.03224041312932968, -0.007476171012967825, -0.014796013943850994, -0.09188425540924072, 0.015605241991579533, -0.033656563609838486, 0.025417141616344452, -0.038622286170721054, -0.017573140561580658, -0.033766910433769226, -0.06253132224082947, 0.014170700684189796, -0.0037518790923058987, -0.001233384246006608, -0.021720437332987785, 0.031265661120414734, -0.03641529753804207, 0.0376291424036026, 0.007687673904001713, 0.04035109281539917, 0.020745685324072838, 0.034079570323228836, -0.021738829091191292, 0.018124885857105255, 0.0276609119027853, 0.014575314708054066, 0.020341070368885994, -0.017453594133257866, 0.03295768424868584, 0.0192375760525465, -0.07073395699262619, 0.05403441563248634, 0.049914706498384476, -0.0010799296433106065, 0.014520140364766121, 0.031044960021972656, -0.010814240202307701, 0.037813056260347366, -0.023173371329903603, 0.01441898662596941, -0.0007287657354027033, 0.037132568657398224, -0.02793678641319275, 0.026575811207294464, -0.019421491771936417, 0.0412706695497036, 0.02521483413875103, 0.010409625247120857, -0.0935027152299881, 0.022750364616513252, -0.008740590885281563, -0.0530780553817749, 0.029297761619091034, -0.00010517676128074527, 0.0052829766646027565, -0.02179400436580181, -0.0203594621270895, -0.011329203844070435, 0.008827950805425644, 0.026557419449090958, 0.035845160484313965, 0.03588194027543068, 0.030769087374210358, 0.035532500594854355, -0.028562098741531372, -0.051349248737096786, -0.021131906658411026, 0.006464635021984577, -0.007214091252535582, -0.05340910330414772, 0.020267503336071968, -0.04851694777607918, -0.02111351490020752, -0.009117618203163147, 0.03282894194126129, -0.0034852013923227787, -0.023596376180648804, 0.0027909199707210064, 0.025876931846141815, -0.039799343794584274, -0.02131582237780094, 0.028396574780344963, 0.025306792929768562, 0.04936295747756958, 0.005591035354882479, -0.04145458713173866, 0.014777622185647488, -0.025729797780513763, -0.030088599771261215, -0.0009603844955563545, 0.026299936696887016, 0.0022104361560195684, -0.034999147057533264, -0.04020395874977112, -0.007821012288331985, -0.04097640514373779, -0.007692271843552589, 0.023853858932852745, 0.03119209222495556, 0.02414812333881855, -0.01201888732612133, -0.06723956018686295, 0.0348152294754982, -0.05318840220570564, -0.04781806841492653, -0.035789985209703445, -0.012506263330578804, -0.0020023814868181944, -0.007696869783103466, 0.0033794499468058348, 0.16184575855731964, 0.01839156448841095, 0.016616778448224068, 0.012414305470883846, -0.008248616941273212, -0.09835808724164963, -0.03740844130516052, 0.06665103137493134, 0.00317254476249218, 0.010354450903832912, 0.009080834686756134, -0.0009425676544196904, -0.037500400096178055, 0.0009816497331485152, -0.01772027276456356, -0.0019977837800979614, -0.010694694705307484, -0.07507436722517014, 0.019016876816749573, 0.08268847316503525, 0.011154484003782272, -0.0219043530523777, -0.03167027235031128, -0.023154979571700096, -0.049546875059604645, 0.026097629219293594, 0.017251286655664444, 0.00832678098231554, 0.03389565274119377, 0.0022380235604941845, 0.03146796673536301, 0.0020989372860640287, -0.04009361192584038, 0.017453594133257866, -0.03709578514099121, 0.01281892042607069, 0.021407781168818474, -0.029297761619091034, -0.03612103313207626, -0.005177225451916456, -0.05197456106543541, 0.0665406808257103, 0.013848847709596157, -0.04038787633180618, 0.006000247783958912, -0.012000495567917824, 0.03718774393200874, 0.014566118828952312, -0.017545552924275398, 0.08879446983337402, -0.046567440032958984, 0.09556256979703903, 0.038622286170721054, 0.028120702132582664, 0.008363563567399979, -0.012726962566375732, -0.00005765324385720305, 0.014814404770731926, -0.023265328258275986, 0.01361895352602005, -0.038732632994651794, -0.014851188287138939, 0.02532518468797207, -0.014860384166240692, -0.0060370308347046375, 0.05252630636096001, -0.014437378384172916, -0.011375182308256626, 0.0014586809556931257, -0.04498576745390892, 0.06102320924401283, -0.06407620757818222, 0.011761405505239964, -0.023375678807497025, -0.06812235713005066, 0.007232482545077801, 0.06999829411506653, 0.01772027276456356, 0.056793149560689926, -0.00988546572625637, 0.006441645324230194, -0.0034966962411999702, -0.016046639531850815, -0.04024074226617813, -0.03869584947824478, 0.011549902148544788, -0.02867244929075241, 0.034778449684381485, 0.01729726605117321, 0.0317254476249218, 0.06003006547689438, -0.04962044209241867, -0.010777456685900688, 0.03268181160092354, -0.062494534999132156, -0.004832383710891008, -0.002361017046496272, 0.020377853885293007, 0.06403942406177521, -0.005733570083975792, -0.00897048506885767, -0.03021734021604061, 0.04082927107810974, -0.04822268337011337, -0.043477658182382584, 0.016193771734833717, 0.037610750645399094, -0.012607417069375515, -0.037923406809568405, -0.04402940347790718, -0.0024414800573140383, 0.016635170206427574, -0.03064034692943096, -0.04130745306611061, -0.0429626926779747, -0.02808391861617565, 0.011798188090324402, 0.0012437294935807586, -0.02835979126393795, -0.010547562502324581, 0.032332368195056915, -0.0716167539358139, -0.020028414204716682, 0.008106081746518612, 0.019899671897292137, -0.03854871913790703, -0.04020395874977112, -0.012864898890256882, -0.04248451441526413, -0.009315327741205692, 0.060655377805233, -0.01489716675132513, 0.04579499363899231, -0.005259987432509661, 0.012074061669409275, 0.005080669652670622, 0.02164687030017376, 0.0002671087277121842, -0.006722116842865944, -0.09666606038808823, -0.004515129141509533, -0.015035104006528854, -0.030198948457837105, -0.045758213847875595, 0.0217572208493948, -0.014970733784139156, 0.031210483983159065, 0.031265661120414734, 0.049179043620824814, -0.02681490033864975, 0.03119209222495556, -0.007954351603984833, 0.007825610227882862, -0.011733817867934704, -0.012248781509697437, 0.01878698356449604, -0.08408623188734055, 0.03474166616797447, -0.027090774849057198, 0.041822418570518494, -0.0626048818230629, 0.008837146684527397, 0.036911871284246445, -0.01668114960193634, -0.004459954332560301, -0.034189917147159576, 0.00819803960621357, 0.05259987339377403, -0.042925912886857986, 0.031688664108514786, 0.05966223403811455, 0.015605241991579533, -0.05201134458184242, 0.020285895094275475, 0.056057486683130264, 0.03580837696790695, -0.034245092421770096, 0.06580501794815063, -0.027752870693802834, -0.014262658543884754, -0.05234239250421524, -0.021628480404615402, 0.04958365857601166, 0.013251122087240219, -0.060471463948488235, -0.048001982271671295, -0.01729726605117321, 0.021131906658411026, 0.046457093209028244, 0.016414470970630646, -0.04711918905377388, 0.031265661120414734, 0.0679384395480156, -0.019421491771936417, 0.06208992004394531, 0.005443903151899576, 0.054181549698114395, -0.05767594650387764, -0.02462630532681942, -0.0005296195740811527, 0.093208447098732, 0.005922083742916584, -0.031320832669734955, -0.010795848444104195, -0.039688996970653534, 0.0460524782538414, -0.008014123886823654, 0.00469674589112401, 0.06311985105276108, 0.007871589623391628, -0.05741846561431885, -0.027863219380378723, 0.012543046846985817, 0.04322017729282379, -0.02894832193851471, -0.04910547658801079, -0.045647863298654556, -0.00834057480096817, 0.008248616941273212, -0.021775612607598305, -0.045280031859874725, 0.04932617396116257, 0.01572478748857975, 0.03567963466048241, 0.025619449093937874, -0.010768260806798935, 0.0356612429022789, 0.030769087374210358, -0.002126524690538645, -0.0019219184760004282, 0.010593540966510773, 0.03976256027817726, 0.053482670336961746, -0.028231050819158554, 0.006887640804052353, -0.017683489248156548, 0.007876187562942505, -0.004749621264636517, -0.0007212941418401897, 0.025950497016310692, 0.030474822968244553, 0.06157495826482773, 0.02431364730000496, 0.00870380736887455, -0.02164687030017376, 0.007609509862959385, -0.02552749216556549, 0.05123889818787575, 0.09416481107473373, 0.00021811245824210346, -0.0021771013271063566, -0.033656563609838486, 0.018428348004817963, -0.011697035282850266, 0.015706395730376244, 0.024019382894039154, 0.006988794542849064, 0.07117535173892975, -0.05153316259384155, 0.05657245218753815, 0.03998326137661934, 0.02142617292702198, -0.013867239467799664, 0.033399078994989395, 0.03406117856502533, 0.04079249128699303, -0.06102320924401283, -0.017205309122800827, 0.0055404589511454105, -0.01492475438863039, -0.028874756768345833, -0.05271022394299507, 0.04366157203912735, 0.04483863338828087, 0.019734147936105728, 0.004441562574356794, -0.0696304589509964, 0.0575655959546566, -0.05947832018136978, -0.009273946285247803, 0.03876941651105881, 0.0023460739757865667, 0.01839156448841095, -0.06690850853919983, 0.03154153376817703, -0.010676302947103977, -0.011237245984375477, 0.041233886033296585, 0.0065933759324252605, -0.002961041871458292, 0.010703890584409237, 0.007204895373433828, 0.041601717472076416, -0.007347430102527142, 0.011448748409748077, -0.04402940347790718, -0.024773437529802322, 0.05885300412774086, 0.012607417069375515, -0.0047864047810435295, -0.008639437146484852, -0.004735827911645174, 0.07500080019235611, -0.024387214332818985, 0.04888477921485901, 0.08820594102144241, 0.029941467568278313, 0.0322955884039402, 0.033012859523296356, -0.013407450169324875, 0.05741846561431885, -0.08526328951120377, 0.02041463553905487, 0.026612592861056328, -0.05682993307709694, -0.036856696009635925, -0.01532017346471548, 0.004928939044475555, 0.03330712392926216, 0.014989124611020088, -0.016506429761648178, 0.02782643772661686, 0.045868560671806335, 0.019219184294342995, 0.07592038065195084, 0.004574901424348354, -0.052967704832553864, 0.013149968348443508, 0.034153133630752563, 0.033233556896448135, 0.006653148215264082, -0.05009862035512924, 0.03669117018580437, 0.016414470970630646, 0.05403441563248634, -0.019200792536139488, -0.014041959308087826, -0.04535359889268875, 0.010768260806798935, 0.019807714968919754, -0.013076402246952057, -0.049767572432756424, -0.030566779896616936, -0.060692161321640015, -0.014483356848359108, -0.0017460491508245468, -0.0230262391269207, -0.05543217435479164, 0.07746526598930359, 0.0025311389472335577, 0.005296770483255386, 0.06359802931547165, 0.015908703207969666, -0.03461292386054993, -0.02755056321620941, 0.05329875275492668, -0.025417141616344452, -0.014189091511070728, -0.004568004980683327, -0.003515087766572833, 0.026134412735700607, -0.039578646421432495, 0.009163596667349339, -0.08187924325466156, -0.008726797066628933, -0.017839817330241203, 0.016809890046715736, -0.06411299109458923, -0.03799697011709213, 0.06665103137493134, -0.002140318276360631, -0.00914060790091753, -0.0499882735311985, -0.023063020780682564, -0.018483521416783333, -0.035091105848550797, 0.026097629219293594, -0.03189097344875336, -0.008386553265154362, -0.052158474922180176, -0.016101814806461334, 0.034520965069532394, -0.0014586809556931257, 0.003659921232610941, 0.018741004168987274, -0.050135403871536255, -0.04057179018855095, 0.03349103778600693, -0.0033380689565092325, -0.03299446776509285, 0.06529005616903305, -0.05123889818787575, 0.02905867248773575, 0.04561107978224754, 0.02740343101322651, -0.0064600370824337006, 0.031376007944345474, -0.03895333409309387, 0.06356124579906464, -0.04369835555553436, -0.02504931017756462, 0.011292420327663422, 0.0032989869359880686, -0.050834283232688904, -0.03487040475010872, 0.012138432823121548, -0.012147627770900726, 0.04233738034963608, 0.018078908324241638, -0.010777456685900688, 0.01892491988837719, 0.037923406809568405, -0.05145959556102753, 0.04116032272577286, 0.05017218738794327, 0.0612071268260479, 0.011807383969426155, -0.023375678807497025, 0.02931615337729454, -0.05815412476658821, -0.0158627238124609, 0.02403777465224266, 0.0299046840518713, 0.051680296659469604, 0.03385886922478676, -0.005062277894467115, 0.0001893756416393444, 0.000713822606485337, -0.044581152498722076, 0.016414470970630646, 0.0530780553817749, -0.032166846096515656, 0.005687591154128313, -0.008427934721112251, -0.005876104813069105, 0.04274199530482292, -0.0021908951457589865, 0.012745354324579239, -0.051202114671468735, -0.0005925532313995063, -0.01656160317361355, -0.0452064648270607, 0.024773437529802322, -0.012809724546968937, 0.003765672678127885, 0.00008908414019970223, -0.08916230499744415, 0.050613585859537125, -0.014078742824494839, -0.014143113046884537, -0.01532017346471548, 0.0017885796260088682, 0.05469651147723198, -0.006979598663747311, 0.03825445473194122, 0.021407781168818474, -0.019200792536139488, -0.010933784767985344, -0.0014081040862947702, 0.04825946316123009, -0.041712068021297455, -0.018612263724207878, -0.033233556896448135, -0.0041978745721280575, 0.08239420503377914, 0.004800198134034872, -0.007131329271942377, 0.017683489248156548, -0.020230719819664955, -0.09387054294347763, -0.002267909701913595, 0.02659420110285282, -0.07007186114788055, 0.04715597257018089, 0.04899512603878975, 0.03628655523061752, -0.002561025321483612, -0.06300950050354004, 0.026962032541632652, -0.032589852809906006, 0.045169681310653687, 0.026722943410277367, -0.009181988425552845, -0.03065873682498932, -0.04196954891085625, -0.03562445938587189, -0.017628313973546028, 0.018345585092902184, 0.011025742627680302, 0.0021966425701975822, 0.011099308729171753, -0.028746014460921288, 0.01359136588871479, 0.0016816786956042051, 0.03385886922478676, -0.024276865646243095, -0.02953685261309147, -0.05859552323818207 ]
20,974
argufy.parser
__set_main_arguments
Separate and set main arguments from builder function. Paramters --------- ns: Namespace Argparse namespace object for a command. Returns ------- Namespace: Argparse namespace object with command arguments.
def __set_main_arguments(self, ns: 'Namespace') -> 'Namespace': """Separate and set main arguments from builder function. Paramters --------- ns: Namespace Argparse namespace object for a command. Returns ------- Namespace: Argparse namespace object with command arguments. """ # pass main arguments to builder function if self.main_args_builder: builder_mod = sys.modules[self.main_args_builder['module']] builder = getattr(builder_mod, self.main_args_builder['function']) builder_signature = inspect.signature(builder) builder_args = {} for param in builder_signature.parameters: if param in vars(ns): builder_args[param] = vars(ns).pop(param) builder_mod.__dict__[self.main_args_builder['instance']] = builder( **builder_args ) return ns
(self, ns: 'Namespace') -> 'Namespace'
[ -0.004343526903539896, 0.0162516999989748, 0.016437223181128502, -0.01775442622601986, 0.009303913451731205, 0.008830833248794079, 0.008074832148849964, 0.04203921556472778, 0.0494229793548584, -0.030611081048846245, -0.04986823350191116, -0.03699302673339844, -0.03658488020300865, 0.03814326226711273, -0.032150909304618835, -0.013218420557677746, 0.06875433772802353, 0.057623039931058884, -0.02721603401005268, 0.05420944094657898, 0.02393229864537716, -0.01940556988120079, -0.04211342707276344, 0.04894062504172325, -0.009062735363841057, 0.02467438578605652, 0.013032899238169193, 0.019201496616005898, 0.03656632825732231, -0.05725199729204178, -0.014869564212858677, -0.052280016243457794, 0.04196500778198242, 0.02721603401005268, 0.03593555465340614, -0.053133413195610046, 0.013867747038602829, 0.06407919526100159, 0.025230951607227325, -0.011428136378526688, -0.019108735024929047, -0.029646366834640503, 0.04953429475426674, 0.0069756158627569675, 0.012624751776456833, -0.0012499524746090174, 0.049794021993875504, 0.014340827241539955, -0.029794784262776375, 0.015184951014816761, 0.054580483585596085, -0.03324548900127411, 0.03274457901716232, 0.014953048899769783, -0.04660305008292198, 0.07558154314756393, 0.03328259289264679, 0.04723382368683815, 0.0147768035531044, 0.009341017343103886, -0.04266998916864395, 0.000686430255882442, 0.02411781996488571, -0.039145078510046005, 0.014711870811879635, -0.0058485716581344604, -0.05339314416050911, 0.002485990757122636, -0.0171978622674942, 0.045378606766462326, -0.03408033773303032, -0.0339319184422493, 0.01788429170846939, -0.026844989508390427, -0.006219614762812853, -0.03485952690243721, -0.04426547884941101, 0.004531367681920528, -0.017216414213180542, 0.00140068877954036, -0.02406216412782669, 0.030555423349142075, -0.06511811912059784, 0.036009762436151505, 0.028477581217885017, 0.06667649745941162, -0.021446308121085167, 0.03511925786733627, 0.030740944668650627, -0.08162954449653625, -0.030444109812378883, 0.019015973433852196, 0.011446688324213028, 0.023783881217241287, -0.02402506023645401, -0.02569475583732128, -0.025768963620066643, -0.013172040693461895, -0.011808455921709538, -0.012819549068808556, -0.058365125209093094, -0.02777259796857834, 0.007444058079272509, 0.014758250676095486, 0.022930482402443886, 0.028310611844062805, 0.0073884017765522, -0.009364207275211811, 0.010240797884762287, -0.010927228257060051, -0.049237459897994995, -0.015518889762461185, -0.057029370218515396, 0.0014412717428058386, -0.0028593530878424644, 0.006303099915385246, -0.019720956683158875, -0.03740117326378822, 0.03472966328263283, 0.021520517766475677, -0.013682224787771702, 0.06107374280691147, -0.007852206006646156, -0.01936846598982811, 0.010250073857605457, -0.020704220980405807, -0.009187961928546429, 0.019238600507378578, 0.046751469373703, -0.055285464972257614, 0.025768963620066643, -0.029980305582284927, -0.06114795058965683, -0.035137809813022614, 0.008654586970806122, -0.035267673432826996, 0.0041510481387376785, 0.05253974348306656, -0.0651923269033432, 0.0729842334985733, -0.011381756514310837, 0.03129751235246658, 0.008761262521147728, -0.012392849661409855, -0.08296530693769455, -0.061593204736709595, 0.0049998098984360695, -0.006516449619084597, -0.021446308121085167, 0.010092380456626415, -0.023431390523910522, 0.029961753636598587, -0.022986138239502907, 0.06066559627652168, -0.0018610145198181272, -0.0325033999979496, 0.025973036885261536, -0.03159434348344803, 0.0452301912009716, 0.00810729805380106, -0.018097640946507454, 0.00000993736830423586, 0.017606008797883987, -0.08259426057338715, 0.02708616852760315, -0.017466867342591286, 0.050610318779945374, -0.028421923518180847, -0.0016708547482267022, 0.046714361757040024, -0.006219614762812853, 0.009999619796872139, -0.011706419289112091, 0.05714068189263344, -0.03951612114906311, 0.01517567504197359, -0.00269934069365263, -0.007226069923490286, 0.028997041285037994, -0.02003634348511696, 0.03717854991555214, 0.003884360659867525, 0.0025625184644013643, -0.015778619796037674, 0.039070870727300644, -0.029831888154149055, -0.012123842723667622, 0.04567544162273407, 0.0021601682528853416, -0.06370814889669418, 0.020667117089033127, 0.01360801700502634, -0.012420677579939365, 0.01870058663189411, -0.035916998982429504, 0.03619528189301491, -0.06990457326173782, 0.029739128425717354, 0.007968156598508358, -0.01619604416191578, 0.0033509857021272182, 0.011047816835343838, -0.004944153130054474, -0.008404132910072803, 0.016845369711518288, 0.02178024686872959, 0.007379125338047743, 0.05176055431365967, -0.03884824365377426, 0.011122025549411774, 0.02866310253739357, -0.08934725075960159, 0.016576364636421204, 0.005329110659658909, -0.013283353298902512, -0.028997041285037994, 0.02409926801919937, 0.009280722588300705, 0.022002873942255974, 0.01619604416191578, 0.07331817597150803, 0.005806829314678907, 0.09417081624269485, 0.010110932402312756, -0.053949709981679916, 0.0072817266918718815, 0.04129713028669357, -0.01437793206423521, 0.02090829610824585, -0.0007397677982226014, -0.018292440101504326, -0.003014727495610714, -0.06556336581707001, 0.008585016243159771, -0.0006209179409779608, -0.07866120338439941, 0.01940556988120079, -0.0027132548857480288, 0.043041035532951355, -0.02094539999961853, 0.014452139846980572, 0.02183590456843376, 0.009721336886286736, 0.01628880575299263, -0.058513544499874115, 0.04407995566725731, -0.011131301522254944, -0.004253084771335125, 0.04868089407682419, 0.0005513472715392709, 0.003988716285675764, -0.01638156548142433, 0.009999619796872139, 0.059923507273197174, -0.07302133738994598, 0.08281688392162323, -0.010982884094119072, 0.022949034348130226, -0.04059214890003204, -0.03575003147125244, 0.0944676473736763, -0.03465545177459717, 0.016418669372797012, -0.01786573976278305, 0.026974854990839958, 0.021130921319127083, 0.012420677579939365, -0.03639935702085495, -0.029126906767487526, 0.016066178679466248, 0.10166589170694351, 0.03177986666560173, -0.004350483883172274, 0.04100029543042183, -0.04036952182650566, 0.009359569288790226, -0.023524152114987373, 0.0018621740164235234, -0.056101761758327484, 0.00733738299459219, 0.0714629590511322, -0.0025857086293399334, -0.0013415537541732192, 0.06259502470493317, 0.018357371911406517, -0.029831888154149055, 0.02949794940650463, 0.05944115296006203, 0.014915944077074528, -0.030054515227675438, -0.020611461251974106, 0.07227925211191177, 0.0325961634516716, 0.0003261123492848128, -0.02949794940650463, -0.004587023984640837, -0.05554519593715668, -0.02159472554922104, 0.0026158560067415237, -0.02782825566828251, -0.012940138578414917, -0.026548154652118683, -0.04430258274078369, 0.022874824702739716, 0.0370672345161438, 0.015240607783198357, 0.04986823350191116, 0.0010708080371841788, 0.08986671268939972, -0.017513249069452286, 0.017429763451218605, -0.001572296372614801, 0.016715504229068756, -0.00675298972055316, -0.00164186698384583, 0.007597113493829966, 0.026937751099467278, -0.09387397766113281, 0.029034145176410675, 0.07391184568405151, -0.023468494415283203, -0.015509613789618015, 0.021334994584321976, 0.004141771700233221, 0.04259578138589859, 0.05565651133656502, -0.0247114896774292, 0.026195663958787918, 0.01858927495777607, 0.0035620166454464197, 0.009610024280846119, 0.0015131613472476602, -0.02543502487242222, 0.003798556746914983, 0.023783881217241287, -0.013032899238169193, -0.03474821522831917, -0.02790246345102787, -0.021483412012457848, -0.05120398849248886, 0.043115243315696716, 0.030629632994532585, -0.05962667241692543, -0.0035133170895278454, 0.013951231725513935, -0.03973874822258949, 0.019850822165608406, -0.009401312097907066, 0.07539601624011993, -0.06931090354919434, -0.02871875837445259, 0.00027349957963451743, -0.01874696835875511, -0.04593517258763313, 0.051426615566015244, -0.025973036885261536, -0.03547174856066704, -0.012262984178960323, -0.004670508671551943, -0.04860668629407883, 0.01043559517711401, -0.01504580955952406, -0.007931052707135677, -0.009447692893445492, -0.020592909306287766, -0.024581624194979668, 0.010110932402312756, -0.0005174315883778036, 0.03641790896654129, -0.024396102875471115, 0.0904603824019432, -0.04723382368683815, 0.052168700844049454, -0.006539640016853809, -0.029071250930428505, 0.04704830422997475, -0.06203845515847206, -0.036751847714185715, -0.06931090354919434, -0.046862781047821045, -0.02098250389099121, 0.004893134813755751, -0.004542962647974491, 0.029906097799539566, 0.00481428811326623, -0.05124109238386154, 0.022225499153137207, -0.013682224787771702, -0.006725161336362362, 0.006868940778076649, 0.00962857622653246, -0.001910873455926776, 0.00029016751796007156, 0.08689836412668228, 0.003364899894222617, -0.029961753636598587, -0.0241363737732172, -0.00733738299459219, -0.05324472859501839, -0.02474859543144703, 0.016585640609264374, -0.04177948459982872, 0.07984853535890579, -0.003780004568397999, 0.04482204094529152, -0.011530173942446709, -0.030369902029633522, 0.01626097597181797, -0.022967586293816566, 0.0029034146573394537, -0.013274077326059341, -0.0013508298434317112, -0.05732620507478714, 0.026882093399763107, -0.00045887631131336093, 0.014312999323010445, 0.10923517495393753, 0.006126854103058577, 0.04660305008292198, -0.049905337393283844, 0.019980687648057938, 0.01620532013475895, 0.013821366243064404, 0.027624180540442467, 0.05213159695267677, 0.004369035828858614, -0.026603812351822853, -0.06040586531162262, -0.004153367131948471, -0.025230951607227325, -0.07732544094324112, 0.028143642470240593, -0.05105557292699814, 0.011428136378526688, 0.009971790947020054, 0.01709582470357418, 0.026529602706432343, -0.037549592554569244, 0.027735494077205658, 0.05780855938792229, -0.09550657123327255, -0.07294712960720062, -0.0013485108502209187, 0.007662046235054731, -0.09736178815364838, -0.03426585718989372, -0.002632089192047715, 0.0372527576982975, -0.04426547884941101, -0.014544901438057423, 0.010584012605249882, 0.013264801353216171, 0.025045428425073624, -0.0775480717420578, -0.03103777952492237, -0.08378159999847412, -0.08422685414552689, -0.01039849128574133, -0.003675648709759116, 0.05981219559907913, -0.018079089000821114, -0.03014727681875229, 0.008816918358206749, 0.017958499491214752, -0.027290241792798042, 0.05958956852555275, 0.06556336581707001, -0.039924267679452896, -0.04474783316254616, -0.003548102453351021, 0.015092190355062485, -0.03615817800164223, 0.025212399661540985, -0.017977053299546242, 0.04708540812134743, 0.0015363515121862292, 0.009879030287265778, 0.004459477961063385, -0.058365125209093094, -0.017327725887298584, -0.053022101521492004, 0.04356049373745918, 0.008793728426098824, 0.059181421995162964, -0.07135164737701416, -0.0077501689083874226, 0.03556450828909874, -0.04801301658153534, -0.02480425126850605, 0.023616911843419075, -0.008367029018700123, 0.017244242131710052, -0.00009609444532543421, 0.011715695261955261, 0.02626987174153328, 0.025249503552913666, 0.06727016717195511, 0.08341055363416672, -0.005862485617399216, -0.02719748020172119, 0.0028245679568499327, -0.02647394686937332, -0.025360815227031708, -0.004355121869593859, 0.043820224702358246, 0.02701195888221264, -0.12971676886081696, 0.0065442780032753944, -0.037623800337314606, -0.04278130456805229, -0.05420944094657898, 0.0010238478425890207, -0.028143642470240593, -0.021427756175398827, 0.039887163788080215, 0.002710935892537236, -0.0004704714228864759, 0.02799522504210472, 0.004508177284151316, -0.02725313790142536, 0.017225690186023712, 0.01616821624338627, 0.009517262689769268, -0.031408824026584625, 0.014953048899769783, 0.026140008121728897, -0.03011017106473446, 0.06515522301197052, 0.06070270016789436, -0.0049256011843681335, -0.015324092470109463, 0.030796602368354797, 0.015491061843931675, 0.00963785219937563, 0.010546908713877201, -0.003492445917800069, 0.03027714043855667, 0.00894678384065628, 0.061481889337301254, 0.052280016243457794, -0.019980687648057938, 0.007031272165477276, -0.029275324195623398, -0.012634027749300003, -0.02020331285893917, 0.0482727475464344, 0.004018863663077354, 0.05584203079342842, 0.024321895092725754, -0.04318945109844208, -0.052317120134830475, 0.011010712943971157, 0.044636521488428116, 0.08927304297685623, -0.009507986716926098, -0.06693623214960098, -0.007847568020224571, 0.007151861675083637, -0.016112560406327248, -0.016001246869564056, -0.01272678840905428, -0.0013693820219486952, -0.02415492571890354, 0.034358616918325424, -0.0418165922164917, 0.020444491878151894, -0.010231521911919117, -0.0035643356386572123, -0.045489922165870667, 0.014053268358111382, -0.05046190321445465, -0.014953048899769783, -0.02092684805393219, -0.04586096480488777, -0.04018399864435196, 0.04482204094529152, 0.018348095938563347, 0.022262603044509888, -0.012003254145383835, 0.054580483585596085, 0.0621497705578804, 0.01927570439875126, -0.03229932859539986, 0.037419725209474564, -0.06114795058965683, 0.027549972757697105, 0.018162574619054794, 0.003316200338304043, 0.05903300270438194, -0.023709673434495926, -0.0060804737731814384, 0.04901483282446861, 0.007082290947437286, -0.04860668629407883, -0.005022999830543995, -0.015917761251330376, -0.03881113976240158, -0.014489244669675827, 0.08556260913610458, -0.03187262639403343, -0.01704016886651516, -0.020425938069820404, -0.01624242402613163, 0.028421923518180847, 0.009331741370260715, 0.007852206006646156, -0.04270709678530693, 0.0433378703892231, -0.03962743654847145, 0.04118581861257553, 0.001261547557078302, -0.06222397834062576, 0.013914127834141254, -0.02474859543144703, -0.026566706597805023, -0.021353548392653465, 0.015184951014816761, -0.02934953197836876, 0.07368921488523483, -0.04868089407682419, -0.023876642808318138, 0.05817960575222969, 0.010250073857605457, -0.046862781047821045, -0.03471111133694649, -0.05647280439734459, 0.0045777480117976665, -0.0030935744289308786, 0.0385885126888752, 0.008524722419679165, 0.011520897038280964, -0.05903300270438194, 0.04474783316254616, -0.07350369542837143, 0.06682491302490234, -0.005208521615713835, 0.014424311928451061, -0.02632552944123745, 0.03463689982891083, 0.0049998098984360695, 0.12912310659885406, -0.058365125209093094, -0.01783791184425354, -0.009072011336684227, 0.0058161052875220776, 0.009582195430994034, 0.013264801353216171, 0.0015641797799617052, 0.00847834162414074, -0.011029264889657497, 0.006609210278838873, 0.01860782690346241, -0.008009899407625198, 0.018153298646211624, 0.005839295219630003, -0.023097451776266098, -0.013459599576890469, 0.007342020981013775, 0.04879220575094223, 0.01514784712344408, 0.0049580675549805164, -0.012661855667829514, 0.03749393671751022, -0.021223682910203934, -0.03818036615848541, -0.028978489339351654, -0.01233719289302826, 0.009832650423049927, 0.017559628933668137, 0.015889933332800865, 0.043078139424324036, -0.00013276396202854812, 0.0017392659792676568, 0.004856030456721783, 0.005352301057428122, -0.0185799989849329, -0.01787501573562622, 0.008798366412520409, 0.021075265482068062, -0.03233643248677254, -0.05580492690205574, 0.012763893231749535, -0.03472966328263283, -0.05495152622461319, -0.014405759982764721, -0.02801377698779106, 0.007597113493829966, 0.04203921556472778, 0.010686050169169903, -0.03884824365377426, -0.012142395600676537, -0.05825381353497505, 0.042076319456100464, 0.028292059898376465, 0.013598740100860596, 0.014823183417320251, -0.08830832690000534, -0.08444947749376297, -0.034469932317733765, 0.0463804230093956, 0.0356387197971344, 0.013932679779827595, -0.034377168864011765, -0.055470988154411316, -0.00559347914531827, -0.0308893620967865, -0.028421923518180847, 0.042261842638254166, 0.016529982909560204, 0.04589806869626045, 0.05035058781504631, 0.004241489805281162, 0.02330152504146099, -0.006887493189424276, 0.028384819626808167, 0.01925715245306492, -0.03821747004985809, 0.04634331911802292, -0.04233605042099953, 0.005918142385780811, -0.03172421082854271, 0.03307851776480675, 0.08897620439529419, -0.041556861251592636, 0.07598968595266342, 0.006479345262050629, -0.05491442233324051, 0.010463424026966095, -0.008524722419679165, -0.05881037935614586, -0.03632514923810959, -0.04957139864563942, 0.026826437562704086, -0.0048467544838786125, -0.010101656429469585, -0.032132357358932495, 0.0709063932299614, -0.014053268358111382, -0.006734437774866819, -0.007587837520986795, -0.019145838916301727, 0.04471072927117348, -0.016613468527793884, 0.042076319456100464, 0.005709430202841759, 0.011047816835343838, -0.03638080507516861, -0.041371338069438934, 0.01400688849389553, -0.00448266789317131, 0.011752799153327942, 0.06886565685272217, 0.0010400810278952122, 0.0008591973455622792, -0.023561256006360054, -0.014721146784722805, 0.03944191336631775, 0.03265181928873062, 0.004181195050477982, -0.06719595938920975, 0.01616821624338627, -0.00015421491116285324, -0.031408824026584625, -0.0072817266918718815, 0.061778724193573, 0.02944229356944561, 0.0050786565989255905, -0.016808265820145607 ]
20,975
argufy.parser
__set_module_arguments
Separate and set module arguments from functions. Paramters --------- fn: Callable Function used to seperate module arguments from function. ns: Namespace Argparse namespace object for a command. Returns ------- Namespace: Argparse namespace object with command arguments.
def __set_module_arguments( self, fn: Callable[[F], F], ns: 'Namespace' ) -> 'Namespace': """Separate and set module arguments from functions. Paramters --------- fn: Callable Function used to seperate module arguments from function. ns: Namespace Argparse namespace object for a command. Returns ------- Namespace: Argparse namespace object with command arguments. """ # XXX: only works on subcommands that use 'mod' if 'mod' in ns: mod = vars(ns).pop('mod') else: mod = None # separate namespace from other variables signature = inspect.signature(fn) docstring = docparse(fn.__doc__) if fn.__doc__ else None # inspect non-signature keyword args keywords = ( self.__get_keyword_args(signature, docstring) if docstring else list(signature.parameters) ) args = [ {k: vars(ns).pop(k)} for k in list(vars(ns).keys()).copy() if not signature.parameters.get(k) and k not in keywords ] log.debug("arguments %s, %s", args, keywords) # set module variables if mod and self.use_module_args: for arg in args: for k, v in arg.items(): mod.__dict__[k] = v return ns
(self, fn: Callable[[~F], ~F], ns: 'Namespace') -> 'Namespace'
[ 0.00973900593817234, 0.02709822729229927, 0.04813745245337486, -0.010045673698186874, 0.010854159481823444, 0.06731808930635452, -0.004878796171396971, 0.04077744111418724, 0.0380639024078846, -0.04077744111418724, -0.049178265035152435, -0.04598149284720421, -0.018028313294053078, 0.02362266555428505, -0.028083279728889465, 0.007304254453629255, 0.042673204094171524, 0.0818522572517395, -0.04122350364923477, 0.02209862321615219, 0.027878833934664726, 0.0034546521492302418, -0.042673204094171524, 0.004906674847006798, -0.018604476004838943, -0.02421741373836994, 0.07694558054208755, -0.007034759037196636, 0.055794842541217804, -0.008354357443749905, 0.0029365706723183393, -0.019496597349643707, 0.022990746423602104, 0.02694953978061676, -0.011318806558847427, -0.05010755732655525, 0.012582647614181042, 0.05992090702056885, -0.04687361419200897, -0.036911576986312866, -0.04787725210189819, -0.026522064581513405, 0.06133343651890755, 0.028287723660469055, 0.00956244021654129, 0.009636783972382545, 0.0473196767270565, 0.02548125386238098, -0.002234953222796321, 0.03678147494792938, 0.04133502021431923, -0.03267399221658707, 0.05549746751785278, -0.045238055288791656, -0.001242931350134313, 0.0931524783372879, 0.021987106651067734, -0.00011216874554520473, -0.00159954815171659, 0.0024998022709041834, 0.011160826310515404, 0.03663278743624687, -0.0025904083158820868, -0.02118791453540325, -0.02650347910821438, -0.02609458938241005, -0.04862068593502045, -0.033175814896821976, -0.03486713021993637, 0.052560895681381226, -0.053824737668037415, -0.02851075492799282, 0.0634893998503685, 0.003159601241350174, 0.03759925439953804, 0.0007736376719549298, -0.05809948965907097, 0.022674785926938057, -0.021410945802927017, 0.004297987092286348, -0.019924074411392212, 0.024793576449155807, -0.03514591604471207, 0.074863962829113, 0.0069418298080563545, 0.019496597349643707, -0.033175814896821976, 0.019403668120503426, 0.07984498143196106, -0.029588736593723297, -0.06081303209066391, -0.014162448234856129, -0.009144257754087448, -0.005450312048196793, -0.018223464488983154, -0.003547581611201167, -0.020574579015374184, -0.010742643848061562, -0.0628574788570404, -0.036056626588106155, -0.04092612862586975, -0.017256999388337135, 0.029756009578704834, 0.05612938851118088, 0.02815762348473072, -0.01506386324763298, -0.017833160236477852, -0.026261862367391586, 0.011727696284651756, -0.004678997676819563, -0.05334150418639183, 0.018102657049894333, 0.013010122813284397, 0.014441235922276974, 0.030443686991930008, -0.0387701652944088, -0.019663872197270393, -0.039996836334466934, 0.021336602047085762, 0.0010803048498928547, -0.027674390003085136, 0.06300616264343262, 0.011839211918413639, 0.00335707631893456, 0.03719036653637886, -0.01314951665699482, 0.008391529321670532, 0.024161657318472862, 0.03951360285282135, -0.07731729745864868, -0.006834961008280516, -0.04274754598736763, -0.02341822162270546, 0.004934553522616625, -0.01453416608273983, -0.05817383527755737, -0.010882038623094559, 0.05181746184825897, -0.0380639024078846, 0.02286064438521862, -0.019403668120503426, 0.05475402995944023, 0.001073335180990398, 0.01051961351186037, -0.07237345725297928, -0.04836048558354378, 0.04048006609082222, -0.009279005229473114, -0.019143465906381607, -0.009627491235733032, -0.008131327107548714, -0.00910708587616682, -0.0024161655455827713, 0.032432377338409424, -0.019905487075448036, 0.0125175965949893, 0.03720895200967789, -0.02397579699754715, 0.02397579699754715, 0.0081034479662776, -0.017842454835772514, -0.017638009041547775, 0.01316810306161642, -0.014924469403922558, 0.0578392893075943, -0.05627807229757309, 0.042970575392246246, -0.06293182075023651, 0.004221320152282715, 0.021336602047085762, 0.011960020288825035, 0.011030725203454494, 0.08281872421503067, 0.03228368982672691, 0.012461839243769646, 0.039587944746017456, 0.020871954038739204, -0.03365904465317726, -0.017173362895846367, 0.012424667365849018, 0.054679688066244125, 0.015175378881394863, -0.017164068296551704, 0.006932537071406841, 0.019496597349643707, 0.0081034479662776, -0.0029458634089678526, 0.018437203019857407, -0.04397421330213547, -0.043230779469013214, 0.03551763668656349, 0.025908730924129486, 0.01279638521373272, -0.002352276584133506, -0.06445586681365967, 0.03180045634508133, -0.0775403305888176, 0.005682635586708784, 0.05520009249448776, -0.0018864677986130118, 0.017953969538211823, -0.007880417630076408, 0.024403274059295654, 0.06211404502391815, -0.0008177791605703533, 0.015259015373885632, 0.013363254256546497, 0.04717098921537399, -0.05769060179591179, 0.004525664262473583, 0.027674390003085136, -0.10400664061307907, 0.04059158265590668, 0.022488925606012344, -0.010426684282720089, -0.020202862098813057, 0.015872349962592125, 0.058768581598997116, -0.00026964061544276774, -0.0017319725593551993, 0.05687282234430313, 0.003951824735850096, 0.03226510435342789, -0.015500632114708424, 0.016160430386662483, -0.01594669371843338, 0.0564267598092556, -0.03432813659310341, 0.0022210138849914074, 0.03557339310646057, 0.02144811674952507, 0.02029579132795334, -0.06620293855667114, -0.01266628410667181, 0.03624248504638672, -0.04981018602848053, 0.05486554652452469, -0.014757196418941021, 0.0016274269437417388, -0.04601866379380226, -0.0011743959039449692, 0.03356611728668213, 0.047468360513448715, 0.05549746751785278, -0.0367257185280323, 0.03280409425497055, 0.009464864619076252, 0.040703099220991135, 0.004662734922021627, 0.019013365730643272, 0.006542233284562826, 0.007703851442784071, 0.004221320152282715, 0.07835811376571655, -0.10140461474657059, 0.04925260692834854, -0.014050932601094246, 0.04906674847006798, -0.0033129348885267973, -0.028547925874590874, 0.0528954416513443, -0.06839607656002045, -0.017935384064912796, -0.01425537746399641, 0.09203732758760452, 0.015463460236787796, 0.021318014711141586, -0.030722476541996002, -0.024496203288435936, 0.009757592342793941, 0.027897421270608902, 0.013874366879463196, 0.006277384236454964, 0.010789109393954277, -0.02709822729229927, 0.01201577764004469, -0.01591881364583969, -0.05308130010962486, -0.012433960102498531, 0.03644692897796631, 0.07917588949203491, -0.0734514370560646, -0.050442103296518326, 0.04215279594063759, 0.014729317277669907, 0.015705076977610588, 0.025574184954166412, 0.05337867513298988, 0.049735840409994125, -0.004544250201433897, -0.009934158064424992, 0.030852576717734337, 0.0321350023150444, -0.00013678053801413625, -0.0346069261431694, 0.06367525458335876, -0.0972413718700409, -0.047914423048496246, 0.03776652738451958, -0.02024003304541111, -0.005812737159430981, -0.02968166582286358, -0.032432377338409424, 0.03375197574496269, 0.05839686468243599, -0.028993988409638405, 0.06300616264343262, -0.012880021706223488, 0.02083478309214115, -0.000958915741648525, 0.0536017045378685, 0.013539820909500122, -0.014125276356935501, -0.056761305779218674, 0.0352388471364975, 0.034346725791692734, 0.023882867768406868, -0.029458634555339813, -0.015612147748470306, 0.06616576761007309, -0.034142278134822845, -0.0024696001783013344, 0.02568569965660572, 0.047914423048496246, 0.06360091269016266, 0.04516371339559555, -0.006886071991175413, 0.01874386891722679, 0.053415846079587936, 0.037264708429574966, -0.03925339877605438, 0.03233944624662399, -0.022135794162750244, 0.036762889474630356, -0.07984498143196106, -0.019849730655550957, -0.0528954416513443, -0.03174469992518425, 0.03992249071598053, -0.02609458938241005, 0.025871558114886284, 0.006388899404555559, -0.07601629197597504, -0.029347119852900505, 0.017526494339108467, 0.0027809138409793377, 0.028678027912974358, 0.0215038750320673, 0.08066276460886002, -0.038175418972969055, 0.045646946877241135, -0.0005302786594256759, -0.011848504655063152, -0.04531239718198776, 0.03194914385676384, 0.024161657318472862, -0.04430875927209854, -0.011699817143380642, -0.010454562492668629, -0.11396867781877518, 0.04107481613755226, -0.06237424537539482, -0.0018609121907502413, 0.006579405162483454, 0.036967333406209946, 0.022619027644395828, 0.008108094334602356, -0.013335376046597958, 0.06601708382368088, -0.026206104084849358, 0.07932458072900772, -0.022953573614358902, 0.016903866082429886, -0.024198828265070915, -0.037023093551397324, 0.021336602047085762, -0.016522856429219246, -0.022080037742853165, -0.08906358480453491, -0.019645284861326218, 0.03538753464818001, -0.034439653158187866, 0.025313980877399445, -0.02180124819278717, -0.038584306836128235, -0.01968245767056942, 0.03128005191683769, -0.01962669938802719, 0.014190326444804668, 0.010501028038561344, -0.015593561343848705, 0.028529340401291847, 0.00906062126159668, 0.07315406203269958, -0.001391618512570858, -0.03310146927833557, 0.002255862345919013, -0.005808090325444937, -0.025760043412446976, -0.0321350023150444, 0.011616180650889874, -0.060441311448812485, 0.07605346292257309, 0.03824976086616516, 0.0691395103931427, 0.04033138230443001, -0.013874366879463196, 0.021280843764543533, 0.03759925439953804, 0.02180124819278717, -0.006788496393710375, -0.036261070519685745, -0.05315564572811127, -0.02265619859099388, 0.027525702491402626, 0.04471765086054802, 0.017526494339108467, 0.01484083291143179, 0.029291361570358276, -0.0606643445789814, 0.028492169454693794, -0.03847279027104378, -0.03165176883339882, 0.038732994347810745, 0.040851786732673645, -0.013772143982350826, -0.014747903682291508, -0.02312084659934044, -0.00266242865473032, 0.01900407299399376, -0.07962194830179214, 0.06542233377695084, -0.009478803724050522, -0.017173362895846367, 0.015351944603025913, -0.03456975519657135, -0.009158196859061718, -0.02579721435904503, 0.027339844033122063, 0.06828455626964569, -0.03648409992456436, -0.0067606172524392605, 0.02548125386238098, -0.038881681859493256, -0.040145520120859146, -0.030257828533649445, 0.016374168917536736, 0.05356453359127045, -0.04586997628211975, -0.011699817143380642, 0.014097397215664387, 0.048583514988422394, 0.014478407800197601, -0.04259885847568512, 0.012870728969573975, -0.08638721704483032, -0.06218838691711426, -0.02927277609705925, -0.02644772082567215, 0.053267158567905426, -0.023250948637723923, -0.026317620649933815, -0.043379466980695724, -0.00421435059979558, 0.0033036419190466404, 0.01918063871562481, 0.10831856727600098, -0.0473196767270565, -0.04750553518533707, 0.007387890946120024, 0.005389907862991095, -0.04144653305411339, -0.017758818343281746, -0.010212946683168411, -0.010417391546070576, -0.004095865413546562, 0.004207380581647158, -0.022191552445292473, -0.022990746423602104, -0.004658088553696871, -0.008549509570002556, -0.0024161655455827713, 0.03375197574496269, 0.06687203049659729, -0.03659561648964882, -0.01393012423068285, 0.061853840947151184, -0.040145520120859146, -0.04497785121202469, 0.010575370863080025, -0.019998418167233467, -0.04538674280047417, 0.0097111277282238, 0.015463460236787796, 0.005947484634816647, -0.028492169454693794, 0.03678147494792938, 0.04657623916864395, -0.03185621649026871, -0.02865944243967533, -0.050033215433359146, 0.032079245895147324, -0.031521670520305634, 0.0137535585090518, 0.03850996494293213, 0.04430875927209854, -0.07096092402935028, -0.004195764660835266, -0.04698513075709343, -0.03587076812982559, -0.040814612060785294, 0.02921701781451702, -0.0024765697307884693, -0.008131327107548714, -0.025629941374063492, 0.014376185834407806, -0.03018348477780819, 0.05616655945777893, -0.019998418167233467, -0.028250552713871002, 0.0068814256228506565, -0.033287327736616135, 0.022135794162750244, -0.025258224457502365, 0.010036380030214787, 0.012452546507120132, -0.014859418384730816, 0.020983468741178513, 0.04995886981487274, -0.01932932436466217, -0.016755180433392525, 0.0004048239206895232, -0.0033640461042523384, -0.023641251027584076, 0.004400209523737431, 0.043082091957330704, 0.004709200002253056, -0.004469906445592642, -0.00997132994234562, 0.021336602047085762, -0.035759251564741135, 0.028454996645450592, -0.03921622782945633, 0.0374319814145565, -0.0013951032888144255, 0.018260637298226357, -0.01833498105406761, 0.01721053384244442, 0.012536182999610901, -0.026577822864055634, -0.04784008115530014, -0.01325173955410719, 0.03776652738451958, 0.03719036653637886, -0.005157584324479103, -0.05274675413966179, 0.02129942923784256, -0.006491121836006641, -0.019106294959783554, -0.04386270046234131, -0.03769218549132347, 0.0042794011533260345, -0.022823473438620567, 0.01723841205239296, -0.020425893366336823, -0.030703889206051826, 0.059623535722494125, -0.00988769344985485, -0.04319360852241516, 0.03059237450361252, -0.022321652621030807, -0.005873141344636679, -0.06282030791044235, -0.044791992753744125, -0.05661261826753616, 0.01549133937805891, 0.053824737668037415, -0.03895602375268936, -0.005533948540687561, 0.022080037742853165, 0.008870115503668785, -0.015993157401680946, -0.00673738494515419, 0.03969946131110191, -0.05795080587267876, 0.0642700046300888, 0.009348702616989613, 0.0349600575864315, 0.04315643757581711, -0.00673738494515419, -0.024161657318472862, -0.010668301023542881, 0.0416695661842823, -0.08832015097141266, 0.0009995723376050591, -0.03544329106807709, -0.07642517983913422, -0.013065880164504051, 0.049326952546834946, -0.0314287394285202, -0.04334229603409767, -0.04709664359688759, -0.009455570951104164, -0.0022686400916427374, -0.002574145793914795, 0.008549509570002556, -0.012536182999610901, 0.029142675921320915, -0.0388445109128952, 0.055088575929403305, -0.029644494876265526, -0.05040493234992027, 0.036911576986312866, -0.029384290799498558, -0.014673559926450253, 0.003617278765887022, 0.034904301166534424, -0.0005410236190073192, 0.0691395103931427, -0.10192501544952393, -0.04568411782383919, 0.033194400370121, -0.03271116688847542, -0.02559277042746544, 0.019756801426410675, -0.022693371400237083, -0.04345380887389183, -0.0253883246332407, 0.016662249341607094, -0.013734972104430199, -0.018511546775698662, -0.056352417916059494, 0.05308130010962486, -0.03542470559477806, 0.04285906255245209, -0.05668696388602257, 0.0015832855133339763, 0.0002021215477725491, -0.00006592182762688026, -0.0055571808479726315, 0.08980701863765717, -0.038138244301080704, -0.01112365536391735, -0.04430875927209854, 0.009590319357812405, 0.032989952713251114, -0.008270720951259136, -0.00797334685921669, 0.08014235645532608, -0.039030369371175766, 0.03494147211313248, 0.03776652738451958, -0.028808128088712692, 0.027191156521439552, 0.046501897275447845, -0.016253359615802765, -0.027785904705524445, 0.016160430386662483, 0.05137139931321144, -0.03204207494854927, -0.010872745886445045, -0.038175418972969055, 0.034346725791692734, 0.019663872197270393, -0.014004467986524105, -0.04341663792729378, -0.018028313294053078, -0.021912764757871628, 0.009534561075270176, 0.04765422269701958, 0.032376620918512344, -0.03304571285843849, -0.04074027016758919, 0.04531239718198776, 0.0012766183353960514, -0.022395996376872063, 0.017052553594112396, 0.041706737130880356, -0.02483074925839901, 0.023399634286761284, -0.06438152492046356, 0.006365667097270489, -0.006230919621884823, -0.06609142571687698, -0.02139235846698284, 0.023938626050949097, -0.005101826507598162, 0.042821891605854034, -0.02847358211874962, -0.006124050822108984, 0.007564457133412361, -0.0024788931477814913, 0.018130535259842873, 0.01632770337164402, -0.014682852663099766, 0.011950726620852947, -0.04334229603409767, -0.0360194556415081, 0.02083478309214115, 0.005998596083372831, 0.0012650020653381944, 0.02300933189690113, -0.02241458371281624, -0.030815405771136284, 0.011439614929258823, -0.07088658213615417, -0.08244700729846954, -0.006621223408728838, -0.020425893366336823, 0.05174311622977257, -0.003417480504140258, -0.011644059792160988, 0.01016648206859827, 0.02800893597304821, 0.02841782569885254, 0.02297215908765793, 0.002799499547109008, -0.002722832839936018, -0.008321831934154034, -0.004841624293476343, -0.005938191898167133, -0.02427317202091217, 0.06256010383367538, 0.017136190086603165, 0.07096092402935028, -0.026930954307317734, -0.023752767592668533, 0.07333992421627045, 0.028640855103731155, -0.06505061686038971, -0.024254586547613144, 0.008321831934154034, 0.004000612534582615, 0.0062355659902095795, -0.006751324515789747, -0.05631524696946144, 0.04486633837223053, 0.021671148017048836, -0.029440049082040787, 0.012499011121690273, -0.0038496023043990135, 0.027191156521439552, -0.01738709956407547, 0.05542312189936638, 0.052560895681381226, 0.008633146062493324, -0.056501105427742004, -0.009915572591125965, 0.022637613117694855, -0.036056626588106155, -0.0047231391072273254, 0.06549667567014694, 0.012749920599162579, 0.010575370863080025, 0.010203653015196323, -0.05769060179591179, 0.021931350231170654, 0.038993194699287415, 0.011913555674254894, -0.06036696955561638, -0.08311609923839569, -0.000593877281062305, 0.027562875300645828, -0.01650427095592022, 0.05178028717637062, 0.0037613194435834885, -0.0022721251007169485, -0.0014636388514190912 ]
20,976
argufy.parser
__init__
Initialize parser. Parameters ---------- prog: str The name of the program usage: str The string describing the program usage description: str Text to display before the argument help epilog: str Text to display after the argument help parents: list A list of ArgumentParser objects whose arguments should also be included formatter_class: Object A class for customizing the help output prefix_chars: char The set of characters that prefix optional arguments fromfile_prefix_chars: None The set of characters that prefix files from which additional arguments should be read argument_default: None The global default value for arguments conflict_handler: Object The strategy for resolving conflicting optionals add_help: str Add a -h/--help option to the parser allow_abbrev: bool Allows long options to be abbreviated if the abbreviation is unambiguous
def __init__(self, **kwargs: Any) -> None: """Initialize parser. Parameters ---------- prog: str The name of the program usage: str The string describing the program usage description: str Text to display before the argument help epilog: str Text to display after the argument help parents: list A list of ArgumentParser objects whose arguments should also be included formatter_class: Object A class for customizing the help output prefix_chars: char The set of characters that prefix optional arguments fromfile_prefix_chars: None The set of characters that prefix files from which additional arguments should be read argument_default: None The global default value for arguments conflict_handler: Object The strategy for resolving conflicting optionals add_help: str Add a -h/--help option to the parser allow_abbrev: bool Allows long options to be abbreviated if the abbreviation is unambiguous """ # TODO: handle environment variables module = self.__get_parent_module() if module and module.__doc__: docstring = docparse(module.__doc__) if not kwargs.get('description'): kwargs['description'] = docstring.short_description if 'prog' not in kwargs: kwargs['prog'] = module.__name__.split('.')[0] if 'version' in kwargs: self.prog_version = kwargs.pop('version') # if 'prefix' in kwargs: # self.prefix = kwargs.pop('prefix') # else: # self.prefix = kwargs['prog'].upper() # log.debug(str(self.prefix)) if 'log_level' in kwargs: log.setLevel(getattr(logging, kwargs.pop('log_level').upper())) if 'log_handler' in kwargs: log_handler = kwargs.pop('log_handler') log.addHandler(logging.StreamHandler(log_handler)) self.use_module_args = kwargs.pop('use_module_args', False) self.main_args_builder = kwargs.pop('main_args_builder', None) self.command_type = kwargs.pop('command_type', None) self.command_scheme = kwargs.pop('command_scheme', None) if 'formatter_class' not in kwargs: self.formatter_class = ArgufyHelpFormatter super().__init__(**kwargs) # NOTE: cannot move to formatter self._positionals.title = ArgufyHelpFormatter.font( self._positionals.title or 'arguments' ) self._optionals.title = ArgufyHelpFormatter.font( self._optionals.title or 'flags' ) # XXX version lookup infinite loop when absent if hasattr(self, 'prog_version'): self.add_argument( '--version', action='version', version=f"%(prog)s {self.prog_version}", help='display application version', )
(self, **kwargs: Any) -> NoneType
[ 0.024908874183893204, -0.0121957678347826, 0.018039774149656296, -0.019352279603481293, 0.044107869267463684, -0.01573091186583042, 0.0310977715998888, 0.04981774836778641, -0.06556782126426697, -0.03615618869662285, -0.0056667691096663475, 0.014993226155638695, -0.02899009734392166, 0.023376021534204483, -0.025464534759521484, 0.037018418312072754, 0.0025555547326803207, 0.015970420092344284, -0.0065816910937428474, 0.03036966547369957, 0.03148098662495613, -0.01951514557003975, -0.010461727157235146, 0.0336269810795784, 0.000044084517867304385, 0.029718203470110893, -0.01134311780333519, -0.013115480542182922, -0.04625386372208595, -0.08200767636299133, -0.016660204157233238, -0.05165717378258705, 0.029545757919549942, 0.0615057609975338, 0.004914712626487017, -0.06050940603017807, -0.01843256689608097, 0.04548743739724159, -0.058478374034166336, -0.013144221156835556, 0.04131041094660759, -0.030312184244394302, 0.01960136741399765, -0.01815473660826683, 0.010979065671563148, 0.030043935403227806, 0.030254703015089035, 0.037401631474494934, -0.09005516022443771, -0.054071418941020966, 0.06629592925310135, -0.018796619027853012, 0.013086739927530289, -0.02939247153699398, -0.03211328759789467, 0.0930442288517952, 0.0491279661655426, -0.008569611236453056, -0.0015029152855277061, 0.011295216158032417, -0.05184878036379814, 0.054646238684654236, 0.02458314225077629, -0.019313957542181015, -0.03167259320616722, -0.019160673022270203, 0.00716130156069994, -0.03675017133355141, 0.012713106349110603, 0.042153481394052505, 0.016094965860247612, 0.002007080474868417, 0.005911067593842745, -0.03343537449836731, 0.05169549584388733, -0.04165530204772949, -0.10530705749988556, 0.01775236241519451, 0.007606787141412497, 0.009134850464761257, -0.014926164411008358, 0.02479390986263752, -0.02705487050116062, -0.025272928178310394, 0.018078094348311424, -0.029718203470110893, -0.012751427479088306, 0.013872327283024788, 0.05686887726187706, -0.006615222431719303, -0.05223199352622032, -0.01923731528222561, 0.004478807095438242, 0.0468670055270195, -0.004217742942273617, -0.02785961888730526, -0.008876181207597256, -0.037593238055706024, 0.003939913120120764, 0.017235025763511658, -0.04131041094660759, 0.0029483484104275703, 0.0008909712778404355, 0.01076829805970192, 0.0021663536317646503, -0.0026154317893087864, -0.0449509397149086, 0.01689971424639225, 0.044107869267463684, -0.036022063344717026, -0.03630947321653366, -0.04974110797047615, -0.023356860503554344, -0.005479952320456505, -0.041770268231630325, 0.005987710319459438, -0.000585897418204695, -0.015903359279036522, 0.0452958308160305, 0.004742266610264778, -0.012914293445646763, 0.029699042439460754, -0.039068613201379776, -0.004354262724518776, 0.027802135795354843, -0.02554117701947689, -0.06710067391395569, -0.031040290370583534, 0.010940744541585445, -0.02054024115204811, 0.06959156692028046, 0.03939434140920639, -0.032783910632133484, -0.036251991987228394, 0.050430890172719955, -0.02902841940522194, -0.021440792828798294, 0.06825031340122223, -0.0662192851305008, 0.0911281630396843, 0.01587461680173874, -0.02592439018189907, 0.004505153279751539, -0.04560239985585213, -0.108372762799263, -0.04192355275154114, 0.023490983992815018, -0.00822471920400858, -0.026441728696227074, 0.046407148241996765, 0.024698106572031975, -0.0012490364024415612, 0.044261153787374496, 0.050814103335142136, 0.04472101107239723, -0.005839215125888586, -0.0395476296544075, -0.05633237957954407, 0.01749369502067566, -0.009278555400669575, 0.0008909712778404355, -0.059436406940221786, 0.06399665027856827, -0.0253495704382658, -0.02054024115204811, 0.013594496995210648, 0.006653543561697006, -0.042958229780197144, -0.006485887803137302, 0.022379666566848755, -0.031078610569238663, -0.021804844960570335, -0.021766524761915207, 0.019735492765903473, -0.012713106349110603, 0.10086178034543991, -0.01404477283358574, 0.039892520755529404, 0.008061853237450123, -0.026384245604276657, 0.01134311780333519, -0.00018097854626830667, -0.026077674701809883, -0.04575568810105324, 0.052576884627342224, 0.0008173224632628262, 0.044107869267463684, 0.0223030224442482, 0.00999229121953249, -0.013402890413999557, -0.01845172792673111, -0.0232610572129488, 0.01306757889688015, 0.007348117884248495, -0.03343537449836731, 0.02498551644384861, -0.05127396062016487, -0.023376021534204483, 0.08936537802219391, -0.04035237804055214, 0.021594077348709106, 0.040620625019073486, -0.005115899723023176, 0.009455791674554348, 0.010672494769096375, 0.05824844539165497, 0.03935602307319641, 0.026211800053715706, -0.0480932891368866, 0.00003429835123824887, -0.0043470775708556175, -0.09603329002857208, 0.0030513370875269175, 0.0121957678347826, 0.006883471738547087, -0.05027760565280914, 0.05338163301348686, 0.020099544897675514, -0.019342700019478798, 0.041042160242795944, 0.09327415376901627, 0.01698593609035015, 0.0407739132642746, 0.026748299598693848, 0.003202227409929037, 0.00643798615783453, 0.06514628976583481, 0.013364569284021854, 0.009580336511135101, 0.027706332504749298, -0.015510564669966698, -0.06422657519578934, -0.017991872504353523, 0.020712686702609062, -0.047365181148052216, 0.009508484043180943, 0.04905132204294205, 0.04318815469741821, -0.044874295592308044, -0.0353706032037735, 0.009427051059901714, 0.028319474309682846, 0.03322460502386093, -0.018375085666775703, -0.028319474309682846, -0.04138705134391785, 0.013498693704605103, -0.023490983992815018, 0.016870971769094467, -0.005523063708096743, -0.0203869566321373, 0.019160673022270203, -0.016909293830394745, 0.019591787829995155, -0.027188993990421295, -0.040658947080373764, 0.001083775539882481, -0.013699880801141262, -0.0011113190557807684, -0.0253495704382658, -0.012243669480085373, -0.015702171251177788, 0.019486404955387115, 0.0269207451492548, 0.018317602574825287, 0.01730208657681942, 0.06296197324991226, -0.09243108332157135, -0.012761007994413376, 0.013354988768696785, 0.04395458474755287, -0.005748201627284288, -0.03289887681603432, 0.04862978681921959, -0.04541079327464104, 0.0040692477487027645, 0.008411535061895847, -0.04376297816634178, -0.02807038463652134, 0.027821296826004982, 0.03630947321653366, -0.00022184466070029885, 0.01937144063413143, 0.06073933094739914, 0.024928035214543343, 0.008722896687686443, -0.017905648797750473, 0.06541453301906586, -0.01947682350873947, 0.02881765179336071, 0.03456585481762886, 0.0710860937833786, 0.012569401413202286, -0.01649734005331993, 0.04560239985585213, 0.04725021868944168, -0.006394874304533005, 0.044299475848674774, -0.029277507215738297, -0.09572672098875046, 0.029718203470110893, -0.04035237804055214, -0.021402470767498016, -0.008243879303336143, -0.039087772369384766, 0.0027567418292164803, 0.027572207152843475, -0.02419992908835411, 0.0564473420381546, 0.0017232629470527172, 0.044261153787374496, 0.03560052812099457, 0.03973923623561859, -0.0040692477487027645, -0.07035799324512482, 0.036405276507139206, 0.022053934633731842, -0.007300216238945723, 0.0224754698574543, 0.041233766824007034, -0.0615057609975338, 0.046560436487197876, 0.014859101735055447, -0.017043419182300568, 0.01977381482720375, 0.007199622690677643, -0.009336037561297417, 0.020616883412003517, -0.002320836530998349, -0.004217742942273617, -0.01621950976550579, 0.00873726699501276, -0.03696093708276749, -0.002850149990990758, -0.027591368183493614, -0.021440792828798294, -0.008464227430522442, -0.03305216133594513, -0.03395271301269531, -0.06261707842350006, 0.08507338911294937, 0.04748014733195305, -0.03766988217830658, 0.012646043673157692, -0.007031966932117939, -0.0315384678542614, 0.032573144882917404, -0.03036966547369957, 0.05410974100232124, -0.04069726914167404, 0.009925228543579578, -0.016142867505550385, -0.04464436694979668, -0.022130576893687248, 0.05230863764882088, -0.07284887880086899, -0.026039354503154755, -0.025483693927526474, 0.01307715941220522, 0.004454856272786856, -0.023682590574026108, -0.047748398035764694, -0.025502854958176613, 0.029315829277038574, -0.05092906951904297, -0.034470051527023315, 0.018039774149656296, -0.004730291198939085, 0.04119544476270676, -0.019850457087159157, 0.04514254629611969, -0.02862604521214962, 0.03931770101189613, -0.082237608730793, -0.022034773603081703, 0.010739557445049286, 0.0031878568697720766, 0.015654269605875015, -0.0956500768661499, -0.06687074899673462, 0.05046921223402023, 0.07346201688051224, -0.005724250804632902, -0.007424760609865189, -0.0472118966281414, -0.07522480189800262, -0.0035614899825304747, 0.024544822052121162, 0.019716331735253334, 0.017723621800541878, 0.03169175237417221, -0.005135060288012028, -0.0215174350887537, 0.009656978771090508, -0.02128750830888748, -0.04280494153499603, -0.0008191187516786158, 0.02191980928182602, -0.06989813596010208, -0.014178898185491562, 0.027936261147260666, -0.07066456228494644, 0.05587252229452133, -0.02462146431207657, 0.014150156639516354, 0.0033531177323311567, 0.06257876008749008, 0.03402935341000557, -0.025253767147660255, 0.05223199352622032, 0.029258348047733307, -0.028779329732060432, -0.046790361404418945, 0.02172820270061493, -0.021268347278237343, -0.019907938316464424, 0.03778484836220741, -0.0028525451198220253, 0.011180252768099308, -0.01872955821454525, -0.009594706818461418, 0.056217413395643234, 0.014571691863238811, 0.050622496753931046, 0.05863165855407715, 0.03684597462415695, -0.06936163455247879, 0.011026967316865921, 0.00038740484160371125, -0.06073933094739914, -0.03473829850554466, 0.03330124914646149, -0.00754451472312212, -0.019189413636922836, -0.036194510757923126, -0.020310312509536743, 0.011716751381754875, 0.0016430276446044445, 0.029852328822016716, 0.011362278833985329, 0.03462333604693413, -0.06775213778018951, 0.051427245140075684, 0.05135060474276543, -0.035064030438661575, -0.012693945318460464, -0.0005622460157610476, 0.03772736340761185, -0.008387584239244461, -0.041003838181495667, 0.012320312671363354, 0.059474729001522064, -0.023778395727276802, -0.07361530512571335, -0.05556594952940941, -0.09212451428174973, 0.001325679011642933, 0.038148898631334305, -0.03261146321892738, 0.011218573898077011, 0.014753717929124832, 0.03019721992313862, 0.0353706032037735, -0.031040290370583534, -0.013192122802138329, 0.017886487767100334, 0.11596038937568665, 0.002816618885844946, -0.09679971635341644, -0.026288442313671112, 0.013163382187485695, -0.008900132030248642, -0.006778087932616472, 0.038915324956178665, -0.05637069791555405, -0.0020968960598111153, 0.01568301022052765, -0.035811297595500946, -0.0487830713391304, -0.02575194463133812, 0.011937099508941174, -0.006002080626785755, 0.026192639023065567, 0.055029451847076416, -0.01917983405292034, -0.012119125574827194, 0.05740537494421005, -0.07783064991235733, -0.02075100876390934, -0.007951679639518261, -0.01135269831866026, 0.006145785562694073, 0.001420284854248166, 0.010902422480285168, 0.06303860992193222, 0.027591368183493614, 0.035983745008707047, 0.028587723150849342, -0.011735912412405014, -0.0315384678542614, -0.0016430276446044445, -0.02153659611940384, 0.006974484771490097, -0.031078610569238663, 0.04820825159549713, -0.012272411026060581, -0.03289887681603432, 0.005288345739245415, -0.03148098662495613, 0.000980188138782978, -0.04744182527065277, -0.012818490155041218, 0.03174923360347748, 0.0003580650663934648, 0.0030633124988526106, 0.003597416216507554, -0.05671559274196625, 0.017235025763511658, 0.05008599907159805, 0.005853585433214903, 0.0034968226682394743, 0.02596271224319935, -0.001046651741489768, -0.05625573545694351, -0.011285636574029922, -0.004162656143307686, -0.00463448790833354, 0.014878262765705585, 0.04847650229930878, 0.019486404955387115, -0.0010544357355684042, 0.005800893530249596, 0.013584917411208153, 0.020885134115815163, -0.0005598508869297802, 0.06261707842350006, -0.008138495497405529, 0.04905132204294205, -0.014360924251377583, 0.024487338960170746, 0.05027760565280914, 0.06434153765439987, -0.02383587695658207, -0.0407739132642746, 0.011218573898077011, -0.03077203966677189, -0.01468665525317192, 0.030503790825605392, 0.0395476296544075, -0.008694155141711235, -0.042919907718896866, 0.0000334376200044062, 0.003513588337227702, 0.0815478265285492, -0.01017431728541851, 0.022417986765503883, 0.028951777145266533, 0.0027902729343622923, 0.042958229780197144, -0.014437566511332989, -0.019850457087159157, 0.015117770992219448, -0.09986542910337448, -0.004790168255567551, 0.0009777931263670325, 0.04491261765360832, 0.03054211288690567, -0.0056092869490385056, -0.0021160568576306105, 0.011678430251777172, -0.03038882650434971, -0.05165717378258705, -0.023529306054115295, 0.006596061401069164, -0.0461772195994854, 0.05204038694500923, 0.017886487767100334, 0.053151704370975494, 0.052730172872543335, 0.0008736069430597126, 0.024698106572031975, 0.0010819792514666915, -0.04364801198244095, -0.025828586891293526, -0.024334054440259933, 0.025407051667571068, 0.028855973854660988, -0.001337654422968626, 0.04801664501428604, -0.027629690244793892, -0.01644943840801716, -0.03512151166796684, 0.013316667638719082, -0.0487830713391304, -0.03096364624798298, 0.01095032412558794, -0.003959074150770903, -0.06085429713129997, 0.08637630939483643, 0.005551804788410664, -0.038532111793756485, -0.02634592540562153, -0.021019257605075836, -0.01488784234970808, 0.04165530204772949, 0.05054585635662079, 0.029239187017083168, 0.007424760609865189, -0.05299841985106468, 0.03243901953101158, -0.019486404955387115, -0.05207870900630951, -0.01679432950913906, -0.022628754377365112, -0.07760072499513626, 0.011716751381754875, 0.018614593893289566, -0.002007080474868417, 0.09166465699672699, 0.022973647341132164, -0.01325918547809124, 0.04786336049437523, 0.008971985429525375, 0.01573091186583042, -0.08039817959070206, 0.018806200474500656, -0.009819844737648964, 0.005317086819559336, -0.02939247153699398, -0.007558885496109724, 0.05840172991156578, -0.03368446230888367, 0.01649734005331993, -0.017148802056908607, 0.03939434140920639, -0.04859146475791931, 0.004531498998403549, 0.00653857970610261, 0.02841527760028839, 0.016085384413599968, 0.03349285572767258, -0.078060582280159, -0.04498925805091858, 0.002446578349918127, -0.03376110643148422, 0.03713338449597359, -0.03128938004374504, 0.007678639609366655, 0.0388578437268734, -0.015386019833385944, 0.052960097789764404, 0.04276662319898605, -0.059244800359010696, 0.012713106349110603, -0.02730395831167698, -0.012818490155041218, -0.027572207152843475, 0.0020454018376767635, -0.01843256689608097, 0.04587065055966377, 0.006572110578417778, 0.008210347965359688, 0.06346014887094498, 0.007592416368424892, 0.012626883573830128, -0.04223012179136276, -0.00662959273904562, -0.02920086495578289, 0.043341442942619324, 0.0392027348279953, -0.017829006537795067, -0.020789330825209618, 0.0016334473621100187, 0.03835966810584068, -0.01651649922132492, 0.011074868962168694, 0.015405180864036083, 0.0461772195994854, -0.00013607071014121175, -0.024678945541381836, 0.01632489264011383, 0.01775236241519451, -0.014150156639516354, -0.033147964626550674, 0.012962195090949535, 0.0230886097997427, -0.0010753927053883672, 0.03439340740442276, 0.04709693416953087, -0.09641650319099426, -0.017589498311281204, 0.012052062898874283, -0.01095032412558794, 0.011649688705801964, 0.04138705134391785, -0.006739766802638769, -0.07453501969575882, -0.07173755764961243, 0.019946260377764702, -0.027016548439860344, 0.09105151891708374, -0.02477475069463253, 0.0016250645276159048, 0.022762879729270935, -0.033147964626550674, 0.00990606751292944, -0.03531311824917793, -0.003331562038511038, -0.04422283172607422, 0.0012143076164647937, 0.03548556566238403, 0.05997290462255478, 0.026805780827999115, -0.019946260377764702, 0.06920834630727768, -0.034853264689445496, -0.004373423755168915, 0.0269207451492548, -0.0009574348805472255, -0.02115338295698166, -0.03577297553420067, 0.021019257605075836, 0.042958229780197144, -0.011496403254568577, 0.05372652783989906, -0.016842231154441833, -0.07468830049037933, -0.032017484307289124, 0.023490983992815018, -0.04610057920217514, -0.03337789326906204, -0.03874288126826286, -0.04188523069024086, -0.03634779527783394, 0.056409019976854324, -0.01095990464091301, 0.05786523222923279, -0.004198582377284765, 0.04452940449118614, 0.020406115800142288, -0.0022106627002358437, 0.025713622570037842, -0.09258437156677246, 0.049089644104242325, 0.03924105688929558, 0.02841527760028839, 0.002562739886343479, 0.010739557445049286, -0.008861810900270939, -0.004184212069958448, -0.006222428288310766, -0.005867956206202507, 0.0038393198046833277, 0.0407739132642746, -0.006078723352402449, -0.0487830713391304, 0.01689971424639225, 0.033741943538188934, 0.008967194706201553, -0.030657077208161354, -0.027572207152843475, -0.02015702798962593, 0.023855037987232208, -0.017608657479286194, 0.07269559055566788, 0.021479114890098572, -0.03033134527504444, 0.0029603238217532635 ]
20,983
argufy.parser
_get_excludes
Combine class excludes with instance.
@staticmethod def _get_excludes(exclude_prefixes: Tuple[str, ...] = tuple()) -> tuple: """Combine class excludes with instance.""" if exclude_prefixes != (): return tuple(exclude_prefixes) + Parser.exclude_prefixes return Parser.exclude_prefixes
(exclude_prefixes: Tuple[str, ...] = ()) -> tuple
[ 0.02664767950773239, -0.04322491213679314, -0.014768807217478752, -0.000781213166192174, -0.07524468004703522, -0.028225619345903397, 0.0033087979536503553, 0.00428836140781641, 0.049891263246536255, -0.022215263918042183, 0.022179804742336273, -0.003100474365055561, -0.005961598362773657, -0.007446457166224718, -0.007836509495973587, -0.010442770086228848, -0.019786300137639046, 0.03287079185247421, 0.020105434581637383, -0.009494232945144176, -0.024005960673093796, 0.015424804762005806, 0.005026358645409346, 0.057231344282627106, -0.005203655455261469, 0.02671859785914421, -0.003248960245400667, -0.01116968598216772, -0.01616058498620987, -0.020672783255577087, -0.013660702854394913, -0.04159378260374069, -0.007388835772871971, 0.028704319149255753, 0.01718004047870636, -0.03779963403940201, -0.003002961166203022, 0.1228310838341713, -0.07673396915197372, 0.01171044073998928, 0.04194837436079979, -0.08191102743148804, 0.01824381947517395, -0.027410054579377174, 0.012526004575192928, -0.017490310594439507, -0.002951988484710455, -0.03522883355617523, -0.033845920115709305, 0.0009734691702760756, 0.09545648843050003, 0.04733819141983986, 0.0012288871221244335, 0.018633872270584106, -0.032853059470653534, 0.02682497538626194, 0.022020237520337105, 0.08467685431241989, 0.003944849595427513, 0.07595386356115341, -0.022995369508862495, 0.025052009150385857, 0.03349132835865021, -0.024094607681035995, -0.003266689833253622, 0.006954459007829428, -0.09659118950366974, -0.00512830400839448, -0.00910418014973402, 0.07680489122867584, -0.014290106482803822, -0.05981987342238426, -0.0028633400797843933, 0.02037137933075428, 0.05219611898064613, -0.04201929643750191, -0.03147014603018761, 0.004527711775153875, 0.02148834802210331, -0.02783556655049324, -0.04847289249300957, -0.007202674634754658, -0.01708252727985382, 0.041168272495269775, 0.08538604527711868, -0.017898092046380043, 0.00901110004633665, -0.0408845953643322, 0.00429501011967659, 0.00042939020204357803, -0.08418042957782745, 0.024431472644209862, -0.029431235045194626, 0.041381027549505234, -0.006896837614476681, 0.016355611383914948, -0.014502862468361855, -0.03251619637012482, -0.029661720618605614, -0.010318662039935589, 0.023740015923976898, -0.004645171109586954, -0.04354404658079147, -0.035033807158470154, 0.05396908521652222, -0.04708997905254364, -0.034732405096292496, -0.026346275582909584, 0.02572573721408844, 0.010646660812199116, -0.009281476959586143, -0.054181840270757675, -0.02365136705338955, 0.054040003567934036, 0.0059350039809942245, -0.0704222097992897, -0.016710205003619194, 0.018704790621995926, 0.023988230153918266, -0.04804737865924835, 0.02569027803838253, 0.061699219048023224, -0.07354263216257095, 0.08198194950819016, 0.02485698275268078, -0.014157134108245373, 0.025052009150385857, 0.027356864884495735, 0.04542338848114014, -0.019821759313344955, 0.051912445574998856, 0.018474305048584938, -0.058366041630506516, -0.07290436327457428, 0.015531182289123535, 0.047480031847953796, 0.022179804742336273, 0.036842234432697296, -0.01835019886493683, 0.0425511859357357, 0.005460735410451889, -0.003993606194853783, 0.03953714296221733, 0.014919509179890156, -0.08793911337852478, 0.004423550330102444, -0.030814150348305702, 0.05981987342238426, 0.00030306639382615685, 0.01598328910768032, -0.014290106482803822, -0.010194554924964905, -0.022853532806038857, 0.030299989506602287, -0.05450097471475601, -0.00810245517641306, -0.02046002820134163, 0.02462649717926979, 0.018421117216348648, -0.0799253061413765, -0.009343530982732773, -0.020123165100812912, -0.018740251660346985, -0.0427284799516201, 0.03228571265935898, -0.0034883106127381325, 0.03189565986394882, -0.002553071128204465, 0.02047775685787201, -0.008488074876368046, -0.017765119671821594, -0.0014228052459657192, -0.02772918902337551, 0.036913152784109116, -0.032640304416418076, 0.05755047872662544, -0.030370907858014107, 0.04737365245819092, 0.007641483563929796, 0.021683374419808388, 0.04740910977125168, -0.005708950571715832, -0.018004469573497772, -0.014644699171185493, 0.11829229444265366, 0.028367456048727036, 0.04698359966278076, -0.013784810900688171, -0.02361590787768364, 0.007251431234180927, 0.0005122209549881518, -0.03228571265935898, 0.003348689526319504, 0.04843743145465851, -0.002502098213881254, 0.00672397343441844, -0.01611626148223877, 0.05148693174123764, -0.03533521294593811, 0.052905306220054626, -0.035991210490465164, -0.010167960077524185, -0.01025660801678896, -0.010628931224346161, 0.020655054599046707, 0.011674981564283371, 0.026452653110027313, -0.05382724851369858, -0.04829559475183487, -0.0020710460375994444, 0.02590303309261799, -0.014228052459657192, 0.02026500180363655, -0.0024666390381753445, 0.03099144622683525, -0.013013570569455624, 0.09105953574180603, 0.029289398342370987, -0.035033807158470154, 0.020743701606988907, 0.03556569665670395, -0.026346275582909584, 0.013119948096573353, 0.0325339250266552, 0.02787102572619915, 0.0013330488000065088, -0.02244574949145317, -0.025193847715854645, -0.011967520229518414, -0.028119241818785667, 0.05233795568346977, -0.02026500180363655, -0.0011269415263086557, 0.0002964177692774683, 0.011151956394314766, 0.007827645167708397, 0.02788875624537468, -0.027090920135378838, 0.03659401834011078, -0.016940690577030182, -0.010779633186757565, 0.00958288088440895, -0.011932061053812504, 0.04857926815748215, 0.050777748227119446, -0.00614775950089097, 0.005677923560142517, -0.012082763016223907, 0.04648716747760773, 0.050990503281354904, 0.005997057538479567, 0.036913152784109116, 0.020779162645339966, 0.006728406064212322, 0.009733583778142929, 0.012277789413928986, -0.07843601703643799, 0.030796419829130173, 0.006236407905817032, -0.05060045048594475, -0.0031935549341142178, -0.023899581283330917, 0.028722049668431282, -0.03414732590317726, 0.007136188447475433, 0.028562482446432114, 0.04687722027301788, -0.03680677339434624, -0.07180512696504593, 0.03003404475748539, 0.04155832529067993, 0.029395775869488716, -0.03175382316112518, 0.044607825577259064, -0.031647443771362305, 0.019591273739933968, 0.013102218508720398, -0.027250487357378006, 0.012100493535399437, -0.014210322871804237, 0.01703820377588272, 0.01804879494011402, 0.0010986848501488566, -0.009848826564848423, 0.08219470828771591, 0.0011679413728415966, 0.000545464048627764, 0.03687769174575806, 0.011391306295990944, 0.005872949957847595, 0.014884050004184246, -0.039288926869630814, 0.07694672793149948, -0.044324152171611786, 0.07240793108940125, -0.0172332301735878, 0.012809679843485355, -0.0010211176704615355, 0.02772918902337551, -0.009148504585027695, -0.00749964639544487, 0.009848826564848423, 0.04081367701292038, 0.016683610156178474, 0.009387855418026447, 0.01719777099788189, 0.003093825653195381, 0.020655054599046707, 0.035796184092760086, 0.011258333921432495, -0.046699926257133484, -0.010362986475229263, 0.009246017783880234, -0.016710205003619194, -0.009556286968290806, 0.00670181168243289, -0.018580684438347816, 0.04283485934138298, -0.0203536506742239, 0.0388634167611599, -0.02464422769844532, 0.005385384429246187, -0.003466148627921939, 0.02248120866715908, -0.0051947906613349915, 0.008909154683351517, -0.06790459901094437, 0.00795618537813425, 0.008767317049205303, -0.047834623605012894, -0.06978394091129303, -0.043508585542440414, -0.05138055607676506, 0.03418278321623802, 0.021736564114689827, 0.014272376894950867, 0.06627347320318222, -0.021027376875281334, 0.03123966045677662, -0.0056867883540689945, 0.03216160461306572, -0.030353179201483727, -0.0689329206943512, 0.05567113310098648, -0.01286286860704422, -0.015655290335416794, -0.060564517974853516, 0.03354451805353165, 0.028083782643079758, 0.01618717983365059, 0.05028131604194641, -0.03677131608128548, 0.019874949008226395, 0.03843790292739868, 0.11155502498149872, -0.023810934275388718, -0.008394993841648102, 0.009618340991437435, 0.031523335725069046, 0.02895253524184227, 0.040210869163274765, -0.02264077588915825, 0.020637324079871178, 0.029555343091487885, 0.05925252288579941, -0.01587691158056259, 0.014689023606479168, -0.01449399720877409, -0.0493239164352417, -0.06879108399152756, -0.055919349193573, -0.0009612800204195082, 0.0019469383405521512, -0.10105906426906586, 0.013297244906425476, -0.0075705647468566895, -0.014715617522597313, 0.014768807217478752, -0.04421777278184891, 0.0036257156170904636, -0.050813205540180206, 0.01187887229025364, 0.010061582550406456, 0.02466195821762085, 0.006316191516816616, 0.012065033428370953, 0.014573780819773674, 0.04900478199124336, 0.04145194590091705, 0.07758499681949615, 0.04368588328361511, -0.007823213003575802, -0.057302262634038925, -0.03088506869971752, -0.06279845535755157, 0.0020067759323865175, -0.07744315266609192, -0.023296773433685303, 0.026470383629202843, -0.01606307178735733, 0.016355611383914948, -0.08496053516864777, 0.018616143614053726, 0.05691220983862877, -0.013164272531867027, -0.004738251678645611, 0.025388874113559723, 0.014272376894950867, 0.028615672141313553, -0.016346747055649757, -0.04067184031009674, -0.077017642557621, 0.024147797375917435, -0.005048520863056183, 0.024076879024505615, -0.01456491556018591, 0.037019532173871994, 0.04744457080960274, 0.011426766403019428, -0.003408527234569192, -0.002235045190900564, -0.06333034485578537, 0.07254976779222488, -0.010939200408756733, 0.027073191478848457, -0.013696162961423397, -0.022303912788629532, -0.023810934275388718, -0.035920292139053345, 0.01228665467351675, -0.020637324079871178, -0.018031064420938492, -0.04751548916101456, -0.06896837800741196, 0.054217301309108734, -0.016648150980472565, 0.008820505812764168, -0.02345634065568447, 0.01598328910768032, 0.029218479990959167, -0.02136423997581005, 0.03840244561433792, -0.011497684754431248, 0.02691362425684929, 0.031434688717126846, -0.05698312819004059, -0.09212331473827362, 0.053118061274290085, 0.07496100664138794, -0.05864971503615379, -0.04705451801419258, 0.011072172783315182, 0.02682497538626194, 0.008093589916825294, 0.011355847120285034, -0.02797740325331688, 0.00960061140358448, -0.02792421542108059, -0.02996312640607357, -0.028119241818785667, 0.031718362122774124, -0.017641011625528336, -0.000580092309974134, 0.024183256551623344, -0.022782612591981888, 0.055174700915813446, 0.04684176295995712, -0.046806301921606064, -0.06641530990600586, -0.03524656593799591, 0.030388638377189636, -0.05006856098771095, 0.0014892914332449436, -0.04790554195642471, -0.00585522036999464, 0.029573073610663414, 0.0029231777880340815, 0.0029985287692397833, 0.01493723876774311, -0.02771145850419998, 0.0037963634822517633, 0.00963607057929039, -0.02990993671119213, 0.01610739715397358, -0.019626734778285027, -0.011426766403019428, 0.02459103800356388, -0.03416505455970764, -0.0044989013113081455, -0.026204437017440796, -0.0051947906613349915, 0.01703820377588272, -0.005819761194288731, -0.04365042224526405, 0.016940690577030182, 0.012676707468926907, -0.004937710240483284, 0.02019408345222473, 0.025247035548090935, -0.024130066856741905, 0.019662193953990936, -0.05755047872662544, 0.01171930506825447, -0.0047692786902189255, 0.030406367033720016, -0.028633400797843933, -0.05237341672182083, 0.03214387223124504, -0.020548677071928978, 0.01602761261165142, -0.03879249840974808, 0.01603647693991661, -0.006728406064212322, 0.05223158001899719, 0.03459056839346886, -0.024076879024505615, -0.031665172427892685, -0.006706243846565485, 0.02803059294819832, 0.043295830488204956, -0.005704518407583237, 0.06567066162824631, -0.0029675019904971123, -0.02797740325331688, 0.005580410361289978, 0.00695889163762331, -0.027321405708789825, -0.003769769100472331, -0.005292303394526243, -0.02345634065568447, 0.006227543111890554, -0.07311712205410004, -0.026417193934321404, 0.006143327336758375, -0.00904655922204256, 0.025264766067266464, 0.008479209616780281, 0.023952770978212357, 0.03212614357471466, 0.052940767258405685, 0.06386223435401917, 0.006981053855270147, 0.042373888194561005, -0.0025043145287781954, -0.025956222787499428, 0.05914614722132683, -0.0799253061413765, 0.07201787829399109, -0.017552362754940987, 0.02366909570991993, 0.010043852962553501, -0.008253157138824463, -0.0038672820664942265, -0.0266831386834383, 0.07212425768375397, -0.05347265675663948, -0.05382724851369858, 0.022037968039512634, -0.011533143930137157, 0.05042315274477005, -0.016497448086738586, -0.03395229950547218, -0.033775001764297485, 0.001362967654131353, -0.0766630470752716, -0.01725095883011818, 0.010336391627788544, 0.030654583126306534, -0.0363103449344635, 0.028101511299610138, -0.03755142167210579, -0.03865065798163414, -0.019733112305402756, 0.02053094655275345, -0.01612512581050396, 0.0430830754339695, 0.01930760033428669, 0.009006666950881481, 0.025069739669561386, -0.08808095008134842, 0.03430689126253128, 0.045742522925138474, -0.019626734778285027, -0.06542244553565979, -0.002266072202473879, -0.047586407512426376, 0.02134651131927967, -0.03322538360953331, 0.059713494032621384, -0.0009551854454912245, 0.0560966432094574, 0.06205381080508232, 0.04482058063149452, -0.0016688043251633644, -0.010230014100670815, -0.004088902845978737, -0.019750840961933136, -0.00430830754339695, -0.02884615771472454, -0.013492271304130554, -0.0011513198260217905, 0.04946575313806534, 0.06776276230812073, 0.011479955166578293, 0.056167565286159515, -0.03719682618975639, -0.002015640726312995, -0.05045861378312111, -0.04925299435853958, -0.023190395906567574, 0.00559814041480422, -0.003120420267805457, 0.02040683850646019, 0.0008238751324824989, 0.015185453929007053, -0.014352159574627876, -0.053153522312641144, 0.04209021478891373, -0.03857973963022232, 0.024449201300740242, -0.05042315274477005, 0.006644190289080143, -0.01614285632967949, 0.040210869163274765, -0.05549383535981178, -0.020832350477576256, 0.013962107710540295, -0.019130302593111992, 0.0224634800106287, -0.011533143930137157, 0.021683374419808388, -0.033863652497529984, 0.0766630470752716, -0.08269113302230835, -0.04708997905254364, -0.010921470820903778, 0.02260531671345234, -0.033721812069416046, -0.0386861190199852, -0.03306581452488899, -0.029643991962075233, -0.031647443771362305, -0.0410618931055069, 0.03822514787316322, -0.07744315266609192, -0.01918349228799343, -0.024059148505330086, -0.026222167536616325, -0.006254137493669987, -0.03769325837492943, 0.002626206027343869, 0.038047850131988525, -0.004064524546265602, 0.020832350477576256, -0.08566971868276596, 0.019023925065994263, -0.043295830488204956, 0.04205475375056267, 0.03765779733657837, -0.0386861190199852, 0.010903741233050823, -0.005970463156700134, 0.0025929627008736134, 0.014884050004184246, -0.008204400539398193, 0.022357100620865822, -0.02476833574473858, 0.012854003347456455, 0.102690190076828, -0.042444806545972824, 0.01187887229025364, 0.04794100299477577, -0.009281476959586143, -0.01829700917005539, -0.09453454613685608, -0.05233795568346977, 0.0007967266137711704, -0.024165526032447815, -0.005943868774920702, -0.05499740689992905, 0.012880598194897175, -0.015167724341154099, -0.008669803850352764, -0.0388634167611599, -0.0025242604315280914, 0.02996312640607357, -0.025122929364442825, -0.024147797375917435, 0.10169733315706253, -0.031700633466243744, -0.024218715727329254, -0.014148268848657608, 0.025956222787499428, 0.04177108034491539, 0.05017493665218353, 0.007255863398313522, -0.00964493490755558, -0.044536907225847244, 0.018882088363170624, -0.05173514783382416, -0.0161783155053854, -0.03535294160246849, -0.060493599623441696, 0.010956929996609688, 0.011072172783315182, 0.03638126328587532, 0.03843790292739868, -0.02661222033202648, -0.02352725900709629, 0.04400501772761345, -0.024307364597916603, 0.033899109810590744, 0.013970972038805485, -0.03439554199576378, 0.030636852607131004, -0.0535435751080513, 0.07258523255586624, -0.002377990633249283, 0.01007931213825941, 0.02124013379216194, -0.0017164527671411633, 0.019839489832520485, 0.015433669090270996, 0.030512744560837746, -0.02242802083492279, 0.018988465890288353, -0.025300225242972374, -0.07340079545974731, -0.026168977841734886, -0.0036833370104432106, 0.020690513774752617, 0.03512245789170265, -0.03214387223124504, 0.03953714296221733, 0.03762234002351761, -0.005203655455261469, -0.02141742967069149, -0.007871968671679497, -0.05545837804675102, 0.0366649366915226, -0.01181681826710701, -0.011018984019756317, 0.015735073015093803, 0.06868470460176468, -0.08914472907781601, -0.017800578847527504, 0.07843601703643799, 0.04400501772761345, -0.014334429986774921, -0.011479955166578293, 0.0447496622800827, 0.03407640755176544, 0.042302969843149185, -0.03409413620829582, 0.023846393451094627, -0.021186944097280502, 0.048614729195833206, -0.05974895507097244, -0.04921753704547882, -0.056344859302043915, -0.011905467137694359, 0.04801192134618759, 0.010558012872934341, 0.0046185762621462345, 0.059536200016736984, 0.027144109830260277, 0.013004705309867859, -0.0048313322477042675 ]
21,006
argparse
add_argument
add_argument(dest, ..., name=value, ...) add_argument(option_string, option_string, ..., name=value, ...)
def add_argument(self, *args, **kwargs): """ add_argument(dest, ..., name=value, ...) add_argument(option_string, option_string, ..., name=value, ...) """ # if no positional args are supplied or only one is supplied and # it doesn't look like an option string, parse a positional # argument chars = self.prefix_chars if not args or len(args) == 1 and args[0][0] not in chars: if args and 'dest' in kwargs: raise ValueError('dest supplied twice for positional argument') kwargs = self._get_positional_kwargs(*args, **kwargs) # otherwise, we're adding an optional argument else: kwargs = self._get_optional_kwargs(*args, **kwargs) # if no default was supplied, use the parser-level default if 'default' not in kwargs: dest = kwargs['dest'] if dest in self._defaults: kwargs['default'] = self._defaults[dest] elif self.argument_default is not None: kwargs['default'] = self.argument_default # create the action object, and add it to the parser action_class = self._pop_action_class(kwargs) if not callable(action_class): raise ValueError('unknown action "%s"' % (action_class,)) action = action_class(**kwargs) # raise an error if the action type is not callable type_func = self._registry_get('type', action.type, action.type) if not callable(type_func): raise ValueError('%r is not callable' % (type_func,)) if type_func is FileType: raise ValueError('%r is a FileType class object, instance of it' ' must be passed' % (type_func,)) # raise an error if the metavar does not match the type if hasattr(self, "_get_formatter"): try: self._get_formatter()._format_args(action, None) except TypeError: raise ValueError("length of metavar tuple does not match nargs") return self._add_action(action)
(self, *args, **kwargs)
[ -0.011627906933426857, 0.027629351243376732, 0.01561162993311882, -0.010753199458122253, 0.0640057772397995, -0.016876153647899628, 0.02840898372232914, 0.08792713284492493, -0.018749168142676353, -0.06913993507623672, 0.029226643964648247, 0.033790335059165955, -0.005086615215986967, 0.03084295243024826, 0.00101672881282866, 0.05849131941795349, 0.034703075885772705, 0.04495236650109291, -0.030329536646604538, 0.060887258499860764, 0.06240848824381828, -0.056551750749349594, 0.012150829657912254, 0.0049297381192445755, 0.017950521782040596, 0.05339519679546356, 0.02108805999159813, -0.020213352516293526, -0.00813383050262928, -0.0183403380215168, 0.005790184251964092, -0.08883987367153168, 0.0037008689250797033, 0.034893229603767395, 0.0013203807175159454, 0.007872369140386581, -0.04362129047513008, 0.05594325810670853, -0.023997412994503975, -0.030747875571250916, 0.051455628126859665, -0.01271178387105465, 0.005148414988070726, -0.01721842959523201, 0.010819753631949425, -0.0018848999170586467, -0.05236836522817612, 0.03297267481684685, -0.04856529086828232, -0.07796306908130646, 0.028370952233672142, -0.03063378296792507, 0.03822091966867447, -0.02464393712580204, -0.0045066457241773605, 0.08754682540893555, 0.052216242998838425, 0.021772613748908043, -0.02274239808320999, 0.049021657556295395, 0.04765255004167557, 0.0376124270260334, 0.08671014755964279, -0.02163950726389885, -0.010591568425297737, -0.03403753787279129, -0.03426571935415268, -0.03936184197664261, -0.013805168680846691, 0.07948430627584457, -0.03211698308587074, -0.035273537039756775, 0.014613321982324123, -0.037365227937698364, 0.06229439750313759, -0.008342999033629894, -0.0527486726641655, 0.025651752948760986, 0.04069292172789574, 0.053357165306806564, -0.0141189219430089, -0.015982430428266525, -0.06290289014577866, -0.0015806537121534348, 0.02650744467973709, 0.010239783674478531, -0.07366559654474258, -0.024777045473456383, -0.0049012149684131145, -0.010819753631949425, -0.03544467315077782, -0.06548897922039032, 0.022095875814557076, 0.005937553476542234, -0.014812983572483063, -0.04103519767522812, -0.039019566029310226, -0.04441993683576584, -0.021011998876929283, 0.016790583729743958, -0.05210215225815773, 0.010895814746618271, 0.06704824417829514, -0.00812432263046503, 0.03723211959004402, -0.005210215225815773, 0.010211260989308357, -0.00277149211615324, -0.05491642653942108, 0.0164958443492651, 0.014603814110159874, -0.06682005524635315, -0.05563901364803314, 0.027705414220690727, -0.039780180901288986, -0.025157352909445763, -0.006954876706004143, -0.011057445779442787, 0.010486983694136143, 0.006227537989616394, 0.01193215325474739, -0.01920553669333458, 0.00686930725350976, 0.01090532261878252, 0.015915876254439354, 0.0032302383333444595, -0.03652855008840561, -0.02297058328986168, 0.009312784299254417, -0.01580178365111351, -0.0004840009205508977, -0.007962691597640514, -0.0489836260676384, -0.02616516686975956, 0.0035630075726658106, -0.00850463006645441, 0.015221814624965191, 0.046549659222364426, -0.03966609016060829, 0.011314152739942074, 0.01334879919886589, -0.00441632280126214, 0.017399076372385025, -0.031299322843551636, -0.08572135120630264, -0.03666165843605995, 0.004387799650430679, 0.04822301119565964, 0.030215444043278694, 0.06039285659790039, -0.02015630714595318, 0.014166460372507572, 0.0035321074537932873, -0.011732491664588451, 0.07488258183002472, 0.0021297228522598743, -0.01419498398900032, -0.006512769032269716, -0.01776987500488758, -0.022114891558885574, -0.016999753192067146, -0.06617353111505508, 0.009712107479572296, -0.013415353372693062, 0.03293464332818985, 0.009897506795823574, 0.024016428738832474, 0.05103728920221329, -0.021031014621257782, 0.05856738239526749, -0.01567818410694599, 0.007763030473142862, 0.04396356642246246, 0.045827075839042664, -0.006712430156767368, 0.05735039710998535, -0.039247751235961914, 0.0033538383431732655, 0.023940367624163628, -0.05738842859864235, 0.021962767466902733, -0.01586833782494068, -0.0067932456731796265, -0.0338854119181633, 0.02877027541399002, -0.03027249127626419, 0.02181064523756504, 0.04951605945825577, 0.011827568523585796, 0.025860922411084175, 0.06621156632900238, -0.022438151761889458, 0.015526060946285725, 0.0112856300547719, -0.07811519503593445, -0.017817413434386253, -0.06035482883453369, -0.027990644797682762, 0.11333168298006058, 0.038315996527671814, -0.047120120376348495, -0.037726521492004395, -0.0005119298002682626, 0.02951187454164028, 0.04951605945825577, 0.012455075979232788, 0.046169351786375046, 0.02972104400396347, -0.10458461195230484, 0.011542337946593761, -0.019718952476978302, -0.052976857870817184, 0.0051198918372392654, 0.02745821326971054, -0.01700926013290882, -0.04031261429190636, 0.010743691585958004, -0.009046568535268307, -0.007235353346914053, 0.04932590574026108, 0.08412405848503113, 0.07225845754146576, 0.027743443846702576, 0.037935689091682434, 0.0469679981470108, -0.035463690757751465, 0.051265474408864975, -0.033219873905181885, -0.005928045604377985, 0.05887162685394287, -0.021791629493236542, -0.018663598224520683, 0.0009127383818849921, 0.031166212633252144, -0.01580178365111351, -0.002399503719061613, 0.052786704152822495, -0.006137215066701174, 0.010087660513818264, -0.023579075932502747, 0.00587099976837635, 0.026089105755090714, -0.006864553317427635, -0.0048631844110786915, -0.013206183910369873, -0.027001844719052315, 0.03742227330803871, 0.01309209130704403, -0.00298541528172791, 0.010971875861287117, 0.059936489909887314, 0.0847325474023819, -0.04160565882921219, 0.005595276597887278, -0.06290289014577866, 0.04719618335366249, -0.026868736371397972, 0.010154214687645435, -0.0008937230450101197, -0.04388750344514847, 0.027401167899370193, 0.02335089072585106, 0.08823137730360031, -0.01062959898263216, -0.07415999472141266, -0.022685352712869644, -0.00460647651925683, -0.07552910596132278, 0.03228812292218208, 0.015744738280773163, 0.02692578360438347, -0.012293444946408272, -0.007734507322311401, 0.02675464376807213, -0.028123751282691956, -0.02785753645002842, 0.01816919818520546, -0.004613607190549374, -0.023388922214508057, -0.0021332884207367897, 0.02068873681128025, -0.016609936952590942, 0.01165642961859703, 0.01816919818520546, -0.04681587219238281, 0.013415353372693062, -0.00006198569462867454, 0.0451805517077446, -0.00856642983853817, 0.031698644161224365, 0.02405446022748947, 0.0789518728852272, -0.009502938017249107, 0.028542090207338333, 0.014936584047973156, 0.04491433501243591, -0.06411987543106079, -0.00696913804858923, 0.017551198601722717, -0.06271273642778397, 0.025917967781424522, -0.0470060296356678, -0.028085721656680107, -0.00409781513735652, -0.02707790583372116, -0.003372853621840477, 0.015031660906970501, -0.004751469008624554, 0.007154537830501795, -0.005600030533969402, 0.03386639803647995, -0.02089790627360344, -0.06130559742450714, -0.029663998633623123, 0.03936184197664261, 0.060088612139225006, 0.02878929115831852, -0.02726805955171585, -0.015259845182299614, 0.019661907106637955, -0.007948430255055428, 0.022343074902892113, -0.03837304562330246, -0.03525451943278313, -0.014860522001981735, 0.031090151518583298, -0.009564737789332867, 0.021962767466902733, 0.02316073700785637, 0.01929110661149025, -0.03238319978117943, 0.014252030290663242, -0.03082393668591976, 0.03877236694097519, -0.03590104356408119, -0.05499248951673508, -0.04495236650109291, -0.0011528076138347387, -0.009098861366510391, 0.0006144345970824361, 0.0395519994199276, 0.06187605857849121, -0.027420183643698692, -0.015963414683938026, 0.041263382881879807, -0.01910095289349556, 0.03479815274477005, -0.01024929154664278, 0.09157808870077133, -0.04803285747766495, -0.006075414828956127, -0.0358249805867672, -0.06602141261100769, -0.06632565706968307, 0.03719409182667732, -0.00009010023495648056, -0.002100011333823204, -0.040578827261924744, 0.027572305873036385, -0.06670596450567245, 0.04556085914373398, -0.014518245123326778, -0.00484416913241148, -0.0027524768374860287, 0.028523074463009834, -0.041833844035863876, 0.0282188281416893, -0.015459506772458553, 0.02386430650949478, -0.036034151911735535, 0.07480651885271072, -0.020574644207954407, 0.021791629493236542, -0.02388332225382328, -0.017674798145890236, -0.0015045922482386231, 0.02335089072585106, -0.0006227538106031716, -0.07819125801324844, -0.07381771504878998, 0.042822644114494324, 0.03614824265241623, -0.05613341182470322, 0.0052957842126488686, -0.00006168858089949936, -0.06552701443433762, 0.001632946077734232, 0.026982828974723816, -0.024758029729127884, 0.018482953310012817, 0.011789537966251373, -0.010924337431788445, 0.04879347234964371, 0.004573199898004532, 0.03084295243024826, -0.05020061135292053, -0.013976306654512882, 0.011047937907278538, -0.08488467335700989, 0.04875544458627701, 0.04966818168759346, -0.0254045519977808, 0.01185609120875597, 0.026203198358416557, 0.007007168605923653, 0.02015630714595318, -0.01420449186116457, 0.028922397643327713, -0.02637433633208275, 0.0395519994199276, 0.02692578360438347, -0.0291886143386364, -0.024396736174821854, -0.012302952818572521, -0.012455075979232788, -0.0006174057489261031, -0.012407537549734116, 0.0055144610814750195, -0.03985624387860298, -0.011257107369601727, 0.01353895291686058, 0.018074121326208115, -0.004221415147185326, 0.06674399226903915, 0.05175987258553505, -0.024700982496142387, -0.03898153454065323, 0.027952613309025764, -0.02749624475836754, -0.020650707185268402, -0.04932590574026108, 0.07092738151550293, -0.0014404152752831578, -0.0022830343805253506, -0.019424214959144592, -0.00846184603869915, -0.003598661394789815, -0.05054289102554321, 0.04270854964852333, 0.05613341182470322, -0.03386639803647995, -0.06138165667653084, 0.004846545867621899, 0.04685390368103981, -0.01903439871966839, -0.0697484239935875, -0.03616726025938988, 0.017380060628056526, 0.019642891362309456, 0.008029245771467686, 0.01856852136552334, 0.022495198994874954, 0.024605905637145042, -0.03008233569562435, -0.024035444483160973, -0.06811310350894928, -0.038277965039014816, 0.022076860070228577, 0.004558938089758158, -0.005210215225815773, 0.027230029925704002, 0.006232291925698519, 0.045218583196401596, -0.04917377978563309, -0.03989427536725998, 0.05514461174607277, 0.020821845158934593, 0.024872122332453728, -0.030728859826922417, -0.004777614958584309, -0.044115688651800156, 0.0025124074891209602, -0.03544467315077782, -0.039057597517967224, -0.006189507432281971, 0.039437904953956604, 0.023845290765166283, -0.01628667674958706, -0.026241229847073555, -0.011371199041604996, 0.04384947568178177, -0.013833691366016865, 0.04639753699302673, 0.030234459787607193, -0.03177470713853836, 0.04270854964852333, 0.06518473476171494, -0.04613132029771805, 0.013814675621688366, 0.0079959686845541, 0.0009638422634452581, -0.029036490246653557, 0.003125653602182865, -0.021962767466902733, 0.05415581166744232, -0.0012086653150618076, -0.00030573172261938453, 0.03795470669865608, -0.004877445753663778, 0.019661907106637955, 0.02089790627360344, -0.0263363067060709, -0.00728764571249485, 0.02557568997144699, -0.03276350721716881, -0.016876153647899628, -0.03742227330803871, 0.020004183053970337, -0.04537070542573929, -0.011247599497437477, -0.05343322828412056, -0.001666222931817174, -0.0030234460718929768, 0.01372910663485527, 0.011494799517095089, -0.012664245441555977, -0.006826522760093212, 0.018872767686843872, -0.006037384271621704, 0.0038149612955749035, -0.014328091405332088, -0.026051076129078865, -0.02800966054201126, -0.04190990328788757, -0.03730818256735802, 0.014489722438156605, -0.05103728920221329, 0.006099184043705463, 0.01931012235581875, -0.03232615068554878, 0.029112551361322403, 0.06244651973247528, 0.012369506992399693, -0.010810245759785175, -0.01756070740520954, 0.060126643627882004, -0.00441632280126214, 0.055220674723386765, 0.009773907251656055, 0.006151476409286261, 0.033562153577804565, 0.0751487985253334, -0.049211811274290085, 0.015392952598631382, -0.05061895027756691, -0.028637167066335678, -0.020593659952282906, -0.043012797832489014, 0.07731655240058899, -0.018796706572175026, -0.07016676664352417, 0.050352733582258224, -0.029226643964648247, 0.12664245069026947, 0.03690885752439499, 0.044115688651800156, 0.06621156632900238, 0.0028071459382772446, 0.012065260671079159, -0.009027553722262383, -0.013624521903693676, -0.025651752948760986, -0.04461009055376053, 0.01147578377276659, -0.03618627414107323, 0.020403506234288216, 0.02599402889609337, -0.033980488777160645, -0.03048165887594223, -0.011618399061262608, -0.020631691440939903, -0.03536861389875412, -0.05586719512939453, -0.04171974956989288, -0.036984920501708984, 0.01719941385090351, 0.022647321224212646, 0.007772537879645824, 0.033010706305503845, 0.012987506575882435, -0.012379014864563942, -0.02051759883761406, 0.0014297191519290209, -0.040008366107940674, -0.028351936489343643, 0.056361597031354904, 0.04438190534710884, -0.0015188537072390318, -0.016781076788902283, -0.031907811760902405, -0.01297799963504076, -0.005823461338877678, 0.011009907349944115, -0.06221833452582359, -0.00564281502738595, 0.005647568963468075, 0.03669968992471695, -0.04415372014045715, 0.023255813866853714, -0.021354274824261665, -0.01475593727082014, -0.06670596450567245, -0.05141759663820267, 0.006512769032269716, 0.021601475775241852, 0.023845290765166283, -0.03211698308587074, 0.02217193692922592, -0.038886457681655884, 0.018492460250854492, -0.00041596152004785836, -0.07028085738420486, -0.003147045848891139, 0.033562153577804565, -0.06039285659790039, 0.011951168067753315, 0.009745383635163307, 0.016724029555916786, 0.08237463980913162, 0.03344805911183357, -0.07377968728542328, 0.00021124901832081378, -0.008770845830440521, 0.013862214982509613, -0.024758029729127884, -0.013291752897202969, -0.050352733582258224, 0.05210215225815773, -0.020555630326271057, -0.044876303523778915, -0.012160337530076504, -0.01694270595908165, 0.03909562900662422, -0.05491642653942108, 0.014090399257838726, -0.03580596670508385, 0.0038767613004893064, 0.01251212228089571, -0.01091483049094677, -0.006222784053534269, 0.058985717594623566, -0.03329593688249588, -0.037517350167036057, 0.015316891483962536, -0.02747722901403904, 0.11127802729606628, -0.01666698418557644, -0.03985624387860298, 0.01751316897571087, -0.011171537451446056, 0.061990149319171906, 0.021164121106266975, -0.05065698176622391, 0.006797999609261751, 0.029873168095946312, 0.029759075492620468, 0.008690030314028263, -0.03156553581357002, 0.008941983804106712, -0.014071383513510227, 0.0054859379306435585, -0.011780030094087124, 0.08709045499563217, -0.01954781450331211, 0.0016911806305870414, -0.050352733582258224, -0.012597691267728806, -0.037897657603025436, 0.0035891535226255655, 0.0621422715485096, -0.04305082932114601, -0.08252676576375961, -0.004953507333993912, 0.055410828441381454, 0.010201753117144108, -0.02352202869951725, 0.03803076595067978, 0.01994713768362999, -0.019509783014655113, -0.023845290765166283, -0.051455628126859665, -0.04970621317625046, -0.0047681075520813465, -0.018815722316503525, -0.01624864526093006, 0.006484245881438255, 0.019528798758983612, 0.0014618076384067535, 0.0291695985943079, -0.056703872978687286, 0.030386582016944885, -0.011266614310443401, -0.0366806760430336, 0.008457091636955738, -0.03312479704618454, 0.02314172126352787, -0.02953089028596878, -0.027249043807387352, 0.013624521903693676, -0.003974215127527714, 0.05586719512939453, 0.0197759997099638, 0.020460553467273712, 0.01232196856290102, -0.0035843998193740845, -0.05681796744465828, -0.04982030391693115, 0.019795013591647148, 0.07119359821081161, 0.023369906470179558, 0.006645876448601484, 0.05008652061223984, 0.0002720091142691672, 0.02331285923719406, 0.021525414660573006, -0.03719409182667732, 0.00928426068276167, 0.0328775979578495, -0.04681587219238281, 0.012217383831739426, -0.0035273535177111626, 0.01543098408728838, 0.04856529086828232, -0.022799445316195488, 0.008989522233605385, -0.04350719600915909, -0.056703872978687286, -0.03728916868567467, 0.06115347146987915, -0.06628762930631638, -0.004544676747173071, 0.02593698352575302, 0.041871875524520874, 0.045256610959768295, 0.03616726025938988, -0.021753598004579544, 0.0253855362534523, 0.03464602679014206, 0.056171443313360214, 0.04050276800990105, -0.033219873905181885, 0.04658769071102142, -0.0005086614983156323, -0.01614406146109104, 0.06427199393510818, 0.018758675083518028, 0.035273537039756775, 0.0009341306868009269, -0.02143033780157566, 0.05309095233678818, 0.025271445512771606, -0.0357869528234005, 0.022305045276880264, 0.08671014755964279, -0.0042356764897704124, -0.037897657603025436, 0.033410027623176575, -0.006241799797862768, 0.029131567105650902, -0.035863012075424194, -0.04685390368103981, -0.10131396353244781, 0.011732491664588451, -0.03504535183310509, 0.04415372014045715, 0.045827075839042664, -0.0035321074537932873, 0.02669759839773178 ]
21,008
argufy.parser
add_arguments
Add arguments to parser/subparser. Parameters ---------- obj: Any Verious module, function, or arguments that can be inspected. parser: ArgumentParser, optional Parser/Subparser that arguments will be added. Returns ------- self: Return object itself to allow chaining functions.
def add_arguments( self, obj: Any, parser: Optional[ArgumentParser] = None ) -> 'Parser': """Add arguments to parser/subparser. Parameters ---------- obj: Any Verious module, function, or arguments that can be inspected. parser: ArgumentParser, optional Parser/Subparser that arguments will be added. Returns ------- self: Return object itself to allow chaining functions. """ if not parser: parser = self # prep object for inspection docstring = docparse(obj.__doc__) signature = inspect.signature(obj) # populate subcommand with keyword arguments for arg in signature.parameters: param = signature.parameters[arg] description = self.__get_description(arg, docstring) log.debug("param: %s, %s", param, param.kind) if not param.kind == Parameter.VAR_KEYWORD: log.debug("param annotation: %s", param.annotation) argument = self.__clean_args(Argument(description, param)) name = argument.pop('name') # print(name, argument) parser.add_argument(*name, **argument) # populate options # log.debug("params %s", params) if docstring: for arg in self.__get_keyword_args(signature, docstring): description = self.__get_description(arg, docstring) arguments = self.__clean_args(Argument(docstring=description)) parser.add_argument(f"--{arg.replace('_', '-')}", **arguments) # log.debug("arguments %s", arguments) # TODO for any docstring not collected parse here (args, kwargs) # log.debug('docstring params', docstring.params) return self
(self, obj: Any, parser: Optional[argparse.ArgumentParser] = None) -> argufy.parser.Parser
[ -0.028242778033018112, -0.006344255525618792, -0.0066270604729652405, 0.013518071733415127, 0.03978121653199196, 0.011001108214259148, 0.022850630804896355, 0.03740565478801727, -0.023340826854109764, -0.005302590783685446, -0.019852900877594948, -0.022812923416495323, -0.0232654120773077, -0.008210767060518265, -0.06466804444789886, 0.051055703312158585, 0.032729946076869965, 0.025414729490876198, -0.03580309450626373, 0.03578424081206322, 0.01623299904167652, 0.03284306824207306, 0.015346876345574856, 0.03257911652326584, -0.014206229709088802, 0.027752581983804703, 0.010680596344172955, 0.0218890942633152, -0.02073902264237404, -0.03580309450626373, -0.025301607325673103, -0.05173443257808685, 0.01936270482838154, -0.0070229871198534966, -0.001586063881404698, -0.04766204208135605, 0.0022200180683285, 0.07466048002243042, -0.032277461141347885, 0.025433583185076714, 0.016826888546347618, 0.001981990644708276, 0.04370277747511864, -0.003584551392123103, 0.03042980097234249, -0.006707188207656145, 0.007258657831698656, 0.049057215452194214, -0.06312204152345657, -0.05863486975431442, 0.06606321036815643, -0.040912434458732605, 0.03729253262281418, -0.05297877639532089, -0.01605388894677162, 0.07390633225440979, 0.04849160462617874, 0.06617633253335953, 0.03840489685535431, 0.03231516852974892, -0.01426279079169035, 0.01261309627443552, 0.006688334513455629, -0.02598033845424652, -0.005575968883931637, -0.03838604316115379, -0.05422311648726463, -0.027790289372205734, -0.01367832813411951, 0.025527851656079292, -0.06180228665471077, -0.03725482523441315, 0.02460402250289917, -0.006052023731172085, -0.006330115254968405, -0.037481069564819336, -0.07963784784078598, -0.011085949838161469, 0.021512022241950035, 0.030184704810380936, -0.007772420067340136, 0.013612340204417706, -0.022002216428518295, -0.0014564449666067958, 0.03342753276228905, 0.025603264570236206, -0.0605202354490757, -0.017995815724134445, 0.07541462779045105, 0.002721996745094657, -0.04347653314471245, -0.015582546591758728, 0.009271285496652126, 0.023416241630911827, -0.03318243473768234, -0.021738266572356224, -0.022662095725536346, 0.0052507431246340275, -0.021304631605744362, 0.014630437828600407, -0.07598023861646652, 0.007187956478446722, 0.008729242719709873, 0.028242778033018112, 0.011265059933066368, -0.024547461420297623, 0.006603493355214596, -0.022850630804896355, 0.0348038487136364, 0.008889499120414257, 0.004835962783545256, 0.007598023395985365, -0.0590873584151268, 0.042156774550676346, -0.020475070923566818, -0.0008708032546564937, -0.00224122847430408, -0.02139890007674694, -0.00823433417826891, -0.01575222983956337, -0.012462266720831394, 0.0027997680008411407, -0.009271285496652126, 0.009879316203296185, 0.0035515574272722006, -0.02384987473487854, -0.0013869220856577158, -0.014979230239987373, 0.004279780201613903, -0.05290336161851883, 0.03565226495265961, -0.021700559183955193, -0.03872540965676308, -0.035614557564258575, 0.049585115164518356, -0.039177898317575455, 0.0340874120593071, -0.0037518776953220367, -0.0745096504688263, -0.027432071045041084, 0.0058729141019284725, 0.0047629051841795444, 0.02549014426767826, -0.023435095325112343, -0.0979636013507843, -0.007310505490750074, -0.018655693158507347, 0.005222463048994541, -0.041666582226753235, 0.0042420728132128716, -0.02652709372341633, -0.004564941395074129, 0.056033067405223846, 0.039404142647981644, 0.019683217629790306, -0.03418168053030968, -0.01908932626247406, -0.037085141986608505, 0.0017203961033374071, 0.011745828203856945, 0.012820485979318619, 0.01881594955921173, 0.018721681088209152, -0.005580682307481766, 0.010887986980378628, -0.012207742780447006, 0.018495436757802963, -0.03947955742478371, -0.033484093844890594, 0.07006018608808517, 0.0171662550419569, -0.0010935120517387986, 0.012066340073943138, 0.0660255029797554, -0.010303523391485214, 0.05565599352121353, -0.012537681497633457, 0.04984906688332558, -0.005778645630925894, -0.017364216968417168, 0.013065584003925323, 0.0097190598025918, 0.021549729630351067, -0.042156774550676346, 0.018872510641813278, -0.025829508900642395, 0.03989433869719505, 0.04268467798829079, -0.0194381196051836, -0.038649994879961014, 0.033653777092695236, 0.024415485560894012, 0.0028633989859372377, -0.003810795256868005, -0.02620658278465271, 0.04570126160979271, -0.06010545790195465, 0.0019207162549719214, 0.04679477587342262, 0.03248485177755356, 0.003961624577641487, 0.0021245714742690325, -0.02064475417137146, -0.036858897656202316, 0.027526337653398514, 0.04675706848502159, -0.005081060342490673, 0.07137994468212128, -0.06248101592063904, -0.003952197730541229, 0.055731408298015594, -0.05241316556930542, 0.019032767042517662, 0.009271285496652126, 0.01001129113137722, 0.007202096749097109, 0.005406286101788282, -0.009304279461503029, 0.02388758212327957, 0.00802694447338581, 0.08453979343175888, 0.007065407931804657, 0.005076346918940544, 0.029110046103596687, -0.004708700813353062, -0.024226948618888855, 0.04181741178035736, -0.04668165370821953, 0.021926801651716232, 0.001675618696026504, -0.03395543619990349, -0.004720484372228384, -0.04132721573114395, 0.006183999124914408, -0.0410255566239357, 0.008908352814614773, 0.01949468068778515, 0.022134192287921906, -0.0002854561316780746, -0.05316730961203575, 0.005081060342490673, 0.019475826993584633, -0.01703427918255329, 0.029355142265558243, -0.07503755390644073, 0.024151533842086792, 0.030769167467951775, -0.003692959900945425, 0.04053536057472229, -0.0017227528151124716, 0.026885313913226128, 0.003747164271771908, -0.009620077908039093, 0.033484093844890594, -0.0814477950334549, -0.004746408201754093, -0.011849523521959782, -0.003747164271771908, -0.02296375297009945, -0.04800140857696533, 0.041138678789138794, -0.0006781424744985998, 0.04325028881430626, 0.04573896899819374, -0.03936643525958061, 0.018316326662898064, 0.0514327734708786, -0.0521492138504982, -0.02950597181916237, 0.01966436393558979, 0.050037603825330734, -0.062367893755435944, 0.03687775135040283, 0.05290336161851883, -0.031881533563137054, 0.04392901808023453, -0.00892249308526516, -0.004150161053985357, -0.05365750566124916, 0.021285777911543846, 0.04004516452550888, -0.014743559062480927, 0.03910248354077339, 0.007263371255248785, 0.02296375297009945, 0.0069569991901516914, 0.025508997961878777, 0.0967569649219513, -0.046116042882204056, -0.0033441672567278147, -0.010869133286178112, 0.06391389667987823, 0.02296375297009945, 0.05067862942814827, 0.026640215888619423, 0.07390633225440979, -0.04622916504740715, 0.013687754981219769, -0.0023861657828092575, -0.03947955742478371, 0.013065584003925323, -0.012000352144241333, -0.034407924860715866, 0.009436255320906639, -0.01138760894536972, -0.012245450168848038, 0.04920804500579834, -0.015205473639070988, 0.04453233629465103, -0.04283550754189491, 0.0069475723430514336, 0.046342287212610245, 0.022888338193297386, 0.02816736325621605, -0.02434007078409195, -0.009327846579253674, 0.002354350406676531, -0.045361898839473724, -0.008257901296019554, 0.03989433869719505, -0.017364216968417168, 0.0027691307477653027, 0.008823511190712452, -0.07137994468212128, 0.06485658138990402, 0.05912506580352783, -0.02277521789073944, 0.013489791192114353, 0.033785752952098846, 0.0020691887475550175, -0.00005652414620271884, -0.013470937497913837, -0.00976619403809309, 0.028978070244193077, 0.01730765588581562, -0.056259311735630035, -0.03936643525958061, -0.012594242580235004, -0.02136119268834591, -0.007079548202455044, 0.0611235536634922, 0.0647057518362999, -0.0576544813811779, -0.023642485961318016, 0.019117606803774834, -0.03808438777923584, 0.042910922318696976, -0.03399314358830452, 0.06798628717660904, -0.029883045703172684, -0.026583654806017876, -0.0027620606124401093, -0.06055794283747673, -0.04177970439195633, 0.052262336015701294, -0.0065469322726130486, -0.036142461001873016, 0.014121389016509056, 0.015959620475769043, -0.11975842714309692, -0.01912703365087509, -0.021964509040117264, -0.008517139591276646, -0.018881937488913536, -0.035444874316453934, -0.04196823760867119, 0.0013362528989091516, -0.01299016922712326, 0.027375509962439537, -0.013263546861708164, 0.04449462890625, 0.007635730784386396, 0.055467456579208374, -0.036953166127204895, -0.0025758808478713036, 0.02166285179555416, -0.0019596018828451633, -0.005608962848782539, -0.04619145765900612, -0.0492834597826004, 0.02460402250289917, 0.04837848246097565, 0.04600292071700096, -0.02794111892580986, 0.03453989699482918, -0.054298531264066696, 0.005627816542983055, 0.029826484620571136, 0.0074283406138420105, 0.0026842893566936255, 0.01855199784040451, -0.006311261560767889, -0.0002495163644198328, 0.035256337374448776, -0.014828400686383247, -0.06561072170734406, 0.027752581983804703, 0.010869133286178112, -0.08800886571407318, 0.0018782955594360828, 0.061651457101106644, -0.07507526129484177, 0.04230760410428047, -0.003028368577361107, 0.01645924150943756, 0.0037259538657963276, 0.01181181613355875, 0.03591621667146683, -0.014281644485890865, 0.03293733671307564, -0.029751069843769073, -0.06127438321709633, -0.02509421668946743, 0.005368578713387251, -0.02620658278465271, 0.0008195448899641633, 0.08174945414066315, 0.023284265771508217, -0.01788269355893135, -0.017005998641252518, 0.013480364345014095, 0.006103871390223503, -0.020889852195978165, 0.06938145309686661, 0.03602933883666992, 0.013301254250109196, -0.046870190650224686, -0.04445692151784897, 0.020060289651155472, -0.04837848246097565, -0.048076823353767395, 0.018052376806735992, -0.017015425488352776, -0.03210777789354324, -0.016845742240548134, -0.018391741439700127, 0.0036411124747246504, -0.04570126160979271, 0.04419296979904175, 0.0668550655245781, -0.022303875535726547, -0.05686262622475624, 0.03163643553853035, 0.05422311648726463, -0.053732920438051224, -0.061953116208314896, 0.03061833791434765, 0.018655693158507347, -0.016355546191334724, -0.031391337513923645, 0.09275998920202255, 0.04147804528474808, 0.05437394604086876, -0.04728497192263603, -0.027733728289604187, -0.11010535061359406, 0.007522609084844589, 0.02300146035850048, -0.0046827769838273525, 0.018542570993304253, -0.0010840852046385407, -0.006023743189871311, 0.03048636205494404, -0.02277521789073944, -0.08431354910135269, 0.04483399540185928, 0.06696818768978119, 0.01383858360350132, -0.06956999003887177, -0.03823521360754967, 0.020361948758363724, -0.029242021963000298, -0.012631949968636036, -0.01107652299106121, -0.0014635151019319892, -0.005547688342630863, 0.024453192949295044, -0.062367893755435944, -0.055203504860401154, -0.044117555022239685, 0.0030519356951117516, -0.014941522851586342, 0.06798628717660904, 0.015346876345574856, -0.03242829069495201, 0.03831062838435173, 0.06553530693054199, -0.07564087212085724, -0.055467456579208374, -0.0031603442039340734, -0.021304631605744362, 0.02665906958281994, -0.0416288748383522, 0.006183999124914408, 0.03955497220158577, 0.017071986570954323, 0.022662095725536346, 0.03906477615237236, -0.006777889560908079, -0.036481823772192, 0.009851035661995411, -0.032409437000751495, -0.008644401095807552, -0.03078802116215229, 0.03171185031533241, -0.00959179736673832, -0.0423453114926815, 0.034992385655641556, -0.07873287051916122, -0.008554846979677677, -0.08416271954774857, 0.001873582135885954, -0.019947169348597527, 0.030278971418738365, 0.017015425488352776, 0.016364973038434982, -0.02104067988693714, 0.04253384843468666, 0.012377425096929073, -0.013150425627827644, 0.009422115050256252, -0.024453192949295044, 0.027300095185637474, -0.03836718946695328, 0.032277461141347885, 0.013376669026911259, -0.09886857122182846, 0.02473599649965763, 0.04566355422139168, -0.01321641355752945, 0.027130411937832832, -0.018269192427396774, -0.01846715621650219, 0.004977365490049124, 0.008979054167866707, 0.010756011120975018, 0.04358965530991554, 0.01566738821566105, 0.042156774550676346, 0.05742823705077171, 0.043363410979509354, 0.05527891963720322, -0.03470958024263382, 0.012245450168848038, -0.02941170334815979, 0.026055753231048584, 0.004359907936304808, 0.017147401347756386, 0.015469425357878208, -0.003018941730260849, -0.03840489685535431, 0.003659966168925166, -0.01601618155837059, 0.1653088629245758, -0.007164389360696077, 0.0006074412376619875, -0.010812572203576565, -0.01779785193502903, -0.003530347254127264, -0.03101426549255848, 0.021512022241950035, 0.014432474039494991, -0.034238241612911224, 0.04532419145107269, -0.010435499250888824, 0.03487926349043846, 0.028902655467391014, 0.014668144285678864, -0.02620658278465271, 0.008682108484208584, -0.03342753276228905, -0.028506727889180183, -0.08250360190868378, -0.08167403936386108, -0.05147048085927963, 0.08174945414066315, -0.02980763092637062, 0.024057265371084213, 0.002479255897924304, 0.013612340204417706, -0.013876290991902351, -0.024226948618888855, -0.06463033705949783, -0.019108179956674576, -0.020135704427957535, 0.014705851674079895, 0.04200594499707222, 0.01172697450965643, 0.0465308241546154, -0.01167984027415514, -0.025113070383667946, -0.004376404918730259, -0.006193425972014666, -0.05686262622475624, -0.013291827403008938, 0.013188133016228676, -0.03256026282906532, -0.040120579302310944, 0.05101799592375755, -0.05927589535713196, -0.027526337653398514, -0.007838407531380653, -0.02633855864405632, -0.009191157296299934, 0.0009232399752363563, 0.07187014073133469, 0.003841432509943843, -0.0016049174591898918, -0.03242829069495201, 0.018033523112535477, -0.010642888955771923, -0.032767653465270996, 0.01575222983956337, 0.016129303723573685, -0.06621403992176056, 0.028487874194979668, -0.02450975403189659, -0.010171547532081604, 0.08227735757827759, 0.009690779261291027, 0.010765437968075275, 0.033389825373888016, 0.014932096004486084, -0.023793313652276993, -0.07718686759471893, -0.03981892392039299, -0.0002682227350305766, -0.020003728568553925, 0.002469829050824046, -0.01447960827499628, 0.036689214408397675, -0.03593507036566734, 0.041402630507946014, -0.051772139966487885, 0.0507163368165493, -0.04208135977387428, -0.02247355878353119, 0.0011706942459568381, -0.004826535936444998, -0.0037707313895225525, 0.0840873047709465, -0.06496970355510712, -0.028714118525385857, 0.031429044902324677, -0.035878509283065796, 0.07605565339326859, -0.01138760894536972, -0.022247314453125, 0.029656801372766495, 0.008385163731873035, 0.06323516368865967, 0.04698331281542778, -0.027865704149007797, 0.013178706169128418, 0.008710389025509357, -0.0001080402871593833, 0.02456631511449814, -0.018184350803494453, 0.030335532501339912, 0.02901577763259411, 0.0003157987375743687, -0.0194381196051836, 0.04641770198941231, -0.04528648406267166, -0.012707364745438099, -0.0174019243568182, -0.012198315933346748, 0.005264883395284414, 0.036557238548994064, 0.05237545818090439, 0.010030144825577736, -0.032767653465270996, -0.030806874856352806, 0.06293350458145142, -0.021568583324551582, -0.0003982835041824728, -0.005099914036691189, -0.00976619403809309, -0.008286181837320328, -0.013668901287019253, -0.08137238025665283, -0.01645924150943756, -0.0005688501405529678, -0.05701345577836037, -0.06938145309686661, 0.014451327733695507, 0.061161261051893234, 0.03853687271475792, 0.0315798744559288, -0.09668155014514923, -0.011227352544665337, -0.014602157287299633, 0.004623859189450741, 0.0032946765422821045, -0.008564273826777935, 0.011217925697565079, -0.01966436393558979, -0.0812215507030487, 0.051281943917274475, -0.009403261356055737, 0.05927589535713196, 0.006363109219819307, -0.01837288774549961, 0.002528746612370014, 0.002465115627273917, -0.006391389761120081, 0.014225083403289318, -0.005024499259889126, 0.05716428533196449, 0.016619497910141945, 0.00435048108920455, 0.08446437865495682, 0.0017062559491023421, -0.084690622985363, 0.04762433469295502, 0.0184200219810009, 0.05935131013393402, 0.06892896443605423, -0.02381216734647751, -0.016440387815237045, 0.00664120027795434, 0.028110802173614502, 0.09366496652364731, -0.037839289754629135, 0.04947199299931526, -0.017383070662617683, -0.01645924150943756, 0.006570499390363693, 0.026866460219025612, -0.08778262138366699, -0.01601618155837059, -0.034502189606428146, 0.019513534381985664, -0.03687775135040283, -0.010265816003084183, -0.0031956948805600405, 0.048114530742168427, 0.017364216968417168, 0.008182486519217491, 0.017203962430357933, 0.008347456343472004, 0.03789585083723068, -0.010105559602379799, 0.01876881532371044, 0.034464482218027115, -0.023114582523703575, 0.020852144807577133, 0.024132680147886276, 0.013725461438298225, -0.013103291392326355, 0.016167011111974716, 0.00583992013707757, 0.02028653398156166, 0.04351424053311348, -0.029166607186198235, 0.004586151801049709, 0.004385831765830517, 0.044079847633838654, 0.03203236311674118, -0.05882340669631958, -0.042383018881082535, -0.05388374999165535, 0.013527498580515385, -0.008239047601819038, 0.05618389695882797, 0.04370277747511864, -0.017251094803214073, 0.009860462509095669 ]
21,009
argufy.parser
add_commands
Add commands. Parameters ---------- module: ModuleType, Module used to import functions for CLI commands. parser: ArgumentParser, optional Parser used to append subparsers to create subcommands. exclude_prefixes: tuple, Methods from a module that should be excluded. command_type: str, optional Choose format type of commands to be created. Returns ------- self: Return object itself to allow chaining functions.
def add_commands( # pylint: disable=too-many-locals,too-many-branches self, module: ModuleType, parser: Optional[ArgumentParser] = None, exclude_prefixes: tuple = tuple(), command_type: Optional[str] = None, ) -> 'Parser': """Add commands. Parameters ---------- module: ModuleType, Module used to import functions for CLI commands. parser: ArgumentParser, optional Parser used to append subparsers to create subcommands. exclude_prefixes: tuple, Methods from a module that should be excluded. command_type: str, optional Choose format type of commands to be created. Returns ------- self: Return object itself to allow chaining functions. """ # use self or an existing parser if not parser: parser = self parser.formatter_class = ArgufyHelpFormatter module_name = module.__name__.split('.')[-1] docstring = docparse(module.__doc__) if module.__doc__ else None excludes = Parser._get_excludes(exclude_prefixes) # use exsiting subparser or create a new one if not any(isinstance(x, SubParsersAction) for x in parser._actions): # TODO: use metavar for hidden commands parser.add_subparsers(dest=module_name, parser_class=Parser) # check if command exists command = next( (x for x in parser._actions if isinstance(x, SubParsersAction)), None, ) # set command name scheme if command_type is None: command_type = self.command_type # create subcommand for command if command_type == 'subcommand': if command: msg = docstring.short_description if docstring else None subcommand = command.add_parser( module_name.replace('_', '-'), description=msg, formatter_class=self.formatter_class, help=msg, ) subcommand.set_defaults(mod=module) # append subcommand to exsiting command or create a new one return self.add_commands( module=module, parser=subcommand, exclude_prefixes=Parser._get_excludes(exclude_prefixes), command_type='command', ) # TODO: separate into method # pylint: disable-next=too-many-nested-blocks for name, value in inspect.getmembers(module): # TODO: Possible singledispatch candidate if not name.startswith(excludes): # skip classes for now if inspect.isclass(value): # TODO: check if dataclass instance # TODO: check if class instance continue # pragma: no cover # create commands from functions if inspect.isfunction(value): # TODO: Turn parameter-less function into switch # merge builder function maing_args into parser if ( self.main_args_builder and name == self.main_args_builder['function'] ): self.add_arguments(value, parser) # create commands from functions elif ( module.__name__ == value.__module__ and not name.startswith(', '.join(excludes)) or ( self.main_args_builder and name == self.main_args_builder['function'] ) ): # create command from function if command: # control command name format if self.command_scheme == 'chain': cmd_name = f"{module_name}.{name}" else: cmd_name = name msg = ( docparse(value.__doc__).short_description if value.__doc__ else None ) cmd = command.add_parser( cmd_name.replace('_', '-'), description=msg, formatter_class=self.formatter_class, help=msg, ) cmd.set_defaults(mod=module, fn=value) # add arguments from function # log.debug("command %s %s %s", name, value, cmd) self.add_arguments(value, cmd) # create arguments from module varibles elif ( self.use_module_args and not isinstance(value, ModuleType) and not hasattr(typing, name) and ( self.main_args_builder and name != self.main_args_builder['instance'] ) ): # TODO: Reconcile inspect parameters with dict # TODO: use argparse.SUPPRESS for hidden arguments arguments = self.__clean_args( Argument( self.__get_description(name, docstring) if docstring else None, self.__generate_parameter(name, module), ) ) name = arguments.pop('name') parser.add_argument(*name, **arguments) return self
(self, module: module, parser: Optional[argparse.ArgumentParser] = None, exclude_prefixes: tuple = (), command_type: Optional[str] = None) -> argufy.parser.Parser
[ 0.012703019194304943, -0.02156376652419567, 0.01637866161763668, -0.05692834407091141, 0.01537888590246439, 0.026484226807951927, -0.007424796931445599, 0.032737717032432556, -0.0543798990547657, -0.025268813595175743, 0.019485803321003914, -0.008752929046750069, -0.032384857535362244, 0.009125393815338612, -0.02838575839996338, 0.04097115620970726, 0.04712663218379021, 0.010752478614449501, -0.022485127672553062, -0.04379405081272125, 0.023190850391983986, 0.023798556998372078, 0.023700539022684097, 0.009885027073323727, 0.00138326664455235, 0.012654010206460953, 0.02172059379518032, -0.002091440372169018, -0.027072329074144363, -0.06429923325777054, 0.001952991122379899, -0.057712480425834656, -0.010262392461299896, 0.011526813730597496, -0.015075033530592918, -0.0032982761040329933, -0.020191527903079987, 0.0635543018579483, -0.03530576825141907, 0.014604550786316395, 0.014771180227398872, -0.039814554154872894, 0.013555767945945263, -0.006905306130647659, 0.016956962645053864, 0.012732423841953278, -0.0007528940332122147, 0.0401478111743927, -0.09268499165773392, -0.03336502984166145, 0.055124830454587936, -0.043519601225852966, 0.037285711616277695, -0.0032713215332478285, -0.01424188818782568, 0.013281320221722126, 0.04798918217420578, 0.006415220443159342, 0.013742000795900822, 0.01153661496937275, -0.01073287520557642, 0.07370887696743011, -0.02864060364663601, -0.009365536272525787, -0.0059545403346419334, 0.0064740306697785854, -0.05304686725139618, -0.03799143806099892, -0.0031831059604883194, 0.058653444051742554, -0.02977760136127472, -0.01830959878861904, 0.0442645326256752, -0.04242181032896042, 0.044146910309791565, -0.05175304040312767, -0.01950540766119957, -0.0021441245917230844, 0.047087423503398895, 0.006057457998394966, -0.0407751239836216, 0.04732266440987587, -0.024602297693490982, 0.060143306851387024, 0.05806534364819527, 0.027385983616113663, -0.018378209322690964, 0.01212471816688776, 0.017398038879036903, -0.020720819011330605, -0.061593957245349884, -0.08680396527051926, 0.0043470594100654125, 0.03746214509010315, -0.021132491528987885, -0.019956285133957863, -0.014741774648427963, -0.021132491528987885, -0.03901081532239914, 0.011281770654022694, -0.038579538464546204, 0.037599366158246994, 0.0252884179353714, 0.008057007566094398, 0.020877646282315254, 0.001423698733560741, -0.06590671092271805, 0.0458328053355217, -0.002195583423599601, -0.021504957228899002, -0.05140017718076706, 0.000053679690608987585, 0.029071878641843796, -0.026974311098456383, 0.009885027073323727, -0.01049763336777687, -0.03432559594511986, -0.018544839695096016, 0.00484449602663517, -0.028522983193397522, -0.01931917481124401, 0.026445019990205765, 0.012497182935476303, -0.04379405081272125, 0.046264082193374634, 0.0032860240899026394, -0.03397273272275925, -0.02462190017104149, 0.04924380034208298, -0.05155700445175171, -0.017241211608052254, 0.027287965640425682, -0.01631004922091961, 0.004278447479009628, 0.024190625175833702, -0.019211355596780777, -0.04908697307109833, 0.024386659264564514, -0.05238034948706627, 0.06171157956123352, 0.0445781871676445, 0.003687894204631448, 0.015241662040352821, -0.012320752255618572, -0.10726993530988693, -0.06563226133584976, 0.0035629223566502333, -0.006067259702831507, -0.04257863759994507, 0.03169873729348183, -0.044970255345106125, -0.007772757671773434, 0.03489409387111664, 0.02971879206597805, 0.0273467767983675, 0.0007179754320532084, -0.027170345187187195, -0.0029258111026138067, -0.015555317513644695, -0.016574695706367493, 0.008341257460415363, -0.004378914833068848, 0.03928526118397713, -0.015859169885516167, -0.007062133401632309, 0.00201915274374187, 0.03832469508051872, -0.05253717675805092, 0.0027273264713585377, 0.014820188283920288, 0.0169079527258873, 0.022641954943537712, 0.041049569845199585, 0.045597564429044724, -0.06457368284463882, 0.020446371287107468, 0.006454427260905504, 0.010340806096792221, -0.01542789489030838, -0.066377192735672, -0.002813091268762946, 0.029130687937140465, 0.007660037837922573, -0.016986366361379623, 0.027836862951517105, -0.02358291856944561, 0.05708517134189606, 0.008355959318578243, -0.022936007007956505, -0.003058134112507105, -0.02611176110804081, 0.0024835087824612856, 0.05336052179336548, 0.04116719216108322, -0.0159669890999794, 0.027385983616113663, -0.05971202999353409, 0.03054213523864746, 0.04061829671263695, 0.034345198422670364, -0.0013930683489888906, 0.034462820738554, 0.05261559039354324, 0.010095763951539993, 0.012026701122522354, 0.036874040961265564, 0.008052106946706772, 0.028660206124186516, -0.0379326269030571, -0.04238260164856911, 0.011526813730597496, -0.05700675770640373, 0.04885173216462135, 0.057045966386795044, -0.002051008166745305, -0.022936007007956505, 0.09025416523218155, 0.005131196230649948, -0.0021490254439413548, -0.00239529344253242, 0.05810454860329628, 0.08358900249004364, -0.0122521398589015, 0.021838214248418808, -0.02105407789349556, 0.006498535163700581, -0.0017839116044342518, 0.0041338722221553326, 0.03663880005478859, 0.010556443594396114, 0.02781725861132145, -0.0007829117821529508, -0.08115817606449127, 0.0036168317310512066, -0.046107254922389984, -0.05261559039354324, 0.025915727019309998, 0.022583145648241043, -0.03009125590324402, -0.02605294995009899, -0.005547768902033567, 0.020720819011330605, -0.00233893352560699, 0.004967017564922571, -0.05759486183524132, -0.025935329496860504, 0.012095312587916851, -0.019907277077436447, -0.013447948731482029, 0.018956510350108147, 0.018819287419319153, 0.006469130050390959, 0.03601149097084999, 0.013594974763691425, -0.08601982891559601, -0.031032221391797066, -0.051988281309604645, -0.03954010829329491, -0.00850298535078764, -0.03767777979373932, 0.003986846189945936, -0.03281613066792488, 0.009399841539561749, 0.0023070781026035547, 0.023876970633864403, -0.03652117773890495, 0.055242449045181274, -0.03806985169649124, -0.006831793580204248, 0.015035826712846756, 0.01922115683555603, 0.03961852192878723, -0.0015940034063532948, 0.01672172173857689, -0.06782785058021545, 0.030620548874139786, 0.029914826154708862, -0.05065524950623512, -0.0029503153637051582, -0.02817011997103691, 0.011477804742753506, -0.0068268924951553345, -0.014114465564489365, 0.014045853167772293, 0.04034384712576866, 0.031914375722408295, 0.0023401586804538965, 0.06175078824162483, 0.014751576818525791, 0.06002568453550339, 0.03787381574511528, 0.03585466369986534, 0.008958765305578709, 0.015035826712846756, 0.054771967232227325, 0.055752139538526535, -0.08954843878746033, -0.0034820581786334515, 0.015143644995987415, -0.11056331545114517, -0.009914431720972061, -0.024602297693490982, -0.018358606845140457, -0.0007884252117946744, -0.029130687937140465, -0.009556669741868973, 0.08272644877433777, -0.06563226133584976, 0.04050067439675331, -0.012869647704064846, 0.020465975627303123, 0.04379405081272125, 0.01522205863147974, 0.01997588947415352, 0.027131138369441032, 0.00874312687665224, 0.04591121897101402, -0.004758731462061405, 0.006983719766139984, 0.05449751764535904, -0.04575439170002937, -0.006032953970134258, 0.04293150082230568, 0.024543486535549164, 0.06774943321943283, 0.04297070577740669, -0.018613452091813087, 0.02332807518541813, 0.003158601699396968, -0.006243690848350525, 0.008184429258108139, 0.017868520691990852, -0.024994365870952606, 0.03530576825141907, -0.020211130380630493, -0.02956196293234825, -0.01331072486937046, -0.0553208626806736, -0.037697385996580124, -0.01779991015791893, 0.08343217521905899, 0.07300315052270889, -0.031189048662781715, -0.01441831886768341, 0.03218882158398628, -0.05316448584198952, 0.07802163064479828, 0.019623028114438057, 0.024112211540341377, 0.011830666102468967, 0.04673456400632858, 0.009115592576563358, -0.03497250750660896, -0.006130971014499664, 0.08256962150335312, -0.052341144531965256, -0.008478481322526932, -0.0018684513634070754, 0.0004043206281494349, -0.07527714967727661, 0.038520727306604385, -0.003472256474196911, -0.0028841537423431873, 0.051204144954681396, -0.027895672246813774, -0.03742293640971184, 0.021799007430672646, -0.03977534919977188, 0.04767552763223648, -0.03546259552240372, 0.06833753734827042, 0.000014760000340174884, 0.05473276227712631, -0.04567597806453705, -0.032071202993392944, 0.03806985169649124, 0.023445695638656616, -0.033051371574401855, -0.07849211245775223, -0.03705047070980072, 0.055556103587150574, 0.02507277950644493, -0.014408516697585583, -0.0366780050098896, 0.016966763883829117, -0.01969164051115513, 0.05261559039354324, 0.013428345322608948, -0.03091460093855858, -0.045166291296482086, 0.020563991740345955, 0.007331680506467819, -0.04199053347110748, 0.05320369452238083, -0.04081432893872261, -0.005827117711305618, -0.02095605991780758, 0.009772307239472866, -0.04191211983561516, -0.01021338440477848, 0.05551689863204956, -0.06841594725847244, 0.11362144351005554, 0.01858404651284218, 0.008468679152429104, -0.048420459032058716, 0.019368182867765427, 0.07692383974790573, -0.04763632267713547, 0.03209080547094345, 0.034384407103061676, -0.028915051370859146, -0.06951374560594559, 0.020505182445049286, -0.012526588514447212, -0.023563316091895103, 0.03481568023562431, 0.051792245358228683, -0.01506523136049509, -0.014104663394391537, -0.013398940674960613, -0.010536840185523033, -0.006346608512103558, 0.0455191507935524, 0.049204595386981964, 0.06747498363256454, -0.028620999306440353, -0.005194907542318106, -0.028444567695260048, -0.01868206262588501, -0.032580889761447906, 0.02203424833714962, -0.04344118759036064, -0.0550072081387043, -0.007900180295109749, -0.05567372590303421, 0.016163023188710213, -0.06786705553531647, 0.06139792501926422, 0.06649481505155563, 0.007473805453628302, -0.034286387264728546, 0.03954010829329491, 0.020818836987018585, -0.044499773532152176, -0.03612910956144333, 0.017505858093500137, 0.0455191507935524, 0.034854888916015625, -0.04257863759994507, 0.0067239743657410145, 0.05359576269984245, 0.07672780007123947, -0.013144096359610558, 0.010340806096792221, -0.07472825050354004, 0.007091538514941931, -0.0039329370483756065, -0.001314654597081244, -0.00025116887991316617, -0.02105407789349556, 0.037128884345293045, -0.004530841484665871, 0.008895053528249264, -0.015143644995987415, 0.057555653154850006, 0.06908246874809265, -0.02026994153857231, -0.03675641864538193, 0.00968899205327034, 0.0020865395199507475, -0.03595267981290817, 0.00393538735806942, 0.02042676880955696, 0.009762505069375038, -0.00877253245562315, 0.05814375728368759, -0.07947228103876114, -0.05257638543844223, -0.055399276316165924, 0.04128481075167656, -0.01581016182899475, -0.03230644389986992, 0.026758674532175064, -0.036246731877326965, 0.022112661972641945, 0.0559481717646122, -0.05092969536781311, -0.019211355596780777, -0.04783235490322113, -0.015496507287025452, -0.021995041519403458, 0.02228909358382225, -0.009855621494352818, -0.021132491528987885, 0.015398489311337471, 0.0000933459959924221, -0.003910883329808712, -0.01155621837824583, -0.044813428074121475, 0.04500946030020714, 0.06927850097417831, -0.04336277395486832, -0.01261480338871479, 0.03336502984166145, 0.012095312587916851, 0.00447448156774044, 0.0005495084915310144, -0.06535781919956207, -0.024033797904849052, -0.06026092544198036, 0.0016748675843700767, 0.009492957964539528, 0.00685139698907733, -0.04144163802266121, 0.010664262808859348, 0.0035629223566502333, 0.030267687514424324, 0.027895672246813774, -0.0101937809959054, 0.0298756193369627, -0.0025901023764163256, 0.00244552711956203, -0.03752095252275467, -0.004695020150393248, 0.027111535891890526, -0.06806308776140213, 0.004540643189102411, 0.043833255767822266, -0.00036572638782672584, 0.05614420771598816, 0.022622352465987206, -0.008302049711346626, 0.011673838831484318, 0.012624605558812618, 0.0009728199220262468, 0.023386884480714798, 0.0676318109035492, -0.003577624913305044, 0.02709193155169487, 0.0448918417096138, 0.05602658540010452, -0.013918431475758553, -0.007135646417737007, -0.015339679084718227, 0.012859846465289593, 0.0224459208548069, -0.01618262752890587, -0.0035359675530344248, -0.013065682724118233, -0.04720504581928253, 0.010125168599188328, -0.029483549296855927, 0.08327534794807434, 0.03265930339694023, 0.008752929046750069, 0.0010745127219706774, -0.0010340806329622865, 0.02042676880955696, -0.00048457214143127203, -0.022485127672553062, 0.011477804742753506, -0.098017118871212, 0.007522813975811005, 0.012310950085520744, 0.04524470493197441, 0.01988767459988594, 0.03034610114991665, -0.009875224903225899, -0.023465298116207123, -0.03881477937102318, -0.014085059985518456, -0.03091460093855858, -0.05751644819974899, -0.010664262808859348, 0.062103647738695145, -0.002326681511476636, 0.00042361774831078947, -0.01398704294115305, -0.02399459108710289, 0.016584496945142746, -0.011732649058103561, -0.048890940845012665, -0.015192653983831406, -0.02740558795630932, -0.00543014844879508, 0.006635759025812149, -0.004425473045557737, 0.08374582976102829, -0.03028728999197483, 0.015182851813733578, 0.030522530898451805, 0.035933077335357666, -0.04849887266755104, -0.01063485722988844, 0.04657773673534393, -0.04955745488405228, 0.012801036238670349, 0.021838214248418808, 0.01805475354194641, -0.021759800612926483, 0.010036952793598175, 0.017995944246649742, 0.005405644420534372, 0.046146459877491, 0.03448242321610451, 0.03003244660794735, -0.021387336775660515, -0.03420797362923622, -0.008096214383840561, 0.011056330986320972, -0.06782785058021545, -0.013487155549228191, -0.010791685432195663, -0.0493222139775753, -0.02162257768213749, 0.02952275611460209, -0.0221322663128376, 0.09566470980644226, -0.03075777180492878, 0.008306951262056828, 0.05963361635804176, -0.011507210321724415, -0.006111367605626583, -0.08366741240024567, 0.017878323793411255, -0.035266559571027756, -0.008159925229847431, 0.024229831993579865, -0.034443218261003494, 0.029346326366066933, -0.05387020856142044, 0.013222509995102882, -0.023759350180625916, 0.014761378057301044, -0.053282108157873154, 0.025582468137145042, 0.008017800748348236, 0.03473726660013199, -0.0071797543205320835, 0.06327985227108002, -0.08437313884496689, -0.032953355461359024, -0.008811739273369312, -0.033619873225688934, 0.02879743091762066, 0.0059496392495930195, -0.015026024542748928, 0.037383731454610825, -0.0181723739951849, 0.017241211608052254, 0.0559481717646122, -0.06649481505155563, 0.0010426571825519204, 0.01266381237655878, -0.06018251180648804, -0.012036502361297607, -0.014712370000779629, -0.0031267462763935328, 0.005974143743515015, 0.023386884480714798, -0.018760476261377335, 0.08656872063875198, 0.013202906586229801, -0.04959666356444359, -0.030404910445213318, 0.033776700496673584, -0.013065682724118233, 0.05241955816745758, 0.03271811455488205, 0.029679585248231888, -0.04265705123543739, -0.04755790904164314, 0.010281995870172977, -0.011683641001582146, 0.0407751239836216, -0.008355959318578243, 0.020250337198376656, 0.0068219914101064205, -0.011399391107261181, -0.07508111745119095, 0.027150742709636688, -0.009488057345151901, -0.059163134545087814, -0.038618747144937515, -0.009684091433882713, 0.045323118567466736, 0.0035139138344675303, 0.03303176909685135, -0.11448399722576141, -0.006890603806823492, 0.016839342191815376, -0.016476677730679512, -0.018760476261377335, -0.013869422487914562, 0.030463721603155136, -0.042500223964452744, -0.10734835267066956, -0.02013271674513817, 0.046773768961429596, 0.05155700445175171, -0.03436480090022087, -0.04273546487092972, 0.0029919727239757776, 0.0012619704939424992, -0.012301148846745491, -0.01782931387424469, -0.021916627883911133, 0.011860071681439877, 0.02023073472082615, 0.019368182867765427, 0.05202748626470566, 0.014771180227398872, -0.024288643151521683, 0.0439508780837059, -0.053634967654943466, 0.003371788887307048, 0.10287877172231674, 0.01950540766119957, -0.011693442240357399, 0.011575821787118912, 0.022798782214522362, 0.08374582976102829, 0.003555570961907506, 0.05339972674846649, -0.025837313383817673, -0.038305092602968216, -0.021759800612926483, 0.012448173947632313, -0.07194456458091736, -0.041676878929138184, 0.009174402803182602, -0.03169873729348183, -0.014310499653220177, 0.0774335265159607, -0.05155700445175171, 0.03816786780953407, -0.004271096084266901, 0.03116944432258606, 0.00701802596449852, -0.028973860666155815, 0.00823343824595213, -0.028209326788783073, -0.001771659473888576, -0.024033797904849052, -0.014281095005571842, 0.044813428074121475, 0.00904207956045866, 0.008282446302473545, 0.021485352888703346, -0.02879743091762066, -0.01896631345152855, 0.0011523137800395489, 0.03946169465780258, -0.03954010829329491, -0.027287965640425682, 0.003790812101215124, 0.045323118567466736, -0.019525010138750076, -0.05810454860329628, 0.010203582234680653, -0.0316203236579895, 0.03946169465780258, -0.03646237030625343, 0.07519873231649399, -0.017368633300065994, -0.029836412519216537, -0.007615930400788784 ]
21,013
argufy.parser
dispatch
Call command with arguments. Paramters --------- args: Sequence[str] Command line arguments passed to the parser. ns: Optional[Namespace] Argparse namespace object for a command. Returns ------- Optional[Callable[[F], F]]: Call function with arguments.
def dispatch( self, args: Sequence[str] = sys.argv[1:], ns: Optional['Namespace'] = None, ) -> Optional[Callable[[F], F]]: """Call command with arguments. Paramters --------- args: Sequence[str] Command line arguments passed to the parser. ns: Optional[Namespace] Argparse namespace object for a command. Returns ------- Optional[Callable[[F], F]]: Call function with arguments. """ # parse variables arguments, namespace = self.retrieve(args, ns) log.debug("dispatch: %s, %s", arguments, namespace) main_ns_result = self.__set_main_arguments(namespace) # call function with variables if 'fn' in namespace: ns_vars = vars(namespace) fn = ns_vars.pop('fn') self.__set_module_arguments(fn, main_ns_result) # XXX: only takes standard types # attempt to plug parameters using inspect splat = None signature = inspect.signature(fn) for arg in signature.parameters: param = signature.parameters[arg] if str(param).startswith('*') and not str(param).startswith( '**' ): splat = ns_vars.pop(arg) # XXX: only works with splat and kwargs if splat: fn(*splat, **ns_vars) else: fn(**ns_vars) return self.dispatch(arguments) if arguments != [] else None
(self, args: Sequence[str] = ['--package', 'argufy', '--s3_bucket', '/data'], ns: Optional[ForwardRef('Namespace')] = None) -> Optional[Callable[[~F], ~F]]
[ 0.0108213284984231, -0.017115844413638115, 0.009549331851303577, -0.03200569376349449, 0.025178061798214912, 0.016723021864891052, -0.028208408504724503, 0.014534438028931618, 0.04115284979343414, -0.049720123410224915, 0.004122299607843161, 0.019173486158251762, -0.014048086479306221, -0.00045946220052428544, -0.014207086525857449, 0.008141716942191124, 0.029424287378787994, 0.06468480080366135, -0.04276155307888985, 0.007010013796389103, 0.020800894126296043, 0.022091597318649292, 0.002695979317650199, -0.03228628262877464, 0.029405580833554268, -0.006046663038432598, 0.07400030642747879, -0.01760219596326351, 0.002742743818089366, 0.004765313118696213, 0.03453098237514496, 0.012345855124294758, -0.02957393415272236, 0.02852640673518181, -0.0022201493848115206, -0.007267219014465809, 0.00856727547943592, 0.03202439844608307, -0.020669953897595406, -0.054321762174367905, -0.03902038559317589, -0.06876266747713089, 0.10520164668560028, -0.022259950637817383, -0.046091191470623016, -0.018874192610383034, 0.0006459360592998564, 0.020164895802736282, -0.03976861760020256, 0.00810430571436882, 0.007257866207510233, -0.05757657811045647, 0.014394144527614117, -0.03342733904719353, 0.012476795352995396, 0.07841488718986511, 0.044183194637298584, 0.025795353576540947, 0.001203019404783845, -0.002401362406089902, 0.050131652504205704, 0.04541778191924095, -0.008006099611520767, 0.0360274501144886, 0.018537487834692, -0.03569074347615242, -0.005190870724618435, -0.019734662026166916, -0.05970904231071472, 0.03557850793004036, -0.056005287915468216, 0.006341279949992895, 0.02489747479557991, -0.033726632595062256, 0.04006791114807129, -0.03213663399219513, -0.004646063316613436, -0.0067200735211372375, 0.014656025916337967, 0.0031729782931506634, 0.014702790416777134, -0.029760992154479027, -0.0605321004986763, 0.009801860898733139, -0.016236670315265656, 0.033558279275894165, -0.01872454583644867, 0.011092563159763813, -0.02833934873342514, -0.015731612220406532, -0.05226412042975426, -0.01895836926996708, 0.002285619964823127, 0.03640156611800194, -0.03426910191774368, -0.04287378862500191, -0.003598536131903529, -0.01767702028155327, -0.04620342701673508, 0.004003049805760384, -0.031276166439056396, 0.033558279275894165, 0.010447212494909763, -0.018509428948163986, 0.025757942348718643, 0.015020790509879589, 0.019435368478298187, -0.004613327793776989, -0.03447486460208893, -0.01169115025550127, -0.02974228747189045, -0.0017314594006165862, -0.028900524601340294, 0.002443450503051281, -0.01478696707636118, -0.016283433884382248, -0.03445615991950035, -0.012476795352995396, -0.04369684308767319, 0.02903146483004093, -0.07998617738485336, 0.012149443849921227, 0.03026605024933815, -0.015039496123790741, -0.0008084430592134595, 0.014394144527614117, -0.03458710014820099, -0.008787068538367748, 0.04672719165682793, -0.03849662095308304, 0.05709022656083107, -0.03541015833616257, -0.023045595735311508, -0.007052102126181126, 0.008716922253370285, 0.012317796237766743, -0.004484725184738636, 0.03241722285747528, -0.06550785154104233, 0.028040055185556412, 0.024392416700720787, 0.008782392367720604, 0.00807157065719366, 0.03258557617664337, -0.0401427336037159, -0.020202308893203735, 0.048261068761348724, -0.05230152979493141, 0.020146191120147705, 0.022652773186564445, -0.0029929345473647118, 0.009670919738709927, 0.031163930892944336, 0.04818624630570412, -0.019435368478298187, -0.031519342213869095, 0.01547908317297697, -0.03342733904719353, 0.0034231687895953655, 0.023064302280545235, -0.04178884997963905, -0.015413613058626652, 0.009876684285700321, -0.039506737142801285, 0.04945824295282364, -0.05847445875406265, 0.05458364263176918, -0.01872454583644867, 0.010016977787017822, 0.04938342049717903, 0.007285925094038248, 0.01842525228857994, 0.0028923905920237303, 0.008165099658071995, -0.012551618739962578, -0.005045900586992502, -0.03084593079984188, 0.008085600100457668, -0.007061454933136702, -0.03574686124920845, 0.038346972316503525, -0.025814060121774673, -0.027104763314127922, -0.031519342213869095, 0.011635033413767815, 0.02368159405887127, 0.011532151140272617, 0.020501600578427315, -0.00010755858238553628, -0.015394906513392925, 0.019145427271723747, 0.04036720469594002, 0.017798608168959618, -0.006593808997422457, -0.017424490302801132, -0.054546233266592026, -0.08881533145904541, 0.04332272708415985, 0.05686575546860695, -0.03376404196023941, 0.03610227257013321, 0.002100899815559387, 0.054433997720479965, 0.027965232729911804, -0.02858252450823784, 0.009460479021072388, 0.0459415465593338, 0.09068591892719269, -0.08597204089164734, -0.02459818124771118, 0.016348903998732567, -0.07893864810466766, -0.025757942348718643, 0.023195242509245872, -0.023719005286693573, 0.004807400982826948, 0.06906196475028992, -0.006177603732794523, 0.014076145365834236, -0.026281706988811493, 0.08425110578536987, 0.04912153631448746, 0.012093326076865196, -0.0009621816570870578, -0.029143700376152992, -0.04672719165682793, 0.06621867418289185, 0.014992731623351574, 0.0010802623583003879, -0.01335597038269043, -0.003142581321299076, -0.03271651640534401, -0.001987495692446828, 0.005915722344070673, 0.002576729515567422, -0.0600457489490509, 0.042948611080646515, 0.0401427336037159, 0.025963706895709038, 0.003605550853535533, 0.03294098377227783, -0.0027146851643919945, 0.006804249715059996, -0.014506379142403603, -0.014104204252362251, -0.020969247445464134, 0.01720002107322216, 0.023513242602348328, 0.00739348353818059, 0.02594500035047531, -0.014543791301548481, 0.025570884346961975, -0.011326386593282223, 0.028002643957734108, -0.09584873169660568, 0.08642098307609558, -0.05783845856785774, -0.000746479956433177, 0.010194683447480202, 0.007309307344257832, 0.040554262697696686, 0.0132998526096344, 0.025065826252102852, 0.022203832864761353, 0.014824379235506058, 0.0011100746924057603, -0.02169877476990223, -0.07070808112621307, 0.03879591450095177, 0.020501600578427315, 0.03817862272262573, -0.010980328544974327, 0.015619376674294472, 0.030827226117253304, -0.07336430996656418, -0.018920958042144775, -0.004028770606964827, -0.023307478055357933, 0.025496061891317368, 0.035484980791807175, 0.05312458798289299, -0.04871001094579697, -0.07096996158361435, -0.023644182831048965, 0.01443155575543642, 0.023812536150217056, 0.04062908515334129, 0.02459818124771118, -0.0003472271782811731, 0.0013187617296352983, 0.06554526835680008, 0.040442027151584625, 0.011906268075108528, 0.010858740657567978, -0.008571951650083065, 0.02409312315285206, -0.12121384590864182, -0.03784191608428955, 0.07029654830694199, -0.043173082172870636, -0.020557718351483345, -0.048261068761348724, 0.02753499709069729, -0.02646876499056816, 0.0673036128282547, -0.029349464923143387, 0.03445615991950035, 0.02850770205259323, -0.023288771510124207, 0.017658313736319542, 0.03428780660033226, -0.014712143689393997, -0.009970213286578655, -0.05847445875406265, 0.04448248818516731, 0.07074549049139023, 0.0043420931324362755, -0.0075758653692901134, 0.015956081449985504, 0.01111126970499754, 0.0028362730517983437, 0.04998200759291649, 0.021025365218520164, 0.0918830931186676, 0.001824988634325564, 0.04938342049717903, -0.04755024611949921, 0.03258557617664337, 0.05353611707687378, 0.03718721121549606, 0.02263406664133072, 0.04530554637312889, -0.024355005472898483, -0.004463681485503912, 0.001037589623592794, -0.020782189443707466, -0.01603090576827526, -0.004349107854068279, 0.029312051832675934, -0.03492380306124687, 0.02040807157754898, 0.06064433604478836, -0.015619376674294472, -0.008824480697512627, 0.0025089208502322435, 0.023457124829292297, 0.024579474702477455, 0.04047944024205208, 0.08604686707258224, -0.06752808392047882, -0.0007114065228961408, -0.02478523924946785, -0.04062908515334129, -0.03166898712515831, 0.022708890959620476, -0.013627205044031143, -0.0075758653692901134, -0.025047121569514275, 0.01309408899396658, -0.09106003493070602, 0.04938342049717903, -0.06449773907661438, -0.013552381657063961, -0.025178061798214912, 0.022241244092583656, -0.04717613011598587, 0.028002643957734108, -0.02875087782740593, -0.009717684239149094, 0.009923448786139488, 0.035372745245695114, -0.02052030712366104, 0.00950256735086441, -0.026393940672278404, -0.05768881365656853, 0.03481157124042511, 0.04302343353629112, -0.018930310383439064, -0.04238743707537651, -0.024392416700720787, -0.023363595828413963, -0.022091597318649292, -0.004526813514530659, -0.03690662235021591, -0.00005692128979717381, -0.03322157263755798, -0.05499517172574997, 0.04728836566209793, -0.010007624514400959, -0.006200986448675394, 0.00516281183809042, -0.012570325285196304, 0.010054389014840126, 0.0026445381809026003, -0.04485660791397095, -0.0044052256271243095, 0.03432521969079971, 0.01533878967165947, -0.05506999418139458, -0.026450058445334435, 0.0211188942193985, -0.01824754849076271, 0.08784262835979462, 0.024766532704234123, 0.056192345917224884, 0.037411682307720184, 0.017714431509375572, -0.002278605243191123, 0.005812840070575476, 0.05091729760169983, 0.014450262300670147, -0.04133990779519081, -0.09854236990213394, -0.008515833877027035, -0.011962384916841984, 0.03946932405233383, -0.0046624308452010155, 0.03864626586437225, 0.015366848558187485, -0.031070401892066002, -0.021436894312500954, 0.020782189443707466, 0.01661078631877899, 0.05383541062474251, 0.06221562623977661, -0.0031683018896728754, -0.006238397676497698, -0.024635592475533485, 0.003233772236853838, -0.011064505204558372, -0.07164336740970612, 0.029929345473647118, -0.06460997462272644, 0.0037411681842058897, 0.028657348826527596, -0.04332272708415985, -0.010690388269722462, -0.020950540900230408, 0.08058476448059082, 0.04377166926860809, -0.08926427364349365, -0.004592284094542265, 0.024467239156365395, -0.060382455587387085, -0.08731886744499207, -0.05080506205558777, 0.01784537173807621, 0.012271031737327576, -0.052862707525491714, -0.028133584186434746, 0.016582727432250977, 0.05926010385155678, 0.039506737142801285, -0.03802897408604622, -0.007140954490751028, -0.1054261177778244, -0.07916311919689178, 0.04261190444231033, 0.005663193296641111, 0.052451178431510925, -0.01026015356183052, -0.035185687243938446, -0.02269018441438675, -0.04755024611949921, -0.031687695533037186, 0.042312610894441605, 0.05862410366535187, 0.026637116447091103, -0.058923397213220596, -0.03576556593179703, 0.026281706988811493, -0.015610024333000183, -0.012523560784757137, 0.05226412042975426, -0.013112794607877731, 0.05686575546860695, 0.005303105805069208, -0.04302343353629112, -0.03294098377227783, -0.052114471793174744, 0.009348243474960327, -0.01492726057767868, -0.019089311361312866, 0.06741584837436676, -0.031238753348588943, -0.02886311151087284, 0.09569907933473587, -0.016012199223041534, 0.030078992247581482, -0.0320805162191391, -0.02005266211926937, 0.01349626388400793, 0.021474305540323257, -0.03002287447452545, 0.030546637251973152, -0.012785442173480988, 0.008291363716125488, 0.013365323655307293, -0.03378274664282799, -0.035260509699583054, -0.023924769833683968, -0.004377166740596294, 0.040666498243808746, 0.04717613011598587, 0.014964672736823559, 0.019566308706998825, 0.016058964654803276, 0.023644182831048965, -0.02263406664133072, -0.04167661443352699, -0.08050993829965591, -0.003890814958140254, 0.02665582299232483, -0.008356834761798382, -0.035316627472639084, 0.014740202575922012, -0.006780867464840412, 0.004031108692288399, -0.07126925140619278, 0.0068323081359267235, 0.019921720027923584, -0.0349799208343029, -0.008076246827840805, -0.014515732415020466, 0.007931276224553585, -0.014964672736823559, -0.0013187617296352983, 0.03447486460208893, 0.056192345917224884, -0.04152696579694748, -0.002906420035287738, 0.020314542576670647, -0.019977837800979614, -0.0548081137239933, 0.013842321932315826, 0.045754484832286835, -0.040217556059360504, 0.023195242509245872, -0.02588888444006443, 0.048897068947553635, 0.0020120469853281975, 0.0506180040538311, -0.06722879409790039, 0.04018014669418335, -0.034848980605602264, -0.062253039330244064, -0.0064815739169716835, 0.008356834761798382, 0.050131652504205704, -0.010886799544095993, -0.07183042913675308, -0.010147918947041035, 0.0375613272190094, 0.09352920204401016, 0.012925735674798489, 0.004989782813936472, 0.03563462570309639, 0.015301377512514591, -0.0360274501144886, -0.03453098237514496, 0.0034348599147051573, 0.012373914010822773, -0.04882224276661873, 0.036831799894571304, -0.018584253266453743, -0.013468204997479916, 0.09472637623548508, -0.009296802803874016, -0.006448838394135237, -0.012776088900864124, -0.02775946818292141, 0.015011437237262726, -0.009320185519754887, -0.011625680141150951, -0.012710618786513805, 0.06655538082122803, 0.06868784874677658, -0.04025496914982796, 0.01603090576827526, -0.01373008731752634, 0.030771108344197273, -0.03988085314631462, -0.02996675670146942, 0.016863316297531128, -0.035260509699583054, 0.04025496914982796, -0.021998068317770958, -0.004625019151717424, 0.05132882669568062, -0.04081614315509796, -0.0014391805743798614, -0.04601636901497841, 0.03440004214644432, 0.003815991571173072, -0.004103593993932009, -0.016124434769153595, -0.04298602044582367, 0.03398851305246353, 0.011354445479810238, -0.06393656134605408, -0.033277690410614014, -0.015890611335635185, -0.0020365985110402107, -0.03608356788754463, 0.026225589215755463, 0.021661363542079926, -0.033446043729782104, 0.03144451975822449, -0.048672597855329514, 0.04620342701673508, -0.0037131092976778746, -0.05518222972750664, 0.040030498057603836, 0.05162812024354935, 0.03913261741399765, 0.018612312152981758, 0.0341755710542202, 0.023868652060627937, 0.0663309097290039, -0.017882782965898514, -0.002983581507578492, -0.013019265606999397, -0.03784191608428955, -0.011298327706754208, 0.018677782267332077, 0.02484135702252388, -0.05697799101471901, -0.021941950544714928, 0.031687695533037186, 0.01378620509058237, 0.002861993620172143, -0.06696691364049911, 0.008300716988742352, -0.023644182831048965, 0.0013129161670804024, -0.08499933779239655, 0.005055253393948078, 0.01714390330016613, -0.03032216802239418, 0.011438621208071709, 0.0720549002289772, -0.021436894312500954, -0.03191216289997101, -0.008815127424895763, 0.011354445479810238, 0.024355005472898483, -0.022297361865639687, -0.01604025810956955, 0.10535129904747009, 0.014871143735945225, 0.040329791605472565, 0.04047944024205208, 0.01890225149691105, 0.03211792930960655, 0.03428780660033226, -0.0013830631505697966, 0.012383266352117062, -0.06865043938159943, 0.01796695962548256, 0.007052102126181126, -0.009755096398293972, -0.004241549409925938, 0.026393940672278404, 0.020950540900230408, -0.08110852539539337, -0.09173344075679779, -0.01655466854572296, -0.025178061798214912, 0.019267015159130096, 0.012701265513896942, 0.009698978625237942, -0.02274630218744278, 0.026562293991446495, 0.01312214694917202, -0.03591521456837654, -0.03492380306124687, 0.022428303956985474, 0.02886311151087284, -0.0047723278403282166, 0.01679784432053566, -0.052750471979379654, -0.029012758284807205, -0.046390485018491745, -0.05080506205558777, -0.010681034997105598, -0.031799931079149246, 0.003303919220343232, 0.005934427957981825, -0.0008972957730293274, -0.06202856823801994, 0.04927118495106697, 0.023924769833683968, 0.019790779799222946, -0.0028736847452819347, -0.037074975669384, 0.042200375348329544, -0.034905098378658295, -0.06865043938159943, 0.026506176218390465, 0.02594500035047531, 0.04740060120820999, 0.03342733904719353, 0.007412189617753029, -0.024130534380674362, 0.0396563820540905, -0.007795659359544516, -0.08312875777482986, 0.02985452115535736, 0.013889086432754993, 0.03890815004706383, 0.020015249028801918, 0.011326386593282223, 0.010914858430624008, 0.06468480080366135, 0.018051136285066605, -0.003271183930337429, 0.007140954490751028, 0.06958572566509247, -0.029349464923143387, -0.012345855124294758, -0.033333808183670044, -0.00005721356865251437, 0.0866454541683197, -0.056416817009449005, 0.06801443547010422, -0.009451125748455524, 0.0016741727013140917, 0.0014672393444925547, 0.06565750390291214, -0.012271031737327576, 0.017003608867526054, -0.012972500175237656, 0.037523917853832245, -0.015273318625986576, -0.014057439751923084, -0.08432593196630478, 0.059746455401182175, -0.04590413346886635, 0.026450058445334435, -0.005817516706883907, -0.018621664494276047, -0.011279622092843056, -0.0007973364554345608, -0.0031683018896728754, 0.0719800740480423, -0.002616479527205229, -0.025795353576540947, 0.00040685205021873116, 0.05896081030368805, -0.002532303100451827, 0.005116047337651253, 0.05813775211572647, -0.011915620416402817, 0.026618411764502525, 0.015245260670781136, -0.024860061705112457, 0.020857011899352074, 0.013832969591021538, -0.00903959758579731, -0.07908829301595688, -0.043360140174627304, -0.008857215754687786, -0.021680070087313652, -0.026861587539315224, 0.044519901275634766, 0.0002051796909654513, -0.011270268820226192, 0.0459415465593338 ]
21,026
argufy.parser
retrieve
Retrieve parsed values from CLI input. Paramters --------- args: Sequence[str] Command line arguments passed to the parser. ns: Optional[Namespace] Argparse namespace object for a command. Returns ------- List[str]: Argparse remaining unparse arguments. Namespace: Argparse namespace object with command arguments.
def retrieve( self, args: Sequence[str] = sys.argv[1:], ns: Optional['Namespace'] = None, ) -> Tuple[List[str], 'Namespace']: """Retrieve parsed values from CLI input. Paramters --------- args: Sequence[str] Command line arguments passed to the parser. ns: Optional[Namespace] Argparse namespace object for a command. Returns ------- List[str]: Argparse remaining unparse arguments. Namespace: Argparse namespace object with command arguments. """ # TODO: handle invalid argument # show help when no arguments provided if args == []: args = ['--help'] # pragma: no cover main_ns, main_args = self.parse_known_args(args, ns) if main_args == [] and 'fn' in vars(main_ns): return main_args, main_ns # default to help message for subcommand if 'mod' in vars(main_ns): mod_args = [] mod_args.append(vars(main_ns)['mod'].__name__.split('.')[-1]) mod_args.append('--help') self.parse_args(mod_args) return main_args, main_ns
(self, args: Sequence[str] = ['--package', 'argufy', '--s3_bucket', '/data'], ns: Optional[ForwardRef('Namespace')] = None) -> Tuple[List[str], ForwardRef('Namespace')]
[ 0.007890581153333187, 0.019199633970856667, 0.010807989165186882, -0.08534003049135208, 0.059116143733263016, -0.006443584803491831, 0.02268366515636444, 0.023301800712943077, 0.11276272684335709, -0.03785606101155281, -0.00933757796883583, 0.0445806160569191, -0.061775993555784225, 0.00402489909902215, -0.01439504325389862, 0.03560829907655716, 0.017139185220003128, 0.03967300057411194, -0.037987180054187775, 0.05214808136224747, 0.03892374783754349, 0.001780649065040052, -0.019592992961406708, 0.0035776880104094744, 0.0052916062995791435, -0.029239637777209282, 0.09036003798246384, -0.08301734179258347, 0.021559784188866615, 0.002277029911056161, -0.006555972620844841, 0.013617691583931446, -0.027460159733891487, 0.022102992981672287, -0.019649187102913857, -0.009351626969873905, -0.00933757796883583, 0.04428091272711754, 0.017401425167918205, 0.003090672893449664, -0.03615150600671768, -0.09073466062545776, 0.11014033854007721, 0.0002151178487110883, -0.003212426556274295, -0.018412917852401733, 0.00041326042264699936, -0.02729157730937004, -0.08683854341506958, -0.030887996777892113, 0.07099182158708572, 0.012634295970201492, -0.01334608718752861, -0.028321802616119385, -0.0353085957467556, 0.05263509601354599, 0.04574195668101311, 0.052260469645261765, 0.011004668660461903, 0.029483145102858543, -0.003432519966736436, 0.030887996777892113, 0.0004126750573050231, 0.029239637777209282, -0.009833958931267262, -0.046154048293828964, 0.013093213550746441, -0.044093597680330276, -0.052560169249773026, 0.040946733206510544, -0.03510254994034767, -0.041096583008766174, -0.039185985922813416, -0.038286879658699036, 0.05799226090312004, -0.03660105913877487, 0.012653027661144733, -0.022870978340506554, 0.013814371079206467, -0.0050059533677995205, -0.036994416266679764, 0.03060702607035637, -0.06065211445093155, 0.020623216405510902, 0.0031890124082565308, 0.03527113422751427, -0.0018075753469020128, 0.004586839582771063, 0.005577259697020054, 0.04300718009471893, -0.06218808516860008, -0.005001270677894354, 0.017551274970173836, 0.07616166770458221, -0.04813957214355469, -0.053309421986341476, -0.019649187102913857, -0.013214968144893646, -0.05109912529587746, 0.00004335283301770687, -0.038436729460954666, 0.02779732458293438, 0.0214848592877388, 0.027628742158412933, 0.009131533093750477, 0.003973387647420168, -0.005310337990522385, -0.0005765743553638458, 0.03765001520514488, -0.01316813938319683, -0.020005082711577415, 0.010911012068390846, -0.021297546103596687, 0.03989777714014053, -0.007970189675688744, 0.0025263908319175243, -0.05773002281785011, 0.02354530803859234, -0.02929583191871643, 0.003399740206077695, -0.08084450662136078, 0.0690062940120697, 0.03030732460319996, -0.01314940769225359, 0.007661122363060713, -0.01129500474780798, -0.0476900190114975, -0.054658081382513046, 0.02288971096277237, -0.0016120668733492494, 0.0626750960946083, -0.045254942029714584, -0.0260927714407444, 0.012765415012836456, 0.015312879346311092, -0.03431583568453789, 0.08728809654712677, 0.039785388857126236, -0.034390758723020554, 0.031375013291835785, 0.06657122075557709, 0.05372151359915733, 0.023601502180099487, -0.04075941815972328, -0.11029019206762314, -0.05188583955168724, 0.05799226090312004, -0.038549117743968964, 0.04034733027219772, 0.01207235548645258, -0.038549117743968964, -0.022814784198999405, -0.026729637756943703, 0.02869642898440361, 0.009805861860513687, -0.05139882490038872, -0.0199863500893116, -0.06953077018260956, 0.03240523487329483, -0.0122690349817276, -0.04652867466211319, -0.0014786060201004148, 0.054021213203668594, -0.04001016542315483, 0.06024002283811569, 0.03455934301018715, 0.09080958366394043, -0.006808845791965723, 0.010058735497295856, 0.025755606591701508, -0.02088545635342598, -0.00010053467121906579, -0.023807546123862267, -0.007169424556195736, -0.06046479940414429, -0.0369756855070591, -0.007792241871356964, 0.012812243774533272, 0.01834735833108425, -0.029314562678337097, -0.009243921376764774, -0.03146866708993912, -0.01903105154633522, -0.027478890493512154, 0.042894791811704636, 0.013327355496585369, 0.0353085957467556, 0.053309421986341476, -0.005268192384392023, -0.016652170568704605, 0.004921662155538797, -0.004916979465633631, -0.026916950941085815, 0.04203315079212189, -0.05267255753278732, -0.0076002455316483974, -0.08474063128232956, 0.04057210683822632, 0.015078737400472164, -0.03751889616250992, 0.029108518734574318, -0.0005777450860477984, -0.006452950183302164, -0.00033862769487313926, 0.003664320334792137, 0.011856945231556892, 0.008246476761996746, -0.004085775930434465, -0.04503016546368599, 0.018656425178050995, -0.0027254114393144846, -0.021297546103596687, 0.030363518744707108, -0.027366502210497856, 0.012559370137751102, -0.000023267850338015705, 0.052372854202985764, -0.009557671844959259, 0.005408677272498608, 0.0076330252923071384, 0.12520034611225128, -0.03452187776565552, 0.07548734545707703, 0.08481555432081223, -0.015715602785348892, -0.0214848592877388, 0.06540987640619278, 0.05094927176833153, 0.014357579872012138, 0.002964236307889223, 0.027254115790128708, -0.034184712916612625, -0.004643033724278212, -0.01292463205754757, -0.03765001520514488, 0.002671558875590563, 0.009421869181096554, 0.005675598978996277, 0.041995689272880554, 0.009674742817878723, -0.019274558871984482, -0.002411661436781287, -0.04132135957479477, 0.01667090132832527, -0.03223665431141853, -0.0005675014108419418, 0.007539368700236082, -0.021578514948487282, 0.03941076248884201, 0.004783518612384796, 0.025025084614753723, 0.06477300822734833, 0.027216652408242226, 0.05008763074874878, -0.043344344943761826, 0.015443998388946056, -0.07080450654029846, -0.05713061988353729, 0.018366089090704918, -0.03330434113740921, 0.052560169249773026, -0.007267763838171959, 0.049900319427251816, 0.030288593843579292, 0.015537654981017113, 0.014919520355761051, 0.028715159744024277, -0.034634266048669815, 0.013608326204121113, 0.004460402764379978, 0.001354510779492557, 0.04574195668101311, -0.02659851685166359, 0.013177504763007164, -0.03926090896129608, -0.0009453478269279003, 0.035027626901865005, 0.02348911389708519, -0.000619890633970499, 0.04338180646300316, 0.0015500192530453205, 0.014779035933315754, -0.06406121701002121, -0.04338180646300316, 0.039036136120557785, -0.037537626922130585, 0.0010114929173141718, -0.03360404446721077, -0.019115343689918518, 0.02414471097290516, 0.045554645359516144, 0.026654710993170738, -0.03075687773525715, -0.0475776307284832, 0.026673443615436554, 0.04375643655657768, -0.08189346641302109, -0.052110616117715836, 0.04132135957479477, -0.001784161082468927, -0.0027605327777564526, -0.04311956837773323, -0.032423969358205795, -0.05154867842793465, 0.022646203637123108, 0.015387804247438908, 0.05428345501422882, 0.00033921306021511555, 0.05244778096675873, -0.017766686156392097, 0.035533372312784195, -0.0013357794377952814, 0.0066683609038591385, 0.010161757469177246, -0.06031494960188866, 0.02789098024368286, -0.004373770207166672, -0.018497208133339882, -0.007347372360527515, 0.013299258425831795, -0.03296717628836632, 0.027965907007455826, 0.03465299680829048, 0.018600231036543846, 0.02118515782058239, 0.050911810249090195, -0.08519018441438675, 0.04877643659710884, 0.07455077767372131, 0.04967554286122322, 0.02058575488626957, 0.011501049622893333, -0.05660613998770714, 0.020342247560620308, 0.026842026039958, 0.019649187102913857, -0.015350341796875, -0.009454648941755295, 0.013739445246756077, -0.056268975138664246, 0.07473808526992798, 0.02478157728910446, -0.03605784848332405, 0.011566609144210815, -0.004645375069230795, -0.008700712583959103, 0.06941838562488556, 0.030625758692622185, 0.05462061986327171, -0.07080450654029846, -0.026561055332422256, 0.03495270013809204, -0.06338688731193542, -0.0004419428005348891, 0.0626750960946083, -0.019096611067652702, -0.04210807755589485, -0.048102106899023056, 0.04180837422609329, -0.055819425731897354, -0.0021494224201887846, -0.05885390192270279, -0.008644518442451954, -0.001562897115945816, -0.08646391332149506, -0.08751287311315536, 0.029183443635702133, -0.010976571589708328, 0.017991462722420692, 0.004050654359161854, 0.019461873918771744, 0.022496351972222328, 0.0354771763086319, -0.058928828686475754, -0.019817769527435303, 0.023020830005407333, -0.016979970037937164, -0.020342247560620308, -0.05694330483675003, -0.05417106673121452, -0.020960381254553795, 0.002500635338947177, -0.01207235548645258, 0.002094399183988571, -0.014263923279941082, -0.018740715458989143, -0.052560169249773026, 0.040796879678964615, -0.004701568745076656, 0.03131881728768349, -0.03922344744205475, -0.020810529589653015, 0.0010553945321589708, -0.0049825394526124, 0.010124295018613338, -0.019162172451615334, 0.03645120933651924, -0.003828219836577773, -0.05874151363968849, -0.025362249463796616, -0.011360564269125462, -0.03109404258430004, 0.03710680454969406, 0.007993604056537151, -0.02097911201417446, -0.03332307189702988, 0.010527019388973713, 0.011510415002703667, -0.03676963970065117, -0.027272846549749374, -0.006101737264543772, -0.02789098024368286, 0.013233698904514313, -0.009089387953281403, -0.012821609154343605, 0.02339545637369156, 0.02037970907986164, 0.09935108572244644, 0.012624930590391159, -0.019855231046676636, -0.039448224008083344, -0.010929742828011513, 0.011941235512495041, 0.005230729468166828, 0.047652557492256165, 0.007721999194473028, -0.05027494579553604, -0.028808817267417908, 0.051361363381147385, -0.05244778096675873, -0.06121405214071274, 0.0044884998351335526, -0.02333926223218441, -0.05304718390107155, -0.0005039903917349875, -0.01570623740553856, -0.004949759226292372, -0.01675519347190857, 0.047802407294511795, 0.04739031568169594, -0.07717316597700119, -0.021747097373008728, 0.04828942194581032, 0.04090926796197891, -0.04248270392417908, -0.04030986502766609, -0.020847992971539497, 0.02603657729923725, 0.0107424296438694, -0.06938092410564423, -0.012840340845286846, 0.011744556948542595, 0.0690062940120697, -0.0321429967880249, 0.02199060469865799, -0.09852690249681473, -0.10362183302640915, 0.0336976982653141, -0.027235383167862892, 0.016193252056837082, 0.01795399934053421, 0.0031515497248619795, 0.006218808237463236, -0.036188967525959015, -0.019143439829349518, -0.01517239399254322, 0.07155375927686691, 0.025249861180782318, -0.06170106679201126, -0.010349071584641933, -0.013252430595457554, -0.03178710117936134, -0.0037532944697886705, -0.0039031452033668756, 0.0260927714407444, 0.009637279435992241, 0.03682583570480347, -0.04997524246573448, -0.05750524625182152, -0.06829450279474258, -0.0037743670400232077, -0.026654710993170738, 0.008110675029456615, 0.05012509226799011, -0.026411203667521477, -0.029764115810394287, 0.04027240350842476, -0.033735163509845734, -0.019948888570070267, -0.022496351972222328, -0.006476364564150572, 0.028265608474612236, 0.003825878258794546, -0.025174934417009354, 0.02028605341911316, 0.011725825257599354, 0.06005271151661873, 0.03877389430999756, 0.011753922328352928, 0.024425681680440903, 0.055969275534152985, -0.009796496480703354, 0.054320916533470154, 0.0000048383226385340095, -0.005984666291624308, -0.006228174082934856, -0.034072328358888626, 0.01923709735274315, -0.0011859285878017545, -0.036732178181409836, -0.08234301954507828, 0.0007720828289166093, 0.10474570840597153, -0.01803828962147236, -0.015556386671960354, 0.008789686486124992, -0.0029127250891178846, 0.04982539266347885, 0.0007322787423618138, 0.051061660051345825, 0.0004539425717666745, -0.001295975293032825, -0.020866723731160164, -0.007146010175347328, -0.02804083190858364, 0.03105657920241356, -0.03336053341627121, -0.007445711642503738, 0.03615150600671768, -0.009328212589025497, 0.019817769527435303, -0.013196236453950405, -0.022046798840165138, -0.028527846559882164, -0.032386504113674164, -0.0029174077790230513, 0.0008780320640653372, 0.027179189026355743, 0.002391759306192398, 0.0445806160569191, 0.04012255370616913, 0.05154867842793465, -0.01903105154633522, 0.054770469665527344, 0.001942206872627139, 0.02184075489640236, -0.024931427091360092, 0.045442257076501846, 0.04664106294512749, 0.0023250288795679808, -0.029614266008138657, -0.034390758723020554, 0.01890929788351059, 0.02313321828842163, -0.036488670855760574, 0.005951886530965567, -0.012418885715305805, 0.004954442381858826, -0.014338849112391472, -0.019199633970856667, 0.01717664860188961, -0.04030986502766609, -0.08376660197973251, 0.07859674841165543, -0.006387390661984682, 0.0006918892613612115, 0.018993590027093887, -0.010470825247466564, -0.026317548006772995, 0.011875675991177559, -0.03884882107377052, -0.03384755179286003, -0.033978670835494995, -0.013570863753557205, -0.003757977159693837, 0.05072449892759323, 0.048401810228824615, -0.021110232919454575, 0.004216895438730717, 0.057767484337091446, 0.03611404448747635, -0.0001371193357044831, 0.009899518452584743, 0.011201347224414349, -0.0025029766838997602, 0.07717316597700119, -0.02539971098303795, 0.0007691560895182192, 0.025867994874715805, 0.028415458276867867, 0.047352854162454605, 0.02899613045156002, 0.04300718009471893, 0.014441871084272861, 0.021522320806980133, -0.048701509833335876, -0.017513813450932503, -0.0031187699642032385, 0.01702679693698883, -0.05192330479621887, -0.059116143733263016, -0.005001270677894354, 0.0253435168415308, -0.02049209736287594, -0.0017092357156798244, -0.02298336662352085, 0.025418441742658615, -0.04532986879348755, -0.030026355758309364, 0.046903301030397415, -0.01359896082431078, -0.08054480701684952, -0.014704110100865364, -0.010901645757257938, 0.015322244726121426, 0.03326687961816788, 0.05064957216382027, -0.03309829533100128, 0.0253435168415308, -0.060577187687158585, 0.026710905134677887, 0.018263066187500954, -0.011248175986111164, -0.004207529593259096, -0.009880787692964077, -0.02043590322136879, -0.0676201730966568, 0.004062361549586058, 0.026879487559199333, 0.015378438867628574, 0.046903301030397415, -0.08376660197973251, 0.032274115830659866, -0.026729637756943703, 0.004291820805519819, -0.04237031564116478, 0.02599911391735077, -0.05177345126867294, -0.03379135578870773, 0.03169344365596771, 0.001190026057884097, -0.00971220526844263, -0.002086204243823886, 0.027385234832763672, 0.0038586582522839308, 0.003041503019630909, -0.045554645359516144, 0.019518068060278893, 0.10444600880146027, 0.011847578920423985, 0.04001016542315483, 0.058217037469148636, 0.0027113629039376974, 0.02834053337574005, -0.005024684593081474, -0.044093597680330276, 0.014095340855419636, -0.01672709546983242, -0.020604485645890236, 0.03189948946237564, -0.01757000759243965, -0.0017853318713605404, 0.03826814889907837, 0.008892708458006382, -0.06777002662420273, -0.06319957971572876, -0.038549117743968964, 0.03015747480094433, 0.041283898055553436, 0.0118944076821208, 0.029483145102858543, 0.0130463857203722, 0.05158613994717598, 0.060427337884902954, -0.008953585289418697, -0.05956569314002991, 0.0055819423869252205, 0.011660265736281872, -0.006129834335297346, -0.003535542404279113, 0.007862484082579613, 0.005708379205316305, 0.00701020797714591, -0.036188967525959015, 0.005633453838527203, -0.020304784178733826, 0.05124897509813309, 0.028434190899133682, 0.01314940769225359, -0.047764942049980164, -0.006968062371015549, 0.006935282610356808, 0.044842854142189026, -0.020660679787397385, 0.0031164283864200115, 0.026561055332422256, -0.035776879638433456, -0.04592927172780037, 0.02719792164862156, 0.03171217814087868, 0.015462730079889297, 0.02112896367907524, 0.0099931750446558, 0.009674742817878723, 0.005123024340718985, -0.001325243036262691, -0.05585688725113869, 0.005624087993055582, -0.02279605343937874, 0.03862404450774193, 0.018450379371643066, 0.04443076252937317, 0.011707094497978687, -0.01696123741567135, 0.05956569314002991, -0.00431523472070694, 0.011866310611367226, 0.06091435253620148, -0.03015747480094433, 0.008326085284352303, -0.016951872035861015, -0.0031726225279271603, 0.08024510741233826, 0.0006895478582009673, 0.02008000761270523, 0.024200905114412308, -0.054770469665527344, -0.04694076254963875, 0.011791384778916836, 0.007937409915030003, -0.05810464918613434, -0.03255508840084076, 0.03000762313604355, 0.008789686486124992, 0.006790114566683769, -0.027254115790128708, 0.039185985922813416, -0.03259254992008209, 0.048851363360881805, 0.000990420114248991, 0.03731285035610199, 0.020997844636440277, 0.022009337320923805, 0.05027494579553604, -0.03660105913877487, -0.017888439819216728, -0.046079121530056, -0.022571276873350143, 0.013982953503727913, -0.025231128558516502, -0.0018860128475353122, 0.024800308048725128, 0.01678328961133957, 0.0006854503299109638, -0.03785606101155281, 0.0044042086228728294, 0.033735163509845734, -0.02013620175421238, -0.013102579861879349, -0.02127881348133087, -0.003699441673234105, 0.025062546133995056, -0.0351400151848793, 0.026935681700706482, 0.032573819160461426, -0.005169852636754513, -0.047764942049980164, -0.009257970377802849 ]
21,032
tfields.core
Container
Store lists of tfields objects. Save mechanisms are provided Examples: >>> import numpy as np >>> import tfields >>> sphere = tfields.Mesh3D.grid( ... (1, 1, 1), ... (-np.pi, np.pi, 3), ... (-np.pi / 2, np.pi / 2, 3), ... coord_sys='spherical') >>> sphere2 = sphere.copy() * 3 >>> c = tfields.Container([sphere, sphere2]) >>> c.save("~/tmp/spheres.npz") >>> c1 = tfields.Container.load("~/tmp/spheres.npz")
class Container(AbstractFields): """ Store lists of tfields objects. Save mechanisms are provided Examples: >>> import numpy as np >>> import tfields >>> sphere = tfields.Mesh3D.grid( ... (1, 1, 1), ... (-np.pi, np.pi, 3), ... (-np.pi / 2, np.pi / 2, 3), ... coord_sys='spherical') >>> sphere2 = sphere.copy() * 3 >>> c = tfields.Container([sphere, sphere2]) >>> c.save("~/tmp/spheres.npz") >>> c1 = tfields.Container.load("~/tmp/spheres.npz") """ def __init__(self, *items, labels=None): if len(items) == 1 and issubclass(type(items[0]), list): # Container([a, b, ...]) - includes copy constructor items = items[0] if labels is None and issubclass(type(items), Container): labels = items.labels super().__init__(items) self.labels = labels def __setstate__(self, state): self.__dict__ = state def copy(self): return deepcopy(self) @property def items(self): """ items of the container as a list """ return list(self) @items.setter def items(self, items): del self[:] for item in items: self.append(item) def _kwargs(self): return {"labels": self.labels}
(*items, labels=None)
[ 0.027999887242913246, -0.00988449901342392, -0.08375812321901321, 0.008463137783110142, -0.03411266952753067, 0.024915626272559166, -0.046858470886945724, 0.008086895570158958, -0.0017848302377387881, -0.021329708397388458, 0.007260090205818415, 0.018617045134305954, -0.03784722834825516, -0.0044104005210101604, 0.00217036297544837, 0.007766392081975937, -0.0367138534784317, 0.0004470784915611148, 0.028464384377002716, -0.05232095718383789, 0.03223610296845436, 0.0005788795533590019, 0.08457563817501068, 0.06848546117544174, 0.03938935697078705, -0.028352905064821243, 0.016424618661403656, 0.006219616625458002, 0.014789588749408722, 0.012467103078961372, -0.02086521126329899, -0.02560308203101158, -0.028334325179457664, 0.01698201522231102, -0.002123913262039423, -0.04633823409676552, -0.02237018197774887, 0.046226754784584045, -0.0601988285779953, 0.04644971340894699, 0.03454000875353813, -0.02610473893582821, 0.001242529833689332, -0.044517405331134796, 0.049942731857299805, 0.06064474582672119, 0.05559101700782776, -0.02253740094602108, -0.002399127697572112, -0.04429444670677185, 0.05429042503237724, 0.009968108497560024, -0.004572974517941475, 0.006842042785137892, -0.02469266764819622, 0.03552474081516266, 0.03886912018060684, 0.04841918125748634, -0.01804106868803501, 0.03500450402498245, -0.02731243148446083, 0.0033513468224555254, 0.008834735490381718, -0.03409409150481224, -0.039129238575696945, 0.000746098521631211, -0.04641255363821983, -0.00663301907479763, -0.0022481661289930344, -0.023986632004380226, -0.03335089609026909, -0.0528411939740181, 0.06514108180999756, 0.010832073166966438, 0.0037438469007611275, -0.008713966235518456, 0.00838417373597622, -0.01327532809227705, 0.010729883797466755, -0.07216427475214005, -0.03749420866370201, -0.008662872016429901, -0.035896338522434235, 0.01543988473713398, 0.0077989068813622, 0.024339649826288223, 0.02811136655509472, 0.03520888462662697, 0.004928314592689276, -0.02315053716301918, -0.0265506561845541, -0.0026755034923553467, -0.008435267955064774, 0.02963491715490818, -0.06127646192908287, -0.04641255363821983, -0.011984026059508324, -0.05893539637327194, -0.0768464058637619, 0.08360948413610458, 0.030210893601179123, -0.03286781907081604, -0.037810068577528, 0.014111422933638096, -0.0010340868029743433, -0.03297929838299751, -0.04611527547240257, -0.023986632004380226, 0.015848642215132713, 0.004979409277439117, -0.005216302815824747, 0.040987227112054825, -0.03751279041171074, 0.06495527923107147, 0.011946866288781166, -0.022481661289930344, -0.002564024180173874, 0.001896309549920261, 0.012021185830235481, -0.09995978325605392, 0.03192024305462837, 0.019657518714666367, -0.0375499501824379, 0.05246959626674652, 0.016238819807767868, 0.025082845240831375, 0.02811136655509472, 0.015198346227407455, -0.03582201898097992, -0.03766142949461937, 0.0007838389137759805, 0.007241510320454836, -0.0364537350833416, 0.043142493814229965, 0.06636735051870346, 0.019694678485393524, 0.04474036395549774, -0.02640201710164547, -0.07409658282995224, 0.029281899333000183, -0.0035046308767050505, -0.010283966548740864, 0.021645566448569298, 0.03611929714679718, -0.03615645691752434, -0.025101425126194954, -0.018133968114852905, -0.018468406051397324, -0.055330898612737656, -0.006516894791275263, -0.047155749052762985, -0.0200662761926651, 0.0043616280891001225, 0.02902178093791008, -0.022593140602111816, -0.022816099226474762, -0.046226754784584045, -0.042213499546051025, 0.016889115795493126, 0.004979409277439117, -0.029913615435361862, 0.030508171766996384, -0.03747563064098358, 0.04291953518986702, -0.03615645691752434, 0.024265330284833908, 0.05618557333946228, -0.08405540138483047, -0.046226754784584045, 0.05893539637327194, -0.012411363422870636, -0.06253989785909653, -0.030192313715815544, 0.06870841979980469, -0.04121018573641777, 0.03039669245481491, 0.014241482131183147, -0.006084912456572056, -0.0160344410687685, -0.03552474081516266, -0.033239416778087616, -0.01466881949454546, -0.006270711310207844, 0.031139887869358063, 0.03533894196152687, -0.005829439032822847, 0.00033472824725322425, 0.026513496413826942, 0.05945563316345215, 0.025212904438376427, 0.03786580637097359, 0.01789242960512638, -0.03816308453679085, -0.051317643374204636, 0.004802900366485119, 0.01467810943722725, -0.02097669057548046, -0.0410987064242363, -0.020716572180390358, 0.10397303849458694, -0.0660700723528862, -0.00395519332960248, 0.04481468349695206, -0.06372901052236557, -0.009053049609065056, 0.014956807717680931, 0.022927578538656235, -0.03838604316115379, -0.0521351583302021, -0.005764409434050322, 0.026030419394373894, 0.0019683067221194506, -0.015634974464774132, 0.00509088858962059, 0.05135480314493179, -0.05926983430981636, -0.06584711372852325, -0.018254738301038742, 0.006619084160774946, 0.0005812020390294492, 0.053510069847106934, 0.08606202900409698, -0.06123930215835571, -0.002096043433994055, -0.031864505261182785, -0.03563622012734413, 0.012913020327687263, 0.014325091615319252, 0.014260062016546726, -0.05388166755437851, 0.002798595232889056, 0.01373982522636652, -0.06398912519216537, -0.004733225796371698, 0.07409658282995224, 0.0077989068813622, 0.001896309549920261, -0.0746539831161499, -0.0065679894760251045, 0.0037693942431360483, 0.02454402856528759, -0.01757657155394554, -0.020902371034026146, -0.03979811444878578, -0.011538108810782433, 0.007269380148500204, 0.013721245341002941, 0.006270711310207844, -0.02545444294810295, 0.022035744041204453, -0.0010689240880310535, -0.01689840666949749, 0.01251355279237032, 0.04570651799440384, 0.024785567075014114, -0.05358438938856125, 0.008295918814837933, -0.03242190182209015, 0.0015374855138361454, -0.0398724339902401, -0.021181069314479828, -0.09914226830005646, 0.05232095718383789, 0.054401904344558716, 0.03786580637097359, 0.021812785416841507, 0.03857184201478958, -0.00624748645350337, -0.020307814702391624, 0.01575574278831482, 0.0929737463593483, 0.044220127165317535, 0.02762828953564167, -0.003102840855717659, -0.026773614808917046, -0.051949359476566315, 0.010534795001149178, 0.005416036583483219, -0.011203670874238014, -0.012643611989915371, 0.01865420490503311, -0.01797604002058506, 0.007687427569180727, -0.07692072540521622, 0.04173042252659798, -0.04239929839968681, -0.034948766231536865, 0.053472910076379776, -0.008574617095291615, -0.018960773944854736, -0.0053649418987333775, 0.005262752529233694, 0.020586512982845306, -0.05391882732510567, -0.006377545651048422, -0.007427309174090624, -0.1478215754032135, 0.025528762489557266, 0.021366868168115616, -0.04351409152150154, -0.01467810943722725, -0.015783613547682762, 0.04830770194530487, 0.0398724339902401, -0.012755091302096844, -0.021404027938842773, -0.009327102452516556, 0.005402101669460535, 0.02562166191637516, -0.01281083095818758, 0.026141898706555367, 0.05191219970583916, 0.008583907037973404, 0.055479537695646286, 0.030935509130358696, 0.04277089610695839, -0.0155978137627244, -0.02824142575263977, 0.005035148933529854, 0.025733141228556633, -0.007752457167953253, -0.02963491715490818, -0.05265539512038231, 0.028464384377002716, 0.03779148682951927, -0.013721245341002941, 0.04340261220932007, 0.005007279105484486, 0.04555787891149521, -0.013201008550822735, -0.004619424231350422, 0.03582201898097992, 0.01818970777094364, 0.009652250446379185, -0.0006317161023616791, -0.029449118301272392, 0.011194380931556225, -0.03210604190826416, 0.005536805838346481, -0.06867125630378723, 0.023800833150744438, 0.0019799191504716873, -0.03953799605369568, -0.010451185517013073, -0.006386835593730211, 0.007116096094250679, 0.06391480565071106, -0.019323080778121948, 0.062428414821624756, 0.07654912769794464, 0.04288237541913986, -0.02699657343327999, 0.030210893601179123, 0.03299787640571594, -0.0016721896827220917, -0.044517405331134796, -0.005638995207846165, -0.018867874518036842, -0.03507882356643677, 0.007469113916158676, 0.04280805587768555, -0.03808876499533653, 0.01850556582212448, -0.004215311724692583, 0.0234849750995636, -0.040838588029146194, 0.027721188962459564, -0.04589231684803963, 0.009763729758560658, -0.017799530178308487, 0.010079587809741497, -0.04474036395549774, 0.004217633977532387, -0.0010178294032812119, 0.008086895570158958, 0.001228594919666648, 0.005388166755437851, 0.03894343972206116, -0.06599575281143188, -0.003448891220614314, 0.02175704576075077, -0.04042983055114746, -0.002703373320400715, 0.008713966235518456, 0.03595208004117012, 0.001445747329853475, 0.03563622012734413, 0.0311956275254488, 0.049794092774391174, -0.006423995364457369, -0.0020681736059486866, -0.011222250759601593, -0.03056391142308712, -0.03368533402681351, -0.029263319447636604, -0.013544736430048943, -0.059827230870723724, 0.007366924546658993, -0.003323476994410157, 0.0003553403075784445, 0.0037508143577724695, -0.11088475584983826, -0.0008924151188693941, 0.03994675353169441, -0.0018719234503805637, 0.017799530178308487, 0.05083456635475159, -0.0077989068813622, 0.016331719234585762, 0.019174441695213318, 0.06272569298744202, 0.022741779685020447, 0.005160563159734011, -0.05135480314493179, 0.02811136655509472, -0.021422607824206352, -0.026792194694280624, -0.005123403389006853, -0.015495624393224716, 0.04815906286239624, -0.005151273217052221, 0.08992664515972137, -0.009299232624471188, -0.0021227519027888775, 0.03056391142308712, -0.015467754565179348, -0.0506487675011158, 0.030322372913360596, 0.018068939447402954, 0.0469699501991272, -0.016870535910129547, 0.010126037523150444, -0.0540674664080143, -0.0403926707804203, 0.007887161336839199, -0.010079587809741497, -0.001753476681187749, -0.05867527797818184, -0.019248761236667633, 0.07409658282995224, 0.05536805838346481, -0.01711207441985607, 0.01142662949860096, -0.04611527547240257, 0.039426516741514206, 0.00973585993051529, -0.05001705139875412, 0.04893941804766655, 0.03552474081516266, 0.008983374573290348, 0.0827176496386528, 0.064137764275074, 0.05484782159328461, 0.00633574090898037, 0.027256691828370094, -0.054587703198194504, 0.024915626272559166, -0.061053503304719925, -0.021701306104660034, -0.02668071538209915, -0.006883847527205944, 0.008444557897746563, 0.07264735549688339, -0.032477639615535736, 0.004201376810669899, -0.060421787202358246, -0.020010536536574364, 0.009652250446379185, -0.011807517148554325, -0.008635002188384533, 0.013544736430048943, -0.011593848466873169, -0.030006514862179756, -0.018997933715581894, 0.024599768221378326, 0.022778939455747604, 0.01405568327754736, -0.017390772700309753, -0.0959465280175209, -0.10152049362659454, 0.013619055971503258, -0.03427989035844803, 0.028185686096549034, 0.014176452532410622, -0.010990002192556858, 0.047601666301488876, 0.01852414570748806, 0.025844620540738106, 0.028966041281819344, -0.0013435579603537917, -0.07305610924959183, 0.017056334763765335, -0.0043151783756911755, 0.0025802815798670053, -0.017084205523133278, 0.016461778432130814, -0.012857280671596527, 0.054401904344558716, -0.0231319572776556, -0.00547642121091485, 0.021645566448569298, -0.0078035518527030945, 0.027999887242913246, -0.013953493908047676, 0.023243436589837074, -0.08242037147283554, 0.04154462367296219, 0.0069999718107283115, 0.013907044194638729, -0.011686747893691063, -0.019973376765847206, -0.03630509600043297, 0.035283204168081284, -0.006191746797412634, -0.034948766231536865, 0.0019508879631757736, -0.07944758981466293, 0.023522134870290756, -0.03089834935963154, -0.008769705891609192, 0.023113377392292023, 0.03009941428899765, 0.008263404481112957, -0.04042983055114746, -0.009308522567152977, 0.03205030411481857, -0.018867874518036842, -0.01344254706054926, 0.05521941930055618, 0.042696576565504074, 0.02534296363592148, -0.03087976947426796, -0.012272014282643795, -0.010850653052330017, -0.009800889529287815, 0.054736342281103134, 0.033239416778087616, -0.0048539950512349606, 0.04912521690130234, -0.04243645817041397, 0.029913615435361862, 0.06086770445108414, 0.05544237792491913, -0.04459172487258911, 0.031437166035175323, -0.006874557584524155, 0.009471097029745579, -0.019657518714666367, 0.024265330284833908, 0.015142606571316719, 0.017009885981678963, -0.04239929839968681, 0.008388818241655827, -0.04132166504859924, 0.011343020014464855, 0.008909055031836033, 0.014743139035999775, -0.03089834935963154, 0.042213499546051025, 0.01050692517310381, 0.025250064209103584, 0.036323677748441696, 0.007469113916158676, 0.033276576548814774, 0.0293562188744545, 0.004677486140280962, 0.05941847339272499, 0.021273968741297722, -0.001942759263329208, 0.013776984997093678, 0.05559101700782776, 0.01189112663269043, 0.05570249632000923, -0.003056391142308712, 0.05358438938856125, -0.006995326839387417, -0.018960773944854736, 0.02420959062874317, 0.0023875152692198753, -0.11913422495126724, -0.019676098600029945, 0.031437166035175323, 0.00946180708706379, -0.04024403169751167, 0.010664854198694229, 0.004970119334757328, 0.03675101324915886, 0.039760954678058624, -0.008927634917199612, 0.018068939447402954, 0.018013199791312218, 0.05945563316345215, -0.0022818422876298428, 0.034948766231536865, 0.005652930121868849, -0.04522344097495079, -0.0299693550914526, -0.0057040248066186905, -0.015607103705406189, 0.0021622341591864824, -0.035877760499715805, -0.0074180192314088345, -0.042510777711868286, 0.02840864472091198, -0.020735152065753937, -0.08814297616481781, 0.020586512982845306, -0.0015665165847167373, 0.03597065806388855, -0.03353669494390488, 0.029727816581726074, -0.011008582077920437, 0.01810609921813011, -0.06569847464561462, 0.007794261910021305, -0.04841918125748634, -0.04830770194530487, 0.04184190183877945, 0.07595457136631012, -0.061499420553445816, -0.0299693550914526, 0.027999887242913246, -0.013934914022684097, 0.014910358004271984, -0.04971977323293686, -0.061648059636354446, 0.0182268675416708, -0.04061562940478325, 0.011909706518054008, -0.027256691828370094, 0.03938935697078705, -0.03784722834825516, 0.002703373320400715, -0.01837550662457943, -0.012086215429008007, -0.01865420490503311, -0.021961424499750137, -0.0008628034265711904, -0.01643390953540802, 0.037104032933712006, -0.01282012090086937, -0.037884388118982315, -0.02315053716301918, 0.0319388248026371, -0.051169004291296005, -0.08346084505319595, 0.0403926707804203, -0.07487694174051285, 0.03857184201478958, -0.020605092868208885, -0.03968663513660431, 0.09208191186189651, 0.011751777492463589, -0.03238474205136299, -0.01265290193259716, 0.012086215429008007, 0.05592545494437218, 0.00838417373597622, -0.005708669777959585, -0.008142635226249695, -0.00805902574211359, -0.012745801359415054, 0.032942138612270355, -0.023707933723926544, 0.04418296739459038, -0.04518628120422363, 0.03613787889480591, 0.026457756757736206, 0.03643515706062317, 0.02902178093791008, -0.04154462367296219, -0.0555538572371006, -0.0035905628465116024, 0.014260062016546726, 0.020103435963392258, -0.0164524894207716, 0.03597065806388855, 0.013396097347140312, 0.04566935822367668, -0.022277282550930977, 0.031400006264448166, 0.032496221363544464, -0.042362138628959656, 0.03606355935335159, -0.00594091834500432, 0.034354209899902344, 0.008412043564021587, 0.005973433144390583, 0.029226159676909447, -0.04693279042840004, 0.011696037836372852, 0.02656923606991768, 0.06372901052236557, -0.0023039057850837708, -0.01704704575240612, -0.013256748206913471, 0.046375393867492676, -0.008165859617292881, 0.023057637736201286, 0.01435296144336462, -0.0018916645785793662, -0.02534296363592148, -0.006739853415638208, 0.034038349986076355, 0.038646161556243896, 0.013962783850729465, -0.03087976947426796, 0.022593140602111816, -0.0018301187083125114, -0.05915835499763489, 0.03286781907081604, 0.10196641087532043, 0.03827456384897232, -0.033871132880449295, -0.0022586174309253693, -0.008890475146472454, 0.05670581012964249, 0.04366273060441017, -0.030155153945088387, -0.0012541422620415688, 0.009048404172062874, 0.039760954678058624, 0.04882793873548508, 0.01344254706054926, -0.0014271674444898963, 0.003560370532795787, -0.019824737682938576, -0.034651488065719604, -0.030340952798724174, -0.015421304851770401, 0.023577874526381493, 0.03637941554188728, -0.014334381558001041, -0.021980004385113716, -0.022128643468022346, -0.04239929839968681, -0.000856997212395072, -0.04321681335568428, -0.027108052745461464, 0.06792806088924408, 0.045000482350587845, 0.024636927992105484, 0.024339649826288223, 0.04659835249185562, -0.08130557835102081, -0.008713966235518456, 0.035896338522434235, 0.028334325179457664, -0.02904036082327366, -0.008165859617292881, 0.04633823409676552, 0.06450936198234558, -0.0719413161277771, -0.012885150499641895, 0.06934013217687607, -0.045297760516405106, 0.03368533402681351, -0.045000482350587845, -0.05050012841820717, -0.058415159583091736, -0.05830368027091026, -0.07744096219539642, 0.029913615435361862, 0.044517405331134796, 0.021980004385113716, 0.0425850972533226, -0.07082652300596237, -0.018997933715581894 ]
21,033
tfields.core
__getitem__
null
def __getitem__(self, index): if isinstance(index, str): for field in self: if hasattr(field, "name") and field.name == index: return field return super().__getitem__(index)
(self, index)
[ 0.04081888124346733, -0.03417113795876503, -0.05214594677090645, -0.009142807684838772, -0.020806578919291496, -0.02185985818505287, 0.035742420703172684, -0.003643309697508812, 0.07100137323141098, -0.0360877588391304, -0.020772045478224754, 0.017905743792653084, 0.01973603293299675, -0.025330498814582825, 0.044513992965221405, -0.006181539501994848, -0.0056937504559755325, 0.056117329746484756, 0.0017094201175495982, 0.011422034353017807, 0.015471115708351135, 0.004528236575424671, 0.06029590964317322, 0.03375673294067383, 0.04710402339696884, 0.07887506484985352, 0.042441967874765396, 0.020064102485775948, 0.04389238357543945, -0.022291529923677444, -0.012553014792501926, -0.046620551496744156, -0.0012432147050276399, 0.05639359727501869, 0.0022900186013430357, -0.042200230062007904, -0.0717611163854599, 0.01212997641414404, 0.07224458456039429, 0.07783905416727066, 0.05031565949320793, -0.038781389594078064, -0.011016263626515865, -0.04758749529719353, -0.02315487340092659, -0.0022446932271122932, -0.023465676233172417, 0.03033789061009884, 0.0010236016241833568, 0.0005285281222313643, -0.03398120030760765, 0.023776480928063393, -0.02223972976207733, -0.039748337119817734, -0.03871232271194458, -0.016403526067733765, -0.008629118092358112, 0.041647691279649734, 0.035397082567214966, 0.04572267085313797, -0.021151915192604065, -0.03912672773003578, -0.01686973311007023, 0.006418959237635136, -0.01194004062563181, -0.08122336119413376, 0.024812493473291397, 0.005296612624078989, -0.02636651135981083, -0.02448442205786705, 0.00023701477039139718, 0.010852227918803692, 0.02369014546275139, -0.022809535264968872, -0.009548579342663288, 0.019649697467684746, -0.011637870222330093, 0.012199044227600098, 0.08536740392446518, -0.006185856182128191, -0.0011439301306381822, 0.027851462364196777, -0.1047063022851944, 0.008244930766522884, -0.07006896287202835, 0.025658568367362022, 0.0021195083390921354, -0.007351370062679052, 0.00009233728633262217, -0.02636651135981083, -0.009902549907565117, 0.014322868548333645, 0.0021713089663535357, 0.032185446470975876, -0.048658039420843124, -0.056669868528842926, 0.03950659930706024, -0.056635335087776184, -0.02505422942340374, 0.06171179562807083, 0.023120339959859848, 0.007325469516217709, -0.0018659011693671346, -0.015350247733294964, -0.02049577422440052, -0.013330023735761642, -0.028214065358042717, -0.026280175894498825, 0.04078434780240059, 0.00007446337986038998, 0.0006739475065842271, -0.041682224720716476, -0.06640838086605072, -0.0026483063120394945, -0.02125551737844944, -0.04043900966644287, 0.016308559104800224, -0.006008870899677277, -0.0045627704821527, -0.052491284906864166, 0.07880599796772003, 0.016265392303466797, -0.045584537088871, 0.0698617547750473, 0.014245168305933475, 0.019321627914905548, -0.0365021638572216, -0.0024562121834605932, 0.06447449326515198, -0.009885283187031746, 0.000565489986911416, -0.012414880096912384, -0.03688203543424606, 0.019632430747151375, 0.03684750199317932, 0.06582131236791611, 0.0663047805428505, 0.014409203082323074, -0.06019230931997299, 0.009082374162971973, 0.01516894530504942, -0.031045833602547646, 0.03479274362325668, 0.017594940960407257, -0.027937795966863632, -0.001996481791138649, 0.007217551581561565, 0.03439560532569885, -0.056842535734176636, -0.015902787446975708, -0.054356109350919724, 0.0508681982755661, 0.008732719346880913, 0.004614571109414101, -0.015246646478772163, -0.002956951502710581, -0.09441524744033813, -0.01781941018998623, 0.024570755660533905, 0.0018270506989210844, 0.015177578665316105, -0.007990243844687939, -0.03802165016531944, 0.0070707835257053375, -0.0012140767648816109, 0.06716812402009964, -0.014124300330877304, -0.03999007120728493, 0.001019284944050014, 0.01599775440990925, -0.01606682315468788, 0.022688668221235275, -0.07148484140634537, 0.045273732393980026, -0.045239198952913284, 0.08771570026874542, -0.03829791769385338, 0.04123328626155853, 0.04396145045757294, -0.03695110231637955, -0.008439183235168457, -0.0038807292003184557, -0.022844068706035614, -0.05825842171907425, 0.051317136734724045, 0.013882563449442387, -0.01073135994374752, 0.04416865482926369, 0.03016522154211998, 0.05691160261631012, 0.03474094346165657, -0.04292543977499008, 0.012164509855210781, -0.051317136734724045, -0.007187334820628166, 0.021911658346652985, 0.003159837331622839, 0.024242686107754707, 0.008482350036501884, 0.09020213037729263, -0.005633316468447447, 0.004208799451589584, -0.046206146478652954, 0.04862350597977638, -0.049970321357250214, 0.010990362614393234, 0.10070038586854935, -0.017681274563074112, -0.08667968958616257, -0.019028091803193092, -0.007813259027898312, 0.022671401500701904, 0.015773285180330276, 0.011016263626515865, 0.05556478723883629, -0.005913903005421162, -0.019580630585551262, -0.0569806732237339, 0.08184496313333511, 0.039161261171102524, 0.05774041265249252, -0.002997960429638624, 0.023638345301151276, 0.027178054675459862, 0.0508681982755661, -0.05155887454748154, -0.035604286938905716, -0.042027562856674194, -0.05594465881586075, -0.001614452339708805, -0.0015248805284500122, 0.010748626664280891, -0.0019144642865285277, 0.012846551835536957, 0.02714351937174797, 0.06951642036437988, 0.009358643554151058, -0.010308321565389633, 0.03380853310227394, 0.009591746143996716, -0.0006669328431598842, 0.033290524035692215, -0.04026634246110916, 0.021877124905586243, -0.026884516701102257, -0.01785394363105297, 0.019649697467684746, 0.017923010513186455, -0.031943708658218384, -0.005158477462828159, 0.006988765671849251, 0.07079416513442993, 0.018700020387768745, 0.03895406052470207, -0.01705966703593731, -0.04323624446988106, -0.06872214376926422, 0.007113950327038765, 0.00317710405215621, -0.04993578791618347, -0.08094708621501923, -0.07314246147871017, 0.020841112360358238, -0.03127030283212662, -0.027437057346105576, -0.0045066531747579575, 0.05173154175281525, 0.054943181574344635, 0.012777484022080898, 0.04627521336078644, 0.038781389594078064, 0.01863095350563526, -0.006276507396250963, 0.03681296855211258, 0.049452316015958786, -0.0016274024965241551, -0.011422034353017807, 0.049417782574892044, -0.0706905648112297, -0.014271068386733532, -0.01606682315468788, 0.030078887939453125, -0.03182284161448479, 0.021307317540049553, 0.020944714546203613, -0.018285615369677544, 0.04686228558421135, -0.011145764961838722, -0.03664029762148857, 0.002173467306420207, 0.0360877588391304, -0.015626518055796623, -0.005059192888438702, -0.034412872046232224, -0.0648198276758194, 0.01167240459471941, -0.03152930364012718, 0.047552961856126785, -0.006090888287872076, -0.01857915148139, -0.0012302645482122898, 0.006479393225163221, -0.03950659930706024, 0.005775768309831619, -0.026470111683011055, 0.0037296439986675978, 0.00022487400565296412, 0.03209911286830902, 0.023448409512639046, -0.03057962656021118, -0.029491813853383064, 0.024000950157642365, -0.047552961856126785, 0.05197327956557274, -0.03190917521715164, -0.0025036961305886507, -0.08067081868648529, 0.06305860728025436, -0.013330023735761642, 0.06171179562807083, -0.02942274697124958, -0.025727637112140656, -0.04081888124346733, -0.007795991841703653, 0.00512394355610013, 0.028421267867088318, -0.055702924728393555, 0.0005409386940300465, -0.06033044308423996, 0.048105500638484955, -0.00046647529234178364, -0.021410919725894928, 0.01844101771712303, -0.008430549874901772, -0.005270712077617645, -0.013079654425382614, 0.00140077481046319, 0.031598374247550964, -0.003811661619693041, 0.002581397071480751, -0.013813496567308903, -0.03985193744301796, 0.01620495691895485, 0.01734457165002823, 0.01006658561527729, -0.028576670214533806, 0.04057714343070984, 0.034620076417922974, 0.04289090633392334, -0.002218792913481593, 0.012371712364256382, -0.11347787082195282, 0.0004432729328982532, -0.012622082605957985, -0.014366036280989647, -0.004523919895291328, 0.011439302004873753, -0.019097158685326576, -0.035397082567214966, 0.018130213022232056, 0.030441492795944214, -0.04776016250252724, 0.0013921414501965046, -0.041854891926050186, -0.03287612274289131, -0.028542136773467064, -0.04389238357543945, 0.01704240031540394, -0.000624844862613827, -0.02298220433294773, -0.026107508689165115, 0.0413714200258255, -0.01433150190860033, -0.05048833042383194, 0.008326948620378971, -0.037676312029361725, 0.05919083207845688, 0.021911658346652985, -0.04406505450606346, -0.08750849962234497, 0.013312757015228271, -0.045619070529937744, -0.007485188078135252, 0.08115428686141968, -0.03449920564889908, -0.003207321045920253, 0.008132696151733398, -0.009289575740695, 0.03791804611682892, 0.005275028757750988, -0.053009290248155594, -0.02241239696741104, -0.03833245113492012, 0.012181776575744152, -0.007454971317201853, -0.06050311401486397, 0.0007958948262967169, -0.08757756650447845, -0.06388741731643677, -0.012682516127824783, -0.02388008125126362, -0.012958786450326443, -0.062333401292562485, 0.07314246147871017, 0.022671401500701904, 0.012665249407291412, 0.04233836755156517, 0.03871232271194458, -0.016533028334379196, -0.0035353917628526688, 0.0227922685444355, 0.03170197457075119, -0.023258473724126816, -0.04731122404336929, 0.021773522719740868, 0.010843594558537006, 0.028801139444112778, 0.029837151989340782, -0.013977531343698502, 0.05394170433282852, -0.023189406841993332, -0.01195730734616518, -0.04568813741207123, 0.007351370062679052, -0.01876908726990223, -0.001140692620538175, -0.02369014546275139, 0.030458759516477585, 0.004323192872107029, 0.038781389594078064, -0.0561518631875515, -0.052076879888772964, -0.007269352208822966, 0.010662292130291462, 0.05525398626923561, -0.046551480889320374, -0.03247898444533348, -0.024380821734666824, -0.04154409095644951, 0.0265909805893898, 0.08557461202144623, -0.015203479677438736, -0.014322868548333645, -0.018475551158189774, -0.012760217301547527, -0.017603574320673943, 0.02790326252579689, 0.050557397305965424, 0.03054509311914444, -0.05521945282816887, 0.008629118092358112, 0.042614635080099106, 0.020737512037158012, 0.001834605005569756, 0.07203738391399384, -0.01565241813659668, -0.08509113639593124, -0.02467435784637928, 0.08557461202144623, 0.018458284437656403, -0.045584537088871, 0.042821839451789856, -0.004761339630931616, -0.028248600661754608, -0.027471590787172318, 0.029094675555825233, -0.01563515141606331, -0.0016964699607342482, 0.013675360940396786, 0.016800664365291595, 0.008495300076901913, -0.04078434780240059, -0.06274780631065369, -0.09103094041347504, -0.018941756337881088, 0.015030810609459877, -0.012932885438203812, 0.012104076333343983, -0.0044289520010352135, -0.033894866704940796, -0.00006188419501995668, -0.03601869195699692, 0.012406246736645699, -0.009643547236919403, 0.009065106511116028, -0.008059311658143997, 0.01620495691895485, 0.0440995879471302, -0.033687662333250046, 0.001664094626903534, 0.06236793473362923, 0.000687437248416245, 0.011681037954986095, 0.04340891167521477, 0.040508076548576355, -0.008098161779344082, 0.00801614485681057, 0.039161261171102524, -0.014158833771944046, 0.032755251973867416, 0.05110993608832359, -0.016688430681824684, 0.01882088929414749, -0.011180298402905464, 0.01052415743470192, -0.035362549126148224, 0.016377625986933708, 0.050384726375341415, 0.015911420807242393, -0.08136149495840073, -0.0031792623922228813, -0.009531312622129917, 0.008577317930758, 0.0012237894115969539, 0.03950659930706024, 0.034240204840898514, -0.026608247309923172, 0.022136127576231956, -0.018734553828835487, 0.060848452150821686, 0.06955095380544662, -0.03909219428896904, -0.07162297517061234, -0.03394666686654091, 0.013045120052993298, 0.07058696448802948, 0.004882207605987787, -0.009384543634951115, 0.007908226922154427, 0.03468914330005646, -0.0057671344839036465, 0.01686973311007023, -0.024380821734666824, 0.04209662973880768, 0.01992596872150898, 0.033670395612716675, 0.01014428585767746, 0.014288335107266903, 0.038815923035144806, 0.04106061905622482, 0.005624683108180761, -0.0010468040127307177, 0.0015658893389627337, -0.07542169094085693, 0.025762170553207397, -0.02298220433294773, -0.06285140663385391, -0.03171924129128456, 0.02161812223494053, -0.018320148810744286, -0.011128498241305351, 0.010593225248157978, -0.001193572417832911, -0.02769606001675129, -0.010593225248157978, 0.026504645124077797, -0.07604330033063889, -0.0009399652481079102, -0.011655137874186039, 0.003425315488129854, 0.05725694075226784, -0.024708891287446022, 0.09476058185100555, 0.037469107657670975, -0.03722737357020378, 0.012311278842389584, -0.02615930885076523, -0.02558950148522854, 0.024812493473291397, -0.0565662682056427, -0.0390576608479023, -0.017750343307852745, -0.04140595346689224, 0.0698617547750473, 0.015609250403940678, 0.020409440621733665, 0.011042163707315922, -0.027178054675459862, -0.0275406576693058, -0.0390576608479023, -0.020236771553754807, 0.017733076587319374, 0.034827277064323425, -0.0018162588821724057, -0.028973808512091637, -0.0034188402350991964, 0.04171675816178322, -0.012026375159621239, -0.011257999576628208, -0.019218025729060173, -0.010498257353901863, -0.057774946093559265, -0.033480461686849594, 0.01585962064564228, 0.039541132748126984, 0.06720265746116638, -0.07404033839702606, -0.003800869919359684, -0.018544618040323257, -0.028922008350491524, -0.05200781300663948, -0.014849508181214333, -0.0007462525391019881, -0.01223357766866684, 0.02104831486940384, -0.004215274937450886, 0.06340394914150238, 0.009332743473351002, 0.04195849597454071, -0.029940752312541008, 0.009444978088140488, 0.014296968467533588, -0.016360359266400337, 0.047552961856126785, -0.019874168559908867, -0.023051271215081215, -0.0026137724053114653, 0.03719284012913704, 0.024536222219467163, -0.013554492965340614, -0.0569806732237339, 0.04454852640628815, -0.02767879329621792, 0.038815923035144806, -0.046240679919719696, -0.0645780935883522, 0.06188446283340454, -0.05563385784626007, 0.005542665254324675, -0.01990870200097561, 0.0009421235881745815, -0.019995035603642464, 0.03221997991204262, -0.013511326164007187, -0.091169074177742, 0.01054142415523529, 0.03052782639861107, -0.03456827253103256, -0.05957070365548134, 0.06744439899921417, -0.029923485592007637, 0.00801614485681057, -0.030493292957544327, 0.03016522154211998, 0.0025727637112140656, 0.0012345812283456326, -0.004232541657984257, -0.09448431432247162, 0.014530071057379246, 0.007269352208822966, -0.05791308358311653, 0.005736917722970247, -0.06357661634683609, 0.008115429431200027, 0.031045833602547646, -0.027178054675459862, 0.016265392303466797, -0.037089236080646515, -0.008046361617743969, 0.0178366769105196, 0.01479770801961422, -0.03415387123823166, 0.0042929756455123425, -0.059121765196323395, 0.005905269645154476, -0.013908464461565018, -0.018734553828835487, -0.03000982105731964, 0.000532844802364707, 0.011931407265365124, 0.01422790065407753, 0.01696470007300377, -0.040508076548576355, -0.023051271215081215, 0.02185985818505287, 0.02066844329237938, 0.0569806732237339, 0.009341376833617687, 0.029336413368582726, -0.031166700646281242, 0.06547597050666809, -0.03999007120728493, 0.01895902305841446, 0.09966437518596649, 0.019960502162575722, 0.015626518055796623, 0.025554968044161797, -0.03888499364256859, 0.04993578791618347, -0.016325825825333595, -0.004873574245721102, -0.06578677892684937, 0.00622039008885622, -0.008952871896326542, -0.011767372488975525, -0.014158833771944046, 0.024208152666687965, 0.011491102166473866, -0.009997517801821232, 0.05794761702418327, 0.008007511496543884, 0.013096921145915985, 0.027195321395993233, -0.0014925050782039762, -0.028542136773467064, -0.04140595346689224, 0.005050559528172016, 0.04668961837887764, 0.004310242366045713, -0.03853965550661087, -0.021117381751537323, -0.002242534887045622, 0.0214281864464283, 0.031960975378751755, 0.07466194778680801, 0.04085341468453407, 0.01471137348562479, 0.030441492795944214, -0.02068571001291275, 0.04171675816178322, 0.04917604476213455, -0.0022274262737482786, 0.008309680968523026, 0.07694117724895477, 0.0044116852805018425, -0.025952106341719627, -0.027626993134617805, -0.013416358269751072, -0.07839158922433853, 0.04492839798331261, 0.07286619395017624, -0.028041398152709007, 0.027437057346105576, -0.045239198952913284, 0.0049167415127158165, -0.03265165165066719, 0.041682224720716476, -0.001673807273618877, -0.004418160300701857, 0.056842535734176636, -0.005628999788314104, 0.07590515911579132, 0.010221987031400204, 0.0263837780803442, -0.020823845639824867, 0.0187863539904356, 0.025365032255649567, 0.038470588624477386, -0.02769606001675129, -0.007964343763887882, 0.04758749529719353, 0.03622589260339737, 0.006673645228147507, 0.053043823689222336, -0.0012982528423890471, -0.039368465542793274, 0.019666966050863266, -0.024173619225621223, -0.0016187691362574697, 0.02887020632624626, -0.001023062039166689, -0.008892438374459743, -0.07100137323141098, 0.047138556838035583, -0.046240679919719696, 0.0007257481338456273, -0.0033821482211351395, 0.02223972976207733 ]
21,034
tfields.core
__init__
null
def __init__(self, *items, labels=None): if len(items) == 1 and issubclass(type(items[0]), list): # Container([a, b, ...]) - includes copy constructor items = items[0] if labels is None and issubclass(type(items), Container): labels = items.labels super().__init__(items) self.labels = labels
(self, *items, labels=None)
[ -0.014446134679019451, -0.024311119690537453, -0.011443748138844967, -0.04248970374464989, -0.07899288833141327, 0.039423439651727676, 0.0015502445166930556, 0.02686634287238121, 0.0897248238325119, -0.000538707128725946, -0.015276581980288029, 0.04570198431611061, 0.013789077289402485, -0.008633002638816833, 0.009381318464875221, 0.02757815457880497, 0.02467615157365799, -0.0025757558178156614, 0.026975851505994797, 0.030115125700831413, 0.018306346610188484, 0.04205166548490524, 0.060522276908159256, 0.11673717945814133, 0.026793336495757103, 0.006812406703829765, 0.01954745501279831, 0.005042002070695162, -0.028362972661852837, -0.009527331218123436, -0.00881095603108406, 0.011589760892093182, -0.05037439242005348, 0.035043057054281235, 0.004131704103201628, 0.022777985781431198, -0.05712748318910599, 0.046395547688007355, -0.08089105039834976, 0.06238393858075142, -0.0018890397623181343, -0.059719208627939224, -0.010001872666180134, -0.038948897272348404, 0.05661643669009209, 0.03986147791147232, 0.04384032264351845, -0.046943094581365585, -0.00874707568436861, -0.04351179301738739, -0.0023202334996312857, 0.022631973028182983, 0.012748736888170242, 0.010978332720696926, -0.06212841719388962, 0.1145469918847084, 0.027103614062070847, 0.07154624164104462, -0.015121444128453732, 0.10315799713134766, -0.024822164326906204, 0.033236149698495865, 0.011699270457029343, -0.03593738377094269, 0.001699679414741695, -0.011379867792129517, -0.0641360953450203, -0.004394070710986853, -0.03440425172448158, -0.009554708376526833, 0.018169458955526352, -0.0299691129475832, -0.01009313017129898, 0.03774429112672806, 0.018424982205033302, -0.028746256604790688, -0.019912486895918846, 0.014373128302395344, 0.04927929863333702, -0.00405869772657752, -0.031849026679992676, 0.012721359729766846, -0.022431205958127975, 0.01563248783349991, 0.027906684204936028, -0.005972833372652531, -0.04595750942826271, 0.04935230314731598, -0.020040247589349747, 0.03181252256035805, -0.037306252866983414, 0.006502129603177309, -0.000009544655767967924, 0.03283461183309555, -0.05793055146932602, 0.03044365532696247, 0.027304381132125854, -0.08198615163564682, -0.021080588921904564, 0.04884126037359238, 0.01777704991400242, -0.0481111966073513, -0.009892363101243973, -0.021555129438638687, -0.03854736313223839, -0.018142081797122955, -0.01362481340765953, -0.00958208553493023, 0.017968691885471344, -0.014774663373827934, 0.005699059460312128, 0.01887214556336403, -0.00782080739736557, 0.0376712866127491, -0.024530138820409775, 0.0256434865295887, 0.00010131059389095753, -0.04066454619169235, -0.006712022703140974, -0.06114283204078674, -0.005407033953815699, 0.008436798118054867, 0.0040404461324214935, 0.048074692487716675, 0.04011699929833412, 0.0024479946587234735, -0.014482637867331505, -0.011562383733689785, -0.01473816018551588, -0.011717521585524082, 0.03799981251358986, -0.048366717994213104, -0.07056065648794174, 0.019145919010043144, 0.05880662798881531, -0.045044928789138794, -0.008496115915477276, -0.016964854672551155, -0.06450112164020538, 0.010020123794674873, 0.038912393152713776, -0.025150693953037262, 0.0353168286383152, 0.05504680052399635, -0.04154062271118164, -0.02425636537373066, 0.005115008447319269, -0.01657244563102722, -0.016088778153061867, 0.013524428941309452, -0.034915294498205185, 0.004216117784380913, 0.005730999633669853, 0.04989985004067421, -0.004542364738881588, -0.04957132413983345, -0.026300543919205666, -0.04376731812953949, 0.04179614409804344, 0.028728004544973373, 0.016745835542678833, -0.008099143393337727, -0.011242980137467384, 0.03447725623846054, -0.0607047937810421, 0.01916417106986046, -0.013487925752997398, -0.05011887103319168, -0.0255157258361578, 0.041431114077568054, 0.01954745501279831, -0.08906776458024979, -0.012520591728389263, -0.0058313836343586445, -0.02257721871137619, 0.005010061897337437, 0.006374368444085121, 0.02526020258665085, 0.00033366191200912, -0.04533695429563522, -0.008208652958273888, 0.006000210531055927, -0.020952826365828514, -0.050337888300418854, 0.017092615365982056, 0.000213458071812056, -0.000004282172540115425, 0.05022837966680527, 0.02724962681531906, 0.023982591927051544, 0.04825720936059952, 0.02254071645438671, -0.023562805727124214, -0.00967334397137165, 0.015741998329758644, -0.00702229980379343, -0.018945151939988136, -0.026629071682691574, -0.05336765572428703, 0.0716557502746582, -0.011051339097321033, 0.0029476319905370474, 0.03832834213972092, -0.024876918643712997, 0.025880757719278336, 0.0379268079996109, -0.00006249031139304861, 0.01757628284394741, -0.011954792775213718, -0.06628978252410889, -0.005397908389568329, 0.026136279106140137, -0.004492172971367836, -0.004727162420749664, -0.0038602116983383894, 0.015650739893317223, -0.0698670893907547, -0.057529017329216, -0.0036731327418237925, -0.022431205958127975, 0.06628978252410889, 0.0334734208881855, -0.059171661734580994, 0.018278969451785088, -0.015276581980288029, -0.0074010202661156654, 0.04208816960453987, 0.008988908492028713, 0.054134219884872437, 0.0376712866127491, -0.030972950160503387, -0.06322351098060608, 0.02409210056066513, -0.0088292071595788, -0.010001872666180134, -0.007264133542776108, 0.018680503591895103, -0.04508143290877342, -0.0666913166642189, 0.02383657917380333, 0.005648867692798376, -0.02615453116595745, -0.013606561347842216, -0.02102583274245262, 0.01544997189193964, 0.055594347417354584, 0.0044876099564135075, 0.024329371750354767, -0.02463964931666851, 0.0009382459102198482, -0.0013106924016028643, 0.018397605046629906, 0.006880850065499544, -0.015130569227039814, 0.019912486895918846, -0.041102584451436996, -0.010522042401134968, -0.08833770453929901, 0.009381318464875221, -0.025552228093147278, -0.02370881661772728, -0.0006017321720719337, 0.040007490664720535, 0.08570947498083115, -0.04968083277344704, 0.03206804767251015, 0.019894234836101532, 0.040847063064575195, -0.047527145594358444, 0.030954699963331223, 0.11140771210193634, 0.020843317732214928, 0.08213216066360474, 0.01879913918673992, 0.00458343094214797, -0.01107871625572443, -0.007889250293374062, -0.026720330119132996, -0.06734837591648102, 0.01665457710623741, 0.0601937510073185, -0.008728823624551296, -0.023362036794424057, -0.05438974127173424, 0.042818233370780945, -0.04960782453417778, 0.027067109942436218, 0.05241857096552849, -0.0682244524359703, -0.020040247589349747, 0.00998362060636282, 0.01509406603872776, 0.05844159796833992, 0.005598675925284624, -0.01074106153100729, 0.030425403267145157, -0.03905840590596199, 0.03431299328804016, -0.016964854672551155, -0.01929193176329136, -0.041686635464429855, -0.06680082529783249, 0.001194338547065854, -0.02005849964916706, -0.014373128302395344, -0.033272650092840195, 0.007898376323282719, 0.03621115908026695, 0.008277096785604954, 0.007889250293374062, 0.0381823293864727, 0.09571134299039841, 0.015194449573755264, 0.030553163960576057, -0.04909678176045418, 0.02770591527223587, 0.023234276100993156, -0.02854548953473568, 0.04435136914253235, 0.009280933998525143, -0.03418523073196411, -0.025972014293074608, -0.07008611410856247, -0.011087842285633087, -0.005133260041475296, 0.061690378934144974, 0.04467989504337311, 0.004421447869390249, 0.04537345841526985, 0.04205166548490524, 0.05318513885140419, 0.022942250594496727, 0.00964596588164568, -0.06227442994713783, -0.04895076900720596, -0.05260108783841133, -0.013551807031035423, 0.03560885414481163, 0.015276581980288029, -0.0921340361237526, -0.028016192838549614, -0.03283461183309555, -0.03077218309044838, 0.03580962121486664, -0.00556217273697257, 0.013068139553070068, 0.03199503943324089, -0.012730484828352928, 0.027304381132125854, 0.021336110308766365, 0.009116670116782188, 0.008797267451882362, -0.003958313725888729, -0.0033400412648916245, 0.00846873875707388, -0.02476741001009941, -0.02038702741265297, 0.0035590603947639465, 0.00017567156464792788, -0.04241669923067093, 0.08432235568761826, -0.044752903282642365, 0.01748502440750599, -0.05373268574476242, 0.01941969431936741, -0.010275646112859249, 0.055849868804216385, -0.007332576904445887, -0.025698240846395493, -0.04044552519917488, 0.00967334397137165, -0.0008948983740992844, -0.01996724121272564, -0.014245367608964443, -0.015340462327003479, -0.004321064334362745, -0.04106608033180237, 0.0038533671759068966, -0.07848184555768967, 0.0013163960538804531, -0.028034444898366928, -0.05851460248231888, 0.004672407638281584, -0.015194449573755264, 0.02770591527223587, -0.02035052515566349, 0.0013939653290435672, 0.03732450306415558, 0.04077405482530594, 0.013862083666026592, -0.026683827862143517, -0.043329279869794846, -0.025953764095902443, -0.02993261069059372, -0.05909865349531174, -0.03484228998422623, 0.03524382412433624, 0.016298672184348106, -0.015541230328381062, -0.039751965552568436, -0.005156074650585651, -0.07267783582210541, 0.024493636563420296, 0.002735457383096218, 0.010001872666180134, 0.04540995880961418, 0.014510015025734901, -0.011535005643963814, 0.003883026074618101, 0.014765537343919277, 0.06336952745914459, 0.016964854672551155, 0.008943280205130577, -0.06023025140166283, -0.02248596027493477, -0.01420886442065239, -0.029585830867290497, -0.002870062831789255, -0.003472365206107497, -0.04526394605636597, 0.0035385272931307554, 0.05187102407217026, 0.03119196929037571, 0.001777248689904809, 0.056360915303230286, -0.020076751708984375, -0.001302707358263433, -0.0074010202661156654, 0.072787344455719, -0.033108387142419815, -0.0714002251625061, -0.020569544285535812, -0.05789404734969139, -0.04800168424844742, -0.00197573471814394, -0.0007859591860324144, -0.03560885414481163, -0.05647042393684387, -0.00910298153758049, 0.045044928789138794, 0.010996583849191666, -0.009080166928470135, 0.03064442239701748, -0.008204090408980846, 0.01148025132715702, -0.013004259206354618, -0.04464339464902878, 0.02421986125409603, -0.024876918643712997, -0.03089994378387928, 0.02783367782831192, 0.02993261069059372, 0.07884687930345535, -0.02518719621002674, 0.01631692238152027, -0.04325627163052559, -0.05504680052399635, 0.020971078425645828, 0.014144983142614365, -0.02816220559179783, -0.0006952715921215713, -0.024311119690537453, 0.05070292204618454, -0.0256434865295887, -0.006543195806443691, 0.011188225820660591, 0.019018158316612244, 0.029202546924352646, -0.012922126799821854, 0.032524336129426956, 0.03022463619709015, -0.012648353353142738, 0.02602677047252655, -0.02447538450360298, 0.010467288084328175, 0.0038853075820952654, 0.019620461389422417, -0.060850806534290314, -0.06373456120491028, -0.03568186238408089, -0.028874017298221588, -0.014719909057021141, 0.06866248697042465, -0.0042526209726929665, -0.037306252866983414, -0.004800168797373772, -0.010129633359611034, -0.031009454280138016, 0.005416159983724356, 0.03763478249311447, -0.049461811780929565, 0.0238000750541687, -0.05632441118359566, 0.025406215339899063, 0.02496817708015442, -0.013524428941309452, -0.008418546989560127, 0.013798203319311142, 0.005667119286954403, -0.01532221119850874, 0.04690659046173096, 0.012648353353142738, 0.043913330882787704, -0.026209285482764244, 0.03825533762574196, -0.06530419737100601, 0.009728098288178444, -0.0030959262512624264, -0.02454839088022709, -0.026227537542581558, -0.029330307617783546, -0.006698334123939276, 0.012958629988133907, 0.02518719621002674, -0.019072912633419037, 0.023051761090755463, -0.07245881855487823, 0.033236149698495865, 0.04431486502289772, 0.020971078425645828, 0.04442437365651131, 0.007966820150613785, 0.011106093414127827, -0.028143953531980515, -0.0127578629180789, 0.0018502550665289164, 0.024311119690537453, -0.028947023674845695, 0.03568186238408089, 0.05187102407217026, -0.019310183823108673, -0.025661738589406013, -0.06512168049812317, 0.04019000381231308, -0.05336765572428703, 0.05595938116312027, 0.027559902518987656, 0.013341913931071758, 0.03119196929037571, 0.030845189467072487, 0.04577499255537987, 0.0698670893907547, 0.0818401351571083, -0.027267877012491226, 0.00234989239834249, 0.008131084032356739, -0.03570011258125305, 0.016672829166054726, 0.01509406603872776, 0.03173951804637909, -0.020916324108839035, -0.06888150423765182, -0.07435698062181473, 0.03902190178632736, 0.010759313590824604, 0.004665562883019447, -0.005804006010293961, 0.004914240911602974, 0.024730905890464783, 0.0413581058382988, 0.022212186828255653, 0.040591537952423096, 0.029330307617783546, -0.029202546924352646, 0.017421144992113113, -0.0013118331553414464, 0.0044716401025652885, 0.025698240846395493, 0.018653126433491707, 0.02106233686208725, 0.01219206303358078, -0.05260108783841133, -0.01217381190508604, -0.011352489702403545, 0.008797267451882362, -0.011754024773836136, 0.019364938139915466, 0.01265747845172882, -0.04960782453417778, -0.0837383046746254, -0.05544833466410637, 0.017649289220571518, -0.010248268954455853, -0.04621303081512451, 0.029330307617783546, 0.000031690753530710936, 0.005411596968770027, -0.02266847714781761, -0.049498315900564194, 0.016116155311465263, 0.022339947521686554, 0.02648305892944336, 0.02947632037103176, 0.057529017329216, 0.016718458384275436, -0.03909491002559662, -0.021390864625573158, -0.04646855220198631, -0.03573661670088768, 0.018908649682998657, -0.006319613661617041, 0.036010392010211945, -0.004695221781730652, 0.07074316591024399, 0.0182972215116024, -0.040336016565561295, 0.015595984645187855, -0.022923998534679413, -0.007090743165463209, -0.016453810036182404, 0.028947023674845695, 0.058003559708595276, 0.0570179708302021, -0.015741998329758644, -0.011580634862184525, -0.05895264074206352, -0.05709097906947136, 0.038620367646217346, 0.07599962502717972, -0.011151722632348537, -0.0256434865295887, -0.02796143852174282, -0.030954699963331223, 0.037780795246362686, -0.08154810965061188, -0.034659773111343384, -0.023763572797179222, -0.03916791453957558, 0.007994197309017181, -0.004786479752510786, 0.09279109537601471, -0.03431299328804016, 0.018653126433491707, -0.034203480929136276, -0.006721148733049631, -0.01651769131422043, -0.011708396486938, 0.008226905018091202, 0.018105579540133476, 0.07621864974498749, -0.04190565273165703, -0.05793055146932602, -0.013013385236263275, 0.041978660970926285, -0.012666604481637478, -0.11257581412792206, -0.02770591527223587, -0.03418523073196411, 0.04234369099140167, 0.02673858217895031, 0.007496841251850128, 0.07461250573396683, -0.008518930524587631, 0.030297642573714256, -0.00249134236946702, 0.03732450306415558, 0.031849026679992676, 0.034459006041288376, -0.008678631857037544, -0.023763572797179222, -0.01002924982458353, -0.010841445066034794, 0.08169412612915039, 0.032396573573350906, 0.04931579902768135, -0.029859604313969612, 0.018096452578902245, -0.05088543891906738, -0.0036092521622776985, 0.020496537908911705, -0.012164685875177383, -0.01941969431936741, -0.032688599079847336, 0.022212186828255653, 0.001066007069312036, 0.002648762194439769, 0.0043370346538722515, 0.007218504324555397, 0.06968457996845245, -0.02219393476843834, -0.005201703403145075, -0.032013293355703354, -0.0721667930483818, -0.006830658297985792, -0.03560885414481163, -0.006899101659655571, -0.017348138615489006, 0.004941618535667658, 0.010531168431043625, -0.06774991005659103, 0.03044365532696247, 0.009034537710249424, 0.04617652669548988, 0.01853449083864689, -0.05438974127173424, 0.056944966316223145, -0.050009362399578094, -0.07731374353170395, 0.023307282477617264, 0.02228519320487976, 0.03277985751628876, -0.0014384535606950521, -0.031976789236068726, 0.03610164672136307, 0.018050823360681534, 0.03181252256035805, -0.05672594532370567, 0.020131506025791168, 0.0510314516723156, -0.00876532681286335, 0.001752152806147933, 0.0941782146692276, 0.03577312082052231, -0.05840509384870529, -0.02480391226708889, -0.019182423129677773, 0.0703781396150589, 0.0014783788938075304, -0.061106327921152115, -0.003972002770751715, -0.00447620265185833, 0.007679357193410397, 0.0369047187268734, 0.05661643669009209, -0.006000210531055927, -0.003048015758395195, 0.016764087602496147, -0.02993261069059372, 0.015705494210124016, -0.017986943945288658, 0.04040902480483055, 0.02476741001009941, -0.022723231464624405, -0.009454324841499329, -0.03376544266939163, -0.024712655693292618, 0.009276371449232101, 0.011270358227193356, 0.03413047641515732, 0.0470891073346138, 0.03832834213972092, -0.018178585916757584, 0.036813460290431976, 0.07023212313652039, -0.08899476379156113, -0.058040060102939606, 0.026172783225774765, 0.03093644790351391, 0.008733386173844337, -0.02770591527223587, 0.01711086742579937, 0.025570480152964592, -0.086293525993824, 0.014281870797276497, 0.05544833466410637, -0.036466680467128754, 0.001091102953068912, -0.015240078791975975, -0.03476928174495697, -0.047819171100854874, -0.0072504449635744095, -0.04935230314731598, 0.05960969999432564, 0.007784303743392229, -0.003967439755797386, 0.045008424669504166, -0.010303023271262646, 0.012712233699858189 ]
21,035
tfields.core
__setitem__
null
def __setitem__(self, index, value): if isinstance(index, str): if not hasattr(value, "name"): raise TypeError( f"Value type {type(value)} does not support the 'name' field" ) # We could set value.name = index but that would be very confusing since we do not copy assert ( value.name == index ), "We do not dynamically want to change the name of a tensor" for i, field in enumerate(self): if hasattr(field, "name") and field.name == index: index = i break else: self.append(value) return super().__setitem__(index, value)
(self, index, value)
[ -0.019582917913794518, -0.03293091431260109, -0.05356762185692787, 0.0026213007513433695, -0.03129754215478897, 0.03684749826788902, -0.03639085590839386, 0.03691774979233742, 0.0519518107175827, -0.008241510018706322, -0.017405087128281593, 0.011117476969957352, 0.01441934984177351, -0.011995634995400906, 0.037550024688243866, -0.025958342477679253, 0.07580257952213287, 0.054024264216423035, -0.004908901639282703, -0.0074687316082417965, 0.009923182427883148, -0.012979171238839626, 0.040887024253606796, 0.00513283209875226, 0.010678398422896862, 0.009150403551757336, 0.017405087128281593, 0.02732826955616474, 0.026414984837174416, -0.002671794965863228, -0.05311097949743271, -0.06463240832090378, -0.01089793723076582, 0.012215173803269863, 0.05620209500193596, -0.0495280958712101, -0.06962034851312637, -0.005716806743294001, 0.026186663657426834, 0.021953944116830826, 0.07699687033891678, -0.035705894231796265, -0.05964447557926178, -0.04468066617846489, 0.027749784290790558, 0.06698587536811829, -0.027029694989323616, 0.0669156163930893, 0.02685406431555748, -0.005308463703840971, -0.06579157710075378, -0.003769492032006383, 0.0021383140701800585, -0.003982445225119591, -0.026397421956062317, 0.023481937125325203, 0.018511565402150154, 0.00011971759522566572, 0.02920752577483654, 0.05672898888587952, 0.009378724731504917, -0.020478637889027596, -0.022867226973176003, -0.022744284942746162, -0.01831836998462677, -0.0370933823287487, 0.008311763405799866, -0.008329326286911964, 0.004357857629656792, -0.012390805408358574, -0.006191011983901262, -0.032386455684900284, 0.03797154128551483, -0.044996801763772964, -0.007503857836127281, 0.0532514862716198, -0.024693796411156654, 0.06213844195008278, 0.031121909618377686, -0.005027452949434519, 0.005655335728079081, 0.040641140192747116, -0.02500993199646473, 0.003139413893222809, -0.06463240832090378, 0.041413918137550354, -0.03800666704773903, -0.002388589084148407, -0.005712416023015976, -0.043872762471437454, -0.009405069053173065, -0.017413867637515068, 0.001220639212988317, -0.0009418241679668427, -0.030366694554686546, -0.04987936094403267, 0.04591008648276329, -0.11985097080469131, -0.029611479490995407, 0.062173567712306976, 0.01879257522523403, 0.01355875562876463, 0.029031895101070404, -0.024922117590904236, -0.04158955067396164, -0.05595621094107628, 0.0004445673548616469, -0.005931955762207508, -0.014761831611394882, -0.019512664526700974, 0.026906752958893776, 0.0333699956536293, 0.001774976379238069, -0.010010998696088791, 0.003960491623729467, -0.003156977007165551, 0.012144921347498894, -0.0383579283952713, 0.002717898227274418, 0.0040483069606125355, 0.05620209500193596, 0.027890289202332497, 0.012197610922157764, 0.08697274327278137, 0.0028737711254507303, 0.03574101999402046, 0.005198693834245205, 0.021216291934251785, 0.03969272971153259, -0.04418889805674553, -0.048333801329135895, -0.02697700634598732, -0.038182299584150314, 0.046577487140893936, 0.07692661881446838, 0.03610984608530998, 0.01447203941643238, -0.002772783162072301, -0.04046550765633583, 0.00537871615961194, 0.01674646884202957, -0.03055988997220993, 0.03437109291553497, 0.014270063489675522, 0.035969339311122894, -0.009615827351808548, -0.02277941256761551, 0.033721257001161575, -0.028680631890892982, -0.032228387892246246, -0.060101114213466644, 0.06515930593013763, -0.0006838653353042901, 0.015912218019366264, -0.03194737806916237, 0.004636672791093588, -0.06498367339372635, -0.019495101645588875, 0.020706959068775177, 0.034195464104413986, 0.017413867637515068, -0.024693796411156654, -0.015183347277343273, 0.0216378066688776, -0.04619109630584717, 0.05423502251505852, 0.03800666704773903, -0.0333699956536293, -0.05887169390916824, 0.03142048418521881, 0.00692866463214159, -0.04134366661310196, 0.006660826504230499, 0.0743272677063942, -0.00547970412299037, -0.004155881702899933, -0.031034095212817192, 0.06027674674987793, 0.017659751698374748, -0.03416033461689949, -0.0036663084756582975, -0.0003655331674963236, -0.028557689860463142, -0.028522564098238945, -0.017106512561440468, -0.02263890579342842, -0.019600480794906616, 0.06698587536811829, 0.07713737338781357, 0.09146890789270401, 0.03243914619088173, -0.027767347171902657, 0.00671351607888937, -0.030384257435798645, 0.04390788823366165, 0.012039542198181152, -0.00535676209256053, -0.0031306324526667595, 0.013778295367956161, 0.08212531358003616, 0.012461058795452118, -0.002151486463844776, 0.022691596299409866, 0.02460598014295101, 0.0029528054874390364, -0.029014332219958305, 0.0916094183921814, -0.011372142471373081, -0.03934146836400032, -0.007613627705723047, -0.00010970111179631203, 0.027539025992155075, 0.01956535503268242, 0.04471579194068909, 0.021602680906653404, -0.06744251400232315, -0.07341399043798447, -0.04109778255224228, 0.04728001356124878, 0.013444595038890839, 0.08114177733659744, 0.04728001356124878, 0.03229864314198494, 0.018722323700785637, 0.019495101645588875, -0.05880144238471985, -0.002871575765311718, -0.08107152581214905, -0.029734421521425247, 0.030384257435798645, 0.002957196207717061, 0.042011067271232605, -0.017369959503412247, -0.017387522384524345, 0.019512664526700974, 0.0408167727291584, -0.008101005107164383, -0.06944471597671509, 0.026889190077781677, 0.035091184079647064, -0.019284343346953392, 0.010221756063401699, -0.03454672545194626, 0.04095727577805519, -0.038919951766729355, 0.025536827743053436, 0.007073560729622841, 0.06849630177021027, -0.051530297845602036, 0.00513283209875226, 0.0019231654005125165, 0.036566488444805145, -0.009431414306163788, 0.013778295367956161, -0.010783776640892029, 0.0028584033716470003, -0.03054232709109783, 0.010221756063401699, 0.011907818727195263, -0.058485306799411774, -0.08627021312713623, -0.0408518984913826, 0.03142048418521881, -0.008386406116187572, -0.035705894231796265, -0.0643514022231102, 0.04120315983891487, 0.08936133235692978, -0.04260821267962456, 0.04464554041624069, 0.0059539093635976315, 0.02390345372259617, -0.017141638323664665, -0.0064237238839268684, 0.034458909183740616, -0.02745121158659458, 0.024834301322698593, 0.06842605024576187, -0.05774765461683273, -0.0055016581900417805, 0.043380990624427795, -0.03324705362319946, -0.008386406116187572, -0.005290900357067585, 0.0007782672764733434, 0.002109773922711611, 0.02053132839500904, 0.010915501043200493, -0.02732826955616474, -0.011547774076461792, 0.02300773188471794, 0.0074819037690758705, -0.046085719019174576, 0.04197594150900841, -0.0408518984913826, 0.0016443503554910421, -0.0866214781999588, 0.06027674674987793, -0.016491802409291267, 0.020970406010746956, 0.022972606122493744, 0.02771465852856636, -0.04678824543952942, 0.00718333013355732, -0.001029091072268784, -0.07081463932991028, 0.01434909738600254, 0.04180030897259712, -0.003679480869323015, -0.020970406010746956, 0.02436009608209133, 0.053286612033843994, -0.09680810570716858, 0.0482635498046875, 0.10010997951030731, 0.028399622067809105, -0.02573002129793167, -0.017185546457767487, 0.007538984064012766, 0.0718333050608635, -0.039165835827589035, -0.07320322841405869, -0.1101561039686203, -0.028153738006949425, 0.010133940726518631, -0.01144239492714405, 0.031157037243247032, -0.012724505737423897, -0.053146105259656906, 0.03758515045046806, -0.03437109291553497, -0.03438865765929222, -0.00040505026117898524, 0.030103247612714767, -0.044013265520334244, -0.008109786547720432, -0.021233854815363884, 0.020619144663214684, 0.0028627943247556686, 0.01684306561946869, -0.015051623806357384, 0.012742068618535995, -0.039165835827589035, 0.012557655572891235, 0.015192128717899323, -0.028259115293622017, 0.024711359292268753, 0.028188863769173622, 0.0494929701089859, 0.06603746116161346, -0.005892438348382711, -0.05715050548315048, -0.01931947097182274, -0.03503849357366562, 0.025800274685025215, 0.022375458851456642, -0.010309572331607342, -0.040043994784355164, -0.06178717687726021, -0.04987936094403267, 0.01993418112397194, -0.033598314970731735, 0.046612612903118134, 0.0005164665053598583, -0.01931947097182274, 0.00020334840519353747, -0.01670256070792675, 0.04032500460743904, 0.014155902899801731, -0.04218669608235359, -0.011047224514186382, -0.014928681775927544, 0.0290670208632946, 0.022937480360269547, 0.008320544846355915, 0.01582440175116062, 0.01693088188767433, -0.00024341435346286744, -0.057853031903505325, -0.12357435375452042, 0.03366856649518013, -0.03588152676820755, 0.020566454157233238, 0.04000886529684067, 0.001298575778491795, 0.014814521186053753, 0.04345124587416649, -0.01744021289050579, 0.025835400447249413, 0.012671816162765026, -0.017343616113066673, -0.004382007289677858, -0.008074660785496235, 0.0024456693790853024, -0.01895064488053322, -0.04025474935770035, -0.01844131201505661, -0.031034095212817192, -0.062314074486494064, -0.019863927736878395, -0.02650280110538006, -0.03747977316379547, -0.02931290492415428, 0.07193867862224579, 0.028750885277986526, -0.011170166544616222, 0.01454229187220335, 0.07397601008415222, -0.0022228367161005735, -0.01026566419750452, 0.0012722309911623597, -0.005892438348382711, 0.005242601502686739, -0.03863894194364548, 0.05750177055597305, -0.005088923964649439, 0.0060812425799667835, -0.0544106550514698, 0.011872692964971066, 0.049668602645397186, -0.03565320372581482, 0.056272346526384354, -0.03019106388092041, 0.058239422738552094, -0.007073560729622841, 0.003418229054659605, -0.012803539633750916, -0.003216252662241459, -0.010537892580032349, 0.03331730514764786, -0.023481937125325203, -0.03653136268258095, 0.03951709717512131, 0.01744021289050579, 0.00023998404503799975, -0.05360274761915207, 0.0003537329030223191, -0.05184643343091011, -0.05553469434380531, 0.04123828932642937, 0.039657603949308395, -0.010300789959728718, -0.03454672545194626, 0.0020384236704558134, -0.035705894231796265, 0.0023468765430152416, -0.021585118025541306, 0.029804673045873642, -0.00996709056198597, -0.04060601443052292, 0.03649623692035675, 0.03986836224794388, 0.009326035156846046, 0.02313067577779293, 0.04520756006240845, -0.007310663349926472, -0.07938545942306519, -0.07980697602033615, 0.09196067601442337, 0.007337008137255907, -0.009791458956897259, 0.05398913845419884, 0.0040658703073859215, -0.026327168568968773, -0.017589500173926353, 0.0061075869016349316, 0.033229488879442215, -0.02005712315440178, 0.03142048418521881, -0.010502766817808151, 0.013093331828713417, -0.038919951766729355, -0.015754150226712227, -0.08802653104066849, -0.06909345090389252, -0.016219573095440865, -0.009642171673476696, 0.004199789371341467, -0.03106922097504139, -0.029242653399705887, -0.01082768477499485, -0.036215223371982574, 0.014753050170838833, 0.019723422825336456, 0.015912218019366264, 0.04615597054362297, 0.0073896972462534904, 0.018968207761645317, 0.04713950678706169, 0.03635573014616966, 0.0013271159259602427, -0.0421164445579052, -0.0023666350170969963, 0.054516032338142395, 0.008043925277888775, 0.0011833175085484982, -0.025431448593735695, 0.011881474405527115, -0.025413885712623596, 0.03055988997220993, 0.023200927302241325, -0.02053132839500904, -0.012390805408358574, 0.002120750956237316, 0.04032500460743904, -0.020636707544326782, 0.03133266791701317, 0.016711341217160225, -0.03877944499254227, -0.08683224022388458, 0.018037360161542892, 0.008785968646407127, -0.002880357438698411, 0.0038024228997528553, 0.04569932818412781, -0.01684306561946869, -0.062419451773166656, 0.030595015734434128, -0.019512664526700974, 0.01347972173243761, 0.037550024688243866, -0.03698800504207611, -0.031086783856153488, -0.03698800504207611, -0.0056114280596375465, 0.009554356336593628, -0.021339233964681625, -0.04801766574382782, 0.034458909183740616, 0.06213844195008278, -0.03031400591135025, 0.038182299584150314, -0.009053805842995644, 0.04148417338728905, 0.03194737806916237, 0.04921196028590202, 0.08837779611349106, 0.01416468434035778, 0.07488929480314255, 0.009290908463299274, -0.049317337572574615, 0.022726722061634064, 0.02399126999080181, -0.11697061359882355, -0.004171249456703663, -0.0018726714188233018, -0.049914486706256866, -0.03538975864648819, 0.028065921738743782, -0.06666973233222961, -0.04366200417280197, 0.007042825222015381, -0.01693088188767433, -0.026169100776314735, -0.04359174892306328, -0.003982445225119591, -0.027222890406847, -0.025940779596567154, 0.004645454231649637, 0.01866963319480419, 0.027503900229930878, -0.00544896861538291, 0.12041299045085907, 0.04320536181330681, 0.025554390624165535, 0.04134366661310196, -0.06825041770935059, -0.051916684955358505, 0.04173005744814873, -0.04109778255224228, 0.009229437448084354, -0.03821742534637451, 0.01447203941643238, 0.00978267751634121, -0.02191881649196148, 0.009053805842995644, 0.03333486616611481, 0.01405052375048399, -0.043486371636390686, -0.04366200417280197, -0.035091184079647064, 0.06459728628396988, 0.01014272216707468, -0.015499483793973923, 0.04134366661310196, 0.0291021466255188, 0.0284523107111454, 0.0705336332321167, -0.016263481229543686, 0.025343632325530052, -0.04130854085087776, 0.0005587278865277767, -0.0038726755883544683, -0.009457758627831936, 0.02871575765311718, 0.015850747004151344, -0.06849630177021027, -0.034213025122880936, 0.00005999601125949994, -0.011767313815653324, -0.02859281562268734, -0.028434747830033302, -0.03811204433441162, 0.006230529397726059, -0.03762027621269226, -0.023921016603708267, 0.00965973548591137, 0.037304140627384186, 0.022129574790596962, -0.035477571189403534, 0.045348066836595535, 0.038919951766729355, -0.011661934666335583, 0.0010658639948815107, -0.007859512232244015, -0.03762027621269226, -0.023850765079259872, 0.03191225230693817, 0.025027494877576828, -0.02114603854715824, -0.0009517034632153809, 0.034213025122880936, -0.024184463545680046, -0.008496176451444626, -0.04194081202149391, -0.07594308257102966, 0.020004432648420334, -0.03454672545194626, -0.002557634375989437, -0.058977074921131134, -0.003080138238146901, -0.039552222937345505, -0.028276680037379265, -0.04738539084792137, -0.05258408561348915, -0.005686071235686541, -0.011337016709148884, -0.016245918348431587, 0.01430518925189972, 0.043486371636390686, 0.006397379096597433, -0.02697700634598732, 0.019249217584729195, 0.037936415523290634, -0.008307372219860554, 0.01082768477499485, 0.0035675158724188805, -0.08128228038549423, -0.012654253281652927, 0.02695944346487522, -0.023938579484820366, 0.00129089190158993, -0.016245918348431587, -0.012513747438788414, 0.08247657865285873, 0.03625035285949707, 0.004360053222626448, -0.018599381670355797, -0.00528650963678956, 0.014691579155623913, 0.0003304068522993475, -0.04123828932642937, -0.005949518643319607, -0.018985770642757416, 0.04222182556986809, 0.026256917044520378, 0.007069170009344816, -0.022322770208120346, 0.00023202573356684297, 0.03790128976106644, -0.02460598014295101, -0.04787715896964073, -0.04513730853796005, -0.016070285812020302, 0.0644216537475586, -0.034476473927497864, 0.035705894231796265, 0.02711751125752926, 0.03512630984187126, -0.017914418131113052, -0.023183364421129227, -0.018599381670355797, 0.02202419564127922, 0.08008798956871033, -0.002667404245585203, 0.04963347688317299, 0.007271145936101675, 0.020338132977485657, 0.03698800504207611, -0.042256951332092285, -0.0032272296957671642, -0.04057088866829872, -0.007789259310811758, 0.028399622067809105, -0.046823371201753616, 0.0001638312969589606, 0.022182265296578407, -0.03814717382192612, -0.016465457156300545, 0.028803573921322823, 0.013031860813498497, 0.037444647401571274, -0.014498384669423103, -0.04879044368863106, 0.008188821375370026, -0.01653571054339409, -0.00038446843973360956, 0.007591673638671637, 0.024570854380726814, -0.027416083961725235, 0.007569719571620226, 0.02090015448629856, -0.013778295367956161, 0.005879266187548637, 0.008483003824949265, 0.005589473992586136, 0.012364461086690426, -0.006880365777760744, -0.03888482600450516, 0.05131953954696655, 0.039060454815626144, 0.006981354206800461, 0.04619109630584717, 0.02957635186612606, -0.025905653834342957, -0.029646605253219604, 0.008742060512304306, -0.004436891991645098, -0.029172400012612343, 0.012663034722208977, 0.05655336007475853, 0.06178717687726021, 0.04057088866829872, -0.018845265731215477, 0.02005712315440178, -0.021831002086400986, 0.04074651747941971, -0.00124478864017874, -0.002656427212059498, 0.07769940048456192, 0.019653169438242912, 0.02773222140967846, -0.025290943682193756, 0.008355670608580112, 0.009009898640215397, -0.014963807538151741, 0.01817786507308483, 0.04489142447710037, -0.014191028662025928, 0.03272015601396561, 0.05163567513227463, 0.026011032983660698, -0.06955008953809738, 0.03133266791701317, 0.05799353867769241, -0.07573232054710388, 0.0767861157655716, -0.015025278553366661, 0.011556555517017841, -0.04489142447710037, -0.020021997392177582, -0.008430314250290394, -0.0038529171142727137, -0.002327118068933487, -0.04626135155558586, 0.03257965296506882, -0.008052706718444824, 0.00544896861538291 ]
21,036
tfields.core
__setstate__
null
def __setstate__(self, state): self.__dict__ = state
(self, state)
[ -0.006016523577272892, 0.0028331084176898003, 0.029215607792139053, 0.008315414190292358, -0.03695739433169365, -0.012777449563145638, -0.03383966162800789, 0.036431934684515, 0.02269989810883999, -0.04046046361327171, -0.056679680943489075, 0.05296642705798149, -0.000020012659661006182, 0.05997256934642792, -0.0710422694683075, 0.018811488524079323, 0.011148521676659584, 0.023382995277643204, -0.04862261936068535, -0.028182202950119972, -0.009764809161424637, -0.0034417668357491493, 0.06533226370811462, 0.05629434436559677, -0.021981768310070038, -0.009598413482308388, -0.03110726736485958, -0.025046953931450844, 0.06028784438967705, -0.010588030330836773, -0.02040538564324379, -0.029846161603927612, -0.005197681020945311, 0.01451146975159645, 0.02853251062333584, -0.03219321742653847, -0.023540634661912918, 0.03266613185405731, -0.008678857237100601, 0.003989121410995722, -0.01400352455675602, -0.0013629134045913815, -0.03779813274741173, 0.016709646210074425, 0.04161647707223892, 0.04403359815478325, 0.033874690532684326, 0.02674594335258007, 0.045855194330215454, -0.039304450154304504, 0.021368730813264847, -0.006182919722050428, 0.008477430790662766, 0.015597421675920486, -0.028812754899263382, 0.01947707310318947, 0.04077574238181114, 0.037622977048158646, 0.004019773565232754, 0.015492329373955727, -0.0572752021253109, -0.00572752021253109, 0.0022485333029180765, -0.07314411550760269, -0.020633084699511528, -0.0378681942820549, -0.037728071212768555, 0.0470462366938591, -0.012050562538206577, 0.02571253851056099, 0.006463165394961834, 0.0033651371486485004, 0.03173781931400299, 0.0045846435241401196, -0.051249921321868896, 0.020352840423583984, -0.09430266171693802, 0.03291134908795357, -0.023347964510321617, -0.021158546209335327, -0.012742418795824051, 0.008569386787712574, -0.028374871239066124, 0.06161900982260704, -0.05902674049139023, -0.02425876446068287, 0.016455674543976784, 0.00010632366320351139, -0.02840990200638771, -0.023242874071002007, -0.004663462750613689, 0.06533226370811462, -0.004514581989496946, 0.023768333718180656, 0.006217950023710728, 0.0022507228422909975, -0.0033279170747846365, 0.012418384663760662, -0.013548125512897968, -0.020633084699511528, -0.060638152062892914, -0.059902507811784744, -0.021298669278621674, -0.032105643302202225, -0.011638951487839222, -0.060533057898283005, 0.005915810354053974, -0.06151391938328743, 0.007251356262713671, -0.04592525586485863, 0.0017471564933657646, 0.015851395204663277, -0.041896723210811615, 0.0322282500565052, 0.020020049065351486, 0.016919830814003944, 0.01621921733021736, -0.06046299636363983, -0.006073448807001114, 0.00977356731891632, 0.016394369304180145, 0.035661257803440094, -0.008858389221131802, 0.05745035782456398, 0.016858527436852455, 0.03550361841917038, -0.010763184167444706, 0.04476924240589142, 0.06732901930809021, -0.05569882318377495, -0.026588305830955505, -0.005399107467383146, -0.016753435134887695, 0.05415746942162514, 0.029723552986979485, 0.02269989810883999, -0.007829362526535988, -0.0207031462341547, -0.03341929242014885, 0.02194673754274845, 0.0017416828777641058, 0.008459915407001972, 0.013583156280219555, 0.01727013848721981, 0.08617553859949112, 0.028129655867815018, -0.0006245318218134344, 0.023435542359948158, -0.01861882023513317, 0.020755693316459656, 0.04130120202898979, -0.01701616495847702, 0.023277902975678444, 0.012584781274199486, -0.06739907711744308, 0.029933737590909004, -0.02206934429705143, -0.026273028925061226, -0.0032863181550055742, 0.021158546209335327, 0.00009606076491763815, -0.02371578849852085, -0.028690148144960403, -0.03510076552629471, -0.016254248097538948, 0.03531095013022423, -0.002014265628531575, -0.06109355017542839, -0.02196425199508667, -0.032315824180841446, -0.06277502328157425, -0.09500327706336975, -0.04046046361327171, 0.061128582805395126, -0.00810960866510868, 0.06161900982260704, 0.004654705058783293, 0.005872021894901991, -0.02371578849852085, -0.007014898583292961, 0.03863886743783951, -0.02080823853611946, -0.08862768858671188, 0.05674974247813225, 0.01800578273832798, -0.022524744272232056, -0.01823348179459572, 0.022121891379356384, 0.05387722700834274, 0.046906113624572754, 0.029793614521622658, -0.019442042335867882, -0.024731678888201714, -0.02205182984471321, -0.01663958467543125, 0.0114024942740798, -0.04452402517199516, -0.08106105029582977, 0.043578196316957474, 0.07244350016117096, 0.010491696186363697, -0.024171186611056328, 0.0017000839579850435, -0.0028878438752144575, 0.01958216354250908, 0.0043678912334144115, -0.0050488002598285675, -0.02017768658697605, 0.05296642705798149, -0.026465697214007378, -0.010123874060809612, -0.043017707765102386, 0.0018971316749230027, 0.03664211928844452, 0.03454027697443962, -0.08799713104963303, 0.04133623093366623, 0.01035157311707735, 0.0470462366938591, 0.02394348755478859, 0.08379344642162323, 0.04165150970220566, -0.009353198111057281, -0.07079705595970154, -0.03629181161522865, -0.005083831027150154, -0.018706396222114563, -0.07195306569337845, -0.05160022899508476, -0.003787694964557886, -0.015168295241892338, -0.010263997130095959, 0.012882541865110397, -0.003789884503930807, 0.05026906356215477, 0.03685230389237404, 0.006450028624385595, -0.03487306833267212, -0.08771688491106033, 0.03061683662235737, 0.006051554344594479, 0.004212442319840193, 0.04862261936068535, -0.02506447024643421, -0.038568805903196335, 0.006874775979667902, 0.017891932278871536, 0.07846877723932266, -0.0668385848402977, 0.0038708930369466543, -0.001511793932877481, -0.05244096741080284, -0.04627556353807449, -0.008078956045210361, 0.03319159522652626, -0.025852661579847336, 0.02383839525282383, 0.03797328472137451, -0.01040411926805973, 0.008880283683538437, -0.007601663004606962, -0.051565200090408325, -0.025432292371988297, 0.011323675513267517, 0.0622495636343956, 0.03431257605552673, 0.04235212132334709, 0.009563382714986801, -0.051880475133657455, -0.0002690248657017946, 0.13591913878917694, -0.021403761580586433, -0.02215692214667797, 0.06175913289189339, -0.0272538885474205, -0.06501699239015579, 0.002257290994748473, -0.035976532846689224, -0.06508705019950867, -0.032508496195077896, 0.10046806186437607, 0.019004158675670624, 0.03187794238328934, 0.06098845973610878, -0.03298141062259674, -0.018075844272971153, -0.012996391393244267, 0.06823981553316116, 0.026185452938079834, -0.024101125076413155, 0.040215250104665756, 0.025747569277882576, 0.018811488524079323, 0.023172812536358833, 0.05139004439115524, -0.020107625052332878, -0.10285015404224396, 0.05755544826388359, -0.001685852650552988, 0.039304450154304504, 0.03926942124962807, -0.03965475782752037, -0.053737103939056396, 0.0720931887626648, 0.0026163558941334486, -0.008880283683538437, 0.03779813274741173, 0.04883280396461487, 0.017051195725798607, 0.004227768164128065, 0.05415746942162514, 0.035030703991651535, -0.07671724259853363, 0.04203684628009796, 0.03860383853316307, -0.06869520992040634, -0.014844261109828949, -0.06494692713022232, -0.008678857237100601, 0.08232215791940689, -0.06210944056510925, -0.07160276174545288, -0.04627556353807449, -0.005644322372972965, -0.003564374288544059, 0.013565640896558762, 0.028059594333171844, 0.02914554625749588, 0.009869901463389397, -0.01218192745000124, -0.08834744244813919, -0.004825479816645384, 0.04900795593857765, 0.015763817355036736, -0.050934646278619766, -0.03494312986731529, -0.00752284424379468, -0.025117015466094017, -0.008346065878868103, -0.04518961161375046, 0.03426003083586693, 0.03905923664569855, -0.056469496339559555, -0.020563025027513504, -0.007715512998402119, 0.014695380814373493, -0.029215607792139053, -0.004063562024384737, 0.08120117336511612, -0.016254248097538948, -0.07972988486289978, -0.012829995714128017, 0.026780974119901657, 0.044699180871248245, 0.006112858187407255, -0.013083968311548233, 0.006112858187407255, -0.005237090401351452, -0.021508853882551193, -0.054297592490911484, 0.013232848607003689, 0.005202059634029865, -0.042457215487957, -0.04294764623045921, 0.043578196316957474, 0.011892924085259438, -0.04515457898378372, -0.05279127508401871, 0.02737649716436863, -0.03713254630565643, 0.026693398132920265, -0.10495199263095856, -0.05170532315969467, 0.06813472509384155, 0.036186717450618744, 0.00871826708316803, -0.05611918866634369, 0.004904298577457666, 0.007798710837960243, 0.024749193340539932, 0.05983244627714157, -0.054682932794094086, 0.05181041359901428, 0.05787072703242302, 0.017094984650611877, -0.004864889197051525, 0.05107476934790611, 0.013924705795943737, 0.07048177719116211, 0.009090468287467957, -0.08554498106241226, 0.005377213470637798, -0.0059114317409694195, 0.011122249066829681, 0.0173314418643713, -0.023488087579607964, 0.044278811663389206, -0.02697364240884781, 0.010053812526166439, -0.007023656275123358, 0.022647351026535034, 0.016832254827022552, -0.011936713010072708, -0.003890597727149725, 0.05082955211400986, 0.005705626215785742, 0.010334057733416557, 0.0809909924864769, -0.009072952903807163, -0.10488193482160568, 0.022437166422605515, -0.024276278913021088, -0.0360465943813324, -0.0778382271528244, 0.0023317313753068447, -0.035118281841278076, 0.04361322894692421, -0.03625677898526192, 0.06235465407371521, 0.03198303282260895, 0.03546858951449394, 0.0725836232304573, 0.026167936623096466, 0.02320784330368042, -0.019231857731938362, 0.019109249114990234, -0.0036366251297295094, -0.010377846658229828, 0.06070821359753609, 0.04872770980000496, -0.014493954367935658, 0.019109249114990234, -0.018461182713508606, 0.03298141062259674, 0.039199359714984894, -0.03562622889876366, -0.005999008193612099, -0.03028404526412487, -0.04067064821720123, 0.07160276174545288, 0.03331420198082924, -0.0015741923125460744, 0.01218192745000124, -0.011542617343366146, 0.04508451744914055, -0.028479963541030884, 0.009633444249629974, 0.05051427707076073, 0.055944036692380905, -0.03203558176755905, 0.008389853872358799, -0.006060312036424875, -0.011787832714617252, -0.03653702512383461, -0.004913056269288063, 0.019407011568546295, -0.017138773575425148, -0.025747569277882576, 0.0008199374424293637, -0.01749783754348755, -0.02257728949189186, -0.020370354875922203, -0.06035790592432022, 0.05139004439115524, 0.003564374288544059, 0.010999641381204128, -0.03625677898526192, -0.010193935595452785, -0.010211450979113579, 0.01544854138046503, -0.01566748321056366, 0.002493748441338539, -0.011796589940786362, -0.030529260635375977, -0.039514634758234024, -0.009204317815601826, -0.036572057753801346, -0.02516956254839897, -0.07503577321767807, -0.03275370970368385, -0.003336674766615033, 0.016009032726287842, 0.03475046157836914, -0.0008659152663312852, -0.0009485658374615014, -0.016333065927028656, 0.0654023289680481, 0.018163420259952545, 0.05054930970072746, 0.01383712887763977, -0.04098592698574066, -0.005149513948708773, -0.002870328491553664, -0.00006992457201704383, 0.024206217378377914, 0.011717771179974079, -0.07055184245109558, -0.001451584859751165, 0.015177053399384022, -0.045645009726285934, -0.01701616495847702, -0.010912064462900162, -0.008407369256019592, 0.018443666398525238, 0.024591555818915367, -0.025309685617685318, -0.024118641391396523, 0.011735286563634872, 0.0035621849820017815, 0.003739527892321348, 0.035345982760190964, 0.020247748121619225, 0.03186042606830597, -0.023435542359948158, 0.003619109746068716, -0.03727266937494278, -0.045329734683036804, 0.04420875012874603, -0.02446894720196724, -0.00984362792223692, 0.04869268089532852, 0.019512103870511055, 0.046380653977394104, -0.020668115466833115, -0.01649070531129837, -0.00770237622782588, 0.042001817375421524, -0.0332791693508625, 0.02007259428501129, 0.021508853882551193, 0.004650325980037451, -0.018250998109579086, -0.008757675997912884, 0.0749657079577446, 0.007369584869593382, 0.014152404852211475, 0.003073944477364421, -0.020773207768797874, -0.05033912509679794, -0.012663600035011768, 0.026868551969528198, -0.005561124533414841, 0.011025914922356606, 0.012663600035011768, 0.0038555669598281384, 0.007697997614741325, -0.07279380410909653, -0.02506447024643421, -0.032543525099754333, -0.03975985199213028, -0.025011923164129257, -0.07762804627418518, -0.00811836589127779, -0.03161521255970001, -0.015579906292259693, -0.02737649716436863, 0.07244350016117096, 0.02194673754274845, 0.03601156547665596, 0.004313155543059111, -0.010815730318427086, 0.05643446743488312, 0.01083324570208788, -0.025449806824326515, 0.04165150970220566, 0.005197681020945311, 0.02072066254913807, -0.014187435619533062, 0.035030703991651535, -0.009046679362654686, 0.04620550200343132, 0.007689239922910929, 0.002131399465724826, 0.053561948239803314, 0.026255514472723007, 0.01966974139213562, 0.02893536351621151, 0.03531095013022423, 0.025152046233415604, -0.02331293374300003, 0.04680102318525314, 0.005215196404606104, -0.04497942700982094, -0.032420918345451355, -0.03089708276093006, 0.02007259428501129, -0.02893536351621151, 0.08225210011005402, -0.002285753609612584, -0.0474315769970417, -0.05366704240441322, -0.021088484674692154, 0.024854285642504692, -0.013565640896558762, -0.017138773575425148, -0.01472165435552597, 0.05867643281817436, -0.0477118194103241, -0.00182816490996629, 0.014520227909088135, -0.0015019414713606238, 0.027621710672974586, 0.021631460636854172, -0.013337940908968449, -0.010325300507247448, -0.01145504042506218, -0.0116652250289917, 0.0749657079577446, -0.0076454514637589455, -0.001770145376212895, -0.015080718323588371, -0.010701880790293217, 0.016919830814003944, 0.0017197886481881142, -0.019704772159457207, -0.03415493667125702, 0.0031483846250921488, 0.032823771238327026, -0.06277502328157425, -0.00222226046025753, -0.03734273090958595, 0.00450582429766655, -0.029408277943730354, -0.002642628736793995, -0.03769303858280182, -0.053982317447662354, 0.024013549089431763, -0.015746302902698517, -0.01572878658771515, -0.06375588476657867, -0.014581531286239624, 0.0067653050646185875, 0.0020219285506755114, -0.06438643485307693, 0.03030155971646309, -0.005977114196866751, 0.017200076952576637, 0.05419250205159187, -0.003303833305835724, 0.02923312410712242, 0.02049296349287033, -0.01613163948059082, 0.04753666743636131, -0.029635976999998093, -0.024521494284272194, -0.00022769958013668656, -0.019179310649633408, -0.02728891931474209, -0.005819475743919611, -0.02707873471081257, -0.021263638511300087, 0.010658091865479946, -0.025887692347168922, 0.0076235574670135975, -0.014853019267320633, 0.010649334639310837, 0.01895161159336567, 0.022419651970267296, 0.05773060396313667, -0.010430392809212208, -0.08162154257297516, 0.04462911933660507, -0.04364825785160065, 0.011157279834151268, 0.07923945784568787, 0.05016396939754486, -0.05653955787420273, 0.045014455914497375, -0.009861143305897713, -0.008468672633171082, 0.01399476733058691, 0.005105725489556789, -0.007233840879052877, -0.006410619243979454, -0.016411885619163513, -0.04900795593857765, 0.022717412561178207, -0.03765800967812538, 0.06781944632530212, 0.018811488524079323, -0.05745035782456398, 0.06133876368403435, 0.021421276032924652, 0.0044138687662780285, 0.014984384179115295, 0.07405491173267365, -0.009125499054789543, -0.00806581974029541, 0.04851752892136574, -0.052511028945446014, -0.032420918345451355, -0.030056346207857132, -0.035871442407369614, 0.0017351146088913083, -0.0456099770963192, -0.035118281841278076, -0.033664509654045105, -0.10572266578674316, 0.023593179881572723, -0.011052187532186508, 0.032018065452575684, 0.031580179929733276, 0.028567539528012276, -0.02320784330368042, 0.03818346932530403, -0.016429400071501732, -0.009072952903807163, -0.021613946184515953, 0.02592272125184536, -0.05566379055380821, 0.05086458474397659, -0.004930571652948856, -0.009081710129976273, 0.026290545240044594, 0.042527277022600174, 0.00492181396111846, 0.00025369893410243094, -0.048552557826042175, -0.027148796245455742, 0.0247667096555233, -0.037728071212768555, -0.005968356505036354, -0.003087081015110016, -0.01695486158132553, 0.02602781355381012, -0.00733893271535635, -0.019739802926778793, 0.02874269336462021, 0.011516344733536243, -0.005587397608906031, -0.011253613978624344, 0.006633939687162638, -0.058361154049634933, -0.01217317022383213, -0.03140502795577049, -0.04378838092088699, 0.051249921321868896, 0.0470462366938591, 0.02194673754274845, 0.0828125849366188, 0.00666459184139967, 0.0314575731754303, 0.016893558204174042, -0.017918206751346588, -0.016350582242012024, 0.019949987530708313, -0.01935446448624134, -0.0021970821544528008, -0.00900289136916399, 0.015212084166705608, 0.009353198111057281, 0.04610040783882141, 0.014012281782925129, 0.0025397262070327997, 0.05843121558427811, -0.029198093339800835, -0.03238588571548462, 0.02403106354176998, 0.018163420259952545, -0.006971110589802265, -0.06487686932086945, -0.024714162573218346, 0.01785690151154995, 0.000492619292344898, 0.04329795390367508, 0.05513833090662956, -0.0067871990613639355, -0.009817355312407017 ]
21,037
tfields.core
_args
null
def _args(self): return super()._args() + tuple(self)
(self)
[ -0.05190073326230049, -0.031456053256988525, 0.01171273272484541, 0.0341387577354908, 0.012484230101108551, -0.016008570790290833, 0.013509971089661121, 0.016946641728281975, 0.06968024373054504, -0.015543919056653976, 0.01797238178551197, 0.0019670992624014616, -0.02865060791373253, 0.031193042173981667, -0.023039717227220535, 0.016289114952087402, 0.03685653582215309, 0.02081289514899254, -0.016157610341906548, 0.04639504849910736, 0.013378466479480267, 0.004699120298027992, -0.0021654528100043535, -0.027440760284662247, 0.003458587685599923, 0.052637163549661636, 0.022110413759946823, -0.042432356625795364, 0.050568148493766785, -0.012370259501039982, -0.06171979010105133, -0.01974331960082054, 0.038995686918497086, 0.0042410437017679214, 0.030333874747157097, -0.010108369402587414, -0.05425029247999191, 0.06442002952098846, -0.00206572818569839, 0.006408688612282276, 0.04958624020218849, -0.09096655249595642, 0.013659010641276836, 0.011186712421476841, 0.004300221335142851, -0.046815864741802216, 0.03219248354434967, -0.049095287919044495, -0.0342264287173748, -0.0381891205906868, 0.07707960158586502, -0.02549448236823082, 0.0469561368227005, -0.022198084741830826, -0.04516766592860222, 0.07224021106958389, 0.032876309007406235, 0.025021063163876534, -0.019918659701943398, 0.06705013662576675, 0.02056741900742054, 0.029439639300107956, 0.021251246333122253, -0.021935073658823967, 0.013273261487483978, -0.07115309685468674, -0.05828312039375305, 0.0021665487438440323, -0.0028383212629705667, 0.06526166200637817, -0.023267660290002823, -0.03657599166035652, -0.04341426119208336, -0.00448213703930378, 0.0078114112839102745, -0.0071845692582428455, -0.005992255173623562, 0.0462898425757885, 0.024722984060645103, -0.01855100505053997, -0.03324452415108681, -0.012221219949424267, -0.06491098552942276, 0.0476224310696125, 0.014842557720839977, -0.02081289514899254, -0.0702764019370079, -0.01798991672694683, -0.044220827519893646, 0.007587851956486702, -0.057827237993478775, 0.021040838211774826, -0.024845723062753677, 0.04555341228842735, 0.010941235348582268, -0.0066804662346839905, -0.037207216024398804, -0.054074954241514206, -0.016622262075543404, 0.0004909528652206063, -0.043870147317647934, 0.010055767372250557, 0.011563694104552269, -0.03629544377326965, 0.016332950443029404, -0.057196009904146194, -0.0045018624514341354, -0.06817231327295303, 0.0053040445782244205, 0.03531353920698166, -0.022496161982417107, 0.025880230590701103, 0.011931908316910267, 0.05642451345920563, -0.0677865669131279, -0.038434598594903946, -0.03185933455824852, 0.028264859691262245, 0.042747970670461655, 0.05565301701426506, -0.004381316248327494, 0.05610889941453934, 0.03436670079827309, 0.02577502653002739, -0.014640916138887405, 0.07115309685468674, -0.041555654257535934, -0.0004528711724560708, -0.02842266485095024, -0.08703893423080444, 0.012387793511152267, -0.03540121018886566, -0.05130457505583763, -0.009091394953429699, 0.0023320261389017105, -0.01912962831556797, 0.08058641105890274, -0.01056425366550684, 0.002792294602841139, 0.036365579813718796, 0.004821858834475279, 0.03804884850978851, 0.0534086599946022, 0.044220827519893646, -0.0735727995634079, 0.004874460864812136, 0.04432603344321251, 0.09089642018079758, 0.010310010984539986, 0.0012284780386835337, 0.018182789906859398, 0.03706694394350052, -0.0017194310203194618, 0.030859895050525665, -0.03305165097117424, -0.0027396923396736383, -0.02922923117876053, -0.040678951889276505, 0.010318777523934841, -0.04218687862157822, -0.05614396929740906, -0.07087255269289017, 0.013264494948089123, -0.013369699008762836, 0.02980785444378853, 0.021829869598150253, 0.04092442989349365, -0.014956529252231121, -0.005058567970991135, 0.024740519002079964, 0.027160214260220528, -0.019322503358125687, 0.0006745122955180705, 0.03331466019153595, -0.015096801333129406, 0.03284124284982681, -0.05509192869067192, 0.026756932958960533, 0.007421278860419989, 0.003066263860091567, 0.017525264993309975, -0.06238608434796333, -0.019918659701943398, -0.059194888919591904, 0.08837152272462845, -0.030912498012185097, 0.024758052080869675, -0.00036410512984730303, 0.004769256804138422, -0.014895159751176834, -0.0032153029460459948, 0.015824463218450546, -0.0010306723415851593, 0.01290504727512598, -0.049936920404434204, 0.02004139870405197, -0.06308744847774506, 0.00009705360571388155, 0.012247521430253983, 0.009108928963541985, -0.026546522974967957, -0.05965077504515648, -0.018936753273010254, 0.017735673114657402, 0.030263738706707954, -0.0005972529761493206, 0.013904486782848835, -0.030772225931286812, -0.027756372466683388, -0.018060052767395973, 0.05509192869067192, -0.02002386376261711, 0.036926671862602234, -0.05624917522072792, 0.01159876212477684, -0.03185933455824852, 0.026230910792946815, -0.03392834961414337, -0.01389572024345398, 0.027440760284662247, 0.09966343641281128, -0.02779144048690796, 0.025301607325673103, -0.023022184148430824, 0.004127072636038065, -0.03448944166302681, 0.04313371703028679, -0.03931129723787308, -0.052251413464546204, 0.02698487415909767, -0.022846844047307968, -0.03071962296962738, -0.03804884850978851, 0.032893843948841095, -0.06196526810526848, 0.07153885066509247, 0.0004890350974164903, -0.04667559266090393, -0.01289627980440855, 0.014728586189448833, -0.02204027771949768, 0.059194888919591904, 0.016008570790290833, 0.017525264993309975, 0.015710491687059402, -0.024424906820058823, 0.052356619387865067, 0.04176606237888336, 0.024267099797725677, 0.03787350654602051, 0.0017884712433442473, 0.02486325614154339, -0.0190945602953434, 0.034314099699258804, -0.057511623948812485, -0.008061271160840988, -0.0057380120269954205, 0.011800403706729412, -0.009740154258906841, -0.04344933107495308, 0.043554533272981644, 0.0176480021327734, 0.010941235348582268, 0.027668701484799385, -0.023828748613595963, 0.021514257416129112, 0.00571609428152442, -0.029702650383114815, -0.07392347604036331, 0.053198251873254776, 0.13101428747177124, 0.0010290284408256412, -0.0324905589222908, 0.0682775154709816, -0.009819057770073414, 0.003018045099452138, 0.004764873068779707, 0.027353089302778244, -0.08844165503978729, 0.005702944006770849, 0.07546646893024445, 0.0097138537093997, -0.024249564856290817, -0.051725395023822784, 0.01713074930012226, -0.0196731835603714, 0.02894868701696396, 0.023548204451799393, 0.0016416236758232117, -0.025652287527918816, 0.0376981683075428, 0.048849813640117645, 0.036330513656139374, -0.0006602658540941775, 0.06442002952098846, -0.0009506733040325344, -0.008311131037771702, 0.05249689146876335, 0.023337796330451965, 0.009792756289243698, 0.04372987523674965, -0.021023303270339966, -0.01970825158059597, -0.007048680912703276, 0.03797871246933937, -0.042432356625795364, 0.04085429385304451, 0.052882637828588486, -0.022671502083539963, -0.036049969494342804, -0.0054925354197621346, 0.002225726144388318, -0.019480308517813683, -0.024547643959522247, -0.0492706298828125, -0.006193896755576134, 0.02575749158859253, 0.01855100505053997, -0.028790879994630814, 0.05712587386369705, -0.04408055543899536, -0.036330513656139374, 0.005759929306805134, 0.021058371290564537, 0.018305528908967972, 0.07574701309204102, -0.04867447167634964, 0.010914934799075127, 0.007000462152063847, 0.026248445734381676, -0.015263374894857407, 0.014886393211781979, -0.03455957770347595, 0.043309058994054794, -0.008793316781520844, 0.006759369280189276, -0.0008706742664799094, 0.03333219513297081, 0.028755811974406242, -0.059580639004707336, -0.015131869353353977, 0.007771959528326988, -0.03128071129322052, 0.027966780588030815, 0.004979664925485849, 0.0028251707553863525, -0.015315976925194263, 0.056389447301626205, 0.08612716197967529, -0.013580107130110264, -0.02517887018620968, -0.0717492550611496, -0.051725395023822784, -0.030474146828055382, 0.05617903545498848, 0.042467422783374786, -0.06326278299093246, -0.04194140434265137, 0.03212234750390053, 0.011668898165225983, 0.08781042695045471, -0.052917707711458206, 0.028001848608255386, 0.037803370505571365, 0.021566858515143394, -0.014167497865855694, -0.005475001409649849, 0.015026665292680264, 0.0028383212629705667, -0.008613592945039272, 0.01175656821578741, 0.0025270923506468534, 0.0055933562107384205, 0.008784550242125988, -0.03184179961681366, 0.016683630645275116, -0.0353836752474308, 0.01998879574239254, -0.06484084576368332, -0.0659630298614502, 0.011239314451813698, -0.05049801245331764, 0.04800817742943764, 0.007767575792968273, -0.01450064405798912, -0.004685970023274422, 0.023916419595479965, -0.014526945538818836, 0.019077027216553688, 0.05716094374656677, -0.0277739055454731, -0.040433477610349655, -0.03336726129055023, -0.014605848118662834, -0.0281070526689291, -0.06785669922828674, 0.04930569604039192, -0.017525264993309975, -0.060141727328300476, -0.05824805423617363, 0.034927789121866226, -0.04162579029798508, -0.006645397748798132, -0.015535151585936546, -0.004306796472519636, -0.007504565641283989, -0.014868859201669693, 0.061895132064819336, 0.02342546544969082, -0.0012065605260431767, -0.041275110095739365, -0.024565178900957108, 0.011160410940647125, -0.033437397330999374, 0.036365579813718796, -0.03275357186794281, -0.011966976337134838, 0.05337359383702278, 0.03163139149546623, 0.024442439898848534, 0.0190945602953434, 0.03445437178015709, -0.021847402676939964, 0.07448456436395645, 0.044781915843486786, -0.0010953290620818734, -0.08788056671619415, -0.0009577964665368199, 0.03776830434799194, 0.001000535674393177, -0.046780794858932495, -0.027055010199546814, -0.004326522350311279, 0.00601855618879199, -0.010213573463261127, 0.0032525628339499235, 0.0032218783162534237, -0.016578426584601402, 0.05190073326230049, 0.08226967602968216, -0.017262253910303116, -0.011607528664171696, 0.04376494139432907, -0.024232031777501106, 0.04029320552945137, -0.07003092020750046, -0.07024133205413818, -0.00413145637139678, 0.013159290887415409, -0.004826242104172707, 0.014299002476036549, 0.03994252532720566, 0.02403915673494339, -0.04436109960079193, -0.012107248418033123, -0.035488881170749664, -0.07876286655664444, -0.03801378235220909, -0.005378564354032278, -0.0012295739725232124, 0.053794410079717636, -0.02665172889828682, -0.00023712037364020944, -0.00491829589009285, 0.005711711011826992, -0.054039884358644485, 0.025932833552360535, -0.05095389485359192, -0.10562500357627869, -0.014421740546822548, 0.04674572870135307, -0.015429947525262833, -0.02402162365615368, -0.09152764827013016, -0.010222340002655983, 0.03773323446512222, 0.030649486929178238, -0.01521077286452055, -0.017525264993309975, -0.04369480535387993, -0.032332755625247955, -0.053478796035051346, 0.03284124284982681, 0.02754596434533596, -0.05126950889825821, 0.03569928929209709, 0.005435549654066563, -0.015429947525262833, -0.01590336672961712, 0.004664052277803421, 0.010634389705955982, -0.00012034099199809134, -0.021356450393795967, -0.012519298121333122, 0.024459974840283394, 0.005242675542831421, -0.006062391214072704, -0.004225701559334993, -0.0188490841537714, 0.07336238771677017, -0.016157610341906548, -0.02081289514899254, 0.056389447301626205, 0.006351702846586704, 0.004396658390760422, -0.03263083100318909, 0.03354260325431824, 0.007631687447428703, -0.052917707711458206, -0.010380147024989128, -0.030894963070750237, -0.036681193858385086, 0.0049226791597902775, -0.018761413171887398, 0.012194919399917126, -0.03590969741344452, -0.02693227306008339, 0.030298806726932526, 0.0034914640709757805, 0.004725421313196421, 0.035734355449676514, 0.029141560196876526, -0.01821785792708397, 0.0007030050619505346, -0.009915495291352272, -0.00493144616484642, -0.00784209556877613, -0.002487640827894211, 0.016613494604825974, 0.02491585910320282, 0.012343958020210266, -0.01741129346191883, -0.001806005253456533, -0.0008175242110155523, -0.02147918939590454, 0.090265192091465, -0.021654529497027397, 0.01245792955160141, -0.0034783135633915663, 0.051725395023822784, 0.02202274277806282, 0.010099601931869984, -0.028334995731711388, -0.028317460790276527, -0.03268343582749367, -0.022496161982417107, -0.020199203863739967, -0.001849840278737247, 0.01073959469795227, -0.03387574851512909, -0.05298784375190735, -0.022653969004750252, -0.015123101882636547, 0.09328104555606842, 0.003835569368675351, -0.021549325436353683, -0.023688476532697678, -0.015710491687059402, -0.03015853464603424, 0.0050673349760472775, 0.041555654257535934, -0.022390957921743393, -0.03822419047355652, 0.004843776114284992, -0.07476510852575302, 0.036646127700805664, 0.01596473529934883, 0.059229958802461624, -0.051690325140953064, 0.025371743366122246, -0.030561817809939384, -0.04267783463001251, -0.06922435760498047, -0.030807293951511383, 0.01564035564661026, -0.008083188906311989, -0.005093635991215706, -0.008026203140616417, 0.004234468564391136, -0.03496285900473595, 0.017604168504476547, 0.02379368059337139, -0.005023499950766563, -0.03822419047355652, -0.022268220782279968, 0.06575261801481247, -0.010502885095775127, 0.017306089401245117, 0.02922923117876053, 0.0019912084098905325, -0.007000462152063847, 0.002667364664375782, 0.003927622921764851, -0.023583272472023964, 0.018498403951525688, -0.05018239840865135, -0.02372354455292225, -0.023390397429466248, -0.052847571671009064, -0.05326838791370392, 0.00986289232969284, 0.011616296134889126, 0.002509558340534568, 0.02922923117876053, -0.005225141532719135, -0.031070303171873093, -0.00011123151489300653, 0.03629544377326965, -0.061053499579429626, 0.07581715285778046, 0.006614713463932276, -0.04292330890893936, 0.038995686918497086, -0.019778387621045113, -0.030807293951511383, 0.02495092712342739, -0.036926671862602234, 0.06603316217660904, 0.05032267048954964, 0.08016559481620789, -0.054320428520441055, 0.006022939924150705, -0.04141538217663765, 0.01648198999464512, -0.028615539893507957, -0.00047615854418836534, 0.00358351762406528, -0.04471177980303764, 0.020970702171325684, -0.029965659603476524, 0.037803370505571365, -0.023004649206995964, 0.09426295757293701, -0.06136910989880562, -0.005268976557999849, -0.024214496836066246, -0.03994252532720566, -0.02896622009575367, -0.059791047126054764, -0.026827068999409676, 0.04376494139432907, 0.010310010984539986, -0.04260769858956337, -0.04085429385304451, -0.025389278307557106, 0.012791075743734837, -0.06803204119205475, -0.049971990287303925, 0.015473783016204834, -0.023109853267669678, 0.027090078219771385, 0.025056131184101105, -0.02467038296163082, 0.05098896473646164, -0.021812334656715393, 0.03941650316119194, -0.007188952993601561, 0.03242042288184166, 0.0002857499348465353, -0.01564035564661026, -0.016315415501594543, 0.042397286742925644, 0.04814844951033592, -0.019322503358125687, -0.0054925354197621346, 0.019638115540146828, -0.03452450782060623, 0.004707887303084135, 0.0810072273015976, -0.00412049749866128, -0.010993837378919125, -0.006890874356031418, -0.021566858515143394, 0.03210481256246567, -0.0016690206248313189, -0.005597739480435848, 0.02053235098719597, 0.011809170246124268, 0.01597350277006626, -0.03357766941189766, -0.033454932272434235, -0.04818351939320564, -0.03010593168437481, -0.01187930628657341, -0.020970702171325684, 0.015543919056653976, -0.024828188121318817, 0.07195966690778732, 0.016683630645275116, -0.06698000431060791, 0.01912962831556797, -0.05540753901004791, 0.029194163158535957, -0.010748361237347126, 0.035436276346445084, 0.04036334156990051, -0.03455957770347595, -0.09531499445438385, 0.05905461683869362, -0.006211430765688419, 0.022776706144213676, 0.003278863849118352, -0.012782309204339981, 0.026616660878062248, 0.02317998930811882, 0.00040657035424374044, 0.053513865917921066, 0.00042958377161994576, 0.007004845421761274, 0.053724274039268494, 0.005531987175345421, 0.030894963070750237, -0.0066190967336297035, -0.023285193368792534, 0.028019381687045097, -0.01331709697842598, 0.07462483644485474, 0.04194140434265137, -0.027475828304886818, 0.011063974350690842, -0.04102963209152222, 0.027738837525248528, 0.04874460771679878, -0.0068075875751674175, 0.028861016035079956, 0.006408688612282276, -0.0030509214848279953, -0.04337919503450394, 0.02726541832089424, -0.029650047421455383, -0.016122542321681976, -0.03184179961681366, 0.040433477610349655, 0.03787350654602051, 0.04916542395949364, 0.017157049849629402, 0.013904486782848835, 0.009845358319580555, -0.0341387577354908, 0.01376421470195055, 0.018007449805736542, 0.011116576381027699, 0.013273261487483978, 0.03829432651400566, 0.03860993683338165, -0.020392078906297684, 0.037242282181978226, -0.02323259226977825, -0.010590555146336555, -0.051409780979156494, 0.06775149703025818, 0.10331051051616669, 0.012151083908975124, -0.010546719655394554, 0.014903927221894264, -0.034910257905721664, 0.08844165503978729, -0.04408055543899536, -0.01590336672961712, -0.04842899367213249, -0.04783283919095993, 0.010678225196897984, 0.00645252363756299, 0.023057252168655396, 0.05758175998926163, 0.027738837525248528, 0.04029320552945137, 0.021794801577925682 ]
21,038
tfields.core
_as_dict
Get an object represenation in a dict format. This is necessary e.g. for saving the full file uniquely in the npz format Args: recurse: dict of {attribute: callable(iterable) -> dict} Returns: dict: object packed as nested dictionary
def _as_dict(self, recurse: typing.Dict[str, typing.Callable] = None) -> dict: """ Get an object represenation in a dict format. This is necessary e.g. for saving the full file uniquely in the npz format Args: recurse: dict of {attribute: callable(iterable) -> dict} Returns: dict: object packed as nested dictionary """ content = {} # type content["type"] = type(self).__name__ # args and kwargs for base_attr, iterable in [ ("args", ((str(i), arg) for i, arg in enumerate(self._args()))), ("kwargs", self._kwargs().items()), ]: for attr, value in iterable: attr = base_attr + _HIERARCHY_SEPARATOR + attr if (recurse is not None and attr in recurse) or hasattr( value, "_as_dict" ): if recurse is not None and attr in recurse: part_dict = recurse[attr](value) else: part_dict = value._as_dict() # pylint: disable=protected-access for part_attr, part_value in part_dict.items(): content[attr + _HIERARCHY_SEPARATOR + part_attr] = part_value else: content[attr] = value return content
(self, recurse: Optional[Dict[str, Callable]] = None) -> dict
[ 0.017056696116924286, -0.025282006710767746, 0.01776859536767006, -0.008946828544139862, 0.004391642287373543, -0.0014478469965979457, -0.01610429212450981, -0.000053099247452337295, -0.03698022663593292, -0.010235941968858242, 0.06322425603866577, 0.057606033980846405, 0.02468555048108101, 0.0010395878925919533, -0.05094882473349571, 0.006979488302022219, -0.012477459385991096, 0.0448688268661499, -0.04536908119916916, 0.03888503462076187, 0.027129093185067177, 0.00795594323426485, 0.03655693680047989, 0.01576758362352848, -0.005257464479655027, -0.01170783955603838, -0.012910369783639908, 0.05456603690981865, -0.03630680963397026, -0.031169597059488297, -0.02857213094830513, -0.051372114568948746, -0.00293176993727684, 0.06614881008863449, 0.002085188403725624, -0.007946323603391647, -0.033459216356277466, 0.0646095722913742, -0.10928599536418915, -0.016662266105413437, -0.010380245745182037, 0.045676928013563156, -0.08150272816419601, -0.03746123984456062, 0.04433009400963783, -0.026417195796966553, 0.02156859077513218, 0.01815340481698513, 0.03180453181266785, -0.05564350262284279, 0.039789337664842606, -0.06661058217287064, 0.009456701576709747, -0.011044042184948921, -0.005945311859250069, 0.0024844284635037184, -0.005627844016999006, 0.03403643146157265, 0.050794899463653564, 0.0012530370149761438, -0.030457699671387672, 0.0040597436018288136, 0.02458934858441353, 0.004449363797903061, -0.03649921342730522, -0.0052526541985571384, -0.06337817758321762, -0.046985283493995667, -0.04317566379904747, 0.007787588983774185, -0.03145820274949074, -0.027090612798929214, 0.04048199579119682, 0.000627119792625308, -0.00014595716493204236, -0.028899218887090683, 0.011409611441195011, -0.049332622438669205, 0.025051120668649673, 0.007773158606141806, -0.033324532210826874, -0.0018374669598415494, -0.07045868039131165, -0.013477964326739311, 0.014661255292594433, 0.03907743841409683, 0.029341749846935272, 0.019490618258714676, 0.027725549414753914, 0.004028478171676397, -0.04956350848078728, 0.03201618045568466, -0.007426830008625984, 0.04733160883188248, -0.0036893642973154783, -0.031169597059488297, 0.04190579056739807, 0.014988343231379986, -0.009504803456366062, -0.002442339900881052, -0.025147322565317154, -0.029187826439738274, -0.034921493381261826, 0.0063205016776919365, -0.006589868571609259, -0.053565528243780136, -0.016758468002080917, 0.0040693641640245914, -0.01708555780351162, -0.017489606514573097, -0.02487795613706112, -0.002958225551992655, -0.04002022370696068, 0.047524016350507736, 0.043291106820106506, -0.02331947721540928, -0.0013624673010781407, -0.001477910322137177, 0.0031770863570272923, -0.04721616581082344, -0.00824936106801033, 0.09350879490375519, -0.009567334316670895, 0.034825291484594345, -0.00687366584315896, 0.027533143758773804, 0.015709862112998962, 0.03303592652082443, 0.03646073117852211, 0.04352199286222458, 0.02189568057656288, 0.003220377257093787, -0.051872365176677704, 0.008398475125432014, 0.06557159870862961, 0.025282006710767746, 0.045138195157051086, -0.022415174171328545, -0.028341244906187057, 0.012285054661333561, 0.021356945857405663, -0.013083534315228462, 0.00008703316416358575, -0.01972150430083275, 0.013612648472189903, -0.027148334309458733, 0.05548957735300064, 0.02224200963973999, -0.07461462914943695, -0.04552300274372101, -0.020471883937716484, -0.015103786252439022, 0.03267035633325577, 0.0486784465610981, -0.014401508495211601, -0.015228849835693836, -0.023377198725938797, -0.018230365589261055, -0.03801921382546425, -0.03597972169518471, -0.040866803377866745, 0.044945791363716125, -0.027186814695596695, -0.03601820021867752, 0.005137211177498102, -0.003321389900520444, 0.050448570400476456, -0.09350879490375519, 0.026109347119927406, -0.0013408218510448933, -0.02735997922718525, 0.00199499842710793, -0.03374782204627991, 0.009336449205875397, 0.013833913952112198, 0.0461387000977993, 0.03878883272409439, -0.020433401688933372, -0.005190122872591019, 0.036345288157463074, 0.046061739325523376, -0.06484045833349228, -0.009326828643679619, 0.04552300274372101, 0.05094882473349571, -0.017605049535632133, 0.009067081846296787, 0.012342775240540504, 0.034921493381261826, 0.01820150576531887, -0.0014478469965979457, 0.025435930117964745, 0.01689315214753151, -0.004894300363957882, 0.01418986264616251, -0.01761467009782791, -0.01596960797905922, 0.013449103571474552, -0.04559996724128723, 0.06788045912981033, -0.005993413273245096, -0.0130450539290905, 0.023973653092980385, 0.000993290450423956, -0.035652630031108856, -0.013526066206395626, 0.014545812271535397, -0.022472895681858063, -0.031573645770549774, 0.014334166422486305, -0.008494677022099495, -0.02735997922718525, 0.022184288129210472, -0.03617212548851967, 0.017749354243278503, -0.04148250073194504, 0.020164035260677338, 0.03411339223384857, -0.005911641288548708, -0.02628251165151596, 0.02331947721540928, 0.05017920210957527, -0.018913403153419495, -0.021106820553541183, 0.018278468400239944, -0.07338323444128036, -0.04663895443081856, -0.01800910010933876, 0.002063542837277055, -0.04313718155026436, 0.033074405044317245, -0.06976602226495743, -0.01555593777447939, -0.004456578753888607, 0.03798073157668114, 0.018749859184026718, -0.004730755928903818, -0.005762527231127024, 0.05883742496371269, -0.005377717316150665, 0.06453260779380798, -0.023781247437000275, -0.03588351607322693, -0.03990478068590164, -0.05433515086770058, -0.012544800527393818, 0.08696702122688293, 0.029630357399582863, 0.014680495485663414, -0.04205971583724022, 0.052180215716362, 0.0022908211685717106, -0.00514683173969388, 0.057067301124334335, -0.012958471663296223, 0.006671640556305647, -0.001001708093099296, 0.0185382142663002, 0.007181513588875532, -0.022357452660799026, 0.06322425603866577, -0.014516951516270638, 0.008162778802216053, 0.0180572010576725, 0.010524549521505833, -0.016816189512610435, 0.00971163809299469, 0.0034512632992118597, -0.08927588164806366, 0.004723540972918272, 0.08550474792718887, -0.018037961795926094, 0.06006881594657898, 0.014035939238965511, -0.003032782580703497, 0.019490618258714676, 0.06026121973991394, -0.0591837540268898, -0.009519233368337154, -0.0024724032264202833, -0.024166058748960495, -0.028398966416716576, 0.02054884470999241, 0.004425313323736191, 0.028495168313384056, -0.009879992343485355, 0.006763033103197813, 0.06861159205436707, 0.013545306399464607, 0.007777968887239695, 0.022819222882390022, -0.010986320674419403, -0.018961504101753235, 0.015286571346223354, 0.019442517310380936, 0.011496193706989288, -0.07118982076644897, -0.08042525500059128, 0.04956350848078728, 0.004266579169780016, 0.004379617050290108, 0.04425313323736191, 0.07661563903093338, 0.04186731204390526, 0.053180720657110214, 0.05094882473349571, 0.022357452660799026, 0.006185817997902632, -0.02176099643111229, 0.051526036113500595, -0.04171338677406311, 0.03688402473926544, 0.05456603690981865, 0.08881410956382751, -0.0636475458741188, -0.06853463500738144, 0.01078429538756609, 0.00003137853855150752, 0.012419737875461578, 0.06387843191623688, -0.061492614448070526, 0.03626832738518715, -0.015998469665646553, -0.037788327783346176, 0.10474523901939392, -0.05129515007138252, 0.059799447655677795, 0.023973653092980385, 0.06133868917822838, 0.004302654881030321, -0.023280994966626167, -0.04921717941761017, 0.03191997483372688, 0.052103251218795776, -0.02755238488316536, 0.06114628538489342, 0.03372858092188835, 0.008186829276382923, -0.039404526352882385, -0.00259746634401381, 0.003908224869519472, 0.013612648472189903, -0.0249741580337286, -0.035306304693222046, -0.03807693347334862, -0.03403643146157265, 0.041444018483161926, -0.01727796159684658, 0.04979439452290535, -0.03626832738518715, -0.021722516044974327, -0.0011850940063595772, 0.014536191709339619, 0.03894275426864624, -0.04833211749792099, -0.06357058882713318, 0.013526066206395626, -0.02287694439291954, -0.014497710391879082, -0.01377619244158268, 0.04063592106103897, 0.03917364031076431, -0.029476433992385864, -0.018230365589261055, 0.060915399342775345, -0.030919469892978668, -0.05214173346757889, 0.0604536272585392, 0.08596652001142502, -0.058183249086141586, 0.010466828010976315, 0.0017172138905152678, -0.020856693387031555, -0.035748835653066635, 0.023050108924508095, 0.057028818875551224, -0.0037398706190288067, 0.028360486030578613, -0.040520478039979935, 0.020260239019989967, 0.003626832738518715, 0.015488595701754093, 0.023377198725938797, -0.025589855387806892, 0.06099236011505127, -0.019933149218559265, 0.12221560627222061, -0.014353407546877861, 0.002614301862195134, -0.040712881833314896, -0.045638445764780045, 0.03613364323973656, -0.012150370515882969, 0.034921493381261826, 0.018605556339025497, -0.05637464299798012, 0.03603744134306908, -0.0073594884015619755, -0.06611032783985138, 0.018971124663949013, 0.03422883525490761, -0.1059766337275505, 0.002984681399539113, -0.04282933473587036, 0.05479692295193672, -0.052795909345149994, 0.03320908918976784, -0.05991489067673683, 0.03898123651742935, -0.003032782580703497, 0.049486543983221054, -0.029803521931171417, -0.046985283493995667, 0.01610429212450981, 0.036633897572755814, 0.006017463747411966, 0.01353568583726883, 0.01937517523765564, -0.023569602519273758, 0.014199483208358288, 0.04082832485437393, 0.0030953141395002604, -0.026590360328555107, 0.032920483499765396, 0.033074405044317245, -0.010476447641849518, -0.03846174478530884, -0.001918036607094109, 0.03061162307858467, 0.05075641721487045, -0.022261248901486397, -0.0178166963160038, -0.02102985791862011, -0.046754397451877594, 0.04225211963057518, -0.022357452660799026, -0.0003367086173966527, -0.03168908879160881, -0.0028716435190290213, 0.0750764012336731, -0.013853154145181179, 0.015353912487626076, -0.018365049734711647, -0.03782680630683899, 0.01175594050437212, 0.023877451196312904, -0.023569602519273758, 0.03734579682350159, 0.013343281112611294, -0.007186323869973421, 0.0770004466176033, 0.0031169597059488297, 0.08411943167448044, -0.0693812146782875, -0.04371439665555954, -0.010274422354996204, 0.01791289821267128, 0.012833408080041409, 0.004466199316084385, -0.013978217728435993, -0.00961543619632721, -0.04340654984116554, 0.026455676183104515, -0.005844299681484699, -0.019557960331439972, -0.026513397693634033, -0.015296190977096558, -0.0044806296937167645, -0.042906299233436584, -0.038038451224565506, 0.055951349437236786, 0.017922518774867058, -0.014949861913919449, -0.04194427281618118, 0.04833211749792099, 0.02312707155942917, -0.012708345428109169, -0.012891129590570927, -0.06376299262046814, -0.07950171083211899, 0.03284351900219917, -0.021587831899523735, 0.024647070094943047, -0.013449103571474552, 0.0039010096807032824, 0.0009024993050843477, 0.014026318676769733, 0.023050108924508095, -0.023838968947529793, 0.010938219726085663, -0.03855794668197632, 0.05198780819773674, -0.050410088151693344, 0.05175692215561867, 0.03907743841409683, 0.03365162014961243, -0.00788860209286213, 0.04298326000571251, -0.022415174171328545, -0.07903993874788284, -0.006623539607971907, -0.03166985139250755, 0.03394022956490517, 0.047677937895059586, -0.06572552025318146, 0.026013145223259926, -0.018326569348573685, 0.03855794668197632, -0.0017605050234124064, -0.012313914485275745, -0.0486784465610981, -0.010101258754730225, -0.006464805454015732, 0.00624353950843215, -0.003131390083581209, 0.013526066206395626, -0.02583998069167137, 0.010380245745182037, -0.0009235436446033418, -0.08912196010351181, -0.008865056559443474, 0.04394528269767761, 0.06087691709399223, 0.04117465391755104, -0.004312275443226099, 0.035460226237773895, 0.029418712481856346, 0.00014723485219292343, 0.008730373345315456, 0.019702263176441193, 0.048947811126708984, 0.0030712636653333902, -0.024204539135098457, 0.012083029374480247, 0.0039563262835145, -0.039058197289705276, 0.00009732983016874641, 0.011255688033998013, -0.03694174438714981, 0.003456073347479105, 0.07692348957061768, 0.011380750685930252, -0.010399485938251019, -0.032343268394470215, 0.06764957308769226, 0.0075711337849497795, 0.09220043569803238, -0.031766053289175034, 0.011900244280695915, 0.006031894125044346, 0.004788477439433336, -0.05106426775455475, -0.010332143865525723, 0.02768706902861595, -0.03422883525490761, -0.028302764520049095, 0.003456073347479105, -0.09751081466674805, -0.010678472928702831, -0.004639363847672939, -0.025974664837121964, 0.06079995632171631, -0.03853870555758476, -0.02366580441594124, -0.08150272816419601, 0.01636403799057007, -0.005353666841983795, 0.12267737835645676, -0.09058423340320587, 0.029861243441700935, -0.000041675208194646984, 0.048062749207019806, 0.027590865269303322, -0.020510364323854446, 0.01800910010933876, 0.046561989933252335, -0.02739846147596836, 0.029957445338368416, 0.002126074396073818, -0.018326569348573685, 0.015055685304105282, -0.04536908119916916, -0.012198472395539284, -0.03694174438714981, -0.04152098298072815, 0.012256193906068802, 0.015373153612017632, 0.032247066497802734, -0.0008904740097932518, -0.06503286212682724, -0.015690620988607407, 0.029957445338368416, 0.018086062744259834, 0.002585441106930375, 0.0283220037817955, -0.03236250951886177, -0.013343281112611294, 0.020260239019989967, 0.01540201436728239, -0.09373968094587326, -0.06464805454015732, 0.005002527963370085, -0.013997457921504974, 0.019990870729088783, -0.01923087239265442, -0.011428852565586567, 0.04036655277013779, 0.034536682069301605, 0.01926935277879238, -0.05622071772813797, -0.0200485922396183, -0.01636403799057007, 0.05110274627804756, -0.00025583841488696635, -0.00047620217083022, -0.024935677647590637, -0.06918881088495255, -0.052834391593933105, -0.028206560760736465, -0.05110274627804756, -0.03863490745425224, -0.015219229273498058, -0.005122780799865723, 0.010899738408625126, -0.0674571618437767, 0.010043537244200706, -0.0024206943344324827, -0.0018110113451257348, 0.04663895443081856, -0.018672898411750793, 0.034786809235811234, -0.013449103571474552, -0.002715314505621791, -0.02437770366668701, -0.019836947321891785, -0.014853660017251968, 0.023742767050862312, 0.007523032370954752, -0.004586452152580023, 0.02945719286799431, 0.02984200231730938, -0.03494073450565338, -0.029707320034503937, 0.02634023316204548, -0.062031347304582596, -0.030111370608210564, 0.05129515007138252, -0.05418122559785843, 0.020067833364009857, -0.028591372072696686, -0.009721258655190468, 0.010476447641849518, 0.006921767257153988, -0.02345415949821472, 0.0014791127759963274, 0.03138124197721481, 0.03282427787780762, -0.046023257076740265, -0.025089601054787636, 0.027032891288399696, -0.006224299315363169, -0.01839390955865383, -0.09166170656681061, -0.031708329916000366, 0.05756755173206329, 0.014565052464604378, -0.0875057578086853, 0.009879992343485355, 0.06957361847162247, -0.05037160962820053, 0.05618223547935486, 0.04717768728733063, 0.02647491730749607, 0.026955928653478622, -0.08181057125329971, 0.023280994966626167, -0.022799983620643616, 0.007758728228509426, 0.020760491490364075, -0.026975169777870178, -0.03644149377942085, 0.03076554648578167, -0.053373124450445175, 0.04190579056739807, -0.006753412541002035, -0.03801921382546425, 0.014997963793575764, -0.02780251018702984, 0.007489361334592104, -0.040328070521354675, 0.015257710590958595, -0.03684554249048233, -0.032247066497802734, 0.013073914684355259, 0.005329616367816925, -0.01991390995681286, 0.001742467051371932, 0.004194427281618118, 0.06480197608470917, -0.031188838183879852, 0.0012590497499331832, -0.014151382260024548, 0.016922011971473694, 0.010178220458328724, 0.014266825281083584, -0.019153909757733345, -0.02768706902861595, 0.03211238235235214, 0.04540755972266197, 0.0002636548597365618, -0.04825515300035477, 0.07519184052944183, 0.0019156314665451646, -0.050987303256988525, 0.004579237196594477, -0.012323535047471523, 0.03455592319369316, 0.05037160962820053, 0.014401508495211601, -0.013987837359309196, -0.008230120874941349, 0.04336806759238243, 0.04575388878583908, 0.035941239446401596, 0.00790784228593111, 0.017508847638964653, 0.00654657743871212, -0.016873911023139954, -0.008085817098617554, -0.028437446802854538, 0.0012019295245409012, -0.021260743960738182, -0.05914527177810669, -0.01650834269821644, 0.00622910913079977, -0.01926935277879238, -0.003232402727007866, 0.00759518425911665, -0.050794899463653564, 0.009485562331974506, -0.03413263335824013, 0.059068311005830765, -0.04321414604783058, 0.06853463500738144, -0.0027177194133400917, -0.018769100308418274, 0.0451766736805439, 0.041790347546339035, 0.030399978160858154, -0.006344552151858807, 0.02166479453444481, 0.03844250366091728, -0.025782259181141853, -0.015257710590958595, 0.03990478068590164, -0.011784801259636879, -0.019413655623793602, -0.025859221816062927, 0.029168585315346718, -0.0008934803772717714, -0.02914934605360031, -0.08096399158239365, 0.012669864110648632, -0.02437770366668701, -0.024069854989647865, 0.013526066206395626, 0.017730113118886948, -0.02657111920416355 ]
21,039
tfields.core
_kwargs
null
def _kwargs(self): return {"labels": self.labels}
(self)
[ -0.017361387610435486, -0.031863659620285034, 0.0613849051296711, -0.005257503595203161, -0.045918114483356476, 0.033982161432504654, -0.02276959829032421, 0.011712047271430492, 0.10471948236227036, -0.009498815052211285, -0.024388616904616356, 0.021598393097519875, 0.0168791264295578, -0.00417026411741972, 0.04292120784521103, -0.029004540294408798, -0.007177934981882572, 0.00580004695802927, 0.012943534180521965, 0.00031110126292333007, -0.007724784314632416, -0.023114070296287537, 0.03079579398036003, 0.04708931967616081, 0.037926364690065384, -0.003649249905720353, 0.0011981165735051036, -0.026248764246702194, 0.014355869963765144, 0.02488810010254383, -0.08253548294305801, -0.021753406152129173, -0.00732002966105938, 0.0661386176943779, 0.009438532404601574, -0.03699629008769989, -0.06248721852898598, 0.06710314005613327, -0.0830177441239357, -0.027230510488152504, -0.06803321838378906, -0.07736840844154358, -0.06100598722696304, -0.0075568538159132, 0.04023432731628418, -0.0049948436208069324, 0.00724252313375473, -0.007130569778382778, 0.009102672338485718, -0.06761985272169113, -0.008086479268968105, 0.006260778289288282, 0.0063942610286176205, 0.028453385457396507, -0.056045591831207275, 0.02829837240278721, 0.009481591172516346, 0.06834323704242706, -0.0014435529010370374, 0.0830177441239357, -0.0391320176422596, 0.0408199280500412, -0.005296256858855486, -0.051843032240867615, -0.041439980268478394, -0.02797112427651882, -0.048053842037916183, 0.05766461044549942, -0.035790637135505676, 0.014192245900630951, 0.007431983016431332, -0.09665884077548981, -0.006910969037562609, 0.017542235553264618, -0.006988475099205971, -0.06462294608354568, -0.057457927614450455, 0.008245797827839851, 0.005692399572581053, 0.011333128437399864, -0.06465739011764526, 0.005317786242812872, -0.050155121833086014, -0.015578744933009148, 0.011195339262485504, -0.0371340773999691, -0.036789607256650925, 0.03789191693067551, 0.008146761916577816, -0.012082355096936226, -0.05315202474594116, 0.03248370811343193, -0.002292891498655081, 0.05091295763850212, -0.06073040887713432, -0.0036320264916867018, -0.017895318567752838, 0.009662439115345478, 0.016241854056715965, -0.01756807044148445, 0.014588388614356518, -0.10155034065246582, 0.00913711916655302, -0.0059206122532486916, -0.017473341897130013, -0.049156151711940765, -0.028918422758579254, -0.04908725619316101, -0.0025211041793227196, -0.015871547162532806, -0.011281457729637623, 0.01344301924109459, 0.018257014453411102, 0.0529453419148922, -0.024526404216885567, -0.00857735238969326, -0.037926364690065384, -0.049879543483257294, -0.002344562439247966, -0.010876703076064587, -0.057767949998378754, 0.043265681713819504, -0.03527393192052841, 0.029228447005152702, 0.000012253311979293358, 0.040027644485235214, -0.0044738296419382095, 0.033431004732847214, 0.0021400321274995804, -0.0537031814455986, 0.051429666578769684, -0.019066523760557175, -0.036514028906822205, 0.0013951115543022752, 0.06090264394879341, -0.0576990582048893, 0.0664486438035965, -0.0034619434736669064, 0.05091295763850212, 0.08074422925710678, 0.03096803091466427, 0.058284658938646317, 0.014683118090033531, 0.015372062101960182, -0.021167803555727005, -0.037202972918748856, 0.030037956312298775, 0.0096279913559556, -0.03403383120894432, -0.051429666578769684, 0.043816834688186646, 0.033551570028066635, 0.008095091208815575, -0.008495540358126163, -0.016827456653118134, -0.01619018241763115, -0.02488810010254383, -0.029056211933493614, 0.028350044041872025, 0.009464367292821407, 0.02418193221092224, -0.05525330454111099, -0.0058861649595201015, 0.006863604299724102, -0.010764749720692635, 0.0391320176422596, 0.07454373687505722, -0.0455736443400383, -0.012280425988137722, 0.058456894010305405, 0.001564118079841137, -0.03548061475157738, -0.029452353715896606, 0.020031046122312546, -0.04843275994062424, 0.057320136576890945, -0.001910742954351008, 0.02983127348124981, -0.0017847954295575619, 0.03840862587094307, 0.022752374410629272, -0.008835705928504467, -0.056493405252695084, -0.01617295853793621, 0.07612830400466919, -0.06372731924057007, -0.010756137780845165, 0.02884952910244465, -0.03754744678735733, 0.020496083423495293, 0.057010114192962646, -0.016646608710289, -0.007444900460541248, 0.021873971447348595, -0.03303486108779907, -0.03193255141377449, 0.015372062101960182, -0.03351712226867676, -0.0005608434439636767, 0.0768861472606659, -0.01342579536139965, -0.03234591707587242, -0.03219090774655342, 0.005640728864818811, 0.007087511010468006, 0.050844065845012665, 0.03234591707587242, 0.027247734367847443, -0.015242884866893291, -0.057767949998378754, 0.02292460948228836, -0.018601486459374428, 0.005347927566617727, 0.0009699038928374648, 0.03940759599208832, -0.04674484580755234, -0.03885643929243088, 0.03093358315527439, -0.06572525203227997, -0.00106355722527951, 0.022183995693922043, -0.01041166577488184, 0.03387881815433502, -0.021736182272434235, -0.005821576341986656, -0.029779601842164993, 0.08460231870412827, -0.0008041267865337431, 0.002557704458013177, -0.002910788170993328, -0.02655879035592079, -0.03124360926449299, 0.033431004732847214, 0.057457927614450455, -0.01203068345785141, 0.032552603632211685, 0.026799919083714485, -0.03589398041367531, -0.02068554237484932, 0.049018360674381256, 0.059421416372060776, 0.014312810264527798, 0.003158377483487129, -0.004964702297002077, 0.028074465692043304, 0.02168451063334942, 0.07922855764627457, 0.07323474436998367, 0.03365491330623627, -0.011160892434418201, 0.034791670739650726, 0.010988656431436539, -0.0034188844729214907, 0.05208416283130646, -0.0025211041793227196, -0.016181571409106255, 0.04026877507567406, 0.012676568701863289, 0.044195756316185, -0.03358601778745651, -0.03751299902796745, 0.016259077936410904, -0.031415846198797226, 0.05642450973391533, -0.0030248945113271475, 0.044264648109674454, 0.029021764174103737, 0.007828125730156898, -0.08963160961866379, 0.0044738296419382095, 0.11691378802061081, 0.03308653458952904, 0.005442657042294741, 0.00013375200796872377, 0.005890470929443836, -0.015363450162112713, 0.01674133725464344, -0.06916997581720352, -0.08529125899076462, 0.0032832485157996416, 0.061419352889060974, -0.04223226383328438, 0.03203589469194412, 0.014993143267929554, 0.01229764986783266, -0.017413059249520302, 0.03709963336586952, 0.04622814059257507, 0.013692760840058327, -0.03530837595462799, -0.009877733886241913, 0.023596329614520073, 0.026662131771445274, 0.024405838921666145, 0.014614223502576351, -0.0022304560989141464, 0.00970549788326025, -0.011376187205314636, 0.0012228755513206124, 0.036514028906822205, -0.021908417344093323, -0.047330450266599655, 0.028177807107567787, 0.0011668988736346364, -0.009490203112363815, -0.005533081013709307, 0.07571493834257126, 0.029900167137384415, 0.021718958392739296, -0.03336211293935776, -0.001144292880780995, 0.0610748827457428, 0.016577713191509247, 0.023096846416592598, -0.13448186218738556, -0.019359325990080833, 0.025215348228812218, -0.015552910044789314, 0.02829837240278721, 0.05880136787891388, -0.046917084604501724, -0.05869802460074425, -0.046641506254673004, -0.02333797700703144, 0.050981853157281876, 0.0323803648352623, 0.033258769661188126, -0.01724943518638611, 0.049156151711940765, 0.006532049737870693, 0.011238398030400276, -0.012013460509479046, 0.009490203112363815, -0.019738243892788887, -0.05074072256684303, 0.007337253075093031, -0.009550485759973526, 0.07750619202852249, -0.012547391466796398, -0.07323474436998367, -0.07743730396032333, -0.05208416283130646, -0.06651753932237625, 0.03827083855867386, -0.015923216938972473, -0.010015523061156273, 0.003005518112331629, -0.015156767331063747, 0.050430696457624435, 0.01982436142861843, -0.027609428390860558, -0.004404935520142317, 0.05218750610947609, 0.03840862587094307, 0.05683787539601326, -0.008947659283876419, -0.01631074771285057, -0.02659323625266552, -0.019910480827093124, -0.0009688274585641921, 0.0823976993560791, -0.04502248764038086, 0.03387881815433502, 0.017085809260606766, 0.06806766241788864, 0.037202972918748856, 0.03138139843940735, 0.051154088228940964, 0.04529806599020958, -0.06703424453735352, 0.013468854129314423, -0.006639697588980198, -0.011875671334564686, 0.018257014453411102, -0.001256246236152947, 0.015044813975691795, -0.04798494651913643, -0.026214318349957466, -0.08453342318534851, -0.01322772353887558, -0.024715865030884743, -0.032225351780653, 0.01668105646967888, 0.032122012227773666, 0.005597669631242752, 0.005955059546977282, 0.008861541748046875, 0.000003418648930164636, 0.051257431507110596, 0.02953847125172615, -0.02673102542757988, -0.006583720911294222, -0.03534282371401787, 0.032122012227773666, -0.030468545854091644, -0.0837755873799324, 0.02392357960343361, -0.009894957765936852, -0.025353137403726578, -0.055494435131549835, -0.0026115281507372856, -0.04013098403811455, -0.022597361356019974, -0.007376006338745356, 0.0234757661819458, 0.00857735238969326, 0.0005721464403904974, 0.07661056518554688, 0.043265681713819504, -0.00971410982310772, 0.005425433628261089, -0.00787118449807167, -0.0158801581710577, -0.04106105864048004, -0.007406147662550211, 0.017964214086532593, -0.010506395250558853, 0.012004848569631577, 0.027196062728762627, -0.010523619130253792, 0.03627289831638336, 0.03293152153491974, 0.046469271183013916, 0.015707923099398613, 0.08157096803188324, 0.03139862045645714, -0.02473308891057968, -0.024646969512104988, 0.05390986427664757, 0.011703435331583023, -0.09879456460475922, -0.01999659836292267, -0.029314564540982246, 0.01743028126657009, 0.004861360881477594, 0.004120746161788702, -0.009472979232668877, -0.040578797459602356, 0.002126038074493408, 0.05149856209754944, -0.04474690929055214, -0.05018956586718559, 0.01980713941156864, 0.013796103186905384, -0.02671380154788494, -0.05101630091667175, -0.06100598722696304, 0.006118683610111475, 0.006592332385480404, -0.032862626016139984, 0.009860510006546974, 0.023010728880763054, 0.04922504723072052, -0.053668733686208725, 0.016069617122411728, -0.006523438263684511, -0.07674835622310638, -0.06327950209379196, 0.020289398729801178, -0.010084416717290878, 0.022183995693922043, -0.041681110858917236, -0.014269751496613026, 0.06155714392662048, 0.026817142963409424, 0.00036169556551612914, 0.019342102110385895, 0.014243916608393192, -0.057044558227062225, -0.007440594956278801, -0.005614893045276403, 0.0027277874760329723, -0.020875001326203346, -0.04485025256872177, -0.027540534734725952, 0.03840862587094307, 0.0006415790412575006, -0.002113120397552848, -0.051980823278427124, -0.05328981578350067, 0.011780941858887672, -0.026679353788495064, 0.044195756316185, 0.011419245973229408, -0.00818551518023014, -0.013589419424533844, 0.013890832662582397, -0.006041177548468113, -0.03217368200421333, 0.030416876077651978, -0.04192224144935608, 0.0003630411811172962, 0.015828486531972885, -0.004921643529087305, 0.02588706836104393, 0.04237005487084389, 0.03951093554496765, 0.01398556213825941, -0.004999149590730667, 0.04598701000213623, -0.005477104336023331, 0.0011464457493275404, 0.003453331533819437, 0.0007546089473180473, 0.02475031092762947, -0.06768874078989029, -0.028728963807225227, 0.018601486459374428, -0.03641068935394287, 0.023424094542860985, -0.008357751183211803, -0.0077377017587423325, 0.01140202209353447, 0.042817868292331696, 0.02797112427651882, 0.01609545387327671, -0.051980823278427124, 0.04206002876162529, 0.018739275634288788, 0.03517058864235878, 0.023303529247641563, 0.06438181549310684, 0.037375207990407944, -0.08322443068027496, -0.011264233849942684, 0.05532220005989075, 0.004826913587749004, -0.00850845780223608, 0.0032767897937446833, 0.07729951292276382, 0.000951603811699897, -0.0675165057182312, -0.02404414489865303, 0.08246659487485886, -0.05993812531232834, 0.04660705849528313, -0.00857735238969326, 0.041129954159259796, 0.0012627050746232271, 0.01730971783399582, 0.019755467772483826, -0.013279395177960396, 0.01462283544242382, -0.005825882311910391, 0.02462974563241005, 0.005339315626770258, 0.007406147662550211, 0.04615924507379532, 0.029073435813188553, -0.02829837240278721, -0.02237345464527607, -0.04598701000213623, -0.026334883645176888, -0.0008644093759357929, -0.013692760840058327, 0.01209096610546112, -0.008168292231857777, 0.018532592803239822, 0.01915264129638672, 0.025852622464299202, -0.0016523890662938356, -0.023734118789434433, 0.05384096875786781, -0.05060293525457382, -0.04106105864048004, 0.038339730352163315, -0.0472615547478199, 0.05725124105811119, -0.08425784856081009, -0.03146751597523689, -0.023992473259568214, -0.04908725619316101, -0.00875389389693737, 0.034240514039993286, 0.0015587357338517904, 0.016362419351935387, 0.03906312212347984, -0.018601486459374428, -0.02983127348124981, -0.0253186896443367, -0.033809926360845566, 0.09907013922929764, 0.04722710698843002, 0.010816420428454876, -0.032156459987163544, 0.046365927904844284, 0.043816834688186646, 0.003644944168627262, -0.019032076001167297, 0.03696184232831001, -0.017395835369825363, 0.020995566621422768, -0.003739673877134919, 0.002262750407680869, 0.01336551271378994, -0.04261118546128273, -0.00692819245159626, -0.033258769661188126, -0.013262171298265457, -0.012900475412607193, -0.015010366216301918, 0.004796772263944149, -0.02519812434911728, 0.050120674073696136, -0.01844647526741028, -0.004137969575822353, 0.026386553421616554, 0.025818174704909325, -0.08584241569042206, -0.03012407384812832, -0.020478859543800354, -0.013089935295283794, 0.022959057241678238, 0.0029581531416624784, -0.030864689499139786, -0.013968338258564472, 0.008349139243364334, -0.004585782997310162, 0.026214318349957466, -0.023406870663166046, -0.04006209224462509, -0.04491914436221123, -0.0278505589812994, 0.036100663244724274, -0.05187748000025749, -0.04612479731440544, 0.019324878230690956, -0.030347980558872223, -0.036204006522893906, 0.006200495641678572, -0.004198252223432064, 0.0065191322937607765, 0.03446442261338234, -0.05711345374584198, 0.03830528259277344, 0.031002478674054146, 0.0005360845243558288, -0.025232572108507156, -0.00416165217757225, 0.001704059774056077, -0.01632797159254551, -0.0239408016204834, -0.015311779454350471, 0.012814357876777649, -0.022597361356019974, 0.023699672892689705, -0.05439212545752525, -0.026248764246702194, 0.016775785014033318, -0.02698937989771366, 0.013804714195430279, 0.013546360656619072, -0.022304560989141464, 0.00865485891699791, -0.0031992834992706776, 0.05566667020320892, -0.029452353715896606, 0.07371700555086136, -0.002669657813385129, -0.07550825923681259, -0.07392368465662003, 0.016904963180422783, 0.012469885870814323, -0.05108519271016121, 0.005080961622297764, 0.04671040177345276, -0.06324505805969238, -0.033431004732847214, 0.03933870047330856, -0.018601486459374428, 0.028246702626347542, -0.007690337020903826, -0.024009697139263153, 0.007849655114114285, -0.006282307673245668, 0.0006808703765273094, -0.013718596659600735, -0.015165379270911217, 0.057457927614450455, -0.018050331622362137, -0.021632840856909752, -0.0121598606929183, -0.03420606628060341, 0.06479518115520477, 0.006803321652114391, 0.02166728675365448, -0.022304560989141464, 0.03685850277543068, 0.0036083438899368048, 0.015613192692399025, -0.003083024173974991, -0.022132324054837227, 0.002430680440738797, 0.0030485771130770445, 0.015673475340008736, 0.0015436650719493628, -0.03599731996655464, -0.11195339262485504, 0.06128156557679176, -0.004140122793614864, -0.03146751597523689, 0.004400629550218582, -0.03120916150510311, -0.016904963180422783, 0.02769554778933525, -0.0006491143722087145, 0.018084779381752014, -0.02953847125172615, -0.010997268371284008, 0.004086298868060112, 0.018050331622362137, 0.05260087177157402, 0.017912542447447777, -0.004559947643429041, -0.003278942545875907, -0.00017344702791888267, -0.0034296491649001837, -0.025973187759518623, -0.04660705849528313, 0.010377218015491962, 0.0071736290119588375, 0.041681110858917236, -0.005812964402139187, 0.05284200236201286, 0.019738243892788887, -0.007673113141208887, -0.027798889204859734, -0.04953506961464882, 0.008232880383729935, -0.037478551268577576, 0.001186275389045477, 0.012831580825150013, -0.03982096165418625, -0.009455755352973938, -0.05204971507191658, -0.02054775319993496, 0.0323803648352623, -0.0195660088211298, 0.0009112360421568155, 0.0537031814455986, 0.033551570028066635, 0.05608003959059715, 0.007991749793291092, 0.08880487829446793, 0.011996236629784107, -0.011927342042326927, 0.030726900324225426, 0.013718596659600735, 0.03530837595462799, -0.06586304306983948, 0.03394771367311478, 0.0658285915851593, -0.046779293566942215, -0.00819412712007761, 0.011186727322638035, -0.050981853157281876, 0.046090349555015564, -0.00510249100625515, 0.022993505001068115, 0.013382736593484879, -0.054082099348306656, -0.05122298374772072, -0.0014607764314860106, 0.04261118546128273, 0.019307654350996017, 0.03709963336586952, 0.016379643231630325, -0.005610587541013956 ]
21,040
rna.polymorphism
_save_dill
null
def _save_dill(self, path): import dill # pylint:disable = import-outside-toplevel with open(path, "wb") as out_file: dill.dump(self, out_file)
(self, path)
[ 0.022004418075084686, 0.03392065688967705, -0.03161865472793579, 0.05951348692178726, 0.007409564219415188, -0.04979768767952919, -0.047055598348379135, 0.013575032353401184, -0.030349168926477432, -0.009605774655938148, 0.0019846290815621614, -0.03886318579316139, 0.0019634710624814034, 0.032955847680568695, -0.006537850946187973, 0.0015995518770068884, -0.003029838902875781, 0.01050287764519453, -0.031077008694410324, 0.03815227374434471, -0.0007061513606458902, -0.0038867418188601732, 0.015851642936468124, 0.019194621592760086, -0.016664113849401474, 0.018449857831001282, 0.03134782984852791, 0.028605742380023003, -0.027217771857976913, -0.02332468144595623, 0.0005347708356566727, -0.0379830077290535, 0.015335386618971825, 0.02019328437745571, -0.023036932572722435, 0.01707034930586815, 0.013278819620609283, 0.04749568924307823, -0.05250592529773712, -0.037509068846702576, 0.004070817027240992, 0.08436155319213867, 0.03339593484997749, -0.02462802082300186, 0.02401866763830185, -0.006719810422509909, -0.019516225904226303, -0.0035482123494148254, 0.010553657077252865, 0.004477052483707666, 0.031415536999702454, 0.026676123961806297, -0.06174778193235397, 0.003766140667721629, 0.0053022182546556, 0.010342076420783997, 0.05846404284238815, 0.03139860928058624, -0.020616445690393448, -0.025914432480931282, -0.014548305422067642, -0.02017635852098465, 0.08226266503334045, -0.02894427254796028, 0.0054460931569337845, 0.06320345401763916, -0.10514726489782333, -0.015056099742650986, -0.01493761409074068, 0.013845856301486492, 0.009842745028436184, -0.0863250195980072, 0.02775941789150238, 0.03683200851082802, 0.021259652450680733, -0.019431592896580696, -0.0480373352766037, -0.08036690205335617, 0.0042295027524232864, -0.018365224823355675, -0.030264537781476974, -0.0552818663418293, -0.05118566006422043, -0.0013996078632771969, -0.04790192469954491, -0.007121814414858818, 0.1025744378566742, 0.03390372917056084, -0.05518030747771263, -0.019211549311876297, 0.0504070408642292, 0.041571423411369324, -0.06628407537937164, -0.003370484337210655, 0.006127384025603533, -0.058362483978271484, -0.005746538285166025, 0.04096207022666931, -0.0379830077290535, 0.05054245516657829, -0.06906002014875412, -0.019922461360692978, -0.03102622926235199, 0.004836739972233772, -0.03241419792175293, -0.01572469435632229, 0.04417809844017029, -0.012474811635911465, -0.022816888988018036, -0.04082665592432022, -0.06713040173053741, 0.037509068846702576, -0.02786097675561905, -0.013964341953396797, 0.03134782984852791, -0.04174068570137024, 0.016943400725722313, 0.0028436477296054363, 0.03420840576291084, -0.04983154311776161, -0.0062289428897202015, 0.01829751953482628, -0.0823303759098053, 0.05379233881831169, 0.026980800554156303, 0.03383602201938629, 0.02065029926598072, 0.07359631359577179, 0.013972804881632328, 0.0073587847873568535, 0.031313978135585785, 0.017434269189834595, 0.010942965745925903, 0.01807747595012188, 0.07224219292402267, -0.004212576430290937, -0.019533151760697365, -0.024881917983293533, -0.0029155851807445288, 0.05284445360302925, -0.0007452938589267433, -0.06838295608758926, 0.02472957968711853, -0.013092628680169582, 0.07806490361690521, 0.06256025284528732, -0.0492221899330616, 0.029367433860898018, -0.03451308235526085, 0.011163010261952877, 0.008920252323150635, 0.01934695988893509, -0.020616445690393448, 0.03520706668496132, 0.0011795636964961886, -0.042045362293720245, -0.022190608084201813, 0.06394822150468826, -0.025982139632105827, -0.047631099820137024, -0.021022681146860123, 0.014793738722801208, 0.03605339303612709, 0.012567907571792603, -0.025152741000056267, -0.009944303892552853, -0.02368013747036457, 0.033886801451444626, 0.0363580696284771, 0.011256106197834015, -0.011569245718419552, -0.044618189334869385, -0.06699498742818832, 0.028775006532669067, -0.10650137811899185, 0.03649348020553589, -0.00003145613300148398, 0.030010640621185303, -0.002181399380788207, -0.011552318930625916, 0.016562554985284805, 0.020718004554510117, 0.0021750519517809153, 0.06374510377645493, 0.040657393634319305, -0.017789725214242935, -0.04302709922194481, -0.025965211912989616, -0.0015889728674665093, 0.060359809547662735, 0.03156787529587746, 0.05216739699244499, 0.024289490655064583, -0.025000402703881264, 0.02775941789150238, -0.04631083458662033, 0.004714023321866989, -0.07379943132400513, -0.025812873616814613, 0.07555978000164032, 0.03441152349114418, 0.0048452033661305904, 0.021902859210968018, -0.037272099405527115, 0.012085502967238426, -0.014192849397659302, -0.02369706518948078, -0.027387036010622978, 0.010333612561225891, 0.030416876077651978, 0.0371028333902359, 0.01888994500041008, -0.02589750662446022, -0.006368586327880621, 0.088694728910923, -0.055248014628887177, -0.036696597933769226, 0.054300129413604736, -0.006537850946187973, 0.022681476548314095, -0.01556389406323433, 0.06929698586463928, -0.08131478726863861, 0.03322666883468628, -0.04160527512431145, -0.03723824396729469, -0.022664550691843033, -0.029655184596776962, 0.04184224456548691, -0.041808392852544785, 0.019431592896580696, -0.00852247979491949, -0.033988360315561295, -0.05890413373708725, 0.012652539648115635, 0.030975449830293655, -0.09560073167085648, -0.030975449830293655, -0.017468122765421867, -0.022089049220085144, -0.007959675043821335, -0.04086051136255264, 0.013448084704577923, -0.0019380813464522362, 0.06513307243585587, -0.02894427254796028, -0.012110892683267593, -0.03381909802556038, 0.027234697714447975, 0.001622825744561851, 0.05494333803653717, -0.035613302141427994, 0.0035630229394882917, 0.05162574723362923, 0.020802637562155724, -0.04455048218369484, 0.00278652086853981, -0.024763433262705803, 0.014497525990009308, -0.007900431752204895, -0.0004683872975874692, -0.05443554371595383, -0.015428481623530388, -0.01946544647216797, 0.003156787483021617, 0.019330034032464027, 0.0043416409753263, -0.06205245852470398, 0.04140215739607811, -0.035917978733778, 0.01809440180659294, 0.07373172789812088, -0.05555269122123718, -0.0325157567858696, -0.029096610844135284, -0.027624007314443588, -0.013371915556490421, 0.03241419792175293, -0.021632034331560135, 0.038321539759635925, 0.00979196559637785, -0.0019179811934009194, 0.0727161392569542, -0.0058777183294296265, -0.027370110154151917, 0.005044089630246162, -0.02462802082300186, -0.007777715101838112, 0.008894862607121468, -0.0141166802495718, 0.015157658606767654, 0.04106362909078598, 0.02787790447473526, 0.026439154520630836, 0.07400254905223846, 0.010824481025338173, -0.04935760051012039, -0.04014959931373596, 0.02599906548857689, -0.0007542860112152994, 0.0034805063623934984, 0.00358418095856905, 0.024069447070360184, 0.05443554371595383, -0.028301065787672997, -0.03112778812646866, -0.039709508419036865, -0.0010013068094849586, 0.0005696816951967776, 0.07393484562635422, 0.009580384939908981, -0.015149194747209549, 0.028064094483852386, 0.08476778864860535, 0.08029919862747192, -0.04983154311776161, -0.02344316802918911, -0.02379862405359745, 0.0035312857944518328, 0.019990166649222374, -0.024577241390943527, 0.013685055077075958, -0.02684538997709751, 0.012356326915323734, 0.0052302805706858635, -0.014624474570155144, 0.04702174663543701, 0.05856560170650482, 0.022546064108610153, -0.018263665959239006, -0.034699272364377975, -0.024407977238297462, 0.03805071488022804, 0.009030274115502834, 0.07955443114042282, -0.01114608347415924, 0.04265471547842026, -0.05328454449772835, 0.003044649725779891, 0.005221817642450333, 0.059784308075904846, 0.018162107095122337, 0.0008103550062514842, -0.01720576174557209, 0.013964341953396797, 0.04421195387840271, -0.029011977836489677, -0.008530943654477596, -0.014277481473982334, 0.09025196731090546, 0.01993938721716404, 0.02987522818148136, -0.02007479965686798, 0.011933164671063423, 0.010359002277255058, -0.042620863765478134, 0.023815549910068512, 0.0366627462208271, -0.0354778915643692, -0.03544403985142708, 0.005209122784435749, -0.050305482000112534, -0.007418027613312006, -0.016088614240288734, 0.0391678623855114, -0.010494414716959, -0.06824754923582077, -0.03510550782084465, 0.04346718639135361, 0.02870730124413967, -0.007938516326248646, -0.019397739320993423, -0.006017361767590046, 0.023950962349772453, 0.030146051198244095, 0.027200844138860703, 0.0009320140234194696, 0.016325585544109344, 0.0005834344192408025, 0.026337595656514168, -0.009453436359763145, -0.0487820990383625, 0.062323279678821564, -0.013287282548844814, 0.07163283973932266, -0.0060935309156775475, 0.05819322168827057, -0.0025305079761892557, 0.0036391920875757933, -0.030484581366181374, 0.07156513631343842, -0.009292635135352612, 0.015665452927350998, 0.026659198105335236, -0.0288257859647274, 0.0199563130736351, 0.0009367745951749384, 0.06256025284528732, 0.02019328437745571, 0.05518030747771263, 0.0025410871021449566, -0.051388777792453766, -0.022359874099493027, 0.06702884286642075, -0.022224461659789085, -0.0009367745951749384, -0.04813889414072037, 0.0063262698240578175, 0.06286492943763733, 0.006736737210303545, 0.008666355162858963, 0.01114608347415924, 0.03618880361318588, 0.011095304042100906, 0.056737542152404785, 0.004735181108117104, 0.004261239897459745, -0.0475972481071949, 0.018822239711880684, -0.026523785665631294, -0.028724227100610733, 0.06110457330942154, -0.0002646084176376462, 0.010054325684905052, -0.044618189334869385, -0.04184224456548691, -0.022105976939201355, 0.05782083794474602, -0.01679106242954731, 0.0782003104686737, 0.02423871122300625, -0.025051182135939598, -0.05788854509592056, -0.011806216090917587, 0.028842713683843613, 0.0005792028387077153, -0.008200877346098423, -0.02205519750714302, -0.004240082111209631, 0.0288257859647274, 0.034005288034677505, 0.018923798575997353, 0.012821804732084274, -0.05788854509592056, 0.06699498742818832, -0.04512598365545273, -0.01865297555923462, 0.05328454449772835, 0.09573613852262497, 0.003768256399780512, 0.04488901048898697, -0.047191012650728226, 0.036324214190244675, -0.01960085704922676, -0.02938435971736908, -0.03204181790351868, 0.04038656875491142, -0.10778779536485672, 0.04001418501138687, -0.009140296839177608, 0.005116026848554611, -0.023612432181835175, 0.04421195387840271, -0.010359002277255058, 0.020684152841567993, 0.0005080586997792125, -0.08002837002277374, 0.039472538977861404, 0.026185257360339165, -0.041977658867836, -0.004836739972233772, -0.00016172717732843012, -0.031297050416469574, -0.011095304042100906, -0.012923363596200943, 0.013930488377809525, -0.014480599202215672, 0.02718391828238964, -0.013329599052667618, 0.003819035831838846, 0.017654312774538994, -0.08855931460857391, -0.02100575529038906, 0.013380378484725952, 0.0199563130736351, -0.0016884158831089735, -0.022681476548314095, 0.018009768798947334, 0.0215812548995018, 0.0193638876080513, 0.0022639159578830004, 0.006195089779794216, -0.0935695543885231, -0.09377267211675644, -0.0013488284312188625, 0.0005511683411896229, -0.056162044405937195, 0.00437972554937005, -0.0026320668403059244, -0.07616913318634033, -0.029587477445602417, -0.0601566918194294, -0.01983782835304737, 0.014387503266334534, 0.0002667242079041898, 0.05206583812832832, 0.02740396186709404, 0.01668950356543064, -0.009487289004027843, -0.003914247266948223, -0.048917513340711594, -0.010883723385632038, -0.07027872651815414, 0.06757048517465591, -0.026456080377101898, 0.029553625732660294, -0.011103767901659012, 0.00576769607141614, -0.06242483854293823, -0.012203988619148731, -0.02542356587946415, 0.0508471317589283, 0.05216739699244499, -0.04326406866312027, -0.062357135117053986, 0.011679267510771751, -0.010367466136813164, 0.025575904175639153, 0.020108651369810104, 0.06804443150758743, 0.05064401403069496, -0.004438967909663916, 0.07501813769340515, 0.006664799526333809, 0.018619121983647346, 0.09187690168619156, 0.020785711705684662, -0.033988360315561295, -0.04008189216256142, -0.06283107399940491, 0.018500637263059616, -0.06161236763000488, -0.00804853904992342, -0.02168281376361847, -0.005666137672960758, 0.018111327663064003, -0.02076878398656845, -0.004824045114219189, 0.0017878588987514377, -0.005822707433253527, 0.02229216694831848, -0.0026362985372543335, 0.00886100996285677, -0.04031886160373688, 0.03625651076436043, -0.06601325422525406, 0.023934034630656242, 0.029655184596776962, 0.0592765137553215, -0.014768349006772041, -0.038897037506103516, -0.03747521713376045, -0.004735181108117104, 0.020125579088926315, 0.0319233313202858, 0.008412458002567291, -0.0066605680622160435, -0.009732723236083984, -0.017586607486009598, -0.02379862405359745, 0.03486853837966919, 0.009842745028436184, 0.0557219535112381, -0.043094806373119354, 0.0354778915643692, 0.036561187356710434, 0.0073418584652245045, 0.03639192134141922, 0.014023584313690662, -0.040623538196086884, 0.008767914026975632, 0.03625651076436043, -0.01914384216070175, -0.019854754209518433, -0.03173714131116867, -0.06496381014585495, 0.018923798575997353, 0.008903325535356998, -0.032854288816452026, 0.04319636523723602, 0.01718883588910103, -0.011366127990186214, -0.02635452151298523, -0.05680524930357933, 0.017078813165426254, -0.005496872588992119, 0.008996421471238136, -0.016427144408226013, 0.011662340722978115, -0.0041660284623503685, 0.0024141385219991207, -0.004161796998232603, -0.023409314453601837, 0.05098254233598709, -0.03151709586381912, 0.029942933470010757, 0.013600422069430351, 0.03700127452611923, 0.011755436658859253, 0.0032689254730939865, -0.06333886831998825, -0.00723606813699007, 0.025355858728289604, 0.027725566178560257, -0.043094806373119354, -0.00285634258762002, 0.05226895585656166, -0.009851207956671715, -0.08855931460857391, 0.0717005506157875, 0.003518590936437249, -0.04119903966784477, 0.015309996902942657, -0.029655184596776962, -0.026066770777106285, -0.01305877510458231, -0.016579482704401016, 0.04194380342960358, 0.04458433389663696, 0.004642085637897253, -0.04363645240664482, 0.013922025449573994, -0.0018396961968392134, 0.0009367745951749384, -0.020718004554510117, 0.009546531364321709, -0.014345187693834305, -0.006867917254567146, -0.00866212323307991, -0.0019232707563787699, -0.03393758088350296, 0.05518030747771263, -0.04021730273962021, -0.006195089779794216, -0.06733351945877075, -0.022444505244493484, -0.024577241390943527, -0.02611755020916462, -0.017214225605130196, -0.041368305683135986, -0.031195493414998055, -0.023764770478010178, -0.004646317567676306, -0.0035397489555180073, 0.04546451196074486, 0.03373446315526962, 0.09621008485555649, 0.006876380182802677, -0.019076136872172356, 0.015927812084555626, -0.008818693459033966, -0.005031394772231579, -0.04072509706020355, -0.022715330123901367, -0.01451445184648037, 0.037272099405527115, -0.04736027494072914, 0.0455322191119194, -0.009935840964317322, -0.05727919191122055, -0.01348193734884262, -0.012043186463415623, -0.03740750998258591, -0.050914835184812546, -0.05226895585656166, -0.09214773029088974, 0.034800831228494644, -0.04086051136255264, 0.048240453004837036, -0.007020255550742149, -0.05050859972834587, 0.025491271167993546, 0.013820466585457325, -0.06895846128463745, -0.01821288652718067, 0.06171392649412155, 0.03297277167439461, 0.02589750662446022, 0.025575904175639153, -0.015767011791467667, -0.021970564499497414, -0.024797284975647926, 0.004544758703559637, -0.01738348975777626, 0.019736269488930702, -0.0452275425195694, 0.07610142976045609, 0.027437815442681313, 0.01970241591334343, -0.0452275425195694, -0.028165653347969055, 0.009741186164319515, 0.05402930825948715, 0.024577241390943527, 0.022207535803318024, -0.03720439225435257, -0.0008267525117844343, 0.013346525840461254, -0.03288814052939415, -0.03151709586381912, 0.03270195052027702, 0.004785960540175438, 0.029553625732660294, 0.0007415911532007158, 0.04651395231485367, -0.04895136505365372, -0.013261892832815647, -0.017688166350126266, -0.02471265383064747, -0.03392065688967705, -0.012855657376348972, 0.013338061980903149, -0.020447181537747383, -0.034699272364377975, -0.034936245530843735, 0.014311334118247032, -0.022326020523905754, 0.00278652086853981, 0.040758952498435974, 0.001293817418627441, -0.03065384551882744, 0.017908209934830666, 0.017552753910422325, 0.02567746303975582, -0.007481501903384924, -0.015538504347205162, -0.012931826524436474, 0.019753195345401764, 0.012804877944290638, 0.04102977365255356, -0.0028436477296054363, 0.01661333441734314, 0.0288257859647274, 0.011340738274157047, -0.0007590465829707682, -0.006584398914128542, 0.061984751373529434, 0.06063063442707062, -0.06063063442707062, 0.011882385239005089, 0.05863330885767937, 0.03615495190024376, 0.03170328587293625, 0.04427965730428696, 0.03430996462702751, -0.009436509571969509, 0.040758952498435974, -0.04455048218369484, 0.03381909802556038, -0.023493947461247444, -0.0016524471575394273, -0.06435445696115494, -0.0068298326805233955, -0.02462802082300186, 0.04512598365545273, 0.023866329342126846, -0.050203923135995865, -0.024221785366535187 ]
21,041
tfields.core
_save_npz
Args: path (open file or str/unicode): destination to save file to. Examples: Build some dummies: >>> import tfields >>> from tempfile import NamedTemporaryFile >>> out_file = NamedTemporaryFile(suffix='.npz') >>> p = tfields.Points3D([[1., 2., 3.], [4., 5., 6.], [1, 2, -6]], ... name='my_points') >>> scalars = tfields.Tensors([0, 1, 2], name=42) >>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]]) >>> maps = [tfields.TensorFields([[0, 1, 2], [0, 1, 2]], [42, 21]), ... tfields.TensorFields([[1], [2]], [-42, -21])] >>> m = tfields.TensorMaps(vectors, scalars, ... maps=maps) Simply give the file name to save >>> p.save(out_file.name) >>> _ = out_file.seek(0) # this is only necessary in the test >>> p1 = tfields.Points3D.load(out_file.name) >>> assert p.equal(p1) >>> assert p.coord_sys == p1.coord_sys The fully nested structure of a TensorMaps object is reconstructed >>> out_file_maps = NamedTemporaryFile(suffix='.npz') >>> m.save(out_file_maps.name) >>> _ = out_file_maps.seek(0) >>> m1 = tfields.TensorMaps.load(out_file_maps.name, ... allow_pickle=True) >>> assert m.equal(m1) >>> assert m.maps[3].dtype == m1.maps[3].dtype Names are preserved >>> assert p.name == 'my_points' >>> m.names [42]
def _save_npz(self, path): """ Args: path (open file or str/unicode): destination to save file to. Examples: Build some dummies: >>> import tfields >>> from tempfile import NamedTemporaryFile >>> out_file = NamedTemporaryFile(suffix='.npz') >>> p = tfields.Points3D([[1., 2., 3.], [4., 5., 6.], [1, 2, -6]], ... name='my_points') >>> scalars = tfields.Tensors([0, 1, 2], name=42) >>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]]) >>> maps = [tfields.TensorFields([[0, 1, 2], [0, 1, 2]], [42, 21]), ... tfields.TensorFields([[1], [2]], [-42, -21])] >>> m = tfields.TensorMaps(vectors, scalars, ... maps=maps) Simply give the file name to save >>> p.save(out_file.name) >>> _ = out_file.seek(0) # this is only necessary in the test >>> p1 = tfields.Points3D.load(out_file.name) >>> assert p.equal(p1) >>> assert p.coord_sys == p1.coord_sys The fully nested structure of a TensorMaps object is reconstructed >>> out_file_maps = NamedTemporaryFile(suffix='.npz') >>> m.save(out_file_maps.name) >>> _ = out_file_maps.seek(0) >>> m1 = tfields.TensorMaps.load(out_file_maps.name, ... allow_pickle=True) >>> assert m.equal(m1) >>> assert m.maps[3].dtype == m1.maps[3].dtype Names are preserved >>> assert p.name == 'my_points' >>> m.names [42] """ content_dict = self._as_dict() content_dict["tfields_version"] = tfields.__version__ np.savez(path, **content_dict)
(self, path)
[ -0.00415612431243062, 0.02975717931985855, -0.03842916339635849, 0.056828346103429794, 0.04236225038766861, -0.01816895417869091, -0.11150788515806198, 0.0785466730594635, -0.008403381332755089, -0.005467953626066446, 0.06787937134504318, 0.02977636456489563, -0.07444091141223907, 0.008609629236161709, 0.005304874386638403, 0.021430540829896927, 0.025900833308696747, 0.025824090465903282, -0.018418369814753532, -0.010964686051011086, -0.0011307632084935904, -0.017257628962397575, 0.05042028799653053, 0.009050901979207993, 0.029315905645489693, -0.05418070778250694, 0.056367889046669006, -0.0032639845740050077, 0.021315427497029305, 0.025958390906453133, -0.06887703388929367, -0.047158703207969666, -0.006273757200688124, 0.09270580112934113, 0.00851370021700859, -0.01997242122888565, 0.01983811892569065, 0.05575394257903099, -0.06404221057891846, -0.04861682280898094, 0.03298039361834526, -0.010005395859479904, -0.05985970422625542, -0.0333065539598465, 0.050266802310943604, 0.022293902933597565, -0.01773727498948574, 0.0009484980837441981, 0.008964566513895988, 0.030562983825802803, 0.027723483741283417, -0.0036453024949878454, 0.006355297286063433, -0.01944481022655964, -0.0486551932990551, 0.02584327571094036, 0.08334312587976456, 0.022025302052497864, -0.03944601118564606, 0.003136878600344062, 0.0012962408363819122, -0.00298579060472548, -0.0005434977938421071, -0.04289945587515831, -0.014984111301600933, 0.029565321281552315, -0.052492354065179825, -0.0634666383266449, 0.026649080216884613, 0.02306133508682251, -0.010504227131605148, -0.016595719382166862, 0.045508723706007004, -0.0016847533406689763, 0.023694466799497604, 0.06177828460931778, 0.008456142619252205, -0.04247736558318138, -0.06730379164218903, -0.023003777489066124, -0.05621439963579178, -0.09354997426271439, -0.021871814504265785, 0.021756699308753014, -0.013545176945626736, -0.002126026665791869, 0.06906888633966446, 0.023445051163434982, -0.010974278673529625, -0.019051501527428627, 0.0009077282738871872, 0.002820312976837158, -0.024826427921652794, -0.018974758684635162, -0.01622159592807293, -0.09585227072238922, 0.008604831993579865, -0.034745488315820694, -0.07087235152721405, 0.02210204489529133, 0.001381377805955708, -0.03783440217375755, -0.04263085499405861, 0.02682175114750862, -0.0020600755233317614, -0.004098567180335522, 0.004439115058630705, 0.0020444870460778475, -0.03791114687919617, -0.02052880823612213, -0.02056718058884144, 0.029431020841002464, 0.02110438235104084, -0.004554229788482189, 0.05594579875469208, -0.06922237575054169, 0.03825648874044418, 0.030985070392489433, 0.0065327659249305725, -0.02054799534380436, 0.00454463716596365, 0.07321302592754364, -0.027723483741283417, 0.0658840462565422, -0.02308052033185959, -0.014207086525857449, 0.08341986685991287, 0.056252773851156235, -0.02684093825519085, -0.0002976797113660723, 0.016432639211416245, 0.00432879664003849, -0.04984471574425697, 0.03265423700213432, 0.04105761647224426, 0.04934588447213173, 0.059169016778469086, -0.018936386331915855, -0.026649080216884613, 0.027454882860183716, 0.03100425750017166, -0.021468913182616234, -0.028183944523334503, 0.0032855686731636524, 0.02474968507885933, -0.008101205341517925, 0.025114215910434723, -0.03568559139966965, -0.03309550881385803, -0.04531686380505562, 0.04278434067964554, -0.001566041144542396, -0.047465674579143524, 0.03006415255367756, -0.005376821383833885, -0.06131782382726669, 0.03156064450740814, -0.028299057856202126, -0.010082139633595943, 0.0015792313497513533, -0.05613765865564346, 0.0656154453754425, -0.023387493565678596, 0.013382097706198692, -0.013228611089289188, 0.01516637671738863, 0.015876252204179764, -0.021046824753284454, -0.0036021345295011997, 0.004949937108904123, 0.008907008916139603, 0.0010905929375439882, -0.04447269067168236, 0.0248648002743721, -0.004551831632852554, -0.008225913159549236, -0.022754361853003502, -0.019895676523447037, -0.02991066686809063, 0.003719647414982319, 0.05728880688548088, -0.02081659622490406, -0.03156064450740814, 0.050381917506456375, 0.017679717391729355, -0.010043767280876637, -0.0074728699401021, -0.0014041608665138483, 0.0090892743319273, 0.023867137730121613, 0.008681575767695904, 0.05878530070185661, 0.014696325175464153, -0.0180442463606596, 0.03783440217375755, -0.04332154244184494, 0.02279273420572281, -0.04631452634930611, 0.029987409710884094, 0.04631452634930611, -0.08526170998811722, -0.02837580256164074, 0.03090832754969597, -0.06653635948896408, -0.031081000342965126, -0.06699682027101517, 0.022255530580878258, -0.07106421142816544, -0.05195515230298042, 0.05567719787359238, 0.045201752334833145, -0.01913783885538578, -0.007257029879838228, -0.017296001315116882, 0.03814137354493141, -0.03775766119360924, -0.043666888028383255, 0.06250734627246857, -0.01005336083471775, 0.0013609929010272026, -0.020029976963996887, 0.0629294291138649, -0.055830683559179306, 0.015837879851460457, -0.006892499513924122, -0.01632711850106716, -0.000014988908333180007, 0.03580070659518242, -0.042861081659793854, -0.027992086485028267, 0.013065531849861145, 0.013123088516294956, -0.028145572170615196, -0.050266802310943604, 0.03568559139966965, -0.04044367000460625, -0.005712572485208511, -0.04873193800449371, 0.0360884927213192, -0.02194855734705925, 0.0062593682669103146, -0.039215780794620514, 0.00068109598942101, -0.03228970617055893, 0.01348761934787035, 0.0032831705175340176, -0.006470412015914917, -0.02405899576842785, 0.03296120837330818, 0.012710594572126865, 0.07225373387336731, 0.0004997301730327308, -0.033498410135507584, 0.05299118533730507, -0.00010799508163472638, -0.014024822041392326, 0.08403381705284119, 0.0032424007076770067, 0.0486551932990551, 0.0065279691480100155, -0.05310630053281784, -0.053873732686042786, 0.030946699902415276, -0.04669824242591858, 0.01516637671738863, -0.0016475807642564178, 0.03760417178273201, -0.044933147728443146, 0.03664488345384598, 0.004335991572588682, 0.008158762939274311, 0.06830145418643951, -0.07942922413349152, -0.028279872611165047, 0.017814017832279205, -0.039791353046894073, 0.04147970676422119, -0.0248648002743721, 0.06630613654851913, 0.006628694944083691, 0.016730019822716713, -0.024711312726140022, 0.023809580132365227, 0.002332274103537202, 0.007870975881814957, 0.03520594909787178, -0.040750645101070404, 0.006105881650000811, 0.023502608761191368, -0.05210863798856735, 0.006954853422939777, 0.046199411153793335, 0.0009173211874440312, -0.030428683385252953, -0.002416212111711502, -0.045355238020420074, -0.10176149755716324, -0.03560885041952133, 0.06484801322221756, 0.033210624009370804, -0.004057797137647867, 0.030543796718120575, 0.10061034560203552, 0.03227052092552185, 0.024826427921652794, -0.003230409463867545, -0.06488638371229172, 0.02852928824722767, -0.0005686791846528649, 0.04819473624229431, 0.034304216504096985, -0.031963545829057693, 0.003088914090767503, 0.04201690852642059, 0.07382696866989136, 0.0355512909591198, 0.008197134360671043, -0.031100185588002205, 0.02388632483780384, 0.011482702568173409, -0.017286408692598343, -0.009660051204264164, -0.01747826673090458, 0.037431500852108, -0.009832723997533321, -0.06626775860786438, -0.013669883832335472, -0.01734396629035473, 0.01748785935342312, -0.028740331530570984, 0.006739013362675905, 0.0014245458878576756, 0.023445051163434982, 0.04485640674829483, 0.0049259546212852, 0.05383536219596863, 0.021142754703760147, 0.012595479376614094, 0.008897416293621063, 0.04665987193584442, 0.0031680555548518896, 0.0031296841334551573, -0.05137958005070686, -0.009995803236961365, -0.047312188893556595, 0.0005387013661675155, -0.009242760017514229, -0.012336471118032932, 0.007141915149986744, 0.05203189700841904, -0.01745907962322235, 0.010849570855498314, 0.02906649000942707, 0.07823970168828964, -0.038103003054857254, 0.00444151321426034, 0.06553870439529419, 0.022696804255247116, 0.013401282951235771, 0.008830265142023563, 0.004364769905805588, -0.024692127481102943, 0.020183464512228966, -0.03397805616259575, 0.07728040963411331, -0.0438971146941185, 0.052760958671569824, -0.008907008916139603, 0.005242520477622747, -0.0248648002743721, -0.0025277293752878904, -0.052338868379592896, -0.0003651298175100237, 0.0010875951265916228, 0.015991365537047386, -0.016451826319098473, -0.006667066365480423, 0.017401522025465965, 0.009386654011905193, -0.08019665628671646, -0.003038551425561309, -0.05168655142188072, 0.022543318569660187, -0.0006571137346327305, 0.0025852869730442762, 0.057519037276506424, 0.021027639508247375, 0.0436285138130188, -0.0032543917186558247, -0.02710953913629055, 0.034879788756370544, 0.03802626207470894, 0.024960728362202644, 0.003134480444714427, 0.024135740473866463, 0.039637867361307144, -0.07582229375839233, 0.02946939319372177, -0.015051262453198433, 0.03117692843079567, -0.039752982556819916, -0.0674189105629921, -0.03415072709321976, 0.01788116805255413, -0.0003939084999728948, 0.009674441069364548, -0.015713172033429146, -0.031061815097928047, 0.054295819252729416, -0.008556867949664593, 0.005467953626066446, 0.04098087549209595, 0.010245218873023987, -0.056406259536743164, 0.02797289937734604, 0.0656154453754425, -0.06530847400426865, 0.0025229330640286207, 0.04002158343791962, -0.007132322061806917, -0.003767611924558878, 0.06404221057891846, -0.004319204017519951, 0.03497571870684624, 0.05337490141391754, -0.042438995093107224, -0.04623778536915779, 0.02920079231262207, 0.012106241658329964, 0.09615924209356308, 0.019521554931998253, -0.05433419346809387, 0.006878110114485025, -0.0088638411834836, 0.039791353046894073, 0.021890999749302864, 0.041594818234443665, -0.03019845299422741, -0.05310630053281784, 0.0888686403632164, 0.0631980299949646, 0.05130283534526825, -0.02977636456489563, -0.030025780200958252, 0.0013993644388392568, 0.04930751398205757, 0.02052880823612213, -0.002937826095148921, 0.01292163785547018, 0.057787638157606125, -0.0010378320002928376, 0.003669284749776125, 0.04570057988166809, -0.06899214535951614, 0.007276215590536594, -0.02599676325917244, 0.004223274998366833, -0.07022003829479218, -0.04098087549209595, -0.045355238020420074, 0.024634569883346558, 0.011098986491560936, 0.05517836660146713, -0.030025780200958252, 0.041172731667757034, -0.03219377622008324, -0.01578032225370407, 0.010561784729361534, 0.0022879070602357388, -0.04531686380505562, 0.006753402296453714, 0.00358294858597219, -0.058209724724292755, -0.011636189185082912, -0.018523892387747765, 0.03215540573000908, 0.0030193657148629427, 0.0539504773914814, -0.022044487297534943, -0.02377120964229107, 0.007194675970822573, -0.04984471574425697, -0.03890880569815636, 0.044664546847343445, 0.01902272365987301, 0.04777264967560768, -0.003650099039077759, 0.0531446747481823, 0.09700341522693634, -0.04167156293988228, -0.01997242122888565, -0.00048594039981253445, -0.025881648063659668, 0.04136459156870842, -0.01788116805255413, 0.008504106663167477, 0.0009299118537455797, 0.010082139633595943, -0.02572816051542759, -0.03117692843079567, -0.008849451318383217, 0.01028359029442072, -0.011933568865060806, -0.022044487297534943, -0.0018742131069302559, -0.01900353655219078, 0.021353797987103462, -0.019511960446834564, 0.016682054847478867, -0.01861022785305977, -0.06626775860786438, 0.00817794818431139, -0.05295281484723091, -0.011051022447645664, -0.019511960446834564, 0.08395706862211227, -0.00873433705419302, -0.018773308023810387, -0.046890102326869965, 0.021046824753284454, -0.020336950197815895, 0.030217638239264488, 0.02164158597588539, -0.027186281979084015, -0.04727381840348244, 0.027704298496246338, -0.029546136036515236, 0.020298579707741737, 0.0695677176117897, 0.07812459021806717, 0.017526229843497276, -0.012873673811554909, 0.01803465373814106, -0.006168235559016466, 0.020778223872184753, 0.026879308745265007, 0.029718808829784393, -0.03844834864139557, 0.023540979251265526, -0.054027218371629715, 0.008412973955273628, -0.03420828655362129, -0.013065531849861145, -0.08648959547281265, 0.03044786863029003, 0.052607469260692596, 0.03365189582109451, -0.04009832814335823, 0.019502367824316025, 0.0018850050400942564, 0.02545955963432789, -0.045470353215932846, 0.06431081146001816, -0.03298039361834526, 0.014178307726979256, -0.0040266201831400394, -0.027474069967865944, -0.03344085440039635, -0.006858924403786659, -0.034726303070783615, 0.012547514401376247, 0.026936866343021393, 0.02166077122092247, 0.0394076369702816, -0.058708555996418, 0.003081719623878598, -0.014705917797982693, 0.009655254893004894, -0.003175250254571438, 0.04462617635726929, 0.0536818765103817, -0.018427962437272072, 0.07697343826293945, -0.004424725659191608, 0.04044367000460625, -0.0011037831427529454, 0.031100185588002205, 0.0245961993932724, 0.05203189700841904, -0.005391210317611694, 0.02363690920174122, 0.03062054142355919, -0.008561664260923862, -0.030236825346946716, 0.018389591947197914, 0.010916722007095814, 0.04274596646428108, 0.045930810272693634, -0.012240542098879814, 0.0184471495449543, -0.04190179333090782, 0.09155464917421341, 0.0028562862426042557, -0.019502367824316025, -0.009199592284858227, -0.04385874420404434, 0.0048156362026929855, 0.010398704558610916, -0.008422567509114742, -0.023003777489066124, 0.0061298636719584465, -0.01383296400308609, -0.047312188893556595, -0.006120271049439907, 0.009679237380623817, -0.04190179333090782, -0.02862521819770336, 0.04750404879450798, 0.015972180292010307, 0.01396726444363594, -0.013017566874623299, -0.01788116805255413, 0.006671862676739693, -0.0835733562707901, -0.01158822514116764, -0.03580070659518242, -0.04723544418811798, 0.04320642724633217, -0.02403981052339077, 0.010792014189064503, -0.07033514976501465, -0.004813238047063351, 0.006369686219841242, 0.004024222027510405, -0.030236825346946716, -0.03148390352725983, 0.011674560606479645, -0.0008315846207551658, 0.024711312726140022, -0.050228431820869446, -0.019387252628803253, -0.02417411096394062, 0.004192098043859005, -0.034592002630233765, -0.001702739973552525, -0.07094909995794296, -0.0631980299949646, -0.006739013362675905, 0.01375622022897005, 0.001928173121996224, -0.013468433171510696, -0.017267221584916115, -0.013305353932082653, -0.0023274775594472885, -0.004218478221446276, -0.015713172033429146, 0.04850170761346817, -0.025363631546497345, 0.031061815097928047, -0.03819893300533295, -0.0483865924179554, 0.01928173191845417, -0.03211703523993492, -0.011684154160320759, 0.013161460869014263, 0.03100425750017166, 0.03509083390235901, 0.013535583391785622, -0.005146591458469629, -0.04616104066371918, -0.016998620703816414, -0.048847053200006485, -0.08733377605676651, 0.001833443297073245, -0.011866418644785881, -0.02334912121295929, -0.0015528509393334389, 0.05655974522233009, -0.004863600712269545, -0.013372504152357578, -0.019617483019828796, -0.0004802446055691689, 0.03873613476753235, -0.02166077122092247, 0.030639726668596268, -0.0224857609719038, 0.00597637752071023, 0.03497571870684624, -0.008019665256142616, -0.008355417288839817, 0.027282211929559708, 0.030428683385252953, -0.004513460211455822, 0.008648000657558441, -0.007803825195878744, 0.03298039361834526, -0.005482343025505543, 0.06365849077701569, -0.011674560606479645, 0.02137298323214054, -0.014408538118004799, 0.017420709133148193, 0.05268421396613121, -0.0029066491406410933, 0.008945380337536335, -0.02125786989927292, 0.08549193292856216, 0.07754901051521301, 0.008561664260923862, -0.04489477723836899, -0.05548534169793129, -0.0684933140873909, -0.0017650938825681806, -0.0015348641900345683, 0.002425804967060685, 0.021430540829896927, -0.027915341779589653, -0.00038491515442728996, -0.020221835002303123, -0.032366447150707245, -0.019607890397310257, 0.001410156488418579, 0.04359014332294464, -0.047580789774656296, -0.06622938811779022, 0.021967744454741478, 0.040712274610996246, -0.0026092692278325558, -0.003834762377664447, -0.010158882476389408, -0.037393130362033844, 0.05632951483130455, -0.014370165765285492, 0.005928413011133671, -0.019617483019828796, -0.03507164865732193, -0.12347982823848724, -0.011760897003114223, -0.011444331146776676, 0.0388704352080822, -0.016394268721342087, 0.012135020457208157, -0.0013154265470802784, -0.035973381251096725, -0.02822231501340866, 0.005741351284086704, 0.011780083179473877, -0.045892439782619476, -0.023540979251265526, 0.06411895155906677, 0.0017363150836899877, 0.02319563552737236, 0.019502367824316025, 0.001476107630878687, 0.040213443338871, 0.03086995705962181, 0.01818814128637314, 0.019607890397310257, -0.040059953927993774, 0.004029018338769674, 0.07635949552059174, 0.021737514063715935, -0.03466874361038208, -0.03073565475642681, 0.04328317195177078, 0.00733856949955225, 0.043244797736406326, -0.056099288165569305, -0.003592541441321373, -0.019387252628803253, -0.06722705066204071, -0.056828346103429794, -0.047734275460243225, 0.010005395859479904, 0.0290856771171093, 0.012499550357460976, -0.06596078723669052, -0.025651417672634125 ]
21,042
rna.polymorphism
_save_pickle
null
def _save_pickle(self, path): import pickle # pylint:disable = import-outside-toplevel with open(path, "wb") as out_file: pickle.dump(self, out_file)
(self, path)
[ 0.024653946980834007, -0.0007651624619029462, -0.04866665601730347, 0.07863613218069077, -0.006724570412188768, -0.06992878764867783, -0.0609176903963089, 0.054269056767225266, 0.012183538638055325, -0.016705960035324097, 0.020924637094140053, 0.007623148616403341, -0.01815718412399292, 0.001922661904245615, -0.016233468428254128, -0.0011074026115238667, 0.0015788397286087275, -0.03715810552239418, -0.06145768240094185, 0.02759014628827572, -0.012267911806702614, 0.0035120483953505754, 0.03884557634592056, 0.022730229422450066, 0.02252773381769657, 0.01059731561690569, 0.011871356517076492, 0.033057551831007004, 0.01869717426598072, 0.000010950432624667883, -0.017954688519239426, -0.058993976563215256, -0.01361788809299469, 0.016444401815533638, -0.008374073542654514, 0.015583791770040989, -0.025227686390280724, 0.07600367814302444, -0.026442665606737137, -0.04454922676086426, 0.01589597389101982, 0.046202946454286575, -0.009044842794537544, -0.01888279616832733, 0.018427180126309395, 0.012386035174131393, -0.037056855857372284, 0.051636602729558945, 0.05700276046991348, -0.024502074345946312, -0.015769412741065025, 0.00394446263089776, -0.04373924061655998, 0.012664467096328735, -0.017085639759898186, 0.020030276849865913, 0.05244658887386322, 0.0343400277197361, -0.003393925493583083, 0.000937600911129266, -0.016765020787715912, -0.010563566349446774, 0.08619600534439087, -0.0037799342535436153, 0.021549001336097717, 0.007053627632558346, -0.0843060314655304, -0.00031060006585903466, -0.012639155611395836, 0.019861530512571335, 0.049712885171175, -0.08444103598594666, 0.029665734618902206, 0.04934164136648178, -0.008251731283962727, 0.021363379433751106, -0.04522421583533287, -0.040971789509058, -0.01874779909849167, 0.020485894754529, -0.02998635359108448, -0.07222374528646469, -0.04242301359772682, -0.008800159208476543, -0.061322685331106186, -0.023489592596888542, 0.11920292675495148, 0.01869717426598072, -0.04353674501180649, 0.019574658945202827, 0.004366330336779356, 0.057542748749256134, -0.031319454312324524, 0.02090776152908802, -0.006306921597570181, -0.09564583748579025, 0.01359257660806179, 0.0042650820687413216, -0.046979185193777084, -0.010074200108647346, -0.08336105197668076, -0.04505546763539314, -0.046202946454286575, -0.024755194783210754, -0.011533861979842186, -0.00037546223029494286, 0.05268283560872078, -0.031167583540081978, -0.050624120980501175, -0.031926944851875305, -0.015153486281633377, 0.0475529246032238, -0.011010746471583843, 0.029581360518932343, 0.02041839435696602, -0.025345809757709503, -0.008251731283962727, 0.009205152280628681, 0.02490706741809845, -0.011415739543735981, -0.003168226219713688, 0.05818399041891098, -0.04306425154209137, 0.11488300561904907, 0.000004688334229285829, 0.04920664429664612, 0.04485297203063965, 0.03617937117815018, 0.005323969759047031, -0.0049780383706092834, 0.014157879166305065, 0.014875054359436035, -0.0041216472163796425, 0.01313695963472128, 0.04117428511381149, 0.004615232348442078, -0.05494404584169388, -0.01620815508067608, -0.015119737014174461, 0.033951908349990845, 0.025666428729891777, -0.04866665601730347, 0.05345907062292099, -0.022021492943167686, 0.10455568134784698, 0.03307442367076874, -0.0387105755507946, 0.023860834538936615, -0.030374472960829735, -0.018730925396084785, 0.04424548149108887, -0.0018583270721137524, -0.045899201184511185, 0.0132888313382864, -0.007222374435514212, -0.05244658887386322, -0.005248033907264471, 0.04151177778840065, -0.007876269519329071, -0.04569670557975769, 0.004699605982750654, 0.042085517197847366, 0.03523438796401024, -0.028923247009515762, -0.019068418070673943, 0.017836565151810646, 0.0036934514064341784, 0.03469439595937729, 0.01532223355025053, -0.007057846058160067, -0.028332632035017014, -0.032399438321590424, -0.07863613218069077, 0.01893342100083828, -0.08741097897291183, 0.014233815483748913, 0.027860140427947044, 0.014756930992007256, 0.027573270723223686, 0.03381691128015518, 0.01707720384001732, -0.026324542239308357, -0.03607812151312828, 0.042321763932704926, 0.04043179750442505, -0.014360375702381134, -0.0024594885762780905, 0.018663424998521805, 0.014326626434922218, 0.08909845352172852, 0.01940591260790825, 0.045494209975004196, 0.020165273919701576, -0.02813013643026352, 0.009441398084163666, -0.033428795635700226, 0.020941510796546936, -0.07114376127719879, -0.05467405170202255, 0.09098841995000839, 0.043570492416620255, -0.018984045833349228, 0.02462019771337509, -0.026476414874196053, 0.002185274614021182, -0.02551455609500408, 0.01425069011747837, -0.029851356521248817, 0.013381642289459705, 0.028821999207139015, 0.02627391926944256, -0.02389458566904068, -0.013094772584736347, 0.018241558223962784, 0.09807579219341278, -0.04897039756178856, -0.03817058727145195, 0.026138920336961746, 0.010698564350605011, 0.027252651751041412, 0.005277564749121666, 0.09713081270456314, -0.09645582735538483, 0.033901285380125046, -0.026678910478949547, -0.021953994408249855, -0.012056978419423103, -0.05383031442761421, 0.015145049430429935, -0.030711965635418892, 0.04019555076956749, -0.02132963016629219, -0.012622280977666378, -0.06510262191295624, -0.049071647226810455, 0.045494209975004196, -0.05035412311553955, -0.02138025313615799, -0.027404524385929108, -0.01577785052359104, 0.04019555076956749, -0.042018018662929535, -0.004020398948341608, -0.040938038378953934, 0.043334245681762695, -0.019389038905501366, 0.020924637094140053, -0.0498141348361969, 0.025970173999667168, 0.00834876112639904, 0.10597316175699234, 0.009728268720209599, -0.019456537440419197, 0.03295630216598511, 0.032534435391426086, -0.06034395098686218, -0.02090776152908802, -0.03739434853196144, 0.01613221876323223, 0.023759586736559868, -0.040938038378953934, -0.008593444712460041, 0.017515946179628372, -0.018849046900868416, -0.006505199242383242, -0.008530164137482643, -0.017347197979688644, -0.014081942848861217, 0.01511130016297102, -0.024535823613405228, 0.03165695071220398, 0.03304067626595497, -0.053357820957899094, 0.0027801080141216516, -0.031133834272623062, -0.06766757369041443, -0.028923247009515762, 0.02394520863890648, -0.05548403412103653, 0.037428099662065506, 0.042794257402420044, 0.01905154436826706, 0.08329354971647263, -0.039149317890405655, 0.0036069685593247414, 0.01834280602633953, 0.004298831336200237, -0.00022121686197351664, 0.02634141780436039, -0.024738319218158722, 0.017549695447087288, 0.016520338132977486, 0.010082636959850788, 0.02598704770207405, 0.05842023342847824, 0.0014986848691478372, -0.05801524221897125, -0.03165695071220398, 0.06648634374141693, -0.0041089910082519054, -0.00039629192906431854, 0.005226940382272005, 0.0028476067818701267, 0.021818995475769043, 0.03614562004804611, -0.039149317890405655, -0.022021492943167686, 0.026425790041685104, -0.03307442367076874, 0.1007082462310791, 0.00024652891443111, -0.015550042502582073, 0.010791375301778316, 0.04556170850992203, 0.027910765260457993, -0.045899201184511185, -0.007855175994336605, -0.0397905595600605, -0.0332600474357605, 0.018950296565890312, -0.038676828145980835, -0.008158920332789421, -0.06193017214536667, -0.025936424732208252, 0.03850807994604111, -0.025075813755393028, -0.004182817880064249, 0.011373552493751049, 0.007602055557072163, -0.03029009886085987, -0.03493064269423485, -0.012445095926523209, 0.05720525607466698, -0.000032711224775994197, 0.06247016414999962, 0.023843960836529732, 0.036584362387657166, 0.0049822572618722916, 0.021953994408249855, -0.004838821943849325, 0.04292925447225571, 0.006808944046497345, -0.014647245407104492, -0.009188277646899223, -0.009559521451592445, 0.0576777458190918, -0.0553152896463871, 0.048059165477752686, -0.013803509995341301, 0.04151177778840065, 0.008285480551421642, 0.013972257263958454, -0.022240864112973213, 0.0029319801833480597, -0.03776559233665466, -0.02149837650358677, 0.01150011271238327, 0.00860610045492649, -0.013001961633563042, -0.042018018662929535, 0.019540909677743912, -0.039216820150613785, -0.0007704358431510627, -0.020148400217294693, 0.05676651373505592, 0.026527039706707, -0.04373924061655998, 0.00833610538393259, 0.022072115913033485, -0.04012805223464966, 0.0075767431408166885, -0.014832867309451103, -0.033833786845207214, 0.03985805809497833, 0.02693203277885914, 0.04033054783940315, -0.0017117280513048172, 0.03725935146212578, -0.0025628460571169853, -0.02318584732711315, 0.04964538663625717, -0.06085019186139107, 0.058993976563215256, -0.020384645089507103, 0.09632082283496857, 0.009635457769036293, 0.07998611032962799, -0.01466412004083395, 0.05035412311553955, -0.02161649987101555, 0.00796064268797636, 0.006454575341194868, -0.042018018662929535, -0.024502074345946312, 0.004328362178057432, 0.029007621109485626, 0.018798423931002617, 0.07256124168634415, 0.020452145487070084, 0.08079609274864197, -0.004442266654223204, -0.03415440768003464, -0.03621312230825424, 0.03594312444329262, -0.015490980818867683, 0.03167382627725601, -0.04502171650528908, 0.013373205438256264, 0.047822918742895126, -0.023371469229459763, -0.035268135368824005, 0.011061370372772217, 0.0248564425855875, -0.018494678661227226, 0.02055339328944683, 0.016351589933037758, 0.016410652548074722, -0.04485297203063965, -0.010057325474917889, -0.0025923768989741802, -0.0293282400816679, 0.11528799682855606, 0.01466412004083395, 0.008087202906608582, -0.015280046500265598, -0.0135335149243474, -0.017634067684412003, 0.007635804824531078, 0.007416433654725552, 0.07667867094278336, 0.00905328057706356, -0.056834012269973755, -0.05200784653425217, 0.018798423931002617, 0.056834012269973755, -0.017186889424920082, -0.01965903304517269, -0.03931806609034538, -0.05352656915783882, 0.020975260064005852, 0.03516688942909241, 0.013871008530259132, -0.007121126167476177, -0.027674518525600433, 0.07053627073764801, -0.0651363655924797, -0.03199444338679314, 0.040938038378953934, 0.1063106507062912, -0.003621733980253339, 0.0030669779516756535, -0.023978957906365395, 0.03803559020161629, 0.0005323442746885121, -0.002000707434490323, -0.003014244604855776, 0.015988783910870552, -0.09470085799694061, 0.06361764669418335, -0.044886719435453415, 0.00061750877648592, -0.018325932323932648, 0.052952829748392105, -0.010555129498243332, 0.038069337606430054, -0.04934164136648178, -0.06085019186139107, 0.042254265397787094, 0.03864307701587677, -0.022122740745544434, 0.01158448588103056, -0.0028750281780958176, -0.04849790781736374, -0.051164109259843826, -0.02234211191534996, 0.007741271518170834, -0.01822468265891075, 0.007834082469344139, -0.018376555293798447, 0.003564781742170453, 0.0243164524435997, -0.055045291781425476, -0.039689309895038605, 0.02914261817932129, 0.02424895390868187, -0.022915851324796677, -0.008757973089814186, -0.0011474800994619727, 0.03884557634592056, 0.02573392726480961, 0.004809291567653418, 0.016621585935354233, -0.08781597763299942, -0.0003253654285799712, -0.0017982108984142542, -0.0031450234819203615, -0.0731012299656868, 0.01248728297650814, -0.0221058651804924, -0.04390798881649971, -0.01632627844810486, -0.007441745605319738, 0.016807207837700844, 0.0188152976334095, 0.008450009860098362, 0.03174132481217384, 0.005311314016580582, -0.015904411673545837, -0.01731344871222973, 0.0037820436991751194, -0.05953396484255791, -0.0237764623016119, -0.05248033627867699, 0.04336799681186676, -0.010605753399431705, 0.024232078343629837, -0.025902675464749336, 0.008023923262953758, -0.04630419611930847, 0.003769387723878026, 0.0025101127102971077, 0.028400130569934845, 0.06776881963014603, -0.03702310845255852, -0.03817058727145195, -0.031454455107450485, -0.002442613709717989, 0.004083679057657719, 0.041950520128011703, 0.0718187540769577, 0.049712885171175, -0.007534556556493044, 0.029075119644403458, 0.018292181193828583, 0.03334442153573036, 0.06800507009029388, 0.016663772985339165, -0.01970965787768364, -0.001729657407850027, -0.0442117303609848, -0.006682383827865124, -0.05980395898222923, -0.028180759400129318, -0.04556170850992203, -0.022088991478085518, 0.01743157207965851, -0.01916966773569584, -0.00015490454097744077, -0.03374941274523735, -0.005939896684139967, 0.05018537864089012, -0.004843040835112333, -0.008454227820038795, -0.058690231293439865, 0.05811649188399315, -0.07640866935253143, 0.021464627236127853, 0.0237764623016119, 0.03833933547139168, -0.0016495025483891368, -0.02742139808833599, -0.012048540636897087, -0.016570961102843285, 0.02269648015499115, 0.01679033413529396, 0.017870314419269562, -0.026780160143971443, 0.01188823115080595, 0.0012329082237556577, -0.0037525128573179245, 0.0687813013792038, 0.01209916453808546, 0.04164677485823631, -0.048295412212610245, 0.042018018662929535, 0.045899201184511185, 0.02532893419265747, 0.02694890648126602, -0.028231384232640266, 0.027674518525600433, -0.002191602485254407, 0.030391346663236618, -0.0051763164810836315, -0.0010483411606401205, -0.004165943246334791, -0.027640769258141518, 0.011078245006501675, 0.012504157610237598, -0.06766757369041443, 0.0707387700676918, 0.011921980418264866, 0.04856540635228157, 0.0038411051500588655, -0.06216641888022423, 0.016047846525907516, -0.0008047125884331763, 0.027944514527916908, -0.030492594465613365, -0.008251731283962727, 0.00023374105512630194, 0.019962778314948082, -0.012048540636897087, -0.01905154436826706, 0.0293282400816679, -0.02747202292084694, 0.0053408448584377766, -0.008648287504911423, 0.05987146124243736, 0.009702956303954124, 0.026898281648755074, -0.06614884734153748, -0.009247339330613613, 0.043030500411987305, -0.010749188251793385, -0.01138198934495449, 0.010318882763385773, 0.02937886491417885, -0.0008410986629314721, -0.08801846951246262, 0.024704569950699806, -0.02132963016629219, -0.037900593131780624, 0.01679033413529396, -0.00500335032120347, -0.019675908610224724, -0.022848352789878845, -0.00985482893884182, 0.010074200108647346, 0.053189076483249664, -0.02573392726480961, -0.02813013643026352, -0.03292255103588104, 0.0008548093610443175, -0.03982430696487427, 0.031319454312324524, -0.012892276048660278, -0.006665509194135666, -0.009213590063154697, -0.02998635359108448, 0.005754274781793356, -0.061491429805755615, 0.013305705972015858, -0.03266943246126175, -0.036415617913007736, -0.0720212459564209, 0.007192843593657017, -0.005728962831199169, -0.01257165614515543, 0.005716307088732719, -0.03469439595937729, -0.02424895390868187, -0.05052287131547928, -0.02090776152908802, 0.007884706370532513, 0.035335637629032135, 0.0064039514400064945, 0.12730278074741364, 0.02340521849691868, -0.012799465097486973, 0.0055011543445289135, -0.04917289689183235, -0.012056978419423103, -0.048362910747528076, 0.006475668866187334, 0.014200065284967422, 0.03607812151312828, -0.0720212459564209, 0.04924039542675018, 0.025582054629921913, -0.035099390894174576, -0.024350201711058617, -0.007513463031500578, -0.03719185292720795, -0.024755194783210754, -0.05777899548411369, -0.03229818865656853, -0.010833561420440674, -0.06500136852264404, 0.02867012657225132, -0.01150011271238327, -0.05848773196339607, 0.02747202292084694, -0.016351589933037758, -0.022747104987502098, 0.01693376898765564, 0.07431621104478836, 0.018410304561257362, 0.07175125181674957, 0.007125345058739185, -0.03440752625465393, -0.03010447695851326, 0.0063828579150140285, -0.026729535311460495, -0.023810211569070816, -0.004184927325695753, 0.01723751239478588, 0.07168375700712204, -0.018376555293798447, 0.04681043699383736, -0.0609176903963089, -0.04370548948645592, 0.009559521451592445, 0.045899201184511185, 0.03685436025261879, 0.009753580205142498, -0.021599624305963516, -0.050691619515419006, 0.0029108868911862373, -0.0127488411962986, -0.01529692206531763, 0.014925678260624409, -0.03442440181970596, 0.02293272688984871, 0.00774970930069685, 0.01000670064240694, -0.025227686390280724, 0.020570266991853714, -0.02509268932044506, -0.021464627236127853, -0.02114400826394558, -0.03685436025261879, 0.026324542239308357, -0.02777576819062233, -0.020097775384783745, -0.013449140824377537, -0.022443359717726707, -0.009905452840030193, -0.028028888627886772, 0.021582750603556633, 0.03388440981507301, -0.023911459371447563, -0.008833909407258034, -0.01911904290318489, 0.017018141224980354, 0.006441919133067131, -0.04009430482983589, 0.012006353586912155, 0.01768469251692295, 0.02544705756008625, 0.038913074880838394, 0.041005536913871765, 0.007855175994336605, 0.0254976823925972, 0.030239474028348923, -0.005893491208553314, -0.02718515321612358, 0.032348811626434326, 0.058453984558582306, -0.05048912391066551, -0.009778892621397972, 0.02114400826394558, 0.04033054783940315, 0.05096161365509033, 0.0476541705429554, 0.019372163340449333, -0.007129563484340906, 0.03304067626595497, -0.049375392496585846, 0.03226443752646446, -0.01546566840261221, -0.025058940052986145, -0.06004020571708679, -0.006357545964419842, -0.04249051213264465, 0.054201558232307434, 0.026729535311460495, -0.0410730354487896, -0.0270670298486948 ]
21,044
rna.polymorphism
reload
Update the object from path. This requires the inheritor of this polymorphism to provide the 'def __update__(self, other):' method
def reload(self, path): """ Update the object from path. This requires the inheritor of this polymorphism to provide the 'def __update__(self, other):' method """ if not hasattr(self, "__update__"): raise NotImplementedError("__update__ required") other = type(self).load(path) self.___update__(other)
(self, path)
[ 0.05382915586233139, -0.030539942905306816, -0.05757146701216698, 0.038626011461019516, -0.03625365346670151, -0.043404143303632736, -0.00808189157396555, 0.05212506651878357, -0.009689915925264359, -0.0016664984868839383, 0.030072154477238655, -0.04143274575471878, 0.0037861675955355167, 0.06682700663805008, -0.08420202881097794, -0.0070377192460000515, -0.01679028570652008, 0.04226808249950409, -0.07197269052267075, -0.06916595250368118, 0.0005429694429039955, -0.014802182093262672, 0.05523252114653587, 0.03281206265091896, 0.020850026980042458, 0.0023431219160556793, 0.0219526719301939, 0.028284531086683273, 0.018912043422460556, -0.03819163516163826, 0.030222514644265175, -0.023907361552119255, -0.01569599285721779, 0.07190585881471634, -0.0006306798895820975, 0.0018085058545693755, -0.010909508913755417, 0.03982889652252197, -0.013941784389317036, 0.03139198571443558, -0.013966844417154789, 0.018310600891709328, 0.030590062960982323, -0.0250267144292593, 0.06943326443433762, 0.033680811524391174, -0.05169069021940231, 0.029854966327548027, 0.020983681082725525, 0.01093456894159317, 0.027465900406241417, -0.023389453068375587, -0.03202684223651886, 0.012814078480005264, -0.016681691631674767, 0.06732820719480515, 0.009840277023613453, 0.08460298925638199, 0.015921534970402718, -0.004565120209008455, 0.03782408684492111, -0.09075107425451279, -0.024291617795825005, -0.021768897771835327, 0.013858250342309475, -0.043003179132938385, -0.015011016279459, -0.0067411744967103004, -0.0013480260968208313, -0.02255411446094513, -0.03316290304064751, 0.036220237612724304, 0.032227326184511185, -0.0073342639952898026, 0.029704604297876358, 0.0384923554956913, -0.04350438341498375, -0.012713838368654251, 0.03558538109064102, 0.008040124550461769, 0.02596229314804077, -0.03842553123831749, -0.018661441281437874, -0.008294902741909027, -0.06816355139017105, -0.04220125451683998, 0.06268373131752014, -0.08687511086463928, -0.011853440664708614, -0.031091265380382538, -0.010140998288989067, 0.04397217184305191, -0.02594558522105217, -0.004602710250765085, 0.029587658122181892, -0.07504673302173615, 0.03317961096763611, -0.057705122977495193, -0.01569599285721779, -0.040998369455337524, -0.015269971452653408, -0.030823957175016403, -0.0285017192363739, -0.04053058102726936, 0.022988490760326385, 0.015737760812044144, 0.048850543797016144, -0.04360462352633476, -0.031843069940805435, -0.012446530163288116, -0.0300387404859066, -0.012170868925750256, -0.08206356316804886, 0.047380346804857254, 0.01506113726645708, -0.02069966495037079, -0.0288859736174345, 0.003554361406713724, 0.03588610142469406, 0.005137326195836067, -0.0392608679831028, 0.0631515234708786, -0.027933688834309578, 0.04210101440548897, 0.06532339751720428, 0.025277316570281982, -0.0015015193494036794, 0.005592585075646639, 0.030289340764284134, -0.06686042249202728, 0.008069361560046673, -0.016289083287119865, -0.05630175396800041, 0.009380841627717018, 0.040697649121284485, -0.0077352263033390045, -0.014543227851390839, -0.017141127958893776, 0.009155300445854664, -0.0021969377994537354, 0.01770915649831295, 0.007376031018793583, 0.0777198076248169, 0.007881410419940948, 0.015996715053915977, 0.03986230865120888, 0.019363125786185265, 0.029704604297876358, -0.06535681337118149, 0.011619546450674534, -0.006331859156489372, 0.004310342017561197, 0.024826234206557274, -0.007981650531291962, -0.021418055519461632, -0.05690319836139679, -0.08593953400850296, -0.021768897771835327, -0.026062533259391785, -0.04139932990074158, -0.017575502395629883, 0.00035527950967662036, 0.013148213736712933, -0.04945198446512222, -0.038626011461019516, 0.014225799590349197, 0.0048700179904699326, -0.035084180533885956, -0.012763958424329758, 0.045074816793203354, -0.03595292940735817, -0.06562412530183792, -0.027833448722958565, 0.024208083748817444, 0.05499862879514694, 0.058707527816295624, -0.04220125451683998, 0.017441848292946815, 0.03226073831319809, 0.042468562722206116, 0.04293635115027428, -0.039461348205804825, -0.033313263207674026, 0.012931025587022305, 0.002886091358959675, 0.07384384423494339, -0.009781803004443645, 0.018511081114411354, 0.05189117044210434, 0.07645009458065033, 0.0246424600481987, 0.011009749956429005, -0.01894545741379261, 0.0007006393861956894, 0.016556391492486, -0.03819163516163826, -0.02865207940340042, -0.05172410234808922, -0.03628706559538841, 0.1348569095134735, 0.001173649332486093, -0.003067777259275317, 0.039762068539857864, -0.011502598412334919, -0.02039894461631775, 0.004999495577067137, 0.04049716517329216, 0.011218584142625332, -0.010115938261151314, 0.0051247961819171906, -0.033914707601070404, 0.004615240264683962, 0.025527916848659515, -0.00758486520498991, 0.05299381911754608, -0.04026327282190323, -0.06522315740585327, 0.008040124550461769, 0.01732490211725235, 0.002076858188956976, 0.08981549739837646, 0.09823570400476456, -0.08072702586650848, -0.002370270434767008, -0.03227744624018669, -0.018962163478136063, -0.057771947234869, -0.03336338326334953, -0.04644476994872093, -0.020900147035717964, 0.03912721201777458, -0.06258349120616913, 0.047012798488140106, -0.04811544716358185, 0.06107988581061363, 0.023907361552119255, -0.00804430153220892, 0.06672676652669907, 0.014718648046255112, 0.019764088094234467, 0.0012947733048349619, -0.0117448465898633, -0.016681691631674767, -0.04063082113862038, -0.053695499897003174, -0.021668657660484314, -0.01509455032646656, -0.0010102364467456937, -0.05479814484715462, -0.03702216222882271, 0.06876499205827713, 0.03336338326334953, -0.04063082113862038, 0.06138060614466667, 0.023506399244070053, -0.0004450783017091453, -0.015219851396977901, -0.0492515042424202, 0.0014211180387064815, 0.022971784695982933, -0.032979127019643784, -0.0184776671230793, 0.011435771360993385, 0.03782408684492111, -0.03413189575076103, -0.026697389781475067, -0.017826104536652565, 0.033831171691417694, 0.0009789112955331802, -0.014351099729537964, 0.048616647720336914, -0.008896345272660255, -0.022654356434941292, 0.05459766462445259, 0.00862903706729412, 0.0053795743733644485, -0.01490242313593626, -0.0117448465898633, 0.010667260736227036, -0.005312747322022915, 0.01901228353381157, -0.007622455712407827, 0.04537553712725639, -0.03939452022314072, -0.06154767423868179, -0.033380091190338135, -0.03642071783542633, 0.008979879319667816, -0.058106083422899246, 0.033764347434043884, 0.09903762489557266, 0.009389194659888744, -0.04243515059351921, 0.05429694429039955, 0.007672575768083334, 0.009314014576375484, -0.07304192334413528, 0.012154161930084229, 0.03401494771242142, 0.009405901655554771, -0.000007541695595136844, -0.029303643852472305, -0.021217575296759605, 0.019764088094234467, 0.04026327282190323, -0.07337605208158493, 0.021819017827510834, -0.007868880406022072, -0.01916264370083809, 0.06204887852072716, 0.04995318874716759, 0.005918366834521294, -0.07738567888736725, 0.057872187346220016, 0.04995318874716759, -0.030239220708608627, -0.029988620430231094, -0.014042025431990623, -0.0013260984560474753, 0.003452032571658492, -0.07818759977817535, 0.03381446748971939, -0.01178661361336708, 0.025010008364915848, -0.017976464703679085, -0.03959500044584274, 0.014618407934904099, 0.06422075629234314, 0.009806863032281399, -0.0215517096221447, -0.021234281361103058, -0.0022219980601221323, 0.06174815446138382, -0.005981017369776964, -0.002194849541410804, -0.009071766398847103, 0.0006191940046846867, -0.002249146578833461, 0.0215517096221447, 0.026296427473425865, 0.07357653230428696, 0.04250197857618332, -0.0006212823209352791, -0.018210358917713165, -0.0008499560062773526, 0.013382107950747013, 0.034549564123153687, 0.023155558854341507, 0.05967651680111885, -0.029738018289208412, -0.08219721913337708, -0.04012961685657501, -0.02103380113840103, -0.0030510704964399338, -0.02440856397151947, -0.05292699113488197, 0.034683216363191605, -0.013858250342309475, 0.007960767485201359, -0.11821697652339935, -0.006728644482791424, -0.004091065842658281, -0.06375296413898468, -0.014626760967075825, 0.016614865511655807, 0.013432228937745094, -0.04875030368566513, -0.008996586315333843, -0.008704218082129955, -0.020131636410951614, -0.010926215909421444, -0.019379831850528717, -0.008382612839341164, 0.004053475800901651, 0.05058804526925087, -0.0028067342936992645, 0.006478043273091316, 0.03271181881427765, 0.020966973155736923, 0.012872552499175072, 0.08460298925638199, 0.006674347445368767, -0.007747756317257881, -0.007705989293754101, 0.026613855734467506, 0.006043667439371347, 0.03287888690829277, 0.008069361560046673, 0.00754727516323328, 0.0030364522244781256, 0.01785951852798462, 0.029303643852472305, -0.017608916386961937, -0.021367935463786125, -0.040463753044605255, 0.019112523645162582, 0.031074559316039085, 0.0415998138487339, -0.030673597007989883, -0.002153082750737667, 0.03498394042253494, -0.01579623483121395, 0.021451469510793686, 0.06168133020401001, -0.00013313193630892783, -0.013348694890737534, 0.037757258862257004, 0.036086585372686386, -0.022286806255578995, -0.016531331464648247, -0.0003680706431623548, 0.024208083748817444, -0.031074559316039085, 0.0022825601045042276, 0.013382107950747013, 0.0010050155688077211, 0.05499862879514694, -0.04945198446512222, 0.0055132280103862286, 0.06572436541318893, -0.017308194190263748, 0.07872221618890762, -0.019747380167245865, 0.031843069940805435, -0.01978079415857792, -0.007973297499120235, -0.0005857804790139198, 0.008503736928105354, -0.024742700159549713, 0.06184839457273483, -0.012388056144118309, 0.03127504140138626, -0.039227452129125595, 0.004228896461427212, 0.04186712205410004, -0.056869782507419586, 0.020081516355276108, -0.023456279188394547, -0.019279591739177704, 0.01028300542384386, 0.02148488350212574, 0.007910647429525852, 0.019379831850528717, -0.0054547544568777084, -0.0196304339915514, -0.05299381911754608, -0.041165437549352646, 0.04337072744965553, -0.014518167823553085, -0.019463365897536278, -0.011310471221804619, -0.009598028846085072, 0.02803392894566059, 0.01166131254285574, -0.03316290304064751, -0.045776501297950745, 0.027465900406241417, 0.02394077554345131, 0.048616647720336914, 0.0008285504882223904, -0.06128036603331566, 0.0408313013613224, 0.03292900696396828, -0.058406803756952286, 0.014693588018417358, -0.004191306419670582, -0.008670804090797901, -0.006377802696079016, -0.019196057692170143, -0.012271109037101269, 0.040697649121284485, -0.057103678584098816, -0.045308712869882584, -0.05172410234808922, -0.029387176036834717, 0.01978079415857792, 0.027766622602939606, 0.05419670417904854, -0.017040887847542763, -0.06602508574724197, 0.02385724149644375, -0.027599554508924484, -0.03179294988512993, 0.03327985107898712, 0.016756871715188026, -0.05349501967430115, 0.036086585372686386, 0.06057868152856827, 0.0408313013613224, -0.01747526228427887, -0.016681691631674767, 0.05606785789132118, -0.04393875598907471, -0.018978869542479515, 0.007668399251997471, -0.024909766390919685, -0.07758615911006927, 0.02940388396382332, 0.029604364186525345, -0.04958564043045044, 0.017742570489645004, -0.053027231246232986, 0.009689915925264359, 0.05423011630773544, -0.016840405762195587, 0.04149957373738289, 0.02171877771615982, 0.05199141055345535, 0.012220988981425762, 0.007208963390439749, -0.05887459218502045, -0.00331211369484663, 0.01686546579003334, 0.03444932401180267, 0.03742312267422676, -0.018878629431128502, -0.04965246841311455, 0.06455489248037338, -0.03802456706762314, 0.005981017369776964, 0.023924069479107857, -0.019597020000219345, 0.039160627871751785, -0.058406803756952286, -0.033613983541727066, -0.02095026709139347, -0.008244781754910946, -0.0015641696518287063, 0.060177721083164215, 0.008871285244822502, 0.03712240234017372, 0.010759148746728897, 0.006937478668987751, 0.003660866990685463, 0.0654570534825325, 0.05790560320019722, -0.0026354901492595673, -0.05780536308884621, -0.048549819737672806, -0.02771650068461895, -0.008921405300498009, 0.028351357206702232, 0.022353634238243103, 0.028601959347724915, 0.006887358613312244, -0.047848138958215714, -0.01856120117008686, -0.0323609784245491, 0.027198592200875282, -0.011970387771725655, -0.053327951580286026, -0.029236815869808197, -0.02895280160009861, 0.06445465236902237, -0.04868347570300102, -0.05533276125788689, -0.019296297803521156, -0.047614242881536484, 0.010709027759730816, 0.013273514807224274, -0.003928175196051598, 0.0010775855043902993, 0.05707026645541191, 0.07511355727910995, 0.0075347451493144035, 0.053094059228897095, -0.010316419415175915, 0.06726138293743134, -0.002691875444725156, -0.01777598448097706, 0.045007988810539246, 0.039461348205804825, 0.007731049321591854, -0.04190053418278694, 0.029988620430231094, 0.06482219696044922, 0.020499184727668762, -0.0014931659679859877, 0.026045827195048332, -0.05560006946325302, -0.01506113726645708, 0.027348952367901802, 0.01146918535232544, -0.011853440664708614, 0.0029027981217950583, -0.034917112439870834, -0.014417926780879498, 0.1108660027384758, 0.04547577723860741, -0.011845086701214314, -0.05169069021940231, -0.0031575760804116726, -0.001652924227528274, -0.021902551874518394, 0.009765096940100193, 0.002234528074041009, 0.025010008364915848, -0.043838515877723694, -0.030590062960982323, -0.030673597007989883, -0.018527787178754807, -0.018845215439796448, 0.015411978587508202, 0.008971525356173515, -0.06338541954755783, 0.004423112608492374, -0.015762820839881897, 0.04591015353798866, 0.014568287879228592, -0.0029821551870554686, 0.023389453068375587, -0.015462098643183708, 0.013674476183950901, -0.0008697952725924551, 0.019129231572151184, -0.011251997202634811, -0.03942793607711792, -0.0015380653785541654, -0.014376159757375717, 0.014827242121100426, -0.06896547228097916, -0.013732950203120708, 0.001020678086206317, 0.021418055519461632, -0.05606785789132118, 0.03889331966638565, -0.004715480841696262, 0.030389582738280296, -0.004502469673752785, -0.06328517943620682, 0.01749197021126747, -0.04190053418278694, 0.01717454195022583, -0.0027587024960666895, 0.005012025590986013, -0.059943825006484985, 0.008796105161309242, 0.004832427948713303, -0.015670932829380035, 0.032461218535900116, 0.04671207815408707, -0.010767501778900623, -0.007213140372186899, -0.007021012715995312, -0.05920872837305069, -0.013858250342309475, -0.004368815571069717, -0.022754596546292305, 0.03896014392375946, 0.004661183804273605, 0.0013699536211788654, -0.004623593762516975, -0.01964714005589485, 0.040463753044605255, 0.0184776671230793, 0.035919517278671265, 0.05018708482384682, -0.06916595250368118, 0.030239220708608627, 0.033463623374700546, -0.04597698152065277, 0.015219851396977901, -0.04190053418278694, 0.020733078941702843, 0.061948634684085846, 0.002380712190642953, -0.032611578702926636, 0.025845345109701157, 0.03575244918465614, -0.023656761273741722, -0.03296242281794548, -0.0011611193185672164, -0.024542218074202538, -0.009105179458856583, -0.05249261483550072, -0.05900824815034866, -0.007497155107557774, -0.0839347243309021, 0.02340615913271904, 0.041299089789390564, -0.010291359387338161, 0.0098152169957757, -0.03296242281794548, -0.0008614418911747634, -0.029888378456234932, 0.10685638338327408, 0.04103178158402443, 0.009347427636384964, 0.043237075209617615, -0.030239220708608627, -0.013607649132609367, 0.02186913788318634, -0.02210303209722042, -0.010399953462183475, 0.0215684175491333, -0.06462171673774719, -0.017458556219935417, -0.0638532042503357, -0.004644477274268866, 0.013808130286633968, 0.04557602107524872, -0.010876095853745937, 0.009155300445854664, -0.0025498680770397186, 0.013549176044762135, 0.01312315370887518, -0.09282271564006805, 0.016439443454146385, -0.026313133537769318, -0.002050753915682435, 0.025811931118369102, 0.036454133689403534, 0.015244911424815655, -0.03906038776040077, 0.07765298336744308, 0.012020507827401161, 0.02803392894566059, -0.03498394042253494, -0.03272852674126625, -0.0007794743869453669, -0.01816023886203766, 0.007768639829009771, 0.03079054318368435, -0.020465770736336708, 0.0554330013692379, 0.0315757617354393, 0.007083662785589695, -0.03356386348605156, -0.004619416780769825, 0.056401994079351425, -0.004815721418708563, 0.006110494490712881, -0.0288859736174345, -0.029604364186525345, 0.021702071651816368, -0.051790930330753326, -0.022153154015541077, -0.0028171760495752096, 0.013991904444992542, 0.04764765501022339, -0.035685621201992035, -0.007860526442527771, -0.02086673304438591, 0.025427676737308502, 0.0014054555213078856, -0.04183370620012283, 0.052392374724149704, 0.023222384974360466, -0.018611321225762367, 0.09014963358640671, 0.02385724149644375, 0.01004911120980978, 0.006916595157235861, 0.04661183804273605, 0.05967651680111885, -0.022904956713318825, -0.05529934912919998, -0.015963301062583923, 0.03598634526133537, -0.02272118255496025, -0.03241109848022461, -0.06375296413898468, -0.010650554671883583, -0.010759148746728897, 0.03625365346670151, 0.024592338129878044, -0.016806991770863533, 0.00740944454446435 ]
21,045
rna.polymorphism
save
Saving by redirecting to the correct save method depending on path. Implement _save_{extension}(self, path, **kwargs) for saving to your extension of choice Args: path (str | buffer) *args: joined with path create_parents: create the parent dir(s) if required **kwargs: extension (str | List[str]): explicit extension required if path is buffer, if list of extensions save as all extension formats. ... remaining:forwarded to extension specific method
def save( self, path: typing.Union[str, io.IOBase], *args: [str], create_parents: bool = True, extension: typing.Optional[typing.Union[str, typing.List[str]]] = None, **kwargs ) -> None: """ Saving by redirecting to the correct save method depending on path. Implement _save_{extension}(self, path, **kwargs) for saving to your extension of choice Args: path (str | buffer) *args: joined with path create_parents: create the parent dir(s) if required **kwargs: extension (str | List[str]): explicit extension required if path is buffer, if list of extensions save as all extension formats. ... remaining:forwarded to extension specific method """ # get the extension if isinstance(extension, list): for ext in extension: LOGGER.info("Saving to path '%s' with extension %s.", path, ext) self.save( path, *args, create_parents=create_parents, extension=ext, **kwargs ) return if isinstance(path, (str, pathlib.Path)): path = rna.path.resolve(path, *args) if extension is None: extension = rna.path.extension(path) if not path.endswith(extension): path += "." + extension if not extension: raise ValueError( "Path {path} requires extension for auto rooting.".format(**locals()) ) # get the save method if ( self.EXPLICIT_SAVE_METHODS is not None and extension in self.EXPLICIT_SAVE_METHODS # pylint:disable=unsupported-membership-test ): # pylint:disable=unsubscriptable-object method_name = self.EXPLICIT_SAVE_METHODS[extension] else: method_name = "_save_" + extension try: save_method = getattr(self, method_name) except AttributeError as err: raise NotImplementedError( "Save method {method_name} for extension: {extension} required.".format( **locals() ) ) from err if create_parents: rna.path.mkdir(path) log = logging.getLogger(__name__) log.info("Saving to path '%s' with method %s.", path, save_method) save_method(path, **kwargs)
(self, path: Union[str, io.IOBase], *args: [<class 'str'>], create_parents: bool = True, extension: Union[str, List[str], NoneType] = None, **kwargs) -> NoneType
[ -0.011691671796143055, -0.006091342773288488, -0.042393893003463745, 0.06777834892272949, 0.04861956834793091, -0.023698333650827408, -0.04357973486185074, 0.025310339406132698, 0.029182858765125275, -0.04031866788864136, 0.07000180333852768, -0.008856765925884247, 0.02823788858950138, -0.01598108932375908, -0.04495086520910263, -0.004094864707440138, 0.03813226893544197, -0.00628126272931695, -0.016851942986249924, 0.06496196985244751, 0.027144690975546837, -0.0002001978864427656, 0.044506173580884933, -0.02343893051147461, 0.026959402486681938, 0.02834906242787838, 0.028960512951016426, 0.07074295729398727, -0.016101526096463203, -0.005739295389503241, -0.005711502395570278, -0.0674818828701973, 0.052621789276599884, 0.026329422369599342, -0.015175086446106434, 0.0003034090914297849, -0.054029978811740875, 0.11917723715305328, -0.07633864879608154, -0.09056876599788666, -0.0668148472905159, 0.03355565294623375, -0.025662386789917946, -0.0331665500998497, 0.016268284991383553, -0.009023524820804596, -0.019177306443452835, 0.05988507717847824, -0.01772279664874077, 0.005906054750084877, -0.014674808830022812, 0.0030896773096174, -0.0064202286303043365, -0.03018341399729252, -0.07070589810609818, 0.04624788090586662, 0.03503795713186264, 0.054363496601581573, 0.04713726416230202, -0.05477112904191017, 0.040726300328969955, -0.004043910186737776, 0.04194920137524605, 0.020770784467458725, -0.008277741260826588, 0.015823593363165855, -0.0661107525229454, -0.06907536089420319, -0.017843233421444893, 0.04506203904747963, -0.01637945882976055, -0.09182872623205185, 0.044061481952667236, -0.0029877687338739634, 0.018704822286963463, 0.029145801439881325, -0.01652768813073635, 0.027385564520955086, 0.022827479988336563, 0.017324427142739296, 0.0033838218078017235, -0.042393893003463745, -0.02671852707862854, -0.022419847548007965, 0.014748923480510712, 0.012970158830285072, 0.022104857489466667, 0.022438375279307365, 0.007939590141177177, -0.00548915658146143, -0.014739659614861012, -0.0019165726844221354, 0.034315336495637894, -0.01497126929461956, -0.03713171184062958, -0.05354822799563408, 0.016045939177274704, -0.013970714062452316, -0.021085772663354874, -0.012099306099116802, -0.08048909902572632, -0.015017591416835785, -0.02651471085846424, -0.020344620570540428, -0.01084861159324646, 0.0011493645142763853, 0.02014080435037613, 0.015323316678404808, -0.03494531288743019, -0.013989242725074291, -0.03690936788916588, 0.0031753729563206434, 0.013702047057449818, -0.02010374702513218, 0.0056651802733540535, -0.01575874350965023, -0.0167500339448452, -0.0015992670087143779, 0.009111536666750908, -0.02996106818318367, 0.0007903690566308796, 0.053992919623851776, -0.04217154532670975, 0.020919013768434525, 0.031202496960759163, -0.0033398158848285675, 0.04031866788864136, 0.05932921543717384, -0.017287369817495346, -0.029757250100374222, -0.02153046429157257, 0.0164165161550045, -0.014776716940104961, 0.022049270570278168, 0.07722803205251694, 0.003434776095673442, -0.007235495839267969, -0.023735390976071358, -0.09620152413845062, 0.029479319229722023, 0.019047604873776436, -0.024105967953801155, 0.03537147864699364, -0.011321095749735832, 0.05462289974093437, 0.016889000311493874, 0.011098750866949558, -0.05680929869413376, -0.025680914521217346, 0.024198612198233604, 0.010635530576109886, 0.027700554579496384, -0.02347598783671856, 0.065888412296772, 0.0026009802240878344, -0.02857140824198723, -0.0018297189380973577, 0.012275328859686852, 0.0020902801770716906, 0.004565032664686441, -0.04369090870022774, 0.01860291324555874, 0.021159889176487923, 0.003951266407966614, 0.02690381556749344, 0.05710575729608536, -0.07333698868751526, 0.05125065892934799, 0.042356833815574646, 0.015425224788486958, 0.025717973709106445, 0.024254197254776955, -0.007527324371039867, -0.03453768044710159, -0.049397777765989304, 0.04635905474424362, 0.020956071093678474, 0.0337594710290432, -0.00864831730723381, 0.010542886331677437, 0.06952005624771118, -0.03470443934202194, 0.02501387894153595, 0.04439500346779823, 0.023716863244771957, 0.03533441945910454, -0.016120055690407753, -0.00007889215339673683, 0.021122829988598824, 0.01172873005270958, -0.013850277289748192, 0.06136738136410713, 0.03637203201651573, -0.027255862951278687, 0.005053729750216007, -0.023012768477201462, 0.026014434173703194, -0.03685378283262253, 0.010329805314540863, 0.05480818822979927, -0.0069158743135631084, 0.04272741079330444, 0.05540110915899277, -0.04813782125711441, -0.022975711151957512, -0.014684072695672512, 0.037483759224414825, -0.008856765925884247, -0.0831572487950325, -0.03140631318092346, 0.014924947172403336, -0.0013526022667065263, -0.0247359462082386, -0.029127271845936775, 0.06155266985297203, -0.049360718578100204, 0.027978485450148582, 0.05636460706591606, 0.025421511381864548, 0.040985703468322754, -0.008222154341638088, 0.0841948613524437, -0.07270700484514236, 0.015842122957110405, 0.031202496960759163, -0.030757805332541466, 0.03783580660820007, -0.034148577600717545, 0.07096529752016068, -0.0334259532392025, 0.0034208795987069607, 0.0031985340174287558, 0.01585138775408268, -0.024124495685100555, -0.025921789929270744, 0.0330924354493618, 0.021345175802707672, -0.025995904579758644, -0.03835461288690567, -0.011265509761869907, 0.015249201096594334, -0.005526214372366667, -0.0502130463719368, 0.013007217086851597, -0.04687786102294922, -0.014230117201805115, 0.029164329171180725, -0.014609958045184612, 0.03214746713638306, -0.03674260899424553, 0.054178208112716675, 0.03212893754243851, -0.02347598783671856, 0.007476370315998793, -0.0029877687338739634, -0.004592826124280691, -0.020418737083673477, -0.004812855739146471, 0.03337036818265915, 0.04124510660767555, -0.0501018725335598, 0.008597362786531448, -0.03307390585541725, -0.027922900393605232, -0.04628494009375572, -0.0495460070669651, -0.017889555543661118, -0.04332033172249794, 0.014739659614861012, 0.05321471020579338, 0.018639972433447838, 0.08019264042377472, -0.03162866085767746, -0.007244760170578957, 0.009120801463723183, -0.00875948928296566, -0.02317952737212181, 0.02149340696632862, 0.030924566090106964, 0.0004941978259012103, 0.028034072369337082, 0.011367417871952057, 0.03846578672528267, 0.01971464231610298, 0.020733725279569626, -0.01157123502343893, -0.02508799359202385, 0.0023299965541809797, -0.04320915788412094, -0.025569742545485497, 0.014795245602726936, 0.05132477357983589, 0.013748369179666042, 0.04017043486237526, 0.017398541793227196, -0.015193615108728409, -0.07059472054243088, -0.056068144738674164, 0.07474517822265625, -0.07270700484514236, -0.019492296501994133, 0.07252171635627747, 0.027311449870467186, 0.014943476766347885, 0.023809507489204407, -0.04009632021188736, -0.04109687730669975, -0.02180839702486992, -0.007091898005455732, 0.08901234716176987, -0.03513060137629509, -0.024550657719373703, 0.04020749405026436, 0.05869923532009125, 0.02316099777817726, 0.03433386608958244, 0.061107978224754333, -0.015842122957110405, -0.00998702272772789, 0.009088375605642796, -0.014183796010911465, 0.06362789869308472, -0.05855100601911545, -0.0013583925319835544, -0.01579580083489418, -0.03307390585541725, 0.014193059876561165, 0.049842469394207, -0.0028418544679880142, -0.03652026131749153, -0.0124976746737957, 0.028701109811663628, 0.007745037786662579, 0.008893823251128197, -0.050880081951618195, 0.06014448031783104, 0.03613115847110748, 0.006869552191346884, 0.07856211066246033, 0.03991103172302246, 0.014572900719940662, 0.022864537313580513, -0.017074288800358772, -0.018037784844636917, -0.007281817961484194, -0.020363150164484978, 0.0007550485315732658, 0.039169881492853165, 0.010570679791271687, 0.0338335856795311, -0.006336849182844162, -0.02997959591448307, -0.03659437596797943, -0.060663286596536636, -0.02495829202234745, -0.052510615438222885, 0.021215474233031273, 0.01509170699864626, -0.04020749405026436, -0.06440610438585281, 0.006114503834396601, -0.0011916334042325616, -0.002201452851295471, -0.002994717098772526, 0.03861401602625847, 0.004854545462876558, 0.020789312198758125, 0.03340742364525795, 0.00793495774269104, -0.05818042904138565, 0.03340742364525795, -0.035464122891426086, 0.008259211666882038, -0.04369090870022774, 0.014156002551317215, 0.053992919623851776, 0.03539000451564789, -0.024068910628557205, -0.03670554980635643, -0.015443753451108932, 0.039466340094804764, -0.01977022923529148, 0.025662386789917946, -0.00925513543188572, 0.032388340681791306, -0.01977022923529148, 0.07133587449789047, -0.0023473671171814203, -0.013822483830153942, -0.02310541272163391, 0.006054284982383251, 0.013627931475639343, 0.0004655360826291144, -0.004826752003282309, -0.015591984614729881, -0.017945142462849617, -0.019418181851506233, 0.03798403590917587, -0.039095766842365265, 0.0503242164850235, -0.004016117192804813, -0.047322552651166916, 0.06803774833679199, 0.02308688312768936, 0.016333136707544327, 0.040948644280433655, 0.030831921845674515, 0.037483759224414825, 0.00862978771328926, 0.01166387926787138, -0.022271616384387016, 0.004060123115777969, -0.02805260196328163, 0.03842872753739357, 0.07285523414611816, 0.047619014978408813, 0.013998507522046566, 0.022197501733899117, -0.027033517137169838, -0.024068910628557205, -0.055845800787210464, 0.04139333590865135, -0.020752254873514175, 0.09664621204137802, 0.06029271334409714, 0.0029090214520692825, -0.01159902848303318, -0.016240492463111877, -0.004794326610863209, 0.025662386789917946, -0.0029599755071103573, -0.06359083950519562, -0.05706870183348656, 0.0031939016189426184, -0.016351664438843727, -0.01490641850978136, -0.013553816825151443, -0.029145801439881325, -0.059069812297821045, 0.034445036202669144, -0.01607373356819153, 0.02158605121076107, -0.004613670986145735, 0.018797466531395912, 0.015536397695541382, -0.044320885092020035, -0.01843615435063839, 0.06918653845787048, -0.019066134467720985, 0.004210669547319412, 0.023753920570015907, 0.027200276032090187, 0.10198251157999039, -0.00009973705164156854, -0.040763355791568756, -0.04054101184010506, 0.009681297466158867, -0.05847688764333725, -0.01506391353905201, -0.05806925520300865, 0.02025197632610798, 0.04439500346779823, 0.09175461530685425, -0.034222692251205444, 0.014600693248212337, -0.0251065231859684, -0.0009223867673426867, -0.005313132889568806, -0.019288480281829834, -0.05536404997110367, 0.02308688312768936, -0.02156752161681652, -0.024272726848721504, 0.008935512974858284, 0.035630881786346436, -0.00802760198712349, 0.009389468468725681, -0.04202331602573395, -0.030887506902217865, -0.03839167207479477, 0.0026727791409939528, -0.04031866788864136, -0.06010742485523224, 0.0494718924164772, 0.037372589111328125, -0.02010374702513218, 0.008115613833069801, 0.004699366632848978, -0.0037381851579993963, 0.034037403762340546, 0.006531401537358761, 0.0502501018345356, -0.06166384369134903, 0.03005371242761612, -0.001841299352236092, 0.024383898824453354, -0.04465440660715103, 0.009185652248561382, -0.06989062577486038, -0.08456543833017349, 0.004419118631631136, -0.06918653845787048, 0.008652948774397373, -0.007203070446848869, -0.0125532615929842, 0.009343147277832031, -0.07274406403303146, -0.0031174703035503626, -0.00374281732365489, -0.007884004153311253, -0.07048355042934418, 0.004398273769766092, -0.025440040975809097, 0.01253473199903965, -0.006716689560562372, -0.001819296390749514, 0.029497846961021423, -0.039243996143341064, 0.012997952289879322, -0.0009762360714375973, -0.027144690975546837, -0.032332755625247955, 0.044506173580884933, -0.011812109500169754, 0.010700381360948086, 0.005702238064259291, 0.01329441275447607, -0.006522137206047773, 0.04698903486132622, 0.052436500787734985, 0.024068910628557205, 0.06970534473657608, 0.03613115847110748, 0.03455621004104614, 0.02851582132279873, 0.02140076272189617, 0.00535945501178503, 0.016360929235816002, 0.0032101143151521683, 0.0005092524806968868, -0.0030850449111312628, 0.007680187001824379, -0.07433754205703735, -0.025699444115161896, 0.024661831557750702, -0.024309784173965454, 0.04335739091038704, -0.052547674626111984, 0.06003331020474434, -0.01819528080523014, 0.002127337735146284, -0.0329812616109848, 0.03648320585489273, 0.05677223950624466, 0.006160825490951538, -0.04524732753634453, 0.030850449576973915, -0.015517869032919407, 0.019047604873776436, -0.015304788015782833, -0.06455433368682861, 0.01731516234576702, -0.03133219853043556, -0.027959957718849182, -0.013544552028179169, 0.0499906986951828, 0.07863622158765793, 0.005373351741582155, 0.006360010243952274, -0.029497846961021423, 0.011849166825413704, 0.06010742485523224, 0.0021389182657003403, -0.07370756566524506, -0.0009021208970807493, 0.046062592417001724, -0.023846564814448357, 0.05510464683175087, -0.04050395265221596, 0.032703328877687454, 0.017305897548794746, 0.030757805332541466, -0.04046689718961716, -0.03994809091091156, 0.017620887607336044, 0.011876960285007954, 0.07152116298675537, 0.04821193590760231, -0.11473032087087631, 0.018862316384911537, -0.0498054102063179, 0.0664442703127861, 0.04550673067569733, -0.06281262636184692, 0.049953643232584, -0.003270332934334874, 0.004504814278334379, -0.044246770441532135, 0.027255862951278687, -0.08115614205598831, -0.027348507195711136, 0.004859177395701408, -0.057624563574790955, 0.0333147794008255, 0.01322029810398817, -0.010894933715462685, -0.0164350438863039, 0.07737626135349274, -0.04194920137524605, 0.029590491205453873, -0.0494348369538784, 0.04480263590812683, 0.03614968806505203, -0.044283829629421234, -0.021326648071408272, 0.012784871272742748, -0.045654959976673126, -0.02356863208115101, -0.027774669229984283, -0.012256800197064877, -0.06522136926651001, -0.025384454056620598, -0.034445036202669144, -0.023939209058880806, -0.07848799228668213, -0.00579951424151659, -0.05862512066960335, 0.027793198823928833, 0.0029854527674615383, -0.05302942171692848, 0.016138583421707153, -0.006105239037424326, -0.018992017954587936, -0.009597918018698692, 0.037557873874902725, -0.07789506763219833, -0.04624788090586662, -0.02351304516196251, 0.019566411152482033, 0.01978875696659088, 0.00005909673564019613, -0.030331643298268318, 0.004465440753847361, -0.010533622466027737, -0.02679264359176159, 0.005841203965246677, -0.012951630167663097, -0.014193059876561165, -0.024476543068885803, -0.04798958823084831, 0.006702792830765247, -0.02353157475590706, -0.04509909823536873, -0.02834906242787838, 0.03190658986568451, 0.09064288437366486, 0.09301456809043884, -0.05191769450902939, 0.021030187606811523, 0.001222900697030127, 0.005123212933540344, -0.03787286579608917, -0.03450062498450279, 0.027515266090631485, -0.05999625101685524, -0.015656834468245506, -0.06455433368682861, -0.020455794408917427, 0.051102425903081894, -0.059032753109931946, -0.009319986216723919, -0.028979040682315826, 0.001423243316821754, -0.0072586569003760815, -0.0022304041776806116, -0.03935516998171806, 0.005137109663337469, -0.017676474526524544, 0.0335000678896904, -0.009055950678884983, -0.059032753109931946, -0.006540665868669748, -0.010292747989296913, -0.04206037521362305, -0.0082360515370965, -0.006744483020156622, 0.08056321740150452, 0.057624563574790955, 0.02004816010594368, -0.05669812485575676, -0.009282927960157394, 0.011219187639653683, -0.0015784220304340124, -0.019195836037397385, 0.012191949412226677, -0.04272741079330444, 0.030442817136645317, -0.0005547059117816389, -0.005160270258784294, -0.06381317973136902, 0.020881956443190575, 0.007462473586201668, 0.0028488028328865767, -0.022141914814710617, 0.01252546813338995, -0.024309784173965454, -0.06155266985297203, -0.004463124554604292, 0.0247359462082386, -0.00539188040420413, -0.029164329171180725, 0.0032077983487397432, 0.060811519622802734, -0.03009076975286007, -0.02191956900060177, -0.03125808387994766, 0.04439500346779823, -0.005906054750084877, -0.00748100271448493, 0.019010547548532486, -0.049027200788259506, -0.015471546910703182, 0.0502501018345356, -0.04054101184010506, -0.005086155142635107, 0.011052428744733334, -0.022308673709630966, -0.0037358691915869713, 0.08930881321430206, -0.027385564520955086, -0.01881599612534046, -0.014591429382562637, -0.01982581429183483, 0.024254197254776955, 0.02153046429157257, 0.014785981737077236, 0.020919013768434525, -0.03729847073554993, -0.012831193394958973, -0.02647765353322029, 0.02004816010594368, 0.021215474233031273, -0.031146910041570663, -0.023012768477201462, 0.018741879612207413, -0.01074670348316431, 0.05892157927155495, 0.054178208112716675, -0.04383913800120354, 0.010135252960026264, 0.05662401020526886, 0.002545393770560622, 0.04357973486185074, 0.01967758499085903, 0.03991103172302246, 0.006373906973749399, 0.026088548824191093, 0.016425780951976776, 0.012831193394958973, 0.027607910335063934, -0.03868813067674637, -0.009449687786400318, -0.004588193725794554, -0.013813219964504242, 0.04139333590865135, 0.03129514306783676, -0.06366495043039322, -0.0002806823467835784 ]
21,046
tfields.core
Maps
Container for TensorFields sorted by dimension, i.e indexing by dimension Args: *args ( List(TensorFields): | List(Tuple(int, TensorFields)): | TensorFields: | Tuple(Tensors, *Fields)): TODO: document ) **kwargs: forwarded to SortedDict TODO: further documentation
class Maps(sortedcontainers.SortedDict, AbstractObject): """ Container for TensorFields sorted by dimension, i.e indexing by dimension Args: *args ( List(TensorFields): | List(Tuple(int, TensorFields)): | TensorFields: | Tuple(Tensors, *Fields)): TODO: document ) **kwargs: forwarded to SortedDict TODO: further documentation """ def __init__(self, *args, **kwargs): if args and args[0] is None: # None key passed e.g. by copy. We do not change keys here. args = args[1:] if len(args) == 1 and issubclass(type(args[0]), (list, dict)): new_args = [] if issubclass(type(args[0]), list): # Maps([...]) iterator = args[0] elif issubclass(type(args[0]), dict): # Maps({}), Maps(Maps(...)) - includes Maps i.e. copy iterator = args[0].items() for entry in iterator: dimension = None if issubclass(type(entry), tuple): if np.issubdtype(type(entry[0]), np.integer): # Maps([(key, value), ...]), Maps({key: value, ...}) maps = self.to_map(entry[1], copy=True) dimension = entry[0] else: # Maps([(tensors, field1, field2), ...]) maps = self.to_map(*entry, copy=True) else: # Maps([mp, mp, ...]) maps = self.to_map(entry, copy=True) if dimension is None: dimension = dim(maps) new_args.append((dimension, maps)) args = (new_args,) super().__init__(*args, **kwargs) @staticmethod def to_map(map_, *fields, copy=False, **kwargs): """ Args: map_ (TensorFields) *fields (Tensors) copy (bool) **kwargs: passed to TensorFields constructor """ if not copy: if isinstance(map_, TensorFields) and not fields: if not np.issubdtype(map_.dtype, np.integer): map_ = map_.astype(int) else: copy = True if copy: # not else, because in case of wrong map_ type we initialize kwargs.setdefault("dtype", int) map_ = TensorFields(map_, *fields, **kwargs) return map_ def __setitem__(self, dimension, map_): map_ = self.to_map(map_) super().__setitem__(dimension, map_) def _args(self): return super()._args() + (list(self.items()),) def _as_dict(self, recurse: typing.Dict[str, typing.Callable] = None) -> dict: if recurse is None: recurse = {} def recurse_args_0( iterable: typing.List[typing.Tuple[int, typing.Any]] ) -> dict: # iterable is list of tuple part_dict = {"type": "list"} for i, (dim, tensor) in enumerate(iterable): content = tensor._as_dict() tuple_key = _HIERARCHY_SEPARATOR.join(["args", str(i), ""]) part_dict[tuple_key + "type"] = "tuple" args_key = tuple_key + _HIERARCHY_SEPARATOR.join(["args", ""]) part_dict[ args_key + _HIERARCHY_SEPARATOR.join(["0", "args", "0"]) ] = dim part_dict[args_key + _HIERARCHY_SEPARATOR.join(["0", "type"])] = "int" for key, value in content.items(): part_dict[args_key + _HIERARCHY_SEPARATOR.join(["1", key])] = value return part_dict attr = "args" + _HIERARCHY_SEPARATOR + str(0) recurse[attr] = recurse_args_0 return super()._as_dict(recurse=recurse) def equal(self, other, **kwargs): """ Test equality with other object. Args: **kwargs: passed to each item on equality check """ if not self.keys() == other.keys(): return False # pylint:disable=consider-using-dict-items for dimension in self.keys(): if not self[dimension].equal(other[dimension], **kwargs): return False return True
(*args, **kwargs)
[ -0.010232986882328987, -0.016565779224038124, -0.07173142582178116, 0.06111646443605423, 0.03321197256445885, 0.033252179622650146, -0.016103383153676987, 0.00857439823448658, 0.000807933509349823, -0.02175263687968254, 0.0019350196234881878, 0.05886480584740639, -0.020365452393889427, 0.003942916635423899, 0.012353969737887383, -0.005795006640255451, 0.01087631843984127, 0.04873233661055565, 0.007709922268986702, 0.01090647466480732, 0.021511387079954147, -0.021692324429750443, 0.04483214393258095, 0.06175979599356651, 0.005126545671373606, -0.03942414000630379, 0.03264905884861946, -0.006855498068034649, -0.0018621422350406647, -0.011017046868801117, -0.0583420991897583, -0.01418344210833311, 0.026698244735598564, 0.05098399892449379, -0.005523601546883583, -0.07937099039554596, -0.005408002994954586, 0.03815758228302002, -0.07679766416549683, 0.001824447070248425, 0.010675276629626751, -0.07297788560390472, -0.0312618762254715, -0.042178403586149216, 0.05596981570124626, 0.039102476090192795, 0.01305761281400919, -0.025411581620573997, -0.02452700212597847, -0.026557516306638718, 0.02874886244535446, -0.0894230380654335, 0.03934372216463089, 0.05613064765930176, -0.03534300625324249, 0.016917599365115166, 0.034418217837810516, -0.02024482935667038, 0.004342485684901476, 0.0026788713876158, -0.03142270818352699, 0.011338712647557259, -0.04245986044406891, -0.029874691739678383, -0.04201756790280342, -0.035202279686927795, -0.04829004779458046, -0.024587314575910568, -0.015781719237565994, -0.006091542076319456, -0.050782956182956696, -0.029372090473771095, 0.053074825555086136, -0.028266364708542824, 0.012565062381327152, 0.027542617172002792, 0.014424691908061504, -0.005945787765085697, 0.08122056722640991, -0.03457905352115631, -0.03465946763753891, -0.015490208752453327, -0.023441379889845848, -0.022757841274142265, -0.010976838879287243, 0.016867339611053467, 0.02450689859688282, 0.05520585924386978, -0.009167470037937164, -0.06344854086637497, -0.055447109043598175, 0.0011415359331294894, 0.013158133253455162, 0.02955302782356739, -0.02412492036819458, -0.015409792773425579, -0.007021356839686632, -0.06019167602062225, -0.038720495998859406, 0.019209466874599457, 0.03662966936826706, -0.053476907312870026, -0.012766103260219097, 0.012203188613057137, -0.016123488545417786, -0.04089174047112465, -0.020747430622577667, -0.029713859781622887, -0.06360936909914017, -0.010273194871842861, -0.04595797136425972, 0.03765498101711273, 0.0037041804753243923, 0.05500481650233269, 0.024768251925706863, -0.00955447368323803, 0.006408181972801685, -0.022697528824210167, -0.00009054697875399143, -0.006277505308389664, -0.0022705066949129105, 0.036006443202495575, 0.01224339660257101, 0.022416071966290474, -0.012012199498713017, 0.0015367071609944105, 0.04981796070933342, 0.025833768770098686, -0.05383877828717232, -0.021169617772102356, 0.022496487945318222, -0.021672219038009644, -0.04519401490688324, 0.08242680877447128, 0.10204841196537018, -0.006785133853554726, 0.013208393938839436, -0.027824074029922485, -0.05713585391640663, 0.054401695728302, 0.04829004779458046, -0.04740546643733978, 0.02062680572271347, 0.00641823373734951, -0.035584256052970886, -0.03574508801102638, 0.014454848133027554, -0.0006376769160851836, 0.012343917042016983, -0.05182836949825287, -0.07032414525747299, 0.007735052611678839, 0.006835394073277712, 0.051185037940740585, -0.06288562715053558, -0.026678141206502914, -0.0011899113887920976, -0.060915421694517136, -0.000738825649023056, 0.03285009786486626, -0.041896943002939224, -0.00641823373734951, -0.018917957320809364, -0.041414447128772736, -0.03188510239124298, 0.033593952655792236, 0.039082370698451996, -0.08266805857419968, -0.007931067608296871, -0.009448926895856857, 0.01400250568985939, -0.023159923031926155, 0.04205777868628502, 0.019269779324531555, 0.005247170105576515, 0.0427815243601799, -0.028226155787706375, -0.007750130724161863, -0.013992453925311565, 0.0017628782661631703, 0.017420202493667603, -0.038720495998859406, -0.0468425527215004, -0.010614965111017227, -0.012796259485185146, 0.03666988015174866, 0.012705790810286999, 0.010026919655501842, 0.04981796070933342, 0.042982567101716995, 0.0027793918270617723, 0.01636473648250103, 0.024225439876317978, 0.011992095969617367, 0.029351985082030296, 0.03548373654484749, -0.053195446729660034, 0.011640273965895176, 0.027040014043450356, 0.12118751555681229, -0.07153038680553436, -0.02255680039525032, 0.04125361144542694, 0.011037151329219341, -0.039042163640260696, -0.01671655848622322, 0.06260416656732559, 0.022657319903373718, 0.010584808886051178, 0.010062102228403091, -0.025813665241003036, -0.06525790691375732, 0.02953292243182659, -0.03536311164498329, 0.01303750928491354, -0.06714769452810287, -0.013901985250413418, 0.005387899000197649, -0.01912905089557171, -0.052712950855493546, 0.10253091156482697, 0.03039739839732647, -0.04973754286766052, -0.02213461324572563, 0.009343380108475685, -0.05371815338730812, 0.026698244735598564, 0.018968218937516212, 0.016143592074513435, -0.016616038978099823, 0.008996584452688694, -0.04016799107193947, -0.026637932285666466, -0.016414998099207878, 0.06103604659438133, -0.029412297531962395, 0.005945787765085697, -0.06783123314380646, 0.0506221242249012, 0.004644047003239393, -0.0311814583837986, -0.009730384685099125, -0.02261711284518242, -0.014927294105291367, -0.04125361144542694, -0.04507339373230934, 0.012896779924631119, 0.03847924619913101, 0.006262427195906639, 0.015811875462532043, -0.026637932285666466, 0.009690175764262676, -0.02018451690673828, 0.020928367972373962, -0.013047561049461365, -0.0020732353441417217, 0.02104899287223816, -0.03847924619913101, -0.00720229372382164, -0.05528627336025238, 0.013721047900617123, -0.021189721301198006, 0.01090647466480732, 0.04121340438723564, 0.023501692339777946, -0.0253512691706419, 0.08077827095985413, 0.03411665931344032, -0.01633458212018013, 0.016957808285951614, 0.024728043004870415, 0.06650435924530029, 0.015510313212871552, -0.01324860192835331, -0.0060563599690794945, -0.0036137120332568884, 0.08596513420343399, 0.0005214500706642866, -0.006498650182038546, 0.031241770833730698, 0.014173390343785286, -0.038780808448791504, -0.0546027347445488, -0.03079948201775551, 0.012685687281191349, 0.02303929813206196, -0.03648894280195236, 0.01111756730824709, -0.004297251347452402, -0.04354548081755638, 0.06284541636705399, 0.008780465461313725, 0.006563988514244556, -0.00604128185659647, -0.04093194752931595, -0.018063534051179886, -0.08069785684347153, 0.007936093024909496, 0.008046666160225868, -0.0001302054588450119, 0.02225523814558983, -0.007709922268986702, 0.08853845298290253, 0.012303709052503109, 0.06541874259710312, -0.010313402861356735, 0.011750846169888973, 0.011218087747693062, 0.0107054328545928, 0.014364379458129406, 0.008026561699807644, 0.056693561375141144, 0.002842217218130827, 0.0351218618452549, -0.0009417514083907008, 0.0058352150954306126, -0.018576188012957573, -0.01639489270746708, 0.03970559686422348, 0.09963592141866684, -0.01871691644191742, 0.045395057648420334, -0.03697143867611885, 0.03244801610708237, 0.011479441076517105, -0.05247170105576515, 0.0819443091750145, -0.038338519632816315, 0.03532290458679199, -0.020124204456806183, -0.01321844570338726, -0.00407610647380352, 0.028889590874314308, 0.022436175495386124, -0.03073916956782341, 0.0007683535804972053, 0.042299024760723114, 0.03303103521466255, -0.03274957835674286, -0.0349811352789402, 0.007921015843749046, -0.013520007021725178, -0.008996584452688694, 0.02217482216656208, 0.003787109861150384, -0.027824074029922485, 0.04318360611796379, -0.0017478001536801457, 0.03431769832968712, 0.0389215387403965, 0.017440306022763252, -0.02611522562801838, -0.016193851828575134, 0.025612622499465942, 0.024748146533966064, 0.009011662565171719, 0.01030335109680891, -0.05713585391640663, -0.023622317239642143, 0.02876896783709526, 0.09384594112634659, -0.03389551118016243, 0.004410336725413799, -0.027019910514354706, 0.06039271503686905, -0.03285009786486626, 0.003993176855146885, -0.007835572585463524, 0.011559857055544853, -0.03037729486823082, 0.031804684549570084, -0.03946434706449509, -0.0007941119256429374, 0.03202583268284798, -0.01669645495712757, 0.029733963310718536, -0.04213819280266762, 0.06063396483659744, -0.07957202941179276, -0.02995510958135128, 0.040690697729587555, -0.012303709052503109, 0.017711712047457695, 0.018043430522084236, -0.03039739839732647, -0.01302745658904314, 0.04390735551714897, 0.005915631540119648, 0.01300735305994749, -0.03230728954076767, -0.040690697729587555, 0.013168185018002987, 0.0291911531239748, -0.007126903627067804, -0.026758557185530663, -0.0003910875821020454, -0.011429180391132832, 0.01594255119562149, -0.02802511490881443, -0.06763019412755966, -0.013318966142833233, -0.11604086309671402, -0.0213706586509943, 0.040650490671396255, 0.03262895345687866, -0.03071906417608261, 0.020385557785630226, 0.041414447128772736, 0.02921125665307045, 0.06143812835216522, 0.011127619072794914, 0.04016799107193947, 0.029733963310718536, 0.022858360782265663, 0.03202583268284798, -0.0349409244954586, -0.029713859781622887, 0.004910426214337349, 0.016837183386087418, 0.04201756790280342, 0.041896943002939224, 0.05303461477160454, 0.00917249545454979, 0.029754068702459335, 0.016947755590081215, -0.04784775897860527, -0.037534356117248535, 0.042258817702531815, 0.015761613845825195, 0.051104623824357986, -0.024768251925706863, -0.05182836949825287, 0.005980969872325659, -0.034418217837810516, -0.021652115508913994, -0.0025682987179607153, 0.006956018507480621, -0.008132108487188816, 0.02963344380259514, 0.04241964966058731, 0.003309637540951371, 0.03423728048801422, 0.05371815338730812, -0.04113299027085304, 0.032528433948755264, 0.04631984606385231, -0.01324860192835331, 0.0312618762254715, -0.007564167492091656, 0.01011738833039999, 0.057015229016542435, 0.02096857689321041, 0.03859987109899521, -0.04865192249417305, 0.030518023297190666, -0.03779570758342743, -0.06775081902742386, -0.008865907788276672, -0.02374294213950634, 0.007719974499195814, 0.024728043004870415, 0.0027592878323048353, 0.003236760152503848, -0.027140535414218903, -0.013952245004475117, -0.010645121335983276, 0.036850813776254654, 0.004784775897860527, -0.04398776963353157, -0.02024482935667038, 0.07502850145101547, 0.04050976037979126, -0.011600065976381302, -0.030879897996783257, -0.020465973764657974, 0.0032945594284683466, 0.04250006750226021, 0.012967144139111042, -0.0702437236905098, -0.03530279919505119, 0.03803695738315582, -0.012635426595807076, 0.06389082968235016, -0.03538321703672409, -0.017239265143871307, 0.05492440238595009, -0.005418054759502411, 0.03924320265650749, -0.0036564331967383623, 0.0388411208987236, -0.07096747308969498, -0.021330449730157852, 0.016103383153676987, 0.043465062975883484, 0.00817734282463789, -0.002377309836447239, -0.006378025747835636, 0.026939494535326958, 0.004654099233448505, -0.03709206357598305, 0.00017481143004260957, -0.030276775360107422, 0.006156880408525467, 0.0467621348798275, -0.0004407195665407926, -0.029452506452798843, 0.026195641607046127, 0.025431687012314796, 0.01711864024400711, -0.04523422569036484, -0.03453884273767471, -0.06517749279737473, 0.02563272789120674, -0.0025808638893067837, 0.030578335747122765, 0.00892622023820877, -0.01209261640906334, -0.002927659545093775, -0.037574563175439835, -0.05009941756725311, 0.010137492790818214, 0.028145739808678627, 0.015831978991627693, -0.007941119372844696, -0.01675676740705967, -0.0030784402042627335, 0.04547547549009323, -0.027502408251166344, 0.054763566702604294, -0.00819744635373354, -0.018928010016679764, -0.027522513642907143, -0.024265648797154427, 0.0025682987179607153, 0.012967144139111042, 0.057457517832517624, 0.03737352043390274, -0.019671861082315445, 0.016485361382365227, 0.05247170105576515, 0.04716422036290169, 0.04245986044406891, 0.03548373654484749, -0.07048497349023819, 0.04161548614501953, 0.02527085319161415, 0.043062981218099594, -0.0214711781591177, 0.0013457181630656123, -0.0003172678407281637, -0.031221667304635048, -0.013017404824495316, 0.039906639605760574, 0.005553757771849632, -0.04820962995290756, -0.002613533055409789, -0.032106246799230576, -0.09038802981376648, 0.011177879758179188, 0.01049434021115303, 0.04250006750226021, 0.051185037940740585, 0.042258817702531815, 0.02848750911653042, -0.020868055522441864, -0.002471547806635499, -0.015811875462532043, 0.03773539513349533, -0.051185037940740585, 0.042982567101716995, 0.016133539378643036, 0.006473520305007696, -0.017018120735883713, -0.03194541484117508, -0.00485514011234045, -0.029754068702459335, -0.03745393827557564, 0.011197983287274837, -0.0014500082470476627, -0.09151386469602585, -0.01905868761241436, 0.04929525405168533, 0.020767536014318466, -0.00032700574956834316, 0.04016799107193947, 0.021993884816765785, -0.001154100988060236, 0.06501665711402893, 0.011157775297760963, -0.01676682010293007, -0.009051870554685593, 0.029512818902730942, -0.009323276579380035, 0.008318071253597736, 0.0005688832025043666, -0.0136506836861372, -0.050380874425172806, -0.0029703807085752487, -0.048491090536117554, -0.06083500757813454, -0.031322188675403595, 0.01557062566280365, -0.026296162977814674, 0.03244801610708237, -0.012615323066711426, -0.07490787655115128, 0.050782956182956696, 0.014012557454407215, 0.04042934626340866, -0.034398116171360016, 0.013268706388771534, 0.0016460231272503734, 0.06899727135896683, -0.019249675795435905, 0.008976480923593044, -0.09384594112634659, -0.049255043268203735, 0.036046650260686874, 0.06401145458221436, -0.029492715373635292, -0.0312618762254715, -0.009800748899579048, -0.025009499862790108, -0.039524659514427185, -0.04117319732904434, -0.003437801031395793, 0.02450689859688282, -0.04133402928709984, 0.03383519873023033, -0.018465615808963776, 0.017440306022763252, -0.0175508800894022, 0.02261711284518242, -0.01632452942430973, -0.0038901432417333126, -0.0663033202290535, -0.02798490785062313, -0.01127840019762516, -0.032528433948755264, 0.04077111557126045, -0.0019991013687103987, -0.03574508801102638, -0.014485004357993603, 0.04627963900566101, -0.004613890778273344, -0.053517114371061325, 0.028125636279582977, -0.037172481417655945, 0.0702839344739914, 0.02923136204481125, -0.00046522144111804664, 0.06300625205039978, 0.000623541243840009, -0.00720732007175684, 0.008916168473660946, 0.031684063374996185, -0.006317713297903538, -0.034418217837810516, -0.019259728491306305, 0.024446586146950722, 0.013238550163805485, -0.04044944792985916, -0.03749414533376694, -0.06067417189478874, -0.01638484187424183, -0.028125636279582977, 0.008242680691182613, 0.015520364977419376, 0.060473132878541946, 0.0389818511903286, -0.027040014043450356, -0.06059375777840614, 0.03471978008747101, -0.010062102228403091, 0.01784238964319229, 0.005498471204191446, 0.03299082815647125, 0.05987000837922096, 0.008906116709113121, -0.05866376310586929, 0.027100326493382454, 0.027884386479854584, -0.07744099199771881, 0.04113299027085304, -0.04044944792985916, -0.016143592074513435, -0.03662966936826706, -0.016123488545417786, -0.007322918623685837, -0.026255954056978226, 0.04905400425195694, -0.04438985139131546, 0.07961223274469376, -0.027060119435191154, -0.09022720158100128, -0.009971633553504944, -0.024687834084033966, -0.011791055090725422, 0.05689460411667824, -0.020707223564386368, 0.008428643457591534, -0.024728043004870415, -0.018103741109371185, 0.006976122502237558, 0.007167111616581678, 0.026758557185530663, -0.06783123314380646, 0.009685150347650051, 0.09014678746461868, 0.008569372817873955, -0.013198341242969036, 0.057859599590301514, 0.04631984606385231, -0.08451763540506363, -0.005629147868603468, -0.009257937781512737, 0.049255043268203735, 0.06075458973646164, -0.016284320503473282, -0.012786207720637321, -0.010474235750734806, 0.0389818511903286, 0.06381041556596756, 0.0661022812128067, 0.0043776677921414375, 0.03552394360303879, 0.053155239671468735, -0.05186857655644417, -0.06360936909914017, -0.0429021492600441, 0.02213461324572563, 0.04093194752931595, -0.0350012369453907, -0.009107157588005066, -0.033272285014390945, -0.00030815816717222333, 0.0107054328545928, -0.031684063374996185, -0.007026382721960545, 0.06336812674999237, 0.0006489855004474521, 0.008684971369802952, -0.022416071966290474, 0.06541874259710312, 0.027060119435191154, -0.018003221601247787, 0.034418217837810516, -0.003995690029114485, 0.014826773665845394, -0.04833025485277176, 0.08596513420343399, 0.026778660714626312, -0.09408719092607498, -0.051185037940740585, 0.03739362582564354, -0.019008425995707512, -0.015027814544737339, -0.055527523159980774, -0.02484866790473461, -0.077843077480793, -0.038358621299266815, -0.03817768767476082, -0.019390404224395752, 0.019732173532247543, -0.018887801095843315, 0.023099610581994057, 0.010635068640112877, 0.009343380108475685 ]
21,047
sortedcontainers.sorteddict
copy
Return a shallow copy of the sorted dict. Runtime complexity: `O(n)` :return: new sorted dict
def copy(self): """Return a shallow copy of the sorted dict. Runtime complexity: `O(n)` :return: new sorted dict """ return self.__class__(self._key, self.items())
(self)
[ 0.00013878320169169456, 0.01684766635298729, -0.04155175760388374, -0.026554716750979424, -0.04113274812698364, 0.018576079979538918, -0.004478162154555321, 0.006027624011039734, 0.04755755886435509, -0.058521635830402374, -0.047732144594192505, -0.004078793805092573, 0.01579141430556774, 0.043402381241321564, -0.038583774119615555, 0.01479626726359129, 0.017720602452754974, 0.054296623915433884, -0.06767001003026962, 0.0027257429901510477, 0.028021248057484627, -0.044240400195121765, 0.01531129889190197, 0.0532141849398613, -0.025559568777680397, -0.025524651631712914, 0.002161608077585697, -0.023289935663342476, 0.05014145001769066, 0.0012788514140993357, 0.029679827392101288, -0.006878736428916454, 0.01284961961209774, 0.044764164835214615, -0.004683302249759436, -0.07346630096435547, 0.015843790024518967, 0.010510150343179703, -0.019606145098805428, 0.032019294798374176, -0.01707462966442108, -0.045148253440856934, -0.024442210793495178, -0.022032907232642174, 0.048884421586990356, 0.02929573506116867, 0.045462511479854584, 0.02138693444430828, 0.058521635830402374, -0.03669823333621025, -0.0030618233140558004, -0.007280286867171526, 0.0043734097853302956, 0.021544063463807106, -0.04256436601281166, 0.004336310084909201, 0.05621708557009697, -0.0025293324142694473, -0.04933834820985794, 0.0344984345138073, -0.030343258753418922, -0.012168729677796364, -0.01229094062000513, -0.06592413783073425, -0.002815218875184655, -0.041272420436143875, -0.06931112706661224, -0.022888384759426117, 0.03235101327300072, -0.02187577821314335, -0.01412410568445921, 0.017930107191205025, 0.03627922385931015, 0.034899983555078506, -0.037885427474975586, 0.06187371164560318, -0.013923331163823605, -0.011941765435039997, 0.027881579473614693, -0.059045396745204926, -0.028178377076983452, -0.06386400759220123, -0.04930343106389046, 0.043227795511484146, -0.044764164835214615, 0.02465171553194523, 0.04368172213435173, -0.00934914592653513, 0.027392735704779625, 0.024005742743611336, -0.011409275233745575, 0.0916932076215744, -0.04410073161125183, 0.01993785984814167, 0.037780676037073135, -0.01686512492597103, -0.01655086874961853, 0.000723445788025856, 0.002028485294431448, 0.036733150482177734, -0.008720631711184978, 0.04001539200544357, -0.049478016793727875, -0.002050308743491769, -0.0058835893869400024, -0.019658520817756653, 0.03652364760637283, -0.010545068420469761, -0.0557282418012619, 0.011601320467889309, -0.019099842756986618, 0.0754915177822113, 0.005468944553285837, 0.03711724281311035, 0.031390782445669174, -0.0017556927632540464, -0.025856368243694305, -0.02548973448574543, 0.009471356868743896, 0.04727821797132492, -0.017144465819001198, 0.03158282861113548, 0.02323755994439125, 0.03338107839226723, -0.015398592688143253, -0.012360774911940098, 0.02866722084581852, -0.04221519082784653, -0.04818607121706009, -0.00881228968501091, -0.008284163661301136, -0.020531456917524338, -0.010300645604729652, 0.048255909234285355, 0.0534236878156662, -0.040050309151411057, 0.013792390003800392, 0.06180387735366821, 0.03229863569140434, 0.06180387735366821, 0.05527431517839432, -0.004022052977234125, 0.06588921695947647, 0.038199685513973236, 0.03306682035326958, -0.0544712133705616, -0.03081464394927025, 0.07116175442934036, 0.010300645604729652, 0.025646863505244255, 0.020915549248456955, 0.04839557781815529, 0.03586021438241005, 0.03306682035326958, -0.023167723789811134, -0.053807780146598816, -0.05768361687660217, -0.08380186557769775, -0.02355181612074375, 0.009663403034210205, 0.0007365398341789842, 0.009811801835894585, 0.04612594470381737, -0.10209860652685165, -0.031512994319200516, 0.02753240428864956, 0.07367580384016037, -0.047941651195287704, -0.008576597087085247, -0.00024073940585367382, -0.0359649658203125, -0.01737142913043499, -0.028754515573382378, 0.02578653208911419, -0.011740990914404392, 0.024197788909077644, -0.032333552837371826, 0.014839913696050644, 0.007337028160691261, -0.001254845643416047, 0.007520344574004412, -0.024005742743611336, -0.02157898060977459, 0.014097917824983597, 0.029208442196249962, -0.01798248291015625, 0.0378505103290081, 0.04231994226574898, 0.040434401482343674, 0.059569161385297775, -0.01932680606842041, 0.016123129054903984, 0.028911644592881203, -0.04315796121954918, -0.0036510552745312452, -0.033660415560007095, -0.09092502295970917, -0.015084335580468178, -0.0365934818983078, 0.14015862345695496, -0.06973013281822205, -0.02372640371322632, 0.04912884533405304, -0.025611944496631622, 0.02981949783861637, 0.0034088154789060354, -0.023569274693727493, -0.005407839082181454, 0.05478547140955925, 0.024442210793495178, -0.0031120171770453453, -0.04361188784241676, 0.035930048674345016, -0.023708945140242577, 0.004827336873859167, -0.04930343106389046, -0.009017430245876312, -0.04336746409535408, 0.009174558334052563, -0.02744511142373085, 0.06061668321490288, -0.005032476503401995, -0.02395336702466011, -0.019955318421125412, -0.012055248022079468, -0.02281855046749115, 0.00992528349161148, -0.04266911745071411, -0.04853524640202522, -0.0464751198887825, 0.04902409017086029, -0.027200689539313316, 0.012159999459981918, -0.04329762980341911, 0.04965260624885559, -0.026083331555128098, -0.03146061673760414, -0.03558087721467018, 0.014551844447851181, 0.004179181531071663, -0.018034860491752625, 0.05932473763823509, 0.06746049970388412, 0.03872344642877579, -0.03648873046040535, -0.01869829185307026, -0.0229233019053936, 0.03774575889110565, 0.03477777540683746, 0.009052347391843796, -0.029260817915201187, -0.015241464599967003, -0.06906670331954956, 0.024477127939462662, 0.024005742743611336, -0.0009635032038204372, -0.008742455393075943, -0.043856311589479446, -0.008838478475809097, -0.0035812202841043472, -0.00747669767588377, 0.012744867242872715, -0.02990679070353508, -0.006149834953248501, -0.011007724329829216, -0.01838403381407261, 0.03676806762814522, 0.015433509834110737, -0.031390782445669174, 0.051433395594358444, 0.06327041238546371, -0.029156066477298737, -0.032420847564935684, -0.0023263746406883, -0.0017862454988062382, 0.017947565764188766, -0.003603043733164668, -0.006948571186512709, -0.0076207322999835014, 0.008925771340727806, 0.047941651195287704, 0.006839454174041748, -0.02283600904047489, -0.03865361213684082, -0.039421793073415756, 0.024529503658413887, -0.04025981202721596, -0.018418950960040092, 0.013155147433280945, -0.03718707710504532, 0.007498520892113447, 0.032647810876369476, -0.00796117726713419, -0.0008189231739379466, 0.0471036322414875, -0.02372640371322632, -0.05988341569900513, -0.034707941114902496, 0.020287035033106804, 0.06707640737295151, -0.011924306862056255, -0.023394687101244926, 0.01181955449283123, 0.06117536127567291, 0.03270018473267555, 0.03158282861113548, -0.009689590893685818, 0.009829260408878326, -0.02959253452718258, 0.02456442266702652, -0.026572175323963165, 0.047627393156290054, -0.0026406317483633757, 0.08254484087228775, -0.031390782445669174, -0.047208383679389954, -0.025227854028344154, 0.0015025412430986762, 0.0009842354338616133, 0.06746049970388412, -0.10049240291118622, 0.004849160090088844, -0.06993964314460754, -0.042285025119781494, 0.009759425185620785, -0.055029891431331635, -0.003511385526508093, 0.0110426414757967, 0.039945557713508606, 0.03521424159407616, 0.015058147720992565, 0.005551873706281185, 0.04993194341659546, 0.06103569269180298, -0.033852461725473404, 0.03257797658443451, 0.03022104874253273, 0.0023591099306941032, -0.020269576460123062, -0.05199207365512848, 0.020706044510006905, 0.008358363062143326, 0.02404065988957882, -0.04225010797381401, -0.011775908060371876, -0.012762325815856457, -0.019885484129190445, 0.011435463093221188, -0.03146061673760414, -0.0916932076215744, 0.01556445099413395, 0.0005848672008141875, 0.004988829605281353, 0.06910162419080734, 0.06550512462854385, 0.02456442266702652, 0.04504350200295448, -0.04225010797381401, -0.020374327898025513, -0.03062259778380394, 0.06410842388868332, -0.022050365805625916, -0.0548902228474617, -0.0759105235338211, 0.07618986070156097, 0.013373381458222866, -0.009968929924070835, -0.052550751715898514, -0.06885720044374466, -0.04759247601032257, -0.01850624568760395, -0.04123750329017639, 0.01145292166620493, -0.00011982412252109498, -0.00005050071922596544, -0.028335506096482277, -0.07772623002529144, 0.05583299323916435, -0.04776706174015999, 0.030884480103850365, 0.07367580384016037, 0.006625584792345762, -0.02683405578136444, 0.01789519004523754, -0.017598392441868782, 0.0114616509526968, 0.058626387268304825, -0.006677960976958275, 0.07102207839488983, 0.01417648233473301, -0.07639937102794647, -0.04675445705652237, -0.01838403381407261, 0.021928155794739723, -0.018349116668105125, 0.031076524406671524, -0.010091141797602177, -0.0032516869250684977, -0.06299106776714325, -0.005682813934981823, 0.09392792731523514, -0.023150265216827393, 0.0363839752972126, -0.029103688895702362, -0.00913964118808508, -0.030971772968769073, 0.02795141376554966, 0.02508818358182907, 0.02262650430202484, -0.03586021438241005, -0.028405340388417244, -0.01892525516450405, -0.018750667572021484, -0.04141208902001381, 0.020025154575705528, -0.0757010206580162, 0.027375275269150734, -0.01859353855252266, 0.0156692024320364, 0.012203646823763847, 0.03135586529970169, -0.005281263496726751, -0.0757010206580162, 0.02548973448574543, 0.04389122873544693, -0.031198736280202866, -0.035930048674345016, 0.03771083801984787, 0.017441263422369957, -0.016603244468569756, 0.04727821797132492, -0.0028828715439885855, 0.002743201795965433, 0.025227854028344154, 0.05778836831450462, -0.019902942702174187, 0.0527951754629612, -0.006049447227269411, 0.02313280664384365, 0.10880275815725327, -0.008607150055468082, -0.015232735313475132, 0.05090963467955589, -0.001724048750475049, 0.015276381745934486, 0.025611944496631622, 0.007524709217250347, -0.03158282861113548, 0.054436296224594116, -0.05017636716365814, 0.10119075328111649, 0.0527951754629612, 0.037571169435977936, -0.03620938956737518, -0.06739066541194916, -0.04853524640202522, -0.05125880613923073, 0.00012105168570997193, -0.028073625639081, 0.008476209826767445, 0.01028318703174591, 0.01556445099413395, 0.034707941114902496, -0.006739066913723946, -0.052690424025058746, -0.02611824870109558, -0.010047494433820248, 0.025035807862877846, -0.004630926065146923, 0.0186109971255064, 0.04612594470381737, -0.010422857478260994, -0.02229478769004345, -0.06337516009807587, -0.029470322653651237, -0.0029592534992843866, 0.028038708493113518, -0.02711339481174946, -0.03977096825838089, 0.012098894454538822, 0.0016127494163811207, -0.026030953973531723, 0.01068473793566227, 0.014255046844482422, 0.0024573151022195816, 0.0031949460972100496, -0.009480086155235767, 0.03390483930706978, 0.014647867530584335, 0.04050423577427864, -0.02580399066209793, -0.025559568777680397, -0.06655264645814896, 0.039002783596515656, 0.009672132320702076, 0.008240517228841782, -0.013364652171730995, 0.029941707849502563, -0.01433361042290926, -0.041796181350946426, 0.00014921752153895795, 0.01496212463825941, -0.01284089032560587, 0.070672906935215, -0.0077080256305634975, 0.017869001254439354, 0.00023501076793763787, -0.024285081773996353, -0.016201693564653397, -0.024529503658413887, -0.00037918161251582205, -0.035615794360637665, 0.010702196508646011, 0.0037405311595648527, 0.04902409017086029, -0.008524221368134022, -0.08310351520776749, -0.00811830535531044, -0.00808775331825018, -0.030779726803302765, 0.04158667474985123, 0.05590282753109932, 0.027602240443229675, -0.048465412110090256, -0.04399598017334938, 0.0005150323268026114, 0.01951885037124157, -0.0013770567020401359, 0.051433395594358444, -0.019361723214387894, -0.04912884533405304, -0.059673912823200226, 0.012919453904032707, 0.027200689539313316, 0.0267118439078331, 0.03977096825838089, -0.0433325469493866, 0.0038496481720358133, -0.01166242640465498, 0.025402439758181572, 0.015250193886458874, 0.003932577092200518, 0.09413743019104004, -0.053807780146598816, -0.007306475192308426, 0.0530046783387661, -0.0370124913752079, -0.03648873046040535, -0.06054684892296791, 0.005726460833102465, -0.037466417998075485, -0.0332239493727684, 0.05283009260892868, -0.022766172885894775, 0.005394745152443647, -0.019972778856754303, 0.0028043072670698166, -0.02536752261221409, 0.06522578746080399, 0.00832781009376049, 0.05014145001769066, -0.0165072213858366, -0.00036581477615982294, -0.011356898583471775, -0.06166420504450798, 0.022137658670544624, -0.008498032577335835, 0.08694443851709366, -0.008345269598066807, 0.030587680637836456, 0.02620554156601429, 0.05073504522442818, 0.013731284998357296, 0.025961119681596756, -0.0014239769661799073, 0.005001924000680447, -0.009977659210562706, 0.023516898974776268, -0.014071729965507984, -0.047836899757385254, 0.00029052403988316655, 0.041167665272951126, 0.017633309587836266, 0.017092088237404823, -0.06103569269180298, 0.024931054562330246, -0.019780732691287994, 0.025751614943146706, 0.03760608658194542, -0.04738297313451767, -0.0008783919620327652, 0.020706044510006905, -0.007105699740350246, -0.009340416640043259, -0.004940818529576063, -0.036453813314437866, -0.011531486175954342, -0.017764249816536903, -0.059045396745204926, 0.00747669767588377, 0.01799994334578514, 0.03896786645054817, 0.004022052977234125, 0.02940048836171627, 0.018471328541636467, -0.019047465175390244, 0.0067827133461833, -0.026991184800863266, 0.03771083801984787, -0.0020415792241692543, -0.028422798961400986, -0.01840149238705635, 0.021439310163259506, -0.06065160036087036, 0.0534236878156662, -0.02159643918275833, 0.0061192819848656654, -0.048884421586990356, -0.02086317352950573, -0.012325857765972614, -0.038199685513973236, 0.023569274693727493, -0.014115376397967339, 0.055867910385131836, -0.03676806762814522, -0.05352844297885895, -0.0010595262283459306, 0.02313280664384365, 0.006931112613528967, 0.0011015362106263638, -0.0047575016506016254, -0.08177665621042252, 0.026589633896946907, 0.010457774624228477, -0.007197358179837465, 0.006049447227269411, 0.007524709217250347, 0.02363910898566246, 0.0020044795237481594, 0.07716754823923111, 0.0013301364379003644, -0.012325857765972614, -0.0004241923743393272, 0.005626073107123375, -0.09888619929552078, -0.017703143879771233, -0.008903948590159416, -0.005918506998568773, 0.03432384878396988, -0.036418892443180084, -0.008720631711184978, 0.03072735108435154, 0.009846718981862068, 0.020740961655974388, -0.03844410553574562, -0.04490383341908455, 0.0077342139557003975, -0.004379956983029842, 0.016559597104787827, -0.015084335580468178, -0.0037994543090462685, 0.02816091850399971, -0.04884950444102287, -0.04996686428785324, 0.09630230814218521, 0.012325857765972614, -0.04172634705901146, 0.02999408356845379, 0.015468427911400795, 0.0268165972083807, -0.02508818358182907, -0.023045513778924942, -0.0370124913752079, -0.024791385978460312, -0.04462449252605438, 0.0007938262424431741, 0.023569274693727493, 0.03552849963307381, 0.022155119106173515, -0.03980588540434837, 0.028230752795934677, 0.039212290197610855, 0.007795319426804781, -0.032822396606206894, -0.016734184697270393, 0.06801918148994446, -0.05150322988629341, -0.014054271392524242, -0.04881458729505539, -0.04818607121706009, 0.028091084212064743, -0.05558856949210167, -0.02465171553194523, -0.011967954225838184, -0.023150265216827393, 0.030255965888500214, -0.02631029486656189, -0.04741789028048515, 0.04046931862831116, -0.01817452907562256, 0.02168373204767704, 0.012063977308571339, 0.053284019231796265, 0.006302598863840103, 0.001369418459944427, -0.005311815999448299, -0.045602183789014816, 0.044135648757219315, 0.04329762980341911, -0.007467968389391899, 0.003808183828368783, 0.06463219225406647, 0.012142540886998177, 0.00614110566675663, 0.045287925750017166, 0.007241005077958107, -0.0014272505650296807, -0.031111443415284157, -0.01726667582988739, 0.011941765435039997, -0.003568126354366541, -0.026956267654895782, 0.03400959074497223, 0.03924720734357834, 0.05558856949210167, 0.05670592933893204, 0.025926202535629272, -0.05167781561613083, -0.07905309647321701, -0.01229094062000513, 0.008659525774419308, 0.03369533270597458, -0.016079483553767204, -0.011898119002580643, 0.01789519004523754, -0.01951885037124157, -0.021247263997793198, 0.011985412798821926, 0.06306090205907822, 0.06421317905187607, -0.012317128479480743, 0.00690928939729929, 0.037571169435977936, 0.040120143443346024, -0.03690773993730545, -0.07028881460428238, 0.036733150482177734, 0.0077342139557003975, 0.006643043830990791, -0.02107267826795578, -0.008773007430136204, 0.013844766654074192, -0.011060100048780441, 0.03226371854543686, 0.03226371854543686, -0.001341048046015203, -0.01480499655008316, 0.009951471351087093, 0.040748655796051025, -0.006062541157007217, -0.06452743709087372, -0.0872936099767685, -0.03072735108435154, 0.022015448659658432, -0.01920459419488907, 0.015538262203335762, 0.08743327856063843, 0.004028600174933672 ]
21,048
sortedcontainers.sorteddict
__delitem__
Remove item from sorted dict identified by `key`. ``sd.__delitem__(key)`` <==> ``del sd[key]`` Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> del sd['b'] >>> sd SortedDict({'a': 1, 'c': 3}) >>> del sd['z'] Traceback (most recent call last): ... KeyError: 'z' :param key: `key` for item lookup :raises KeyError: if key not found
def __delitem__(self, key): """Remove item from sorted dict identified by `key`. ``sd.__delitem__(key)`` <==> ``del sd[key]`` Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> del sd['b'] >>> sd SortedDict({'a': 1, 'c': 3}) >>> del sd['z'] Traceback (most recent call last): ... KeyError: 'z' :param key: `key` for item lookup :raises KeyError: if key not found """ dict.__delitem__(self, key) self._list_remove(key)
(self, key)
[ 0.04479942098259926, 0.07782342284917831, -0.06793509423732758, -0.025268079712986946, -0.00971849262714386, -0.03168417140841484, -0.0453278049826622, 0.0297404732555151, 0.019965369254350662, -0.04763004928827286, -0.04970584437251091, 0.05397065728902817, 0.022154388949275017, 0.01302089262753725, -0.05468774959445, 0.05238550528883934, -0.009336357936263084, 0.06838799268007278, -0.029042251408100128, -0.03370335325598717, -0.00856265239417553, 0.025003887712955475, 0.02677774988114834, 0.037515267729759216, -0.04366716742515564, -0.01322847232222557, 0.06782186776399612, -0.02479630894958973, 0.0675576776266098, -0.0035359272733330727, 0.035269636660814285, -0.0009217235492542386, -0.0189557783305645, 0.0180877186357975, -0.044723935425281525, -0.005274405237287283, 0.02747597172856331, 0.006288713775575161, -0.04747908189892769, 0.03366561233997345, -0.004234149120748043, 0.017766913399100304, 0.05680128559470177, -0.022984705865383148, 0.09624138474464417, 0.04128944128751755, 0.010029861703515053, 0.0366094671189785, -0.014219192788004875, 0.027494842186570168, 0.008373944088816643, 0.017578205093741417, 0.0056187985464930534, -0.023343252018094063, -0.026664523407816887, 0.05480097606778145, 0.0041586654260754585, 0.00577448308467865, 0.016162890940904617, 0.0021430219057947397, 0.023871636018157005, -0.0017620665021240711, -0.04027041420340538, -0.06699155271053314, 0.0001379931636620313, -0.016502566635608673, 0.008213541470468044, -0.03859090805053711, -0.0012277852511033416, -0.016634661704301834, -0.013294519856572151, 0.017927316948771477, 0.02039939910173416, 0.05917901545763016, -0.0063594793900847435, 0.0044299340806901455, 0.011567836627364159, -0.035118669271469116, 0.017049821093678474, -0.04506361111998558, 0.040761057287454605, -0.04932842776179314, 0.002358857309445739, 0.004024210851639509, -0.02941966988146305, 0.003790683811530471, 0.0865040197968483, -0.0010638446547091007, 0.01610627770423889, 0.09322204440832138, -0.021776972338557243, 0.026249365881085396, -0.03843994066119194, -0.019361501559615135, 0.01062429416924715, 0.015747731551527977, -0.0004682331928052008, -0.009072165936231613, 0.011577271856367588, -0.027117425575852394, 0.06838799268007278, 0.03959106281399727, 0.0020038492511957884, 0.012445331551134586, 0.008491886779665947, 0.0008073189528658986, 0.058084502816200256, 0.001177069847472012, -0.040912020951509476, 0.017446110025048256, -0.019323760643601418, 0.019927626475691795, 0.0009158263565041125, 0.020493753254413605, 0.029079994186758995, 0.031042562797665596, -0.03525076434016228, -0.047252632677555084, 0.0146532217040658, 0.015483539551496506, -0.015728861093521118, 0.0040595936588943005, -0.02521146833896637, 0.006043392699211836, 0.02026730217039585, -0.04800746589899063, -0.007826688699424267, 0.003149074735119939, -0.0394400954246521, 0.000039510861824965104, -0.03028772957623005, 0.010388407856225967, 0.018465135246515274, 0.0004947703564539552, 0.04600715637207031, 0.011860335245728493, 0.03445819020271301, 0.01762538217008114, 0.0004543749091681093, 0.04181782528758049, 0.025588884949684143, 0.003146715695038438, 0.032155945897102356, 0.03140110895037651, 0.06631220132112503, -0.06031126528978348, -0.05604645237326622, -0.023852765560150146, 0.005882990546524525, 0.016634661704301834, -0.07265280932188034, 0.04517683759331703, 0.0560087114572525, -0.016927160322666168, 0.00008049600728554651, -0.022343097254633904, -0.027815645560622215, -0.013747421093285084, -0.08242791146039963, 0.003479314735159278, 0.046120379120111465, 0.014483384788036346, 0.02985369972884655, -0.04404458403587341, -0.03645849972963333, -0.024569857865571976, 0.007850277237594128, -0.0069208876229822636, -0.0357414074242115, 0.03113691695034504, -0.03538285940885544, 0.004835657775402069, -0.007477577775716782, 0.002139483578503132, 0.029514024034142494, 0.01773860678076744, -0.04517683759331703, 0.035967856645584106, -0.014200321398675442, -0.024701954796910286, 0.049101974815130234, 0.02817419357597828, -0.012728394940495491, -0.0208145584911108, -0.020305044949054718, 0.038100264966487885, -0.023965992033481598, 0.014521125704050064, 0.018842553719878197, 0.07042604684829712, -0.05321582406759262, -0.0337788388133049, 0.0015120275784283876, -0.05321582406759262, 0.02279599756002426, -0.008723055012524128, -0.03447705879807472, -0.03460915759205818, 0.027947742491960526, 0.07612504810094833, -0.053593240678310394, -0.03326932340860367, -0.008454144932329655, 0.04562973603606224, -0.020493753254413605, -0.014473948627710342, -0.019795531406998634, -0.040345896035432816, 0.013209601864218712, 0.059103529900312424, 0.032193686813116074, -0.013294519856572151, 0.05389517545700073, -0.0025263363495469093, 0.037836071103811264, -0.06880315393209457, -0.05759386345744133, 0.0038661672733724117, -0.007133184932172298, -0.05000777542591095, 0.01322847232222557, -0.03777946159243584, 0.047554563730955124, -0.011171548627316952, 0.01838965155184269, 0.01344548724591732, 0.011916947551071644, 0.007015241775661707, 0.0025381306186318398, -0.018417958170175552, 0.06046223267912865, 0.0029320598114281893, 0.09163688868284225, -0.025098241865634918, 0.05423485115170479, -0.035269636660814285, -0.09518461674451828, -0.034307222813367844, 0.0012714241165667772, -0.007906889542937279, -0.0329107791185379, 0.060650940984487534, 0.043025560677051544, 0.011728239245712757, -0.012615169398486614, 0.019682306796312332, -0.04151589050889015, 0.04166685789823532, 0.013700244016945362, -0.022588418796658516, 0.02292809449136257, -0.00788801908493042, -0.010728083550930023, 0.016615791246294975, 0.04502587020397186, 0.010152522474527359, -0.012662346474826336, -0.0318162702023983, -0.013785162940621376, 0.021663745865225792, 0.002266861964017153, -0.04434651881456375, -0.04242169111967087, 0.06302867084741592, 0.0249472763389349, 0.03827010095119476, 0.045705221593379974, 0.03817574679851532, 0.011379128322005272, 0.05170615389943123, 0.06099061667919159, -0.04955487698316574, 0.022324226796627045, -0.08982528746128082, 0.01737062633037567, 0.10084587335586548, -0.03891171142458916, -0.04883778467774391, 0.012926538474857807, 0.045705221593379974, 0.0825788825750351, -0.060349006205797195, -0.029627248644828796, 0.026551298797130585, -0.018993519246578217, 0.059065788984298706, -0.006680284161120653, 0.02519259788095951, 0.0403081551194191, 0.06770864129066467, -0.01139799878001213, -0.008053138852119446, -0.008430556394159794, 0.035156410187482834, 0.009638291783630848, 0.004533723928034306, -0.06170770898461342, -0.0012796801747754216, 0.04562973603606224, 0.07023733854293823, 0.007633262313902378, -0.002295168349519372, -0.03947783634066582, 0.004271890968084335, 0.03693027049303055, 0.017012080177664757, 0.03868526220321655, 0.015426927246153355, -0.06835025548934937, 0.05944320559501648, -0.00046292576007544994, 0.0318162702023983, -0.013360568322241306, 0.04419555142521858, 0.030476437881588936, -0.04264814034104347, -0.05925449728965759, -0.01669127494096756, -0.04495038837194443, 0.03989299759268761, -0.02674000710248947, -0.007015241775661707, -0.08567369729280472, -0.0453278049826622, 0.011520659551024437, -0.04295007511973381, -0.022192129865288734, 0.009831717237830162, 0.029400799423456192, 0.07567214220762253, 0.03308061510324478, -0.010982840321958065, 0.033325936645269394, -0.01913505047559738, 0.021154232323169708, -0.01048276200890541, 0.03843994066119194, 0.02170148864388466, 0.03242013603448868, -0.0172102227807045, -0.005208357237279415, 0.010501633398234844, 0.040496863424777985, -0.024286795407533646, -0.0056329513899981976, 0.0010821258183568716, -0.04827165603637695, -0.006784074008464813, 0.013398310169577599, -0.04661102220416069, 0.07895567268133163, 0.03213707357645035, -0.012549120932817459, 0.022720513865351677, 0.06431189179420471, 0.024173570796847343, 0.020644720643758774, 0.018068848177790642, 0.02307906001806259, -0.035703666508197784, -0.01760651171207428, -0.011445175856351852, -0.07204893976449966, -0.06857670098543167, 0.007902172394096851, -0.04381813481450081, -0.0560087114572525, -0.08227694779634476, -0.05631064251065254, -0.015162735246121883, -0.011247032321989536, -0.043289750814437866, -0.00637835031375289, 0.029117735102772713, 0.05223453789949417, -0.017653688788414, 0.04944165050983429, 0.06616123020648956, -0.00002128500273101963, 0.007142620161175728, -0.010161957703530788, -0.006986935622990131, 0.0403081551194191, -0.010897921398282051, -0.02945741079747677, 0.025022760033607483, -0.007982373237609863, 0.025381306186318398, -0.03659059479832649, 0.008590959012508392, -0.02279599756002426, -0.05080035328865051, -0.03843994066119194, -0.00020610516367014498, -0.07019959390163422, -0.007128466852009296, -0.0069208876229822636, -0.05495194345712662, -0.08129566162824631, -0.030589662492275238, 0.11737674474716187, 0.0024249053094536066, -0.02577759325504303, -0.03353351727128029, 0.05815998837351799, -0.014539997093379498, -0.058499664068222046, 0.01064316462725401, -0.004007698502391577, 0.004005339927971363, 0.04634682834148407, -0.016370469704270363, -0.012690653093159199, -0.010265747085213661, 0.02885354310274124, -0.045969411730766296, -0.037666235119104385, -0.01505894586443901, 0.01734231971204281, 0.004911141004413366, -0.00404779938980937, -0.06525543332099915, -0.06197190284729004, -0.019474726170301437, -0.044422004371881485, -0.029117735102772713, 0.015615635551512241, -0.008397532626986504, -0.002868370618671179, -0.027381617575883865, 0.04378039389848709, -0.04298781603574753, -0.036383017897605896, 0.021909067407250404, 0.01387008186429739, 0.014926849864423275, 0.0037718128878623247, 0.015587329864501953, -0.0073266108520329, 0.037100110203027725, -0.04861133173108101, 0.0007560137892141938, 0.06816153973340988, 0.025815336033701897, -0.020776815712451935, 0.052045829594135284, 0.07035056501626968, -0.009963813237845898, 0.05257421359419823, -0.03294852003455162, 0.07352086901664734, 0.03015563264489174, -0.007826688699424267, -0.009737363085150719, -0.04842262342572212, -0.12779346108436584, -0.015936439856886864, 0.02253180555999279, -0.0743134468793869, -0.021380683407187462, -0.02706081233918667, 0.036118824034929276, 0.01941811479628086, -0.08665498346090317, -0.07993695884943008, 0.01183202862739563, 0.02619275264441967, 0.013634195551276207, -0.0017042744439095259, -0.005472549237310886, -0.016379905864596367, -0.011048887856304646, -0.017531028017401695, -0.054272592067718506, -0.053027115762233734, 0.01860666647553444, 0.04517683759331703, 0.03098595142364502, 0.011982996016740799, 0.02381502464413643, 0.04664876312017441, -0.0208145584911108, 0.019814401865005493, -0.006576494313776493, 0.03804365172982216, 0.0068595572374761105, -0.04185556620359421, -0.003877961542457342, 0.014662657864391804, 0.04502587020397186, 0.002298706443980336, -0.10945098102092743, -0.01416257955133915, -0.023569703102111816, 0.06374575942754745, -0.022701643407344818, -0.013502099551260471, -0.006147182546555996, 0.02100326679646969, -0.05740515515208244, 0.00112340587656945, 0.004488905426114798, 0.010860179550945759, 0.009973249398171902, 0.028476126492023468, -0.034137383103370667, 0.03404302895069122, 0.044572968035936356, -0.04144040495157242, -0.06687832623720169, -0.029079994186758995, -0.003151433542370796, 0.06083964928984642, -0.018814247101545334, 0.06484027206897736, -0.019276583567261696, -0.09125947207212448, 0.0048875524662435055, 0.007713463623076677, 0.02083342894911766, 0.03619430959224701, 0.007939914241433144, 0.029797086492180824, -0.006552905775606632, -0.024569857865571976, -0.025739852339029312, -0.019474726170301437, 0.019606823101639748, 0.03028772957623005, -0.00029972230549901724, -0.017663124948740005, -0.0006357120582833886, 0.004132718313485384, -0.016861112788319588, 0.042308464646339417, 0.03041982464492321, -0.0655951052904129, -0.024890663102269173, -0.007902172394096851, 0.026022914797067642, 0.05166841298341751, 0.021324070170521736, 0.08386209607124329, -0.043855875730514526, 0.002186660887673497, 0.005264969542622566, -0.03026885725557804, -0.003189175156876445, -0.016776192933321, 0.0518571212887764, -0.07635149359703064, -0.03932686895132065, 0.026645652949810028, -0.036401886492967606, 0.03460915759205818, 0.05053615942597389, -0.011973559856414795, 0.027532583102583885, 0.029778216034173965, -0.013011457398533821, -0.02804209664463997, 0.019493596628308296, 0.015879828482866287, 0.006873710546642542, 0.03730768710374832, 0.02139955386519432, -0.03168417140841484, -0.029268702492117882, 0.052310023456811905, 0.026664523407816887, 0.01647426001727581, 0.014606044627726078, -0.009015552699565887, -0.02507937140762806, -0.07687988132238388, 0.03827010095119476, 0.01669127494096756, -0.010086474008858204, -0.025720981881022453, -0.06955798715353012, 0.003859090618789196, 0.027664680033922195, 0.03323158249258995, 0.03559044003486633, -0.04868681728839874, 0.011520659551024437, 0.01655917800962925, 0.0004207611782476306, -0.05453678220510483, 0.01133195124566555, 0.053291305899620056, -0.06729348748922348, 0.015408056788146496, -0.023267770186066628, 0.010124215856194496, -0.00658593000844121, 0.017153611406683922, -0.02028617449104786, -0.05510290712118149, 0.030495308339595795, 0.04559199512004852, -0.040496863424777985, 0.06948250532150269, 0.005826377775520086, 0.03504318371415138, 0.034137383103370667, -0.011954689398407936, -0.0416291169822216, 0.01063372939825058, -0.053442273288965225, -0.036137696355581284, 0.0009105189819820225, -0.007623827084898949, 0.030042408034205437, 0.041893307119607925, -0.033722225576639175, 0.04257265850901604, -0.06208512559533119, -0.023173414170742035, -0.018625538796186447, -0.024249054491519928, 0.002590025309473276, -0.014200321398675442, 0.03932686895132065, 0.014445642940700054, -0.054838716983795166, -0.007836123928427696, 0.026834361255168915, -0.01436072401702404, 0.018993519246578217, -0.032155945897102356, -0.027381617575883865, 0.025532271713018417, 0.05023422837257385, -0.02113536186516285, 0.020890040323138237, -0.02324889786541462, 0.014332417398691177, 0.0011469944147393107, 0.020493753254413605, 0.06129255145788193, 0.02870257757604122, -0.043289750814437866, 0.0444597452878952, -0.05804676190018654, -0.0025263363495469093, -0.02153165079653263, 0.026966458186507225, 0.06023578345775604, -0.019908756017684937, 0.02026730217039585, 0.0022468117531389, -0.008322048932313919, -0.039364613592624664, -0.00647270493209362, -0.05102680251002312, 0.03876074403524399, -0.028344031423330307, -0.04913971573114395, 0.023550832644104958, 0.01610627770423889, -0.045441027730703354, -0.04238395020365715, -0.030382083728909492, 0.05589548498392105, -0.06548187881708145, -0.042459432035684586, 0.05819772928953171, 0.004507776349782944, -0.004031287506222725, 0.020757945254445076, -0.021380683407187462, -0.04087428003549576, -0.02381502464413643, -0.03447705879807472, -0.007619109470397234, 0.02224874310195446, 0.014190886169672012, 0.0015580253675580025, 0.008954222314059734, 0.035967856645584106, 0.06321737915277481, -0.004816786851733923, -0.025456789880990982, -0.005175333004444838, 0.021078750491142273, 0.0013327543856576085, 0.005878272466361523, -0.05363098159432411, -0.021890196949243546, 0.002844782080501318, -0.07955954223871231, -0.05363098159432411, -0.04449748620390892, -0.002917906502261758, -0.03815687820315361, 0.01090735662728548, -0.016238374635577202, 0.05510290712118149, -0.025834206491708755, 0.0068595572374761105, 0.019116180017590523, 0.05129099637269974, 0.03041982464492321, -0.013634195551276207, 0.012671781703829765, 0.01747441478073597, 0.037534140050411224, 0.013256778940558434, -0.034986574202775955, 0.00944486539810896, 0.0549141988158226, 0.012096220627427101, -0.047101665288209915, 0.02870257757604122, 0.008241848088800907, -0.004557312466204166, -0.039666544646024704, 0.014511690475046635, -0.033608999103307724, -0.0008739566546864808, -0.04144040495157242, 0.03306174650788307, -0.0033401420805603266, 0.02239971049129963, -0.0009010835201479495, 0.01416257955133915, -0.041213955730199814, -0.05027196928858757, 0.0374775268137455, 0.012860490940511227, -0.023607444018125534, -0.04045912250876427, -0.01458717416971922, 0.013039764016866684, -0.012983150780200958, -0.000041390576370758936, 0.0019059567712247372, 0.09752459824085236, 0.03855316713452339, -0.020588107407093048, 0.03917590528726578, 0.05434807389974594, -0.043025560677051544, 0.007491731084883213, -0.035439472645521164, -0.06287769973278046, 0.01887085847556591, -0.005335735622793436, 0.005194203928112984, 0.03489222005009651, -0.015540152788162231, -0.021173104643821716, 0.04732811450958252, 0.04566748067736626, -0.033024001866579056, -0.035967856645584106, -0.003038208233192563, 0.023324381560087204, -0.01224718801677227, -0.049630358815193176, -0.04011944681406021, 0.0053451708517968655, -0.029363056644797325, -0.028193064033985138, -0.010982840321958065, -0.01647426001727581, -0.012001866474747658 ]
21,049
tfields.core
__init__
null
def __init__(self, *args, **kwargs): if args and args[0] is None: # None key passed e.g. by copy. We do not change keys here. args = args[1:] if len(args) == 1 and issubclass(type(args[0]), (list, dict)): new_args = [] if issubclass(type(args[0]), list): # Maps([...]) iterator = args[0] elif issubclass(type(args[0]), dict): # Maps({}), Maps(Maps(...)) - includes Maps i.e. copy iterator = args[0].items() for entry in iterator: dimension = None if issubclass(type(entry), tuple): if np.issubdtype(type(entry[0]), np.integer): # Maps([(key, value), ...]), Maps({key: value, ...}) maps = self.to_map(entry[1], copy=True) dimension = entry[0] else: # Maps([(tensors, field1, field2), ...]) maps = self.to_map(*entry, copy=True) else: # Maps([mp, mp, ...]) maps = self.to_map(entry, copy=True) if dimension is None: dimension = dim(maps) new_args.append((dimension, maps)) args = (new_args,) super().__init__(*args, **kwargs)
(self, *args, **kwargs)
[ 0.008381779305636883, -0.014140889048576355, -0.029475679621100426, 0.0190535020083189, -0.024034617468714714, 0.02370189130306244, -0.01842719316482544, 0.04963500797748566, 0.07860181480646133, 0.01227174699306488, -0.019572164863348007, 0.08447346091270447, -0.029416963458061218, 0.039790209382772446, 0.020942216739058495, 0.014444257132709026, 0.02321258746087551, 0.03689353168010712, -0.010148167610168457, 0.012663190253078938, 0.02628541737794876, 0.01007966510951519, 0.055389225482940674, 0.1016186773777008, 0.012027095071971416, 0.014150675386190414, 0.01555987074971199, -0.0008061285479925573, 0.04689490795135498, -0.024445634335279465, -0.05949937924742699, 0.014825914986431599, 0.0019180721137672663, 0.08752672374248505, 0.03303781524300575, -0.045094266533851624, -0.039790209382772446, 0.02017890103161335, -0.0687374398112297, 0.020531199872493744, 0.04078838974237442, -0.06141745299100876, -0.023564886301755905, -0.005573173984885216, 0.06850257515907288, 0.04756036028265953, 0.0064588142558932304, -0.04337191581726074, -0.034055568277835846, -0.050300464034080505, -0.01625468209385872, -0.024015046656131744, 0.04235416278243065, 0.03133503720164299, -0.054684627801179886, 0.0767228826880455, 0.0010587318101897836, 0.039790209382772446, -0.037402406334877014, 0.0425107404589653, -0.06818941980600357, 0.017438799142837524, -0.013817948289215565, -0.02147066406905651, 0.011322497390210629, -0.0574638769030571, -0.07633144408464432, -0.028614504262804985, 0.02716616541147232, 0.008861297741532326, -0.004200675990432501, 0.00333950063213706, -0.009135307744145393, 0.015266288071870804, 0.029123380780220032, 0.06067370995879173, -0.043528493493795395, 0.01799660548567772, 0.05672013387084007, 0.018984999507665634, -0.03162861987948418, -0.01665591262280941, -0.06317894905805588, -0.029084237292408943, -0.0065126377157866955, 0.016489548608660698, -0.022938577458262444, 0.029319101944565773, -0.016058960929512978, -0.004185996949672699, -0.0676022544503212, 0.026911726221442223, -0.009037447161972523, 0.021314088255167007, -0.028399210423231125, -0.015217358246445656, -0.010157953947782516, -0.048538967967033386, -0.012672976590692997, 0.02653985470533371, 0.018534839153289795, -0.04004465043544769, 0.014757412485778332, 0.008709613233804703, -0.010715760290622711, -0.03352711722254753, 0.004773161839693785, -0.06337466835975647, -0.05327543243765831, 0.021979540586471558, -0.029240814968943596, 0.0433327741920948, -0.017468156293034554, 0.05640697851777077, -0.03683481365442276, 0.01842719316482544, -0.0005626997444778681, -0.03203963488340378, -0.0007045979145914316, 0.012330464087426662, -0.028986375778913498, 0.05593724548816681, 0.008523677475750446, 0.03223535418510437, 0.00952675100415945, 0.0019694489892572165, 0.024621782824397087, -0.009898622520267963, -0.01512928307056427, -0.019337298348546028, 0.03920304775238037, -0.0526491217315197, -0.04059267044067383, 0.04258903115987778, 0.07335647195577621, -0.03773513436317444, 0.006967690773308277, -0.02959311380982399, -0.05503692850470543, 0.038694169372320175, 0.054058317095041275, -0.015510940924286842, 0.04705148562788963, 0.022684138268232346, -0.06771969050168991, -0.03509289026260376, 0.03419257327914238, 0.008034373633563519, 0.014845486730337143, -0.02628541737794876, -0.06114344298839569, 0.031178457662463188, 0.037832994014024734, 0.05033960938453674, -0.04450710117816925, -0.06415755301713943, 0.02170553058385849, -0.05155308172106743, 0.04274560883641243, 0.017389867454767227, -0.022879861295223236, 0.010236241854727268, -0.008807473815977573, -0.07319989800453186, -0.027714185416698456, 0.0027523357421159744, 0.003302802797406912, -0.09801740199327469, 0.01820211298763752, -0.015099924989044666, 0.028164345771074295, -0.044154804199934006, 0.06180889531970024, 0.01927858218550682, 0.006189696956425905, 0.04184528812766075, -0.025052370503544807, 0.010089450515806675, 0.007217235863208771, -0.0010238689137622714, 0.017585590481758118, -0.012800196185708046, -0.057972751557826996, -0.020903071388602257, 0.0033884309232234955, 0.028379639610648155, 0.0011357972398400307, 0.040670957416296005, 0.030160706490278244, 0.04125812277197838, 0.05233597010374069, 0.023721463978290558, -0.007907154969871044, 0.013808161951601505, 0.025385098531842232, 0.02409333549439907, -0.033213961869478226, 0.011811801232397556, -0.030884874984622, 0.13457819819450378, -0.08110705018043518, -0.010167739354074001, 0.008200736716389656, -0.0026422422379255295, -0.01816296949982643, -0.006341381464153528, 0.03151118382811546, 0.026892153546214104, 0.015696875751018524, -0.023330019786953926, 0.015364149585366249, -0.064940445125103, 0.02763589657843113, -0.023153871297836304, 0.017487728968262672, -0.05351029708981514, -0.008743864484131336, -0.025698252022266388, -0.004995794966816902, -0.02693129889667034, 0.11766785383224487, 0.020961787551641464, -0.06474471837282181, 0.013808161951601505, -0.038674596697092056, -0.01800639182329178, 0.019572164863348007, 0.0009272312745451927, -0.008763437159359455, 0.03184391185641289, -0.030082417652010918, -0.042001865804195404, -0.01335800252854824, -0.019650453701615334, 0.040240369737148285, -0.0416887104511261, 0.029769262298941612, -0.058873072266578674, 0.015638159587979317, -0.02477836050093174, 0.005328522063791752, -0.004014740232378244, -0.023193014785647392, -0.003848376916721463, -0.03699139133095741, -0.02561996318399906, -0.006341381464153528, 0.060164835304021835, 0.002012263284996152, 0.03178519383072853, -0.0042740716598927975, 0.014894417487084866, -0.008352421224117279, 0.04399822652339935, 0.00455052824690938, -0.025541674345731735, -0.002661814447492361, -0.06615391373634338, -0.021411947906017303, -0.0438416488468647, 0.017360510304570198, -0.008283918723464012, 0.02150980941951275, 0.05585895851254463, 0.0063511673361063, -0.0072465939447283745, 0.04071010276675224, 0.020100614055991173, -0.0013639351818710566, 0.014043028466403484, 0.05276655778288841, 0.05057447403669357, 0.030610864982008934, 0.022879861295223236, -0.019904891029000282, -0.006708359345793724, 0.03616936132311821, -0.03158947452902794, -0.025482958182692528, 0.02693129889667034, 0.03638465330004692, -0.019904891029000282, -0.043724216520786285, -0.03667823597788811, 0.018808851018548012, -0.011772656813263893, -0.008283918723464012, 0.03812657669186592, 0.005617211107164621, -0.049243565648794174, 0.04756036028265953, 0.02873193845152855, -0.007026406936347485, 0.007525497116148472, -0.028555788099765778, -0.029025521129369736, -0.06685851514339447, 0.0337032675743103, 0.01097998395562172, -0.015442437492311, 0.01889692433178425, -0.05245340242981911, 0.05354944244027138, 0.04184528812766075, 0.027890333905816078, -0.017243077978491783, -0.004337680991739035, 0.016381902620196342, 0.02150980941951275, 0.0601256899535656, 0.022723283618688583, 0.07045979052782059, -0.024876222014427185, 0.029867123812437057, -0.01534457691013813, 0.00668389443308115, 0.016489548608660698, -0.004584779497236013, 0.018025964498519897, 0.07813207805156708, -0.05041789636015892, -0.003574366681277752, -0.01754644513130188, -0.008905335329473019, -0.009443569928407669, 0.013279713690280914, 0.06004740297794342, -0.03924218937754631, 0.08024587482213974, -0.022096974775195122, 0.0033248215913772583, 0.008499212563037872, 0.0009914524853229523, 0.008802580647170544, -0.06079114228487015, -0.03712839633226395, -0.012643618509173393, 0.01706692762672901, -0.03129589185118675, -0.05065276101231575, 0.03262680023908615, -0.010422177612781525, -0.03920304775238037, -0.005225767847150564, -0.00006628541450481862, 0.002157831098884344, 0.01751708798110485, -0.045015979558229446, 0.0205899178981781, -0.003224514191970229, -0.00007412192644551396, -0.03049343265593052, 0.008102876134216785, 0.008807473815977573, 0.04736463725566864, 0.010392819531261921, -0.006184804253280163, -0.04360678419470787, -0.025306809693574905, -0.021157510578632355, 0.1162586584687233, -0.024152051657438278, -0.006630070973187685, -0.05503692850470543, 0.03773513436317444, -0.011606293730437756, 0.021177081391215324, -0.0438416488468647, 0.008044159971177578, 0.004506491124629974, 0.03337053954601288, -0.020120184868574142, -0.05284484475851059, 0.04337191581726074, -0.006223948206752539, -0.003630636492744088, -0.04756036028265953, 0.06368782371282578, -0.09151944518089294, -0.025287237018346786, -0.0008550589554943144, -0.0390268974006176, 0.0027645681984722614, 0.002732763532549143, -0.01545222382992506, -0.022410128265619278, 0.01861312799155712, 0.005905900616198778, 0.0319613441824913, 0.0000123663967315224, -0.04912613332271576, -0.005362773314118385, 0.031452469527721405, -0.023838896304368973, 0.0011602623853832483, 0.0133677888661623, 0.00930656399577856, 0.03348797559738159, -0.019014358520507812, -0.040670957416296005, -0.03027813881635666, -0.11414486169815063, 0.0012844232842326164, 0.06086943298578262, 0.03413385525345802, -0.03986850008368492, 0.001196348574012518, 0.021803392097353935, 0.041336413472890854, 0.031452469527721405, 0.06302236765623093, 0.010931054130196571, 0.0047217849642038345, -0.0055487086065113544, 0.0006990932743065059, -0.01664612628519535, 0.0026569212786853313, -0.049869876354932785, 0.0022079849150031805, 0.03243107721209526, 0.03973149508237839, 0.06482300907373428, 0.021177081391215324, 0.0010654596844688058, 0.04560314491391182, -0.029338674619793892, -0.033253107219934464, -0.014659550972282887, 0.03021942265331745, 0.02015933021903038, -0.060595422983169556, -0.03855716437101364, -0.008646003901958466, -0.04756036028265953, -0.005406810436397791, 0.03577791526913643, -0.017879173159599304, -0.0073004174046218395, 0.026167985051870346, 0.006532209925353527, -0.010216670110821724, 0.0028183916583657265, 0.03996635973453522, -0.026441995054483414, 0.024386916309595108, -0.014659550972282887, -0.01931772567331791, 0.030591294169425964, 0.01492377556860447, -0.01799660548567772, 0.036541230976581573, 0.03313567489385605, 0.032117921859025955, -0.04403737187385559, 0.07218214124441147, -0.026011407375335693, -0.08353400230407715, -0.0025761860888451338, 0.01778131164610386, 0.028653649613261223, -0.008577501401305199, -0.03818529471755028, 0.0022667013108730316, -0.0337032675743103, -0.0046679615043103695, 0.0446636788547039, 0.05652441084384918, 0.026579000055789948, -0.04270646348595619, -0.029749689623713493, 0.049165278673172, 0.02785119041800499, 0.02303643710911274, -0.03996635973453522, -0.017468156293034554, 0.003581706201657653, 0.03023899532854557, -0.01799660548567772, -0.054723773151636124, -0.024034617468714714, -0.0009535314165987074, 0.018750132992863655, 0.07644887268543243, -0.02520894818007946, -0.030415143817663193, 0.01194880623370409, -0.006923653185367584, -0.022723283618688583, -0.018945856019854546, 0.07233872264623642, -0.06313980370759964, 0.03751983866095543, -0.005509564187377691, 0.04106239974498749, 0.03021942265331745, 0.0012917629210278392, 0.01751708798110485, 0.04736463725566864, 0.01623511128127575, -0.04763864725828171, 0.0012159207835793495, -0.02129451557993889, -0.024582639336586, 0.021431520581245422, -0.014551904052495956, -0.004875915590673685, -0.034721020609140396, 0.030571721494197845, -0.0034838453866541386, -0.010882123373448849, -0.049243565648794174, -0.04446795955300331, -0.0004256945685483515, 0.01272190734744072, 0.004198229406028986, 0.005764002446085215, -0.04642517492175102, -0.00018868790357373655, -0.058638203889131546, -0.0008727962267585099, 0.047442927956581116, 0.04345020651817322, 0.0001946512929862365, -0.0035132034681737423, -0.048343248665332794, 0.004151745233684778, 0.05437147244811058, -0.031021881848573685, 0.07018578052520752, -0.010823407210409641, -0.04818667098879814, -0.0587947815656662, -0.041532132774591446, 0.045524854212999344, -0.004396397620439529, 0.04912613332271576, 0.06771969050168991, -0.023799752816557884, 0.036286793649196625, 0.0508093386888504, 0.040866680443286896, 0.04149298742413521, 0.046151164919137955, -0.047912660986185074, -0.0017199040157720447, 0.02677472122013569, -0.003253872273489833, 0.005993975326418877, 0.00023884157417342067, -0.003960916772484779, -0.03795042634010315, -0.025091515854001045, 0.015188000164926052, 0.05354944244027138, -0.025698252022266388, 0.0013162280665710568, -0.00636095367372036, -0.09512072056531906, -0.002842857036739588, 0.012839339673519135, 0.029886694625020027, 0.029690973460674286, 0.03661952167749405, 0.03066958300769329, -0.04705148562788963, 0.010422177612781525, -0.00602822657674551, 0.05550665780901909, -0.06584075838327408, 0.03258765488862991, 0.003464273177087307, 0.019797245040535927, -0.02937781997025013, -0.027009587734937668, -0.008939586579799652, -0.018916497007012367, -0.011146347969770432, -0.005587853025645018, -0.004058777820318937, -0.09120628982782364, -0.03924218937754631, 0.050965916365385056, 0.005377452354878187, 0.013514579273760319, 0.01239896658807993, 0.009766509756445885, -0.04904784634709358, 0.005519350524991751, 0.0015890151262283325, -0.008425816893577576, 0.017487728968262672, 0.013397146947681904, -0.03360540792346001, 0.027949051931500435, -0.012350035831332207, -0.04094496741890907, 0.0028673221822828054, -0.05147479474544525, -0.051161639392375946, -0.028614504262804985, -0.02787076309323311, 0.02585482969880104, -0.02481750398874283, 0.04497683420777321, -0.0053040566854178905, -0.06580162048339844, -0.00025948407710529864, 0.044193949550390244, 0.020863927900791168, -0.0028257311787456274, -0.00762335816398263, -0.004665514919906855, 0.06584075838327408, -0.010784262791275978, 0.0035963852424174547, -0.07527454197406769, -0.07503967732191086, 0.03382069990038872, 0.06008654460310936, -0.009140200912952423, -0.0243282001465559, -0.019229652360081673, -0.021842535585165024, 0.009923087432980537, -0.045681431889534, -0.02671600505709648, 0.010803834535181522, -0.03712839633226395, 0.015080353245139122, -0.027440175414085388, 0.04254988580942154, -0.024171624332666397, 0.024191195145249367, -0.06787626445293427, 0.006424563005566597, -0.013778803870081902, -0.010060092434287071, 0.028594933450222015, -0.01909264735877514, 0.0943378359079361, 0.0021407054737210274, -0.03685438632965088, 0.0030385786667466164, 0.00986926443874836, -0.01152800489217043, -0.07691860944032669, 0.028653649613261223, 0.003461826592683792, 0.07112524658441544, 0.02123579941689968, 0.01862291432917118, 0.04607287421822548, -0.007990336045622826, 0.06983348727226257, 0.003748069517314434, 0.03219621255993843, -0.011870518326759338, -0.03661952167749405, 0.007119374815374613, -0.008939586579799652, -0.02060948871076107, -0.01687120646238327, -0.018045535311102867, -0.04983073100447655, 0.013005703687667847, -0.033253107219934464, 0.016068747267127037, -0.02149023674428463, 0.0443505235016346, 0.06771969050168991, -0.03969234973192215, -0.050965916365385056, -0.024073762819170952, -0.0190535020083189, -0.022625422105193138, -0.021862108260393143, 0.019670026376843452, 0.022547133266925812, 0.03614978864789009, -0.02346702478826046, -0.0075988927856087685, 0.014307252131402493, -0.06435327976942062, 0.026833437383174896, -0.06685851514339447, 0.010598327033221722, 0.008034373633563519, -0.0004253887746017426, -0.00919891707599163, -0.041532132774591446, 0.05793360620737076, -0.04376336187124252, 0.07386534661054611, 0.001653847866691649, -0.07503967732191086, -0.01691034995019436, -0.054684627801179886, -0.08024587482213974, 0.04904784634709358, -0.016714628785848618, 0.02522852085530758, -0.006659429054707289, -0.024856649339199066, 0.018720775842666626, 0.0025321487337350845, 0.01729200780391693, -0.08384715020656586, 0.016401473432779312, 0.10013119131326675, 0.007168305106461048, -0.01623511128127575, 0.06603648513555527, 0.08016758412122726, -0.05852077156305313, -0.001955993240699172, 0.006321809254586697, 0.04756036028265953, 0.03996635973453522, -0.02524809166789055, -0.02084435522556305, 0.020237619057297707, -0.011449716053903103, 0.05546751618385315, 0.07312160730361938, 0.002727870363742113, -0.008274132385849953, 0.007642930373549461, -0.04442881420254707, -0.008469854481518269, -0.0359540656208992, -0.00985458493232727, -0.019572164863348007, -0.04399822652339935, -0.021803392097353935, -0.0478343702852726, -0.03066958300769329, -0.005264912266284227, -0.0027131913229823112, 0.017409440129995346, 0.05362773314118385, -0.02501322701573372, 0.002007370116189122, 0.00984969176352024, 0.10553311556577682, -0.010559182614088058, -0.03331182524561882, 0.05002645403146744, 0.027949051931500435, 0.011214850470423698, -0.032352786511182785, 0.062122050672769547, 0.021118365228176117, -0.056915853172540665, 0.0022434594575315714, 0.014424685388803482, -0.03795042634010315, -0.0010887016542255878, -0.05260998010635376, 0.002270371187478304, -0.05503692850470543, -0.032763805240392685, -0.035660482943058014, 0.02172510325908661, -0.013289500027894974, 0.029710546135902405, 0.03151118382811546, 0.06270921230316162, -0.0004941971856169403 ]
21,050
sortedcontainers.sorteddict
__ior__
null
def __ior__(self, other): self._update(other) return self
(self, other)
[ -0.02207225188612938, -0.020663384348154068, -0.009476308710873127, 0.06296294182538986, -0.06594839692115784, -0.07144968956708908, -0.022977951914072037, 0.03161564841866493, 0.04411096125841141, -0.004052589647471905, 0.02821088768541813, -0.02406814694404602, 0.015271113254129887, 0.10036501288414001, -0.05501290783286095, 0.023648841306567192, -0.006167986895889044, 0.04307107999920845, -0.011220620945096016, -0.015120163559913635, -0.0184159055352211, -0.029083043336868286, 0.011648312211036682, 0.010524572804570198, -0.0034487894736230373, 0.0865446999669075, -0.06638447940349579, 0.00870478618890047, 0.004914262797683477, -0.0005257045268081129, 0.02879791520535946, -0.04652616009116173, 0.016747070476412773, -0.016352921724319458, 0.08386114239692688, -0.0041364505887031555, -0.048471737653017044, 0.09305232018232346, 0.008520292118191719, 0.05628759786486626, 0.002007425995543599, -0.061990153044462204, 0.016814159229397774, -0.013283604755997658, 0.014575066044926643, 0.013099109753966331, -0.017090899869799614, 0.031095711514353752, 0.07695098221302032, -0.02386688068509102, -0.012470151297748089, -0.010633592493832111, 0.03438306599855423, 0.007354621775448322, -0.05427493155002594, 0.07131551206111908, 0.023263080045580864, 0.05689139664173126, 0.0021510382648557425, 0.017526978626847267, -0.013711296021938324, -0.051054660230875015, -0.0012442896841093898, -0.048572372645139694, -0.016663208603858948, -0.030408049002289772, -0.07607882469892502, 0.018533311784267426, 0.020294396206736565, 0.07862820476293564, -0.02817734330892563, 0.02442036382853985, -0.015212411060929298, 0.030558999627828598, -0.026265308260917664, 0.048773638904094696, -0.03602674603462219, 0.06729017943143845, 0.05269834026694298, -0.0617217980325222, 0.07527375966310501, 0.01572396419942379, -0.03582547977566719, 0.004432061221450567, -0.05269834026694298, -0.030290644615888596, -0.01658773422241211, -0.06403636932373047, 0.014642154797911644, -0.09191180765628815, -0.06074900925159454, 0.01958996243774891, 0.01350164320319891, -0.007547502405941486, 0.053570497781038284, 0.04793502762913704, -0.03535585477948189, -0.03595965728163719, -0.0007521295920014381, -0.005455167032778263, -0.014113829471170902, 0.029602982103824615, 0.003740206826478243, 0.009610486216843128, 0.025544103235006332, 0.0364963673055172, -0.013803543522953987, -0.030911216512322426, -0.043809060007333755, -0.012419834733009338, -0.0551806315779686, 0.0433729812502861, -0.0551806315779686, 0.028009621426463127, -0.025191886350512505, -0.005639661569148302, -0.011832807213068008, -0.041159048676490784, 0.05950786545872688, 0.033678632229566574, -0.006130249239504337, 0.05454328656196594, -0.009644031524658203, -0.00019143926328979433, 0.016218744218349457, 0.002337629208341241, -0.0018554277485236526, -0.014935668557882309, -0.00522454921156168, -0.08325733989477158, -0.03820713609457016, -0.021753579378128052, -0.0182481836527586, 0.0277244932949543, 0.04551982507109642, -0.038777392357587814, -0.008360955864191055, -0.02452099695801735, 0.01672191172838211, 0.03911283612251282, 0.007170127239078283, -0.0017023811815306544, 0.08916116505861282, 0.01727539487183094, -0.03252134844660759, 0.031364064663648605, -0.01958996243774891, 0.03954891487956047, 0.04451349377632141, -0.01439895760267973, -0.01734248362481594, 0.019086794927716255, 0.08218391984701157, 0.024705491960048676, -0.03010614961385727, 0.01769470050930977, -0.0554489865899086, -0.045016661286354065, 0.020059585571289062, 0.027942532673478127, 0.020428573712706566, -0.026198219507932663, -0.001990653807297349, -0.01907002367079258, -0.004889104515314102, -0.014071899466216564, 0.02093174122273922, -0.0308273546397686, 0.0050190892070531845, 0.012587557546794415, 0.002027343027293682, -0.11364861577749252, -0.010692295618355274, 0.019841546192765236, -0.04816984012722969, 0.028127025812864304, -0.01005495060235262, 0.02665106952190399, -0.019338378682732582, 0.0033188045490533113, 0.06521042436361313, -0.004717188887298107, -0.042567916214466095, -0.025560876354575157, 0.017090899869799614, -0.012461765669286251, -0.0030735107138752937, 0.022156113758683205, 0.05185972899198532, 0.025711825117468834, 0.024017831310629845, -0.03304129093885422, -0.01673029735684395, -0.000434505520388484, -0.014851807616651058, -0.002572440542280674, -0.03575839102268219, -0.0004751257656607777, -0.005308410152792931, 0.10371945798397064, -0.03797232359647751, 0.03317546844482422, -0.030491910874843597, 0.03010614961385727, 0.018851984292268753, -0.004237084183841944, -0.0022307063918560743, 0.006365060340613127, 0.027087148278951645, -0.04032043740153313, 0.03589256852865219, -0.0077236108481884, -0.0278251264244318, -0.009493080899119377, 0.013333921320736408, -0.007459448184818029, -0.018952617421746254, -0.0016164234839379787, 0.01475956104695797, 0.03907928988337517, 0.046190716326236725, 0.0011279323371127248, -0.032638754695653915, -0.024822898209095, -0.00506101967766881, 0.029301082715392113, -0.03971663489937782, -0.048471737653017044, -0.006700505036860704, -0.015405291691422462, 0.043708425015211105, 0.01101935375481844, -0.004687837790697813, -0.029837792739272118, 0.007119810674339533, 0.014340254478156567, -0.011849579401314259, -0.0032559088431298733, -0.1359892189502716, 0.033326417207717896, -0.014491205103695393, -0.005627082660794258, 0.03790523484349251, 0.01623551733791828, -0.04756603762507439, -0.05776355415582657, -0.005677399225533009, 0.021703263744711876, 0.0006368205067701638, 0.0011426080018281937, -0.018885528668761253, -0.03693244606256485, -0.051054660230875015, 0.0153801329433918, -0.0019487232202664018, -0.010667136870324612, 0.009912386536598206, -0.057260386645793915, 0.006079932674765587, 0.0014046741416677833, 0.013057179749011993, 0.021820668131113052, -0.020361484959721565, -0.03562421351671219, -0.03981726989150047, 0.007413324899971485, -0.0033754108007997274, 0.03210204467177391, -0.004566239193081856, -0.010096881538629532, 0.06510978937149048, -0.06064837798476219, 0.009107319638133049, 0.028680508956313133, -0.014541521668434143, 0.03169951215386391, -0.0019057444296777248, 0.0031447927467525005, -0.04545273631811142, -0.042702093720436096, 0.04454703629016876, 0.018164323642849922, -0.0337289497256279, -0.04048815742135048, -0.04676097258925438, 0.0021824862342327833, -0.010247831232845783, 0.01242822129279375, -0.030156465247273445, -0.0431717149913311, 0.07735351473093033, 0.03148147091269493, 0.007903912104666233, 0.05759583041071892, 0.054945819079875946, 0.016503872349858284, -0.018952617421746254, 0.03242071717977524, 0.05444265156984329, -0.01972413994371891, 0.01962350681424141, -0.024806125089526176, -0.05769646540284157, 0.011488975957036018, 0.017778562381863594, -0.05387239530682564, 0.04662679508328438, 0.045016661286354065, -0.0014078188687562943, 0.02814379893243313, 0.04655970633029938, 0.038978658616542816, -0.05169200524687767, 0.06235914304852486, 0.01962350681424141, -0.01603424921631813, 0.02344757504761219, -0.013241673819720745, -0.013728068210184574, 0.05752874165773392, -0.026802020147442818, -0.022223202511668205, -0.027187781408429146, -0.03840840235352516, -0.01962350681424141, -0.043674882501363754, -0.017040584236383438, 0.06313066929578781, -0.006394411902874708, 0.03602674603462219, -0.059843309223651886, -0.0005018564988858998, 0.07010791450738907, 0.02017698995769024, -0.041125502437353134, 0.011606382206082344, 0.017879195511341095, -0.013342306949198246, 0.029150132089853287, 0.0012275173794478178, -0.03599319979548454, 0.018147550523281097, -0.04941098392009735, -0.02230706252157688, 0.0036186082288622856, -0.047498948872089386, -0.012562398798763752, 0.003750689560547471, 0.05404011905193329, -0.04437931627035141, -0.02955266647040844, 0.024604858830571175, 0.013342306949198246, -0.026835564523935318, -0.004188864026218653, 0.0023124709259718657, -0.06936993449926376, 0.0066879261285066605, -0.0038198749534785748, -0.02948557585477829, 0.035020411014556885, -0.0016090855933725834, -0.030810583382844925, -0.005522256251424551, -0.06997373700141907, 0.01727539487183094, -0.07165095955133438, 0.004209829028695822, -0.06628384441137314, -0.028395382687449455, -0.00620572455227375, -0.03203495591878891, 0.00645730784162879, 0.03461787849664688, 0.016193585470318794, 0.03857612609863281, -0.08842318505048752, 0.0365634560585022, -0.005174232181161642, -0.017090899869799614, 0.07648135721683502, 0.016638049855828285, -0.03448370099067688, 0.027674175798892975, 0.00010888844553846866, -0.004654293414205313, 0.03790523484349251, -0.016436783596873283, 0.06809524446725845, 0.06487497687339783, -0.004880718421190977, -0.028261203318834305, 0.007568467874079943, -0.018046917393803596, -0.049779973924160004, 0.032504577189683914, -0.008956369943916798, -0.00917440839111805, -0.020059585571289062, -0.05625405162572861, 0.021401362493634224, 0.043641336262226105, 0.014977599494159222, 0.027456136420369148, 0.02324630878865719, 0.010264603421092033, 0.03354445472359657, 0.06608258187770844, -0.018919073045253754, -0.004587204195559025, -0.07513958215713501, -0.027942532673478127, -0.012512082234025002, -0.0037360137794166803, -0.0001664119481574744, -0.074200339615345, 0.09600423276424408, -0.045083750039339066, 0.06621675938367844, 0.05528126284480095, 0.01779533363878727, 0.03134729340672493, -0.04320525750517845, 0.009308586828410625, -0.031045394018292427, -0.03344382345676422, 0.00026966596487909555, 0.003274777438491583, 0.004054686054587364, 0.0306931771337986, -0.0016918984474614263, 0.02083110623061657, 0.04780085012316704, 0.025913091376423836, 0.027456136420369148, -0.03404762223362923, 0.01734248362481594, -0.04726414009928703, 0.059843309223651886, 0.020495662465691566, 0.05507999658584595, -0.014138988219201565, -0.01054973155260086, -0.019891861826181412, -0.06235914304852486, -0.03416502848267555, 0.006461500655859709, 0.057260386645793915, 0.02586277574300766, 0.004079844336956739, 0.07084589451551437, 0.016461942344903946, 0.0003302032419014722, 0.04280272498726845, -0.027640631422400475, -0.02093174122273922, -0.0009895614348351955, -0.058400899171829224, 0.028814688324928284, 0.04716350510716438, -0.03324255719780922, 0.011346411891281605, -0.0016824641497805715, 0.015338202938437462, -0.03549003601074219, 0.043708425015211105, 0.04219892621040344, -0.06457307934761047, -0.013367465697228909, 0.019740913063287735, 0.04179639369249344, -0.08513583242893219, -0.006767593789845705, -0.059574954211711884, -0.009912386536598206, -0.014239621348679066, 0.033225782215595245, -0.008973142132163048, -0.043674882501363754, -0.05189327150583267, -0.025644736364483833, -0.006625030189752579, 0.005912210326641798, -0.0248564425855875, 0.026818793267011642, -0.04102487117052078, 0.01675545610487461, 0.008830578066408634, 0.036529913544654846, 0.03817358985543251, 0.007287533022463322, -0.001212841714732349, -0.06306357681751251, 0.02358175255358219, -0.009979475289583206, -0.0039309910498559475, -0.017543749883770943, -0.020026039332151413, -0.0006383929285220802, -0.0553818978369236, -0.02903272584080696, -0.04696223884820938, -0.035255223512649536, -0.010231059044599533, 0.013342306949198246, 0.03475205600261688, -0.02961975522339344, -0.03961600363254547, -0.012579170987010002, 0.04696223884820938, 0.07158386707305908, -0.034953322261571884, -0.027774808928370476, -0.027875442057847977, 0.02720455452799797, -0.033913444727659225, -0.039783723652362823, 0.05048440769314766, -0.013568732887506485, -0.0685313269495964, 0.03161564841866493, -0.0004856084124185145, -0.004237084183841944, -0.044748302549123764, -0.011874737218022346, -0.03252134844660759, 0.010834859684109688, -0.010725839994847775, 0.018533311784267426, -0.06333193182945251, -0.0611850880086422, -0.05279897525906563, -0.037502702325582504, 0.020361484959721565, -0.02210579626262188, 0.06027938798069954, -0.032571665942668915, 0.02661752514541149, -0.03585902228951454, 0.0033586386125534773, 0.01210116222500801, 0.04149449244141579, 0.007794892881065607, 0.0011237392900511622, -0.010717453435063362, 0.011245778761804104, -0.0855383649468422, -0.039917901158332825, 0.013870632275938988, -0.002482289681211114, -0.07956744730472565, -0.013409396633505821, 0.03265552967786789, 0.07748769223690033, -0.018181094899773598, 0.006549554876983166, -0.024252641946077347, -0.010885176248848438, 0.04273563623428345, 0.06054774299263954, 0.02603049762547016, 0.013820315711200237, 0.043507158756256104, -0.0076397499069571495, 0.008264515548944473, 0.03673117980360985, 0.030676405876874924, 0.03481914475560188, 0.04796857014298439, 0.03777105733752251, 0.013644207268953323, 0.029737159609794617, -0.08090922981500626, 0.011849579401314259, 0.000274121091933921, 0.022642508149147034, -0.012788823805749416, 0.03475205600261688, -0.022424468770623207, -0.021049145609140396, -0.05883697420358658, 0.014206076972186565, 0.03602674603462219, -0.05534835159778595, -0.0049226488918066025, -0.01903647929430008, -0.031296975910663605, 0.10432326048612595, 0.019489329308271408, -0.008578994311392307, -0.03968309238553047, -0.04146094620227814, -0.039884358644485474, -0.04313816875219345, 0.0008443768601864576, -0.0011876834323629737, -0.006167986895889044, -0.05786418542265892, -0.000996899325400591, 0.015212411060929298, 0.0493103489279747, -0.020076356828212738, -0.017157988622784615, -0.0154472216963768, -0.0013354886323213577, -0.0004481329524423927, -0.03305806219577789, -0.01288107130676508, -0.006188951898366213, 0.016612891107797623, 0.05887052044272423, 0.0370330810546875, 0.042333103716373444, -0.00452430872246623, 0.006256041117012501, -0.03522167727351189, -0.031632423400878906, 0.01242822129279375, -0.00674243550747633, 0.027607087045907974, -0.04162866994738579, -0.007124003954231739, -0.02935139834880829, 0.018633944913744926, -0.07815857976675034, -0.03158210590481758, 0.04072296991944313, -0.033192239701747894, 0.05279897525906563, 0.05048440769314766, 0.004893297329545021, -0.04085714742541313, 0.026684613898396492, -0.021904530003666878, -0.005455167032778263, -0.009149250574409962, 0.007157548330724239, 0.04109195992350578, -0.012696576304733753, 0.0556502528488636, 0.001382660586386919, -0.014977599494159222, 0.004440447315573692, -0.001173007651232183, -0.07205349206924438, -0.021854212507605553, -0.04551982507109642, 0.0035934499464929104, -0.062057241797447205, -0.0551806315779686, -0.02690265327692032, -0.003998079802840948, 0.002084997482597828, 0.0066124508157372475, -0.04521792754530907, -0.02634917013347149, 0.012738507241010666, 0.00740493880584836, 0.05806545168161392, 0.03864321485161781, 0.015606557950377464, -0.00030399663955904543, 0.062325600534677505, -0.003350252518430352, 0.06054774299263954, 0.03134729340672493, 0.012126320973038673, -0.027439365163445473, 0.003341866424307227, 0.030642859637737274, 0.013996424153447151, -0.015782667323946953, -0.058602165430784225, 0.015095004811882973, 0.014717630110681057, -0.051323018968105316, 0.014474432915449142, -0.018013373017311096, 0.01451636292040348, -0.0038031027652323246, 0.006197338458150625, 0.020294396206736565, -0.024051375687122345, -0.03337673470377922, 0.013006863184273243, 0.06742435693740845, 0.017015425488352776, 0.051323018968105316, 0.029569437727332115, -0.08332442492246628, -0.003148985793814063, -0.06970538198947906, 0.013476485386490822, 0.008872509002685547, 0.027422592043876648, 0.013065565377473831, -0.04327234998345375, -0.08540418744087219, -0.020579524338245392, 0.030357733368873596, 0.07527375966310501, 0.03522167727351189, 0.016973495483398438, -0.022977951914072037, -0.021636174991726875, 0.007245602551847696, -0.022424468770623207, 0.02076401747763157, 0.07661553472280502, -0.03535585477948189, -0.007593626156449318, 0.05316796153783798, -0.01923774555325508, -0.05645531788468361, 0.10660427808761597, 0.03854257985949516, 0.0070778802037239075, -0.0029372363351285458, -0.03166596591472626, 0.01346809882670641, -0.004939421080052853, 0.00278838281519711, 0.06568004190921783, -0.04659324884414673, 0.012721735052764416, 0.01200052909553051, 0.03416502848267555, -0.02348111942410469, -0.031565334647893906, -0.009878842160105705, 0.0022537680342793465, 0.06272812932729721, -0.0009366241283714771, -0.040119171142578125, -0.00237955991178751, -0.026248537003993988, -0.048505283892154694, 0.014289937913417816, 0.033091604709625244, 0.08124466985464096, -0.011816035024821758, -0.006096704863011837, 0.015254341065883636, 0.01286429911851883, 0.028009621426463127, -0.010750997811555862, -0.022122569382190704, -0.008855736814439297, 0.007119810674339533, 0.043674882501363754, 0.010776156559586525, 0.020076356828212738, 0.06467371433973312, 0.025661509484052658, 0.062090788036584854, 0.00914086401462555, -0.0001296571863349527, 0.04447994753718376, 0.0030567385256290436, -0.038978658616542816, -0.019942179322242737, 0.013996424153447151, 0.028630193322896957, -0.00042978834244422615, 0.024906758219003677, 0.05159137398004532, 0.02089819684624672, 0.033678632229566574 ]
21,051
sortedcontainers.sorteddict
__iter__
Return an iterator over the keys of the sorted dict. ``sd.__iter__()`` <==> ``iter(sd)`` Iterating the sorted dict while adding or deleting items may raise a :exc:`RuntimeError` or fail to iterate over all keys.
def __iter__(self): """Return an iterator over the keys of the sorted dict. ``sd.__iter__()`` <==> ``iter(sd)`` Iterating the sorted dict while adding or deleting items may raise a :exc:`RuntimeError` or fail to iterate over all keys. """ return self._list_iter()
(self)
[ 0.007791814394295216, 0.0030501997098326683, -0.10066746175289154, -0.023549368605017662, 0.0331152118742466, 0.005048156715929508, -0.003911125473678112, 0.040420036762952805, 0.09044070541858673, -0.024210281670093536, -0.043724603950977325, -0.008235322311520576, 0.01786203868687153, 0.023879824206233025, -0.03746332228183746, 0.02041872777044773, 0.0037937266752123833, 0.06991761922836304, -0.0905102789402008, -0.0006429768982343376, -0.02654086798429489, 0.0006201493088155985, 0.017931608483195305, 0.01967085339128971, -0.03847208619117737, 0.026332158595323563, 0.018714269623160362, -0.031167257577180862, 0.06786531209945679, 0.004189404658973217, -0.008222277276217937, -0.004324196372181177, 0.03010631911456585, 0.006513469852507114, 0.009809338487684727, -0.026627831161022186, -0.0016566301928833127, -0.01162684801965952, -0.0020414381287992, 0.07064810395240784, 0.03812423720955849, 0.0081657525151968, 0.02751484513282776, -0.03565450757741928, 0.034802280366420746, 0.04480293393135071, 0.0401417575776577, 0.04386374354362488, 0.057499416172504425, -0.05353394150733948, 0.02360154502093792, -0.01447920873761177, 0.015661895275115967, -0.0338456965982914, -0.05409049987792969, 0.027740947902202606, 0.03047156147658825, -0.009217995218932629, -0.004617693834006786, 0.03508055955171585, -0.01711416430771351, -0.03680241107940674, -0.003230646252632141, -0.04031568393111229, -0.003726331051439047, -0.07304826378822327, -0.05631673336029053, -0.034628354012966156, -0.02414071187376976, 0.009783249348402023, -0.02120138891041279, 0.013235649093985558, 0.006730875466018915, 0.044837720692157745, -0.06497816741466522, 0.025914739817380905, -0.049881529062986374, -0.0013239997206255794, 0.021827517077326775, -0.08153577148914337, -0.010661567561328411, 0.001493576099164784, -0.015566237270832062, 0.04017654433846474, -0.025306005030870438, 0.028941025957465172, 0.054160069674253464, -0.006052570417523384, 0.0017316351877525449, 0.10087617486715317, -0.028106188401579857, 0.03252387046813965, 0.0055829742923378944, 0.0029936742503196, -0.00854403804987669, 0.006813489831984043, -0.057464633136987686, -0.01206165924668312, 0.0021131818648427725, -0.005726461764425039, 0.013887866400182247, 0.04334196820855141, 0.06974370032548904, 0.02634955197572708, -0.003667631419375539, -0.05816033110022545, -0.03026285208761692, -0.05290781334042549, -0.0297410786151886, 0.02337544411420822, -0.0379503108561039, 0.057464633136987686, 0.019809992983937263, 0.0006277585052885115, 0.027775732800364494, -0.05255996435880661, 0.02954976074397564, -0.021601414307951927, 0.03565450757741928, -0.006204754114151001, -0.0330282486975193, 0.04128966107964516, 0.012200798839330673, 0.0442463755607605, -0.02840185910463333, -0.016635872423648834, 0.027219174429774284, 0.016818493604660034, -0.04045482352375984, -0.001970781246200204, 0.04334196820855141, 0.00955714751034975, 0.0001491945586167276, 0.015227084048092365, 0.061569251120090485, -0.050264161080121994, 0.0855708196759224, 0.017601152881979942, -0.01375742256641388, 0.046890027821063995, 0.04741179943084717, -0.029080165550112724, 0.0072830854915082455, 0.05064679682254791, -0.002778442809358239, -0.03899385780096054, -0.029828039929270744, 0.058995168656110764, 0.05336001515388489, -0.01291388925164938, -0.017896823585033417, 0.04490729048848152, 0.07242213189601898, 0.045220352709293365, -0.03899385780096054, -0.015200995840132236, -0.04288976639509201, -0.03801988065242767, -0.028384467586874962, 0.0011152904480695724, -0.011218125931918621, -0.017748989164829254, -0.0031262917909771204, -0.05325566232204437, -0.01299215480685234, 0.02281888574361801, -0.002487119287252426, -0.0396895557641983, -0.007696156390011311, 0.0032784754876047373, 0.010374592617154121, -0.019183864817023277, -0.026036487892270088, -0.009713679552078247, -0.011966001242399216, 0.022975416854023933, -0.013609587214887142, 0.09544973075389862, 0.02304498665034771, 0.007730941288173199, -0.0011718159075826406, 0.0033197826705873013, -0.04699438065290451, -0.020140448585152626, 0.003008892759680748, 0.03121943585574627, 0.02118399553000927, 0.030228067189455032, 0.03438486158847809, 0.010391985066235065, -0.039828695356845856, -0.03487185016274452, -0.008196189068257809, -0.008039657026529312, -0.015340135432779789, 0.03177599236369133, -0.06710004806518555, 0.0023762425407767296, -0.007452662102878094, 0.10790272057056427, -0.07805728912353516, -0.020766576752066612, -0.014357461594045162, 0.002058830577880144, 0.030749840661883354, 0.01282692700624466, -0.02377546951174736, -0.060838766396045685, 0.021323135122656822, 0.022001441568136215, -0.002489293459802866, -0.07221342623233795, -0.0074004847556352615, 0.0011402920354157686, 0.012513862922787666, -0.03826337680220604, -0.008474468253552914, -0.054681841284036636, 0.002012088196352124, -0.06132575497031212, 0.0553775392472744, 0.00760919414460659, 0.014879235066473484, -0.05189904943108559, -0.0033893524669110775, -0.0297410786151886, 0.026140842586755753, -0.029775863513350487, -0.06956977397203445, -0.028488822281360626, 0.047098737210035324, -0.0010756138944998384, 0.025897348299622536, -0.012409508228302002, 0.06689133495092392, -0.01928821951150894, -0.026610437780618668, -0.022801492363214493, -0.02153184451162815, 0.02565385401248932, -0.031862955540418625, 0.06786531209945679, 0.0228536706417799, 0.0069352369755506516, -0.09350177645683289, 0.008696221746504307, 0.005865601357072592, 0.05409049987792969, 0.016592390835285187, 0.025201650336384773, 0.009278868325054646, -0.05603845417499542, -0.027340920642018318, -0.02487119473516941, 0.01577494665980339, -0.034680530428886414, -0.021792732179164886, -0.021775338798761368, 0.03153249993920326, -0.014453120529651642, 0.009017981588840485, 0.013305218890309334, -0.04528992250561714, 0.0843881368637085, 0.030802017077803612, 0.0374981090426445, 0.06713483482599258, 0.0260017029941082, -0.035793647170066833, 0.052664317190647125, 0.04807271435856819, -0.03245430067181587, -0.04563777148723602, -0.008317936211824417, -0.009444097056984901, 0.05280345678329468, 0.010522427968680859, -0.015914086252450943, -0.05089028924703598, 0.018905585631728172, 0.04163751006126404, -0.007865732535719872, -0.0643172562122345, 0.0019142557866871357, -0.0367676243185997, 0.02621041238307953, -0.02784530259668827, -0.007065680343657732, -0.008439683355391026, -0.006713483016937971, 0.06612607091665268, 0.02899320237338543, -0.0049394541420042515, -0.018331635743379593, 0.04528992250561714, -0.03906342759728432, -0.0386807955801487, -0.05631673336029053, 0.032941289246082306, 0.058612532913684845, 0.04563777148723602, -0.03466314077377319, 0.006209102459251881, 0.03429789841175079, -0.00036198023008182645, 0.03441964462399483, 0.05203818902373314, 0.05130770802497864, -0.0597604364156723, 0.008061397820711136, -0.025949524715542793, 0.025149473920464516, -0.01271387655287981, 0.013392181135714054, -0.015644501894712448, -0.0834837257862091, -0.049116261303424835, 0.005983000621199608, -0.0379503108561039, 0.11666850745677948, -0.08884060382843018, 0.056351516395807266, -0.028001833707094193, -0.04974238947033882, -0.01533143874257803, -0.02897581085562706, 0.022766707465052605, 0.03471531718969345, 0.042611487209796906, 0.048559702932834625, 0.009904996491968632, -0.07075245678424835, 0.025914739817380905, 0.059134308248758316, -0.010644175112247467, 0.04480293393135071, 0.04417680576443672, 0.016818493604660034, -0.012366027571260929, -0.09231908619403839, -0.01075722649693489, -0.02248843014240265, 0.013661764562129974, -0.010826796293258667, -0.045776911079883575, -0.005230777431279421, -0.005469923373311758, -0.014627045020461082, 0.04177664965391159, -0.03422832861542702, 0.02989760972559452, 0.029080165550112724, 0.01841859705746174, 0.03516751900315285, 0.06052570417523384, 0.009626717306673527, 0.017783774062991142, -0.012939977459609509, 0.005065549165010452, 0.014748792164027691, 0.07200471311807632, -0.006930888630449772, -0.061012692749500275, -0.02784530259668827, 0.004800314549356699, -0.07023068517446518, -0.030802017077803612, -0.05722113698720932, 0.009452792815864086, -0.013192168436944485, -0.040420036762952805, -0.03200209513306618, -0.014357461594045162, -0.012383420020341873, 0.0030806364957243204, -0.03355002403259277, -0.003228472312912345, 0.06710004806518555, -0.011757291853427887, 0.033184781670570374, 0.053986143320798874, 0.00862665195018053, 0.04553341493010521, 0.03739375248551369, -0.026332158595323563, -0.04880319535732269, 0.036315422505140305, 0.0006625434034503996, 0.02097528614103794, 0.0030393295455724, -0.05221211537718773, -0.04880319535732269, -0.003708938602358103, 0.011522493325173855, -0.029810648411512375, -0.02507990412414074, 0.05196861922740936, -0.049707602709531784, -0.04494207352399826, -0.03812423720955849, 0.08139663189649582, -0.01317477598786354, -0.029445406049489975, 0.02862796187400818, 0.04476815089583397, -0.0875883474946022, 0.0066482615657150745, -0.0442463755607605, 0.0049307579174637794, 0.0015740161761641502, -0.0025349485222250223, -0.03233255073428154, -0.012218191288411617, -0.01798378676176071, 0.025879954919219017, -0.04619432985782623, -0.05106421187520027, 0.03711547330021858, 0.026888716965913773, 0.06355198472738266, 0.039446063339710236, -0.06348241865634918, -0.006700438912957907, 0.045985620468854904, -0.006404767278581858, -0.04974238947033882, -0.015914086252450943, -0.011218125931918621, -0.013053028844296932, -0.033897873014211655, 0.020383942872285843, 0.0038915593177080154, 0.01067026425153017, 0.008861449547111988, 0.0374981090426445, -0.024071142077445984, -0.02567124553024769, -0.007226560264825821, -0.002014262368902564, 0.035376228392124176, -0.009035374037921429, 0.029480190947651863, 0.033880479633808136, -0.03955041617155075, 0.049881529062986374, 0.03607192635536194, 0.03993304818868637, 0.03881993517279625, 0.118059903383255, -0.00939191970974207, 0.04730744659900665, 0.002700176788493991, 0.04960324987769127, -0.015357527881860733, -0.0330282486975193, -0.010365895926952362, 0.004045917186886072, -0.017192430794239044, -0.051203351467847824, 0.02584517002105713, 0.03153249993920326, 0.00352631788700819, -0.015157514251768589, -0.028106188401579857, -0.038889504969120026, 0.005822120234370232, -0.010983328334987164, 0.057499416172504425, 0.005587322637438774, -0.00013187005242798477, 0.044281162321567535, 0.010661567561328411, -0.02321891114115715, -0.06511730700731277, -0.047098737210035324, 0.012774749659001827, 0.017966393381357193, 0.012226887978613377, -0.024558130651712418, -0.007183079142123461, 0.018070748075842857, -0.057151567190885544, 0.04062874615192413, -0.02728874422609806, 0.001455530058592558, -0.04240277782082558, -0.019983917474746704, -0.0038546002469956875, -0.01317477598786354, -0.0033980486914515495, 0.05558624863624573, -0.06720440089702606, -0.01477488037198782, 0.0191142950206995, 0.06918714195489883, 0.021444883197546005, -0.004122009035199881, -0.004241582006216049, -0.01651412434875965, -0.02393200248479843, 0.004935105796903372, 0.019201258197426796, 0.03231516107916832, 0.03951563313603401, 0.014035701751708984, 0.02081875503063202, 0.014261803589761257, -0.015253173187375069, -0.01533143874257803, -0.06031699478626251, 0.028001833707094193, -0.03596757352352142, 0.004293759353458881, -0.014200929552316666, 0.0326630100607872, -0.06379548460245132, -0.07798771560192108, -0.002241451060399413, -0.020870931446552277, 0.04334196820855141, 0.03972433879971504, -0.00955714751034975, -0.017766380682587624, 0.0055829742923378944, -0.02801922708749771, 0.009878908284008503, -0.02895841747522354, -0.016801100224256516, 0.03635020554065704, -0.00250451173633337, 0.002243625232949853, -0.021653592586517334, 0.0308368019759655, -0.005952563602477312, -0.02193187177181244, 0.024192888289690018, -0.004154619760811329, 0.009017981588840485, -0.03582843393087387, 0.06727397441864014, 0.07172643393278122, 0.008557082153856754, 0.06463032215833664, -0.05742984637618065, 0.04250713065266609, 0.05443834885954857, -0.06125618517398834, -0.06800445169210434, -0.018296850845217705, -0.016609784215688705, -0.03902864456176758, -0.002991500310599804, 0.012461685575544834, -0.009991958737373352, -0.016609784215688705, -0.011948608793318272, 0.006956977304071188, -0.013139991089701653, 0.003676327643916011, 0.01746201328933239, 0.008009220473468304, 0.04268105700612068, -0.06793488562107086, -0.01669674552977085, 0.0017859864747151732, 0.004813358653336763, 0.005200340412557125, 0.02040133625268936, 0.003982869442552328, 0.052107758820056915, 0.005983000621199608, 0.02822793647646904, 0.01317477598786354, 0.018818624317646027, -0.004030698910355568, 0.03715026006102562, -0.03236733749508858, -0.009044070728123188, -0.02953236922621727, -0.09656284749507904, 0.007617890369147062, -0.01854034513235092, 0.06828273087739944, 0.009696287102997303, -0.024105926975607872, -0.005222081206738949, -0.024975549429655075, 0.0457073412835598, -0.02880188636481762, -0.004782922100275755, -0.009070158936083317, -0.054855767637491226, -0.03478488698601723, -0.0534643717110157, 0.0015457534464076161, -0.04887276515364647, -0.0023414576426148415, -0.032976072281599045, -0.06257800757884979, 0.006656957790255547, 0.008700570091605186, 0.05642108619213104, 0.025340789929032326, 0.0243146363645792, 0.05833425372838974, -0.030715055763721466, 0.03546319156885147, -0.0015272739110514522, 0.018314242362976074, -0.004895973019301891, -0.051377277821302414, 0.007800510618835688, 0.03377612680196762, -0.01767072267830372, 0.04240277782082558, -0.012131229043006897, 0.03652413189411163, -0.02471466176211834, 0.03553276136517525, 0.00399373983964324, -0.004215493332594633, 0.0026045183185487986, 0.006930888630449772, 0.061360541731119156, -0.04442030191421509, -0.08967544138431549, 0.025584284216165543, -0.0010555039625614882, 0.038715578615665436, -0.04184621945023537, -0.024958156049251556, -0.029671508818864822, 0.05367308109998703, -0.01949692890048027, -0.03288910910487175, -0.00590038625523448, -0.014974894002079964, -0.007178730797022581, -0.02504511922597885, 0.029410621151328087, 0.012696484103798866, 0.0333934910595417, -0.01049633976072073, 0.0180185716599226, -0.049116261303424835, 0.03989826515316963, -0.005874297581613064, 0.012931281700730324, 0.06275193393230438, -0.03301085904240608, 0.011879038996994495, 0.039480846375226974, -0.02954976074397564, -0.009287565015256405, -0.05624716356396675, -0.051516417413949966, 0.016470644623041153, -0.04219406843185425, -0.0028436644934117794, 0.006226494908332825, 0.03028024360537529, -0.028297506272792816, -0.028923632577061653, -0.05329044535756111, 0.03327174484729767, -0.011539885774254799, -0.03572407737374306, 0.07050896435976028, 0.00510033406317234, -0.00395243288949132, -0.005913430824875832, 0.008522297255694866, -0.007974435575306416, -0.0490814745426178, -0.05701242759823799, 0.029236696660518646, -0.010157186537981033, -0.0003948628145735711, 0.06866536289453506, -0.023497190326452255, -0.036106713116168976, 0.032767362892627716, -0.01746201328933239, 0.024018963798880577, -0.03923735395073891, 0.004376373719424009, 0.0028588827699422836, -0.049324970692396164, -0.031080296263098717, -0.07861384749412537, 0.03120204247534275, -0.0735352486371994, 0.020870931446552277, -0.027080034837126732, -0.028836671262979507, 0.031497713178396225, 0.02601909451186657, -0.0036415427457541227, 0.033515237271785736, -0.03290650248527527, 0.015435793437063694, 0.04045482352375984, 0.07722245156764984, 0.03248908370733261, 0.0008272280683740973, 0.005335132125765085, -0.016409769654273987, 0.034802280366420746, 0.0553775392472744, 0.0002989326312672347, -0.009731072001159191, 0.062334515154361725, -0.04723787680268288, -0.06727397441864014, 0.031080296263098717, -0.030315028503537178, 0.05092507600784302, -0.010435465723276138, 0.04455944150686264, 0.029219305142760277, 0.023688508197665215, -0.03488923981785774, 0.011574670672416687, 0.05499490723013878, 0.012426900677382946, 0.008896234445273876, -0.005217732861638069, 0.038159020245075226, -0.10310240089893341, 0.005700373090803623, 0.01634889654815197, -0.02713221125304699, -0.051168568432331085, 0.02064483053982258, -0.017192430794239044, -0.020366551354527473, 0.0009511492680758238, 0.0597604364156723, 0.04737701639533043, 0.06835230439901352, -0.02097528614103794, 0.02788008749485016, 0.004630737937986851, 0.007761377841234207, 0.02337544411420822, -0.05819511413574219, 0.017061986029148102, -0.011835557408630848, 0.00015884192544035614, 0.011826861649751663, 0.04302890598773956, -0.00982673093676567, 0.011635544709861279, 0.014835754409432411, 0.016244541853666306, 0.018679484724998474, -0.03972433879971504, -0.01711416430771351, 0.0018653395818546414, 0.002965411636978388, -0.05308173596858978, -0.06546515971422195, -0.011818164959549904, 0.01632280834019184, -0.010000654496252537, 0.015348831191658974, 0.06563907861709595, -0.007326566614210606 ]
21,052
sortedcontainers.sorteddict
__or__
null
def __or__(self, other): if not isinstance(other, Mapping): return NotImplemented items = chain(self.items(), other.items()) return self.__class__(self._key, items)
(self, other)
[ 0.022333553060889244, -0.04171706363558769, -0.01728377491235733, 0.04084940254688263, -0.04150882363319397, -0.04289707913994789, -0.026446256786584854, -0.002652868628501892, 0.1167522445321083, -0.016685089096426964, 0.054593127220869064, 0.018186140805482864, 0.0262727253139019, 0.046367716044187546, 0.015053889714181423, 0.01912321336567402, -0.030194547027349472, 0.06910039484500885, -0.02334003709256649, 0.020008224993944168, 0.045048873871564865, -0.012060465291142464, 0.016858622431755066, 0.030229251831769943, -0.012346792966127396, 0.02705361880362034, -0.05698786675930023, 0.01354416273534298, 0.0011919470271095634, 0.004485798999667168, 0.014637413434684277, -0.06125675141811371, 0.045118287205696106, 0.005882730707526207, 0.05504431203007698, 0.014281673356890678, -0.019973518326878548, 0.07621520012617111, 0.03588639199733734, -0.00818202830851078, -0.004494475666433573, -0.03208604454994202, -0.033821363002061844, -0.014299026690423489, 0.004351311828941107, 0.0012635289458557963, -0.023357389494776726, 0.01875879615545273, 0.07041923701763153, -0.012121201492846012, 0.016242584213614464, -0.03101014532148838, 0.02844187431037426, 0.016095081344246864, -0.06257559359073639, 0.02767833322286606, -0.04331355541944504, 0.05823729559779167, -0.03239840269088745, 0.05105307698249817, -0.01834231987595558, -0.009526900015771389, -0.049525998532772064, -0.021448539569973946, 0.015331541188061237, -0.033300768584012985, -0.06719154119491577, -0.012667827308177948, 0.038107600063085556, 0.07302220910787582, -0.036754049360752106, 0.0169974472373724, -0.0340469554066658, 0.013552839867770672, -0.021309714764356613, 0.015357570722699165, -0.03153074160218239, 0.03297105431556702, 0.06573387235403061, -0.038003481924533844, 0.020285876467823982, -0.013335924595594406, -0.06663624197244644, -0.008446663618087769, -0.03623345494270325, 0.027955984696745872, -0.045638881623744965, -0.029274826869368553, 0.023201212286949158, -0.08891773223876953, -0.04463239759206772, 0.027036266401410103, 0.0021875861566513777, 0.02752215601503849, 0.021448539569973946, 0.02630743198096752, -0.02462417259812355, -0.00915380660444498, -0.026741262525320053, -0.029309533536434174, 0.016242584213614464, 0.012346792966127396, 0.0408841110765934, 0.03130514919757843, 0.04345238208770752, -0.0030693451408296824, -0.017787016928195953, -0.03486255183815956, -0.059729672968387604, -0.011166776530444622, -0.06528268754482269, 0.0391140840947628, -0.003700567176565528, 0.028094811365008354, -0.0468883141875267, 0.019626455381512642, -0.01875879615545273, -0.03203398361802101, 0.031548094004392624, 0.03274546563625336, -0.04407709464430809, 0.03959997370839119, 0.02344415709376335, 0.00520161772146821, 0.021240301430225372, -0.01114074606448412, 0.026411551982164383, -0.03623345494270325, -0.02209060825407505, -0.04039822146296501, 0.035608742386102676, -0.002563933376222849, -0.003023792989552021, -0.0018578756134957075, 0.06649741530418396, -0.0028350770007818937, -0.044979460537433624, 0.03149603679776192, -0.01453329436480999, 0.05830670893192291, 0.03470637649297714, -0.011895610019564629, 0.05240662768483162, 0.041300587356090546, -0.06781625747680664, -0.0005835009505972266, -0.028303049504756927, 0.0369969941675663, 0.09766373783349991, -0.041265878826379776, -0.014958447776734829, 0.020060284063220024, 0.03959997370839119, 0.06962098926305771, -0.07739521563053131, 0.004984702914953232, -0.008607180789113045, -0.028684819117188454, 0.04407709464430809, 0.015088596381247044, 0.04727008193731308, -0.012676503509283066, -0.016173170879483223, -0.08732123672962189, 0.00035953635233454406, -0.03696228936314583, 0.01794319599866867, -0.02613390050828457, 0.10731211304664612, -0.021969135850667953, 0.0050627924501895905, -0.05993790924549103, 0.038628194481134415, -0.0013394491979852319, -0.016945388168096542, 0.03317929431796074, -0.028598053380846977, -0.0017852091696113348, -0.0004498271446209401, -0.007136498112231493, 0.038107600063085556, 0.03317929431796074, -0.07041923701763153, -0.024572113528847694, 0.02965659648180008, 0.012381499633193016, 0.017821723595261574, 0.022559143602848053, 0.029934247955679893, 0.025335654616355896, 0.019071152433753014, -0.015088596381247044, 0.002249406883493066, 0.03317929431796074, -0.01636405661702156, 0.004435908515006304, 0.0032905982807278633, 0.014394468627870083, -0.026394197717308998, 0.11883462965488434, -0.10738152265548706, 0.017604809254407883, -0.028945116326212883, 0.06601152569055557, -0.028198929503560066, -0.012155908159911633, 0.031617507338523865, 0.016910681501030922, 0.008069232106208801, -0.035608742386102676, 0.00613001361489296, -0.07524342089891434, -0.042411189526319504, -0.03144397586584091, 0.010021465830504894, 0.03215545788407326, -0.023201212286949158, -0.02653302438557148, -0.05244133248925209, 0.024415934458374977, 0.054662540555000305, -0.03182574734091759, 0.04733949527144432, 0.01717097871005535, 0.010021465830504894, 0.008871817030012608, -0.054662540555000305, -0.03883643448352814, -0.003323135431855917, 0.02146589197218418, 0.03651110455393791, 0.013717695139348507, -0.0012776284711435437, -0.03127044439315796, 0.06819802522659302, -0.02311444655060768, 0.01879350282251835, -0.048276565968990326, -0.005106175318360329, 0.02344415709376335, -0.006988996174186468, -0.007531283423304558, 0.008299161680042744, 0.021448539569973946, -0.05112249031662941, -0.02998630702495575, -0.004624624270945787, 0.019019093364477158, 0.04990776628255844, 0.011748108081519604, 0.016893327236175537, 0.007704815361648798, 0.0036636916920542717, 0.05185132473707199, 0.02399945817887783, 0.01147045660763979, -0.003338319482281804, -0.0632697194814682, 0.030489550903439522, -0.003084528958424926, 0.02406887151300907, 0.08537768572568893, -0.0420641265809536, -0.047513026744127274, -0.028563346713781357, -0.01971322111785412, 0.02110147662460804, 0.03437666594982147, -0.029968954622745514, 0.01816878654062748, 0.008954244665801525, -0.024572113528847694, 0.016242584213614464, 0.010264410637319088, -0.0017960548866540194, 0.05618962273001671, 0.029274826869368553, -0.04643712937831879, -0.014021375216543674, -0.004954334814101458, 0.0108978021889925, 0.0480683296918869, -0.05317016690969467, -0.06882274150848389, -0.0006854509119875729, 0.006190749816596508, -0.0549054853618145, -0.0016344533069059253, 0.022333553060889244, -0.05382958799600601, 0.07774227857589722, 0.010359852574765682, -0.011392368003726006, 0.03689287602901459, 0.002850261051207781, -0.00948351714760065, -0.030489550903439522, -0.0471312589943409, 0.09058363735675812, -0.022628556936979294, 0.020129697397351265, -0.01959174871444702, 0.0554954931139946, 0.05504431203007698, 0.013066950254142284, -0.0011952008353546262, 0.07649285346269608, 0.021483246237039566, 0.023149151355028152, 0.07191161066293716, -0.02686273492872715, -0.008945568464696407, -0.0035552342887967825, 0.03713582083582878, -0.022559143602848053, 0.02007763832807541, -0.00494565861299634, 0.03449813649058342, 0.019765280187129974, 0.045048873871564865, -0.05164308473467827, 0.015479043126106262, -0.035539329051971436, -0.037344060838222504, -0.0002746684185694903, -0.06785096228122711, -0.029708657413721085, 0.0031214046757668257, 0.04668007418513298, 0.01042058877646923, -0.010038819164037704, -0.010993244126439095, 0.04348708689212799, 0.04678419232368469, -0.0364069864153862, -0.003960865084081888, 0.07121748477220535, 0.0026159929111599922, 0.018394378945231438, -0.012910771183669567, -0.0162599366158247, -0.010411912575364113, -0.01486300490796566, -0.014732856303453445, 0.009249248541891575, -0.008294823579490185, -0.01607772894203663, -0.012372822500765324, 0.045638881623744965, -0.08336471021175385, 0.000003973947514168685, 0.012416205368936062, 0.022854147478938103, -0.04678419232368469, -0.0008242764160968363, 0.011409720405936241, -0.03147868067026138, 0.016598323360085487, -0.02755686081945896, 0.03703170269727707, 0.09662254899740219, -0.028094811365008354, -0.04605535790324211, -0.007474885322153568, -0.02788657136261463, 0.02972600981593132, -0.04543064534664154, -0.010247057303786278, -0.07739521563053131, -0.04105764254927635, 0.024485347792506218, -0.03153074160218239, 0.003143096109852195, 0.029899541288614273, 0.03038543090224266, 0.016233906149864197, -0.0686839148402214, 0.0385240763425827, -0.03534844145178795, -0.00976116769015789, 0.026585083454847336, 0.007474885322153568, -0.04987306147813797, 0.041265878826379776, -0.013301217928528786, 0.010168967768549919, 0.018255552276968956, -0.023548275232315063, 0.054523713886737823, 0.03838524967432022, -0.029274826869368553, -0.03630286827683449, 0.043764740228652954, 0.0050844838842749596, -0.05500960350036621, 0.020303228870034218, -0.06215911731123924, -0.002730957930907607, 0.021118829026818275, -0.0262727253139019, 0.030576316639780998, -0.008936891332268715, 0.012546354904770851, 0.023253271356225014, 0.05553020164370537, -0.008602842688560486, 0.016945388168096542, 0.034810494631528854, 0.0005585557082667947, -0.013110333122313023, -0.04171706363558769, -0.057890232652425766, -0.0031192353926599026, 0.015687281265854836, -0.03533108904957771, -0.03779524192214012, 0.061048515141010284, -0.01978263445198536, 0.04275825247168541, 0.048831868916749954, 0.04140470549464226, -0.030333371832966805, -0.028268342837691307, -0.02172619104385376, 0.005409856326878071, -0.04813774302601814, -0.004954334814101458, -0.0070410557091236115, -0.00393700459972024, 0.009717784821987152, 0.00021650812414009124, -0.05264957249164581, 0.031877804547548294, -0.008819757960736752, 0.038003481924533844, -0.005782949738204479, 0.027626274153590202, -0.026446256786584854, 0.05355193465948105, -0.0018632984720170498, 0.03897525742650032, -0.02054617367684841, -0.01971322111785412, 0.012832682579755783, -0.0002715502632781863, -0.023860633373260498, -0.004409878980368376, 0.05122660845518112, 0.09648372232913971, 0.010975890792906284, 0.04834597930312157, 0.008945568464696407, -0.00045633461559191346, 0.026671849191188812, 0.03841995820403099, 0.012971507385373116, -0.03848937153816223, -0.05747375637292862, -0.009604989551007748, 0.06476209312677383, -0.016016991809010506, -0.03097544051706791, 0.004388187080621719, -0.0037417809944599867, -0.022559143602848053, 0.06417208909988403, 0.025630658492445946, -0.011635311879217625, -0.016103757545351982, 0.009674401953816414, 0.013301217928528786, -0.06285324692726135, 0.01449858769774437, -0.05535666644573212, -0.032207515090703964, 0.0003042230673599988, 0.08843184262514114, 0.015548455528914928, -0.008672255091369152, -0.027504801750183105, -0.021188242360949516, -0.0033903790172189474, -0.007266647182404995, -0.05261486396193504, -0.0026311769615858793, -0.03769112378358841, -0.0008394604665227234, -0.0008736245217733085, 0.031686920672655106, 0.06531739979982376, 0.04529181867837906, -0.016928033903241158, -0.06257559359073639, 0.02334003709256649, 0.01919262483716011, -0.01754407212138176, 0.006498768925666809, -0.002005377784371376, -0.0022407302167266607, -0.0537254698574543, -0.0035248661879450083, -0.02070235274732113, -0.026671849191188812, 0.029708657413721085, 0.032676052302122116, -0.007900038734078407, -0.05570373311638832, -0.04775597155094147, 0.0014739363687112927, 0.005891407374292612, -0.0015444336459040642, -0.04425062984228134, 0.01783907599747181, -0.02738332934677601, 0.036094628274440765, -0.008741668425500393, -0.0010384798515588045, -0.009058363735675812, -0.007379442919045687, -0.038003481924533844, 0.005444562528282404, 0.03130514919757843, 0.006650608964264393, -0.02752215601503849, -0.033595770597457886, -0.034446075558662415, 0.03409901261329651, -0.014932418242096901, -0.02932688593864441, -0.06705271452665329, -0.06962098926305771, -0.0782281681895256, -0.04910952225327492, 0.02462417259812355, -0.04910952225327492, 0.059729672968387604, -0.04733949527144432, 0.03755229711532593, 0.006941275205463171, 0.031183678656816483, 0.039981745183467865, 0.049560703337192535, 0.06465797871351242, -0.01055073831230402, 0.018151434138417244, 0.04032880812883377, -0.07274456322193146, -0.012060465291142464, 0.021639425307512283, 0.0283377543091774, -0.04796421155333519, 0.011696048080921173, 0.07600696384906769, 0.04171706363558769, -0.04615947976708412, -0.0459512397646904, -0.04112705588340759, -0.02271532267332077, -0.0162599366158247, 0.027175091207027435, 0.06139557808637619, 0.0229756198823452, 0.02360033430159092, -0.008364235982298851, -0.004876245744526386, -0.0007635402726009488, -0.014021375216543674, 0.024311816319823265, 0.01886291429400444, 0.052128974348306656, -0.025630658492445946, 0.03980821371078491, -0.09599783271551132, -0.01830761320888996, 0.026515670120716095, -0.00007673362415516749, -0.019001740962266922, -0.00025433264090679586, -0.06014614924788475, -0.05223309248685837, -0.0969696119427681, 0.04775597155094147, 0.0447712242603302, -0.007088777143508196, 0.024016810581088066, -0.03782995045185089, -0.050810132175683975, 0.054072532802820206, 0.014429175294935703, -0.016129788011312485, -0.006481415592133999, -0.009041010402143002, -0.028198929503560066, -0.020893238484859467, 0.031218383461236954, -0.00032943941187113523, -0.009049687534570694, -0.001074270810931921, -0.035400502383708954, 0.001392593258060515, 0.017223037779331207, -0.014802268706262112, 0.01290209498256445, 0.0040975213050842285, 0.03644169494509697, 0.004880583845078945, -0.0271577388048172, -0.006975981406867504, -0.0033708566334098577, -0.019938811659812927, -0.01313636265695095, 0.023912692442536354, 0.04709655046463013, 0.0013242651475593448, 0.04039822146296501, -0.08031055331230164, -0.02202119491994381, -0.011088686995208263, -0.003774318378418684, -0.010611474514007568, -0.04786008968949318, -0.021222949028015137, -0.04237648472189903, 0.030558962374925613, -0.08752948045730591, -0.025231534615159035, 0.03900996595621109, 0.00948351714760065, 0.04973423480987549, 0.04015527665615082, -0.00944881048053503, -0.025075355544686317, 0.07239750027656555, -0.0042124860920012, -0.04466710612177849, 0.0021225118543952703, 0.028545992448925972, 0.0252141822129488, -0.005817655939608812, 0.0758681371808052, -0.03779524192214012, -0.0022689292673021555, -0.028545992448925972, 0.03460225462913513, -0.050844840705394745, -0.014836975373327732, -0.03101014532148838, 0.04199471324682236, -0.008576813153922558, -0.02630743198096752, -0.021188242360949516, -0.02366974763572216, -0.002509704791009426, 0.004628962837159634, -0.026081841439008713, -0.040606457740068436, 0.018099375069141388, -0.06295736134052277, 0.009969405829906464, 0.008971597999334335, 0.006017217878252268, -0.045638881623744965, -0.019504982978105545, -0.031166324391961098, 0.0465412475168705, -0.002765664365142584, -0.004694037139415741, -0.047651853412389755, 0.057126693427562714, 0.05799435079097748, 0.027591567486524582, -0.07260573655366898, -0.04282766580581665, -0.004537858534604311, -0.036164041608572006, -0.015348894521594048, 0.01860261708498001, 0.022559143602848053, 0.032467812299728394, -0.03848937153816223, 0.0024663216900080442, -0.0032558918464928865, -0.048311274498701096, 0.024867117404937744, -0.03907937929034233, 0.040537044405937195, 0.008702623657882214, 0.005435885861515999, 0.026914793998003006, -0.06052791699767113, 0.0525454506278038, -0.07184219360351562, -0.006251485552638769, 0.021812956780195236, -0.010264410637319088, 0.005574711598455906, -0.040710579603910446, -0.07947760075330734, 0.018047314137220383, 0.03821171820163727, 0.040016449987888336, 0.018706735223531723, 0.017058182507753372, -0.07864464819431305, -0.03390812873840332, -0.02495388314127922, -0.03258928656578064, 0.027695687487721443, 0.10106496512889862, -0.0030324694234877825, -0.03435930982232094, 0.04518770053982735, 0.04484063759446144, -0.058445535600185394, 0.04244589805603027, -0.0078045958653092384, -0.004138735122978687, 0.0331098809838295, -0.01893232762813568, 0.0005094787338748574, -0.029847482219338417, -0.012155908159911633, 0.05948672816157341, 0.0010813204571604729, 0.061673227697610855, 0.02429446205496788, 0.00985661055892706, -0.06764272600412369, -0.062297943979501724, 0.05157367140054703, 0.004377341363579035, 0.014411821961402893, -0.00979587435722351, -0.03630286827683449, -0.04980364814400673, -0.02745274268090725, -0.05251074582338333, 0.026966853067278862, 0.02278473600745201, 0.06545622646808624, -0.031287796795368195, 0.03592109680175781, 0.026480963453650475, 0.017743634060025215, 0.025266241282224655, -0.035608742386102676, -0.00013780871813651174, 0.016199201345443726, -0.003802517196163535, 0.04400768503546715, 0.024485347792506218, 0.021899722516536713, 0.032016631215810776, 0.03682346269488335, 0.026637142524123192, 0.0190885066986084, -0.012581060640513897, -0.01783907599747181, 0.0000402987097913865, -0.02228149212896824, -0.026376845315098763, 0.02363504096865654, -0.006381634622812271, -0.017995255067944527, 0.03208604454994202, -0.00908439327031374, 0.028198929503560066, 0.036754049360752106 ]
21,053
sortedcontainers.sorteddict
__reduce__
Support for pickle. The tricks played with caching references in :func:`SortedDict.__init__` confuse pickle so customize the reducer.
def __reduce__(self): """Support for pickle. The tricks played with caching references in :func:`SortedDict.__init__` confuse pickle so customize the reducer. """ items = dict.copy(self) return (type(self), (self._key, items))
(self)
[ -0.011425924487411976, 0.013461166992783546, -0.07776769995689392, 0.01145270373672247, 0.030814290046691895, -0.017951197922229767, 0.0003629181592259556, -0.004474409855902195, 0.042240213602781296, -0.07012661546468735, 0.009890565648674965, 0.047060526907444, 0.018602833151817322, 0.042740099132061005, 0.005945051554590464, 0.029368197545409203, -0.024226531386375427, 0.06844843178987503, -0.05195225030183792, 0.04134756326675415, 0.01078321598470211, -0.010926040820777416, 0.03217111900448799, 0.025886859744787216, -0.003030547872185707, -0.00828825868666172, 0.025458388030529022, -0.028796900063753128, 0.030118022114038467, -0.004208846483379602, -0.030171582475304604, -0.002434703754261136, -0.001708309631794691, 0.011372365988790989, -0.008016000501811504, -0.03838396444916725, 0.01202400028705597, 0.060378871858119965, -0.010444008745253086, -0.011747278273105621, 0.024280089884996414, -0.058093685656785965, -0.030135875567793846, -0.07091214507818222, 0.06423512101173401, 0.02563691884279251, 0.034581273794174194, -0.0073866816237568855, 0.07655369490385056, -0.08212383091449738, -0.009069327265024185, -0.02420867793262005, 0.014353817328810692, 0.023905176669359207, -0.03329585865139961, 0.02451217919588089, 0.03809831663966179, -0.0035706013441085815, -0.07398286461830139, 0.05309484153985977, -0.026547420769929886, 0.013586138375103474, 0.057272445410490036, -0.0078285438939929, -0.014701951295137405, -0.03433133289217949, -0.07912452518939972, -0.029957346618175507, -0.027207983657717705, 0.029957346618175507, -0.0030484008602797985, -0.014362744055688381, 0.014773363247513771, 0.02322676219046116, -0.013059474527835846, 0.055165793746709824, -0.02204846404492855, -0.04070485755801201, 0.05970045551657677, -0.020995136350393295, -0.022923260927200317, -0.05748668313026428, -0.05538002774119377, 0.011140276677906513, -0.011711572296917439, -0.015469630248844624, 0.0392766147851944, 0.0021390134934335947, -0.024619296193122864, 0.006877870764583349, -0.036670077592134476, 0.08855091780424118, -0.034581273794174194, 0.035384658724069595, -0.023137496784329414, -0.04381128028035164, -0.03134987875819206, -0.0021780668757855892, -0.024887092411518097, -0.002246131421998143, 0.00828825868666172, -0.009194298647344112, -0.06312823295593262, -0.02940390259027481, -0.029046842828392982, -0.045525167137384415, 0.017745889723300934, -0.0004901208449155092, -0.05184513330459595, -0.004061559215188026, 0.028975430876016617, 0.02383376471698284, -0.01947763003408909, 0.07291167974472046, -0.012631002813577652, -0.014300258830189705, -0.0033652917481958866, -0.0319925881922245, 0.009587064385414124, 0.012809532694518566, -0.029778815805912018, 0.038312554359436035, -0.028350574895739555, 0.048488765954971313, -0.02694018743932247, -0.04377557337284088, 0.07230468094348907, -0.025422682985663414, -0.01721922494471073, 0.0014974209479987621, 0.025940420106053352, -0.0006689298897981644, -0.05577279254794121, 0.008457861840724945, 0.039312321692705154, -0.010211920365691185, 0.0623784065246582, 0.04345421865582466, 0.01217575091868639, 0.07305450737476349, 0.05184513330459595, 0.005333585664629936, 0.049738477915525436, 0.053844667971134186, 0.034224215894937515, -0.0669487789273262, -0.007337586022913456, 0.08340924978256226, 0.002671256195753813, 0.010238699615001678, 0.0060477061197161674, 0.012122191488742828, 0.009444240480661392, 0.06227128952741623, -0.010676098056137562, -0.016781827434897423, -0.03281382843852043, -0.021977052092552185, -0.028475547209382057, -0.02483353205025196, 0.00797583069652319, 0.007560748606920242, 0.011015305295586586, -0.053701844066381454, 0.010997452773153782, 0.022655466571450233, 0.05198795720934868, -0.046953409910202026, -0.001470641465857625, -0.025547653436660767, -0.04149038717150688, -0.049345713108778, -0.036009516566991806, 0.010095875710248947, -0.03984791040420532, 0.017629845067858696, -0.040097855031490326, 0.028886165469884872, -0.018906334415078163, 0.01013158168643713, 0.03304591774940491, -0.040419209748506546, -0.06880548596382141, -0.006409229710698128, 0.025601211935281754, 0.0424901582300663, 0.04238303750753403, 0.03841967135667801, 0.06223558261990547, 0.017201371490955353, -0.0087078046053648, -0.022387670353055, -0.013282637111842632, -0.04084768146276474, -0.018227919936180115, -0.006851091515272856, -0.08183818310499191, 0.0020586748141795397, 0.0003528758534230292, 0.11825831979513168, -0.0973345935344696, -0.0033273540902882814, 0.0431685708463192, 0.009997683577239513, 0.00198168377391994, -0.0005830122390761971, -0.006726120598614216, -0.030296552926301956, 0.022584054619073868, 0.028975430876016617, 0.04398981109261513, -0.04106191545724869, -0.002539590233936906, 0.02224484644830227, 0.03154626488685608, -0.08433760702610016, 0.002519505564123392, -0.018852775916457176, 0.012229309417307377, -0.01881706900894642, 0.0689840167760849, 0.009944125078618526, 0.003010463435202837, -0.0022617527283728123, 0.02220914140343666, -0.07012661546468735, -0.028671929612755775, -0.04427545890212059, -0.03284953162074089, -0.04199027270078659, 0.0552729107439518, -0.04509669542312622, -0.001254173694178462, -0.014693024568259716, 0.055808499455451965, 0.00677967956289649, 0.009221077896654606, -0.06062881276011467, 0.00812758132815361, 0.028314869850873947, 0.004278026986867189, 0.03608092665672302, 0.04413263499736786, 0.007841933518648148, -0.016451546922326088, -0.02744007110595703, 0.03934802860021591, 0.048595886677503586, 0.00568171963095665, 0.034706246107816696, 0.015666013583540916, 0.019816838204860687, -0.02697589434683323, -0.0034724099095910788, 0.05063112825155258, -0.0007654476794414222, -0.007400071248412132, -0.03681290149688721, -0.018495716154575348, -0.01641584001481533, 0.030957113951444626, 0.013675403781235218, 0.008756900206208229, 0.0075339688919484615, -0.01453234814107418, 0.0028609444852918386, 0.05591562017798424, 0.008123118430376053, -0.0509524829685688, 0.06402088701725006, 0.08240947872400284, -0.023530263453722, -0.010997452773153782, 0.0038964187260717154, -0.0440969280898571, 0.006333354394882917, 0.025119181722402573, -0.00971203576773405, -0.02076304703950882, 0.016826460137963295, 0.004766752943396568, -0.0067171938717365265, -0.02012033946812153, -0.04627499356865883, -0.011997221037745476, 0.03731278330087662, -0.054844439029693604, 0.006025389768183231, -0.0024793364573270082, -0.024405060335993767, 0.0454537570476532, 0.017549505457282066, -0.013773594982922077, -0.005793300922960043, 0.05477302521467209, 0.0013824922498315573, -0.06612753868103027, -0.023155350238084793, 0.0708407312631607, 0.05380896478891373, -0.041918858885765076, -0.015112570486962795, 0.0040593273006379604, 0.02485138550400734, 0.028975430876016617, 0.006605612579733133, 0.015666013583540916, 0.011827616952359676, -0.04963136091828346, 0.05655832588672638, -0.03284953162074089, 0.018111875280737877, 0.020995136350393295, 0.029975198209285736, -0.04056203365325928, -0.041597507894039154, -0.02599397860467434, 0.03368862345814705, -0.0054674833081662655, 0.05655832588672638, -0.08090982586145401, -0.00396336754783988, -0.07305450737476349, -0.03361721336841583, 0.034384891390800476, -0.06623465567827225, -0.02549409493803978, -0.04348992556333542, 0.06366382539272308, 0.020888017490506172, -0.04213309660553932, -0.009247858077287674, 0.04024067893624306, 0.053666140884160995, -0.060414575040340424, 0.033402975648641586, 0.08598008006811142, 0.019370513036847115, -0.000016022377167246304, -0.04531093314290047, 0.0012396682286635041, -0.004931893199682236, -0.009479946456849575, 0.0011308763641864061, -0.026386745274066925, -0.021923493593931198, -0.021120106801390648, 0.007194761652499437, 0.07223326712846756, -0.05591562017798424, 0.021209372207522392, -0.03692001849412918, -0.021191518753767014, 0.06362811475992203, 0.07462556660175323, -0.002246131421998143, 0.004240089096128941, -0.0507025420665741, 0.013300490565598011, 0.0057754479348659515, 0.06573477387428284, -0.04734617471694946, -0.034045685082674026, -0.019656160846352577, 0.06341388076543808, 0.01779944822192192, -0.04006214812397957, -0.03236750140786171, -0.012282868847250938, -0.08148112148046494, -0.03638442978262901, -0.02058451808989048, -0.0317426472902298, 0.02877904660999775, -0.01308625377714634, -0.00547194667160511, -0.031296320259571075, 0.08697985112667084, -0.07244750112295151, -0.007792837452143431, 0.012229309417307377, -0.00793566182255745, 0.007422387599945068, 0.03320659324526787, -0.0028810289222747087, 0.06205705180764198, 0.05666544288396835, 0.010827848687767982, 0.05959333851933479, 0.03970508649945259, -0.048774413764476776, -0.001496305107139051, -0.0372413732111454, -0.03317088633775711, -0.0020586748141795397, 0.02811848558485508, 0.018549274653196335, -0.03295665234327316, -0.024726415053009987, -0.032795973122119904, 0.0849803164601326, -0.022637613117694855, 0.007873176597058773, 0.012907723896205425, -0.0031912249978631735, -0.011854397132992744, 0.046489231288433075, -0.018549274653196335, 0.02415511943399906, -0.052059367299079895, 0.026511715725064278, -0.012211456894874573, -0.011649087071418762, -0.04759611561894417, 0.011577675119042397, -0.05905774608254433, -0.003197919810190797, -0.020959429442882538, 0.021619992330670357, 0.0051148864440619946, 0.03941943868994713, 0.004824775271117687, -0.029653845354914665, -0.02745792455971241, -0.004664097912609577, -0.04166891798377037, -0.03706284239888191, 0.06130722537636757, 0.01192580908536911, -0.015157203190028667, 0.02960028499364853, -0.034402742981910706, 0.019531190395355225, 0.004833701532334089, 0.017603065818548203, -0.031153498217463493, 0.024065854027867317, -0.012461398728191853, 0.025565506890416145, 0.0648421198129654, 0.0033853764180094004, 0.003278258489444852, 0.037991199642419815, -0.015407145023345947, 0.07180479168891907, 0.0019102717051282525, -0.020977282896637917, 0.010345817543566227, 0.022637613117694855, 0.0043672919273376465, 0.09062186628580093, 0.024940650910139084, 0.017781594768166542, -0.014898334629833698, 0.0023856081534177065, -0.0363130159676075, -0.007547358982264996, -0.005766521207988262, -0.020852312445640564, -0.026850922033190727, 0.05812939256429672, -0.04184744879603386, 0.042097389698028564, 0.013934272341430187, -0.043739866465330124, -0.040276385843753815, -0.031956881284713745, -0.004628391936421394, -0.0016781826270744205, -0.017201371490955353, 0.03152840957045555, 0.016799679026007652, -0.02795781008899212, -0.07180479168891907, -0.056629739701747894, 0.05134524777531624, 0.05038118734955788, -0.026351038366556168, -0.05266636982560158, -0.04213309660553932, 0.040954798460006714, -0.04448969289660454, 0.03088570199906826, -0.021762816235423088, -0.017192445695400238, 0.0000354619296558667, 0.0014092717319726944, 0.02699374593794346, 0.03306376934051514, 0.03056434728205204, -0.03659866377711296, 0.00914073921740055, -0.04645352438092232, 0.050916776061058044, 0.03809831663966179, 0.019691867753863335, -0.02236981876194477, 0.007931197993457317, -0.02399444207549095, -0.046346407383680344, 0.019174128770828247, -0.031171349808573723, 0.0379197858273983, 0.04645352438092232, -0.00312204472720623, -0.031796205788850784, 0.005730815231800079, 0.0012798374518752098, 0.01191688235849142, -0.05702250450849533, -0.02336958609521389, -0.04488246142864227, -0.0012318574590608478, 0.023262469097971916, 0.04809600114822388, -0.026065390557050705, -0.04074056074023247, -0.01217575091868639, -0.02797566168010235, -0.023012526333332062, 0.007123349700123072, 0.04884582757949829, 0.04038350284099579, 0.009587064385414124, -0.05655832588672638, -0.004264636896550655, 0.007489336654543877, -0.00690465047955513, 0.019674014300107956, 0.013889639638364315, -0.061699993908405304, -0.05345190316438675, -0.023494556546211243, -0.00478460593149066, -0.029546726495027542, 0.06744866073131561, -0.04823882505297661, 0.024904945865273476, 0.0037714478094130754, 0.011586601845920086, 0.05109530687332153, 0.01929910108447075, 0.07005520164966583, -0.061664287000894547, 0.01958474889397621, 0.06294970214366913, -0.018888480961322784, 0.011872249655425549, -0.0348312184214592, -0.02142360806465149, -0.03788408264517784, -0.015746353194117546, 0.02747577801346779, -0.0424901582300663, 0.04423975199460983, -0.04106191545724869, -0.009676329791545868, -0.03399212658405304, 0.015389292500913143, 0.02154858037829399, 0.04906006529927254, 0.043204277753829956, -0.02517274022102356, 0.0029345881193876266, 0.001343438751064241, 0.010676098056137562, 0.0039343563839793205, 0.05048830434679985, -0.015344659797847271, 0.005235394462943077, 0.0030350112356245518, 0.02369094081223011, 0.005293416790664196, 0.01807617023587227, 0.005119349807500839, 0.012943429872393608, -0.034063536673784256, 0.0054674833081662655, -0.03511686623096466, -0.08198101073503494, -0.00885955523699522, 0.05830791965126991, 0.05341619625687599, -0.023583821952342987, -0.01053327415138483, 0.007583064958453178, -0.009399608708918095, 0.015924882143735886, -0.010015537030994892, -0.02813633903861046, -0.0012909956276416779, 0.01829933188855648, -0.02270902507007122, 0.026922333985567093, 0.026868775486946106, -0.045203812420368195, -0.004532432183623314, 0.026690246537327766, -0.07384003698825836, -0.02711871825158596, 0.025208445265889168, 0.005824543535709381, 0.008118654601275921, 0.026725951582193375, 0.03572386875748634, -0.04074056074023247, -0.0026065390557050705, 0.025547653436660767, 0.005163982510566711, -0.0007492683944292367, -0.044525399804115295, -0.020530957728624344, 0.062199875712394714, -0.02826130948960781, 0.04809600114822388, -0.0395265594124794, -0.004891723860055208, -0.042740099132061005, -0.049738477915525436, -0.001749594695866108, -0.04099050536751747, -0.0011029810411855578, 0.007056401111185551, 0.02715442329645157, -0.02519059367477894, 0.0017004989786073565, -0.02074519358575344, -0.002407924272119999, 0.06341388076543808, -0.03447415679693222, -0.01397890504449606, -0.002492726081982255, 0.10847487300634384, -0.027511483058333397, 0.002550748409703374, 0.02094157785177231, 0.03345653414726257, 0.054665908217430115, -0.013095180504024029, 0.008270405232906342, -0.010934966616332531, -0.0023409754503518343, -0.028368428349494934, -0.00006506584031740203, -0.060414575040340424, -0.03151055797934532, 0.0035862228833138943, 0.005052401218563318, 0.020852312445640564, -0.019156277179718018, -0.015746353194117546, -0.003320659277960658, 0.0006633508019149303, 0.010845702141523361, -0.027547189965844154, 0.004005768336355686, 0.035902395844459534, -0.050416890531778336, -0.028386281803250313, -0.0076143075712025166, -0.021637843921780586, -0.01813865453004837, -0.05045259743928909, -0.04366845637559891, 0.07698217034339905, 0.007596454583108425, -0.05670114979147911, 0.046489231288433075, 0.04620358347892761, -0.010247626341879368, 0.01910271681845188, -0.041276153177022934, 0.029475314542651176, -0.033099476248025894, -0.06719871610403061, -0.006351207382977009, 0.030778585001826286, 0.04856017976999283, 0.017951197922229767, -0.05209507420659065, 0.027672160416841507, 0.01913842372596264, -0.04670346528291702, -0.003958904184401035, -0.014639466069638729, 0.015210761688649654, -0.045846521854400635, -0.0029859154019504786, -0.03895526006817818, -0.07648228108882904, 0.09462093561887741, -0.01543392427265644, -0.009658477269113064, -0.02303037978708744, -0.06159287318587303, 0.02893972396850586, -0.004989915527403355, -0.03856249526143074, 0.04823882505297661, -0.06377094238996506, -0.005529968999326229, 0.02285184897482395, 0.058450743556022644, -0.008533737622201443, -0.011979367583990097, 0.030367964878678322, -0.022476935759186745, 0.03281382843852043, 0.024922797456383705, -0.015112570486962795, -0.007882102392613888, 0.055344320833683014, -0.008016000501811504, -0.016710415482521057, 0.043739866465330124, -0.04488246142864227, 0.06377094238996506, 0.003985683899372816, -0.03024299442768097, 0.03970508649945259, -0.033420830965042114, 0.0038607127498835325, 0.03579527884721756, 0.033242300152778625, 0.017969051375985146, 0.019406218081712723, 0.04459681361913681, -0.06366382539272308, -0.07012661546468735, 0.013505799695849419, 0.0731259137392044, 0.021941345185041428, -0.043061453849077225, 0.009194298647344112, 0.04416833817958832, 0.0020017684437334538, 0.0014605991309508681, 0.00213455012999475, 0.032920945435762405, 0.0767679288983345, -0.03497404232621193, -0.009283564053475857, 0.05030977353453636, 0.07776769995689392, -0.05720103532075882, -0.07891029119491577, 0.047167643904685974, 0.05359472706913948, -0.031921178102493286, 0.008609612472355366, 0.020852312445640564, 0.05470161512494087, 0.014844775199890137, 0.003820543410256505, 0.041776034981012344, -0.03499189391732216, -0.017745889723300934, -0.046810586005449295, 0.007310806307941675, -0.02647600881755352, -0.04948853701353073, -0.08412337303161621, -0.03567030653357506, -0.0028743341099470854, 0.025422682985663414, 0.00493635656312108, 0.0591648668050766, -0.010238699615001678 ]
21,054
sortedcontainers.sorteddict
__repr__
Return string representation of sorted dict. ``sd.__repr__()`` <==> ``repr(sd)`` :return: string representation
"""Sorted Dict ============== :doc:`Sorted Containers<index>` is an Apache2 licensed Python sorted collections library, written in pure-Python, and fast as C-extensions. The :doc:`introduction<introduction>` is the best way to get started. Sorted dict implementations: .. currentmodule:: sortedcontainers * :class:`SortedDict` * :class:`SortedKeysView` * :class:`SortedItemsView` * :class:`SortedValuesView` """ import sys import warnings from itertools import chain from .sortedlist import SortedList, recursive_repr from .sortedset import SortedSet ############################################################################### # BEGIN Python 2/3 Shims ############################################################################### try: from collections.abc import ( ItemsView, KeysView, Mapping, ValuesView, Sequence ) except ImportError: from collections import ItemsView, KeysView, Mapping, ValuesView, Sequence ############################################################################### # END Python 2/3 Shims ############################################################################### class SortedDict(dict): """Sorted dict is a sorted mutable mapping. Sorted dict keys are maintained in sorted order. The design of sorted dict is simple: sorted dict inherits from dict to store items and maintains a sorted list of keys. Sorted dict keys must be hashable and comparable. The hash and total ordering of keys must not change while they are stored in the sorted dict. Mutable mapping methods: * :func:`SortedDict.__getitem__` (inherited from dict) * :func:`SortedDict.__setitem__` * :func:`SortedDict.__delitem__` * :func:`SortedDict.__iter__` * :func:`SortedDict.__len__` (inherited from dict) Methods for adding items: * :func:`SortedDict.setdefault` * :func:`SortedDict.update` Methods for removing items: * :func:`SortedDict.clear` * :func:`SortedDict.pop` * :func:`SortedDict.popitem` Methods for looking up items: * :func:`SortedDict.__contains__` (inherited from dict) * :func:`SortedDict.get` (inherited from dict) * :func:`SortedDict.peekitem` Methods for views: * :func:`SortedDict.keys` * :func:`SortedDict.items` * :func:`SortedDict.values` Methods for miscellany: * :func:`SortedDict.copy` * :func:`SortedDict.fromkeys` * :func:`SortedDict.__reversed__` * :func:`SortedDict.__eq__` (inherited from dict) * :func:`SortedDict.__ne__` (inherited from dict) * :func:`SortedDict.__repr__` * :func:`SortedDict._check` Sorted list methods available (applies to keys): * :func:`SortedList.bisect_left` * :func:`SortedList.bisect_right` * :func:`SortedList.count` * :func:`SortedList.index` * :func:`SortedList.irange` * :func:`SortedList.islice` * :func:`SortedList._reset` Additional sorted list methods available, if key-function used: * :func:`SortedKeyList.bisect_key_left` * :func:`SortedKeyList.bisect_key_right` * :func:`SortedKeyList.irange_key` Sorted dicts may only be compared for equality and inequality. """ def __init__(self, *args, **kwargs): """Initialize sorted dict instance. Optional key-function argument defines a callable that, like the `key` argument to the built-in `sorted` function, extracts a comparison key from each dictionary key. If no function is specified, the default compares the dictionary keys directly. The key-function argument must be provided as a positional argument and must come before all other arguments. Optional iterable argument provides an initial sequence of pairs to initialize the sorted dict. Each pair in the sequence defines the key and corresponding value. If a key is seen more than once, the last value associated with it is stored in the new sorted dict. Optional mapping argument provides an initial mapping of items to initialize the sorted dict. If keyword arguments are given, the keywords themselves, with their associated values, are added as items to the dictionary. If a key is specified both in the positional argument and as a keyword argument, the value associated with the keyword is stored in the sorted dict. Sorted dict keys must be hashable, per the requirement for Python's dictionaries. Keys (or the result of the key-function) must also be comparable, per the requirement for sorted lists. >>> d = {'alpha': 1, 'beta': 2} >>> SortedDict([('alpha', 1), ('beta', 2)]) == d True >>> SortedDict({'alpha': 1, 'beta': 2}) == d True >>> SortedDict(alpha=1, beta=2) == d True """ if args and (args[0] is None or callable(args[0])): _key = self._key = args[0] args = args[1:] else: _key = self._key = None self._list = SortedList(key=_key) # Reaching through ``self._list`` repeatedly adds unnecessary overhead # so cache references to sorted list methods. _list = self._list self._list_add = _list.add self._list_clear = _list.clear self._list_iter = _list.__iter__ self._list_reversed = _list.__reversed__ self._list_pop = _list.pop self._list_remove = _list.remove self._list_update = _list.update # Expose some sorted list methods publicly. self.bisect_left = _list.bisect_left self.bisect = _list.bisect_right self.bisect_right = _list.bisect_right self.index = _list.index self.irange = _list.irange self.islice = _list.islice self._reset = _list._reset if _key is not None: self.bisect_key_left = _list.bisect_key_left self.bisect_key_right = _list.bisect_key_right self.bisect_key = _list.bisect_key self.irange_key = _list.irange_key self._update(*args, **kwargs) @property def key(self): """Function used to extract comparison key from keys. Sorted dict compares keys directly when the key function is none. """ return self._key @property def iloc(self): """Cached reference of sorted keys view. Deprecated in version 2 of Sorted Containers. Use :func:`SortedDict.keys` instead. """ # pylint: disable=attribute-defined-outside-init try: return self._iloc except AttributeError: warnings.warn( 'sorted_dict.iloc is deprecated.' ' Use SortedDict.keys() instead.', DeprecationWarning, stacklevel=2, ) _iloc = self._iloc = SortedKeysView(self) return _iloc def clear(self): """Remove all items from sorted dict. Runtime complexity: `O(n)` """ dict.clear(self) self._list_clear() def __delitem__(self, key): """Remove item from sorted dict identified by `key`. ``sd.__delitem__(key)`` <==> ``del sd[key]`` Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> del sd['b'] >>> sd SortedDict({'a': 1, 'c': 3}) >>> del sd['z'] Traceback (most recent call last): ... KeyError: 'z' :param key: `key` for item lookup :raises KeyError: if key not found """ dict.__delitem__(self, key) self._list_remove(key) def __iter__(self): """Return an iterator over the keys of the sorted dict. ``sd.__iter__()`` <==> ``iter(sd)`` Iterating the sorted dict while adding or deleting items may raise a :exc:`RuntimeError` or fail to iterate over all keys. """ return self._list_iter() def __reversed__(self): """Return a reverse iterator over the keys of the sorted dict. ``sd.__reversed__()`` <==> `
(self)
[ 0.033440399914979935, 0.017035868018865585, -0.09311176091432571, -0.020212911069393158, 0.04211616888642311, 0.036597076803445816, -0.006598471198230982, 0.03052811324596405, 0.03297199308872223, -0.08626890182495117, -0.055109456181526184, 0.011292754672467709, 0.05221753194928169, 0.023787083104252815, -0.03067067265510559, 0.03354223072528839, 0.023400135338306427, 0.06060818210244179, -0.04293079674243927, -0.012219391763210297, -0.032768335193395615, -0.014734549447894096, 0.0514843687415123, 0.0514843687415123, -0.02329830639064312, 0.0022109460551291704, 0.016587823629379272, -0.02179124765098095, 0.009408931247889996, -0.008823418989777565, 0.017320986837148666, -0.019673220813274384, 0.002058203797787428, -0.014276322908699512, -0.005702382884919643, -0.045333944261074066, 0.04521174728870392, 0.05356166511774063, 0.02820642851293087, 0.05820503458380699, -0.0057583884336054325, -0.022402217611670494, 0.01946956478059292, -0.06875444203615189, 0.02152649499475956, 0.07824483513832092, 0.0304059199988842, 0.0313631035387516, 0.04199397563934326, -0.021363569423556328, 0.04362322762608528, -0.029509831219911575, 0.017952322959899902, -0.03541586920619011, -0.0416681244969368, 0.02737143635749817, 0.038348522037267685, 0.05739041045308113, 0.029082151129841805, -0.019428832456469536, 0.0017018048092722893, 0.016699835658073425, -0.01206664927303791, -0.06826566904783249, -0.047370508313179016, -0.015314971096813679, -0.029957875609397888, -0.05140290781855583, -0.03067067265510559, -0.00409349612891674, -0.007341817952692509, 0.013237673789262772, 0.02080351486802101, 0.03266650810837746, -0.0047375597059726715, 0.03307382017374039, -0.04488589987158775, -0.022931724786758423, 0.021893076598644257, -0.05441702529788017, 0.054009709507226944, -0.021709784865379333, 0.036597076803445816, -0.00038822024362161756, 0.04337884113192558, 0.008421197533607483, 0.03747279942035675, 0.04822586476802826, 0.04170885682106018, 0.04753343388438225, -0.006277712527662516, 0.021770883351564407, 0.011028001084923744, 0.006878498941659927, -0.020844245329499245, 0.009093264117836952, -0.003416338237002492, -0.06667714565992355, 0.006623928435146809, 0.015447347424924374, 0.014693818055093288, 0.03138346970081329, -0.028043502941727638, -0.0009412749786861241, -0.025681087747216225, -0.009851884096860886, -0.034540146589279175, 0.016720199957489967, -0.03655634820461273, -0.023950006812810898, -0.07095393538475037, -0.001317403162829578, 0.020070349797606468, -0.002335685770958662, 0.03706548735499382, -0.005468177609145641, -0.006669751368463039, -0.06521081924438477, 0.014887291938066483, -0.0202332753688097, -0.03130200877785683, -0.029530195519328117, -0.008523025549948215, 0.023644521832466125, -0.014948388561606407, -0.0407109409570694, 0.014052300713956356, 0.00821244902908802, -0.039468634873628616, -0.00878777913749218, 0.03162785992026329, 0.005850033834576607, -0.025925476104021072, 0.030487382784485817, 0.08077017962932587, -0.010075906291604042, 0.022850262001156807, 0.03050774708390236, -0.04105715453624725, 0.08178845793008804, 0.08504696190357208, -0.04826659709215164, 0.02466280572116375, 0.0156815517693758, -0.013410782441496849, -0.05857161805033684, -0.013115480542182922, 0.03853181377053261, 0.009174726903438568, 0.0237056203186512, -0.03219809755682945, -0.013797729276120663, 0.0323202908039093, 0.033603325486183167, -0.011343668214976788, -0.02818606235086918, -0.02767692133784294, -0.06582178920507431, -0.05596481263637543, 0.023522328585386276, -0.0021154822316020727, -0.03665817528963089, 0.008726682513952255, -0.03449941426515579, -0.03223882615566254, 0.02439805120229721, 0.015864843502640724, -0.050751205533742905, -0.03299235552549362, 0.031098350882530212, 0.0025291594211012125, 0.022809531539678574, -0.033175647258758545, -0.0031006706412881613, 0.0032075901981443167, 0.00032807793468236923, -0.03914278373122215, 0.03582318127155304, -0.007107612676918507, -0.028308257460594177, 0.02671973593533039, 0.019102981314063072, -0.047777820378541946, 0.010040266439318657, -0.006537374574691057, 0.06101549416780472, 0.0009170908015221357, 0.0072094411589205265, 0.0404665507376194, 0.022809531539678574, -0.03995741158723831, -0.02861374244093895, 0.029367271810770035, -0.03655634820461273, -0.024907192215323448, 0.04009997099637985, -0.06802128255367279, -0.012158294208347797, 0.06382595747709274, 0.06093403324484825, -0.04851098358631134, -0.007408006116747856, 0.04602637514472008, 0.00008814509055810049, 0.03533440828323364, -0.004844479728490114, -0.03179078549146652, -0.03244248405098915, 0.011160377413034439, 0.013380234129726887, -0.00674103107303381, -0.08683913946151733, -0.013991203159093857, -0.02423512563109398, 0.004892847966402769, -0.053602397441864014, 0.006603562738746405, -0.02138393558561802, 0.018166162073612213, -0.07013930380344391, 0.09392639249563217, 0.02834898792207241, 0.008090255782008171, -0.031811147928237915, 0.03637305647134781, -0.010681784711778164, 0.018573476001620293, 0.008721590973436832, 0.012728532776236534, -0.028002772480249405, 0.077593132853508, -0.060689643025398254, 0.03541586920619011, 0.009897707030177116, 0.08129968494176865, -0.08512842655181885, -0.0013594073243439198, -0.03197407349944115, -0.017035868018865585, 0.023115016520023346, -0.05954916775226593, 0.07335708290338516, 0.07343854010105133, 0.001723443390801549, -0.09172689914703369, -0.004862299654632807, 0.016913674771785736, 0.017137696966528893, -0.0029708396177738905, 0.009495485574007034, -0.00516523839905858, -0.02289099432528019, -0.04496736079454422, -0.019744500517845154, 0.018614206463098526, 0.0045288121327757835, -0.009103446267545223, -0.04456004872918129, -0.007194166537374258, -0.022524410858750343, 0.018502194434404373, -0.030283724889159203, -0.039163149893283844, 0.04989584907889366, 0.03777828440070152, 0.010111546143889427, 0.07018003612756729, 0.02248368039727211, -0.03751353174448013, 0.05588335171341896, 0.10728625953197479, -0.025966206565499306, -0.02260587364435196, -0.011364034377038479, -0.039590828120708466, 0.05189168453216553, 0.018257807940244675, -0.04863317683339119, -0.051158517599105835, 0.024866461753845215, 0.02930617332458496, -0.013797729276120663, -0.06472204625606537, 0.00780004495754838, 0.008181900717318058, 0.04712612181901932, -0.06785835325717926, 0.004437166731804609, -0.027065951377153397, 0.012127745896577835, 0.057146020233631134, -0.002644989173859358, 0.01936773583292961, -0.010915989987552166, 0.013359867967665195, 0.013716267421841621, -0.07180929183959961, -0.0378393828868866, 0.033460766077041626, 0.01773848384618759, -0.0023280486930161715, -0.030283724889159203, 0.06158573180437088, 0.021852344274520874, 0.053643129765987396, 0.01934736967086792, 0.016598006710410118, -0.010895623825490475, -0.054987262934446335, -0.012178660370409489, -0.010274471715092659, 0.02631242386996746, -0.008680859580636024, 0.029917143285274506, -0.0034697980154305696, -0.08463965356349945, -0.06757323443889618, -0.01853274367749691, -0.0023585972376167774, 0.08301039785146713, -0.06113768741488457, 0.03914278373122215, -0.05119924992322922, -0.04415273293852806, 0.02140430174767971, -0.03777828440070152, 0.03527330979704857, 0.028043502941727638, 0.028247160837054253, 0.08170700073242188, -0.006898864638060331, -0.021852344274520874, 0.05767552927136421, 0.04794074594974518, 0.023624157533049583, -0.0003236229531466961, 0.009846792556345463, 0.00895579531788826, -0.025009021162986755, -0.08635036647319794, 0.004841933958232403, 0.0022707702592015266, 0.01738208532333374, -0.03623049706220627, 0.016129596158862114, -0.024214761331677437, 0.04126081243157387, 0.008701224811375141, 0.026923391968011856, -0.03054847940802574, 0.047777820378541946, -0.015467713586986065, -0.03107798658311367, 0.01764683797955513, 0.027595458552241325, -0.031811147928237915, 0.002366234315559268, -0.008400831371545792, 0.025966206565499306, -0.0189196914434433, 0.020406384021043777, -0.03024299442768097, -0.05901966243982315, -0.03900022432208061, -0.008151352405548096, -0.044234197586774826, -0.03403100371360779, -0.07054661959409714, -0.014194860123097897, -0.039326075464487076, 0.03242211788892746, -0.08125895261764526, 0.0026984489522874355, 0.007917147129774094, -0.015121497213840485, -0.027310339733958244, 0.018206892535090446, 0.05995647981762886, -0.02519231289625168, 0.021913442760705948, 0.034132834523916245, 0.0433381088078022, 0.0203554704785347, 0.03162785992026329, -0.02861374244093895, -0.02494792453944683, 0.03502892330288887, 0.0371062196791172, 0.006557740271091461, 0.007820410653948784, -0.07555656880140305, -0.025803280994296074, -0.005269612651318312, 0.002432422712445259, -0.04965146258473396, 0.008161535486578941, 0.037676457315683365, -0.014805829152464867, -0.031281642615795135, -0.04289006441831589, 0.09995462000370026, -0.007000693120062351, 0.013563524931669235, 0.016913674771785736, 0.05303215980529785, 0.0018609114922583103, 0.04207543656229973, 0.00651191733777523, -0.02219856157898903, 0.030609576031565666, 0.001743808970786631, -0.008411014452576637, -0.05066974461078644, -0.009118720889091492, 0.0009915527189150453, -0.02902105450630188, -0.05576115846633911, 0.03380698338150978, 0.04240128770470619, 0.013777364045381546, 0.021343203261494637, -0.04504882171750069, -0.02164868824183941, 0.05983428657054901, -0.007993518374860287, -0.018206892535090446, -0.014520710334181786, 0.0026628091000020504, -0.014123580418527126, -0.016720199957489967, 0.07453829050064087, 0.0191538967192173, -0.04115898534655571, 0.015050217509269714, 0.029204346239566803, -0.017280256375670433, 0.012922006659209728, -0.0045568146742880344, 0.024601709097623825, 0.04411200433969498, -0.00971950776875019, 0.03963156044483185, 0.06260401755571365, 0.020844245329499245, 0.06639202684164047, 0.05942697450518608, 0.028715569525957108, -0.001533788163214922, 0.05413190275430679, -0.02535523660480976, 0.06586252152919769, 0.01063087023794651, 0.045700524002313614, -0.01946956478059292, -0.07840776443481445, -0.06908029317855835, -0.021058084443211555, 0.055679693818092346, -0.06032306328415871, -0.017921773716807365, 0.04965146258473396, 0.01858365722000599, 0.03337930515408516, -0.01457162480801344, -0.09767366945743561, 0.039509367197752, -0.023868544027209282, 0.022728068754076958, -0.0490812212228775, 0.011964821256697178, 0.025416335090994835, -0.02097662165760994, -0.048877567052841187, -0.019632488489151, -0.059467706829309464, 0.020223092287778854, 0.04606710746884346, -0.04594491049647331, -0.04989584907889366, -0.020100899040699005, 0.03223882615566254, -0.05311362072825432, 0.05233972892165184, -0.0029097425285726786, -0.008492477238178253, -0.03311455249786377, 0.02437768690288067, 0.00023531874467153102, -0.028308257460594177, -0.012585973367094994, -0.007688033860176802, -0.08199211955070496, -0.00032839615596458316, -0.0030217536259442568, 0.016435081139206886, 0.009113629348576069, -0.0316074937582016, -0.017677387222647667, -0.001532515394501388, -0.05523164942860603, 0.004948853515088558, 0.014317053370177746, 0.03533440828323364, 0.07152417302131653, 0.062481820583343506, -0.004620457533746958, 0.017259890213608742, 0.0005034134956076741, -0.003375606844201684, -0.0869206041097641, 0.00037517352029681206, -0.0294487327337265, 0.030018972232937813, -0.04264567792415619, 0.0294487327337265, -0.021852344274520874, -0.06447765231132507, -0.01800323650240898, -0.01934736967086792, -0.03354223072528839, 0.01471418421715498, 0.026638273149728775, 0.02051839418709278, -0.02331867255270481, 0.00962786190211773, 0.013960654847323895, -0.0013670444022864103, 0.01566118746995926, 0.026454983279109, 0.013563524931669235, -0.003668363206088543, -0.004518629051744938, 0.007163618225604296, -0.03641378507018089, 0.02044711448252201, 0.07127978652715683, -0.05128071457147598, 0.005702382884919643, -0.04001850634813309, 0.036047205328941345, 0.0706280842423439, 0.06011940538883209, 0.029061786830425262, -0.08545427769422531, 0.028002772480249405, 0.013125662691891193, -0.03093542717397213, -0.06736958026885986, -0.031811147928237915, 0.01601758599281311, -0.03527330979704857, -0.01685257814824581, 0.05343947187066078, 0.01996852271258831, 0.022687336429953575, -0.024418417364358902, -0.008523025549948215, -0.013502427376806736, 0.05221753194928169, 0.010773430578410625, 0.009195092134177685, 0.04985511675477028, -0.07180929183959961, -0.025681087747216225, 0.006532283034175634, 0.03199443966150284, 0.007143252529203892, 0.001723443390801549, 0.020029619336128235, 0.022422583773732185, 0.01404211763292551, 0.027900943532586098, 0.0078407758846879, 0.008329551666975021, -0.029876412823796272, -0.005911130458116531, -0.023644521832466125, 0.03010043501853943, 0.008670676499605179, -0.08765377104282379, 0.0010170097230002284, -0.0018914600368589163, 0.07413097470998764, -0.0057176570408046246, -0.009358017705380917, -0.009775512851774693, -0.007611662615090609, 0.05869381129741669, -0.008726682513952255, -0.04671880602836609, -0.027758384123444557, -0.07848922163248062, 0.004062947817146778, -0.0509955957531929, 0.013390416279435158, -0.016261974349617958, -0.05588335171341896, 0.009597313590347767, 0.0000344068139384035, -0.020895158872008324, 0.01776903122663498, -0.009113629348576069, 0.012555425055325031, -0.001537606818601489, 0.04635222628712654, -0.009856975637376308, 0.06798055022954941, -0.03747279942035675, 0.03203517198562622, -0.018705852329730988, -0.031546395272016525, 0.02113954722881317, 0.03747279942035675, -0.024194395169615746, 0.0123924994841218, -0.030853964388370514, 0.04480443522334099, 0.013044200837612152, 0.036332324147224426, -0.012860910035669804, -0.012056466192007065, -0.016435081139206886, 0.02069150283932686, 0.03853181377053261, -0.030446650460362434, -0.05331727862358093, -0.010294836945831776, 0.04920341819524765, 0.037961576133966446, -0.0025546166580170393, 0.02902105450630188, -0.02152649499475956, 0.04798147827386856, 0.04647441953420639, 0.002567345043644309, -0.005534366238862276, 0.0007210713811218739, -0.022157829254865646, 0.0032483215909451246, 0.034275393933057785, 0.03342003747820854, 0.007362183183431625, 0.006384632084518671, 0.036067571491003036, -0.02777875028550625, 0.0006937050493434072, 0.021363569423556328, 0.013288588263094425, 0.07266464829444885, 0.010915989987552166, 0.013217308558523655, 0.029489465057849884, -0.02792130969464779, -0.03148530051112175, -0.07580095529556274, -0.0014001386007294059, 0.005982410628348589, -0.02423512563109398, -0.025782916694879532, 0.03036518767476082, 0.016964588314294815, -0.02236148715019226, 0.0015579723985865712, -0.03724877908825874, 0.01259615644812584, -0.032564677298069, -0.01716824434697628, 0.10663455724716187, 0.018644755706191063, 0.0430937223136425, 0.034417953342199326, -0.05767552927136421, 0.007087246980518103, 0.004083313513547182, -0.02413329854607582, -0.0013937742915004492, -0.009566765278577805, 0.04374542087316513, -0.009286738000810146, -0.041342273354530334, 0.046270761638879776, 0.0531543530523777, -0.05572042614221573, -0.013614438474178314, -0.006756305228918791, 0.03435685485601425, -0.027595458552241325, -0.035232577472925186, -0.022870628163218498, -0.04989584907889366, 0.00814116932451725, -0.042319826781749725, -0.0075149256736040115, -0.03749316558241844, -0.07123905420303345, -0.013512610457837582, -0.005478360690176487, 0.0065679228864610195, 0.0294487327337265, -0.0608118399977684, 0.061911582946777344, 0.010936355218291283, 0.07360146939754486, 0.03580281883478165, -0.03038555383682251, 0.0062420726753771305, -0.05751260370016098, 0.025151580572128296, 0.021852344274520874, -0.012993286363780499, 0.01888914220035076, 0.051850952208042145, -0.018155978992581367, -0.09180836379528046, 0.02087479457259178, -0.02779911644756794, 0.06398887932300568, 0.01951029524207115, 0.010167552158236504, 0.007850958965718746, 0.00846192892640829, -0.019795414060354233, 0.04895902797579765, -0.014164311811327934, 0.033603325486183167, 0.02080351486802101, 0.009775512851774693, -0.0509955957531929, -0.09588149189949036, -0.013166394084692001, 0.015864843502640724, 0.018665120005607605, -0.042604945600032806, -0.020620223134756088, -0.024336954578757286, -0.03647488355636597, 0.0052543384954333305, -0.01649617776274681, 0.03559916093945503, 0.07290903478860855, -0.00888451561331749, 0.02533487230539322, -0.006863224785774946, -0.004348066635429859, -0.028287891298532486, -0.027717653661966324, 0.02712704986333847, -0.030467016622424126, 0.004505900666117668, 0.01443924754858017, 0.019428832456469536, -0.028980324044823647, -0.03490673005580902, -0.014917840249836445, 0.04431565850973129, 0.0017272619297727942, -0.06504789739847183, 0.02138393558561802, -0.0064711859449744225, -0.02221892774105072, -0.04321591556072235, -0.054865069687366486, -0.027025220915675163, -0.00762693677097559, -0.005002313293516636, 0.01872621662914753, -0.014734549447894096, 0.015223325230181217 ]
21,055
sortedcontainers.sorteddict
__reversed__
Return a reverse iterator over the keys of the sorted dict. ``sd.__reversed__()`` <==> ``reversed(sd)`` Iterating the sorted dict while adding or deleting items may raise a :exc:`RuntimeError` or fail to iterate over all keys.
def __reversed__(self): """Return a reverse iterator over the keys of the sorted dict. ``sd.__reversed__()`` <==> ``reversed(sd)`` Iterating the sorted dict while adding or deleting items may raise a :exc:`RuntimeError` or fail to iterate over all keys. """ return self._list_reversed()
(self)
[ -0.003630215534940362, 0.03785058856010437, -0.07879804819822311, -0.03158803656697273, -0.020662980154156685, -0.004161414224654436, -0.023088859394192696, 0.05942542478442192, 0.11513461172580719, -0.05023805424571037, -0.04177328571677208, 0.013075658120214939, -0.005423817317932844, 0.02157483622431755, -0.0036173120606690645, 0.07804103195667267, 0.004830251447856426, 0.04755410552024841, -0.059494245797395706, -0.016826307401061058, 0.00038065650733187795, 0.017196210101246834, 0.010168044827878475, 0.010047610849142075, -0.04001839458942413, 0.0065206242725253105, -0.02286519668996334, -0.03215579688549042, 0.028646014630794525, 0.010589562356472015, 0.012895007617771626, -0.018116667866706848, 0.04101627320051193, 0.001648436184041202, 0.015398307703435421, -0.044766925275325775, -0.002473191823810339, 0.01809946447610855, -0.0031033181585371494, 0.0649653747677803, 0.049584273248910904, -0.016241343691945076, 0.0361989289522171, -0.017471488565206528, 0.055984463542699814, 0.03456446900963783, 0.005987274926155806, 0.0008494876674376428, 0.04579921439290047, -0.04225502163171768, 0.04456046596169472, -0.01785859651863575, 0.02644379809498787, 0.002640938851982355, -0.040844228118658066, 0.002797932829707861, 0.0068131061270833015, 0.018460765480995178, 0.0036710770800709724, 0.02405232936143875, -0.01938982494175434, -0.0634857639670372, -0.03270635008811951, -0.030865434557199478, 0.017179006710648537, -0.03406552970409393, -0.036680661141872406, -0.04208297282457352, -0.009213177487254143, -0.016998356208205223, -0.05168325826525688, 0.028164278715848923, -0.004367872141301632, 0.010082020424306393, -0.05918455868959427, -0.00009052688983501866, -0.019854353740811348, 0.01473592221736908, -0.015209054574370384, -0.058461956679821014, -0.020267270505428314, -0.007492696400731802, 0.002092535374686122, 0.034495651721954346, -0.012585320509970188, 0.001591445179656148, 0.09641577303409576, -0.019613487645983696, -0.00872714165598154, 0.07466889172792435, -0.04590244218707085, 0.002559215994551778, -0.017927415668964386, -0.007385165896266699, -0.020645776763558388, -0.012860598042607307, -0.05539949983358383, -0.02360500395298004, -0.007195913232862949, -0.021058691665530205, 0.044319599866867065, 0.03840114176273346, 0.02267594449222088, 0.04390668496489525, 0.015707993879914284, -0.03198374807834625, -0.030383700504899025, -0.061593230813741684, -0.03743767365813255, -0.004718420095741749, -0.029884761199355125, 0.06616970896720886, 0.02807825617492199, 0.0008618535939604044, 0.016852114349603653, -0.032121386379003525, 0.02281358279287815, -0.017394065856933594, 0.04617771878838539, -0.01473592221736908, -0.01775536686182022, 0.003518384415656328, -0.02186731807887554, 0.01711878925561905, -0.0451454296708107, -0.018219897523522377, 0.024878159165382385, 0.04001839458942413, -0.05877164378762245, 0.007793780416250229, 0.03394509479403496, -0.008051852695643902, -0.05192412808537483, 0.0515800304710865, 0.078385129570961, -0.027493292465806007, 0.09352536499500275, 0.04438841715455055, 0.0033248302061110735, 0.07336132228374481, 0.03781617805361748, 0.010753008536994457, 0.02296842634677887, 0.06276316195726395, -0.004109799861907959, -0.04552393779158592, -0.020301679149270058, 0.08478531986474991, 0.04325290024280548, 0.00434206472709775, -0.020267270505428314, 0.05443602800369263, 0.051270343363285065, 0.04280557483434677, -0.020370498299598694, -0.020662980154156685, -0.061490003019571304, -0.0037033359985798597, -0.05264673009514809, 0.014099344611167908, -0.00398291414603591, 0.019785534590482712, -0.022108184173703194, -0.11279475688934326, -0.001753815682604909, 0.003696884261444211, 0.07673346996307373, -0.04872403293848038, 0.0017516650259494781, 0.04445723816752434, -0.01007341779768467, -0.02346736565232277, -0.024878159165382385, -0.011561634950339794, -0.025325484573841095, 0.001901131821796298, -0.008464768528938293, 0.06713318079710007, 0.009514261968433857, 0.014581079594790936, 0.0016011229017749429, 0.008641117252409458, -0.039605479687452316, -0.06789018958806992, 0.02708037570118904, 0.009600285440683365, -0.002899011131376028, 0.0322418212890625, 0.04108509421348572, -0.012421875260770321, -0.04256470873951912, -0.040947455912828445, 0.018718836829066277, -0.03575160354375839, 0.013325127772986889, -0.002062426880002022, -0.06654822081327438, 0.02241787128150463, 0.011501417495310307, 0.06255669891834259, -0.069473035633564, -0.017239222303032875, 0.01044332142919302, -0.017789777368307114, 0.009092743508517742, 0.014615489169955254, -0.02186731807887554, -0.06723640859127045, 0.03898610547184944, 0.016344573348760605, 0.029144953936338425, -0.0421517938375473, -0.0010747631313279271, -0.05147680267691612, -0.004234534688293934, -0.029678303748369217, -0.024035124108195305, -0.015045609325170517, 0.018340330570936203, -0.029781531542539597, 0.04191092401742935, -0.001329071819782257, -0.003591504879295826, -0.05433280020952225, -0.011811104603111744, -0.012215417809784412, -0.007978731766343117, -0.03853878006339073, -0.03403111919760704, -0.014443440362811089, 0.03884846717119217, 0.005905552301555872, 0.0023054450284689665, -0.03268914669752121, 0.08870802074670792, -0.007613129913806915, -0.0624878816306591, -0.02212538942694664, 0.009238984435796738, 0.060595352202653885, -0.03637097403407097, 0.0882951021194458, 0.03530427813529968, 0.008808864280581474, -0.07005800306797028, 0.0446636937558651, 0.027166400104761124, 0.02912774868309498, 0.021110305562615395, 0.02117912471294403, 0.010950863361358643, -0.05595005303621292, -0.02186731807887554, 0.01591445319354534, 0.03661184385418892, -0.04411314055323601, -0.011398188769817352, -0.06455245614051819, 0.033566590398550034, 0.012267031706869602, 0.016439199447631836, 0.009359418414533138, -0.043872274458408356, 0.046005669981241226, 0.013015441596508026, 0.003161384491249919, 0.04074099659919739, 0.004830251447856426, -0.007144298870116472, 0.04242707043886185, 0.057464078068733215, -0.06517183035612106, -0.07645819336175919, -0.027751363813877106, 0.00171725545078516, 0.0779033973813057, 0.04156683012843132, -0.015286476351320744, -0.04493897408246994, 0.015621970407664776, 0.018168283626437187, -0.015372500754892826, -0.02768254466354847, -0.012034767307341099, -0.012817585840821266, 0.03382466360926628, -0.023192089051008224, -0.0387108288705349, 0.024774931371212006, 0.021110305562615395, 0.1244940310716629, 0.032912809401750565, -0.020198451355099678, 0.00684751570224762, 0.04731323570013046, -0.0759076327085495, -0.024379219859838486, -0.06637617200613022, 0.05175207927823067, 0.06754609942436218, 0.012456284835934639, -0.04394109174609184, 0.041394781321287155, 0.033859074115753174, 0.005763612221926451, 0.018477968871593475, 0.0401904433965683, 0.024482449516654015, -0.030486928299069405, -0.004954986274242401, -0.03595805913209915, 0.009281996637582779, -0.04170446842908859, 0.025067413225769997, -0.030985869467258453, -0.06813105940818787, -0.039261382073163986, -0.001267779734916985, -0.017342451959848404, 0.09655341506004333, -0.08251428604125977, 0.044973380863666534, -0.03750649467110634, -0.0634857639670372, -0.013996115885674953, -0.01039170753210783, -0.033411748707294464, 0.036233335733413696, 0.07866040617227554, 0.03065897710621357, 0.03249989077448845, -0.07267313450574875, 0.017497295513749123, 0.0684751570224762, 0.0038280710577964783, 0.02818148396909237, 0.05550272762775421, 0.04996277764439583, -0.013385344296693802, -0.0723978579044342, 0.005122733302414417, -0.014907971024513245, 0.010056213475763798, -0.03778177127242088, -0.015389705076813698, 0.027493292465806007, -0.000971534289419651, -0.011036887764930725, 0.033205289393663406, 0.010090623050928116, 0.027269629761576653, 0.0019613488111644983, -0.007905611768364906, 0.043872274458408356, 0.025170641019940376, 0.014426236040890217, 0.03377304971218109, -0.004959287587553263, 0.006339973770081997, -0.004890467971563339, 0.01657683774828911, 0.0004785088822245598, -0.08265192061662674, -0.023845871910452843, 0.016456404700875282, -0.05884046107530594, -0.03805704787373543, -0.0630040243268013, -0.007604527287185192, 0.01205197162926197, -0.049377813935279846, -0.02966109849512577, 0.04559275507926941, 0.026564231142401695, -0.018667222931981087, -0.02505020797252655, -0.009428237564861774, 0.059597473591566086, 0.021093100309371948, 0.038366734981536865, 0.038366734981536865, -0.006619551684707403, 0.02639218419790268, 0.03953666239976883, -0.015621970407664776, -0.015664981678128242, 0.0006844289600849152, 0.013522983528673649, 0.04641858488321304, 0.00491197407245636, -0.06730522960424423, -0.05815226957201958, 0.0008892737678252161, -0.025067413225769997, -0.027716953307390213, -0.015191850252449512, 0.01163045410066843, -0.015123031102120876, -0.010348695330321789, -0.03933020308613777, 0.07109028846025467, 0.017600523307919502, -0.017591921612620354, 0.02157483622431755, 0.04132596030831337, -0.051958534866571426, 0.020215654745697975, -0.001166701433248818, 0.020869437605142593, -0.026082497090101242, -0.029506254941225052, -0.04074099659919739, -0.03253430128097534, -0.03984634578227997, 0.05102947726845741, -0.062074966728687286, -0.03141598775982857, 0.03974311798810959, 0.03377304971218109, 0.06283197551965714, 0.022503895685076714, -0.02049093320965767, -0.01014223787933588, 0.0086841294541955, 0.01108850259333849, -0.025669582188129425, 0.0036538722924888134, 0.01859840378165245, -0.04886167123913765, 0.025480328127741814, 0.035441916435956955, -0.02186731807887554, 0.03440962731838226, -0.012895007617771626, 0.026151316240429878, 0.012335850857198238, -0.0012570266844704747, -0.005982973612844944, -0.017875801771879196, 0.05268113687634468, -0.00424313684925437, 0.007432479411363602, 0.012645537964999676, -0.024774931371212006, 0.05144239217042923, 0.057567305862903595, 0.02986755594611168, 0.00085862772539258, 0.1458968222141266, -0.020766209810972214, 0.019269390031695366, 0.0034603180829435587, 0.020215654745697975, -0.006873323116451502, -0.034203168004751205, -0.04325290024280548, -0.01510582584887743, -0.0017484391573816538, -0.060492124408483505, -0.0032538603991270065, 0.03191492706537247, -0.012757369317114353, 0.013712235726416111, -0.024860955774784088, -0.024379219859838486, 0.017179006710648537, -0.006073298864066601, 0.028732039034366608, -0.031209532171487808, -0.004260342102497816, 0.04954986274242401, -0.02236625738441944, -0.029351411387324333, -0.0689568892121315, -0.025033002719283104, 0.029334206134080887, 0.020250065252184868, -0.017944620922207832, -0.019561871886253357, -0.020766209810972214, 0.009720719419419765, -0.05188971757888794, -0.02162645012140274, -0.025308281183242798, 0.0007430328987538815, -0.056431788951158524, -0.050823017954826355, 0.011475610546767712, 0.00497219106182456, -0.003630215534940362, 0.06482774019241333, -0.05674147605895996, -0.0342375785112381, 0.04235824942588806, 0.06575679779052734, -0.007604527287185192, -0.024035124108195305, -0.016396187245845795, 0.00340440240688622, -0.023106064647436142, 0.015639174729585648, -0.01672307774424553, 0.03453005850315094, 0.02386307530105114, 0.0013204694259911776, 0.04380345344543457, 0.0001246676838491112, 0.005406612530350685, -0.016499415040016174, -0.07053973525762558, 0.039949577301740646, -0.030985869467258453, 0.019682306796312332, -0.010408911854028702, 0.013686428777873516, -0.021695269271731377, -0.06441482156515121, -0.0021366227883845568, 0.009608888067305088, 0.04872403293848038, 0.005608769133687019, 0.010839032009243965, -0.029970785602927208, 0.010709996335208416, -0.015389705076813698, -0.003436661558225751, -0.05636296793818474, -0.015002597123384476, 0.04951545223593712, 0.004791540559381247, 0.004086143337190151, -0.023639412596821785, 0.06737405061721802, -0.019665101543068886, -0.004567877855151892, 0.04676268249750137, -0.02554914727807045, 0.00823680404573679, -0.018822066485881805, 0.05584682524204254, 0.06407072395086288, 0.03699034824967384, 0.032912809401750565, -0.060492124408483505, 0.014503657817840576, 0.03379025310277939, -0.051958534866571426, -0.0391925647854805, -0.004346366040408611, 0.008279816247522831, -0.06864720582962036, 0.004813046660274267, 0.04449164867401123, -0.02331252209842205, -0.05099506676197052, -0.01711878925561905, -0.008464768528938293, 0.019475849345326424, 0.020164040848612785, 0.017488691955804825, -0.011613248847424984, 0.056672655045986176, -0.05560595542192459, -0.017720958217978477, -0.0044818539172410965, 0.06575679779052734, 0.026168521493673325, 0.017824186012148857, 0.025222256779670715, 0.06438041478395462, 0.015148838050663471, -0.007626033388078213, 0.04593685269355774, 0.0065378290601074696, -0.01224982738494873, 0.032069772481918335, 0.017634933814406395, -0.03853878006339073, 0.010529345832765102, -0.07907332479953766, -0.0014548819744959474, -0.010555152781307697, 0.03602688014507294, -0.004191522486507893, -0.021351173520088196, 0.0047571309842169285, 0.007897009141743183, 0.09366300702095032, -0.014761730097234249, 0.004099046811461449, -0.011914333328604698, -0.029489049687981606, -0.04490456357598305, -0.05481453612446785, 0.010236863978207111, -0.04142919182777405, -0.0029807339888066053, -0.0035355892032384872, -0.07604527473449707, 0.032568711787462234, 0.0411883220076561, 0.04153241962194443, 0.03843555226922035, 0.01036589965224266, 0.01324770599603653, -0.046659454703330994, 0.053644608706235886, -0.03136437386274338, 0.010150839574635029, 0.0005516293458640575, -0.034736517816782, 0.017032764852046967, 0.030865434557199478, -0.004421636927872896, 0.05347255989909172, -0.03778177127242088, 0.021660860627889633, -0.031329963356256485, -0.004692612681537867, 0.03349777311086655, 0.006851817015558481, -0.0018903788877651095, 0.01168206799775362, 0.04776056110858917, -0.0709526464343071, -0.05192412808537483, 0.030831025913357735, 0.02649541199207306, 0.00850777979940176, -0.027940616011619568, -0.03198374807834625, -0.030297676101326942, 0.040947455912828445, -0.006378684658557177, -0.04820788651704788, -0.013213296420872211, 0.007273335009813309, 0.008176587522029877, -0.005522745195776224, -0.013316525146365166, 0.002301143715158105, 0.02246948704123497, -0.015269272029399872, 0.04142919182777405, -0.06575679779052734, 0.06265992671251297, 0.02818148396909237, -0.002294691978022456, 0.015888644382357597, -0.02907613478600979, -0.004765733145177364, 0.04648740589618683, -0.006176528055220842, -0.007260431069880724, -0.05123593285679817, -0.023278111591935158, 0.03798822686076164, -0.03327411040663719, 0.013841272331774235, -0.007574419025331736, 0.02236625738441944, -0.04445723816752434, -0.0451454296708107, -0.062419064342975616, 0.03258591517806053, -0.003985065035521984, -0.031674060970544815, 0.11334531009197235, 0.027424471452832222, -0.02123074047267437, 0.010993875563144684, -0.026357773691415787, -0.012224019505083561, -0.06730522960424423, -0.036921530961990356, 0.011561634950339794, -0.01889088563621044, -0.01745428331196308, 0.07707756012678146, -0.035545144230127335, -0.03358379378914833, 0.0342375785112381, -0.03165685757994652, -0.0013376742135733366, -0.005965768825262785, 0.036233335733413696, -0.0016860717441886663, -0.007772274315357208, -0.03754090145230293, -0.04074099659919739, 0.020645776763558388, -0.0654815211892128, -0.010572358034551144, -0.05354137718677521, -0.0006715253693982959, 0.006735684350132942, 0.014219778589904308, -0.028611604124307632, 0.05192412808537483, -0.016542427241802216, 0.02475772611796856, 0.007436780724674463, 0.08189491182565689, -0.005608769133687019, 0.0006188356201164424, 0.008546491153538227, 0.02157483622431755, -0.007501298561692238, 0.01175948977470398, 0.019871558994054794, -0.005165745038539171, 0.06864720582962036, -0.01473592221736908, -0.08258310705423355, 0.02955786883831024, -0.01880486123263836, 0.009359418414533138, -0.0026925532147288322, -0.0056603834964334965, 0.041050683706998825, 0.01591445319354534, -0.01069279108196497, 0.005664684809744358, 0.008090563118457794, 0.029489049687981606, -0.01093365903943777, -0.02073179930448532, 0.021144716069102287, -0.1280038058757782, -0.012533706612884998, 0.007750768214464188, -0.013781055808067322, -0.011277754791080952, 0.028800858184695244, -0.02267594449222088, -0.0021011377684772015, -0.007445382885634899, 0.02897290512919426, 0.03785058856010437, 0.0774216577410698, -0.037919409573078156, 0.04473251476883888, 0.00044302394962869585, 0.06324489414691925, 0.010039008222520351, -0.03953666239976883, 0.0019634992349892855, -0.010796020738780499, -0.006529226433485746, -0.029592279344797134, 0.053094055503606796, -0.0019323156448081136, -0.021419992670416832, -0.0042732455767691135, -0.018237102776765823, 0.01607789844274521, -0.014692910946905613, -0.005165745038539171, -0.02876644767820835, -0.008937900885939598, -0.0471411868929863, -0.03977752849459648, -0.021506017073988914, 0.0006252874154597521, -0.00624964851886034, 0.006253949832171202, 0.04590244218707085, -0.023622209206223488 ]
21,056
sortedcontainers.sorteddict
__ror__
null
def __ror__(self, other): if not isinstance(other, Mapping): return NotImplemented items = chain(other.items(), self.items()) return self.__class__(self._key, items)
(self, other)
[ 0.0013859031023457646, -0.02663690783083439, -0.01599765196442604, 0.03687126934528351, -0.0402827225625515, -0.03849085047841072, -0.03818071633577347, -0.001701419590972364, 0.12846364080905914, -0.026378463953733444, 0.04059285670518875, 0.029910525307059288, 0.032167598605155945, 0.0726398453116417, 0.0038055803161114454, 0.031512875109910965, -0.025448067113757133, 0.08173705637454987, -0.021847087889909744, 0.011535193771123886, 0.043797556310892105, -0.02162310481071472, 0.02808419056236744, 0.027998043224215508, -0.030961528420448303, 0.013852570205926895, -0.05172315612435341, 0.00734840938821435, 0.02456936053931713, -0.0108890850096941, 0.00014604748866986483, -0.058890655636787415, 0.04879412800073624, -0.004384924191981554, 0.032408811151981354, -0.036940187215805054, -0.03883543983101845, 0.059545379132032394, 0.032684486359357834, 0.01754831150174141, -0.006603230722248554, -0.02541360817849636, -0.03935232758522034, -0.027067646384239197, 0.021933237090706825, -0.006310328375548124, -0.01023436151444912, 0.011242290958762169, 0.04617523401975632, -0.0016572688473388553, -0.010105140507221222, -0.006004503462463617, 0.023535586893558502, 0.03676789253950119, -0.03666451573371887, 0.016092414036393166, -0.048242781311273575, 0.025172395631670952, -0.036940187215805054, 0.03087538108229637, -0.028480472043156624, -0.0052420953288674355, -0.060200102627277374, -0.020193049684166908, 0.04407322779297829, -0.05044816806912422, -0.07084797322750092, -0.0041587864980101585, 0.044452279806137085, 0.05265355110168457, -0.04765697941184044, 0.02453490160405636, -0.006094958633184433, 0.0005198483122512698, -0.0062629468739032745, 0.029789919033646584, -0.02224336937069893, 0.03980029746890068, 0.08153030276298523, -0.05024141073226929, 0.02041703462600708, -0.0003432452504057437, -0.055754873901605606, 0.023294372484087944, -0.04979344457387924, 0.026137251406908035, -0.013628586195409298, -0.041040822863578796, 0.006362016778439283, -0.08504513651132584, -0.05434205010533333, 0.03416622802615166, -0.01840117573738098, 0.01333568338304758, 0.007804993074387312, 0.020709937438368797, -0.05723661556839943, 0.004699363838881254, -0.020968381315469742, -0.041316498070955276, 0.02975546009838581, 0.02112344652414322, 0.01053587906062603, 0.03766382858157158, 0.0402827225625515, -0.00638786144554615, 0.00006959128950256854, -0.033752717077732086, -0.03797396272420883, 0.0053842393681406975, -0.0626811608672142, 0.07284659892320633, -0.014584827236831188, 0.029462557286024094, -0.059269703924655914, 0.02770514041185379, -0.010018992237746716, -0.04741576313972473, 0.04341850429773331, 0.02910073660314083, -0.0199518371373415, 0.02625785768032074, 0.022949781268835068, 0.019503867253661156, 0.009217817336320877, 0.015377387404441833, 0.018952522426843643, -0.029135195538401604, -0.006491238716989756, -0.015050025656819344, 0.019124817103147507, -0.011664415709674358, -0.021226825192570686, 0.005280861631035805, 0.07229525595903397, -0.0021967694628983736, -0.020623790100216866, 0.031650710850954056, 0.006939207203686237, 0.0601656436920166, 0.04593402147293091, 0.006913363002240658, 0.06578247994184494, 0.05820147320628166, -0.05003465712070465, -0.014886344783008099, -0.020382575690746307, 0.0804276093840599, 0.09359099715948105, -0.02112344652414322, -0.019004210829734802, 0.039696916937828064, 0.046140775084495544, 0.0645764097571373, -0.05385962128639221, 0.01637670211493969, -0.01741909049451351, -0.03265002742409706, 0.025103475898504257, -0.005995888728648424, 0.025809889659285545, -0.015480764210224152, 0.007977289147675037, -0.09683015942573547, -0.010484190657734871, -0.035768575966358185, 0.0740182101726532, -0.035768575966358185, 0.07849790155887604, -0.02439706400036812, 0.0002335413737455383, -0.07898032665252686, 0.030823692679405212, -0.006392168812453747, -0.021226825192570686, 0.030117280781269073, -0.03437298163771629, 0.012913559563457966, -0.012999706901609898, 0.0060131181962788105, 0.049690067768096924, 0.0008033284684643149, -0.07257092744112015, -0.030685855075716972, 0.03439021110534668, 0.003560059005394578, -0.006159569602459669, 0.033528733998537064, 0.028652766719460487, 0.024173080921173096, 0.029824377968907356, -0.014214391820132732, 0.010949389077723026, 0.019452178850769997, 0.0031788547057658434, -0.00547900190576911, -0.0387665219604969, 0.020451493561267853, -0.010294665582478046, 0.1268785148859024, -0.1291528195142746, 0.030237887054681778, -0.025896036997437477, 0.059166327118873596, -0.03614762797951698, -0.019796770066022873, 0.030168969184160233, 0.006000196095556021, 0.014989721588790417, -0.03475203365087509, 0.034459128975868225, -0.04255702719092369, -0.01752246730029583, -0.047346845269203186, 0.008356339298188686, -0.002989329630509019, -0.023862948641180992, -0.028290946036577225, -0.027998043224215508, 0.006814293097704649, 0.050620462745428085, -0.0072536468505859375, 0.02568928152322769, -0.018246110528707504, -0.013585512526333332, -0.012767108157277107, -0.06592031568288803, -0.056650809943675995, -0.00032036221818998456, 0.02060656063258648, 0.04738130420446396, 0.006486931350082159, -0.010466961190104485, -0.03545844554901123, 0.06423182040452957, -0.02784297801554203, -0.006112188100814819, -0.06044131517410278, 0.006021732930094004, 0.04297053441405296, -0.03368379920721054, 0.014291924424469471, 0.013094469904899597, 0.049965739250183105, -0.050482627004384995, -0.011457661166787148, 0.006999510806053877, 0.04045502096414566, 0.02663690783083439, 0.026188939809799194, 0.022949781268835068, -0.0027674988377839327, -0.011690259911119938, 0.06678179651498795, 0.040110427886247635, 0.01602349616587162, -0.005517768207937479, -0.061785221099853516, 0.013645815663039684, -0.011130299419164658, 0.04503808543086052, 0.06040685623884201, -0.044452279806137085, -0.057443369179964066, -0.023380519822239876, -0.019521096721291542, 0.028669996187090874, 0.04424552246928215, -0.018383946269750595, 0.02391463704407215, 0.014464220032095909, -0.027808519080281258, -0.023208225145936012, 0.00704258494079113, -0.007301028352230787, 0.06781557202339172, 0.04634753242135048, -0.01607518456876278, 0.01536877267062664, -0.015506608411669731, 0.007425942458212376, 0.027498386800289154, -0.05292922630906105, -0.04545159265398979, -0.0275673046708107, 0.01679021120071411, -0.0507238395512104, -0.004283700603991747, 0.022415664047002792, -0.0456928089261055, 0.10013823211193085, 0.003753891447558999, -0.03340812772512436, 0.03797396272420883, 0.024776114150881767, -0.018625160679221153, -0.0630602091550827, -0.05485893413424492, 0.06991757452487946, 0.006392168812453747, -0.002051395131275058, -0.027308860793709755, 0.03752599284052849, 0.04503808543086052, 0.006831522565335035, -0.03225374594330788, 0.0863545835018158, 0.009131669998168945, -0.0023690653033554554, 0.06795340776443481, -0.0370091050863266, 0.015101714059710503, -0.02770514041185379, 0.029652081429958344, -0.02770514041185379, -0.0010736172553151846, -0.002537053544074297, 0.04879412800073624, 0.0337354876101017, 0.05568595603108406, -0.0543765090405941, -0.002257073065266013, -0.04083406925201416, -0.033425357192754745, 0.009381498210132122, -0.05951092019677162, -0.028669996187090874, -0.004003720358014107, 0.04555496945977211, 0.005702985916286707, -0.03037572279572487, -0.00541869830340147, 0.032770633697509766, 0.03687126934528351, -0.04841507971286774, 0.0023841410875320435, 0.07808438688516617, 0.002599510597065091, -0.005896818824112415, -0.01910758763551712, -0.03054801933467388, -0.013163387775421143, 0.0028816447593271732, -0.028652766719460487, 0.007654234301298857, 0.004906118847429752, -0.03166794031858444, -0.009372883476316929, 0.03935232758522034, -0.07005541026592255, 0.01700558140873909, 0.011767793446779251, 0.02074439637362957, -0.025809889659285545, -0.002644738182425499, 0.021829858422279358, -0.03583749756217003, -0.0002600587613414973, -0.024121390655636787, 0.02265687845647335, 0.07084797322750092, -0.024776114150881767, -0.051516398787498474, -0.03649222105741501, -0.012879099696874619, 0.021967696025967598, -0.06788448989391327, -0.028669996187090874, -0.07718845456838608, -0.032960157841444016, 0.010268821381032467, -0.031702399253845215, 0.010854626074433327, 0.03387332707643509, 0.026550760492682457, 0.026378463953733444, -0.04751913994550705, 0.03935232758522034, -0.03928340971469879, 0.00038093491457402706, 0.028290946036577225, -0.004453842528164387, -0.050103574991226196, 0.04465903341770172, -0.009381498210132122, 0.022260598838329315, 0.00889907032251358, -0.027636222541332245, 0.061130497604608536, 0.037078022956848145, -0.04238473251461983, -0.0395246222615242, 0.047588057816028595, -0.005224865861237049, -0.054962314665317535, 0.020727166905999184, -0.07353578507900238, -0.011759178712964058, 0.017539696767926216, -0.0366300567984581, 0.030117280781269073, 0.0056556048803031445, -0.0026899660006165504, 0.018435634672641754, 0.04479686915874481, -0.022691337391734123, 0.01060479786247015, 0.027360549196600914, 0.011785022914409637, -0.054962314665317535, -0.028583848848938942, -0.03190915659070015, -0.007848067209124565, -0.00023704112390987575, 0.02377679944038391, -0.04093744605779648, 0.05944199860095978, -0.020675478503108025, 0.038800980895757675, 0.046002939343452454, 0.04145433381199837, -0.01990014873445034, -0.034321293234825134, -0.019228195771574974, 0.018900834023952484, -0.03313245251774788, -0.014300539158284664, 0.020451493561267853, -0.024913951754570007, 0.04400430992245674, 0.016419775784015656, -0.055100150406360626, 0.019917378202080727, -0.003456681501120329, 0.018056584522128105, -0.019848458468914032, 0.02658521942794323, -0.0023066080175340176, 0.05268801003694534, 0.033149681985378265, 0.033339209854602814, -0.005517768207937479, 0.01990014873445034, 0.014602056704461575, 0.028204798698425293, -0.0005847283755429089, -0.016480078920722008, 0.043142832815647125, 0.07298444211483002, 0.013042780570685863, 0.07312227785587311, -0.0007925599929876626, 0.011862555518746376, 0.012577583082020283, 0.018056584522128105, 0.0005055800429545343, -0.05334273353219032, -0.0587872751057148, -0.0033748410642147064, 0.057856880128383636, 0.004949192516505718, -0.028980128467082977, 0.008873226121068, 0.0064050909131765366, -0.04114420339465141, 0.052825845777988434, 0.008881840854883194, -0.01607518456876278, -0.021312972530722618, 0.01380949653685093, 0.0043030837550759315, -0.05189545080065727, 0.01000176277011633, -0.05327381566166878, -0.04755359888076782, 0.02639569342136383, 0.0753965750336647, 0.005276554264128208, -0.023018699139356613, -0.0391455739736557, -0.0185045525431633, 0.011423202231526375, -0.005065492354333401, -0.0497245267033577, -0.024052472785115242, -0.01560137141495943, -0.010518649592995644, 0.010518649592995644, 0.0373881570994854, 0.06481762230396271, 0.0115179643034935, -0.01113891415297985, -0.0726398453116417, 0.057064320892095566, 0.01368888933211565, -0.021554186940193176, -0.0023690653033554554, -0.0012706804554909468, -0.0013126775156706572, -0.05396299809217453, -0.005509153474122286, -0.03275340422987938, -0.024086931720376015, 0.030237887054681778, 0.02003798447549343, 0.01921096444129944, -0.04217797517776489, -0.034321293234825134, 0.009639942087233067, -0.023811258375644684, -0.0127757228910923, -0.031047677621245384, 0.02644738368690014, 0.001225452870130539, 0.01560137141495943, -0.03125443309545517, -0.014102399349212646, 0.0010725404135882854, -0.01345629058778286, -0.02246735244989395, -0.0010596183128654957, 0.023242684081196785, -0.017505237832665443, -0.023725111037492752, -0.04434889927506447, -0.03859422728419304, 0.036561138927936554, -0.008119432255625725, -0.0018327949801459908, -0.057856880128383636, -0.07856681942939758, -0.06702300906181335, -0.025706510990858078, 0.008369261398911476, -0.03471757471561432, 0.06667841970920563, -0.03849085047841072, 0.025155166164040565, 0.030341263860464096, 0.03270171582698822, 0.029049046337604523, 0.05465218052268028, 0.05957983806729317, 0.001747724018059671, 0.00734840938821435, 0.02920411340892315, -0.06009672209620476, -0.018004896119236946, -0.012043465860188007, 0.008498483337461948, -0.06840137392282486, 0.004023103509098291, 0.07842898368835449, 0.028428783640265465, -0.050206951797008514, -0.027687910944223404, -0.029445327818393707, -0.02276025526225567, 0.003293000627309084, 0.015265394933521748, 0.047863733023405075, 0.018573472276329994, 0.0420401394367218, -0.010975233279168606, 0.007964366115629673, 0.03494155779480934, -0.0026727363001555204, 0.04407322779297829, -0.009777778759598732, 0.04097190499305725, -0.012612042017281055, 0.026550760492682457, -0.07663710415363312, -0.004488301929086447, 0.02257073111832142, -0.0001782183098839596, -0.004492609295994043, 0.0021655410528182983, -0.0387665219604969, -0.0601656436920166, -0.06516221910715103, 0.06512776017189026, 0.04541713371872902, -0.029910525307059288, 0.016471464186906815, -0.02775682881474495, -0.03451082110404968, 0.0711236447095871, 0.0185045525431633, -0.01784982904791832, -0.012620656751096249, -0.012543123215436935, -0.040386099368333817, -0.033097993582487106, 0.028859522193670273, -0.022587960585951805, 0.004453842528164387, -0.0068745967000722885, -0.05503123253583908, 0.006870289333164692, 0.03928340971469879, -0.017556926235556602, 0.017556926235556602, 0.008787077851593494, 0.009312580339610577, -0.004613216035068035, -0.014300539158284664, -0.0016066569369286299, 0.005035340320318937, 0.011156143620610237, -0.016695449128746986, 0.017453549429774284, 0.03073754534125328, 0.00704258494079113, 0.04662320390343666, -0.08304650336503983, -0.02667136676609516, -0.030151739716529846, -0.0021601568441838026, -0.005987273994833231, -0.04696779325604439, -0.0395246222615242, -0.052584633231163025, 0.04021380469202995, -0.08332217484712601, -0.0016691141063347459, 0.026654137298464775, 0.03714694455265999, 0.04855291545391083, 0.026292316615581512, -0.029462557286024094, -0.03569965809583664, 0.05995888635516167, -0.017177876085042953, -0.04986236244440079, 0.006129418034106493, 0.02906627580523491, 0.04231581091880798, -0.0063749393448233604, 0.07725737243890762, -0.013904259540140629, -0.027550075203180313, -0.025896036997437477, 0.04276378080248833, -0.0601656436920166, -0.018022125586867332, -0.012095155194401741, 0.0373881570994854, -0.010484190657734871, -0.027360549196600914, -0.012724033556878567, 0.010148214176297188, 0.00254566827788949, -0.003286539576947689, -0.032581109553575516, -0.029652081429958344, 0.019314343109726906, -0.05709877982735634, -0.009614097885787487, 0.005168869625777006, 0.004378463141620159, -0.041661087423563004, -0.027446698397397995, -0.03332198038697243, 0.06140616908669472, -0.004128634463995695, -0.005526382941752672, -0.01172471884638071, 0.041006363928318024, 0.04348742216825485, 0.023759569972753525, -0.08504513651132584, -0.028790604323148727, -0.010682330466806889, -0.03383886441588402, -0.01864239014685154, 0.03177131712436676, 0.03299461677670479, 0.04900088533759117, -0.043384045362472534, -0.029514245688915253, 0.023621734231710434, -0.0641973614692688, 0.004040332976728678, -0.028101421892642975, 0.03270171582698822, -0.004311698488891125, 0.01817719079554081, 0.012982477433979511, -0.05720215663313866, 0.07167499512434006, -0.0645764097571373, -0.009424571879208088, 0.009036906994879246, -0.049965739250183105, 0.015110328793525696, -0.029652081429958344, -0.07408712804317474, 0.015980422496795654, 0.04383201524615288, 0.04986236244440079, 0.0171175729483366, 0.029789919033646584, -0.07932491600513458, -0.02363896369934082, -0.012491434812545776, -0.01651453785598278, 0.018418405205011368, 0.0834600180387497, -0.01738463155925274, -0.014076555147767067, 0.06705746799707413, 0.04293607547879219, -0.052446797490119934, 0.05158532038331032, -0.013172002509236336, -0.006254332140088081, 0.031375039368867874, -0.057443369179964066, 0.0006730299210175872, -0.028325404971837997, 0.001686343690380454, 0.05751229077577591, 0.019590016454458237, 0.05930416285991669, 0.020968381315469742, 0.02260519005358219, -0.06185413897037506, -0.0747763141989708, 0.03607871010899544, 0.01990014873445034, 0.022071072831749916, -0.02112344652414322, -0.0268092043697834, -0.015317083336412907, -0.0071459622122347355, -0.07312227785587311, 0.00952794961631298, 0.05799471586942673, 0.06812570244073868, -0.020520411431789398, 0.02391463704407215, 0.008412335067987442, 0.01967616379261017, 0.0005518845282495022, -0.03351150453090668, 0.004634752869606018, 0.03358042240142822, -0.008769848383963108, 0.030858151614665985, 0.04813940450549126, 0.01572197861969471, 0.010113755241036415, 0.024689966812729836, 0.019142046570777893, 0.014395302161574364, 0.0046649049036204815, -0.013654430396854877, 0.0017229565419256687, -0.00019719776173587888, -0.010389427654445171, 0.01567029021680355, -0.02162310481071472, -0.0002709618420340121, 0.04210905730724335, 0.007443172391504049, 0.031185513362288475, 0.004111404996365309 ]
21,057
tfields.core
__setitem__
null
def __setitem__(self, dimension, map_): map_ = self.to_map(map_) super().__setitem__(dimension, map_)
(self, dimension, map_)
[ 0.0662599503993988, -0.015238762833178043, -0.025087058544158936, 0.02383784018456936, -0.019987506791949272, 0.024967269971966743, -0.051269322633743286, 0.025857124477624893, 0.009762733243405819, 0.0015540372114628553, -0.021339401602745056, 0.014639821834862232, 0.032770611345767975, 0.03761347383260727, 0.02796197310090065, -0.018447373062372208, 0.03754502534866333, 0.01831047236919403, 0.015110418200492859, 0.006481393706053495, 0.027825072407722473, -0.04507456347346306, 0.07385794073343277, -0.0055573140271008015, -0.024351216852664948, 0.04593019559979439, 0.0006240748334676027, 0.0027037893887609243, 0.07810186594724655, -0.051714248955249786, -0.07632215321063995, -0.0199019443243742, 0.020381096750497818, 0.0680396631360054, 0.0590384379029274, -0.0406937412917614, -0.03386581689119339, 0.0199019443243742, -0.023666713386774063, 0.06930599361658096, 0.003861028468236327, -0.015794921666383743, 0.006412943359464407, -0.015016298741102219, 0.08522070199251175, 0.0510297454893589, 0.0018609942635521293, 0.01732649840414524, 0.041720498353242874, 0.0006074970006011426, -0.039461635053157806, -0.03621024265885353, 0.042165424674749374, 0.030682876706123352, -0.0585935115814209, 0.0899437814950943, 0.03881135582923889, 0.017762869596481323, 0.022126579657197, 0.003471717005595565, -0.025874238461256027, -0.040796417742967606, -0.06157110258936882, -0.07680130749940872, 0.007097447291016579, -0.0380241759121418, -0.05749830603599548, 0.02755127102136612, 0.03437919542193413, 0.03081977739930153, 0.030443299561738968, -0.012748880311846733, -0.006524175405502319, -0.022383268922567368, 0.006040744483470917, 0.04319218173623085, -0.013279370963573456, 0.03566263988614082, 0.08214043825864792, -0.026045363396406174, -0.013818417675793171, 0.0028920278418809175, 0.015059079974889755, 0.021955454722046852, -0.04942116141319275, 0.00918946135789156, 0.03415673226118088, 0.015341438353061676, -0.02904006652534008, -0.03198343142867088, 0.00749959284439683, 0.03545729070901871, -0.0012214111629873514, 0.007281407713890076, -0.03374603018164635, -0.0010829061502590775, 0.016582101583480835, -0.06307701021432877, 0.0037027369253337383, 0.019320115447044373, 0.026627192273736, -0.04640934616327286, 0.025634661316871643, -0.0330786369740963, -0.015016298741102219, -0.032702162861824036, 0.013570284470915794, -0.04134402051568031, -0.0863843634724617, 0.02387206442654133, 0.0044193267822265625, 0.09829472005367279, -0.07132527977228165, 0.0308540016412735, -0.04110444337129593, 0.06198180466890335, -0.005326293874531984, -0.049523837864398956, 0.030648650601506233, 0.05729295685887337, -0.062289830297231674, 0.036004893481731415, 0.02443677932024002, 0.018875187262892723, 0.022400381043553352, 0.0185671616345644, -0.021630315110087395, 0.05660845339298248, 0.010798045434057713, -0.08795871585607529, -0.002128378488123417, -0.07105147838592529, -0.039975013583898544, 0.05411001294851303, 0.043397530913352966, -0.030990902334451675, 0.0017037723446264863, -0.06095505133271217, -0.03116202913224697, 0.04983186721801758, 0.0297416839748621, 0.006566956639289856, 0.02666141651570797, 0.042165424674749374, 0.002827855758368969, -0.026986556127667427, 0.0037262667901813984, 0.049558065831661224, -0.017061254009604454, -0.044355835765600204, -0.03241124749183655, 0.04545104131102562, 0.0308540016412735, 0.021116936579346657, -0.032924626022577286, -0.0013476165477186441, 0.03331821411848068, -0.011123184114694595, 0.057840559631586075, 0.0009160583722405136, -0.02139073982834816, -0.014366020448505878, -0.004273869562894106, 0.0012353152269497514, -0.051782701164484024, 0.0026866768021136522, 0.04661469906568527, -0.06516474485397339, 0.012629092670977116, 0.0025882793124765158, 0.02977590821683407, -0.10301779955625534, 0.007769116200506687, 0.024710580706596375, 0.05643732473254204, 0.046546246856451035, -0.03431074693799019, 0.020141519606113434, 0.0034246572759002447, 0.02878337912261486, 0.048702433705329895, -0.012440853752195835, -0.0406937412917614, 0.02655874192714691, -0.02447100542485714, 0.01363017875701189, 0.0027209019754081964, 0.03484123572707176, 0.022930871695280075, 0.04801793023943901, 0.07447399944067001, 0.0025797230191528797, -0.024573680013418198, -0.021288063377141953, 0.0272945836186409, -0.0022075241431593895, -0.024351216852664948, -0.02075757272541523, -0.026319164782762527, 0.10733017325401306, -0.027123456820845604, -0.01624840497970581, 0.0010272902436554432, 0.027397258207201958, -0.005048214457929134, 0.019525466486811638, 0.045622166246175766, -0.011388429440557957, -0.01158522441983223, 0.00656267860904336, -0.003152994904667139, -0.02440255507826805, 0.029621895402669907, -0.044698089361190796, 0.057395629584789276, -0.08919082581996918, -0.05811436101794243, 0.01099483948200941, -0.0074183084070682526, 0.003839637618511915, 0.07255738973617554, 0.043021053075790405, 0.02621649019420147, -0.00398295558989048, -0.008231156505644321, -0.024864595383405685, 0.012115714140236378, -0.08214043825864792, -0.01396387442946434, 0.044390060007572174, -0.026353390887379646, 0.004996876697987318, -0.008654693141579628, -0.01707836613059044, 0.052980583161115646, -0.025463536381721497, -0.0020363982766866684, -0.056950703263282776, 0.01831047236919403, 0.04141246899962425, 0.006382996682077646, 0.03785305097699165, -0.0025946965906769037, 0.03747657313942909, -0.06519897282123566, 0.04486921429634094, -0.015512564219534397, 0.086726613342762, -0.01618851162493229, 0.04637512192130089, 0.002002173103392124, -0.042507678270339966, -0.041241344064474106, 0.06502784788608551, 0.014169225469231606, 0.022366156801581383, -0.020329758524894714, 0.013578841462731361, -0.026866767555475235, -0.027910636737942696, -0.03747657313942909, -0.003334816312417388, 0.021065600216388702, -0.016419531777501106, 0.005467473063617945, 0.0003871723893098533, 0.022160805761814117, 0.05729295685887337, 0.0007401195471175015, 0.02618226408958435, 0.08809562027454376, 0.0792655199766159, 0.011414098553359509, 0.02904006652534008, 0.00008529557089786977, 0.05051637068390846, 0.03710009902715683, -0.0037112932186573744, 0.0012492191744968295, -0.008984110318124294, 0.04055684059858322, -0.036073341965675354, -0.04668314754962921, 0.013578841462731361, -0.04305528104305267, -0.008718864992260933, 0.01630830019712448, 0.046546246856451035, 0.03008393570780754, -0.010276110842823982, -0.008629024028778076, 0.04415048658847809, -0.03532038629055023, 0.06745783239603043, -0.019029201939702034, -0.03545729070901871, -0.048257507383823395, 0.06054434925317764, -0.009583051316440105, 0.04716230183839798, 0.005561592057347298, -0.028868941590189934, -0.026456065475940704, 0.06916909664869308, 0.05677957832813263, -0.013604509644210339, 0.03740812465548515, 0.038229528814554214, 0.012338178232312202, 0.02313622273504734, 0.03225723281502724, 0.05051637068390846, -0.08556295931339264, 0.031470056623220444, 0.04065951704978943, 0.01819068379700184, -0.01783131994307041, 0.00037460532621480525, -0.00936058722436428, 0.09090208262205124, -0.026900993660092354, -0.04846285656094551, -0.05582127347588539, -0.01182480063289404, 0.010139210149645805, 0.0029390875715762377, 0.07967622578144073, -0.03437919542193413, 0.04671737551689148, -0.009642944671213627, -0.014100775122642517, -0.018635611981153488, -0.006092082243412733, -0.040419939905405045, -0.023632489144802094, -0.04062529280781746, -0.017309386283159256, 0.04189162328839302, -0.019987506791949272, 0.0006502784672193229, -0.022177917882800102, 0.03360912948846817, -0.039530087262392044, -0.01099483948200941, 0.02548064850270748, -0.0010385203640908003, -0.03887980803847313, -0.001805378356948495, -0.03376314416527748, 0.014665490947663784, -0.005540201440453529, -0.03768192604184151, -0.0005497419624589384, -0.024676356464624405, 0.009762733243405819, 0.009086785838007927, 0.022366156801581383, -0.04972919076681137, -0.060441672801971436, 0.0055872611701488495, 0.08036072552204132, -0.0366893969476223, 0.01920032687485218, -0.033181313425302505, 0.01662488281726837, 0.009942415170371532, -0.03521771356463432, -0.01147399190813303, 0.03836642950773239, -0.024299878627061844, 0.025908462703227997, -0.0371343232691288, -0.01783131994307041, 0.05448649078607559, 0.003978677559643984, 0.008128480985760689, -0.04986609145998955, 0.04397935792803764, -0.06454869359731674, -0.03675784543156624, 0.03302730247378349, -0.02491593360900879, 0.013433383777737617, 0.027653947472572327, -0.004714518785476685, 0.0015679411590099335, 0.05886731296777725, -0.0037540746852755547, 0.011456879787147045, -0.0041048829443752766, -0.011687899939715862, 0.01704414002597332, -0.01634252443909645, 0.008355222642421722, -0.041652046144008636, 0.0035893660970032215, -0.03761347383260727, -0.00454767094925046, 0.005236452911049128, -0.015717914327979088, -0.00524500897154212, -0.05855928733944893, -0.0012010899372398853, 0.045143015682697296, 0.07043542712926865, -0.043431755155324936, -0.04274725168943405, 0.0733787938952446, 0.04305528104305267, -0.009206574410200119, 0.007135950494557619, 0.010336005128920078, 0.004637512378394604, -0.027944860979914665, 0.013287927024066448, -0.06711558252573013, -0.0077562821097671986, -0.04161782190203667, 0.006930599454790354, 0.014126444235444069, 0.02409452758729458, 0.023752275854349136, -0.01729227416217327, 0.01961102895438671, 0.020706234499812126, -0.07235203683376312, -0.014785278588533401, -0.0005802238010801375, -0.007187288254499435, 0.04531414061784744, -0.044766537845134735, -0.02970745787024498, 0.011448323726654053, -0.01012209802865982, 0.024898819625377655, -0.027055006474256516, 0.018669836223125458, -0.02176721580326557, -0.0050225453451275826, 0.03131604194641113, 0.03792150318622589, 0.0007246112800203264, 0.02970745787024498, -0.029621895402669907, 0.015726471319794655, -0.01166223082691431, -0.07529540359973907, 0.013921093195676804, 0.0017486929427832365, -0.02833845093846321, 0.0415835976600647, 0.018293360248208046, 0.015495451167225838, 0.0015636630123481154, 0.0649251714348793, -0.023427138105034828, -0.10842537879943848, -0.07796496897935867, 0.023718051612377167, 0.01637675054371357, -0.032068997621536255, -0.027859298512339592, -0.04329485446214676, -0.0163168553262949, -0.0021989678498357534, 0.05411001294851303, 0.008175540715456009, 0.01602594181895256, 0.009625832550227642, 0.012688986025750637, 0.013544616289436817, -0.016684776172041893, -0.006477115675806999, -0.08795871585607529, -0.03126470372080803, 0.0009326362051069736, 0.0008492123452015221, 0.05116664618253708, -0.03415673226118088, -0.013373490422964096, -0.02383784018456936, 0.007730612996965647, 0.008389447815716267, 0.000048764199163997546, -0.02091158553957939, 0.02053510956466198, 0.020586447790265083, 0.00557870464399457, -0.004457829985767603, 0.07153063267469406, -0.04021459072828293, 0.0029176967218518257, 0.0024471005890518427, 0.010875051841139793, 0.016736114397644997, 0.010592693462967873, -0.011550999246537685, 0.0001581577816978097, 0.026233602315187454, -0.02874915301799774, -0.021732991561293602, -0.005394744221121073, -0.030768439173698425, 0.0039038099348545074, 0.0030439021065831184, -0.009300692938268185, -0.013587397523224354, 0.03145294263958931, -0.025018608197569847, -0.03383159264922142, -0.020107295364141464, -0.03354067727923393, -0.00960016343742609, -0.0098397396504879, 0.04264457896351814, -0.010241885669529438, -0.07413174211978912, 0.004179750569164753, -0.032993074506521225, -0.013972430489957333, 0.046477798372507095, -0.0012770270695909858, 0.023854952305555344, -0.021852778270840645, -0.019371453672647476, -0.02684965543448925, 0.0640353187918663, -0.028424013406038284, 0.016197066754102707, 0.001324086682870984, -0.0674920603632927, -0.016402417793869972, -0.0070632221177220345, 0.06855303794145584, 0.022485945373773575, 0.08960152417421341, 0.044766537845134735, -0.06157110258936882, -0.023273123428225517, 0.0277395099401474, -0.04675159975886345, -0.01689012721180916, 0.07981312274932861, -0.10952058434486389, -0.005458916537463665, 0.011816244572401047, -0.029502106830477715, -0.050892844796180725, 0.041241344064474106, -0.05373353511095047, -0.032804835587739944, 0.006032188422977924, 0.035628415644168854, 0.011020508594810963, 0.011088958941400051, -0.007332745473831892, -0.006815089378505945, -0.07652750611305237, -0.003636425593867898, 0.018704062327742577, -0.009702838957309723, 0.0252924095839262, 0.08364634215831757, 0.03434497117996216, -0.018618499860167503, 0.02910851687192917, -0.06718403100967407, 0.03422518074512482, -0.028252888470888138, 0.005082439631223679, 0.019371453672647476, -0.012389516457915306, -0.007426864467561245, -0.035594191402196884, -0.039940789341926575, 0.014160669408738613, 0.025822900235652924, -0.014836616814136505, 0.01485372893512249, -0.05688225477933884, -0.09186039119958878, 0.11164254695177078, -0.000244923954596743, 0.036004893481731415, 0.017694419249892235, 0.008030083030462265, -0.021476302295923233, 0.05150889977812767, -0.007285685744136572, -0.03200054541230202, 0.006686745211482048, -0.01831047236919403, -0.017258048057556152, -0.01860138587653637, -0.011200190521776676, -0.060475897043943405, -0.03367757797241211, -0.042233873158693314, -0.038195304572582245, -0.02428276650607586, -0.008166983723640442, 0.00039973942330107093, -0.03246258571743965, 0.04110444337129593, -0.004996876697987318, -0.048633985221385956, 0.011833356693387032, 0.04640934616327286, -0.03857177868485451, -0.022793971002101898, -0.049113135784864426, 0.0025027163792401552, 0.027568385004997253, -0.03319842740893364, 0.006305989809334278, -0.09035447984933853, -0.04196007177233696, 0.056163523346185684, 0.029912808910012245, -0.026456065475940704, -0.029758796095848083, 0.000669530127197504, -0.05284368246793747, -0.025651773437857628, -0.011046177707612514, -0.05055059492588043, 0.042165424674749374, -0.03294173628091812, 0.01428045704960823, -0.01077237632125616, -0.005009711254388094, 0.012244058772921562, 0.013210920616984367, -0.0748162493109703, 0.02495015785098076, -0.015512564219534397, -0.020175745710730553, 0.04196007177233696, -0.0009347752784378827, 0.05270678177475929, 0.04993453994393349, -0.030443299561738968, 0.056540001183748245, -0.020877361297607422, -0.0026075311470776796, -0.0246250182390213, 0.019747929647564888, 0.014982073567807674, -0.001345477532595396, -0.01760885678231716, -0.026832543313503265, -0.007302798330783844, -0.013938205316662788, 0.02996414713561535, 0.03398560732603073, 0.024197204038500786, 0.0056685456074774265, -0.01986771821975708, -0.03145294263958931, -0.012286840006709099, -0.03785305097699165, 0.03699742257595062, -0.07721201330423355, -0.04192584753036499, 0.04887355864048004, -0.040454164147377014, 0.011867581866681576, -0.012175608426332474, -0.029467882588505745, 0.025155508890748024, 0.0326850488781929, -0.08070298284292221, -0.06328236311674118, -0.012654760852456093, 0.012004482559859753, -0.05944913998246193, -0.006228983402252197, 0.016992803663015366, 0.03398560732603073, 0.017797095701098442, -0.013039794750511646, 0.006926321424543858, -0.04883933439850807, 0.08029227703809738, -0.024933045729994774, 0.048633985221385956, -0.016325412318110466, -0.028424013406038284, -0.017095478251576424, 0.0016032358398661017, 0.07221513241529465, -0.06845036149024963, 0.022605732083320618, 0.004504889715462923, -0.06201602891087532, 0.022708408534526825, -0.04021459072828293, -0.07495314627885818, 0.0297416839748621, 0.009155236184597015, 0.006596903782337904, 0.017557518556714058, -0.0331299751996994, -0.002335868775844574, 0.013399158604443073, -0.001499490812420845, -0.054383814334869385, 0.009352031163871288, 0.03116202913224697, 0.027568385004997253, 0.05411001294851303, 0.048668209463357925, 0.029570557177066803, -0.04504033923149109, -0.006793698761612177, 0.011645118705928326, -0.007974467240273952, -0.0017240935703739524, -0.03754502534866333, 0.006412943359464407, 0.0007663232390768826, -0.027345919981598854, 0.0284069012850523, 0.004731631372123957, -0.008231156505644321, 0.012321065180003643, 0.0023679547011852264, -0.03966698795557022, -0.010224773548543453, 0.0017904049018397927, -0.03542306274175644, -0.0035872268490493298, -0.011020508594810963, 0.008547739125788212, -0.030665762722492218, 0.007953076623380184, -0.04117289558053017, -0.009078229777514935, -0.0068664271384477615, 0.030682876706123352, 0.028920279815793037, -0.02275974676012993, -0.013493278063833714, 0.02272552065551281, -0.003773326287046075, 0.010789488442242146, 0.003426796291023493, 0.051748476922512054, -0.008008692413568497, 0.035559963434934616, 0.04726497828960419, 0.07563765347003937, -0.052227627485990524, 0.012988456524908543, 0.041686270385980606, -0.06560967117547989, 0.025822900235652924, -0.03145294263958931, 0.035149261355400085, -0.009463262744247913, -0.052672553807497025, -0.004971207585185766, -0.02796197310090065, -0.010045090690255165, -0.0006304920534603298, 0.048223283141851425, 0.020432433113455772, -0.0110632898285985 ]
21,058
tfields.core
_args
null
def _args(self): return super()._args() + (list(self.items()),)
(self)
[ -0.032742902636528015, -0.02283763699233532, -0.01194721832871437, 0.0002511860220693052, 0.01723122037947178, -0.00008836989582050592, 0.00609003659337759, 0.005230266600847244, 0.10962065309286118, -0.025148268789052963, 0.009520160034298897, 0.02264060638844967, -0.02459299936890602, 0.01621920056641102, -0.01704314537346363, -0.008951458148658276, 0.05108465999364853, 0.03521474078297615, -0.00959180761128664, 0.0315069817006588, 0.030378535389900208, -0.013944392092525959, 0.020329974591732025, -0.0014519811375066638, 0.002581548411399126, 0.030575565993785858, 0.02034788578748703, -0.05656569078564644, 0.055777568370103836, -0.008897722698748112, -0.06473350524902344, -0.015341518446803093, 0.041770484298467636, 0.030880067497491837, 0.03000238537788391, -0.014544439502060413, -0.047251518815755844, 0.04460056126117706, -0.03516100347042084, -0.0018348473822697997, 0.04291684553027153, -0.05885840952396393, 0.006793077569454908, 0.00922461412847042, 0.016389362514019012, -0.03362058475613594, 0.026509569957852364, -0.011660628952085972, -0.0049526323564350605, -0.04692910239100456, 0.0711817815899849, -0.03170401230454445, 0.04868446663022041, -0.008584264665842056, -0.056279100477695465, 0.060792893171310425, 0.017455119639635086, 0.01747303083539009, -0.00662291469052434, 0.0770210474729538, 0.009260437451303005, 0.016505789011716843, -0.001190020004287362, -0.05552680417895317, 0.016398318111896515, -0.07168330997228622, -0.04800381511449814, 0.0006185193196870387, -0.005391473416239023, 0.0392986461520195, -0.011168052442371845, -0.05248178541660309, -0.04065994918346405, 0.013371212407946587, 0.0003411651705391705, -0.011991998180747032, -0.02917843870818615, 0.03714922070503235, 0.020867330953478813, -0.024055643007159233, -0.026742424815893173, -0.01715957373380661, -0.07207737118005753, 0.042666077613830566, 0.0065557449124753475, -0.0028658995870500803, -0.05187278240919113, -0.004413037560880184, -0.015887830406427383, 0.010541136376559734, -0.058930058032274246, 0.03786569833755493, -0.02579309605062008, 0.043669141829013824, -0.001895299879834056, -0.007997650653123856, -0.033477287739515305, -0.03077259659767151, -0.03421167656779289, 0.017616325989365578, -0.044922973960638046, -0.015592284500598907, 0.0439557321369648, -0.01649683341383934, 0.008284240961074829, -0.0622616671025753, -0.014401145279407501, -0.0711817815899849, 0.010433665476739407, 0.04237948730587959, -0.02065238729119301, 0.016550568863749504, 0.026993190869688988, 0.03510726988315582, -0.04621262848377228, -0.01626398041844368, -0.04936511814594269, -0.0012504725018516183, 0.05373561382293701, 0.040445007383823395, -0.025846831500530243, 0.05785534530878067, 0.050439830869436264, 0.015547504648566246, 0.0055302903056144714, 0.06072124466300011, -0.06659633666276932, 0.0005832553142681718, -0.0017911872128024697, -0.04700075089931488, 0.02170918881893158, -0.03179357200860977, -0.06441108882427216, -0.0326712541282177, 0.02380487695336342, -0.050833892077207565, 0.07931376993656158, -0.0086559122428298, 0.04370496794581413, 0.05925247073173523, 0.02007920853793621, 0.04882776364684105, 0.05187278240919113, 0.03564462438225746, -0.06595151126384735, -0.013281652703881264, 0.05506109446287155, 0.09951835870742798, 0.007214006502181292, -0.00772449467331171, 0.019308997318148613, 0.057998642325401306, -0.020688211545348167, 0.00957389548420906, -0.024503439664840698, -0.010129163041710854, -0.03894041106104851, -0.05373561382293701, 0.007751362398266792, -0.034569911658763885, -0.031381599605083466, -0.0501890629529953, 0.019344821572303772, -0.038152288645505905, 0.02147633396089077, 0.024843765422701836, 0.05455956235527992, -0.018189506605267525, 0.007594633847475052, 0.04703657701611519, 0.030486006289720535, -0.0400867685675621, -0.007711060810834169, 0.02466464787721634, -0.0005295196897350252, 0.04664251580834389, -0.06229748949408531, 0.018897024914622307, 0.008123033680021763, 0.01490267738699913, -0.007943915203213692, -0.0622616671025753, -0.034337058663368225, -0.044564735144376755, 0.08769652247428894, -0.044099029153585434, 0.01599530130624771, 0.004800381604582071, -0.0031480113975703716, -0.008060342632234097, -0.006107948254793882, 0.003011433407664299, 0.008011084981262684, 0.008602176792919636, -0.06509174406528473, 0.00322413700632751, -0.06254825741052628, -0.02459299936890602, -0.005060103721916676, 0.00007528583955718204, -0.04080324247479439, -0.08239460736513138, -0.032617516815662384, 0.013129401952028275, 0.008006606251001358, 0.011884527280926704, 0.010433665476739407, -0.030718859285116196, 0.009403732605278492, -0.02591847814619541, 0.028103725984692574, -0.0373641662299633, 0.011311346665024757, -0.07136089354753494, -0.0014195158146321774, -0.030378535389900208, 0.027906695380806923, -0.030844243243336678, -0.03396090865135193, 0.014132467098534107, 0.08031683415174484, 0.012457706965506077, 0.011812879703938961, -0.015896786004304886, -0.004872029181569815, -0.02097480185329914, 0.0478605218231678, -0.030360622331500053, -0.04879193753004074, 0.030181504786014557, -0.03338772803544998, -0.028551524505019188, -0.032044339925050735, 0.034140028059482574, -0.04646339640021324, 0.06179595738649368, 0.00681994529440999, -0.04606933519244194, -0.01633562706410885, 0.026437923312187195, 0.011777055449783802, 0.05925247073173523, 0.017481986433267593, 0.025040796026587486, 0.005418341141194105, -0.019398557022213936, 0.0657365694642067, 0.04710822179913521, 0.02545277029275894, 0.04212872311472893, 0.017679017037153244, 0.026563305407762527, -0.015001192688941956, 0.049974121153354645, -0.05742546170949936, -0.00283455359749496, 0.017607370391488075, 0.0030226283706724644, -0.00007822450425010175, -0.05742546170949936, 0.0424153134226799, 0.01415933482348919, -0.0022568958811461926, 0.04080324247479439, -0.007339389529079199, 0.02007920853793621, 0.019541852176189423, -0.01957767643034458, -0.09307008236646652, 0.04925764724612236, 0.1424352079629898, -0.02731560356914997, -0.031220393255352974, 0.0525176078081131, -0.007625979371368885, 0.026473745703697205, 0.02785295993089676, 0.0032733946572989225, -0.11413444578647614, 0.02163754031062126, 0.06856664270162582, 0.014938500709831715, -0.0016848354134708643, -0.04205707460641861, 0.017258089035749435, -0.03439079225063324, 0.012869680300354958, 0.02821119874715805, -0.012923415750265121, -0.01995382457971573, 0.048576995730400085, 0.06150936707854271, 0.02711857296526432, -0.01218007318675518, 0.050475653260946274, -0.01548481360077858, 0.004280937369912863, 0.010863550007343292, 0.022586870938539505, 0.024754207581281662, 0.053126610815525055, -0.019076144322752953, -0.001933362684212625, -0.016487877815961838, 0.028587346896529198, -0.034641560167074203, 0.044027380645275116, 0.04614097997546196, -0.013568243011832237, -0.04230784252285957, -0.024181026965379715, 0.015019104816019535, -0.004621263127774, -0.012045733630657196, -0.08998924493789673, -0.017652150243520737, 0.008490227162837982, 0.01414142269641161, -0.006466185674071312, 0.05685228109359741, -0.05387891083955765, -0.018771640956401825, -0.006882636807858944, 0.005275046452879906, 0.02661704085767269, 0.04782469943165779, -0.02548859268426895, 0.02217489667236805, 0.03983600437641144, 0.0007041604840196669, -0.013433903455734253, 0.0004687872715294361, -0.025381121784448624, 0.03209807351231575, -0.014768337830901146, 0.010997889563441277, 0.00038174676592461765, 0.0486486442387104, 0.003528638742864132, -0.05735381320118904, -0.02253313548862934, -0.014051862992346287, -0.03233093023300171, 0.02470047026872635, -0.01375631708651781, -0.008405146189033985, 0.004863073118031025, 0.06014806404709816, 0.0727580264210701, -0.04237948730587959, -0.03077259659767151, -0.05122795328497887, -0.00716027058660984, -0.009735102765262127, 0.07085936516523361, 0.01063965167850256, -0.06229748949408531, -0.06279902160167694, 0.018646258860826492, 0.011168052442371845, 0.10646816343069077, -0.0365760438144207, -0.00478694774210453, 0.02867690660059452, 0.017365559935569763, -0.018341757357120514, 0.030378535389900208, -0.0008552919025532901, 0.032115984708070755, -0.01871790550649166, 0.016720732674002647, -0.0004866991366725415, 0.009157444350421429, 0.01677446812391281, -0.01321000512689352, 0.005713887047022581, -0.028658995404839516, 0.010890417732298374, -0.05731799080967903, -0.025399034842848778, 0.0002685381332412362, -0.04288101941347122, 0.026169244199991226, 0.022354016080498695, -0.017258089035749435, -0.0063363248482346535, 0.013147314079105854, -0.020867330953478813, 0.0392986461520195, 0.02131512761116028, -0.02774548903107643, -0.033047404140233994, -0.030826332047581673, 0.02210325002670288, -0.0190582312643528, -0.061867605894804, 0.05466703325510025, -0.009735102765262127, -0.04929346963763237, -0.05337737873196602, 0.04689327999949455, -0.060757070779800415, -0.0086559122428298, -0.019864264875650406, 0.01435636542737484, -0.03843887522816658, -0.02446761727333069, 0.06161683797836304, 0.028766466304659843, 0.0065557449124753475, -0.025166179984807968, -0.0373641662299633, -0.004916809033602476, -0.03182939440011978, 0.006510965526103973, -0.03516100347042084, -0.01668490841984749, 0.02708275057375431, 0.01995382457971573, 0.014266805723309517, 0.037794049829244614, 0.03222345560789108, -0.018771640956401825, 0.08461568504571915, 0.06799346208572388, 0.004737690091133118, -0.07415515184402466, -0.007146836724132299, 0.05284002050757408, 0.004070472903549671, -0.03754328191280365, -0.014266805723309517, -0.020240414887666702, -0.00005537987090065144, -0.0034569911658763885, 0.012153205461800098, 0.00791704747825861, -0.036970105022192, 0.04778887331485748, 0.07802411168813705, -0.05427297204732895, -0.024378057569265366, 0.05384308472275734, 0.0029263519681990147, 0.0478605218231678, -0.04657086730003357, -0.05606415867805481, 0.00885294284671545, 0.0365581288933754, -0.010944154113531113, 0.008418579585850239, 0.026312539353966713, 0.007366257254034281, -0.0704294815659523, 0.0014934022910892963, -0.023321257904171944, -0.09314173460006714, -0.024019820615649223, 0.002438253490254283, 0.008373799733817577, 0.07386855781078339, -0.03279663622379303, -0.008942501619458199, 0.003978674300014973, 0.01118596363812685, -0.025040796026587486, -0.008458881638944149, -0.004769036080688238, -0.08368426561355591, 0.013568243011832237, 0.028229109942913055, 0.012654737569391727, -0.03675515949726105, -0.09307008236646652, -0.006748297717422247, 0.03007403202354908, 0.04065994918346405, -0.0052481782622635365, -0.04485132545232773, -0.040874890983104706, -0.00978883821517229, -0.043669141829013824, 0.029626235365867615, 0.02618715725839138, -0.05638657137751579, 0.004630218725651503, 0.007231918163597584, -0.038223933428525925, -0.014069775119423866, 0.014302629977464676, 0.016917763277888298, -0.017607370391488075, -0.02470047026872635, 0.00020248811051715165, 0.041877955198287964, 0.0009051092783920467, 0.0015963956248015165, 0.017070014029741287, -0.0002949861518573016, 0.06416032463312149, -0.009681366384029388, -0.003192791249603033, 0.0447438545525074, 0.03598495200276375, -0.014929545111954212, -0.038188111037015915, 0.007308043539524078, 0.00514518516138196, -0.043095964938402176, -0.016138596460223198, -0.021386774256825447, -0.02264060638844967, 0.0024046688340604305, -0.012108425609767437, 0.020437445491552353, -0.04757393151521683, -0.05054730176925659, 0.047717224806547165, 0.0028099247720092535, 0.016908807680010796, 0.025811007246375084, 0.0243243221193552, 0.002771862084046006, -0.021028537303209305, -0.025076620280742645, 0.011821835301816463, -0.012538310140371323, -0.0024136246647685766, 0.024145202711224556, 0.03408629074692726, 0.015771403908729553, -0.023607846349477768, -0.007720016874372959, 0.023679494857788086, -0.05108465999364853, 0.0856187492609024, -0.005257134325802326, 0.0054765548557043076, -0.02486167848110199, 0.05971818044781685, 0.03937029466032982, 0.031650278717279434, 0.007621501572430134, -0.01882537640631199, -0.014481748454272747, -0.0036562609020620584, -0.013120446354150772, -0.002489750273525715, 0.0028278366662561893, -0.035770006477832794, -0.07931376993656158, -0.02941129356622696, -0.012439794838428497, 0.06319308280944824, -0.0028121639043092728, -0.04245113581418991, 0.005212354473769665, -0.03836723044514656, -0.02930382266640663, -0.002872616518288851, 0.051729485392570496, -0.01957767643034458, -0.04710822179913521, -0.005024279933422804, -0.09507621824741364, 0.03179357200860977, 0.00458991713821888, 0.08497391641139984, -0.06441108882427216, 0.032975755631923676, -0.030844243243336678, -0.05072642117738724, -0.059897299855947495, -0.024037731811404228, 0.011347170919179916, -0.01420411467552185, 0.01669386401772499, -0.006304978858679533, 0.00734386732801795, -0.05284002050757408, 0.012601002119481564, 0.021225567907094955, -0.0035734183620661497, -0.031381599605083466, -0.024306410923600197, 0.059001706540584564, -0.008172291330993176, 0.019362732768058777, 0.03886876255273819, 0.004831727594137192, -0.021153921261429787, 0.015153443440794945, 0.0017005082918331027, -0.012986106798052788, 0.013398080132901669, -0.04148389399051666, -0.013460771180689335, -0.011374038644134998, -0.06544998288154602, -0.04327508062124252, 0.004751123953610659, 0.011060580611228943, 0.008243938907980919, 0.0284082293510437, -0.01050531305372715, -0.02695736661553383, 0.0190582312643528, 0.0361819826066494, -0.057174693793058395, 0.053986381739377975, -0.03240257501602173, -0.047681402415037155, 0.026939455419778824, -0.0109889330342412, -0.01715957373380661, 0.024019820615649223, -0.012833856046199799, 0.03127412870526314, 0.06548580527305603, 0.061258602887392044, -0.04524538666009903, -0.013702581636607647, -0.0400867685675621, 0.02058074064552784, -0.02167336456477642, -0.028193285688757896, -0.009157444350421429, -0.020688211545348167, 0.005194442812353373, -0.03718504682183266, 0.03125621750950813, -0.027333516627550125, 0.09830035269260406, -0.038152288645505905, 0.011821835301816463, 0.0034480353351682425, -0.039513587951660156, -0.03628945350646973, -0.055885039269924164, -0.029859090223908424, 0.04112565889954567, -0.00497054448351264, -0.030253151431679726, -0.019076144322752953, -0.04205707460641861, 0.03376387804746628, -0.07601798325777054, -0.03623571619391441, 0.0416271910071373, -0.029053056612610817, 0.04259443283081055, 0.0034480353351682425, -0.035429682582616806, 0.06430362164974213, -0.01642518676817417, 0.04438561946153641, -0.009815705940127373, 0.008548440411686897, -0.0033651927951723337, -0.025775182992219925, -0.020903155207633972, 0.05008159205317497, 0.02532738633453846, -0.033674318343400955, 0.012018865905702114, -0.004030171316117048, -0.03451617807149887, -0.0024270585272461176, 0.07261472940444946, 0.022783901542425156, 0.00913953222334385, -0.029357558116316795, -0.0289814081043005, 0.02470047026872635, -0.009152966551482677, 0.014213070273399353, 0.020365798845887184, 0.03491023927927017, 0.05473868176341057, -0.03379970043897629, -0.057962816208601, -0.0649842694401741, -0.03242048621177673, 0.01852087490260601, -0.018395492807030678, 0.0276201069355011, -0.031453248113393784, 0.05746128410100937, -0.005167575087398291, -0.03491023927927017, 0.017616325989365578, -0.08504556864500046, 0.031345777213573456, -0.01634458266198635, 0.04105401039123535, 0.031023362651467323, -0.039477765560150146, -0.10159613937139511, 0.06244078651070595, -0.0010612783953547478, 0.02380487695336342, 0.014213070273399353, 0.005740754771977663, 0.02074194699525833, 0.009466424584388733, -0.013281652703881264, 0.036826808005571365, -0.00013650805340148509, 0.009032061323523521, 0.046785809099674225, 0.0027651451528072357, 0.03897623345255852, -0.011705407872796059, -0.02267642877995968, 0.026814071461558342, -0.02221072092652321, 0.06942641735076904, 0.03584165498614311, -0.021655453369021416, -0.014329497702419758, -0.026348363608121872, 0.052625078707933426, 0.027494722977280617, -0.0025569195859134197, 0.05276837572455406, 0.004742167890071869, -0.01792978309094906, -0.05054730176925659, 0.01988217793405056, -0.027763402089476585, -0.018189506605267525, -0.046391747891902924, 0.028730642050504684, 0.02283763699233532, 0.036361098289489746, 0.013478683307766914, 0.004594394937157631, 0.010200810618698597, -0.020168768242001534, 0.026133421808481216, 0.012583089992403984, 0.028605259954929352, 0.017365559935569763, 0.0653425082564354, 0.04374079033732414, -0.03625362738966942, 0.03600286319851875, -0.027530547231435776, -0.00004065155371790752, -0.049902476370334625, 0.05298331752419472, 0.09357161819934845, 0.0044645341113209724, -0.015789315104484558, 0.010057516396045685, -0.012171116657555103, 0.05301913991570473, -0.04112565889954567, -0.0015751252649351954, -0.031184569001197815, -0.06054212525486946, -0.01324582938104868, -0.014293673448264599, 0.021565893664956093, 0.07132507115602493, 0.025506505742669106, 0.061652664095163345, 0.003289067419245839 ]
21,059
tfields.core
_as_dict
null
def _as_dict(self, recurse: typing.Dict[str, typing.Callable] = None) -> dict: if recurse is None: recurse = {} def recurse_args_0( iterable: typing.List[typing.Tuple[int, typing.Any]] ) -> dict: # iterable is list of tuple part_dict = {"type": "list"} for i, (dim, tensor) in enumerate(iterable): content = tensor._as_dict() tuple_key = _HIERARCHY_SEPARATOR.join(["args", str(i), ""]) part_dict[tuple_key + "type"] = "tuple" args_key = tuple_key + _HIERARCHY_SEPARATOR.join(["args", ""]) part_dict[ args_key + _HIERARCHY_SEPARATOR.join(["0", "args", "0"]) ] = dim part_dict[args_key + _HIERARCHY_SEPARATOR.join(["0", "type"])] = "int" for key, value in content.items(): part_dict[args_key + _HIERARCHY_SEPARATOR.join(["1", key])] = value return part_dict attr = "args" + _HIERARCHY_SEPARATOR + str(0) recurse[attr] = recurse_args_0 return super()._as_dict(recurse=recurse)
(self, recurse: Optional[Dict[str, Callable]] = None) -> dict
[ -0.030741984024643898, -0.03852143511176109, 0.0007786497008055449, 0.027735432609915733, 0.007394236512482166, 0.04389564320445061, -0.00018159685714635998, 0.02767905965447426, -0.01761651039123535, -0.014346885494887829, 0.05746270716190338, 0.08643834292888641, -0.015558901242911816, -0.03329755365848541, -0.008347876369953156, -0.019100993871688843, 0.03303447738289833, 0.0379389151930809, -0.02508590929210186, 0.05302804335951805, 0.030009137466549873, 0.0001946624252013862, 0.035364557057619095, 0.03961130976676941, -0.005909751635044813, -0.03429347276687622, -0.0007140558445826173, 0.020275428891181946, -0.008822347968816757, -0.03314722329378128, -0.08711481839418411, -0.025931501761078835, 0.0027881062123924494, 0.06745948642492294, -0.0034880689345300198, -0.004270242061465979, -0.059304218739271164, 0.04336949810385704, -0.08921939879655838, -0.03553367406129837, -0.012223509140312672, -0.03395523503422737, -0.0644153580069542, -0.01882852613925934, 0.04836788773536682, -0.011528244242072105, 0.047503504902124405, -0.037844959646463394, -0.0005193934193812311, -0.056147340685129166, 0.03322238847613335, -0.10237306356430054, 0.03882208839058876, 0.00658152811229229, -0.027547523379325867, 0.0002103704900946468, 0.019674118608236313, -0.012580537237226963, 0.03284657001495361, -0.001964827999472618, -0.0003778741229325533, 0.021741122007369995, 0.0029948067385703325, 0.02848707139492035, -0.02065124735236168, -0.0007745391922071576, -0.04802965372800827, -0.027171704918146133, -0.04321917146444321, 0.014328094199299812, -0.01657361164689064, -0.06152154877781868, 0.026626767590641975, -0.018978852778673172, 0.006647296249866486, -0.01715613156557083, -0.005543328355997801, 0.005407094024121761, 0.021365303546190262, 0.03295931592583656, -0.046827033162117004, 0.006708366796374321, -0.052050914615392685, 0.01435628067702055, -0.00411991449072957, 0.03132450208067894, -0.006412409711629152, 0.03803287073969841, -0.02463492751121521, -0.032320424914360046, -0.056485578417778015, 0.0036430940963327885, -0.002677709562703967, 0.036041028797626495, 0.009959200397133827, -0.008817650377750397, 0.04359498992562294, -0.03745035082101822, -0.00839485414326191, -0.006196313537657261, -0.02704016864299774, -0.04802965372800827, 0.003603163408115506, -0.025255028158426285, -0.016639379784464836, -0.08606252074241638, -0.02168474905192852, -0.022530341520905495, -0.03904758021235466, -0.03745035082101822, -0.030140673741698265, 0.04735317826271057, -0.0024569157976657152, 0.051261693239212036, 0.014403258450329304, -0.0072486065328121185, -0.016197793185710907, -0.029201125726103783, 0.009686731733381748, 0.0045990836806595325, -0.0023559145629405975, 0.0765543058514595, 0.006675482727587223, 0.023451097309589386, -0.025781175121665, 0.04521100968122482, -0.006750646512955427, 0.046714287251234055, 0.00919346883893013, 0.00941426306962967, 0.037751004099845886, 0.00017895437486004084, -0.047278013080358505, 0.03528939187526703, 0.06464084982872009, 0.03459412604570389, 0.03397402539849281, -0.029332663863897324, -0.013707993552088737, 0.04652637615799904, 0.024089990183711052, -0.010973910801112652, 0.009752499870955944, 0.00981826800853014, 0.02294374257326126, -0.017560137435793877, 0.059304218739271164, 0.04746592417359352, -0.022079359740018845, -0.03235800564289093, -0.047841742634773254, 0.005444676149636507, 0.017400413751602173, 0.05167509615421295, -0.03327875956892967, 0.005937938112765551, -0.0025767080951482058, -0.03186944127082825, -0.014666331931948662, -0.02440943568944931, -0.04554924741387367, 0.0038615388330072165, -0.03372974321246147, -0.01927950792014599, -0.007262699771672487, -0.002745826728641987, 0.011998017318546772, -0.06986472755670547, -0.00840424932539463, -0.028862889856100082, 0.002764617558568716, -0.017766837030649185, 0.00890690740197897, -0.004819876980036497, 0.030723193660378456, 0.04945776239037514, 0.008596857078373432, -0.0019155017798766494, 0.00811768788844347, 0.03055407479405403, 0.05009665712714195, -0.05644799396395683, -0.010344414971768856, -0.008385458961129189, 0.039911963045597076, -0.016028674319386482, -0.007196931634098291, 0.016056861728429794, 0.01896945759654045, 0.03440621867775917, -0.012458395212888718, 0.0297272726893425, 0.04464728385210037, 0.014619354158639908, -0.007164047099649906, 0.036041028797626495, -0.03692420572042465, 0.008305597119033337, -0.013200637884438038, 0.019241927191615105, -0.017419204115867615, -0.04731559753417969, 0.014281117357313633, 0.02553689293563366, -0.02794213406741619, -0.017973538488149643, 0.03527060151100159, -0.00009556956501910463, 0.0004926750552840531, 0.003995424602180719, -0.04404597356915474, -0.04404597356915474, 0.034443799406290054, -0.045023102313280106, -0.012881191447377205, -0.06783530861139297, 0.014788473024964333, 0.01895066723227501, -0.014638145454227924, -0.03780737891793251, 0.07599058002233505, 0.012918774038553238, -0.024259109050035477, -0.050697967410087585, 0.03972405567765236, -0.07335984706878662, -0.024465808644890785, -0.025010745972394943, -0.020933112129569054, 0.007445911411195993, 0.019335880875587463, -0.06636961549520493, -0.002293669618666172, -0.01380194816738367, 0.007920382544398308, 0.010757815092802048, -0.001928420620970428, -0.06727157533168793, 0.06155913323163986, 0.0013693900546059012, 0.027491150423884392, 0.00008110934868454933, -0.03498873859643936, -0.03030979260802269, -0.033090852200984955, -0.02292495220899582, 0.05859016254544258, 0.056297667324543, 0.019486209377646446, 0.005331930238753557, 0.00981826800853014, 0.016028674319386482, -0.0005543328588828444, 0.03654838725924492, -0.033523041754961014, 0.033880069851875305, 0.02249275892972946, 0.02566842921078205, 0.004317219369113445, -0.021534422412514687, 0.05892840027809143, 0.01783260516822338, -0.010851769708096981, 0.03154999390244484, 0.007243908941745758, -0.015032755210995674, 0.004763504024595022, 0.01383952982723713, -0.1022227331995964, 0.014826054684817791, 0.011302752420306206, 0.004152798559516668, 0.06482875347137451, -0.01010013185441494, 0.03823957219719887, 0.023338351398706436, 0.08531088382005692, -0.022210896015167236, -0.03450017422437668, 0.03893483430147171, 0.017391018569469452, -0.035477302968502045, -0.015070336870849133, -0.005200393497943878, 0.03803287073969841, 0.02328197844326496, 0.0004859220643993467, 0.0590035617351532, -0.003185064997524023, -0.02144046686589718, 0.05400517210364342, -0.0021562608890235424, 0.01942983642220497, 0.01861242949962616, 0.008991466835141182, 0.032752614468336105, -0.06366371363401413, -0.03596586734056473, 0.04881887137889862, 0.009498822502791882, 0.048969198018312454, 0.026833467185497284, 0.04145282134413719, 0.02042575553059578, 0.08463440835475922, 0.015107918530702591, -0.0074975863099098206, 0.05393000692129135, -0.04833030700683594, 0.025217445567250252, -0.04378289729356766, 0.04370773583650589, 0.029783645644783974, 0.04197896644473076, -0.04554924741387367, -0.028242789208889008, 0.03177548572421074, -0.019335880875587463, 0.024578554555773735, 0.08478473871946335, -0.03634168580174446, 0.02782938815653324, 0.0021315976046025753, -0.00840424932539463, 0.08756579458713531, -0.05347902700304985, 0.06539248675107956, 0.006107056513428688, 0.050585221499204636, 0.012336254119873047, -0.0016747429035604, -0.05731237679719925, -0.0011767828837037086, 0.028637398034334183, -0.027660269290208817, 0.04404597356915474, 0.0524643138051033, 0.06178462132811546, -0.05051005631685257, -0.016770917922258377, -0.014205953106284142, 0.008427738212049007, 0.003217949066311121, 0.019955981522798538, -0.016620589420199394, -0.02224847674369812, 0.03504510968923569, -0.009733708575367928, 0.06978956609964371, -0.022774623706936836, -0.03450017422437668, -0.02179749496281147, -0.011180611327290535, 0.031192965805530548, -0.015624669380486012, -0.023582633584737778, -0.016667567193508148, -0.056297667324543, -0.01590653322637081, -0.004324265755712986, 0.06858694553375244, 0.01999356411397457, 0.00490913400426507, 0.015737416222691536, 0.07257062196731567, -0.026739513501524925, -0.037074532359838486, 0.04769141599535942, 0.08756579458713531, -0.01647026278078556, 0.03953614458441734, -0.004040053114295006, -0.037281233817338943, 0.011293357238173485, 0.005942636169493198, 0.050359729677438736, -0.033673372119665146, 0.04596264660358429, -0.05847741663455963, -0.043294332921504974, -0.00811768788844347, -0.007558657322078943, 0.056936558336019516, -0.032395586371421814, 0.028336742892861366, -0.03305327147245407, 0.07279611378908157, -0.02281220629811287, 0.011096051894128323, -0.04506068304181099, -0.0702405497431755, 0.04419630020856857, 0.00031739077530801296, 0.0313057117164135, -0.003415253944694996, -0.06543006747961044, 0.06832387298345566, -0.010475951246917248, -0.055583611130714417, -0.02677709423005581, 0.001873222179710865, -0.1132718101143837, -0.004152798559516668, -0.02157200314104557, 0.061596713960170746, -0.057876106351614, 0.002234947867691517, 0.01882852613925934, 0.056297667324543, 0.00775126414373517, 0.04100183770060539, -0.002748175524175167, -0.015699833631515503, 0.0558466836810112, 0.03844626992940903, -0.0026330810505896807, -0.027058959007263184, 0.04201655089855194, -0.008408946916460991, 0.010645069181919098, 0.058627743273973465, 0.027509940788149834, 0.02078278362751007, 0.042054131627082825, 0.029013216495513916, 0.020857946947216988, -0.045474082231521606, 0.007398934103548527, 0.030159464105963707, 0.0014046230353415012, -0.06189736723899841, -0.04814239591360092, 0.04201655089855194, -0.04085151106119156, -0.010457159951329231, -0.005609096493571997, -0.0023923220578581095, -0.04299367964267731, 0.017005804926156998, 0.04915710911154747, -0.017663486301898956, 0.029144752770662308, 0.006839903537184, -0.07133042067289352, 0.028411906212568283, 0.010391391813755035, -0.03158757463097572, 0.027491150423884392, 0.00902904849499464, -0.005759424064308405, 0.07884679734706879, 0.01895066723227501, 0.06178462132811546, -0.08230433613061905, -0.01134973019361496, -0.0030229929834604263, -0.027754222974181175, 0.027641478925943375, 0.027641478925943375, 0.0010505311656743288, 0.012223509140312672, -0.032076142728328705, -0.0014809612184762955, -0.01882852613925934, 0.024484599009156227, -0.07892196625471115, 0.002691802801564336, -0.030572865158319473, -0.057725779712200165, -0.04562441259622574, 0.056936558336019516, 0.049194689840078354, 0.009076026268303394, -0.0581015981733799, 0.03575916588306427, 0.0009377855458296835, 0.028787726536393166, -0.007178140338510275, -0.056297667324543, -0.04509826377034187, 0.04209171235561371, -0.021421676501631737, 0.048856452107429504, -0.017860792577266693, -0.018001724034547806, 0.029576946049928665, -0.04021262004971504, 0.010936329141259193, -0.04833030700683594, 0.04423388093709946, -0.05438099056482315, 0.008817650377750397, -0.013736180029809475, 0.03859659656882286, 0.05051005631685257, -0.012336254119873047, -0.023639006540179253, 0.00993101391941309, -0.021271347999572754, -0.02760389633476734, -0.0039014697540551424, -0.04960809275507927, 0.041828639805316925, 0.042054131627082825, -0.049194689840078354, 0.01407441683113575, 0.011302752420306206, 0.03652959316968918, -0.013604642823338509, -0.03643564134836197, -0.03089231066405773, -0.013294592499732971, -0.020726410672068596, 0.0025367774069309235, 0.007906289771199226, -0.004281986504793167, -0.005684260278940201, 0.019213739782571793, 0.004507477395236492, -0.08155269920825958, -0.01849028840661049, 0.05167509615421295, 0.03823957219719887, 0.08177818357944489, 0.004937320481985807, 0.0269086305052042, 0.06362613290548325, -0.03790133446455002, 0.028205206617712975, 0.03318480774760246, 0.013651620596647263, 0.02850586175918579, -0.02078278362751007, 0.014619354158639908, -0.03553367406129837, -0.014158976264297962, 0.029915181919932365, 0.02906958945095539, -0.03833352401852608, 0.03551488369703293, 0.03508269041776657, 0.03260228782892227, -0.008784766308963299, -0.03874692693352699, 0.05911630764603615, 0.00316392513923347, 0.061371222138404846, -0.0036266520619392395, 0.014431444928050041, -0.001507973182015121, -0.04528617486357689, -0.0520133338868618, -0.017766837030649185, 0.010156504809856415, -0.06791047006845474, -0.05073554813861847, -0.011509452946484089, -0.09508217871189117, -0.021947821602225304, 0.025743592530488968, -0.008601554669439793, 0.03551488369703293, -0.009733708575367928, -0.018781548365950584, -0.052840132266283035, 0.02238001488149166, -0.022906159982085228, 0.1058305948972702, -0.1013207659125328, 0.025912711396813393, 0.004432314075529575, 0.0018743965774774551, 0.024597344920039177, -0.01112423837184906, 0.0006664912798441947, -0.009061932563781738, -0.026250949129462242, -0.004458151292055845, -0.00502657750621438, -0.01839633472263813, 0.00709827896207571, -0.008042523637413979, -0.017315855249762535, 0.00823513139039278, 0.01372678391635418, 0.049307435750961304, -0.006666087079793215, 0.0569741427898407, -0.04686461389064789, -0.006356036756187677, 0.010391391813755035, 0.02974606305360794, 0.034349843859672546, 0.028524652123451233, 0.02700258605182171, -0.03532697260379791, -0.02078278362751007, 0.031399667263031006, 0.013933484442532063, -0.1047031357884407, -0.07441213726997375, 0.012167136184871197, -0.029238708317279816, 0.04107700288295746, -0.01974928192794323, -0.02688984014093876, 0.07230754941701889, 0.03019704669713974, -0.005148718599230051, -0.04509826377034187, -0.009522310458123684, -0.015154896304011345, 0.07005263864994049, -0.014365676790475845, 0.005374209955334663, -0.03596586734056473, -0.054568901658058167, 0.002886758651584387, 0.005778215359896421, -0.024578554555773735, -0.025593265891075134, -0.027415987104177475, -0.029332663863897324, -0.03611619397997856, -0.04430904611945152, 0.017860792577266693, 0.002344170119613409, -0.008733090944588184, 0.040475692600011826, -0.016770917922258377, 0.03827715292572975, -0.0039014697540551424, -0.016160212457180023, -0.012176531367003918, -0.001365866744890809, -0.034218307584524155, -0.032076142728328705, 0.0006700145895592868, 0.010485346429049969, 0.010588697157800198, 0.04336949810385704, -0.012355045415461063, -0.043519824743270874, 0.024221526458859444, -0.016282353550195694, -0.05490713566541672, 0.03371095284819603, -0.04799206927418709, 0.032301630824804306, 0.010024968534708023, 0.01691184937953949, 0.04040052741765976, 0.003852143418043852, -0.011565825901925564, -0.02294374257326126, 0.05483197420835495, 0.003243786748498678, -0.04904436320066452, -0.03677387535572052, 0.04186622425913811, -0.001416367362253368, 0.004281986504793167, -0.09418021142482758, -0.039122745394706726, 0.04453453794121742, 0.0021750517189502716, -0.09463119506835938, 0.014516004361212254, 0.1056051030755043, -0.03654838725924492, 0.02204177714884281, -0.021045856177806854, 0.01827419362962246, 0.02328197844326496, -0.041603147983551025, 0.01927950792014599, 0.01328519731760025, 0.0517878420650959, 0.01493880059570074, -0.052614644169807434, -0.053854845464229584, 0.0002839194203261286, -0.05731237679719925, 0.04769141599535942, -0.026476439088582993, -0.057876106351614, -0.0383898988366127, -0.002964271465316415, -0.005618492141366005, -0.010475951246917248, 0.024484599009156227, -0.04735317826271057, -0.0058627743273973465, -0.01952379010617733, -0.015230059623718262, 0.007460004650056362, -0.045925065875053406, -0.048743706196546555, 0.06997747719287872, -0.04735317826271057, -0.0012766097206622362, -0.005989613477140665, -0.016977617517113686, 0.022229686379432678, 0.03404919058084488, -0.019899608567357063, -0.002785757416859269, 0.004183333832770586, 0.05937938392162323, 0.0134543152526021, -0.046037811785936356, 0.02566842921078205, 0.02373296208679676, -0.034011609852313995, -0.006769437342882156, -0.016545426100492477, 0.06580588221549988, 0.04040052741765976, 0.00914649199694395, -0.03538334742188454, -0.03247075155377388, 0.028674980625510216, 0.058176763355731964, 0.05622250214219093, -0.008902209810912609, 0.0036313498858362436, 0.05411791801452637, -0.023112861439585686, 0.008056617341935635, -0.044797610491514206, 0.003734700148925185, -0.03600344806909561, -0.013811343349516392, -0.0060271951369941235, 0.021590793505311012, 0.009169980883598328, 0.008051919750869274, 0.026025457307696342, -0.04720285162329674, 0.006543945986777544, -0.02715291455388069, 0.04393322765827179, -0.0553957037627697, 0.09538283199071884, 0.04359498992562294, -0.01391469407826662, 0.011716153472661972, 0.010391391813755035, 0.04088909178972244, -0.03382369875907898, 0.03380490839481354, 0.06434018909931183, -0.050923459231853485, -0.05599701404571533, 0.018471498042345047, -0.033880069851875305, 0.0021139811724424362, -0.050434891134500504, -0.011716153472661972, -0.026063038036227226, -0.023075278848409653, -0.04412113502621651, 0.023676589131355286, -0.029708482325077057, -0.06892517954111099, 0.002368833404034376, 0.06892517954111099, -0.009376680478453636 ]
21,060
sortedcontainers.sorteddict
_check
Check invariants of sorted dict. Runtime complexity: `O(n)`
def _check(self): """Check invariants of sorted dict. Runtime complexity: `O(n)` """ _list = self._list _list._check() assert len(self) == len(_list) assert all(key in self for key in _list)
(self)
[ 0.016972139477729797, 0.019621070474386215, -0.10581918060779572, 0.03152831643819809, -0.00009929446241585538, -0.017127452418208122, 0.0008331837016157806, -0.033599141985177994, 0.029284924268722534, -0.03454827144742012, -0.021381273865699768, 0.024522025138139725, 0.08939063549041748, -0.04241740703582764, -0.022399429231882095, -0.028232254087924957, -0.0006740968092344701, 0.07972677797079086, -0.03865540772676468, -0.010906347073614597, -0.0061089349910616875, 0.015375878661870956, 0.012045301496982574, 0.036826178431510925, 0.004199892748147249, 0.028094198554754257, 0.03851735219359398, 0.019172392785549164, 0.06592127680778503, 0.04241740703582764, -0.06295309215784073, 0.0471457913517952, 0.03913860023021698, 0.06295309215784073, 0.03910408914089203, -0.03527306020259857, 0.02029408887028694, -0.07061515003442764, -0.04528205096721649, 0.037447426468133926, 0.04300414398312569, -0.03824124485254288, 0.04590329900383949, -0.021398529410362244, 0.027300382032990456, 0.007877765223383904, 0.025902574881911278, 0.0976739376783371, -0.021381273865699768, -0.01466834731400013, 0.009517168626189232, -0.051839664578437805, 0.04089880362153053, -0.012735576368868351, -0.03886249288916588, 0.023693693801760674, 0.051598068326711655, 0.018223263323307037, 0.04241740703582764, 0.02134675905108452, -0.007200432941317558, 0.015729645267128944, -0.02769729122519493, -0.06581773608922958, -0.01588495634496212, -0.018999824300408363, -0.05912206694483757, -0.03516951948404312, -0.005837139207869768, 0.011898618191480637, 0.007092577405273914, 0.011976273730397224, 0.001642639166675508, 0.026230456307530403, -0.05801762640476227, 0.0028279710095375776, -0.01936221867799759, 0.010966746136546135, 0.020104262977838516, -0.07779400795698166, -0.009180659428238869, -0.024556538090109825, 0.019483016803860664, 0.007010607048869133, -0.04393601417541504, 0.03118317946791649, 0.030889812856912613, 0.03499694913625717, 0.06899300217628479, 0.056291937828063965, -0.018930796533823013, 0.07344527542591095, -0.016204209998250008, 0.004987237975001335, 0.016704658046364784, 0.015401764772832394, -0.00562142813578248, -0.06619738787412643, -0.08531800657510757, 0.03242567554116249, -0.006652527023106813, 0.01006076019257307, 0.03817221522331238, 0.01225238386541605, 0.01564336009323597, -0.006527414545416832, -0.009689737111330032, -0.02707604318857193, -0.04403955489397049, -0.014236925169825554, -0.04614489525556564, 0.01977638341486454, -0.0003934029082302004, 0.008084847591817379, 0.032580986618995667, -0.028939785435795784, -0.03527306020259857, -0.051874179393053055, -0.0477670393884182, -0.011769191361963749, 0.03872443735599518, 0.016885856166481972, -0.001705195289105177, 0.002659716410562396, 0.04013950005173683, -0.02766277641057968, 0.030596446245908737, 0.04807766526937485, -0.007774224039167166, -0.015738273039460182, 0.046835169196128845, 0.007463600020855665, -0.017532989382743835, 0.056395478546619415, 0.02405609004199505, -0.04535107687115669, 0.05536006763577461, -0.037274859845638275, -0.056602563709020615, -0.021087905392050743, 0.050804249942302704, 0.0014312424464151263, 0.05477333441376686, 0.012770090252161026, 0.04462628811597824, -0.03820673003792763, -0.07206472754478455, 0.03427216038107872, 0.033840738236904144, 0.00801150593906641, 0.002127988962456584, -0.023538382723927498, 0.006393673829734325, -0.028939785435795784, -0.03834478557109833, -0.07523999363183975, -0.041761647909879684, -0.05749991908669472, -0.036550071090459824, 0.009517168626189232, -0.041934214532375336, 0.007014921400696039, -0.024970702826976776, -0.005013123154640198, -0.04328025132417679, 0.0249534472823143, -0.06326371431350708, -0.0478360690176487, -0.0017116667004302144, 0.016765058040618896, 0.011424053460359573, -0.04417761042714119, -0.05370340868830681, 0.008740609511733055, 0.00674312561750412, -0.00430990569293499, -0.04828474670648575, 0.042072270065546036, -0.0021538741420954466, 0.0008186231716535985, -0.042141299694776535, -0.051218416541814804, -0.005746540613472462, -0.016109297052025795, -0.012157470919191837, 0.04514399543404579, -0.006039907690137625, 0.013115228153765202, 0.02036311663687229, 0.05090779438614845, -0.08379940688610077, -0.022882621735334396, 0.003522560466080904, -0.04103685915470123, -0.002091317903250456, -0.008921806700527668, -0.03249470144510269, 0.036204930394887924, 0.01239043939858675, 0.02141578681766987, -0.024038832634687424, -0.037033263593912125, 0.034082334488630295, -0.021156933158636093, 0.023365814238786697, 0.018861768767237663, -0.026057887822389603, -0.03016502410173416, 0.05991588532924652, 0.017360420897603035, -0.011355026625096798, -0.05366889387369156, -0.04925113171339035, -0.010682008229196072, 0.03290886804461479, -0.05463527888059616, -0.01019881572574377, -0.05560166388750076, 0.0011885674903169274, -0.009948590770363808, 0.11472373455762863, -0.021329501643776894, -0.015841815620660782, -0.036860693246126175, 0.026264969259500504, 0.0016458748141303658, 0.030924327671527863, 0.05725832283496857, -0.036515556275844574, -0.023331299424171448, 0.02269279584288597, 0.016670145094394684, 0.010474925860762596, 0.014573434367775917, 0.017981667071580887, 0.0013449579710140824, -0.016851341351866722, -0.015790043398737907, -0.014340466819703579, 0.010345499031245708, -0.0003977171436417848, 0.04793960973620415, -0.004650728777050972, 0.012140214443206787, -0.05812116712331772, -0.0012284740805625916, -0.03931117057800293, 0.060675185173749924, 0.025626465678215027, 0.026023373007774353, -0.08669856190681458, -0.00045730729470960796, -0.019862666726112366, -0.022968905046582222, -0.016773685812950134, -0.006954522337764502, -0.0054833730682730675, -0.013210141099989414, 0.04269351810216904, -0.02176092378795147, 0.021053392440080643, 0.008473127149045467, 0.013943558558821678, 0.051667094230651855, 0.0028603277169167995, 0.030579188838601112, 0.08214274048805237, 0.032132308930158615, -0.05335826799273491, 0.0003168255207128823, 0.015617475844919682, -0.0478360690176487, 0.014452636241912842, 0.024936189875006676, 0.00635915994644165, 0.0471457913517952, 0.041589077562093735, -0.028422079980373383, -0.05370340868830681, 0.047007739543914795, 0.07448069006204605, 0.0020266047213226557, -0.003831027075648308, 0.008973577059805393, -0.056119371205568314, -0.01129462756216526, -0.034634556621313095, -0.04542010650038719, -0.018447604030370712, -0.025833547115325928, 0.01730864867568016, -0.023745466023683548, 0.061779625713825226, -0.005250405520200729, 0.015669245272874832, -0.02717958390712738, 0.03796513378620148, -0.027196841314435005, 0.011933132074773312, 0.020621970295906067, 0.017463961616158485, 0.036722637712955475, 0.001216609962284565, -0.04604135453701019, 0.06443718820810318, -0.0003540356701705605, -0.02151932753622532, 0.04331476613879204, -0.012899517081677914, -0.022054290398955345, -0.016808200627565384, 0.06933814287185669, 0.02519504353404045, 0.0500449500977993, 0.0508732795715332, -0.04542010650038719, -0.046386491507291794, -0.006536042783409357, -0.036860693246126175, 0.08041705191135406, -0.03465181216597557, 0.051321957260370255, 0.00635915994644165, 0.004236563574522734, -0.03163185715675354, -0.1001589223742485, 0.020811796188354492, -0.006820781156420708, 0.018326805904507637, 0.006712926086038351, 0.000410659791668877, -0.06391947716474533, 0.03858638182282448, 0.032753556966781616, 0.0018669785931706429, 0.07227180898189545, 0.0005727126845158637, 0.031114153563976288, 0.03882797807455063, -0.03335754573345184, 0.01765378750860691, -0.010405898094177246, 0.010949489660561085, -0.010267842561006546, -0.015565704554319382, -0.018568402156233788, -0.03194248303771019, 0.004849182907491922, -0.003026425139978528, -0.017291393131017685, -0.06467878073453903, -0.020949851721525192, 0.03290886804461479, 0.014297324232757092, 0.05301313102245331, 0.007127090822905302, 0.03465181216597557, -0.03320223465561867, 0.0033133206889033318, 0.015764158219099045, 0.10864930599927902, -0.05494590103626251, -0.046800654381513596, -0.01775732822716236, -0.0005376596236601472, -0.041451022028923035, 0.025108758360147476, -0.05912206694483757, -0.015186053700745106, 0.01357253547757864, -0.031165923923254013, -0.04069172218441963, 0.019862666726112366, -0.016523461788892746, 0.018551144748926163, -0.009232429787516594, 0.006868237629532814, 0.08159052580595016, -0.01591947115957737, 0.0027632578276097775, 0.052184801548719406, 0.0062901321798563, 0.013443108648061752, 0.0020557257812470198, -0.052012231200933456, -0.014461264945566654, 0.003843969665467739, 0.03772353753447533, 0.018879026174545288, 0.04441920667886734, -0.014072984457015991, 0.0038504411932080984, -0.04376344382762909, -0.041416510939598083, -0.0494927279651165, 0.042244840413331985, 0.04103685915470123, -0.0018216792959719896, -0.0506661981344223, -0.03810318931937218, 0.05960525944828987, -0.041381996124982834, -0.02182995155453682, -0.03266727179288864, -0.001124932779930532, -0.012985801324248314, -0.005168435163795948, 0.01585044339299202, 0.024487510323524475, 0.014288695529103279, -0.010518067516386509, -0.028801731765270233, 0.034116849303245544, -0.05328924208879471, -0.023037932813167572, -0.03848284110426903, 0.004486788529902697, 0.007390258368104696, 0.030907070264220238, -0.005341004114598036, 0.05977782979607582, -0.022848106920719147, -0.010871834121644497, 0.056326452642679214, -0.03837930038571358, -0.060813240706920624, -0.052012231200933456, 0.04072623327374458, -0.0017138237599283457, -0.01922416314482689, -0.009551682509481907, -0.013770989142358303, 0.005358261056244373, -0.020604712888598442, 0.0005419738590717316, -0.015462163835763931, -0.005362574942409992, -0.018464859575033188, 0.029388464987277985, 0.021243218332529068, -0.004987237975001335, 0.03332303464412689, 0.03130397945642471, 0.0026295168790966272, 0.06360885500907898, 0.061710599809885025, 0.003798670368269086, 0.02196800708770752, 0.06074421480298042, -0.011027145199477673, 0.0039065261371433735, 0.04421212524175644, -0.021122420206665993, -0.07737984508275986, -0.03228762000799179, -0.01987992413341999, -0.02881898730993271, -0.014504406601190567, -0.03142477571964264, 0.023762721568346024, 0.01806795224547386, 0.017532989382743835, 0.008641381748020649, -0.05908755213022232, -0.028698189184069633, -0.005988136865198612, -0.06454072892665863, 0.0497688390314579, 0.013986700214445591, 0.009896820411086082, 0.006467015482485294, -0.018102465197443962, -0.05905304104089737, -0.016100667417049408, -0.028663676232099533, -0.004206364043056965, 0.08262593299150467, 0.03344383090734482, -0.028629161417484283, -0.005806939676403999, 0.05470430478453636, 0.024798134341835976, 0.04493691399693489, -0.01741219125688076, -0.00008405987318838015, -0.05401403084397316, -0.060916781425476074, 0.0033737197518348694, -0.020967107266187668, -0.02022506296634674, -0.056119371205568314, -0.11161749064922333, -0.00966385193169117, 0.061848655343055725, 0.05756894871592522, -0.04521302133798599, -0.021916236728429794, 0.005673198960721493, 0.0005689377430826426, -0.029492005705833435, 0.0038676979020237923, 0.04793960973620415, 0.021605612710118294, 0.06778501719236374, 0.003833184251561761, 0.028801731765270233, -0.006479958072304726, -0.02426317147910595, 0.01485817227512598, -0.031010610982775688, 0.025039730593562126, 0.001491641509346664, 0.03239116072654724, -0.009594825096428394, 0.056533534079790115, -0.009931333363056183, -0.08276399224996567, -0.03782707825303078, 0.001969441305845976, 0.03958728164434433, 0.00039798676152713597, 0.013934929855167866, 0.026006115600466728, -0.03506597876548767, -0.05239188298583031, 0.014219667762517929, -0.036239445209503174, -0.02676541917026043, 0.018188750371336937, 0.0036843435373157263, -0.004499731119722128, -0.03582528233528137, 0.021260473877191544, -0.02377997897565365, -0.032477445900440216, 0.057154782116413116, 0.013701961375772953, -0.003822398604825139, -0.03827575594186783, 0.04548913240432739, 0.06319469213485718, 0.0022131947334855795, 0.05915658175945282, -0.05522201210260391, 0.024936189875006676, 0.06471329927444458, -0.040967829525470734, -0.05743089318275452, -0.04883696883916855, 0.028577391058206558, -0.03900054469704628, 0.003576488234102726, 0.05349632352590561, -0.041865188628435135, 0.030527418479323387, -0.056637074798345566, 0.04628295078873634, 0.0007522920495830476, 0.051494527608156204, 0.008451556786894798, 0.015470791608095169, 0.008102104999125004, -0.03218407928943634, -0.02536761201918125, -0.062297333031892776, -0.042141299694776535, 0.0042473492212593555, 0.017300020903348923, 0.05225382745265961, 0.06260795891284943, 0.02227863110601902, 0.03252921625971794, 0.00345784705132246, -0.007398886606097221, -0.007071006111800671, -0.025868061929941177, -0.06857883930206299, 0.029733601957559586, 0.0013007372617721558, -0.10285099595785141, 0.03537660092115402, 0.0013093657325953245, 0.03009599633514881, 0.004586015362292528, 0.03561819717288017, 0.010155673138797283, -0.009603452868759632, -0.0050692083314061165, -0.0022326086182147264, 0.012226498685777187, -0.06447169929742813, -0.01703253947198391, 0.005815568380057812, -0.01994895190000534, 0.028076941147446632, 0.0048189833760261536, 0.027835344895720482, -0.00887866411358118, -0.05881144478917122, -0.013934929855167866, 0.03259824588894844, 0.05518749728798866, -0.012778718955814838, -0.025177786126732826, 0.007303974125534296, 0.005297861993312836, 0.03254647180438042, 0.017161965370178223, 0.03361640125513077, 0.012614778243005276, -0.008835521526634693, 0.0073255449533462524, 0.05777603015303612, -0.08145246654748917, 0.036619096994400024, -0.016454434022307396, -0.024107860401272774, 0.03592882305383682, 0.04945821315050125, 0.021260473877191544, 0.007580084260553122, 0.00988819170743227, -0.007010607048869133, 0.03799964860081673, -0.03765450790524483, -0.030510161072015762, 0.036446526646614075, -0.032132308930158615, 0.005172749515622854, -0.06813015788793564, 0.03592882305383682, -0.0486643984913826, 0.014167897403240204, 0.00808053370565176, 0.005617114249616861, -0.004611901007592678, -0.01936221867799759, -0.01435772329568863, -0.012295526452362537, 0.04013950005173683, -0.036204930394887924, 0.010328241623938084, 0.013840016908943653, 0.0505971685051918, 0.001782851293683052, 0.05063168331980705, -0.03330577537417412, -0.03263275697827339, 0.08925257623195648, -0.010699264705181122, 0.0066266413778066635, 0.06985584646463394, -0.03803415969014168, 0.022710053250193596, 0.00676038209348917, 0.00003744607965927571, 0.015125654637813568, -0.05415208637714386, -0.02019054815173149, -0.0001083273600670509, 0.047352876514196396, 0.024314941838383675, -0.06643898040056229, -0.07192666828632355, 0.05770700424909592, -0.011285998858511448, -0.01741219125688076, 0.041658107191324234, -0.025816291570663452, 0.06664606928825378, -0.01755024492740631, -0.013865902088582516, 0.028508363291621208, 0.002097789430990815, 0.01692899875342846, -0.0007803344633430243, 0.005914795212447643, 0.013701961375772953, 0.028422079980373383, -0.0008941220585256815, 0.019448501989245415, -0.02252022735774517, -0.02536761201918125, -0.003781413659453392, -0.012640663422644138, 0.037378400564193726, -0.04973432421684265, 0.00006990384281380102, -0.0017202951712533832, -0.03755096718668938, -0.021881721913814545, -0.10188461095094681, 0.019344961270689964, -0.010820062831044197, -0.004145964980125427, -0.0022024090867489576, -0.029146868735551834, 0.051874179393053055, 0.07910553365945816, -0.027956143021583557, -0.020552942529320717, -0.03266727179288864, 0.05491138994693756, 0.05063168331980705, -0.012571636587381363, 0.02878447435796261, -0.06447169929742813, 0.030510161072015762, 0.01932770386338234, -0.028732703998684883, -0.017567502334713936, 0.04466080293059349, -0.022468456998467445, -0.11707066744565964, 0.027680033817887306, -0.02158835530281067, 0.06833723932504654, -0.002974654547870159, 0.018344061449170113, -0.051218416541814804, 0.00022002520563546568, 0.02019054815173149, -0.01667877286672592, -0.02700701542198658, 0.0241941437125206, 0.0488024540245533, 0.028611905872821808, -0.06036456301808357, -0.03793061897158623, -0.01991443894803524, 0.028456592932343483, -0.002627359703183174, -0.05988137051463127, 0.014866800978779793, 0.010302356444299221, 0.013054829090833664, -0.06347080320119858, 0.03378896787762642, 0.012942658737301826, 0.07593026757240295, 0.036826178431510925, -0.007226318120956421, 0.03944922611117363, -0.0011227757204324007, 0.005750854965299368, 0.0028581705410033464, -0.01667877286672592, -0.028094198554754257, -0.004133022390305996, -0.026368511840701103, 0.011898618191480637, 0.0481121800839901, -0.021243218332529068, 0.0028128712438046932, 0.05007946118712425, 0.018119722604751587, -0.03534208610653877, -0.002050332957878709, 0.015237824060022831, -0.02252022735774517, -0.06854432076215744, 0.000351339258486405, -0.005375517997890711, 0.05905304104089737, -0.01585044339299202, 0.02172641083598137, 0.047490932047367096, 0.042175810784101486 ]
21,061
tfields.core
_kwargs
Used for allowing the polymorphic signature Class(obj) as a copy/casting constructor
def _kwargs(self) -> dict: # pylint: disable=no-self-use """ Used for allowing the polymorphic signature Class(obj) as a copy/casting constructor """ return dict()
(self) -> dict
[ -0.02064800076186657, -0.01666443422436714, 0.046028219163417816, 0.013577400706708431, -0.06432859599590302, 0.013531187549233437, 0.015305769629776478, 0.04388393461704254, 0.03445646911859512, -0.00524518359452486, -0.008175092749297619, 0.052313197404146194, -0.010934012942016125, 0.029132721945643425, 0.008350702002644539, -0.02013041451573372, -0.02090679481625557, 0.02796815149486065, -0.018078554421663284, -0.03432707116007805, 0.01710807904601097, -0.002421565121039748, -0.005291396751999855, 0.035491641610860825, 0.025731438770890236, 0.05782179906964302, -0.01977919600903988, 0.026785098016262054, 0.03499253839254379, 0.017043381929397583, -0.08362717926502228, 0.025232337415218353, 0.037062883377075195, 0.06924566626548767, 0.04233117401599884, -0.04122206196188927, -0.023845946416258812, 0.07479123771190643, -0.07667673379182816, -0.015851084142923355, -0.07397788763046265, -0.005259047728031874, -0.04798765480518341, -0.006677789147943258, 0.04713733494281769, -0.014741970226168633, 0.021535292267799377, -0.016784587875008583, -0.02637842297554016, -0.06599226593971252, -0.001239665667526424, -0.00983414240181446, 0.042811792343854904, -0.00390731543302536, -0.019095242023468018, 0.013743768446147442, -0.016830801963806152, 0.053422313183546066, -0.04388393461704254, 0.075382761657238, -0.05131499841809273, 0.05741512402892113, 0.05549265816807747, -0.057710886001586914, -0.023975342512130737, -0.05734118074178696, -0.09560560435056686, -0.0012050059158354998, 0.003107829252257943, 0.04610216245055199, 0.005369958933442831, -0.0712420716881752, 0.003502951003611088, 0.04469728469848633, 0.035842858254909515, -0.051943495869636536, -0.049614354968070984, -0.00004953463940182701, 0.0108046168461442, 0.01637791283428669, -0.012218737043440342, -0.041517823934555054, -0.05896788090467453, 0.014926822856068611, 0.03495556861162186, -0.01315224077552557, -0.06562256067991257, 0.005892166867852211, -0.003911936655640602, -0.008923744782805443, -0.07830343395471573, 0.05734118074178696, -0.023217448964715004, 0.025287793949246407, -0.02473323605954647, -0.0104441549628973, -0.021923482418060303, -0.002071500988677144, 0.038892921060323715, 0.0007740689907222986, -0.0028744530864059925, -0.015111674554646015, -0.020592546090483665, -0.04295967146754265, 0.010601279325783253, -0.059263646602630615, -0.017043381929397583, -0.052313197404146194, -0.03029729053378105, 0.007250830996781588, 0.006816428154706955, 0.003833374474197626, -0.023568667471408844, 0.07726825773715973, -0.001230423105880618, -0.03682257607579231, -0.04007597640156746, -0.06133399158716202, 0.014815911650657654, 0.01611912064254284, -0.046213071793317795, 0.05105620250105858, -0.03066699579358101, 0.06148187443614006, 0.017255961894989014, 0.00774993235245347, -0.007338636089116335, -0.0023233622778207064, 0.024714751169085503, 0.008757377043366432, 0.03395736590027809, -0.010850830003619194, -0.03826442360877991, 0.002807444194331765, 0.04625004529953003, 0.002116558840498328, 0.03203490376472473, 0.02334684506058693, 0.01074916124343872, 0.04399484395980835, 0.02700692042708397, 0.0183003768324852, 0.03233066573739052, -0.01393786258995533, -0.03325492888689041, -0.03576891869306564, 0.006428238470107317, -0.00952913612127304, -0.02587932161986828, -0.00039425527211278677, 0.03090730309486389, 0.01916918344795704, 0.040630534291267395, 0.045066989958286285, -0.0503537654876709, -0.03133246302604675, -0.042109351605176926, -0.022311672568321228, -0.0077637964859604836, -0.007833115756511688, -0.01071219053119421, -0.03576891869306564, 0.014205899089574814, -0.07235118746757507, 0.023125022649765015, 0.02308805100619793, 0.04854221269488335, -0.06946749240159988, 0.02526930905878544, 0.003278817515820265, -0.011876760050654411, 0.021664688363671303, 0.02787572517991066, 0.014538632705807686, -0.04599124938249588, 0.07545670866966248, -0.006118610966950655, 0.007874707691371441, 0.03451192378997803, 0.03310704603791237, 0.0743475928902626, -0.04998406022787094, -0.04965132474899292, 0.034530408680438995, 0.09686259925365448, -0.030371231958270073, -0.012089340016245842, 0.024862634018063545, 0.014270597137510777, 0.011876760050654411, 0.0017133497167378664, -0.006797943264245987, 0.015333497896790504, -0.030703965574502945, -0.013374063186347485, -0.00037057106965221465, -0.015120917931199074, -0.006918096914887428, -0.03490011394023895, 0.0859193429350853, -0.014815911650657654, -0.023365329951047897, -0.0274505652487278, 0.000043505275243660435, 0.022792287170886993, -0.02257046476006508, 0.03780229389667511, -0.016793830320239067, 0.029576366767287254, -0.0376359261572361, 0.002245955402031541, -0.03606468066573143, 0.017773548141121864, -0.0319979302585125, 0.03856018930673599, -0.09035579860210419, 0.009311934001743793, -0.00570731470361352, -0.015740172937512398, 0.015749415382742882, 0.07323847711086273, -0.000573042081668973, -0.052904725074768066, -0.002634145086631179, -0.003126314375549555, -0.027561476454138756, 0.01600820943713188, -0.019113726913928986, -0.015823356807231903, -0.03238612040877342, -0.027302684262394905, -0.028707562014460564, -0.005060331430286169, 0.07042872160673141, 0.007075221743434668, -0.008276761509478092, 0.018790235742926598, -0.04854221269488335, 0.005346852354705334, -0.02212681993842125, 0.08510599285364151, 0.021442865952849388, 0.028781501576304436, 0.04758097976446152, 0.002969190012663603, -0.010767646133899689, 0.049614354968070984, 0.09442254900932312, 0.039225656539201736, 0.00857714656740427, 0.03929959610104561, -0.021757114678621292, -0.052387140691280365, 0.04085235670208931, -0.011784333735704422, 0.009547621011734009, -0.017006410285830498, -0.003459048457443714, 0.006742487195879221, -0.03586134314537048, 0.011220534332096577, 0.0319979302585125, 0.014594088308513165, 0.03926262632012367, -0.0013055193703621626, -0.0019860067404806614, 0.03336583822965622, -0.007468032650649548, -0.13656887412071228, 0.04026082903146744, 0.1476600170135498, -0.03246006369590759, 0.025805380195379257, 0.0297797042876482, -0.03551012650132179, -0.012985873967409134, -0.01778279058635235, -0.028023608028888702, -0.0366007536649704, -0.024714751169085503, 0.06806261092424393, -0.008008725941181183, 0.055603571236133575, 0.0024931952357292175, 0.0037039779126644135, 0.0167753454297781, 0.010767646133899689, 0.06673167645931244, 0.016414884477853775, -0.014778940938413143, -0.004967905580997467, -0.025897806510329247, 0.020832853391766548, 0.02212681993842125, 0.04240511730313301, -0.013281636871397495, -0.03438252583146095, -0.006492936983704567, 0.033144015818834305, -0.02090679481625557, -0.007578943856060505, 0.010693704709410667, 0.00031598188797943294, 0.04887494817376137, 0.00732015073299408, -0.010213089175522327, 0.007759174797683954, 0.031147612258791924, -0.006174066569656134, 0.004355581942945719, -0.014058017171919346, 0.025195367634296417, 0.02013041451573372, 0.044105757027864456, -0.08761999011039734, -0.029058780521154404, -0.004387931432574987, -0.01898433081805706, -0.012070855125784874, 0.10418274998664856, -0.041665706783533096, -0.034031305462121964, -0.007486518006771803, -0.02604568749666214, 0.030001526698470116, -0.0028005121275782585, -0.021904997527599335, -0.0012188698165118694, 0.04188752919435501, 0.02839331142604351, -0.05519689619541168, 0.038190484046936035, -0.0005588893545791507, 0.0014014114858582616, -0.02360563725233078, -0.0040228478610515594, 0.018217192962765694, 0.0376359261572361, -0.002069190377369523, -0.03432707116007805, -0.03055608458817005, -0.026008717715740204, -0.026711156591773033, -0.005138893611729145, -0.01916918344795704, -0.015897296369075775, 0.004420280456542969, -0.002934530144557357, 0.05512295290827751, -0.021627718582749367, -0.013605128973722458, -0.043588168919086456, 0.022940170019865036, 0.019132211804389954, 0.05157379060983658, -0.052054405212402344, -0.025195367634296417, -0.021221043542027473, -0.028892412781715393, -0.0138546796515584, 0.11734423786401749, -0.002143131336197257, -0.01692322827875614, 0.015333497896790504, 0.06318251043558121, 0.06821049749851227, -0.002576378872618079, -0.008544797077775002, 0.01898433081805706, -0.05785876885056496, 0.012375861406326294, -0.019816165789961815, -0.0503537654876709, -0.013466489501297474, -0.009732473641633987, -0.006409753113985062, -0.02604568749666214, 0.034530408680438995, -0.05896788090467453, 0.03955839201807976, -0.012680867686867714, -0.043957874178886414, 0.01715429313480854, -0.006294220685958862, 0.01415968593209982, -0.014760456047952175, 0.007491139229387045, -0.01446469221264124, 0.06077943369746208, 0.07286877185106277, -0.060927316546440125, -0.015416680835187435, -0.02123952843248844, 0.019705254584550858, 0.060150936245918274, -0.03440101072192192, -0.015305769629776478, 0.0014233626425266266, -0.03543618321418762, 0.010629006661474705, -0.0017849799478426576, -0.08185259252786636, -0.007560458965599537, -0.0122002512216568, 0.029927587136626244, 0.020611030980944633, 0.025306278839707375, 0.008757377043366432, 0.06880202144384384, -0.02708086185157299, 0.0022274700459092855, -0.0137252826243639, -0.0287445317953825, -0.006132474634796381, 0.04292270168662071, 0.009090111590921879, 0.03369857370853424, -0.027653902769088745, 0.02489960379898548, -0.0034775338135659695, 0.050390735268592834, 0.021091647446155548, 0.022625921294093132, 0.012468286789953709, 0.049503445625305176, 0.062221281230449677, -0.04854221269488335, 0.006548392586410046, 0.06717532128095627, -0.01092477049678564, -0.01940949074923992, 0.03377251327037811, -0.02928060293197632, 0.01128523238003254, 0.004688316490501165, 0.014002561569213867, -0.004249291960150003, -0.0447712242603302, 0.01720050536096096, 0.06296069175004959, -0.08562358468770981, -0.0213504396378994, -0.02168317325413227, 0.03384645655751228, 0.041148118674755096, -0.03055608458817005, -0.004110652953386307, 0.0017503201961517334, 0.04406878724694252, -0.015684716403484344, 0.042183294892311096, 0.0254356749355793, 0.02430807612836361, -0.049503445625305176, -0.014196655713021755, -0.04536275193095207, -0.08621510863304138, -0.038966864347457886, 0.0008601408335380256, -0.024086253717541695, 0.06199945881962776, -0.0447712242603302, -0.030851848423480988, -0.004064439795911312, -0.03534375876188278, 0.05867211893200874, 0.02794966660439968, -0.02735813893377781, -0.04451243206858635, 0.003431320656090975, 0.041148118674755096, 0.020537089556455612, -0.034364040940999985, -0.056306008249521255, -0.06665773689746857, 0.05131499841809273, 0.012782536447048187, -0.025731438770890236, -0.03118458203971386, -0.024197164922952652, 0.021128617227077484, 0.003699356457218528, 0.03952141851186752, -0.008868289180099964, -0.02081436850130558, -0.020315267145633698, -0.028763016685843468, 0.004417969845235348, -0.017496269196271896, 0.05427263304591179, -0.034364040940999985, 0.01599896512925625, -0.014021046459674835, 0.04843129962682724, 0.0554187186062336, -0.00037461472675204277, -0.01119280606508255, 0.04136994481086731, -0.006003078073263168, -0.03687803074717522, -0.021812571212649345, -0.025491131469607353, -0.01727444678544998, 0.026692671701312065, -0.01079537346959114, -0.060927316546440125, -0.060668524354696274, 0.036804091185331345, -0.01722823455929756, 0.031665198504924774, -0.012791778892278671, 0.019927076995372772, 0.00329730287194252, 0.02733965404331684, 0.018078554421663284, -0.038966864347457886, -0.05486416071653366, 0.006724002305418253, -0.03691500425338745, -0.001808086526580155, 0.020333752036094666, 0.08828545361757278, 0.04832039028406143, -0.030685480684041977, -0.009538378566503525, 0.01832810416817665, 0.04181358963251114, -0.019631313160061836, 0.0519065223634243, 0.004045954439789057, -0.011174321174621582, -0.07830343395471573, -0.03739561885595322, 0.05704541876912117, -0.03580588847398758, 0.018457502126693726, 0.02489960379898548, 0.05053861811757088, 0.028763016685843468, -0.008221305906772614, 0.05382898822426796, -0.00594762247055769, -0.023975342512130737, 0.003260332392528653, -0.015083947218954563, 0.014668029733002186, -0.007468032650649548, 0.021535292267799377, -0.07083539664745331, 0.020611030980944633, -0.016525795683264732, -0.04181358963251114, 0.012819506227970123, 0.0216092336922884, -0.04214632138609886, -0.00744492607191205, 0.03856018930673599, -0.04181358963251114, 0.014353781007230282, 0.028245430439710617, 0.010434911586344242, -0.013651342131197453, 0.029502425342798233, -0.03811654448509216, -0.09427466988563538, 0.005587160587310791, 0.01567547395825386, 0.09678865969181061, -0.08998609334230423, -0.02637842297554016, -0.008932987228035927, 0.020592546090483665, -0.0035976876970380545, 0.03911474347114563, 0.008466235361993313, 0.010776888579130173, -0.012218737043440342, 0.01651655323803425, -0.013235424645245075, -0.0788949579000473, 0.029151206836104393, 0.059189703315496445, -0.04077841714024544, -0.010555066168308258, -0.04521486908197403, -0.023661093786358833, 0.0030616160947829485, -0.04111114889383316, -0.01858689822256565, -0.031055185943841934, -0.007042872253805399, 0.05467930808663368, -0.02517688274383545, -0.02987213060259819, -0.033495236188173294, -0.011063409969210625, 0.007759174797683954, -0.04798765480518341, -0.036545298993587494, -0.01549986470490694, -0.025675984099507332, 0.022163789719343185, 0.00036941576399840415, 0.019538886845111847, -0.006044670008122921, -0.0004517328052315861, 0.013004358857870102, 0.029132721945643425, -0.0417766198515892, -0.03721076622605324, -0.028855443000793457, -0.0206295158714056, 0.03229369595646858, -0.0016440300969406962, -0.02996455691754818, -0.006340433843433857, -0.03826442360877991, 0.014021046459674835, 0.012440559454262257, 0.004519638605415821, -0.06185157597064972, -0.032977648079395294, 0.036545298993587494, 0.023882916197180748, -0.023827461525797844, -0.013614371418952942, -0.0020114239305257797, -0.01040718425065279, -0.014936065301299095, -0.0226444061845541, 0.041074179112911224, 0.028153004124760628, 0.07645490765571594, -0.05157379060983658, 0.007375606335699558, 0.03233066573739052, 0.008184335194528103, 0.00026327010709792376, -0.007712962105870247, 0.043957874178886414, 0.00360230915248394, -0.048209477216005325, -0.01494530774652958, 0.006095504388213158, -0.06355221569538116, -0.002368419896811247, 0.021646203473210335, -0.018050827085971832, -0.0010842742631211877, -0.02623054012656212, 0.036545298993587494, 0.027672387659549713, 0.0004924580571241677, -0.010730675421655178, -0.010342486202716827, 0.016017451882362366, -0.04144388437271118, 0.04905979707837105, 0.03807957097887993, -0.04440151900053024, -0.018152495846152306, 0.027487536892294884, -0.033661603927612305, -0.04417969658970833, 0.04669369012117386, 0.05053861811757088, -0.07127904146909714, -0.044105757027864456, 0.038634128868579865, 0.02637842297554016, 0.04676762968301773, 0.01549986470490694, -0.025454161688685417, -0.022404097020626068, -0.0748651772737503, -0.011470085009932518, -0.00631732726469636, -0.029225148260593414, 0.02994607202708721, -0.03310704603791237, -0.030981244519352913, -0.01559229101985693, -0.054568398743867874, 0.022441068664193153, -0.011867517605423927, 0.043403320014476776, -0.03177610784769058, 0.028467252850532532, 0.007819252088665962, -0.0376359261572361, 0.020832853391766548, -0.03796866163611412, -0.012061611749231815, 0.037839263677597046, 0.012385103851556778, -0.07257301360368729, -0.01968676969408989, -0.06288675218820572, 0.07911678403615952, -0.03848624601960182, -0.0013055193703621626, -0.018882662057876587, -0.021831056103110313, -0.013198453933000565, 0.011275989934802055, 0.020518604665994644, 0.01598048023879528, -0.0022887024097144604, 0.07187057286500931, 0.010231574065983295, -0.015536835417151451, 0.029040295630693436, 0.023716548457741737, -0.007047493476420641, 0.02271834760904312, -0.013531187549233437, 0.07419971376657486, -0.010721432976424694, 0.004600511398166418, -0.0319979302585125, -0.002226314740255475, 0.040445681661367416, 0.019575858488678932, 0.04928162321448326, 0.02221924625337124, -0.010934012942016125, 0.0024469823110848665, -0.055270835757255554, 0.006104746833443642, -0.012930418364703655, 0.05408778041601181, -0.011044924147427082, -0.06000305339694023, -0.01694171316921711, -0.01202464196830988, -0.025823865085840225, 0.03804260119795799, -0.039928093552589417, -0.0356210358440876, 0.06684258580207825, -0.03796866163611412, 0.0549011304974556, -0.0091501884162426, 0.10144694149494171, 0.026249025017023087, -0.01588805392384529, 0.044105757027864456, 0.028079062700271606, 0.07205542176961899, -0.08126106858253479, 0.015897296369075775, 0.04447546228766441, -0.007879328913986683, -0.016276244074106216, 0.02020435594022274, -0.045510634779930115, 0.022237731143832207, -0.03885595127940178, 0.03399433568120003, -0.0005152757512405515, -0.06414374709129333, -0.059263646602630615, 0.009006927721202374, -0.008877531625330448, 0.033920396119356155, 0.03321795538067818, 0.056823596358299255, -0.004554298240691423 ]
21,065
sortedcontainers.sorteddict
__setitem__
Store item in sorted dict with `key` and corresponding `value`. ``sd.__setitem__(key, value)`` <==> ``sd[key] = value`` Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict() >>> sd['c'] = 3 >>> sd['a'] = 1 >>> sd['b'] = 2 >>> sd SortedDict({'a': 1, 'b': 2, 'c': 3}) :param key: key for item :param value: value for item
def __setitem__(self, key, value): """Store item in sorted dict with `key` and corresponding `value`. ``sd.__setitem__(key, value)`` <==> ``sd[key] = value`` Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict() >>> sd['c'] = 3 >>> sd['a'] = 1 >>> sd['b'] = 2 >>> sd SortedDict({'a': 1, 'b': 2, 'c': 3}) :param key: key for item :param value: value for item """ if key not in self: self._list_add(key) dict.__setitem__(self, key, value)
(self, key, value)
[ 0.012820631265640259, 0.049542851746082306, -0.08320173621177673, 0.00010555333574302495, 0.030179539695382118, 0.037554237991571426, -0.035606563091278076, 0.010135483928024769, -0.000026683796022552997, -0.08191589266061783, -0.06799851357936859, 0.005729574244469404, 0.03539855778217316, 0.032807957381010056, -0.020819343626499176, 0.03460435941815376, 0.03435853496193886, 0.052530549466609955, -0.0578630268573761, -0.0074881562031805515, -0.01091077271848917, 0.0024440509732812643, 0.048143550753593445, 0.007861618883907795, -0.03184357285499573, -0.041449591517448425, 0.02042224444448948, -0.019646955654025078, 0.047160256654024124, 0.015969060361385345, 0.056161172688007355, -0.016224337741732597, -0.007757616229355335, -0.005932851228863001, 0.0363251231610775, -0.014598122797906399, 0.028042767196893692, 0.015997424721717834, -0.02662455476820469, 0.06421661376953125, 0.00025158480275422335, -0.010466400533914566, 0.03150320425629616, -0.03541746735572815, 0.08388248085975647, 0.07662123441696167, 0.01694289967417717, 0.05627463012933731, 0.07488156110048294, -0.017321089282631874, -0.009615473449230194, -0.00965329259634018, 0.004363363608717918, -0.05366512015461922, -0.05200108513236046, 0.050450507551431656, 0.03536073863506317, -0.009142735973000526, -0.010409671813249588, 0.006150310393422842, 0.021310990676283836, -0.008532905019819736, -0.03863207995891571, -0.08758873492479324, -0.02446887455880642, 0.016961809247732162, -0.033999256789684296, -0.02615181915462017, 0.0034769815392792225, 0.007667796220630407, 0.018569115549325943, 0.004540640395134687, 0.009554017335176468, -0.0013567556161433458, -0.027437662705779076, 0.09121935814619064, -0.04303798824548721, -0.0006452861707657576, -0.0011977977119386196, -0.02913951687514782, 0.022218644618988037, -0.03460435941815376, 0.014721034094691277, 0.04315144568681717, -0.02390158921480179, 0.03479345515370369, 0.04496675729751587, 0.010995865799486637, 0.023031752556562424, 0.06206092983484268, 0.006481226067990065, 0.03108719363808632, 0.0052473824471235275, -0.005776847712695599, -0.0024487783666700125, -0.012593717314302921, 0.028553323820233345, -0.052606187760829926, -0.0027726034168154, 0.04216815158724785, 0.022975025698542595, 0.034698907285928726, 0.017727643251419067, -0.029460977762937546, -0.027796944603323936, -0.06183401867747307, 0.039709918200969696, 0.02397722750902176, -0.07518411427736282, 0.009416923858225346, 0.010003117844462395, 0.011610424146056175, -0.01296245213598013, 0.03485018014907837, -0.008164170198142529, 0.06255257874727249, -0.012253346852958202, -0.040541935712099075, 0.014872310683131218, 0.034131620079278946, -0.04213033244013786, 0.011147141456604004, 0.01471157930791378, 0.027910400182008743, -0.025414347648620605, -0.07715070247650146, 0.00993693433701992, -0.00333043304271996, -0.05101779103279114, -0.045155853033065796, -0.0032902504317462444, -0.022691382095217705, 0.0076867057941854, 0.037818972021341324, 0.09674093127250671, -0.005422295071184635, 0.0028695145156234503, 0.015921786427497864, 0.02182154543697834, 0.05082869529724121, 0.02872350811958313, -0.027248568832874298, 0.01938222348690033, 0.0042357249185442924, 0.03494472801685333, -0.016611982136964798, -0.04447510838508606, 0.061380188912153244, 0.012300620786845684, 0.014134840108454227, -0.028137315064668655, 0.007733979728072882, 0.03526619076728821, 0.03800806775689125, -0.014579213224351406, -0.03473672643303871, -0.016999628394842148, -0.01795455627143383, 0.005474295932799578, 0.046819884330034256, 0.013510826975107193, -0.024941612035036087, 0.007653614040464163, -0.033772341907024384, -0.044626384973526, 0.02705947309732437, 0.002878969069570303, 0.007611067965626717, -0.013293368741869926, 0.03982337564229965, -0.021991731598973274, -0.024317597970366478, -0.026719102635979652, 0.0160825178027153, 0.04042847827076912, -0.026511099189519882, -0.05184980854392052, 0.032240673899650574, -0.0007681978750042617, -0.019760413095355034, 0.044512927532196045, 0.027172930538654327, -0.005677572917193174, -0.002782057970762253, -0.041109222918748856, 0.014947948046028614, 0.008608543314039707, 0.039974652230739594, 0.0371004119515419, 0.11466711759567261, 0.012555898167192936, -0.03341306000947952, -0.004925921093672514, -0.06531336158514023, -0.009851842187345028, 0.0032689773943275213, -0.0409957654774189, -0.04629041999578476, -0.00760161317884922, 0.12601281702518463, -0.031692296266555786, -0.018285471946001053, 0.0635736882686615, 0.004753371700644493, 0.05661499872803688, -0.009034006856381893, -0.016517436131834984, -0.03348869830369949, -0.0018377656815573573, 0.016281066462397575, 0.007001237012445927, -0.040125928819179535, 0.02189718373119831, -0.013926835730671883, -0.006859415676444769, -0.050450507551431656, -0.016129791736602783, -0.0032051578164100647, -0.014550848864018917, -0.08123514801263809, 0.0578630268573761, -0.018285471946001053, 0.03290250524878502, -0.006410315632820129, 0.0215379036962986, -0.02216191776096821, 0.0032477041240781546, -0.04787881672382355, -0.04141177237033844, -0.0037795333191752434, 0.030084991827607155, 0.00380080658942461, 0.022691382095217705, -0.03033081442117691, 0.07438991963863373, -0.07370917499065399, -0.02127317152917385, -0.05861940607428551, -0.01262208167463541, 0.027834761887788773, -0.018068013712763786, 0.09167318791151047, 0.04175214469432831, 0.009525652974843979, -0.08108387142419815, 0.003049154533073306, -0.05011013522744179, 0.036986954510211945, -0.004925921093672514, 0.02306957170367241, -0.014749398455023766, 0.011052594520151615, -0.06308204680681229, -0.02571690082550049, 0.004134086426347494, 0.023523399606347084, 0.0015588507521897554, -0.0013153910404071212, -0.017368363216519356, -0.01710362918674946, -0.028761327266693115, 0.00716196745634079, -0.03208939731121063, 0.027362026274204254, -0.030841371044516563, 0.009142735973000526, 0.05502660199999809, 0.02887478470802307, -0.040617574006319046, 0.055669523775577545, 0.08395811915397644, -0.04511803388595581, -0.01790728233754635, -0.0394451878964901, 0.03679785877466202, 0.061455827206373215, 0.016848351806402206, -0.01489122025668621, -0.022313192486763, 0.052530549466609955, 0.05332474783062935, -0.036230575293302536, -0.03583347424864769, 0.007937256246805191, -0.020176421850919724, 0.057636111974716187, -0.019183672964572906, 0.050866514444351196, 0.0007498792838305235, 0.004599732346832752, 0.0026780557818710804, 0.032448675483465195, -0.02552780508995056, 0.06085072457790375, 0.006878325249999762, 0.0030326086562126875, -0.07745325565338135, 0.007592158392071724, 0.06085072457790375, 0.0783609077334404, -0.007819072343409061, 0.005843031220138073, -0.010031482204794884, 0.059716153889894485, 0.04840828478336334, -0.005568843334913254, 0.011251144111156464, 0.007223423570394516, -0.06542681902647018, 0.020327696576714516, -0.022067369893193245, 0.06440570950508118, -0.03159775212407112, 0.06523772329092026, 0.05585861951112747, -0.01464539673179388, -0.1006741002202034, -0.037251684814691544, -0.040050290524959564, 0.04776535928249359, -0.047311533242464066, 0.0035100732930004597, -0.10044718533754349, -0.06818760186433792, 0.04156304895877838, -0.044588565826416016, 0.04213033244013786, 0.010759497061371803, 0.05718228593468666, 0.0599430687725544, -0.0033233421854674816, -0.05404330790042877, 0.02760784886777401, 0.05703100934624672, -0.012508624233305454, 0.025130705907940865, -0.002273865742608905, -0.0018862212309613824, 0.0004946012049913406, -0.027910400182008743, -0.016848351806402206, 0.03556874394416809, -0.028156224638223648, -0.04092012718319893, 0.02900715172290802, -0.02643546089529991, -0.0015541233588010073, -0.007048510946333408, 0.007100511807948351, -0.05638808757066727, 0.033015962690114975, -0.014966857619583607, -0.03619275614619255, 0.020308787003159523, 0.04708461835980415, 0.009161645546555519, 0.0394451878964901, -0.044248197227716446, 0.020478973165154457, -0.05589643865823746, 0.03241086006164551, 0.0013307550689205527, -0.029933715239167213, -0.04470202326774597, -0.01579887606203556, 0.000005008982498111436, -0.026132909581065178, -0.02683256007730961, -0.014172659255564213, -0.045269306749105453, 0.011194415390491486, -0.07631868124008179, 0.020592430606484413, 0.0599430687725544, 0.04247070476412773, -0.019552407786250114, -0.00019544725364539772, 0.04262198135256767, -0.027437662705779076, -0.024033956229686737, 0.015562506392598152, 0.023939408361911774, 0.0350203663110733, 0.01332173217087984, 0.018247652798891068, 0.008901640772819519, 0.08524396270513535, 0.0617583803832531, 0.009284557774662971, -0.0031082467176020145, -0.04927811771631241, -0.028761327266693115, -0.023126300424337387, 0.0017987648025155067, -0.05332474783062935, -0.0065710460767149925, 0.021991731598973274, -0.019230946898460388, -0.05582080036401749, -0.01993059739470482, 0.1151965856552124, -0.023409942165017128, 0.0321650356054306, 0.02210518904030323, 0.05903541296720505, -0.02182154543697834, -0.03481236472725868, 0.0004889874835498631, -0.0073936088010668755, -0.0015553052071481943, -0.01593124121427536, -0.0461769625544548, -0.017037445679306984, -0.06338459253311157, 0.021651361137628555, -0.048067912459373474, -0.0524170957505703, -0.0017964011058211327, 0.008561269380152225, -0.006131400819867849, 0.020062964409589767, -0.05461059510707855, -0.05097997188568115, 0.0698138177394867, 0.009454743005335331, -0.02586817555129528, 0.008357992395758629, -0.0048833745531737804, -0.003890626598149538, -0.03940736874938011, 0.09137063473463058, 0.020100783556699753, 0.02775912545621395, 0.05271964520215988, 0.03271340951323509, -0.03505818545818329, 0.05638808757066727, -0.025414347648620605, -0.03479345515370369, 0.02176481857895851, -0.04413473978638649, 0.005389203317463398, 0.030917009338736534, 0.020724795758724213, 0.005209563300013542, 0.00899146031588316, 0.025679081678390503, -0.04300016909837723, 0.0832773745059967, -0.02641655132174492, 0.08320173621177673, 0.04042847827076912, 0.018871666863560677, 0.0555182509124279, -0.04893774911761284, -0.07060801982879639, -0.035720016807317734, -0.017585821449756622, -0.027645668014883995, 0.006178674288094044, -0.0058666677214205265, 0.007114693988114595, -0.0063204956240952015, -0.011534785851836205, -0.08085695654153824, 0.038461893796920776, -0.006556863896548748, 0.004108085762709379, -0.014598122797906399, -0.014617032371461391, 0.0002970857312902808, -0.0035266189370304346, 0.01028676051646471, -0.05884631723165512, -0.05850594863295555, -0.020668067038059235, 0.0337345227599144, -0.014021383598446846, -0.04080666974186897, 0.016233792528510094, 0.03728950396180153, -0.004734462592750788, 0.011790064163506031, 0.019760413095355034, 0.01694289967417717, -0.003122428897768259, -0.009814023040235043, 0.04700898006558418, 0.012414077296853065, 0.056501541286706924, 0.01213043462485075, -0.09787549823522568, -0.012432986870408058, -0.008495086804032326, 0.007360517047345638, 0.0007941983640193939, -0.028553323820233345, -0.006949236150830984, -0.02747548185288906, -0.05948924273252487, -0.003866989864036441, -0.023164119571447372, 0.007138330955058336, 0.04708461835980415, 0.01868257112801075, -0.0066892304457724094, -0.008064895868301392, 0.019495679065585136, -0.04973194748163223, -0.03836734592914581, 0.007327425759285688, -0.03220285475254059, 0.007232878357172012, -0.022767020389437675, 0.07715070247650146, -0.00777179840952158, -0.10869172215461731, -0.022332102060317993, -0.02439323626458645, -0.005086651537567377, 0.044172558933496475, -0.005635026842355728, 0.07665905356407166, -0.017604731023311615, -0.007615795359015465, -0.005275746341794729, 0.011118777096271515, 0.005701209884136915, 0.0287991464138031, -0.005100833717733622, -0.045420583337545395, -0.020649157464504242, -0.00688305264338851, 0.022767020389437675, 0.04330272227525711, 0.08259662985801697, -0.0016853079432621598, 0.006192856468260288, -0.027097292244434357, -0.027853671461343765, 0.015345047228038311, 0.008882731199264526, 0.07401172816753387, -0.09923698008060455, 0.0045784590765833855, 0.004930648487061262, -0.04481548070907593, -0.059640515595674515, 0.009658019989728928, -0.04080666974186897, -0.07166694849729538, -0.0063583143055438995, 0.04704679921269417, 0.020044054836034775, 0.010570402257144451, -0.021367719396948814, -0.01554359681904316, 0.012300620786845684, 0.05820339545607567, 0.015874512493610382, -0.003186248242855072, 0.02356121875345707, -0.00045766864786855876, 0.05041268840432167, 0.016025789082050323, 0.01826656237244606, -0.03520946204662323, -0.003824443556368351, 0.02864786982536316, 0.00604630820453167, 0.022956116124987602, 0.021783728152513504, -0.002458233153447509, 0.003999356180429459, -0.06240130215883255, 0.0026804194785654545, -0.005672845523804426, 0.035247281193733215, -0.032259583473205566, -0.05143380165100098, -0.039218273013830185, 0.03986119478940964, 0.011317326687276363, 0.022691382095217705, -0.022559016942977905, -0.008201989345252514, 0.007483428809791803, 0.04398346319794655, -0.05835467204451561, -0.027929309755563736, -0.0233532153069973, -0.0479922741651535, -0.007785980589687824, -0.02265356294810772, 0.0012373895151540637, -0.04031502455472946, -0.03592802211642265, -0.008372174575924873, -0.03012281097471714, 0.0027796942740678787, -0.007885255850851536, 0.009416923858225346, -0.01681053265929222, -0.0077292523346841335, 0.059375785291194916, -0.030765732750296593, 0.03407489135861397, -0.014522484503686428, -0.006207038648426533, -0.05264400690793991, -0.020686976611614227, 0.021670270711183548, 0.017368363216519356, 0.01262208167463541, 0.03598475083708763, -0.043189264833927155, 0.022048460319638252, -0.03899135813117027, 0.0046990071423351765, -0.009814023040235043, -0.004996831528842449, 0.02378813363611698, 0.009993663057684898, 0.019703684374690056, -0.010173303075134754, -0.07299061119556427, -0.00971947517246008, 0.0011333873262628913, 0.021159714087843895, -0.049958862364292145, -0.015865057706832886, -0.013075909577310085, 0.019363313913345337, 0.01432393491268158, 0.0005129197961650789, -0.0046044597402215, -0.008154715411365032, 0.027135111391544342, 0.024033956229686737, 0.027248568832874298, 0.00960129126906395, 0.031143922358751297, 0.014314480125904083, -0.00047510082367807627, -0.03275122866034508, 0.040541935712099075, -0.002930970164015889, 0.002343594329431653, 0.01715090312063694, -0.002032769611105323, 0.009615473449230194, -0.008036531507968903, -0.01769927889108658, -0.01938222348690033, -0.01865420676767826, -0.03785679116845131, 0.0430758073925972, -0.02371249534189701, -0.026889288797974586, 0.016233792528510094, 0.003571529174223542, -0.024449964985251427, -0.05362730100750923, -0.05464841425418854, 0.07820963114500046, -0.0064764986746013165, -0.03902917727828026, 0.07692378759384155, 0.003181520849466324, 0.006093581672757864, 0.033847980201244354, -0.0334697887301445, -0.021084075793623924, 0.004299544263631105, 0.00216277246363461, -0.03634403273463249, -0.012631536461412907, 0.02947988733649254, 0.023107390850782394, 0.002881332766264677, 0.010948591865599155, 0.043264903128147125, -0.014314480125904083, -0.031200651079416275, -0.021575722843408585, 0.06164492294192314, -0.01390792615711689, -0.01590287685394287, -0.03653312474489212, -0.04651733487844467, 0.04776535928249359, -0.048635195940732956, -0.03443417325615883, -0.04663079231977463, -0.03598475083708763, 0.0001592533226357773, 0.0074928835965693, -0.017661459743976593, 0.03967209905385971, -0.04610132426023483, 0.023825950920581818, 0.05808993801474571, 0.045987870544195175, 0.024241959676146507, -0.014995221979916096, -0.015458504669368267, -0.015297774225473404, 0.03619275614619255, 0.04663079231977463, -0.018881121650338173, 0.0076725236140191555, 0.03899135813117027, -0.026662373915314674, -0.07306624948978424, -0.002204136922955513, -0.042773257941007614, 0.04345399886369705, -0.0350203663110733, 0.015846148133277893, 0.022975025698542595, 0.025679081678390503, -0.03331851214170456, 0.038461893796920776, -0.05472405254840851, 0.005583025515079498, -0.02329648658633232, 0.015382866375148296, -0.03638185188174248, -0.05570734292268753, -0.006060489919036627, 0.015496323816478252, 0.022559016942977905, -0.016640346497297287, -0.015241045504808426, -0.0008485631551593542, -0.027135111391544342, -0.03271340951323509, 0.019684774801135063, 0.057636111974716187, 0.06327113509178162, 0.022691382095217705, -0.010144938714802265, 0.05793866515159607, -0.054837506264448166, -0.01855020597577095, -0.05101779103279114, 0.004777008667588234, 0.0013520282227545977, 0.006514317821711302, 0.08524396270513535, 0.01715090312063694, -0.011610424146056175, -0.02929079346358776, 0.035606563091278076, 0.061455827206373215, -0.04976976662874222, -0.019476769492030144, 0.011024230159819126, 0.058468129485845566, -0.019987326115369797, -0.05695537105202675, -0.08184025436639786, 0.00610303645953536, -0.04023938626050949, -0.04360527545213699, 0.006471771281212568, 0.01839892938733101, 0.0004488048143684864 ]
21,066
sortedcontainers.sorteddict
update
Update sorted dict with items from `args` and `kwargs`. Overwrites existing items. Optional arguments `args` and `kwargs` may be a mapping, an iterable of pairs or keyword arguments. See :func:`SortedDict.__init__` for details. :param args: mapping or iterable of pairs :param kwargs: keyword arguments mapping
def update(self, *args, **kwargs): """Update sorted dict with items from `args` and `kwargs`. Overwrites existing items. Optional arguments `args` and `kwargs` may be a mapping, an iterable of pairs or keyword arguments. See :func:`SortedDict.__init__` for details. :param args: mapping or iterable of pairs :param kwargs: keyword arguments mapping """ if not self: dict.update(self, *args, **kwargs) self._list_update(dict.__iter__(self)) return if not kwargs and len(args) == 1 and isinstance(args[0], dict): pairs = args[0] else: pairs = dict(*args, **kwargs) if (10 * len(pairs)) > len(self): dict.update(self, pairs) self._list_clear() self._list_update(dict.__iter__(self)) else: for key in pairs: self._setitem(key, pairs[key])
(self, *args, **kwargs)
[ 0.009195706807076931, 0.03559860214591026, -0.10449911653995514, -0.028026720508933067, 0.0035033400636166334, -0.0036827686708420515, -0.049629904329776764, -0.006383166648447514, 0.011052791029214859, -0.05623286962509155, -0.05404384434223175, -0.003696225816383958, 0.03181266039609909, 0.03911539912223816, -0.029264777898788452, 0.010972049087285995, 0.028403520584106445, 0.047189678996801376, -0.05282372981309891, -0.010801591910421848, 0.037500541657209396, -0.018445242196321487, 0.027039865031838417, 0.06602966040372849, 0.009707078337669373, -0.06254874914884567, 0.04284751042723656, -0.01615753024816513, 0.032745689153671265, 0.03249448910355568, 0.05648406967520714, 0.034737344831228256, -0.0006050102529115975, 0.043995849788188934, 0.016175473108887672, -0.0622616671025753, 0.010146677494049072, 0.023738382384181023, -0.04507242143154144, 0.026142721995711327, 0.012281876057386398, -0.035706259310245514, 0.006607451941817999, -0.014749017544090748, 0.09502530097961426, 0.052895501255989075, 0.015466731041669846, 0.0760776549577713, 0.05271607264876366, -0.010263306088745594, 0.006728566251695156, -0.03692637011408806, 0.03645985573530197, -0.029569806531071663, -0.0291571207344532, 0.08239353448152542, 0.01916295662522316, 0.004328710958361626, 0.02598123624920845, 0.0016754129901528358, 0.034127287566661835, -0.025335295125842094, -0.02241061069071293, -0.0633741244673729, -0.04733322188258171, -0.032350946217775345, -0.011016905307769775, -0.012254961766302586, -0.028277920559048653, -0.012237018905580044, -0.013313589617609978, 0.01828375644981861, 0.012829133309423923, -0.005871795583516359, -0.03735699877142906, 0.11569545418024063, -0.04891218990087509, 0.033445458859205246, 0.02716546505689621, -0.011205305345356464, 0.023971637710928917, -0.04848156124353409, 0.020365126430988312, 0.009769878350198269, -0.020867526531219482, 0.009949306957423687, 0.021872326731681824, 0.006428023800253868, 0.04169916734099388, 0.022159410640597343, -0.028511177748441696, 0.03378637507557869, 0.009101507253944874, -0.05246487259864807, 0.000883124303072691, -0.013071360997855663, -0.0040461113676428795, -0.07216611504554749, -0.0462566502392292, 0.02154935523867607, -0.001962498528882861, -0.04266808182001114, 0.023343639448285103, -0.05515630170702934, 0.010074906051158905, -0.06958234310150146, 0.01817609928548336, -0.021997924894094467, -0.05748886987566948, 0.03188443183898926, 0.006436995230615139, -0.011241191066801548, 0.0074731940403580666, 0.028421463444828987, -0.022859182208776474, 0.01116044819355011, -0.025712095201015472, -0.040658481419086456, 0.02093929797410965, 0.01136679109185934, -0.0705871433019638, 0.04306282475590706, 0.0298210047185421, 0.01683935895562172, -0.03290717303752899, -0.067967489361763, 0.001931098522618413, -0.008729193359613419, -0.02438432350754738, -0.023092439398169518, 0.006872109137475491, -0.06333823502063751, -0.0023191124200820923, -0.005862824153155088, 0.09868563711643219, -0.06649617850780487, 0.006688194815069437, -0.00661642337217927, 0.01806844398379326, 0.03073609061539173, 0.06574257463216782, 0.00852733664214611, 0.02617860771715641, 0.01352890394628048, -0.008495936170220375, -0.03753642737865448, -0.006495309062302113, 0.028870034962892532, 0.003498854348435998, 0.018822042271494865, -0.029067406430840492, 0.008150536566972733, 0.03954602777957916, 0.03654957190155983, -0.04205802455544472, -0.015996044501662254, -0.025460895150899887, -0.07335034012794495, -0.025119980797171593, 0.02992866188287735, 0.023164210841059685, -0.0017864343244582415, 0.030789919197559357, -0.01324181817471981, -0.04532362148165703, 0.005409767385572195, -0.02113666944205761, -0.020078040659427643, -0.021298155188560486, 0.026627179235219955, 0.020526612177491188, -0.017637815326452255, 0.003969854209572077, -0.015394959598779678, 0.034324660897254944, 0.007876908406615257, -0.06563492119312286, -0.0058538527227938175, 0.02856500633060932, 0.00676445197314024, 0.005759652704000473, -0.033535175025463104, 0.0104158204048872, -0.0229130107909441, -0.011905076913535595, 0.021979982033371925, 0.007724394090473652, 0.042919281870126724, 0.013017532415688038, 0.025909464806318283, 0.03394785895943642, -0.06222578138113022, 0.01885792799293995, -0.006271023768931627, -0.029264777898788452, 0.046687278896570206, -0.06491720676422119, -0.02438432350754738, 0.0692952573299408, 0.12495396286249161, -0.06269229203462601, -0.05128064751625061, 0.06096978113055229, 0.012900903820991516, 0.051711272448301315, 0.0069438801147043705, 0.03549094498157501, -0.04295516759157181, 0.024438152089715004, -0.0034696971997618675, 0.013017532415688038, -0.01907324232161045, 0.03211769089102745, -0.03396580368280411, -0.005701338406652212, -0.006284480914473534, -0.01145650539547205, -0.017548101022839546, -0.014731074683368206, -0.06868520379066467, 0.06595788896083832, -0.001872784225270152, 0.012335704639554024, -0.02429460920393467, 0.03497060015797615, -0.01437221746891737, 0.007957651279866695, 0.015691015869379044, -0.028313806280493736, 0.02183644101023674, 0.029749233275651932, -0.04453413560986519, 0.03342751786112785, 0.0076705655083060265, 0.051531847566366196, -0.09179558604955673, -0.039761342108249664, -0.04830213263630867, -0.02233883924782276, -0.0011494633508846164, -0.0067823948338627815, 0.06581434607505798, 0.04295516759157181, 0.023846039548516273, -0.08239353448152542, -0.017198214307427406, -0.0032005547545850277, 0.015063016675412655, 0.0249943807721138, 0.024671409279108047, -0.0005158567219041288, 0.048158589750528336, -0.0554792694747448, 0.02766786515712738, -0.020526612177491188, 0.02913917787373066, 0.027721691876649857, -0.001285156118683517, -0.008854793384671211, -0.011295019648969173, -0.02163906954228878, 0.006320366635918617, -0.037500541657209396, 0.03326603025197983, -0.0018268057610839605, 0.027506379410624504, 0.05680704116821289, 0.01456958893686533, -0.047476764768362045, 0.06125686690211296, 0.022948896512389183, -0.05321847274899483, 0.026519522070884705, 0.026124779134988785, 0.035311516374349594, 0.06197458133101463, 0.06890051811933517, -0.0712689757347107, -0.052393101155757904, -0.018292728811502457, 0.08339833468198776, -0.03459380194544792, -0.03342751786112785, -0.01633695885539055, 0.03685459867119789, 0.027326950803399086, -0.027901120483875275, 0.08382896333932877, -0.04374465346336365, 0.0003109158424194902, 0.054474472999572754, -0.003507825778797269, -0.0091553358361125, 0.023182153701782227, -0.025227637961506844, -0.0037904256023466587, -0.04930693283677101, 0.00323419738560915, 0.056161098182201385, 0.02806260623037815, -0.017790328711271286, -0.018732327967882156, 0.028493234887719154, 0.017548101022839546, 0.06524017453193665, 0.01670478656888008, 0.029964547604322433, 0.016175473108887672, -0.042345110327005386, -0.017072616145014763, 0.015125816687941551, 0.06922348588705063, -0.02617860771715641, 0.027614036574959755, -0.027291065081954002, -0.018714385107159615, -0.05619698390364647, -0.017108501866459846, -0.04525185003876686, 0.03120260499417782, -0.07729776948690414, 0.005580224096775055, -0.055551040917634964, -0.026035064831376076, -0.03480911627411842, -0.02470729500055313, 0.023038610816001892, 0.03990488499403, 0.03882831335067749, 0.029874833300709724, 0.0178710725158453, -0.034324660897254944, 0.053684987127780914, 0.035903628915548325, -0.036029230803251266, 0.028690606355667114, 0.005378367379307747, 0.014829759486019611, 0.018750270828604698, -0.018310671672225, 0.0030143975745886564, 0.0310231763869524, -0.023935751989483833, -0.0065446519292891026, -0.03082580491900444, -0.01966535672545433, 0.02964157611131668, 0.019037356600165367, 0.045180078595876694, -0.05709412693977356, 0.030287519097328186, -0.04930693283677101, 0.0011505847796797752, 0.028690606355667114, 0.05110121890902519, 0.012407476082444191, 0.034611742943525314, -0.09036015719175339, 0.03576008602976799, -0.06509663164615631, 0.005692366976290941, -0.017566043883562088, -0.018140213564038277, 0.010254334658384323, 0.00917776394635439, -0.0013905703090131283, -0.020203640684485435, -0.012748390436172485, -0.029480092227458954, -0.016624044626951218, 0.019342385232448578, -0.042919281870126724, 0.04309871047735214, 0.062297552824020386, 0.030646376311779022, 0.012820161879062653, -0.05185481533408165, 0.07830256968736649, -0.025747980922460556, -0.026142721995711327, 0.02201586775481701, -0.025658266618847847, 0.030484890565276146, -0.007513565476983786, 0.025066152215003967, -0.00624859519302845, 0.03861299902200699, -0.0007580851088277996, 0.030682262033224106, -0.002718340838328004, -0.040945567190647125, 0.014632388949394226, -0.0006072531105019152, -0.007580851204693317, -0.06201046705245972, 0.001962498528882861, 0.03662134334445, -0.0026712408289313316, -0.0502040758728981, -0.04650785028934479, 0.0666397213935852, -0.07916382700204849, 0.0418785959482193, 0.0034696971997618675, 0.02687837928533554, -0.06132863834500313, -0.0022989267017692327, 0.0029358977917581797, -0.00017718557501211762, 0.05321847274899483, -0.010065934620797634, -0.01362758968025446, -0.02815232053399086, -0.00610056659206748, 0.011743591167032719, 0.0033620402682572603, -0.03143586218357086, -0.021369926631450653, 0.007096394430845976, 0.04037139564752579, 0.0795944556593895, -0.02023952640593052, -0.052895501255989075, 0.06854166090488434, 0.03990488499403, -0.07335034012794495, -0.015574388206005096, -0.019790956750512123, 0.006508766207844019, -0.015269359573721886, 0.010299191810190678, -0.042739853262901306, -0.0030368261504918337, 0.033445458859205246, 0.04327813908457756, 0.011887134052813053, 0.049845218658447266, -0.012811190448701382, -0.0023594838567078114, 0.03346340358257294, -0.016911130398511887, -0.009204678237438202, 0.048015046864748, 0.012865019030869007, 0.002668997971341014, -0.007971107959747314, 0.02962363325059414, -0.07141251862049103, 0.004983624909073114, -0.001010406413115561, 0.0912214145064354, 0.048948075622320175, -0.003379983128979802, 0.01032610610127449, -0.023935751989483833, -0.09825500845909119, -0.0346476286649704, 0.01541290245950222, -0.02429460920393467, 0.01771855726838112, 0.020723983645439148, -0.019127070903778076, 0.02398958057165146, -0.0011752562131732702, -0.07758485525846481, 0.018588785082101822, -0.01898352801799774, 0.020113926380872726, -0.04650785028934479, -0.006970794405788183, 0.019808899611234665, -0.02391780912876129, -0.029515977948904037, -0.022464439272880554, -0.0659937784075737, -0.0029874832835048437, 0.05400795862078667, -0.009137392975389957, -0.04205802455544472, -0.007275823038071394, 0.04632842168211937, -0.0031601833179593086, 0.06624497473239899, 0.022267067804932594, -0.019629471004009247, -0.031453803181648254, 0.02470729500055313, 0.00863947905600071, 0.03012603335082531, 0.016812443733215332, 0.016570216044783592, -0.09172381460666656, 0.031364090740680695, 0.0035257686395198107, 0.0005169781506992877, -0.016426673159003258, -0.04891218990087509, 0.005284167360514402, -0.01898352801799774, -0.024330494925379753, 0.0052079102024436, -0.018203014507889748, 0.07708245515823364, 0.009563535451889038, 0.012766333296895027, 0.012066561728715897, -0.011483419686555862, 0.03021574765443802, -0.023774268105626106, -0.012380561791360378, -0.022356782108545303, -0.05354144424200058, 0.021495526656508446, -0.020885469391942024, 0.09107787162065506, -0.012640733271837234, -0.06850577890872955, -0.021495526656508446, -0.036890484392642975, -0.018364500254392624, 0.04808681830763817, 0.00501053873449564, 0.0383617989718914, -0.0046875677071511745, -0.008783021941781044, 0.006549137644469738, 0.06369709223508835, -0.009173278696835041, 0.0401201955974102, -0.029085349291563034, -0.04367288202047348, 0.023289810866117477, -0.02806260623037815, -0.010882334783673286, 0.02192615531384945, 0.06969000399112701, -0.03565242886543274, 0.02203381061553955, -0.05056293308734894, 0.0004695978423114866, 0.036118943244218826, 0.054797444492578506, 0.06136452406644821, -0.0925133004784584, -0.01438118889927864, 0.00276768347248435, -0.031274374574422836, -0.04898396134376526, 0.000034939483157359064, -0.013591703958809376, -0.10758528858423233, -0.015368045307695866, 0.03608305752277374, 0.05781184136867523, -0.029408320784568787, -0.04259631037712097, -0.03032340481877327, -0.0521777868270874, 0.03753642737865448, 0.022859182208776474, 0.00042221753392368555, 0.014031303115189075, 0.00845107901841402, 0.028224091976881027, -0.008751621469855309, 0.033535175025463104, -0.013053418137133121, 0.0458260215818882, -0.016076788306236267, 0.06717800348997116, 0.020472783595323563, 0.054797444492578506, -0.06290760636329651, -0.016722729429602623, -0.02883414924144745, -0.030377233400940895, 0.02678866498172283, -0.005916652735322714, 0.0034158688504248857, -0.06617320328950882, -0.0189655851572752, 0.05138830468058586, 0.009626335464417934, -0.022177353501319885, 0.004535053391009569, 0.007038080133497715, -0.008473508059978485, 0.0642353817820549, 0.002834969200193882, 0.0029381406493484974, -0.021692898124456406, -0.038290027529001236, -0.021262269467115402, -0.034827057272195816, -0.0002856836945284158, -0.026914265006780624, -0.0633741244673729, -0.03227917477488518, -0.05056293308734894, -0.030484890565276146, -0.022769467905163765, 0.026950150728225708, -0.03231506049633026, 0.014246617443859577, 0.051603615283966064, -0.041053224354982376, -0.012048618867993355, 0.022464439272880554, -0.006634366232901812, -0.01520655956119299, 0.010981019586324692, 0.004564210772514343, 0.030359290540218353, 0.025317352265119553, 0.012577933259308338, -0.017619872465729713, 0.02056249789893627, -0.039079513400793076, 0.043708767741918564, -0.020490726456046104, -0.07195080071687698, 0.005974966567009687, -0.013672446832060814, 0.0383617989718914, -0.035311516374349594, -0.0616157241165638, -0.0020993126090615988, 0.012254961766302586, 0.019396213814616203, -0.0021822983399033546, 0.007078451570123434, -0.024258723482489586, 0.0879199281334877, 0.0218184981495142, 0.0076615940779447556, -0.015691015869379044, -0.049450475722551346, 0.026932207867503166, -0.02153141237795353, -0.00845107901841402, 0.08605387806892395, -0.00501053873449564, 0.011644905433058739, 0.011142505332827568, -0.03253037482500076, 0.041447967290878296, -0.021369926631450653, -0.007787194103002548, 0.0333198606967926, -0.005154081620275974, 0.012551018968224525, 0.002227155491709709, -0.05433093011379242, 0.012577933259308338, -0.039079513400793076, 0.020777812227606773, -0.0005357621121220291, -0.05038350448012352, 0.002245098352432251, -0.012954732403159142, -0.021657012403011322, -0.00629793806001544, -0.042237453162670135, -0.04327813908457756, 0.045000649988651276, 0.00698425155133009, -0.05623286962509155, 0.046471964567899704, 0.03170500323176384, 0.03260214626789093, 0.010200506076216698, -0.015045073814690113, -0.002106041181832552, 0.0381464846432209, -0.007692994084209204, -0.050921790301799774, -0.032961003482341766, 0.03208180516958237, 0.003929482772946358, 0.02194409817457199, 0.021962039172649384, -0.007056022994220257, -0.036603398621082306, -0.007051537279039621, -0.024958495050668716, 0.06319469213485718, -0.02241061069071293, 0.01876821368932724, -0.04306282475590706, -0.008473508059978485, 0.03965368494391441, -0.03735699877142906, -0.047261450439691544, -0.045395392924547195, -0.04948636144399643, -0.0383617989718914, -0.02418695203959942, -0.048840418457984924, 0.05651995539665222, -0.06057503819465637, 0.03893597051501274, 0.04679493606090546, 0.04769207909703255, -0.0041963825933635235, 0.012371590360999107, 0.02192615531384945, -0.06416361033916473, 0.03396580368280411, 0.0583142414689064, 0.03337368741631508, -0.004705510567873716, 0.057452984154224396, -0.03315837308764458, -0.050921790301799774, 0.05720178410410881, 0.03448614478111267, 0.08547970652580261, -0.006845194846391678, 0.021064897999167442, 0.0069438801147043705, 0.00545462453737855, 0.03796705603599548, -0.005333510227501392, -0.043026939034461975, 0.00012440838327165693, -0.022751525044441223, 0.027416665107011795, -0.01229084748774767, -0.08591033518314362, -0.02065221220254898, 0.011106619611382484, -0.012470276094973087, -0.012524104677140713, -0.0352935716509819, 0.029408320784568787, -0.01279324758797884, -0.009231592528522015, -0.005360424518585205, 0.02142375521361828, 0.06857755035161972, -0.013313589617609978, -0.00049539067549631, 0.03468351438641548, 0.00578208127990365, -0.00022386500495485961, -0.04672316461801529, 0.015197588130831718, -0.01683935895562172, 0.011600048281252384, 0.010191534645855427, 0.03213563188910484, 0.0010681599378585815, -0.01011976320296526, 0.021513469517230988, 0.05192658677697182, -0.025550609454512596, -0.03504237160086632, -0.022195296362042427, 0.036782827228307724, -0.014982273802161217, -0.03746465593576431, -0.049629904329776764, 0.03785939887166023, -0.016319015994668007, -0.004965682048350573, 0.035921573638916016, 0.04482122138142586, 0.02834969200193882 ]
21,067
sortedcontainers.sorteddict
clear
Remove all items from sorted dict. Runtime complexity: `O(n)`
def clear(self): """Remove all items from sorted dict. Runtime complexity: `O(n)` """ dict.clear(self) self._list_clear()
(self)
[ 0.004248478449881077, 0.0411532036960125, -0.05100776627659798, -0.02335253544151783, -0.03346734121441841, -0.027811378240585327, -0.06981471180915833, 0.009602992795407772, 0.04497011378407478, -0.04184718802571297, -0.0492728091776371, 0.006501755211502314, 0.02501809597015381, 0.014894614927470684, -0.045282404869794846, 0.014460875652730465, -0.0006657901685684919, 0.05909267067909241, -0.016239207237958908, -0.062111496925354004, 0.02571207843720913, -0.00780731113627553, 0.043616846203804016, 0.0739092156291008, -0.035011451691389084, -0.012543746270239353, 0.015736069530248642, -0.03315505012869835, 0.017262833192944527, 0.01811296120285988, 0.027169443666934967, 0.021617576479911804, -0.003402686445042491, 0.028349215164780617, -0.020108163356781006, -0.046566274017095566, 0.03358878940343857, 0.0031099123880267143, -0.023716876283288002, 0.04451902210712433, 0.019518278539180756, -0.00432655168697238, 0.011138430796563625, -0.042332977056503296, 0.06360356509685516, 0.03327649459242821, 0.07120268046855927, 0.06384645402431488, 0.02919934317469597, -0.029928026720881462, 0.009299375116825104, 0.02886970154941082, 0.0014248342486098409, 0.02838391438126564, -0.06141751632094383, 0.006965856533497572, 0.016057036817073822, -0.025937622413039207, 0.04444962367415428, 0.027342939749360085, 0.020819496363401413, 0.008900335058569908, -0.060445938259363174, -0.07918348908424377, 0.019466228783130646, -0.013463274575769901, -0.03351939097046852, 0.017063312232494354, 0.018390554934740067, -0.019153937697410583, -0.03952234610915184, 0.012743267230689526, 0.02057660184800625, 0.054928772151470184, -0.027707280591130257, 0.0032617212273180485, 0.014356778003275394, 0.01443485077470541, 0.014460875652730465, -0.08980143070220947, 0.01344592496752739, -0.03199262544512749, -0.014851240441203117, 0.03074345737695694, -0.03030971623957157, 0.013975086621940136, 0.07918348908424377, 0.024913998320698738, 0.012604470364749432, 0.021062390878796577, -0.019362131133675575, 0.054234787821769714, -0.024861948564648628, -0.013185680843889713, 0.013584721833467484, 0.017045963555574417, -0.028036922216415405, -0.025677379220724106, -0.04007752984762192, -0.01745367795228958, 0.04146549850702286, -0.005868495441973209, -0.010305650532245636, 0.0012242298107594252, -0.013697493821382523, -0.01937948167324066, 0.048717621713876724, -0.04850942641496658, -0.03214877098798752, 0.08633150905370712, -0.048925817012786865, 0.03608712926506996, 0.019986717030405998, 0.009030456654727459, 0.043616846203804016, 0.021999267861247063, -0.0690513327717781, -0.03615652397274971, 0.011337950825691223, 0.014512924477458, -0.016421377658843994, 0.027551133185625076, -0.016724996268749237, -0.01991731859743595, 0.025260988622903824, -0.0012513385154306889, -0.015016062185168266, 0.011615544557571411, -0.01119915395975113, 0.0036260623019188643, -0.007373571861535311, -0.0003876546979881823, 0.00040229340083897114, 0.030986350029706955, 0.05159765109419823, -0.05520636588335037, 0.03667701408267021, -0.03431747108697891, 0.015718720853328705, 0.03476855903863907, 0.00397739140316844, -0.007009230554103851, 0.04274936765432358, 0.04059801995754242, 0.0598907507956028, -0.04080621153116226, -0.027117393910884857, -0.005374032538384199, -0.04278406500816345, -0.00678802328184247, -0.028401263058185577, 0.025191590189933777, 0.03346734121441841, -0.032912153750658035, -0.03806497901678085, 0.0004714206443168223, -0.051493555307388306, -0.02276264876127243, -0.06603250652551651, -0.0026111118495464325, 0.013567372225224972, 0.025451835244894028, 0.048440027981996536, -0.0699882060289383, -0.051771149039268494, 0.0063889832235872746, 0.04028572514653206, -0.02694389782845974, -0.046253982931375504, 0.010218902491033077, -0.03534109517931938, -0.05649023503065109, -0.04028572514653206, -0.011207829229533672, 0.0410144068300724, 0.022467706352472305, -0.06037653982639313, 0.015996312722563744, 0.010921561159193516, 0.02661425620317459, -0.009707090444862843, -0.035375796258449554, -0.0334152914583683, -0.030604660511016846, 0.007191400974988937, -0.014990037307143211, 0.020281659439206123, 0.0020450816955417395, 0.009325399063527584, 0.035427842289209366, -0.05357550457119942, -0.01368014421314001, -0.02094094455242157, -0.027082694694399834, 0.04184718802571297, 0.0029494287446141243, -0.04594168812036514, -0.015042086131870747, -0.0013933881418779492, 0.011797714978456497, -0.06353416293859482, -0.033397942781448364, 0.04958510026335716, -0.05343670770525932, 0.016100410372018814, 0.004333057906478643, -0.007117665372788906, -0.041049107909202576, 0.0184773039072752, 0.08223701268434525, 0.01804356463253498, -0.03705870360136032, 0.021877821534872055, -0.03619122505187988, 0.03161093592643738, -0.08681730180978775, -0.02127058617770672, 0.015935590490698814, -0.011450722813606262, -0.019483579322695732, 0.0037583529483526945, -0.026701005175709724, -0.02768993005156517, -0.04091031104326248, 0.013818941079080105, 0.03095165081322193, 0.0019366468768566847, -0.01809561252593994, -0.014270029962062836, -0.04479661583900452, 0.0615910105407238, -0.0020190575160086155, 0.05496346950531006, -0.017479702830314636, 0.00961166713386774, -0.030812855809926987, -0.054234787821769714, -0.03528904542326927, -0.012257478199899197, -0.0178874172270298, -0.015779443085193634, 0.043616846203804016, 0.034473616629838943, 0.022849397733807564, -0.05891917645931244, 0.06353416293859482, -0.0003811485948972404, 0.047433752566576004, 0.040667418390512466, -0.016889816150069237, -0.02630196325480938, -0.03633002191781998, -0.004012090619653463, -0.013385201804339886, 0.047433752566576004, -0.06273608654737473, 0.00613307673484087, -0.006172113120555878, -0.0102536017075181, 0.02383832447230816, 0.0074342950247228146, -0.007989482022821903, -0.01550185028463602, 0.055830951780080795, 0.05791290104389191, 0.023161690682172775, 0.06401995569467545, 0.050209686160087585, -0.023630129173398018, 0.04170839115977287, 0.08577632904052734, -0.08626211434602737, 0.03626062348484993, -0.04989739507436752, 0.0066015152260661125, 0.08390256762504578, -0.006748986896127462, -0.03298155218362808, -0.05239573493599892, 0.055032867938280106, 0.09084240347146988, -0.031732384115457535, 0.005035715643316507, 0.007542730309069157, -0.007677189540117979, 0.07030049711465836, -0.02437616139650345, -0.02002141624689102, -0.008475270122289658, 0.026336662471294403, 0.02784607745707035, 0.0205072034150362, -0.012422299943864346, 0.029060548171401024, 0.035531941801309586, -0.042506471276283264, -0.003953535575419664, -0.022745300084352493, 0.016950540244579315, 0.04878702014684677, -0.006657901685684919, -0.01901514083147049, -0.023873023688793182, 0.009733114391565323, 0.06679588556289673, 0.01379291620105505, -0.009073830209672451, 0.03744039312005043, 0.018130311742424965, 0.0017143554287031293, -0.015666671097278595, 0.05843338742852211, -0.003231359412893653, 0.05125065892934799, 0.029875976964831352, 0.0007525380351580679, -0.05426948890089989, 0.01607438549399376, -0.021895170211791992, 0.06037653982639313, -0.042818766087293625, 0.005864158272743225, -0.046739768236875534, -0.026111118495464325, -0.03176708146929741, -0.09889260679483414, -0.03176708146929741, 0.04472721740603447, 0.0035241334699094296, 0.02340458333492279, 0.01937948167324066, -0.02886970154941082, 0.033779632300138474, -0.001559293596073985, -0.015042086131870747, 0.009915284812450409, 0.019431529566645622, 0.028730904683470726, 0.01108638197183609, -0.013385201804339886, 0.0011548314942047, 0.010852162726223469, 0.020264310762286186, -0.006913807708770037, -0.04878702014684677, 0.012543746270239353, -0.0004237092798575759, 0.013437249697744846, 0.004818846005946398, -0.07012700289487839, 0.06884313374757767, 0.00018772788462229073, 0.03518494963645935, 0.035809535533189774, 0.10076636075973511, 0.029008498415350914, 0.009299375116825104, 0.031194545328617096, -0.009177927859127522, -0.028158368542790413, 0.04621928185224533, -0.0016351980157196522, -0.08029385656118393, -0.0509730689227581, 0.07266004383563995, -0.03615652397274971, -0.01767054758965969, -0.04295756295323372, -0.03421337157487869, -0.02919934317469597, -0.005716686602681875, -0.08431895822286606, 0.014339428395032883, 0.00517017487436533, 0.03775268793106079, 0.010409748181700706, -0.008206351660192013, 0.0951450988650322, -0.004228960257023573, 0.013636770658195019, 0.04719085991382599, 0.00937744788825512, 0.017332231625914574, -0.02489664778113365, -0.04750315099954605, -0.0074342950247228146, -0.002925572916865349, 0.011285902000963688, 0.010409748181700706, 0.03480326011776924, -0.01675969548523426, -0.02897379919886589, -0.04385973885655403, -0.02415061555802822, -0.024723151698708534, 0.05447768419981003, 0.0035414830781519413, -0.008618404157459736, -0.08251460641622543, -0.02494869753718376, 0.11041273176670074, -0.04837062954902649, 0.01842525415122509, -0.03556663915514946, 0.03209672495722771, -0.015519199892878532, -0.019344782456755638, -0.027551133185625076, 0.02248505689203739, 0.0002477736852597445, 0.035063501447439194, -0.00282581290230155, 0.026059070602059364, -0.04306165874004364, 0.03402252867817879, -0.05909267067909241, -0.002494002226740122, 0.00006458652205765247, 0.0716884657740593, 0.04205538332462311, 0.011459398083388805, 0.0003399433335289359, -0.056698430329561234, 0.06266668438911438, 0.006432356778532267, -0.039175353944301605, -0.0208368469029665, 0.01472979411482811, -0.00830177403986454, -0.0043764314614236355, 0.016247881576418877, -0.06197270005941391, -0.024514956399798393, -0.000497716071549803, -0.007278149016201496, 0.03239166736602783, 0.024341462180018425, -0.025347737595438957, -0.0029472599271684885, 0.053471408784389496, -0.02442820928990841, -0.00902178231626749, 0.05773940309882164, -0.011389999650418758, 0.03962644189596176, 0.08022446185350418, -0.010565894655883312, 0.053159113973379135, 0.0376138910651207, 0.0016341136069968343, 0.040251027792692184, 0.04195128381252289, 0.010114805772900581, -0.04323515295982361, -0.04781544208526611, -0.06315246969461441, -0.023716876283288002, 0.0492728091776371, -0.05735771358013153, 0.005803434643894434, 0.012318202294409275, 0.06790626049041748, 0.006675251293927431, -0.04958510026335716, -0.039279449731111526, 0.035531941801309586, -0.019778521731495857, 0.029598385095596313, -0.032582513988018036, 0.016412703320384026, 0.0019192973850294948, -0.04542120173573494, -0.06506092846393585, -0.06245848909020424, -0.054824672639369965, -0.010678666643798351, 0.03520229831337929, 0.013905689120292664, -0.021877821534872055, -0.007395258639007807, 0.040355123579502106, -0.015328354202210903, 0.00824538804590702, -0.018650798127055168, 0.02222481183707714, -0.0013651951448991895, 0.012413624674081802, -0.019344782456755638, -0.004736435599625111, -0.013975086621940136, -0.056802526116371155, -0.0986844152212143, -0.021114438772201538, 0.0115981949493289, 0.05822519212961197, -0.029633084312081337, -0.03431747108697891, 0.024029169231653214, -0.013428575359284878, -0.03844666853547096, 0.01600498892366886, 0.0184773039072752, -0.04160429537296295, 0.029338140040636063, 0.03046586364507675, 0.00824538804590702, 0.0176271740347147, 0.0011396505869925022, -0.05322851240634918, -0.04077151417732239, -0.011121081188321114, -0.045664094388484955, 0.04177778959274292, -0.03358878940343857, 0.047641947865486145, -0.017974166199564934, -0.09292435646057129, -0.02314434014260769, 0.002981959143653512, 0.010930235497653484, -0.0258161760866642, 0.040146928280591965, -0.0037973893340677023, 0.0028583433013409376, -0.02935549058020115, -0.019969366490840912, -0.018893692642450333, -0.0022706263698637486, 0.05714951828122139, -0.009229976683855057, 0.0088612986728549, -0.021652275696396828, 0.0074820066802203655, -0.010826137848198414, 0.022675901651382446, 0.04236767441034317, -0.04847472906112671, -0.0855681300163269, -0.012526396661996841, 0.04719085991382599, 0.036503516137599945, 0.0018705016700550914, 0.11992029845714569, -0.058988574892282486, -0.0015202569775283337, 0.04288816452026367, -0.06457513570785522, -0.011632894165813923, -0.03608712926506996, 0.04767664894461632, -0.06842674314975739, -0.04958510026335716, 0.056212641298770905, -0.0369546078145504, 0.008631416596472263, -0.03388373181223869, 0.02356073074042797, -0.002472315216436982, 0.0663101002573967, -0.007859360426664352, -0.0009591064881533384, 0.044692520052194595, -0.030622009187936783, 0.0007411523838527501, 0.003966548014432192, 0.027412336319684982, -0.029390189796686172, 0.0411532036960125, 0.06547731906175613, 0.05881507694721222, 0.005729699041694403, 0.03037911467254162, 0.021287934854626656, -0.030448513105511665, -0.03030971623957157, 0.04344334825873375, -0.005365357734262943, -0.01239627506583929, -0.0010740474099293351, -0.08820527046918869, 0.0030036461539566517, 0.025937622413039207, 0.004484866745769978, -0.03910595551133156, 0.014174607582390308, 0.012127356603741646, 0.014486899599432945, 0.02309229224920273, -0.02560798078775406, 0.016950540244579315, 0.0129080880433321, -0.00732586020603776, 0.04434552788734436, -0.019570326432585716, -0.030327066779136658, 0.011181804351508617, 0.02571207843720913, -0.04108380526304245, -0.10076636075973511, 0.023543380200862885, 0.03528904542326927, 0.00846225768327713, 0.003389674238860607, 0.022641202434897423, 0.002068937523290515, 0.024289412423968315, -0.01194518618285656, 0.020802147686481476, 0.036711711436510086, 0.005001016426831484, -0.0445537231862545, -0.00936877354979515, 0.042228877544403076, -0.004831857979297638, 0.059751953929662704, -0.038654863834381104, 0.029702480882406235, -0.0545123815536499, 0.006059341132640839, -0.010288300924003124, -0.03657291457056999, 0.005842471029609442, -0.03820377588272095, 0.05607384443283081, -0.027065346017479897, -0.023907721042633057, -0.008158640004694462, 0.04226357862353325, -0.009594318456947803, 0.038481369614601135, -0.003302926430478692, -0.1079837903380394, -0.017479702830314636, 0.06787155568599701, -0.01322905533015728, 0.01315098162740469, -0.06433224678039551, 0.042020682245492935, -0.007529717870056629, 0.030812855809926987, 0.06401995569467545, -0.0193968303501606, 0.010106130503118038, 0.00511378888040781, -0.046253982931375504, 0.01301218569278717, -0.056802526116371155, -0.004853545222431421, 0.05378369987010956, -0.01293411199003458, -0.02833186462521553, 0.00782032310962677, 0.014096533879637718, 0.00311858719214797, -0.03331119567155838, -0.017870068550109863, 0.00147905177436769, -0.04885641857981682, -0.005729699041694403, -0.005413068924099207, -0.010435773059725761, 0.013281104154884815, -0.03657291457056999, -0.0364341177046299, 0.06238909065723419, -0.05132005736231804, -0.04503951221704483, 0.08327798545360565, -0.0009688656427897513, 0.04632338136434555, -0.016265232115983963, -0.004706073552370071, -0.0027108718641102314, -0.0334152914583683, -0.03494205325841904, 0.043096356093883514, 0.0037063041236251593, 0.044102635234594345, 0.01880694553256035, 0.01682041771709919, 0.007547067478299141, 0.019969366490840912, -0.031524188816547394, -0.017158735543489456, -0.012977486476302147, 0.04059801995754242, -0.04434552788734436, -0.019535627216100693, -0.02730824053287506, -0.030032124370336533, -0.007529717870056629, -0.0997253879904747, -0.009871911257505417, -0.02330048568546772, -0.032478414475917816, 0.02661425620317459, -0.004549927543848753, -0.0703698992729187, 0.10125215351581573, -0.02073274925351143, 0.02930344082415104, 0.018668148666620255, 0.026093769818544388, 0.02463640458881855, 0.0050660776905715466, 0.031576234847307205, -0.028678856790065765, 0.05694132298231125, -0.01986526884138584, 0.023387234658002853, 0.008995757438242435, 0.08820527046918869, -0.041534896939992905, -0.00926467590034008, 0.03148948773741722, 0.013133632019162178, 0.008579367771744728, -0.030066823586821556, 0.006141751538962126, -0.019240684807300568, 0.018893692642450333, 0.013402550481259823, 0.0011635062983259559, 0.009672391228377819, 0.0697106122970581, 0.04878702014684677, -0.03910595551133156, -0.02489664778113365, -0.05298561975359917, -0.011979885399341583, -0.02184312231838703, -0.018598750233650208, -0.02173902466893196, 0.015866192057728767, 0.02073274925351143, -0.020698050037026405, 0.01868549734354019, 0.011337950825691223, 0.03844666853547096, 0.021704325452446938, -0.042818766087293625, -0.025937622413039207, 0.012968811206519604, 0.043304551392793655, 0.030760806053876877, -0.04632338136434555, 0.028106320649385452, 0.016889816150069237, -0.02501809597015381, 0.0066015152260661125, 0.015736069530248642, -0.004302695859223604, -0.005213548894971609, 0.029025848954916, 0.02507014386355877, 0.03239166736602783, -0.0411532036960125, -0.006063678301870823, -0.006679588463157415, -0.0039448607712984085, -0.05031378194689751, -0.05978665500879288, -0.03490735590457916, -0.00780731113627553, 0.0026176180690526962, 0.010904211550951004, 0.06787155568599701, -0.014044485054910183 ]
21,069
tfields.core
equal
Test equality with other object. Args: **kwargs: passed to each item on equality check
def equal(self, other, **kwargs): """ Test equality with other object. Args: **kwargs: passed to each item on equality check """ if not self.keys() == other.keys(): return False # pylint:disable=consider-using-dict-items for dimension in self.keys(): if not self[dimension].equal(other[dimension], **kwargs): return False return True
(self, other, **kwargs)
[ 0.03914603590965271, -0.04323645681142807, -0.048690348863601685, 0.02527807652950287, -0.027879441156983376, -0.01736634410917759, -0.033171869814395905, 0.012845353223383427, 0.0349300317466259, 0.04126300662755966, -0.03485827147960663, -0.013419447466731071, 0.08123429864645004, 0.050986725836992264, 0.0085441330447793, -0.06856835633516312, -0.014128094539046288, 0.005171331111341715, 0.03571941331028938, -0.001234526396729052, -0.0107283815741539, 0.0047003948129713535, 0.02427341230213642, 0.05525654926896095, 0.006907068658620119, 0.05371367186307907, 0.027825618162751198, 0.025044851005077362, 0.05626121163368225, 0.07800502330064774, -0.10441334545612335, -0.027753857895731926, 0.0648726224899292, 0.09465374797582626, 0.01823645457625389, -0.05733763799071312, -0.0014341137139126658, 0.013778256252408028, -0.0641191229224205, -0.00828399695456028, -0.0162181556224823, -0.023448152467608452, 0.04144241288304329, -0.0072927880100905895, 0.021277358755469322, 0.009822390042245388, -0.038858987390995026, 0.008391640149056911, -0.03130606561899185, 0.0344276987016201, -0.010737352073192596, -0.03216720372438431, 0.008768389001488686, 0.07355579733848572, -0.040007177740335464, 0.05536419153213501, 0.028381772339344025, 0.04054538905620575, -0.052278436720371246, 0.013715464621782303, -0.07786150276660919, -0.02497308887541294, -0.012432723306119442, -0.025654826313257217, -0.0768568366765976, -0.05773232877254486, -0.09027628600597382, 0.02215643972158432, 0.013293864205479622, 0.014612486585974693, -0.03896662965416908, 0.02273053489625454, -0.00035628589102998376, 0.028507355600595474, -0.04420523717999458, 0.03297452628612518, -0.034678865224123, 0.07757445424795151, 0.04183709993958473, -0.03297452628612518, -0.023017581552267075, -0.057050593197345734, -0.025654826313257217, -0.038787227123975754, -0.054825976490974426, 0.04373878613114357, -0.004718335345387459, 0.08094725757837296, 0.09271617978811264, -0.016451381146907806, -0.0028794403187930584, 0.05536419153213501, 0.026587728410959244, -0.027484750375151634, -0.009678865782916546, 0.026587728410959244, -0.03774668276309967, -0.04700394719839096, -0.032920703291893005, -0.003087997902184725, 0.003626211080700159, -0.04122712463140488, 0.02630068175494671, 0.00900609977543354, -0.02368137799203396, -0.008077681995928288, -0.04219590872526169, -0.05805525556206703, -0.0491567999124527, 0.009544312953948975, -0.04808037355542183, 0.06397560238838196, -0.014468963257968426, 0.046393971890211105, 0.016702547669410706, -0.01806602068245411, -0.028902044519782066, -0.034122712910175323, -0.032472193241119385, -0.0054942588321864605, -0.0032606746535748243, 0.08991747349500656, 0.05195550620555878, 0.032795120030641556, 0.07786150276660919, 0.007041621953248978, 0.02784355916082859, 0.03277717903256416, -0.048403300344944, -0.0212055966258049, 0.056799426674842834, -0.035468246787786484, -0.0015933351824060082, 0.06279153376817703, 0.04782920703291893, 0.02063150331377983, 0.050986725836992264, 0.010100466199219227, 0.02459634095430374, 0.03213132545351982, 0.05095084384083748, 0.024094007909297943, 0.01611948385834694, 0.03306422755122185, -0.06053103879094124, -0.008526192978024483, -0.07520631700754166, -0.03320775181055069, 0.017500897869467735, 0.01480983104556799, -0.008521707728505135, 0.003244976745918393, 0.05317545682191849, -0.014343379996716976, -0.05479009822010994, -0.07305346429347992, -0.0034692322369664907, -0.04886975139379501, 0.021169716492295265, 0.01698959432542324, -0.02707212045788765, 0.006534804590046406, 0.026462145149707794, 0.019321851432323456, -0.02005741000175476, 0.0022672228515148163, -0.012558306567370892, -0.07441693544387817, 0.007413886021822691, -0.007041621953248978, 0.03191603720188141, -0.03091137483716011, -0.008876031264662743, -0.029081448912620544, -0.033494796603918076, 0.0031866703648120165, -0.012343021109700203, -0.014406171627342701, -0.005252063274383545, -0.008373699150979519, -0.005256548058241606, -0.06573376059532166, -0.024201650172472, 0.00925726629793644, 0.03123430162668228, 0.0012277987552806735, -0.003937926143407822, -0.011338356882333755, 0.042949408292770386, 0.013616791926324368, -0.0026506995782256126, -0.0032180659472942352, -0.044599927961826324, 0.01908862590789795, 0.02185145393013954, -0.03396124765276909, 0.009876211173832417, -0.02368137799203396, 0.036616433411836624, 0.10764262825250626, -0.055077143013477325, -0.04309293255209923, -0.0032629170455038548, -0.002415231429040432, 0.023484032601118088, -0.013975600712001324, 0.010809114202857018, -0.03989953175187111, 0.04348761960864067, 0.0016695819795131683, -0.03379978612065315, -0.031646933406591415, 0.011320415884256363, -0.016711518168449402, 0.051237888634204865, 0.038607820868492126, -0.0329386442899704, -0.032920703291893005, -0.017823824658989906, -0.00570057425647974, 0.11890922486782074, -0.025744527578353882, -0.005355220753699541, 0.03756727650761604, -0.028686759993433952, -0.00613114470615983, 0.04079655557870865, 0.02886616438627243, -0.015626121312379837, -0.029224973171949387, -0.00814495887607336, 0.057373519986867905, 0.031324002891778946, -0.0015103606274351478, 0.0020822121296077967, 0.0019655991345643997, -0.006700753699988127, -0.02726946584880352, 0.019501255825161934, 0.0012277987552806735, -0.002783010480925441, -0.006476498208940029, 0.004772156476974487, 0.028686759993433952, -0.02113383635878563, -0.06182274967432022, -0.010746322572231293, 0.05604592710733414, 0.0006464163889177144, 0.020667383447289467, -0.05468245595693588, -0.03403301164507866, -0.014271617867052555, 0.012746681459248066, 0.008405094966292381, 0.0017267671646550298, -0.04886975139379501, -0.0019151417072862387, 0.052780766040086746, -0.03550412505865097, 0.013841047883033752, 0.009562253020703793, -0.024111948907375336, 0.036813776940107346, -0.04520990327000618, 0.010934696532785892, 0.029781127348542213, 0.05181198567152023, -0.011885539628565311, -0.0336742028594017, -0.0416576974093914, 0.03109077922999859, 0.023932544514536858, 0.035988517105579376, -0.005216182209551334, 0.04302116855978966, 0.0419088639318943, -0.04068891331553459, -0.05715823546051979, -0.028955865651369095, 0.004695909563452005, -0.01714208908379078, -0.017025476321578026, -0.018128812313079834, -0.013715464621782303, -0.011643344536423683, -0.03460710495710373, -0.039361320436000824, 0.0173394326120615, -0.05202727019786835, 0.0012165859807282686, -0.010593828745186329, 0.020775027573108673, 0.02764621376991272, -0.03728022798895836, 0.030624326318502426, -0.008122533559799194, -0.021313240751624107, 0.0212055966258049, 0.05694295093417168, -0.006534804590046406, 0.015096878632903099, 0.03875134512782097, 0.00909580197185278, 0.05694295093417168, 0.015141729265451431, 0.04922856017947197, 0.06149981915950775, 0.039684247225522995, 0.012522425502538681, -0.0082346610724926, 0.04481521248817444, 0.017734123393893242, 0.05357014760375023, 0.009194474667310715, -0.004893254488706589, -0.012881234288215637, -0.007920702919363976, -0.004146483726799488, 0.07054179906845093, 0.003798887599259615, 0.02030857466161251, -0.043954070657491684, 0.005548080429434776, 0.011194833554327488, -0.05848582834005356, 0.042052384465932846, 0.019393613561987877, 0.04589163884520531, 0.03824901208281517, 0.009876211173832417, -0.020900610834360123, 0.048403300344944, 0.011616433039307594, 0.02949407882988453, -0.03229278698563576, -0.005938285030424595, 0.08295658230781555, 0.048367418348789215, 0.006485468242317438, 0.019393613561987877, -0.03835665434598923, 0.015285252593457699, -0.0676354467868805, 0.036114100366830826, 0.006108718924224377, -0.03735199198126793, -0.0010713805677369237, 0.0017144330777227879, 0.016729457303881645, -0.08015787601470947, 0.0016740671126171947, 0.046322211623191833, -0.03188015893101692, 0.014199856668710709, 0.05805525556206703, 0.009939002804458141, -0.033620379865169525, -0.044169358909130096, 0.03466092422604561, 0.10735557973384857, -0.00793415866792202, 0.02005741000175476, -0.03376390412449837, 0.0023344994988292456, 0.012082885019481182, -0.0031059382017701864, -0.05758880451321602, -0.007893792353570461, -0.048762109130620956, -0.037459634244441986, -0.009930032305419445, -0.01966271921992302, -0.01991388574242592, 0.010710441507399082, 0.010208109393715858, -0.05676354467868805, 0.06684607267379761, -0.0071268389001488686, -0.008597955107688904, 0.050412628799676895, -0.01584140583872795, 0.0093559380620718, 0.02497308887541294, -0.0107283815741539, -0.017079297453165054, 0.00005858674194314517, -0.017752062529325485, 0.006987800356000662, 0.05715823546051979, -0.031395766884088516, -0.02183351293206215, 0.0034512917045503855, 0.037961967289447784, -0.07330463081598282, -0.013706494122743607, -0.05152493715286255, -0.0011605221079662442, -0.08754933625459671, -0.03627556562423706, 0.003103695809841156, -0.03410477191209793, -0.032651595771312714, -0.020129170268774033, 0.0006834185332991183, 0.022640831768512726, -0.002628274029120803, 0.035145316272974014, 0.015662001445889473, 0.04477933421730995, -0.0006138993776403368, -0.013742375187575817, -0.002108001383021474, -0.00536419078707695, -0.023107284680008888, -0.02497308887541294, 0.027233583852648735, -0.032023683190345764, 0.06559024006128311, 0.04201650619506836, 0.02924291417002678, 0.019752422347664833, 0.0026036060880869627, -0.011795837432146072, -0.003713670652359724, -0.04686042293906212, -0.04259059950709343, 0.03340509533882141, 0.025116613134741783, -0.026031576097011566, -0.05945461243391037, -0.03577323257923126, 0.018021170049905777, -0.029870828613638878, 0.02572658844292164, 0.010190168395638466, 0.00027527360362000763, -0.05496950075030327, 0.0007523770909756422, 0.051489055156707764, 0.0016538840718567371, -0.046142805367708206, -0.006835306994616985, -0.03150340914726257, -0.07542160153388977, -0.04309293255209923, 0.0008605803595855832, 0.010898815467953682, 0.0164693221449852, 0.0178417656570673, 0.036616433411836624, 0.07047004252672195, -0.05306781455874443, -0.0698600634932518, 0.009660925716161728, -0.0366702564060688, -0.06846071034669876, -0.010100466199219227, -0.011051309294998646, 0.008351273834705353, -0.017258701846003532, -0.03116253949701786, -0.0661284551024437, -0.00995694287121296, -0.016783280298113823, 0.04718334972858429, -0.02804090455174446, 0.042052384465932846, 0.048618584871292114, 0.059167563915252686, -0.003294312860816717, -0.021492645144462585, -0.031054897233843803, 0.01551847904920578, 0.0008605803595855832, -0.000832548423204571, 0.005924829747527838, 0.05780408903956413, -0.08245424926280975, 0.0021820056717842817, -0.041729457676410675, 0.027054179459810257, 0.02554718405008316, -0.0416576974093914, 0.027753857895731926, -0.035844992846250534, -0.005969680845737457, 0.010620739310979843, -0.0031216361094266176, 0.006857732310891151, -0.014648367650806904, -0.03864370286464691, -0.03982777148485184, 0.02412988804280758, 0.04700394719839096, -0.02700035832822323, -0.0184607096016407, 0.013392536900937557, -0.04122712463140488, -0.004115087911486626, 0.008243631571531296, 0.0489056333899498, -0.007283817511051893, 0.053534265607595444, -0.002097910037264228, -0.005287943873554468, 0.004224973265081644, -0.03021169640123844, -0.0067814853973686695, -0.017949407920241356, -0.02228202298283577, -0.022874057292938232, 0.026641549542546272, -0.00457256892696023, 0.0858270525932312, 0.045999281108379364, -0.04592752084136009, -0.03557588905096054, 0.005458378233015537, -0.004043326247483492, 0.044348761439323425, -0.014549694955348969, 0.02656978741288185, -0.0294402576982975, -0.0581270195543766, 0.04226767271757126, 0.018873341381549835, -0.006454072427004576, 0.036167923361063004, -0.03652673214673996, -0.043200574815273285, -0.019878005608916283, -0.012181556783616543, 0.06189450994133949, -0.03564764931797981, 0.0733405128121376, -0.03229278698563576, -0.007216541096568108, 0.0331898108124733, 0.07337638735771179, 0.00836921390146017, 0.003619483206421137, 0.03684965893626213, -0.06135629862546921, -0.03814136981964111, 0.052780766040086746, 0.01519555039703846, -0.009203444235026836, 0.025188375264406204, 0.013231072574853897, 0.02312522381544113, -0.006534804590046406, 0.07456045597791672, -0.034320056438446045, -0.013571941293776035, 0.00857104454189539, -0.02260495163500309, -0.039684247225522995, 0.06293505430221558, 0.021941155195236206, 0.024363113567233086, 0.0016864011995494366, 0.06401148438453674, -0.009050950407981873, -0.029727306216955185, -0.038930751383304596, -0.0009508432121947408, 0.028435593470931053, -0.021546466276049614, 0.058198779821395874, -0.028112666681408882, 0.03231072798371315, -0.01928597129881382, -0.045568712055683136, 0.03410477191209793, -0.0344276987016201, -0.024614280089735985, 0.004238428547978401, -0.034122712910175323, -0.055579476058483124, -0.03710082545876503, 0.08188015967607498, 0.03602439910173416, 0.031019017100334167, 0.01788661628961563, -0.013491209596395493, 0.0009054314577952027, -0.006216361653059721, 0.022945819422602654, -0.005216182209551334, -0.039935413748025894, 0.02879440225660801, -0.028507355600595474, -0.05733763799071312, 0.03710082545876503, -0.03677789866924286, 0.010871904902160168, -0.025834230706095695, -0.004568084143102169, -0.07398636639118195, 0.020721206441521645, -0.009714746847748756, -0.03799784556031227, -0.009454610757529736, -0.027125941589474678, -0.009472550824284554, 0.0031485469080507755, 0.018478650599718094, 0.012217437848448753, 0.005435952451080084, 0.007839971221983433, 0.0024937207344919443, 0.044922854751348495, -0.0728381797671318, 0.028973806649446487, -0.03677789866924286, -0.04686042293906212, 0.0646214559674263, -0.034391820430755615, 0.019303910434246063, -0.020775027573108673, 0.003011750988662243, -0.03277717903256416, 0.005933799780905247, -0.06623609364032745, -0.0074677071534097195, 0.03103695809841156, -0.03575529158115387, 0.017949407920241356, -0.03213132545351982, 0.01619124598801136, -0.00358360237441957, 0.03684965893626213, -0.048439182341098785, 0.015697883442044258, -0.07865087687969208, -0.02802296355366707, 0.013114459812641144, -0.013455328531563282, 0.08066020905971527, 0.026767132803797722, 0.003444564063102007, -0.02777179703116417, 0.05357014760375023, -0.04553283005952835, 0.017850736156105995, -0.004651058465242386, -0.061786867678165436, 0.06749192625284195, -0.034517403692007065, -0.02726946584880352, 0.03229278698563576, 0.006642446853220463, 0.02567276731133461, -0.03557588905096054, 0.03864370286464691, 0.0048753139562904835, 0.007404915522783995, 0.020541802048683167, -0.02721564471721649, 0.05669178441166878, 0.010154287330806255, -0.022909939289093018, -0.0424111932516098, 0.06498026847839355, 0.012621098197996616, 0.03695730119943619, -0.04384642839431763, 0.003029691521078348, 0.02951201982796192, 0.00015613787400070578, 0.027951201424002647, 0.010970577597618103, -0.03403301164507866, -0.011858629062771797, -0.015975959599018097, -0.002845801878720522, 0.03039110079407692, 0.02138500101864338, -0.03907427191734314, -0.026013635098934174, 0.009678865782916546, -0.06508790701627731, 0.029171152040362358, -0.004825977608561516, 0.03261571750044823, -0.011437028646469116, -0.008297452703118324, -0.009974882937967777, -0.019555076956748962, 0.016307858750224113, -0.08137782663106918, 0.02764621376991272, 0.017285611480474472, -0.003063329728320241, -0.015213491395115852, -0.023789020255208015, 0.02534983865916729, -0.004812522325664759, 0.013679583556950092, -0.00951740238815546, -0.019626839086413383, 0.011580552905797958, 0.02273053489625454, 0.01858629286289215, 0.012109795585274696, -0.044169358909130096, 0.03850017860531807, 0.06767132878303528, -0.013536060228943825, -0.0601363480091095, 0.04686042293906212, 0.021492645144462585, -0.08345891535282135, 0.002325529232621193, 0.010297811590135098, 0.02095443196594715, 0.004054538905620575, -0.038787227123975754, 0.005929314531385899, -0.03127018362283707, -0.004857373423874378, 0.02337639033794403, 0.0007893792353570461, -0.02063150331377983, 0.03205956146121025, 0.06781485676765442, -0.0369214192032814, 0.0032472191378474236, -0.017052385956048965, -0.0017480714013800025, 0.05069967731833458, 0.017949407920241356, 0.05306781455874443, -0.053677789866924286, 0.013778256252408028, -0.04334409907460213, -0.054251883178949356, 0.026426265016198158, 0.08991747349500656, 0.07003946602344513, 0.01394869014620781, 0.04388231039047241, -0.020003588870167732, 0.02567276731133461, -0.0026933082845062017, -0.0016729458002373576, 0.05773232877254486, -0.03595263883471489, -0.020290635526180267, 0.05511302500963211, 0.020739145576953888, -0.03485827147960663, -0.0178417656570673, 0.029852887615561485, 0.04305705055594444, -0.007041621953248978, -0.07319698482751846, 0.054108358919620514, -0.04187298193573952, -0.050412628799676895, 0.0031978830229490995, -0.01876569725573063, 0.06010046601295471, -0.04707570746541023, 0.03914603590965271, 0.0601363480091095, 0.04359526187181473 ]
21,070
sortedcontainers.sorteddict
items
Return new sorted items view of the sorted dict's items. See :class:`SortedItemsView` for details. :return: new sorted items view
def items(self): """Return new sorted items view of the sorted dict's items. See :class:`SortedItemsView` for details. :return: new sorted items view """ return SortedItemsView(self)
(self)
[ -0.014875558204948902, -0.030006270855665207, -0.07246412336826324, -0.053480565547943115, 0.021194905042648315, 0.028747504577040672, -0.005966383032500744, -0.002432481152936816, 0.05746098980307579, 0.0016212997725233436, 0.013021429069340229, 0.010248740203678608, 0.026434095576405525, 0.018422218039631844, -0.018099021166563034, 0.03789907693862915, -0.008913427591323853, 0.015360353514552116, -0.015377363190054893, 0.02427378110587597, 0.0009738429798744619, -0.018456237390637398, 0.05773315578699112, 0.018966548144817352, -0.017137935385107994, -0.04276403784751892, -0.011558538302779198, -0.060488831251859665, 0.05800532177090645, -0.009457758627831936, -0.06130532920360565, -0.013191532343626022, 0.01796293817460537, 0.024460894986987114, -0.031894419342279434, -0.023372231051325798, 0.04249187558889389, -0.02335522137582302, 0.039361968636512756, 0.05997852236032486, -0.010546421632170677, -0.05062282457947731, 0.03478618338704109, -0.06399296969175339, 0.04623415321111679, 0.05147334188222885, 0.05844758823513985, 0.022793879732489586, 0.07511773705482483, -0.0014193017268553376, 0.028475338593125343, -0.027437707409262657, 0.009347192011773586, 0.006634039338678122, -0.058991920202970505, 0.04762900248169899, 0.033969685435295105, 0.015147723257541656, -0.002949170768260956, 0.06705483049154282, -0.004095243755728006, -0.032268647104501724, 0.01678071729838848, -0.08151363581418991, -0.006770122330635786, -0.014348236843943596, -0.0029023922979831696, -0.018915517255663872, -0.03478618338704109, -0.026229972019791603, -0.02330419048666954, 0.00887090153992176, 0.03449700400233269, 0.06191770359873772, -0.03582381457090378, 0.046268172562122345, -0.03487123176455498, -0.008887912146747112, 0.03223462775349617, -0.052459944039583206, 0.02490316331386566, -0.031299058347940445, 0.028611421585083008, 0.04273001849651337, -0.0024558703880757093, -0.010010595433413982, 0.007688681595027447, -0.013574265874922276, 0.05579397454857826, 0.06297234445810318, -0.0029640549328178167, 0.0411650650203228, -0.03335731104016304, -0.035415563732385635, -0.04310424625873566, -0.000007691206519666594, 0.015811128541827202, -0.011167299933731556, -0.053582627326250076, 0.03398669511079788, -0.00563893374055624, 0.031894419342279434, -0.02607687935233116, 0.02138201892375946, -0.05865171551704407, -0.02849235013127327, -0.00006368917092913762, -0.01454385556280613, -0.02192635089159012, 0.031673286110162735, 0.005111612379550934, 0.05807336047291756, 0.05616820231080055, 0.06827957928180695, 0.02822018414735794, 0.004186674486845732, 0.00633635837584734, -0.029870187863707542, 0.030057301744818687, -0.00514563312754035, -0.05950223281979561, -0.014356741681694984, 0.025039246305823326, 0.04555374011397362, -0.0472547747194767, -0.013276584446430206, -0.03490525484085083, -0.059638313949108124, 0.009848996996879578, 0.026434095576405525, -0.009976575151085854, -0.04126712679862976, -0.04191352054476738, -0.03538154438138008, 0.05681459605693817, -0.018915517255663872, 0.06705483049154282, 0.01705288328230381, 0.03667433187365532, 0.10866216570138931, -0.018745414912700653, 0.02577069215476513, 0.03868155553936958, 0.07287237048149109, 0.0012693979078903794, -0.043750640004873276, 0.013633801601827145, 0.1048518493771553, 0.01898355968296528, -0.008904922753572464, -0.018643351271748543, 0.027488738298416138, 0.08580024540424347, 0.06028470769524574, 0.02230057865381241, -0.03980423882603645, -0.05715480074286461, -0.06110120564699173, 0.00015309322043322027, -0.003423334565013647, 0.023508314043283463, -0.01347220316529274, 0.02143305167555809, 0.009372707456350327, -0.024256769567728043, 0.020497480407357216, 0.028781525790691376, -0.06460534036159515, -0.05565788969397545, 0.032047513872385025, -0.010308276861906052, -0.023185117170214653, -0.08464354276657104, -0.04929601773619652, 0.011082247830927372, -0.0024601230397820473, -0.014824527315795422, 0.026536157354712486, 0.01854128949344158, -0.007488809991627932, -0.006923215463757515, -0.0010200898395851254, -0.008296801708638668, 0.011499001644551754, -0.012519623152911663, 0.008309559896588326, 0.008033141493797302, 0.046744462102651596, 0.024460894986987114, -0.0036976265255361795, -0.00999358482658863, 0.0020274219568818808, -0.00673610158264637, -0.07157958298921585, -0.0594341903924942, 0.0005980203859508038, -0.06712286919355392, -0.01951088011264801, 0.003944276832044125, 0.020939750596880913, -0.05616820231080055, -0.049091894179582596, 0.02202841266989708, 0.011720136739313602, 0.009253635071218014, 0.032421741634607315, -0.045996006578207016, -0.05957027152180672, -0.0029236553236842155, 0.006872184574604034, 0.04426095262169838, 0.0068849422968924046, -0.01553045678883791, -0.0055113560520112514, -0.03288102149963379, -0.052085716277360916, -0.030329467728734016, -0.03922588378190994, -0.0007139034569263458, -0.04735683649778366, 0.024443883448839188, 0.042559914290905, -0.02517532929778099, -0.025566568598151207, 0.033646486699581146, -0.023083055391907692, 0.012630190700292587, -0.037831034511327744, -0.029972249642014503, -0.018150052055716515, 0.04119908809661865, -0.07511773705482483, 0.00005076528759673238, -0.0077056922018527985, 0.02063356339931488, -0.031145965680480003, -0.03116297535598278, -0.022164495661854744, -0.05286819115281105, 0.026178941130638123, -0.011048227548599243, 0.05650840699672699, 0.057971298694610596, 0.05593005567789078, -0.06702081114053726, 0.00833932776004076, -0.023372231051325798, -0.018643351271748543, 0.00707205617800355, 0.012562149204313755, 0.04041660949587822, -0.03949804976582527, -0.008913427591323853, -0.00439717760309577, 0.00879435520619154, -0.004967024549841881, -0.0364702083170414, -0.034667108207941055, -0.012392045930027962, -0.0332382395863533, 0.0152072599157691, 0.019749024882912636, -0.04660838097333908, 0.04885374754667282, 0.036164019256830215, 0.009092036634683609, 0.05868573486804962, 0.003391440026462078, -0.014773495495319366, 0.03356143459677696, 0.06045481190085411, -0.005838805343955755, -0.020871708169579506, -0.0073442221619188786, 0.0005836678901687264, 0.032319679856300354, 0.0055666398257017136, -0.013540244661271572, -0.11199619621038437, 0.005064833909273148, -0.015266796573996544, -0.01615133509039879, -0.055249642580747604, 0.032898031175136566, 0.00440993532538414, -0.014569371938705444, -0.009908533655107021, 0.05528366193175316, -0.0608290396630764, -0.01661911979317665, 0.05831150710582733, 0.008598735556006432, 0.012306993827223778, -0.024358833208680153, 0.002394207753241062, 0.002938539255410433, -0.07477753609418869, 0.008828375488519669, -0.0015979105373844504, 0.07164762914180756, -0.017554689198732376, -0.013200038112699986, 0.044669199734926224, 0.023712439462542534, 0.0688239112496376, 0.06487750262022018, -0.02929183654487133, 0.006463936064392328, -0.0163639634847641, -0.03946403041481972, -0.023593366146087646, 0.0191876832395792, 0.01769077219069004, 0.021960372105240822, -0.04385270178318024, -0.027828944846987724, -0.059264086186885834, 0.03670835122466087, 0.015215764753520489, 0.0360279381275177, -0.07709094136953354, 0.04310424625873566, -0.08933839946985245, -0.043274350464344025, 0.03121400624513626, 0.02277687005698681, 0.012587664648890495, -0.005528366193175316, 0.009151572361588478, 0.04970426484942436, 0.040484651923179626, 0.04034856706857681, 0.03612999990582466, 0.004401430021971464, -0.050112515687942505, 0.005039318464696407, 0.04517950862646103, 0.05130323767662048, -0.012128384783864021, -0.05354860797524452, 0.021313978359103203, -0.01923871412873268, -0.015947209671139717, -0.0013672075001522899, -0.012485602870583534, -0.0024877649266272783, 0.04405682533979416, 0.00874332431703806, 0.030499571934342384, -0.040756817907094955, 0.029955239966511726, -0.030805757269263268, 0.01485854759812355, 0.011320393532514572, 0.0012683348031714559, 0.0030150858219712973, -0.009831986390054226, -0.013191532343626022, 0.003317019669339061, 0.02544749528169632, 0.040008362382650375, 0.01202632300555706, -0.05164344608783722, -0.045621778815984726, 0.012630190700292587, -0.050384681671857834, 0.02138201892375946, -0.031179985031485558, 0.0046693431213498116, -0.03233668953180313, -0.008543452247977257, -0.04817333444952965, 0.015692055225372314, 0.05746098980307579, 0.022385630756616592, -0.04106300324201584, -0.014909578487277031, 0.0496022030711174, -0.017979947850108147, 0.020616553723812103, 0.044499095529317856, 0.001209861715324223, 0.029325857758522034, 0.0035381545312702656, 0.011847713962197304, -0.03417380899190903, 0.02218150720000267, 0.005932362284511328, -0.008352085947990417, -0.041505273431539536, -0.06906205415725708, -0.008198992349207401, -0.05596407875418663, 0.059638313949108124, -0.03670835122466087, -0.012732252478599548, -0.0037358999252319336, -0.013353130780160427, -0.019629953429102898, -0.04902385175228119, 0.09716316312551498, -0.03497329726815224, 0.008164972066879272, -0.04133516922593117, 0.00914306752383709, -0.007582366932183504, 0.018643351271748543, 0.021075833588838577, 0.011090753600001335, -0.043274350464344025, 0.03325524926185608, 0.017333554103970528, -0.03459906950592995, -0.04099496081471443, 0.007008267566561699, -0.017724793404340744, -0.020225316286087036, 0.029632043093442917, 0.022198516875505447, 0.011762662790715694, 0.02634904347360134, 0.041505273431539536, -0.0217562485486269, 0.026655230671167374, 0.03121400624513626, -0.07246412336826324, -0.03398669511079788, 0.05228983983397484, 0.03970217704772949, -0.006634039338678122, 0.05957027152180672, -0.014152618125081062, 0.029802147299051285, -0.000023821145077818073, 0.03983825817704201, 0.0044609662145376205, 0.03929392620921135, -0.07504969835281372, -0.020140264183282852, 0.06634039431810379, 0.02379748970270157, -0.015496435575187206, 0.045043427497148514, -0.04119908809661865, 0.06518369168043137, -0.009602347388863564, 0.01737608015537262, 0.0015915315598249435, 0.02437584288418293, -0.04793518781661987, 0.07906414568424225, 0.032098546624183655, 0.05443314462900162, -0.038579490035772324, -0.010223224759101868, -0.02794801816344261, -0.014696949161589146, -0.010503895580768585, -0.054229021072387695, 0.05018055438995361, 0.025787701830267906, -0.011260856874287128, 0.014118596911430359, -0.053480565547943115, -0.04858158156275749, -0.014773495495319366, -0.09233222156763077, -0.0018594447756186128, -0.027709873393177986, 0.05297025293111801, 0.05681459605693817, 0.007361232303082943, -0.05868573486804962, -0.05671253427863121, -0.05875377729535103, 0.021943362429738045, 0.050963032990694046, -0.015760095790028572, -0.060420792549848557, -0.010180698707699776, -0.0072676753625273705, -0.0416073352098465, 0.009432243183255196, 0.03148617222905159, -0.054229021072387695, 0.031622257083654404, -0.030329467728734016, -0.006425662897527218, 0.0030533592216670513, -0.04004238173365593, 0.03922588378190994, -0.02966606430709362, -0.07831569015979767, 0.033816590905189514, 0.02789698727428913, 0.01876242458820343, 0.00919409841299057, -0.0059068468399345875, -0.04283208027482033, -0.02871348336338997, 0.05092900991439819, -0.02485213242471218, 0.06164553761482239, 0.02452893555164337, 0.02272583730518818, -0.04181145876646042, 0.020616553723812103, -0.03366349637508392, -0.021075833588838577, -0.07709094136953354, -0.01125235203653574, -0.02372944913804531, 0.0025260380934923887, -0.022385630756616592, 0.030720707029104233, -0.011473486199975014, -0.10213018953800201, 0.006174759939312935, 0.014475814066827297, -0.01791190728545189, 0.04827539622783661, -0.01200080756098032, -0.00673610158264637, -0.04014444351196289, -0.008947447873651981, 0.013302099891006947, -0.015147723257541656, 0.035415563732385635, 0.037660934031009674, 0.030227405950427055, 0.01480751670897007, -0.018133042380213737, -0.005005297716706991, 0.009160078130662441, -0.013302099891006947, 0.029155753552913666, -0.06334657222032547, 0.013616790995001793, -0.08811365067958832, 0.03240473195910454, 0.027301624417304993, 0.018184073269367218, 0.05286819115281105, -0.07532186806201935, 0.04082486033439636, 0.045996006578207016, -0.04620013013482094, -0.05426304042339325, -0.023338211700320244, -0.002993823029100895, -0.0860724076628685, -0.017171956598758698, 0.015394373796880245, -0.050214577466249466, 0.02277687005698681, 0.0369805172085762, -0.03126503899693489, -0.015836643055081367, 0.03058462403714657, -0.027352655306458473, 0.06746307760477066, 0.05371870845556259, -0.022113464772701263, 0.02490316331386566, -0.01652556285262108, 0.06253007799386978, 0.010410338640213013, 0.06419709324836731, -0.0025281645357608795, 0.03106091357767582, -0.0026727523654699326, -0.033323291689157486, -0.02048047073185444, 0.06746307760477066, 0.007794996257871389, -0.02116088569164276, 0.02068459428846836, 0.023814501240849495, -0.024205738678574562, -0.05678057298064232, -0.019306756556034088, 0.03413978964090347, 0.04293414205312729, -0.016287418082356453, -0.0476970449090004, 0.0038847404066473246, 0.029206784442067146, 0.07777135819196701, 0.03527948260307312, -0.027386676520109177, -0.002166694262996316, -0.04266197606921196, -0.01232400443404913, -0.022912951186299324, 0.01593870483338833, -0.024954194203019142, -0.08110538870096207, 0.002587700728327036, -0.06947030127048492, -0.015377363190054893, 0.040382590144872665, 0.05293623358011246, 0.0006697828648611903, 0.003017212264239788, 0.060965120792388916, -0.01341266743838787, 0.04667642340064049, -0.01280029397457838, -0.010376318357884884, 0.018150052055716515, -0.018354175612330437, -0.014178133569657803, 0.04500940814614296, -0.01629592292010784, -0.006987004540860653, -0.03854547068476677, 0.029172763228416443, -0.014867052435874939, 0.05365066975355148, -0.01923871412873268, -0.03405473753809929, 0.0095938416197896, -0.016593603417277336, 0.06804142892360687, -0.014977619983255863, -0.0453496128320694, 0.032421741634607315, 0.02046346105635166, 0.04409084841609001, -0.03459906950592995, 0.04126712679862976, -0.04759497940540314, 0.03609598055481911, 0.032795969396829605, -0.044022805988788605, -0.0032681149896234274, -0.022453673183918, 0.002221978036686778, 0.004592796787619591, 0.006991256959736347, 0.032795969396829605, -0.006565998308360577, -0.017291028052568436, 0.031333077698946, -0.010104152373969555, -0.019578922539949417, -0.05137128010392189, 0.026740282773971558, 0.053106337785720825, -0.00884538609534502, -0.013540244661271572, 0.002730162348598242, -0.01934077776968479, -0.02303202450275421, -0.04507744684815407, 0.011890240013599396, 0.030482560396194458, -0.01961294189095497, -0.010333792306482792, -0.02866245247423649, -0.00634911609813571, -0.01806499995291233, -0.0011790303979068995, -0.06035275012254715, 0.11478589475154877, 0.0024941437877714634, -0.017826855182647705, 0.05024859681725502, -0.0056134182959795, 0.0364702083170414, 0.012970398180186749, 0.0011418202193453908, -0.009041004814207554, 0.023185117170214653, -0.01232400443404913, 0.01454385556280613, 0.023763470351696014, 0.03192844241857529, 0.05555582791566849, -0.028730494901537895, -0.012638695538043976, -0.0002039913961198181, -0.04293414205312729, 0.00866252463310957, -0.006429915316402912, -0.011516012251377106, -0.0785878524184227, 0.0011705252109095454, -0.0059068468399345875, -0.062359970062971115, -0.00019349281501490623, -0.04609806835651398, -0.005923856981098652, 0.015113702975213528, -0.005617670714855194, 0.048615600913763046, 0.0320645235478878, -0.013157512061297894, 0.03388463333249092, -0.010172193869948387, 0.06304038316011429, 0.029529981315135956, 0.06681668758392334, -0.005528366193175316, 0.00881987065076828, -0.005821795202791691, -0.04790116846561432, 0.014263184741139412, 0.004101622384041548, -0.028475338593125343, 0.01662762463092804, 0.03510937839746475, -0.04164135456085205, -0.021296968683600426, 0.016176849603652954, 0.0023070296738296747, 0.039906300604343414, 0.0014820274664089084, 0.02422275021672249, -0.001283218851312995, 0.00380819384008646, -0.016593603417277336, -0.032421741634607315, 0.022538723424077034, 0.053786750882864, 0.049534160643815994, -0.02527739107608795, -0.02704646810889244, -0.10178998112678528, -0.044499095529317856, 0.005911099258810282, -0.003778425743803382, 0.0013746495824307203, -0.04249187558889389, -0.021211916580796242, 0.04014444351196289, -0.007633398286998272, 0.02497120574116707, 0.03335731104016304, 0.054331082850694656, 0.00633635837584734, 0.04191352054476738, 0.05062282457947731, 0.014305710792541504, -0.004335514735430479, -0.07865589112043381, 0.04218568652868271, 0.008126698434352875, -0.04266197606921196, 0.03789907693862915, 0.036061957478523254, 0.051235198974609375, -0.011890240013599396, 0.01194977667182684, 0.03330628201365471, 0.025515535846352577, -0.027352655306458473, -0.0004327009664848447, 0.012766273692250252, -0.03356143459677696, -0.05831150710582733, -0.06654451787471771, -0.021943362429738045, 0.011124773882329464, -0.02335522137582302, 0.04082486033439636, 0.0416073352098465, 0.02138201892375946 ]
21,071
sortedcontainers.sorteddict
keys
Return new sorted keys view of the sorted dict's keys. See :class:`SortedKeysView` for details. :return: new sorted keys view
def keys(self): """Return new sorted keys view of the sorted dict's keys. See :class:`SortedKeysView` for details. :return: new sorted keys view """ return SortedKeysView(self)
(self)
[ -0.03894851729273796, -0.043783038854599, -0.08334438502788544, -0.021431898698210716, 0.030760478228330612, 0.042250972241163254, 0.016299478709697723, -0.005277115851640701, 0.05518841743469238, -0.011107477359473705, -0.01494615338742733, -0.052566882222890854, 0.04429372772574425, 0.006698532495647669, -0.028990089893341064, -0.00020055167260579765, 0.019423190504312515, 0.007451798301190138, -0.057197123765945435, -0.027134587988257408, -0.0020565856248140335, -0.04238715395331383, 0.06407439708709717, -0.009124303236603737, -0.0528392493724823, 0.004736636765301228, -0.018129445612430573, -0.045859839767217636, 0.07980360835790634, 0.008158250711858273, -0.07428817451000214, 0.0026704759802669287, 0.008039089851081371, 0.012282061390578747, -0.045961976051330566, -0.06482341140508652, 0.05345207452774048, -0.021959610283374786, 0.05828659608960152, 0.0526009276509285, 0.0174825731664896, -0.008239110000431538, -0.015507911331951618, -0.07217732816934586, 0.021448921412229538, 0.04139982536435127, 0.07081548869609833, 0.017397459596395493, 0.08007597923278809, 0.010979805141687393, 0.04660884663462639, -0.032156359404325485, 0.00825613271445036, -0.025228017941117287, -0.04797068610787392, -0.01675058715045452, 0.056141700595617294, -0.006690021138638258, -0.0334671288728714, 0.020053040236234665, -0.02830917201936245, -0.015252566896378994, 0.03581629693508148, -0.009966939687728882, 0.008247621357440948, -0.04221692681312561, 0.0007952911546453834, -0.010698926635086536, -0.008554033935070038, -0.01147347129881382, -0.05375848710536957, -0.005323928780853748, 0.027100542560219765, 0.04623434320092201, -0.03925493359565735, 0.021857472136616707, -0.059103697538375854, -0.013482179492712021, 0.008345503360033035, -0.04725572094321251, -0.0029875284526497126, -0.04347662627696991, 0.0032577677629888058, 0.050387945026159286, 0.035407744348049164, 0.009490297175943851, 0.032786209136247635, -0.03135628253221512, 0.05767376720905304, 0.059648431837558746, -0.04197860509157181, 0.04797068610787392, -0.032037198543548584, 0.0065580932423472404, -0.026674969121813774, 0.006455955095589161, -0.01516745239496231, 0.0038216530811041594, -0.015363216400146484, 0.015933485701680183, 0.024581145495176315, 0.04160409793257713, 0.008417850360274315, 0.04463418573141098, -0.043204255402088165, -0.04167219251394272, -0.03072643280029297, -0.005213279742747545, -0.013482179492712021, 0.02536420151591301, -0.024036411195993423, 0.05767376720905304, 0.08171018213033676, 0.05113695561885834, 0.029398640617728233, -0.022708620876073837, 0.024666260927915573, -0.009226441383361816, 0.046779077500104904, 0.0003242340753786266, -0.03009658306837082, 0.024359846487641335, 0.008047601208090782, 0.0435447171330452, -0.05229451507329941, 0.00205126591026783, 0.00652404734864831, -0.03031788021326065, 0.01148198265582323, 0.019338075071573257, 0.022657550871372223, 0.01892952434718609, -0.04776640981435776, -0.003693981096148491, 0.06012507528066635, -0.007792257238179445, 0.09076639264822006, 0.04065081477165222, 0.05076244845986366, 0.12270145118236542, 0.0027449512854218483, 0.012111831456422806, 0.0633934810757637, 0.08007597923278809, 0.008711496368050575, -0.03261597827076912, 0.009303044527769089, 0.08586377650499344, 0.029926352202892303, -0.0030577480792999268, 0.018691202625632286, 0.01663142628967762, 0.06972602009773254, 0.04997939243912697, -0.012537405826151371, -0.013882218860089779, -0.05430322140455246, -0.07517336308956146, 0.0007926312973722816, -0.0031258398666977882, 0.0032790466211736202, -0.00937113631516695, 0.026674969121813774, -0.030573224648833275, -0.0034067186061292887, 0.012792750261723995, 0.04017417132854462, -0.04105936363339424, -0.03253086656332016, 0.02337251603603363, -0.010239306837320328, 0.02156808227300644, -0.07333488762378693, 0.0014129051705822349, 0.0134651567786932, -0.007877372205257416, -0.023951295763254166, 0.05123909190297127, -0.00347481039352715, 0.010937248356640339, 0.06288278847932816, 0.00914983730763197, -0.02737290970981121, 0.004549384582787752, 0.01872524991631508, 0.015448330901563168, 0.016520777717232704, 0.044055406004190445, 0.012724658474326134, -0.013652409426867962, -0.03011360578238964, -0.009924381971359253, 0.013337484560906887, -0.023832134902477264, -0.0518178716301918, -0.0045621516183018684, -0.0800078809261322, -0.04749404266476631, -0.03317773714661598, 0.0359865240752697, -0.030556201934814453, -0.01758471131324768, -0.01436737272888422, -0.013541759923100471, 0.023951295763254166, 0.021636174991726875, -0.0277984831482172, -0.04473632201552391, 0.031952083110809326, 0.015661118552088737, 0.07442435622215271, -0.04797068610787392, -0.01721871830523014, -0.009405181743204594, -0.011745838448405266, -0.04538319632411003, -0.019559374079108238, -0.01020526047796011, -0.006660230923444033, -0.034897055476903915, 0.06097622215747833, 0.06383607536554337, 0.0015810067998245358, -0.03659934923052788, 0.011133012361824512, -0.0289390217512846, 0.020053040236234665, -0.05750354006886482, -0.07483290880918503, -0.06877273321151733, 0.05375848710536957, -0.03591843321919441, -0.04197860509157181, -0.02022326923906803, 0.03144139423966408, -0.04946870356798172, -0.012579962611198425, -0.019848763942718506, -0.009064722806215286, 0.021602127701044083, -0.021244646981358528, 0.09280914813280106, 0.07210922986268997, 0.03734835982322693, -0.04664289578795433, 0.020580751821398735, -0.029415665194392204, -0.008885982446372509, 0.02946673333644867, 0.011856487020850182, 0.0007389025995507836, -0.08681706339120865, -0.008588080294430256, -0.0060516600497066975, 0.0017065511783584952, -0.017550665885210037, -0.044055406004190445, -0.0034343809820711613, 0.008928539231419563, -0.011762861162424088, -0.0019938135519623756, 0.057537585496902466, -0.08082498610019684, 0.025874890387058258, 0.06564050912857056, -0.009354113601148129, 0.074492447078228, 0.006962388288229704, -0.023627860471606255, 0.01819753833115101, 0.03283727914094925, -0.0006452763336710632, -0.07803322374820709, -0.016861235722899437, -0.0004630775365512818, 0.013780081644654274, -0.007779490202665329, -0.006996434181928635, -0.06509577482938766, 0.03659934923052788, -0.0030832826159894466, -0.0410253182053566, -0.0714964047074318, 0.041297685354948044, -0.020053040236234665, 0.026385579258203506, -0.036054614931344986, -0.00914983730763197, -0.031032845377922058, -0.03779095783829689, 0.06053362414240837, 0.03908470273017883, 0.006098473444581032, -0.03714408725500107, 0.014299280941486359, -0.0009527534712105989, -0.07626283168792725, -0.031203074380755424, 0.005370742175728083, 0.08674897253513336, 0.031543534249067307, -0.0044429912231862545, 0.03375651687383652, 0.022487321868538857, 0.05093267932534218, 0.03935706987977028, -0.0004479164781514555, 0.023236332461237907, -0.022657550871372223, -0.024070456624031067, -0.05893346667289734, 0.01840181276202202, 0.01383114978671074, 0.00439617782831192, -0.025925958529114723, -0.06536814570426941, -0.030028490349650383, 0.030913684517145157, 0.017635779455304146, 0.06870464235544205, -0.06070385500788689, 0.03336498886346817, -0.09383052587509155, -0.039323024451732635, 0.010545720346271992, -0.018776318058371544, 0.04085509106516838, -0.023219309747219086, 0.009226441383361816, 0.036156754940748215, -0.0006442124140448868, -0.02798573672771454, 0.037416454404592514, 0.02282778173685074, -0.06877273321151733, 0.022861827164888382, 0.08082498610019684, 0.030573224648833275, -0.008817889727652073, -0.02471732906997204, 0.02422366291284561, -0.03799523413181305, -0.018180515617132187, -0.011090454645454884, -0.06352966278791428, 0.0007202837150543928, 0.021397853270173073, 0.003585459664463997, 0.03676958009600639, -0.0269303135573864, 0.03392674773931503, -0.03728026896715164, 0.020172201097011566, 0.03649721294641495, 0.050898633897304535, 0.010000985115766525, 0.011133012361824512, -0.005966545548290014, -0.007336893118917942, 0.030437041074037552, 0.04031035676598549, 0.008039089851081371, -0.06877273321151733, -0.0563800223171711, -0.008396572433412075, -0.02977314591407776, 0.010749995708465576, -0.04967297986149788, 0.003862082725390792, 0.0008649788214825094, -0.016716541722416878, -0.017618756741285324, -0.00038541032699868083, 0.05168168991804123, 0.000883065746165812, -0.03578224778175354, -0.007034735754132271, 0.07088357955217361, -0.029756123200058937, 0.02747504785656929, 0.021517014130949974, 0.0025640823878347874, 0.06870464235544205, 0.03513537719845772, -0.04442990943789482, 0.005860151723027229, 0.05062626674771309, -0.015227031894028187, 0.02138083055615425, -0.015218520537018776, -0.028581539168953896, -0.0465407557785511, -0.031322237104177475, 0.039935849606990814, -0.027338864281773567, 0.009549877606332302, 0.006481489632278681, -0.01732085645198822, 0.003836548188701272, -0.0566183440387249, 0.11398570239543915, -0.0028279381804168224, -0.013022559694945812, -0.03443743661046028, 0.016597380861639977, 0.007107083220034838, 0.03287132456898689, -0.00936262495815754, -0.004766426980495453, -0.06775135546922684, -0.005706945434212685, 0.01394179929047823, -0.00752840144559741, -0.030062537640333176, 0.03176483139395714, -0.02274266630411148, -0.025755729526281357, 0.009694572538137436, 0.010281864553689957, 0.03768882155418396, 0.005706945434212685, -0.007902906276285648, -0.04272761568427086, 0.02453007735311985, 0.06506173312664032, -0.007464565336704254, -0.034045908600091934, 0.029432687908411026, 0.025806797668337822, -0.00041360457544215024, 0.039527300745248795, 0.00167676096316427, 0.03523751348257065, 0.01342259906232357, -0.001892739674076438, 0.003351394087076187, 0.060874082148075104, 0.005766525864601135, -0.029858261346817017, 0.07980360835790634, -0.01441844180226326, -0.02548336237668991, 0.04109341278672218, -0.02180640399456024, 0.061316680163145065, 0.011022362858057022, 0.024359846487641335, 0.008298690430819988, 0.056277886033058167, -0.024802444502711296, 0.09274104982614517, 0.023321447893977165, 0.04180837422609329, -0.047630224376916885, 0.0014469510642811656, -0.009064722806215286, -0.021534036844968796, 0.01499722246080637, -0.0543372705578804, 0.022402208298444748, 0.027287796139717102, 0.012733169831335545, 0.005570761859416962, -0.027645276859402657, -0.04977511614561081, -0.02475137449800968, -0.05011557787656784, 0.003655679291114211, -0.032684072852134705, 0.029228411614894867, 0.05746949091553688, 0.005234558135271072, -0.030181696638464928, -0.054269175976514816, -0.07932696491479874, 0.03127116709947586, 0.0389825664460659, -0.005004748702049255, -0.07115595042705536, -0.01646970771253109, -0.02999444492161274, -0.05277115851640701, -0.0018352871993556619, -0.004204669501632452, -0.022044725716114044, 0.007081548683345318, -0.03329689800739288, -0.005085607524961233, -0.042999982833862305, -0.037961188703775406, 0.021823426708579063, -0.021431898698210716, -0.05045603588223457, 0.024274732917547226, 0.05532459914684296, -0.002515141386538744, 0.03387567773461342, -0.0011979903792962432, -0.05655025318264961, 0.013124697841703892, 0.0225213672965765, 0.008596591651439667, 0.038778290152549744, 0.047732364386320114, 0.048038776963949203, -0.028802838176488876, 0.03455659747123718, -0.030266812071204185, -0.03190101683139801, -0.06332539021968842, -0.002674731658771634, -0.0359865240752697, 0.00398975471034646, -0.02262350544333458, 0.033416058868169785, -0.027730392292141914, -0.08579568564891815, -0.0077369324862957, -0.017652804031968117, 0.019712580367922783, 0.023661905899643898, 0.03649721294641495, 0.013967333361506462, -0.01458016037940979, -0.0005585656617768109, 0.052464745938777924, -0.017397459596395493, 0.013490690849721432, 0.02662389911711216, 0.0435447171330452, 0.016759097576141357, -0.01819753833115101, 0.029075205326080322, 0.03191803768277168, -0.03704194724559784, 0.03591843321919441, -0.06815990805625916, 0.029909329488873482, -0.05021771416068077, 0.02536420151591301, 0.03251384198665619, -0.006970899645239115, 0.030607271939516068, -0.061623092740774155, 0.04347662627696991, 0.06203164532780647, -0.04592793062329292, -0.06380203366279602, -0.05317970737814903, -0.0226405281573534, -0.056686438620090485, -0.00700068986043334, 0.04592793062329292, -0.03765477240085602, 0.014409930445253849, 0.03986775875091553, -0.004366387613117695, -0.0072943358682096004, 0.02146594412624836, -0.021738313138484955, 0.04419158771634102, 0.014205655083060265, -0.020802048966288567, 0.02349167689681053, -0.03413102403283119, 0.03438636660575867, 0.022691598162055016, 0.04218288138508797, 0.010120145976543427, 0.03775691241025925, -0.023219309747219086, -0.0018469905480742455, -0.010664880275726318, 0.0488218329846859, -0.03433529660105705, -0.00006869027856737375, -0.011720303446054459, 0.04020821675658226, -0.024972673505544662, -0.05852491408586502, 0.00536648603156209, 0.008268900215625763, 0.06397226452827454, 0.011354310438036919, -0.05491605028510094, 0.014741878025233746, 0.029653985053300858, 0.06737685203552246, 0.00948178581893444, -0.009405181743204594, -0.012018205597996712, -0.04715358093380928, -0.02243625372648239, -0.017448527738451958, 0.016844213008880615, -0.05634597688913345, -0.05954629182815552, 0.007549680303782225, -0.01083511020988226, -0.02958589419722557, 0.02558550052344799, 0.018061354756355286, 0.008749797940254211, 0.033824607729911804, 0.03707599267363548, -0.020495636388659477, 0.04507678374648094, 0.0008564673480577767, 0.010043542832136154, 0.0054686241783201694, -0.061010267585515976, -0.009098769165575504, 0.05239665135741234, -0.019831741228699684, 0.01090320199728012, -0.013626874424517155, 0.054269175976514816, -0.03157757967710495, 0.011269195936620235, 0.003921662922948599, -0.03392674773931503, 0.01083511020988226, 0.010196749120950699, 0.0578780435025692, -0.030266812071204185, -0.061010267585515976, 0.019287006929516792, 0.03561202064156532, 0.044770367443561554, -0.012665078043937683, 0.024240685626864433, -0.04160409793257713, 0.010630834847688675, 0.01575474441051483, -0.025925958529114723, -0.003076898865401745, -0.031730785965919495, -0.009600945748388767, 0.00520902406424284, 0.01199267152696848, -0.022368161007761955, 0.009754152968525887, -0.019661512225866318, 0.017005931586027145, -0.02830917201936245, -0.016180317848920822, -0.030573224648833275, 0.007873116061091423, 0.05443940684199333, -0.04109341278672218, -0.014741878025233746, 0.011652211658656597, -0.02461519092321396, -0.03537369892001152, -0.07878223061561584, -0.010086100548505783, -0.003391823498532176, -0.013780081644654274, -0.019525328651070595, -0.043953265994787216, -0.01236717589199543, -0.010707437992095947, -0.002276820130646229, -0.06434676796197891, 0.06710448116064072, 0.02114250883460045, -0.04238715395331383, 0.05127313733100891, -0.03830164670944214, 0.019508305937051773, 0.016086691990494728, -0.01988280937075615, -0.014512068592011929, -0.02757718600332737, -0.027645276859402657, 0.03642912209033966, 0.025193972513079643, 0.02296396531164646, 0.05365635082125664, -0.06451699882745743, 0.0024023642763495445, 0.04429372772574425, -0.01896357163786888, -0.01025632955133915, -0.026589853689074516, -0.03765477240085602, -0.03775691241025925, 0.010239306837320328, 0.001185223227366805, -0.07027075439691544, 0.026249395683407784, -0.047834500670433044, 0.011158546432852745, 0.0031109447591006756, -0.02178938128054142, 0.03302453085780144, 0.03379056230187416, -0.0032513842452317476, 0.008468919433653355, -0.012665078043937683, 0.033722471445798874, 0.02272564359009266, 0.03745049983263016, 0.007851837202906609, -0.027287796139717102, -0.007779490202665329, 0.023389538750052452, 0.009703083895146847, -0.01558451447635889, -0.016095202416181564, 0.02621534839272499, 0.03052215650677681, -0.01499722246080637, -0.06169118359684944, 0.023304423317313194, -0.003994010388851166, 0.030590249225497246, -0.02483648993074894, 0.04031035676598549, 0.022929919883608818, 0.018044332042336464, -0.028819860890507698, 0.0008867895230650902, 0.060056980699300766, 0.021840449422597885, 0.03659934923052788, -0.014375885017216206, -0.011133012361824512, -0.13849875330924988, -0.04524701088666916, 0.032037198543548584, -0.033943768590688705, -0.028462378308176994, -0.03833569213747978, 0.013711989857256413, 0.0025938726030290127, -0.01801028475165367, -0.023661905899643898, 0.05066031217575073, 0.06271256506443024, -0.000290720141492784, 0.017022954300045967, 0.02977314591407776, 0.0008069943869486451, 0.03338201344013214, -0.06257637590169907, 0.036905765533447266, 0.0029109250754117966, -0.000562289438676089, 0.017618756741285324, 0.010332932695746422, 0.043714944273233414, 0.003921662922948599, -0.035850342363119125, -0.006072938907891512, 0.01978067308664322, -0.05716307833790779, 0.045961976051330566, -0.0006005910690873861, -0.010460604913532734, -0.04977511614561081, -0.08627232909202576, -0.044259678572416306, 0.018759295344352722, -0.0009697764180600643, 0.007315614260733128, 0.07027075439691544, -0.0036386563442647457 ]
21,072
sortedcontainers.sorteddict
peekitem
Return ``(key, value)`` pair at `index` in sorted dict. Optional argument `index` defaults to -1, the last item in the sorted dict. Specify ``index=0`` for the first item in the sorted dict. Unlike :func:`SortedDict.popitem`, the sorted dict is not modified. If the `index` is out of range, raises :exc:`IndexError`. Runtime complexity: `O(log(n))` >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> sd.peekitem() ('c', 3) >>> sd.peekitem(0) ('a', 1) >>> sd.peekitem(100) Traceback (most recent call last): ... IndexError: list index out of range :param int index: index of item (default -1) :return: key and value pair :raises IndexError: if `index` out of range
def peekitem(self, index=-1): """Return ``(key, value)`` pair at `index` in sorted dict. Optional argument `index` defaults to -1, the last item in the sorted dict. Specify ``index=0`` for the first item in the sorted dict. Unlike :func:`SortedDict.popitem`, the sorted dict is not modified. If the `index` is out of range, raises :exc:`IndexError`. Runtime complexity: `O(log(n))` >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> sd.peekitem() ('c', 3) >>> sd.peekitem(0) ('a', 1) >>> sd.peekitem(100) Traceback (most recent call last): ... IndexError: list index out of range :param int index: index of item (default -1) :return: key and value pair :raises IndexError: if `index` out of range """ key = self._list[index] return key, self[key]
(self, index=-1)
[ 0.031826797872781754, 0.03362167999148369, -0.08541424572467804, -0.0377480648458004, 0.048295315355062485, -0.013544892892241478, 0.026775218546390533, -0.0032520696986466646, 0.05558587238192558, -0.060803987085819244, -0.032122861593961716, 0.038377199321985245, -0.013452373445034027, 0.017976589500904083, -0.015830131247639656, 0.050774846225976944, 0.023555532097816467, 0.047111064195632935, -0.04507562890648842, 0.049553584307432175, 0.015210248529911041, -0.020964978262782097, 0.014405326917767525, 0.01904056780040264, -0.02139056846499443, -0.024184666574001312, 0.04415043070912361, -0.006975990254431963, 0.05536382645368576, 0.007364572957158089, -0.007526482921093702, -0.02015080489218235, -0.01063052099198103, 0.0187815111130476, -0.012804735451936722, 0.029143724590539932, 0.00662904093042016, -0.006231206003576517, 0.03904334083199501, 0.043447282165288925, 0.015450800769031048, -0.021760648116469383, 0.035675618797540665, -0.030642544850707054, 0.015682099387049675, 0.059656742960214615, 0.015672847628593445, 0.030494512990117073, 0.01751399040222168, -0.0028681126423180103, 0.030550025403499603, 0.03933940455317497, 0.022278759628534317, -0.06598509848117828, -0.08008510619401932, -0.005528055597096682, 0.002403200836852193, -0.01867048814892769, -0.04170791059732437, 0.02118702605366707, -0.004100938327610493, -0.008553451858460903, -0.0010512558510527015, -0.04044964164495468, 0.009557291865348816, -0.019114583730697632, 0.025498446077108383, -0.05939768627285957, -0.04133782908320427, -0.021168522536754608, 0.02028033137321472, 0.020354347303509712, -0.058250442147254944, -0.016986628994345665, -0.03937641158699989, -0.012240364216268063, 0.01063052099198103, -0.016551785171031952, 0.024129154160618782, -0.013581900857388973, -0.019244110211730003, -0.010177173651754856, -0.016625801101326942, 0.005551185924559832, 0.005347642116248608, 0.038044124841690063, 0.059545718133449554, -0.011824025772511959, 0.00344404811039567, 0.08178746700286865, 0.003233565716072917, -0.0067816986702382565, 0.011435442604124546, 0.028403567150235176, -0.015515564009547234, -0.041078776121139526, 0.03852522745728493, -0.02633112482726574, 0.010871072299778461, 0.012240364216268063, -0.01512698084115982, 0.06150713935494423, -0.03382522612810135, -0.03297404199838638, -0.0013716054381802678, 0.007433963008224964, 0.010491740889847279, 0.04237405210733414, -0.012360639870166779, 0.006642919033765793, -0.01735670678317547, -0.04370633512735367, -0.05247721076011658, 0.010797056369483471, 0.026664195582270622, 0.04433546960353851, 0.01323957834392786, 0.010186426341533661, 0.03558310121297836, 0.002583614317700267, 0.012980522587895393, -0.02886616624891758, -0.033270105719566345, 0.013646665029227734, -0.06842761486768723, -0.042189013212919235, 0.03523152694106102, -0.044779565185308456, -0.035842157900333405, 0.04751814901828766, 0.03569412603974342, 0.012083080597221851, -0.03523152694106102, -0.001069181482307613, 0.012406900525093079, 0.025924038141965866, 0.06975989788770676, 0.02144608087837696, -0.07697644084692001, 0.017005132511258125, 0.0694638341665268, -0.025683486834168434, -0.01374843716621399, 0.043521296232938766, -0.016061430796980858, -0.054623667150735855, -0.04481657221913338, -0.030883096158504486, 0.062284305691719055, 0.029143724590539932, -0.01006614975631237, 0.02659017965197563, 0.0028126006945967674, 0.013711429201066494, 0.03926538676023483, -0.06580005586147308, 0.006171068176627159, -0.038266174495220184, -0.039672475308179855, -0.013683672994375229, 0.032048847526311874, -0.019022062420845032, 0.027293330058455467, -0.025590965524315834, -0.029587820172309875, 0.03889530897140503, 0.01129666343331337, 0.033233098685741425, 0.023166948929429054, 0.04133782908320427, -0.013082294724881649, 0.019669702276587486, -0.04052365571260452, -0.031068136915564537, -0.039450425654649734, -0.004198084119707346, -0.06998194754123688, 0.060878004878759384, 0.04670397564768791, -0.08149141073226929, 0.002000739797949791, 0.040745705366134644, -0.016746077686548233, -0.051959097385406494, -0.0022239438258111477, 0.056103985756635666, 0.02381458692252636, 0.06258036941289902, 0.027015769854187965, 0.06391265243291855, -0.016588794067502022, 0.0005672617699019611, 0.012147844769060612, -0.047148071229457855, -0.022907894104719162, 0.020613403990864754, 0.013739184476435184, 0.01755099929869175, 0.03267798200249672, 0.07061108201742172, -0.04170791059732437, -0.01619095914065838, 0.0012409213231876493, 0.011768513359129429, -0.0026923250406980515, -0.03141971305012703, -0.020742930471897125, -0.049701616168022156, -0.05732524394989014, 0.0455937385559082, -0.04385436698794365, -0.009187212213873863, 0.010306701995432377, -0.00008991764480015263, 0.000584609224461019, -0.02405513823032379, -0.005532681941986084, -0.032159868627786636, 0.03782207891345024, -0.01014016568660736, 0.07468195259571075, -0.09288984537124634, 0.043114207684993744, 0.019207103177905083, 0.07712447643280029, -0.009094692766666412, -0.01777304708957672, -0.02137206494808197, 0.0026483782567083836, 0.008784751407802105, 0.02242678962647915, 0.003383910283446312, 0.04596381634473801, -0.02135356143116951, 0.059582728892564774, 0.000041164064896292984, -0.013600405305624008, -0.07560715079307556, -0.019614189863204956, 0.035379558801651, -0.017319699749350548, 0.09414810687303543, 0.029791364446282387, 0.02766340970993042, -0.03025396168231964, 0.011962804943323135, -0.009242724627256393, 0.0007297496194951236, 0.0059675248339772224, 0.025627974420785904, 0.0030762820970267057, 0.06343154609203339, -0.01331359427422285, -0.0031803669407963753, 0.0188277717679739, -0.013961232267320156, -0.022241750732064247, -0.0774945542216301, -0.0059952805750072, -0.0015277325874194503, 0.003989914897829294, -0.047000039368867874, -0.008215755224227905, 0.012166349217295647, 0.003566636936739087, 0.04263310506939888, 0.04289216175675392, 0.008567330427467823, -0.014729145914316177, 0.08348983526229858, 0.05255122482776642, -0.011019104160368443, 0.0030554651748389006, -0.050885871052742004, 0.06694730371236801, 0.005537307821214199, -0.035842157900333405, 0.024073641747236252, -0.02361104264855385, 0.030846089124679565, 0.03660081699490547, -0.002796409884467721, -0.08541424572467804, 0.005250496324151754, -0.003104038070887327, 0.045889802277088165, 0.018078360706567764, -0.0352870374917984, 0.06768745929002762, 0.004198084119707346, 0.04100475832819939, 0.013045286759734154, -0.02503584697842598, -0.04622287303209305, -0.018550211563706398, 0.02762640081346035, -0.023148445412516594, 0.0020065223798155785, 0.03134569525718689, 0.04551972448825836, -0.004991441033780575, -0.009159456938505173, -0.039635464549064636, 0.023259468376636505, -0.0005756464088335633, 0.10221583396196365, 0.01649627462029457, 0.05769532546401024, -0.052070122212171555, -0.006258961744606495, -0.003619835712015629, -0.015876391902565956, 0.017032887786626816, 0.024184666574001312, -0.009908866137266159, -0.08030715584754944, -0.049664609134197235, 0.002021556720137596, -0.0528842955827713, 0.03354766592383385, -0.03391774371266365, 0.0033561543095856905, -0.034454360604286194, -0.06187721714377403, -0.00804921891540289, -0.0012270433362573385, -0.0911874771118164, 0.01870749518275261, 0.031123647466301918, 0.10495442152023315, -0.015626588836312294, -0.027163801714777946, -0.0038557611405849457, 0.04903547465801239, 0.022315766662359238, 0.05943469703197479, -0.003092473139986396, 0.0576213076710701, 0.01739371567964554, -0.021723641082644463, -0.0072951833717525005, -0.05751028284430504, 0.020983481779694557, -0.0020805380772799253, 0.04270712286233902, -0.012129341252148151, 0.013591153547167778, -0.0048942952416837215, 0.02366655506193638, -0.0249803364276886, 0.00033567327773198485, -0.010935835540294647, -0.05392051860690117, 0.04514964297413826, 0.0019174721091985703, 0.03032797761261463, 0.026978762820363045, -0.035712629556655884, 0.049553584307432175, 0.017301196232438087, -0.007369199302047491, -0.02392560988664627, -0.06761344522237778, -0.048406340181827545, -0.04877641797065735, -0.05062681436538696, -0.03734097629785538, 0.00997363030910492, -0.03119766339659691, 0.002325715497136116, 0.021834664046764374, -0.025387423112988472, -0.007734652142971754, 0.0007736965199001133, 0.028311047703027725, -0.059545718133449554, 0.02028033137321472, 0.07379376143217087, -0.02122403308749199, -0.017301196232438087, 0.017930330708622932, -0.024406712502241135, -0.012702963314950466, 0.04181893169879913, -0.016709068790078163, -0.000999791664071381, -0.020576395094394684, 0.000888767943251878, -0.011370678432285786, -0.009760835207998753, -0.06409769505262375, -0.0355645976960659, -0.010149418376386166, -0.04859137907624245, 0.023537026718258858, 0.013498633168637753, 0.047074053436517715, -0.05247721076011658, -0.06975989788770676, -0.03885830193758011, 0.10332606732845306, 0.028051992878317833, -0.04241105914115906, -0.01310079824179411, 0.07242447137832642, -0.008650598116219044, -0.00721191568300128, 0.01129666343331337, -0.012249616906046867, 0.006448627449572086, 0.012906506657600403, -0.04355830326676369, -0.006504139397293329, -0.031068136915564537, 0.01003839448094368, -0.0275338813662529, -0.08548825979232788, 0.06931580603122711, -0.02396261878311634, 0.010380716994404793, 0.005134847015142441, -0.10843316465616226, -0.05047878250479698, -0.019114583730697632, -0.04651893675327301, -0.04237405210733414, -0.00507008284330368, -0.00024141876201611012, -0.02649766020476818, -0.021853167563676834, 0.03406577557325363, -0.05247721076011658, -0.0024563996121287346, 0.015626588836312294, 0.021020490676164627, -0.01632973738014698, 0.0067215608432888985, -0.010306701995432377, 0.007637506350874901, 0.047037046402692795, 0.05647406354546547, 0.03358467295765877, 0.04818429425358772, 0.06639218330383301, 0.039820507168769836, 0.05236618593335152, 0.04551972448825836, -0.011342923156917095, 0.0786047875881195, -0.014849421568214893, 0.02775592915713787, -0.0008569643250666559, 0.04666696861386299, 0.006319099571555853, 0.024517737329006195, -0.07764258235692978, -0.09052133560180664, 0.018300408497452736, -0.036933887749910355, 0.006703056860715151, 0.005736225284636021, -0.009122448973357677, 0.02614608407020569, -0.07283155620098114, -0.059915799647569656, 0.008539574220776558, -0.0024378958623856306, 0.035953179001808167, -0.053328391164541245, -0.004253596067428589, -0.03652680292725563, -0.014895682223141193, -0.06032288447022438, -0.0678354874253273, -0.009344495832920074, 0.0016422257758677006, 0.06402367353439331, -0.00758662074804306, 0.04807326942682266, 0.029680339619517326, 0.0055234297178685665, -0.044742558151483536, 0.041078776121139526, 0.025683486834168434, -0.030864592641592026, 0.025961045175790787, -0.037192944437265396, 0.023592539131641388, -0.034472864121198654, 0.019355135038495064, 0.0581764280796051, -0.07904888689517975, -0.00376092828810215, 0.015839383006095886, 0.014063003472983837, -0.000877781247254461, -0.009483275935053825, 0.015719108283519745, 0.024610256776213646, -0.03499097377061844, 0.029569316655397415, -0.004917425569146872, 0.07712447643280029, -0.012277372181415558, -0.01331359427422285, -0.029143724590539932, 0.0013079982018098235, 0.03780357539653778, 0.015904147177934647, -0.07690242677927017, 0.02255631797015667, 0.021020490676164627, 0.05140398070216179, -0.008308274671435356, 0.006536521017551422, 0.015987414866685867, -0.013970484025776386, -0.02494332753121853, 0.04803626239299774, 0.038451213389635086, 0.04270712286233902, 0.0024517737329006195, 0.009400008246302605, -0.01886477880179882, -0.001691955141723156, 0.0005360363866202533, -0.015561823733150959, -0.009034554474055767, -0.0075218565762043, 0.014914185740053654, -0.05754729360342026, 0.019355135038495064, 0.0029837624169886112, -0.0227968692779541, 0.024684272706508636, -0.013230325654149055, -0.030401993542909622, 0.04803626239299774, -0.004688438959419727, -0.011953553184866905, 0.049590591341257095, -0.04163389280438423, 0.018642732873558998, -0.06813155114650726, 0.03628624975681305, -0.009714575484395027, -0.08511818200349808, -0.03506499156355858, -0.03304805979132652, 0.012888003140687943, -0.03240042179822922, -0.05399453267455101, 0.04526066780090332, -0.0006655640318058431, -0.006522643379867077, 0.05636303871870041, -0.01561733614653349, 0.052329178899526596, 0.029273252934217453, 0.005935142748057842, 0.01644076220691204, 0.027922464534640312, -0.024073641747236252, 0.002736272057518363, -0.01898505538702011, -0.024480728432536125, -0.04685200750827789, -0.03469491004943848, 0.027348842471837997, 0.018041353672742844, 0.022389782592654228, 0.03859924525022507, -0.016764581203460693, 0.03926538676023483, -0.011370678432285786, -0.0005629249499179423, -0.007683766074478626, -0.005241244565695524, 0.008109357208013535, 0.012083080597221851, 0.01754174754023552, 0.02264883741736412, 0.09066937118768692, -0.0017844749381765723, -0.0424850732088089, 0.02139056846499443, 0.002368505811318755, -0.009066936559975147, -0.03369569778442383, 0.009779338724911213, 0.017023636028170586, -0.084600068628788, 0.005000693257898092, 0.02392560988664627, 0.06261737644672394, -0.005754729267209768, -0.0024749035947024822, 0.01777304708957672, -0.052107129245996475, -0.004309108015149832, -0.01436831895262003, 0.03760003298521042, 0.04674098268151283, -0.006772446446120739, 0.06550399214029312, 0.002796409884467721, 0.003092473139986396, -0.036896880716085434, 0.019706709310412407, -0.0038904559332877398, -0.032233886420726776, -0.02882915735244751, -0.012221860699355602, 0.039561450481414795, -0.004764767829328775, -0.0070870136842131615, 0.0119905611500144, 0.027256323024630547, -0.039672475308179855, 0.0678354874253273, -0.04514964297413826, 0.03410278633236885, -0.022223247215151787, 0.048258308321237564, 0.031049631536006927, -0.09548039734363556, 0.0355645976960659, -0.02496183291077614, 0.0015543319750577211, 0.0030184572096914053, 0.0012894942192360759, -0.0013924224767833948, 0.057288236916065216, 0.008215755224227905, -0.10969143360853195, 0.04237405210733414, -0.010602764785289764, -0.007998333312571049, -0.053365398198366165, 0.033251602202653885, -0.03597168251872063, 0.04811027646064758, -0.03996853902935982, 0.0029444415122270584, 0.04685200750827789, 0.013498633168637753, -0.01877225935459137, 0.03125317767262459, 0.062025249004364014, -0.02244529500603676, 0.01517324149608612, -0.01184252928942442, -0.03885830193758011, 0.005467917770147324, -0.048369333148002625, -0.036989402025938034, 0.03911735489964485, -0.02007678896188736, -0.052070122212171555, 0.004903547465801239, 0.00005168095958651975, -0.0733126625418663, -0.05040476843714714, -0.04263310506939888, 0.06876068562269211, -0.02031734026968479, -0.0948142558336258, 0.05813941732048988, -0.006198823917657137, -0.0049544330686330795, 0.013202570378780365, -0.05144098773598671, 0.011453947052359581, 0.007202663458883762, -0.008567330427467823, -0.019577180966734886, -0.015219501219689846, 0.004484895616769791, -0.01768052577972412, -0.0032867644913494587, 0.08230558037757874, 0.024554744362831116, 0.0023708189837634563, 0.02784844860434532, -0.029125221073627472, 0.019447654485702515, 0.023055924102663994, -0.024314193055033684, -0.053365398198366165, 0.013396861962974072, 0.015395288355648518, -0.04755515977740288, -0.011444694362580776, 0.0005241822800599039, -0.07412683218717575, -0.04104176536202431, 0.007577368523925543, 0.03441735357046127, 0.0275338813662529, -0.034528374671936035, -0.009807094931602478, 0.022075215354561806, 0.059915799647569656, -0.0021938749123364687, -0.03776656836271286, 0.017153164371848106, -0.005269000306725502, 0.03167876601219177, -0.009677567519247532, -0.05162602663040161, -0.0426701158285141, 0.030550025403499603, -0.0017428409773856401, -0.037081919610500336, 0.015330525115132332, 0.02525789476931095, 0.00023563626746181399, 0.01517324149608612, -0.012554931454360485, 0.027922464534640312, -0.025442935526371002, -0.044483501464128494, 0.0017104591242969036, 0.04489059001207352, 0.029199237003922462, 0.004651430994272232, -0.005435536149889231, -0.05514177680015564, -0.1105056032538414, 0.0401165708899498, 0.01762501522898674, -0.056992173194885254, -0.001957949483767152, -0.030753569677472115, 0.026682699099183083, -0.009367626160383224, 0.022963404655456543, 0.008544200100004673, 0.06058194115757942, 0.05876855179667473, 0.025535454973578453, 0.0474071279168129, 0.011185639537870884, -0.02392560988664627, 0.028422070667147636, -0.029291756451129913, -0.029902387410402298, -0.044446494430303574, -0.029421284794807434, -0.018605723977088928, 0.038377199321985245, 0.017217928543686867, 0.011370678432285786, 0.05858351290225983, 0.0037701802793890238, -0.03543506935238838, -0.005925890989601612, 0.028014983981847763, -0.012379144318401814, 0.03280750662088394, -0.050996892154216766, -0.03277049958705902, -0.007882683537900448, 0.03228939697146416, -0.0727575421333313, 0.0007349538500420749, -0.014553358778357506, -0.005949020851403475 ]
21,073
sortedcontainers.sorteddict
pop
Remove and return value for item identified by `key`. If the `key` is not found then return `default` if given. If `default` is not given then raise :exc:`KeyError`. Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> sd.pop('c') 3 >>> sd.pop('z', 26) 26 >>> sd.pop('y') Traceback (most recent call last): ... KeyError: 'y' :param key: `key` for item :param default: `default` value if key not found (optional) :return: value for item :raises KeyError: if `key` not found and `default` not given
def pop(self, key, default=__not_given): """Remove and return value for item identified by `key`. If the `key` is not found then return `default` if given. If `default` is not given then raise :exc:`KeyError`. Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> sd.pop('c') 3 >>> sd.pop('z', 26) 26 >>> sd.pop('y') Traceback (most recent call last): ... KeyError: 'y' :param key: `key` for item :param default: `default` value if key not found (optional) :return: value for item :raises KeyError: if `key` not found and `default` not given """ if key in self: self._list_remove(key) return dict.pop(self, key) else: if default is self.__not_given: raise KeyError(key) return default
(self, key, default=<not-given>)
[ 0.051418814808130264, 0.04243915155529976, -0.06099463626742363, -0.026100637391209602, -0.019915474578738213, -0.0104048578068614, -0.00437339348718524, 0.025169136002659798, 0.07958737760782242, -0.05186593160033226, -0.026268307119607925, 0.02867157757282257, -0.02120094560086727, -0.011671697720885277, -0.030124718323349953, 0.08294077962636948, 0.03036690689623356, 0.033832088112831116, 0.0009885546751320362, -0.011792792938649654, 0.05462317541241646, -0.011848683468997478, 0.036794260144233704, 0.014745648950338364, -0.03083265759050846, -0.01006951741874218, 0.05276017263531685, -0.03232305869460106, 0.04370599240064621, 0.01193251833319664, 0.015053044073283672, -0.0034465508069843054, -0.06785047799348831, 0.04948129132390022, -0.02239326573908329, 0.0283921267837286, -0.018536854535341263, 0.030180606991052628, -0.01783823035657406, -0.014028393663465977, 0.007354194298386574, -0.011112798005342484, 0.051120731979608536, -0.04419036954641342, 0.03293784707784653, 0.043258871883153915, 0.022356005385518074, 0.07165099680423737, -0.0007341386517509818, 0.050748132169246674, 0.0538034550845623, 0.058386433869600296, -0.003434907179325819, -0.027777336537837982, -0.03183867782354355, -0.017894119024276733, 0.01325524877756834, 0.007475289516150951, -0.012491418048739433, 0.004608597606420517, 0.03474495932459831, -0.005770644173026085, -0.057007815688848495, -0.05607631430029869, 0.011131428182125092, 0.004501475021243095, 0.043370649218559265, -0.05697055533528328, -0.0021599160972982645, 0.0056029739789664745, -0.021946145221590996, 0.02533680573105812, -0.007191181648522615, 0.01546290423721075, 0.04881061241030693, 0.0031391559168696404, 0.03798658028244972, -0.0813758596777916, 0.020493004471063614, -0.048959653824567795, 0.020250815898180008, -0.0017745079239830375, -0.01954287476837635, 0.043556950986385345, 0.015733039006590843, -0.0033766883425414562, 0.0841331034898758, -0.013394973240792751, 0.027945006266236305, 0.05756671354174614, -0.023753255605697632, 0.006958306767046452, 0.013394973240792751, -0.018592745065689087, 0.02269134670495987, -0.03515481948852539, -0.0011544780572876334, -0.03282606974244118, 0.02671542763710022, -0.028951026499271393, 0.01653412915766239, 0.04884787276387215, -0.0022134773898869753, -0.023324765264987946, 0.034614548087120056, 0.044935572892427444, 0.05991409346461296, 0.03180141746997833, -0.04381776973605156, 0.004485173616558313, -0.012314433231949806, -0.051120731979608536, -0.0324162095785141, 0.024777906015515327, 0.041805729269981384, 0.035303857177495956, -0.0459788516163826, -0.020101774483919144, 0.0028713494539260864, 0.014512773603200912, -0.054958514869213104, -0.024423936381936073, -0.028895137831568718, -0.009305687621235847, -0.012146763503551483, -0.04840075224637985, -0.008951717056334019, -0.010842662304639816, 0.011997723020613194, 0.05901985615491867, 0.014671129174530506, 0.025392696261405945, -0.027516517788171768, 0.0003615385212469846, 0.03720412030816078, 0.01602180488407612, 0.03671973943710327, 0.04113505035638809, 0.0037073709536343813, 0.0390857495367527, 0.08234462141990662, 0.0015206740936264396, 0.03409290686249733, 0.06591295450925827, 0.03141018748283386, -0.07317865639925003, 0.00877007469534874, -0.0370178185403347, -0.0026268307119607925, 0.01772644929587841, -0.034241948276758194, 0.02513187564909458, 0.021759845316410065, -0.020511634647846222, 0.04165669158101082, -0.008737471885979176, -0.021685324609279633, -0.01756809465587139, -0.07571233808994293, -0.030385537073016167, 0.020753825083374977, 0.031093478202819824, 0.02211381494998932, -0.05164237320423126, -0.022616825997829437, -0.02630556747317314, 0.036775629967451096, 0.04564351215958595, 0.01483879890292883, 0.0788421779870987, -0.04292353242635727, 0.0315033383667469, 0.004354763776063919, -0.01492263376712799, 0.008183229714632034, 0.011736903339624405, -0.06971348077058792, 0.021946145221590996, -0.004829828627407551, -0.025858446955680847, 0.026566386222839355, 0.012510048225522041, 0.02710665762424469, -0.04813993349671364, 0.006343516521155834, 0.031689636409282684, -0.006902416702359915, 0.013273878023028374, -0.029994307085871696, 0.053095512092113495, -0.028801986947655678, -0.02041848562657833, 0.03085128776729107, -0.0011498206295073032, 0.01001362781971693, -0.010525953024625778, -0.0009821505518630147, 0.008509255014359951, 0.019617395475506783, 0.07548877596855164, -0.03200634941458702, -0.04914595186710358, 0.03306825831532478, 0.001995739294216037, -0.038154248148202896, -0.013385658152401447, -0.0024312157183885574, -0.0342605784535408, -0.04262544959783554, 0.030888548120856285, -0.009585137479007244, 0.029733488336205482, 0.04124683141708374, -0.0459788516163826, 0.007773369550704956, -0.0337948277592659, -0.032658398151397705, -0.01562125887721777, 0.0024265581741929054, -0.017167549580335617, 0.022337375208735466, -0.06867019832134247, 0.04378050938248634, 0.03841507062315941, 0.034912627190351486, 0.011168687604367733, -0.016105638816952705, -0.01963602565228939, 0.028913768008351326, -0.02630556747317314, 0.07891669869422913, 0.0034675095230340958, 0.04869883134961128, -0.04951855167746544, 0.04236463084816933, -0.058684516698122025, -0.03234168887138367, -0.03957013040781021, 0.03534111753106117, 0.0657639130949974, -0.01409359835088253, 0.06378913670778275, 0.027945006266236305, 0.033552639186382294, 0.02032533474266529, 0.028354866430163383, -0.05983957648277283, 0.032267168164253235, 0.044451192021369934, 0.02269134670495987, 0.04132135212421417, 0.03133566677570343, -0.015854133293032646, 0.021759845316410065, 0.043370649218559265, 0.012295803055167198, -0.06177709624171257, -0.0671425387263298, 0.012118818238377571, -0.008131996728479862, -0.004103258717805147, -0.05458591505885124, -0.020958755165338516, 0.03336633741855621, -0.017763709649443626, 0.022374635562300682, 0.013385658152401447, 0.006930361967533827, 0.027181176468729973, 0.05182867497205734, 0.05577823519706726, -0.05361715331673622, 0.035601940006017685, -0.11982818692922592, 0.05030101165175438, 0.05257387459278107, -0.021927515044808388, -0.033459488302469254, 0.021759845316410065, 0.012361007742583752, 0.016767004504799843, -0.038340549916028976, -0.029006917029619217, 0.00035222352016717196, -0.046314191073179245, 0.08547446131706238, -0.02230011485517025, -0.018788360059261322, 0.041284091770648956, 0.03830328956246376, 0.027032136917114258, 0.013450863771140575, -0.07489261776208878, 0.014624553732573986, -0.007438029628247023, -0.019580135121941566, -0.08890238404273987, 0.015407013706862926, 0.08145038038492203, 0.08308982104063034, -0.011848683468997478, -0.029882527887821198, -0.0370178185403347, 0.0008336927276104689, 0.01438236329704523, 0.01631988398730755, 0.057902052998542786, -0.026007486507296562, -0.03591864928603172, 0.048773352056741714, -0.0008604733156971633, 0.0042522987350821495, -0.011839368380606174, 0.015500163659453392, 0.032080866396427155, -0.026640906929969788, -0.02692035771906376, -0.026491867378354073, -0.018723154440522194, 0.028317607939243317, -0.020586155354976654, -0.0030134031549096107, -0.10186886787414551, -0.015686463564634323, -0.006599679123610258, -0.041507650166749954, -0.09359714388847351, 0.05227579176425934, 0.05268565192818642, 0.0650559738278389, 0.017651928588747978, -0.0235669557005167, -0.01071225292980671, 0.0035723033361136913, -0.010768142528831959, -0.006287626456469297, -0.0019177261274307966, 0.02671542763710022, 0.03562057018280029, -0.01866726391017437, -0.025113247334957123, -0.04389229044318199, 0.01835055463016033, -0.023846406489610672, 0.04560625180602074, 0.04143312945961952, 0.04147038981318474, -0.01429852843284607, 0.022020665928721428, -0.055554673075675964, 0.05738041549921036, 0.027740076184272766, -0.018331924453377724, 0.04963033273816109, 0.007470631971955299, 0.02425626665353775, 0.044525712728500366, 0.010255817323923111, 0.05894533544778824, -0.03519207984209061, 0.00905883964151144, -0.028429387137293816, -0.059765055775642395, -0.024405306205153465, -0.02103327587246895, -0.0370178185403347, -0.03221127763390541, -0.02347380667924881, -0.089200459420681, -0.02319435589015484, 0.028913768008351326, -0.01217470783740282, -0.027348846197128296, 0.02377188578248024, 0.020213555544614792, -0.0023485450074076653, 0.019170274958014488, 0.057790275663137436, -0.004757637623697519, -0.01232374832034111, 0.008984319865703583, 0.002307791728526354, -0.033347707241773605, 0.0317268967628479, -0.002197176218032837, 0.030702248215675354, 0.006348174065351486, 0.009491987526416779, -0.005332838743925095, -0.03893670812249184, -0.03016197681427002, -0.05361715331673622, -0.02474064566195011, -0.024796536192297935, -0.05007745325565338, -0.01414017379283905, -0.023008055984973907, -0.05551741272211075, -0.06889376044273376, 0.009827327914536, 0.11595314741134644, 0.051418814808130264, 0.015919338911771774, -0.023715995252132416, 0.034931257367134094, -0.01507167425006628, -0.028559796512126923, 0.00481119891628623, -0.021871626377105713, 0.028895137831568718, 0.0434451699256897, -0.019375205039978027, -0.043966811150312424, -0.037856169044971466, 0.04456297308206558, -0.029696227982640266, -0.03483811020851135, 0.03312414884567261, 0.01193251833319664, -0.011522658169269562, -0.024535715579986572, -0.07492987811565399, -0.04963033273816109, -0.007545151747763157, -0.011913888156414032, 0.0019212192855775356, 0.0014997153775766492, -0.03258387744426727, -0.06449707597494125, -0.043556950986385345, 0.04083697125315666, -0.06043573468923569, 0.010190612636506557, 0.04501008987426758, 0.057417675852775574, 0.007731452118605375, -0.0031601146329194307, 0.011615808121860027, -0.015062359161674976, 0.025988856330513954, -0.015518793836236, -0.014028393663465977, -0.02142450585961342, 0.050934433937072754, 0.001882794895209372, 0.00786186195909977, 0.010367597453296185, 0.02591433748602867, 0.05991409346461296, -0.04732021316885948, 0.023455176502466202, -0.0031531283166259527, 0.028354866430163383, 0.04773007333278656, -0.01089855283498764, -0.09851546585559845, -0.09560918807983398, 0.03446551039814949, -0.028839247301220894, -0.029919788241386414, 0.01592865400016308, 0.02917458675801754, 0.03807973116636276, -0.028224457055330276, -0.05369167402386665, 0.03893670812249184, 0.0035955908242613077, 0.0014158803969621658, -0.04802815243601799, -0.031372927129268646, 0.011979092843830585, -0.040911491960287094, -0.03968191146850586, -0.06788773834705353, -0.0388621911406517, -0.019226165488362312, 0.04825171083211899, 0.015388383530080318, 0.013711683452129364, 0.029808007180690765, 0.07750082015991211, 0.010768142528831959, 0.0022111486177891493, 0.01846233382821083, -0.008704870007932186, 0.014820168726146221, -0.018956029787659645, 0.03938382863998413, 0.011690327897667885, 0.0434451699256897, -0.007358851842582226, -0.06341653317213058, -0.015611943788826466, -0.006865156814455986, 0.01623605005443096, -0.022020665928721428, -0.015593313612043858, -0.011699642986059189, 0.023883666843175888, -0.04821445047855377, 0.04087423160672188, -0.024926945567131042, 0.026007486507296562, 0.03005019761621952, -0.027758706361055374, -0.06408721953630447, 0.018294664099812508, 0.0404643714427948, 0.021741215139627457, -0.032956477254629135, -0.0029621708672493696, 0.04269997030496597, 0.024591606110334396, -0.03388797864317894, 0.043258871883153915, -0.008164599537849426, 0.002587241819128394, -0.01866726391017437, 0.029398147016763687, 0.02211381494998932, 0.044041331857442856, -0.002204162534326315, -0.014866744168102741, 0.015099618583917618, -0.020381225273013115, 0.008909800089895725, -0.02326887659728527, 0.00783857423812151, 0.02159217558801174, 0.01248210296034813, -0.026175156235694885, 0.004729692358523607, -0.01625467836856842, 0.01673905923962593, 0.048773352056741714, 0.0018606716766953468, -0.05257387459278107, 0.0010793758556246758, -0.02013903483748436, -0.02446119673550129, 0.04106052964925766, 0.011131428182125092, 0.03044142760336399, -0.010451432317495346, -0.02641734667122364, -0.03399975970387459, -0.02954718843102455, 0.022523675113916397, 0.031186627224087715, 0.016450293362140656, -0.09389522671699524, -0.020288074389100075, 0.03938382863998413, -0.009957737289369106, 0.044823791831731796, 0.03997999057173729, -0.010777457617223263, 0.04676131159067154, 0.03768850117921829, 0.005453933961689472, -0.027665557339787483, 0.017763709649443626, 0.02809404768049717, 0.024722015485167503, 0.018387814983725548, 0.0060407789424061775, -0.06043573468923569, -0.023492436856031418, 0.059466976672410965, 0.027460627257823944, 0.008136654272675514, 0.0005658863810822368, -0.0018862879369407892, 0.027032136917114258, -0.025690777227282524, 0.03083265759050846, 0.013897983357310295, 0.002003889996558428, -0.021741215139627457, -0.008136654272675514, -0.028839247301220894, 0.02336202561855316, 0.10656362771987915, -0.014987838454544544, -0.04795363172888756, -0.0076895346865057945, -0.019095754250884056, 0.01095444243401289, -0.055442895740270615, 0.020567525178194046, 0.044637490063905716, -0.023939555510878563, 0.001881630509160459, 0.01556536927819252, 0.02937951683998108, 0.0051418812945485115, 0.030627727508544922, 0.011960462667047977, -0.046314191073179245, 0.0356392003595829, 0.004848458804190159, -0.015090303495526314, 0.07921478152275085, 0.03662658855319023, 0.020586155354976654, 0.017419055104255676, -0.013022373430430889, -0.029025547206401825, 0.041395869106054306, -0.05529385432600975, -0.025485847145318985, -0.043370649218559265, -0.03230442851781845, 0.03567646071314812, 0.01602180488407612, -0.03340359777212143, 0.029435407370328903, -0.014950579032301903, -0.043556950986385345, -0.01733521930873394, -0.028895137831568718, 0.00962239783257246, -0.04627693071961403, 0.044451192021369934, 0.029006917029619217, -0.09233030676841736, -0.026845837011933327, -0.004732021130621433, -0.006879129447042942, 0.03975642845034599, -0.02692035771906376, -0.016580704599618912, 0.04642597213387489, 0.04486105218529701, -0.019785065203905106, -0.0015684135723859072, 0.0030832658521831036, -0.013441548682749271, -0.02475927583873272, -0.01473633386194706, 0.0047133914195001125, 0.0017605354078114033, -0.014522088691592216, 0.07582411915063858, -0.04340790957212448, 0.006515844259411097, 0.006725431885570288, 0.03073950856924057, 0.05458591505885124, -0.026957616209983826, -0.005705439019948244, -0.013022373430430889, 0.013162098824977875, -0.025318175554275513, -0.03916027024388313, -0.07213538140058517, 0.06334201246500015, -0.009366234764456749, -0.07545151561498642, -0.019207535311579704, -0.005472563672810793, -0.057305894792079926, -0.04359421133995056, 0.014121543616056442, 0.017456313595175743, -0.07254523783922195, -0.08033257722854614, 0.036980558186769485, 0.03720412030816078, -0.025001466274261475, 0.02513187564909458, -0.07299236208200455, -0.020772455260157585, -0.012882648035883904, -0.047208432108163834, -0.04858705401420593, 0.016776319593191147, 0.04653775319457054, -0.006921046879142523, 0.01066567748785019, 0.070794016122818, 0.05708233639597893, -0.03897396847605705, -0.002650118200108409, -0.008802677504718304, 0.0705704614520073, 0.0010514309396967292, -0.02347380667924881, -0.01203498337417841, 0.014000448398292065, 0.03997999057173729, -0.08204653859138489, -0.04329613223671913, -0.04910869151353836, -0.055331114679574966, 0.005481878761202097, -0.047879111021757126, -0.00736816693097353, 0.015807559713721275, -0.02338065579533577, 0.014764279127120972, 0.01424263883382082, 0.0012610184494405985, 0.005738041363656521, -0.036999188363552094, 0.008285694755613804, -0.018015215173363686, 0.06177709624171257, -0.008877197280526161, -0.04992841184139252, -0.012258542701601982, 0.052313052117824554, -0.007023511920124292, -0.057790275663137436, 0.0037935348227620125, 0.006534473970532417, -0.018341239541769028, 0.005831191316246986, -0.04594159126281738, 0.018546169623732567, 0.0033394284546375275, -0.037669871002435684, 0.02101464569568634, -0.04802815243601799, 0.040725190192461014, -0.0037190148141235113, 0.028243087232112885, -0.10604199022054672, -0.05950423702597618, 0.07809697836637497, 0.02593296580016613, 0.017139604315161705, 0.03487537056207657, 0.006650911644101143, 0.03154059872031212, -0.09016922116279602, -0.01802453026175499, 0.0012598540633916855, 0.06889376044273376, 0.021685324609279633, -0.026007486507296562, 0.016180159524083138, 0.02170395478606224, -0.0028201169334352016, -0.0011672861874103546, -0.06785047799348831, -0.027740076184272766, -0.009557192213833332, -0.008183229714632034, 0.009417467750608921, -0.004312845878303051, -0.02634282596409321, 0.007866519503295422, 0.03653343766927719, 0.005835848860442638, -0.04132135212421417, -0.037763018161058426, 0.023790515959262848, 0.02475927583873272, 0.03606769070029259, -0.061739835888147354, -0.03407428041100502, 0.001549783512018621, -0.0344841405749321, -0.04538269340991974, 0.007307619322091341, -0.030385537073016167, 0.00028978390037082136 ]
21,074
sortedcontainers.sorteddict
popitem
Remove and return ``(key, value)`` pair at `index` from sorted dict. Optional argument `index` defaults to -1, the last item in the sorted dict. Specify ``index=0`` for the first item in the sorted dict. If the sorted dict is empty, raises :exc:`KeyError`. If the `index` is out of range, raises :exc:`IndexError`. Runtime complexity: `O(log(n))` >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> sd.popitem() ('c', 3) >>> sd.popitem(0) ('a', 1) >>> sd.popitem(100) Traceback (most recent call last): ... IndexError: list index out of range :param int index: `index` of item (default -1) :return: key and value pair :raises KeyError: if sorted dict is empty :raises IndexError: if `index` out of range
def popitem(self, index=-1): """Remove and return ``(key, value)`` pair at `index` from sorted dict. Optional argument `index` defaults to -1, the last item in the sorted dict. Specify ``index=0`` for the first item in the sorted dict. If the sorted dict is empty, raises :exc:`KeyError`. If the `index` is out of range, raises :exc:`IndexError`. Runtime complexity: `O(log(n))` >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3}) >>> sd.popitem() ('c', 3) >>> sd.popitem(0) ('a', 1) >>> sd.popitem(100) Traceback (most recent call last): ... IndexError: list index out of range :param int index: `index` of item (default -1) :return: key and value pair :raises KeyError: if sorted dict is empty :raises IndexError: if `index` out of range """ if not self: raise KeyError('popitem(): dictionary is empty') key = self._list_pop(index) value = dict.pop(self, key) return (key, value)
(self, index=-1)
[ 0.03366357833147049, 0.060810428112745285, -0.08587191998958588, -0.05016022548079491, 0.0038076338823884726, -0.033123623579740524, -0.016701456159353256, 0.04066441208124161, 0.08430790156126022, -0.08929786086082458, -0.031131364405155182, 0.05619285628199577, -0.013405850157141685, 0.01697143353521824, -0.028822578489780426, 0.07153511047363281, 0.007159096654504538, 0.05462884157896042, -0.013713067397475243, 0.024577392265200615, 0.0381321981549263, -0.018898524343967438, 0.0003636569599620998, 0.024670489132404327, -0.023869860917329788, -0.03310500457882881, 0.05179871618747711, -0.019215052947402, 0.06851878762245178, -0.0044243959710001945, 0.006917046383023262, -0.012167670764029026, 0.00406597601249814, 0.018647165969014168, -0.02696065418422222, 0.013871331699192524, -0.0020492796320468187, -0.005795237608253956, 0.03301190584897995, 0.04725562408566475, -0.0023111128248274326, -0.022249987348914146, 0.04632465913891792, -0.02973492071032524, 0.04118575155735016, 0.0562300942838192, 0.0043755206279456615, 0.056714195758104324, -0.0010124209802597761, 0.021672790870070457, 0.010054388083517551, 0.0681091696023941, 0.0189171452075243, -0.025322161614894867, -0.07723259180784225, 0.014699887484312057, 0.004370865877717733, -0.003854182083159685, -0.006679651327431202, 0.004799108486622572, 0.005501984618604183, -0.02141212299466133, -0.034669019281864166, -0.05559704080224037, 0.03310500457882881, -0.006335195153951645, 0.034724876284599304, -0.06419912725687027, -0.02476358413696289, -0.024298103526234627, 0.00026008745771832764, 0.023832622915506363, -0.025880739092826843, -0.005152873694896698, -0.007992307655513287, -0.005497329402714968, 0.038467343896627426, -0.009598216973245144, 0.025433877483010292, -0.03051692806184292, -0.014848841354250908, -0.02211965247988701, 0.008899995125830173, 0.025769023224711418, 0.003993826452642679, 0.0378342904150486, 0.07183301448822021, -0.021728649735450745, -0.006456220522522926, 0.0762643963098526, -0.009062913246452808, -0.011115684174001217, 0.0008448478765785694, -0.013713067397475243, -0.01639423705637455, -0.03448282554745674, 0.022529276087880135, -0.028506051748991013, -0.0002229944511782378, -0.02176588773727417, 0.03396148607134819, 0.035171739757061005, -0.05768239498138428, -0.02286442182958126, 0.03081483580172062, 0.019978441298007965, 0.05470331758260727, 0.014690577983856201, -0.03046107105910778, -0.004468617029488087, -0.009188593365252018, -0.026029692962765694, -0.02338576130568981, -0.006060561630874872, 0.031876131892204285, 0.03221127763390541, -0.022808564826846123, -0.027724042534828186, 0.030628643929958344, -0.002399554243311286, 0.006079180631786585, -0.031205840408802032, -0.027798520401120186, 0.018237542361021042, -0.03103826753795147, -0.021728649735450745, -0.00006960394239285961, -0.04018031433224678, -0.02761232852935791, 0.05030917748808861, 0.0043545737862586975, 0.003591185202822089, -0.022045176476240158, -0.012000097893178463, 0.02696065418422222, 0.01110637467354536, 0.05202214792370796, 0.01894507370889187, -0.019978441298007965, 0.0003953678533434868, 0.06401293724775314, -0.011311186477541924, 0.0031815620604902506, 0.07328531891107559, 0.023404380306601524, -0.0649811327457428, -0.0468832366168499, -0.04669704660773277, 0.03364495933055878, 0.010464010760188103, -0.03111274540424347, 0.04193052276968956, 0.005892988294363022, -0.01869371347129345, 0.03712675720453262, -0.054889511317014694, 0.004906168673187494, -0.04230290651321411, -0.05410750210285187, -0.02636483870446682, 0.04163261502981186, 0.02022049017250538, 0.04572884365916252, -0.04178156703710556, -0.024968396872282028, 0.011292567476630211, 0.0770091637969017, 0.03332843258976936, -0.020034298300743103, 0.05339997261762619, -0.033272575587034225, 0.006926355883479118, -0.007289431057870388, -0.03861629590392113, -0.04438826069235802, 0.02169140987098217, -0.05492674931883812, 0.04595227539539337, 0.031727179884910583, -0.05894850194454193, 0.025322161614894867, 0.000022874022761243396, -0.000015646341125830077, -0.05325101688504219, 0.0032397471368312836, 0.04468616843223572, -0.009868195280432701, 0.0566769577562809, 0.02869224362075329, 0.04185604304075241, -0.01245626900345087, -0.029455631971359253, 0.010035768151283264, -0.02586212009191513, 0.031168602406978607, 0.014941937290132046, -0.006484149023890495, 0.030405214056372643, 0.034222155809402466, 0.07216816395521164, -0.044313784688711166, -0.04785143956542015, 0.025024253875017166, 0.0016652579652145505, -0.010175412520766258, -0.02688617818057537, 0.0014290263643488288, -0.05604390427470207, -0.020685972645878792, 0.054740555584430695, -0.010640894062817097, 0.011823215521872044, 0.04695771634578705, -0.009137390181422234, -0.002012041164562106, -0.05768239498138428, -0.003723847446963191, -0.011059826239943504, 0.03695918619632721, -0.0338311530649662, 0.026699986308813095, -0.07872213423252106, 0.04222843050956726, 0.0029418393969535828, 0.0640874132514, -0.0016233647475019097, -0.044797882437705994, -0.01044539175927639, 0.03651232272386551, 0.011841834522783756, 0.039398305118083954, 0.0036889363545924425, 0.06174138933420181, -0.03675437346100807, 0.049415454268455505, -0.012512126937508583, -0.04435102269053459, -0.07116272300481796, 0.010007839649915695, 0.04286148399114609, -0.007903865538537502, 0.0940643846988678, 0.007969032973051071, 0.0465853288769722, -0.0229947566986084, 0.03075897879898548, -0.018758881837129593, 0.026848940178751945, 0.031149983406066895, 0.019624674692749977, 0.027854377403855324, 0.03883972764015198, -0.021710030734539032, 0.028431573882699013, 0.03146651014685631, -0.006572590675204992, -0.03571169450879097, -0.08765936642885208, -0.0033607722725719213, -0.0031513057183474302, 0.03170856088399887, -0.06405017524957657, -0.028748100623488426, 0.01599392481148243, 0.016952814534306526, 0.01676662266254425, 0.04636190086603165, 0.012223528698086739, 0.009439952671527863, 0.08415894955396652, 0.05455436185002327, -0.046920474618673325, 0.00785731803625822, -0.08155225962400436, 0.05567151680588722, 0.055261895060539246, -0.04397863522171974, -0.018833357840776443, -0.004217257257550955, 0.02761232852935791, 0.050644323229789734, -0.0341290608048439, -0.058985743671655655, 0.014336812309920788, -0.01373168732970953, 0.06695477664470673, 0.02022049017250538, -0.020834926515817642, 0.08974472433328629, 0.047590769827365875, 0.032825715839862823, 0.024856681004166603, -0.05544808506965637, -0.001008348073810339, -0.01756724901497364, 0.012288696132600307, -0.039770688861608505, 0.012698319740593433, 0.032844334840774536, 0.06293302029371262, 0.008141261525452137, -0.02117007225751877, -0.08490371704101562, -0.002091173082590103, 0.032322995364665985, 0.056788671761751175, 0.04420206695795059, 0.04096231982111931, -0.04695771634578705, 0.027277180925011635, 0.0015174677828326821, -0.00971924141049385, -0.003200181294232607, 0.03688470646739006, 0.010221960954368114, -0.044015876948833466, -0.028822578489780426, -0.03256504610180855, -0.032844334840774536, 0.022398941218852997, -0.04073888808488846, -0.0189171452075243, -0.05675143375992775, -0.048819638788700104, -0.00007040399214019999, -0.03135479614138603, -0.10195893794298172, 0.04528198391199112, 0.02798471227288246, 0.07931794971227646, -0.009691312909126282, -0.012270077131688595, 0.008299524895846844, 0.003998481202870607, 0.049043070524930954, 0.041297465562820435, 0.0140947625041008, 0.04785143956542015, 0.018935764208436012, -0.026923416182398796, -0.026327600702643394, -0.051016706973314285, 0.03617717698216438, -0.002010877477005124, 0.03617717698216438, 0.015565682202577591, -0.02126316912472248, -0.01706453040242195, 0.008657945320010185, -0.02718408592045307, 0.022622372955083847, 0.00580920185893774, -0.04468616843223572, 0.0636405497789383, 0.009179283864796162, 0.04755353182554245, 0.02993973344564438, 0.005376304499804974, 0.049192022532224655, -0.020909402519464493, -0.022622372955083847, -0.022249987348914146, -0.036475084722042084, -0.04293595999479294, -0.02046254090964794, -0.05418197810649872, -0.05272967740893364, -0.006349159870296717, -0.08028614521026611, -0.00031769071938470006, 0.02314371056854725, -0.03563721850514412, 0.009021020494401455, 0.017008673399686813, 0.035395167768001556, -0.02141212299466133, 0.023795384913682938, 0.05470331758260727, -0.03580479323863983, -0.041818805038928986, 0.0013277842663228512, -0.03803909942507744, -0.018758881837129593, 0.027630947530269623, -0.004989955574274063, 0.0082715954631567, -0.008443824015557766, -0.015342251397669315, -0.0083088343963027, -0.04014307260513306, -0.08453133702278137, -0.038318388164043427, -0.006479494273662567, -0.04323386773467064, -0.004668773617595434, -0.0054414719343185425, 0.005785927642136812, -0.05477779358625412, -0.06967318058013916, -0.015314321964979172, 0.09592630714178085, 0.04088784381747246, -0.01599392481148243, -0.023404380306601524, 0.05932088941335678, -0.025620069354772568, -0.03452006354928017, 0.011851144023239613, 0.005474055651575327, 0.0007598975789733231, 0.020108776167035103, -0.013647900894284248, -0.02131902612745762, -0.01636630855500698, 0.05388407036662102, -0.019028859212994576, -0.041744329035282135, 0.05991670489311218, -0.010836395435035229, 0.0011683570919558406, -0.0063724336214363575, -0.08296731859445572, -0.05943260341882706, -0.02608554996550083, -0.05012298375368118, -0.023050615563988686, -0.0014162256848067045, -0.012167670764029026, -0.06509285420179367, 0.009588906541466713, 0.03316086158156395, -0.07633887231349945, -0.017250722274184227, 0.04193052276968956, 0.028971532359719276, -0.011078446172177792, -0.00971924141049385, 0.008937234058976173, -0.008280905894935131, 0.0663217231631279, 0.0061862412840127945, 0.025601450353860855, 0.04200499877333641, 0.05161252245306969, 0.05470331758260727, 0.05738448724150658, 0.035395167768001556, -0.0233671423047781, 0.07034347951412201, -0.005320447031408548, 0.04256357625126839, 0.01285658311098814, 0.04118575155735016, 0.008141261525452137, -0.010491940192878246, -0.10099074244499207, -0.08237150311470032, 0.025303542613983154, -0.06222549080848694, -0.004266132600605488, -0.016161497682332993, 0.002148194471374154, 0.0162452831864357, -0.07187025249004364, -0.05827821046113968, 0.02226860634982586, 0.00867190957069397, 0.020574256777763367, -0.07324807345867157, -0.0020539346151053905, -0.04081336781382561, -0.02601107396185398, -0.04185604304075241, -0.06267235428094864, -0.02022049017250538, -0.0034748150501400232, 0.0485217310488224, 0.0009844921296462417, 0.04133470728993416, 0.015463275834918022, 0.021970698609948158, 0.006563280709087849, 0.02316232956945896, 0.04133470728993416, -0.006958939600735903, 0.02791023626923561, -0.016850410029292107, 0.00418467354029417, -0.020034298300743103, 0.02643931657075882, 0.04055269807577133, -0.11149198561906815, -0.01230731513351202, 0.023106472566723824, 0.029846636578440666, -0.017883777618408203, -0.041520897299051285, 0.009128080680966377, 0.012316624633967876, -0.060140132904052734, 0.04260081425309181, 0.005967465229332447, 0.043941397219896317, -0.012400412000715733, -0.007992307655513287, -0.027277180925011635, -0.00557180680334568, 0.04289872199296951, 0.012419031001627445, -0.08862756937742233, -0.031578224152326584, 0.021281788125634193, 0.05369788035750389, -0.0035562741104513407, 0.04289872199296951, 0.016282523050904274, -0.028003331273794174, -0.018153754994273186, 0.02534078061580658, 0.03314224258065224, 0.05462884157896042, -0.010100935585796833, -0.014820912852883339, -0.0034655053168535233, -0.0063910530880093575, -0.016487333923578262, -0.004589641932398081, 0.010882943868637085, 0.02403743378818035, -0.00809471309185028, -0.058092016726732254, 0.031447891145944595, 0.0036633347626775503, -0.029194962233304977, 0.05053260922431946, -0.010724680498242378, -0.050420891493558884, 0.022622372955083847, 0.025173207744956017, 0.003214145777747035, 0.029567347839474678, -0.009021020494401455, 0.023627812042832375, -0.061182811856269836, -0.003940295893698931, -0.014336812309920788, -0.053362730890512466, -0.010519868694245815, -0.018172375857830048, 0.022398941218852997, -0.07291293144226074, -0.03126169741153717, 0.05615561828017235, -0.01285658311098814, 0.0017420622752979398, 0.06918908655643463, -0.010156793519854546, 0.043717969208955765, 0.03330981358885765, 0.008406585082411766, -0.009179283864796162, 0.015733255073428154, -0.005097016226500273, 0.0032979322131723166, -0.008918614126741886, 0.035395167768001556, -0.04829829931259155, -0.017278650775551796, 0.030647262930870056, 0.023571953177452087, 0.011785976588726044, 0.017278650775551796, -0.02498701587319374, 0.004552403464913368, -0.026774462312459946, 0.014671958051621914, 0.02616002783179283, -0.013871331699192524, 0.008541574701666832, 0.011637022718787193, 0.0009379440452903509, 0.040068596601486206, 0.07585477083921432, 0.00903498474508524, -0.049713362008333206, 0.02111421525478363, 0.0025415257550776005, 0.011962859891355038, -0.013452398590743542, 0.030945170670747757, 0.04185604304075241, -0.04126022756099701, 0.033626340329647064, -0.012400412000715733, 0.045021314173936844, -0.00627933768555522, 0.007787495851516724, 0.014681268483400345, -0.06337988376617432, -0.007317360024899244, 0.0023623155429959297, 0.000042220573959639296, 0.05392130836844444, 0.019159194082021713, 0.02798471227288246, -0.001771154929883778, -0.013619971461594105, -0.0376853346824646, 0.016785241663455963, -0.01896369270980358, -0.023925719782710075, -0.027798520401120186, -0.016552502289414406, 0.03638198971748352, 0.01354549452662468, -0.03142927214503288, 0.01793963462114334, 0.012176981195807457, -0.05429369583725929, 0.020779067650437355, -0.03766671568155289, 0.01574256457388401, -0.04826106131076813, 0.06669410318136215, 0.030628643929958344, -0.10359743237495422, 0.029306678101420403, 0.020872164517641068, -0.017483463510870934, 0.02833847887814045, -0.02753785066306591, -0.052469007670879364, 0.04498407617211342, 0.01676662266254425, -0.08192463964223862, 0.03913763538002968, -0.025880739092826843, 0.010612964630126953, -0.03366357833147049, 0.03198784962296486, 0.04543093591928482, 0.005730070173740387, -0.04997403174638748, 0.03344015032052994, 0.0027556470595300198, 0.009346856735646725, -0.015910137444734573, 0.026104168966412544, 0.0474790520966053, -0.05209662392735481, 0.04289872199296951, -0.014225096441805363, -0.012223528698086739, -0.02716546691954136, -0.05164976418018341, -0.03031211718916893, 0.059581559151411057, -0.018982311710715294, -0.05909745767712593, -0.0014744107611477375, 0.008048164658248425, -0.07012004405260086, -0.02476358413696289, -0.023851241916418076, 0.08378656208515167, -0.02616002783179283, -0.07991376519203186, 0.060884904116392136, 0.01584497094154358, -0.019233671948313713, 0.026699986308813095, -0.05820373445749283, -0.010203341953456402, 0.007880591787397861, -0.026774462312459946, -0.024149149656295776, -0.006991523317992687, 0.0290087703615427, -0.024558773264288902, 0.023255426436662674, 0.06583762168884277, 0.047367338091135025, -0.024205008521676064, -0.007228918839246035, -0.02023911103606224, 0.006479494273662567, 0.024558773264288902, -0.0019305821042507887, -0.06531628221273422, 0.01540741790086031, 0.002764956559985876, -0.08736145496368408, -0.0480748675763607, -0.014476456679403782, -0.06267235428094864, -0.036344751715660095, 0.010910872370004654, 0.007247537840157747, 0.034073203802108765, -0.004901513922959566, 0.011711499653756618, 0.012083884328603745, 0.06352883577346802, 0.003270003478974104, -0.029027389362454414, 0.01781860925257206, -0.012139742262661457, 0.02666274644434452, -0.00617227703332901, -0.04572884365916252, -0.03558136150240898, 0.05574599280953407, -0.0016652579652145505, -0.03016316331923008, 0.023031996563076973, 0.03865353390574455, -0.017548630014061928, 0.012772796675562859, -0.03504140302538872, -0.006707579828798771, -0.02249203808605671, -0.03185751289129257, 0.017986182123422623, 0.008741731755435467, 0.04185604304075241, -0.019587436690926552, 0.012139742262661457, -0.06732715666294098, -0.08348865807056427, 0.053288254886865616, -0.01063158456236124, -0.03796462342143059, -0.005823166109621525, -0.02891567535698414, 0.02446567639708519, -0.0238884799182415, 0.03273261711001396, -0.002434465102851391, 0.07000833004713058, 0.04535645991563797, 0.016003234311938286, 0.03965897485613823, 0.020760448649525642, -0.015314321964979172, 0.027109608054161072, -0.030628643929958344, -0.04800039157271385, -0.0241863876581192, -0.030628643929958344, -0.020332206040620804, 0.05191043019294739, 0.0064608752727508545, -0.01424371637403965, 0.04632465913891792, 0.012744867242872715, -0.030926551669836044, -0.005823166109621525, 0.022622372955083847, -0.02513596974313259, 0.030777597799897194, -0.031094124540686607, -0.02022049017250538, -0.005804547108709812, -0.0013394213747233152, -0.07153511047363281, 0.0166176687926054, -0.003388701006770134, -0.0233671423047781 ]
21,077
sortedcontainers.sorteddict
setdefault
Return value for item identified by `key` in sorted dict. If `key` is in the sorted dict then return its value. If `key` is not in the sorted dict then insert `key` with value `default` and return `default`. Optional argument `default` defaults to none. Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict() >>> sd.setdefault('a', 1) 1 >>> sd.setdefault('a', 10) 1 >>> sd SortedDict({'a': 1}) :param key: key for item :param default: value for item (default None) :return: value for item identified by `key`
def setdefault(self, key, default=None): """Return value for item identified by `key` in sorted dict. If `key` is in the sorted dict then return its value. If `key` is not in the sorted dict then insert `key` with value `default` and return `default`. Optional argument `default` defaults to none. Runtime complexity: `O(log(n))` -- approximate. >>> sd = SortedDict() >>> sd.setdefault('a', 1) 1 >>> sd.setdefault('a', 10) 1 >>> sd SortedDict({'a': 1}) :param key: key for item :param default: value for item (default None) :return: value for item identified by `key` """ if key in self: return self[key] dict.__setitem__(self, key, default) self._list_add(key) return default
(self, key, default=None)
[ 0.028991464525461197, 0.024946581572294235, -0.061707984656095505, 0.02118390053510666, 0.005074917338788509, 0.017345964908599854, -0.00586978392675519, 0.01430759858340025, 0.019396625459194183, -0.055461931973695755, -0.048689104616642, -0.0009929953375831246, -0.0002764689561445266, 0.005474702455103397, -0.020694751292467117, 0.02663978934288025, 0.03702479228377342, 0.05162399634718895, -0.01799502782523632, 0.021315593272447586, 0.02056305669248104, -0.01802324689924717, 0.04394812509417534, -0.004816233180463314, -0.020224416628479958, -0.0003650977450888604, 0.0025539204943925142, -0.042104411870241165, 0.0305341649800539, 0.014665053226053715, 0.021635422483086586, -0.0279191005975008, -0.056590739637613297, 0.01458979956805706, 0.04658200219273567, -0.012097022496163845, 0.02735469862818718, 0.07803802937269211, -0.05440838262438774, 0.00709735881537199, 0.021936437115073204, -0.017345964908599854, 0.01439225859940052, -0.03036484494805336, 0.04007256403565407, 0.08383255451917648, 0.03138076886534691, 0.07871530950069427, 0.07604380697011948, -0.0156151307746768, 0.04759792983531952, -0.02705368399620056, 0.02641402743756771, -0.04861385375261307, -0.05049519240856171, 0.026376402005553246, 0.010780083946883678, 0.011335079558193684, -0.025322850793600082, 0.011288045905530453, 0.04285695031285286, -0.010065174661576748, -0.02451387420296669, -0.0808224081993103, -0.023761337623000145, 0.04394812509417534, -0.02315930835902691, -0.049140628427267075, -0.004437613300979137, 0.0361405611038208, -0.03489887714385986, 0.006358932703733444, -0.016160719096660614, -0.025717932730913162, 0.02838943526148796, 0.07871530950069427, -0.024212859570980072, -0.06942148506641388, 0.004075455013662577, -0.02404353767633438, 0.014730900526046753, -0.043609485030174255, -0.010516696609556675, 0.03437209874391556, -0.01059195026755333, 0.013658535666763783, 0.0585097074508667, 0.022820666432380676, 0.06825505197048187, 0.023610830307006836, -0.0039884429425001144, 0.0171107966452837, 0.019161459058523178, 0.025492170825600624, -0.002207048237323761, -0.012548544444143772, 0.028521129861474037, -0.03655445575714111, 0.026846736669540405, -0.0015873814700171351, -0.04071221873164177, 0.028878584504127502, -0.008767048828303814, -0.05429550260305405, -0.020374923944473267, -0.041163742542266846, 0.06558354943990707, 0.03693072497844696, -0.04157763719558716, 0.0088893361389637, -0.060202911496162415, -0.08247799426317215, 0.0015027211047708988, 0.03217093273997307, 0.015125981532037258, 0.050720952451229095, -0.014204124920070171, -0.01332930102944374, 0.022482024505734444, 0.0532795786857605, -0.06392797082662582, -0.010187461972236633, -0.000670227746013552, 0.005263051483780146, -0.019246118143200874, -0.0940670520067215, 0.03469192981719971, 0.03463548794388771, -0.004103675018996, 0.012981252744793892, 0.05034468695521355, 0.013630315661430359, -0.01597258448600769, 0.017562318593263626, 0.04737216606736183, -0.013649129308760166, -0.019264932721853256, 0.07096417993307114, 0.007934555411338806, 0.073673315346241, 0.06765302270650864, -0.033412616699934006, 0.04248068109154701, 0.02554861083626747, 0.04586709290742874, -0.022839481011033058, -0.003120674518868327, 0.021861182525753975, -0.017120203003287315, 0.02790028788149357, 0.0007278437842614949, 0.02118390053510666, -0.003452260745689273, 0.03589598834514618, -0.028427062556147575, -0.014646239578723907, -0.03153127431869507, -0.021710675209760666, -0.006608210504055023, 0.018399516120553017, 0.011316265910863876, 0.012275749817490578, 0.017534097656607628, -0.025322850793600082, -0.02948061376810074, 0.02349795028567314, -0.022989986464381218, 0.04789894074201584, 0.04263118654489517, 0.057606663554906845, -0.05248941481113434, 0.016151312738656998, -0.030176710337400436, 0.026846736669540405, 0.07833904027938843, 0.012049988843500614, -0.060541555285453796, 0.01901095174252987, 0.008607135154306889, 0.024871328845620155, 0.018183160573244095, 0.05320432409644127, 0.02157898247241974, 0.00043829367496073246, -0.036874283105134964, 0.028991464525461197, 0.05248941481113434, 0.026207080110907555, -0.01522004883736372, 0.07705973088741302, 0.01043203566223383, -0.01977289468050003, 0.009420814923942089, -0.042894575744867325, -0.016621647402644157, 0.0031583013478666544, -0.007478330750018358, -0.05700463429093361, -0.013508028350770473, 0.10821473598480225, -0.01197473518550396, -0.0427064411342144, 0.060541555285453796, 0.011880668811500072, 0.030139083042740822, -0.01170194149017334, -0.0098488200455904, -0.006678760517388582, -0.061783239245414734, 0.002784384647384286, -0.004223610740154982, -0.024683194234967232, -0.03587717190384865, -0.023046428337693214, -0.024288112297654152, -0.034917689859867096, 0.00938318856060505, 0.006467110011726618, -0.010817711241543293, -0.035218704491853714, 0.030007390305399895, -0.0329422801733017, 0.05248941481113434, 0.016029026359319687, 0.05873546749353409, -0.000025445871870033443, 0.010027547366917133, -0.05779479816555977, -0.02246321178972721, -0.012642611749470234, 0.02784384787082672, -0.038153596222400665, 0.008484847843647003, -0.05361821874976158, 0.05346771329641342, -0.09481959044933319, 0.006570583675056696, -0.05644023045897484, -0.0348048098385334, 0.05873546749353409, -0.016555801033973694, 0.0662984549999237, 0.0558382011950016, -0.011457366868853569, -0.029367733746767044, 0.009552509523928165, -0.08661694079637527, -0.0021341461688280106, 0.006250755395740271, 0.025887252762913704, -0.006937445141375065, -0.004867970012128353, -0.057042259722948074, -0.03431566059589386, 0.0269596166908741, 0.04315796494483948, -0.03021433763206005, 0.01122219953685999, -0.02332862839102745, 0.007012698799371719, -0.01376200933009386, 0.0003039541479665786, -0.05580057576298714, 0.023272188380360603, -0.04797419533133507, 0.015276488848030567, 0.021052205935120583, 0.012256937101483345, -0.012228717096149921, 0.04308271035552025, 0.1137082502245903, -0.037927836179733276, 0.012548544444143772, -0.07435059547424316, 0.04974265769124031, 0.036723777651786804, -0.04797419533133507, -0.036573268473148346, -0.0256238654255867, 0.032076865434646606, 0.019885774701833725, -0.006805751007050276, -0.03890613093972206, -0.00832023099064827, -0.052075520157814026, 0.07446347922086716, -0.03472955524921417, 0.014994287863373756, -0.041389502584934235, -0.03685547038912773, 0.01106228493154049, 0.06618557870388031, -0.061557479202747345, 0.043120335787534714, -0.028728077188134193, -0.02498420886695385, -0.08511187136173248, 0.023366255685687065, 0.07352280616760254, 0.06817980110645294, -0.017063762992620468, -0.021466100588440895, -0.02545454353094101, 0.026696229353547096, 0.014382852241396904, 0.00965127907693386, -0.0008724718936719, -0.02253846637904644, -0.009745346382260323, 0.019547132775187492, -0.03068467229604721, 0.03156890347599983, 0.0012311025056988, 0.012689645402133465, 0.04229254648089409, -0.01391251664608717, -0.07886581867933273, -0.033243294805288315, 0.0022552574519068003, 0.04342135041952133, -0.0355009064078331, 0.038718000054359436, -0.11942753195762634, -0.05343008413910866, 0.016104279085993767, -0.021541355177760124, 0.01237922441214323, 0.037608008831739426, 0.014063023962080479, 0.08330578356981277, 0.010780083946883678, -0.0414271280169487, -0.011607874184846878, 0.044550154358148575, -0.020374923944473267, 0.023667270317673683, 0.018164347857236862, -0.025962505489587784, 0.0031065642833709717, -0.015370556153357029, -0.02665860205888748, 0.025661490857601166, -0.012689645402133465, -0.05410736799240112, 0.021842369809746742, -0.0049573336727917194, 0.04940401390194893, -0.009199758060276508, 0.006913928315043449, -0.06483101099729538, 0.028521129861474037, -0.005192501470446587, -0.028803331777453423, 0.015107168816030025, 0.0466572567820549, 0.0031677079387009144, 0.052075520157814026, -0.05448363721370697, 0.051435865461826324, -0.04774843528866768, -0.013620909303426743, -0.01967882737517357, -0.06057918071746826, -0.016819188371300697, -0.0009700664668343961, 0.0022811261005699635, 0.008353154174983501, -0.012623798102140427, -0.04180339723825455, -0.04507693275809288, 0.03935765475034714, -0.0375327542424202, -0.02276422642171383, 0.008696499280631542, 0.05154874548316002, -0.006114358548074961, -0.02276422642171383, 0.042330171912908554, -0.019114425405859947, -0.031042126938700676, 0.01474030688405037, 0.03354430943727493, 0.007990996353328228, 0.03849223628640175, -0.008696499280631542, 0.0021235637832432985, 0.07231874763965607, 0.0828542560338974, -0.0009759456734173, -0.02878451719880104, -0.0006937445141375065, -0.030628232285380363, -0.029386546462774277, -0.005380635149776936, -0.04018544405698776, -0.050720952451229095, 0.030139083042740822, -0.022670159116387367, -0.039884429425001144, -0.01967882737517357, 0.11205267161130905, 0.007323119789361954, 0.04970502853393555, -0.013122353702783585, 0.040825098752975464, -0.009180944412946701, -0.006175501737743616, -0.0037579787895083427, -0.01762816496193409, -0.002575085498392582, -0.0203937366604805, 0.008386077359318733, -0.036253441125154495, -0.02940536104142666, -0.014759120531380177, -0.020751191303133965, -0.025717932730913162, 0.033412616699934006, 0.0025280520785599947, -0.01680978201329708, -0.009754753671586514, -0.055875830352306366, -0.04552845284342766, 0.05557481572031975, 0.028182487934827805, -0.021936437115073204, 0.029555868357419968, -0.024476246908307076, -0.05305381864309311, -0.060993075370788574, 0.07051265984773636, -0.007149096112698317, 0.04063696786761284, 0.05038231238722801, 0.07348518073558807, 0.003922596108168364, 0.07062554359436035, -0.009839413687586784, -0.030797552317380905, 0.02711012400686741, -0.009340858086943626, -0.029518241062760353, 0.008240274153649807, 0.026037760078907013, -0.002459853421896696, 0.0021811798214912415, -0.004211852326989174, 0.000927736284211278, 0.05241416022181511, -0.043534230440855026, 0.032528385519981384, -0.004263589158654213, 0.024852514266967773, 0.06204662844538689, -0.047560300678014755, -0.04033595323562622, -0.06994825601577759, 0.0035275144036859274, 0.014439292252063751, 0.01213464979082346, 0.026545722037553787, 0.019029764458537102, 0.05034468695521355, 0.023347442969679832, -0.10136665403842926, 0.03128670156002045, -0.00841900147497654, -0.003346435260027647, -0.010667203925549984, -0.018832223489880562, 0.027392325922846794, -0.018804004415869713, -0.03329973667860031, -0.08165019750595093, -0.042179666459560394, -0.040825098752975464, 0.03407108783721924, -0.02641402743756771, 0.0002988098713103682, 0.03354430943727493, 0.043045081198215485, -0.010036954656243324, 0.031267888844013214, 0.0026503391563892365, 0.010573136620223522, -0.011466773226857185, -0.015887925401329994, 0.02150372788310051, -0.018333667889237404, 0.06129409000277519, 0.014091243967413902, -0.038943760097026825, -0.015342336148023605, -0.02996976301074028, 0.008014513179659843, 0.003983739763498306, 0.01391251664608717, 0.008056842721998692, 0.011636094190180302, -0.0624605230987072, 0.0072149429470300674, -0.02758045867085457, 0.0004294748941902071, 0.036253441125154495, -0.008052139542996883, -0.04609285667538643, -0.030402470380067825, -0.02409997768700123, -0.023347442969679832, -0.012426257133483887, 0.02364845760166645, 0.0029560572002083063, -0.032453130930662155, -0.03516226261854172, 0.08345628529787064, -0.03171940892934799, -0.014947254210710526, -0.037833768874406815, 0.0220493171364069, -0.020431363955140114, 0.03732580691576004, 0.005606396123766899, 0.04831283912062645, -0.00019357235578354448, -0.012971846386790276, 0.023667270317673683, 0.0037579787895083427, 0.019829334691166878, 0.01975408010184765, 0.02127796784043312, -0.02473963424563408, -0.01893569715321064, -0.023121681064367294, 0.08195121586322784, 0.01893569715321064, 0.06682523339986801, -0.020356109365820885, 0.01952832005918026, -0.06682523339986801, -0.036968350410461426, 0.001797856530174613, 0.009002217091619968, 0.04466303437948227, -0.060541555285453796, 0.027693340554833412, 0.0030995092820376158, -0.053016189485788345, 0.041878651827573776, 0.031023314222693443, -0.04244305193424225, -0.06750251352787018, 0.004468184895813465, 0.01592555269598961, 0.018201975151896477, 0.02759927324950695, -0.03241550549864769, -0.03273533284664154, 0.03418396785855293, 0.06151985004544258, 0.017806893214583397, 0.024495059624314308, 0.040825098752975464, 0.018728749826550484, 0.05211314558982849, 0.015671569854021072, -0.020525431260466576, -0.047710809856653214, -0.014759120531380177, 0.06626082956790924, 0.03461667522788048, -0.007356043439358473, 0.008682388812303543, -0.015050727874040604, 0.023610830307006836, -0.04485116899013519, 0.03457904979586601, -0.008823489770293236, 0.014956661500036716, -0.05813343822956085, -0.025567425414919853, -0.024212859570980072, 0.02483370155096054, 0.0637398362159729, -0.012595578096807003, -0.027486393228173256, -0.04319559037685394, -0.0037250551395118237, 0.03836054354906082, -0.06313780695199966, -0.00523953465744853, -0.03354430943727493, -0.013696162961423397, -0.03856749087572098, 0.015483437106013298, -0.016330040991306305, 0.004623395390808582, -0.016950882971286774, -0.012153463438153267, 0.010093394666910172, 0.007619431242346764, -0.007473627105355263, 0.011382113210856915, -0.010845931246876717, 0.04180339723825455, 0.06584693491458893, 0.000515605031978339, 0.01419471763074398, -0.03115500696003437, 0.016678087413311005, -0.05685412511229515, -0.03706241771578789, -0.02641402743756771, 0.01126923318952322, 0.04349660500884056, -0.010892964899539948, -0.030552977696061134, 0.0269596166908741, -0.033318549394607544, -0.02056305669248104, -0.0032570715993642807, -0.016311226412653923, 0.0460176020860672, 0.0037932537961751223, -0.01087415125221014, 0.02244439907371998, -0.07803802937269211, -0.024062352254986763, 0.01502250786870718, 0.03519989177584648, -0.0038849692791700363, -0.020130349323153496, -0.004844453185796738, 0.03260364010930061, 0.03153127431869507, 0.012125242501497269, -0.010309749282896519, 0.004456426482647657, 0.007426593918353319, 0.013423368334770203, 0.00037773800431750715, -0.02315930835902691, 0.04654437676072121, 0.06253577768802643, 0.016480548307299614, -0.006269569043070078, 0.01918027177453041, -0.0004979674704372883, 0.029123159125447273, 0.037212926894426346, -0.017759859561920166, -0.031907543540000916, -0.01126923318952322, -0.009190350770950317, 0.001229926710948348, -0.04150238260626793, -0.0604286752641201, 0.04263118654489517, -0.022670159116387367, -0.025247596204280853, -0.018249008804559708, -0.0312302615493536, -0.017364777624607086, -0.043534230440855026, -0.025398103520274162, 0.022594906389713287, -0.035858359187841415, -0.06547066569328308, 0.02774978056550026, -0.010234495624899864, -0.020675938576459885, 0.03311160206794739, -0.04421151429414749, -0.008875226601958275, -0.029217226430773735, -0.011560840532183647, -0.04093798249959946, 0.019434252753853798, 0.04932876303792, 0.01728011667728424, -0.01178660150617361, 0.08180070668458939, 0.033977020531892776, -0.034823622554540634, -0.009698312729597092, -0.01878518983721733, 0.05741852894425392, -0.017261303961277008, -0.04221729189157486, 0.015125981532037258, 0.00845662783831358, 0.015069541521370411, -0.04635624215006828, -0.023911844938993454, -0.059977151453495026, -0.059977151453495026, 0.018249008804559708, -0.05463414266705513, 0.01498488150537014, -0.019076798111200333, -0.043383724987506866, 0.04955452308058739, 0.015737418085336685, -0.0180702805519104, 0.04703352600336075, -0.04394812509417534, -0.030477724969387054, -0.02268897369503975, 0.052527040243148804, 0.026056572794914246, -0.01256735809147358, 0.029292479157447815, 0.03418396785855293, -0.03375125676393509, -0.05707988515496254, -0.017882145941257477, -0.020826445892453194, 0.00586978392675519, -0.005855673924088478, -0.016038432717323303, 0.04507693275809288, -0.0016685143345966935, -0.07593092322349548, 0.012821339070796967, -0.07664583623409271, 0.03503056988120079, -0.01759994588792324, 0.02917959913611412, -0.07562991231679916, -0.06396559625864029, 0.03755156695842743, 0.02347913570702076, 0.02340388298034668, 0.011730161495506763, -0.008056842721998692, 0.015539877116680145, -0.05542430654168129, -0.00928441807627678, 0.008658871985971928, 0.037438686937093735, 0.032058052718639374, 0.0002356085751671344, -0.021296780556440353, 0.04496404901146889, -0.02458912692964077, -0.006358932703733444, -0.09436806291341782, 0.02332862839102745, 0.005596989765763283, 0.005756903439760208, 0.07642007619142532, -0.02238795906305313, -0.01218168344348669, 0.0019942214712500572, 0.01352684199810028, 0.03839816898107529, -0.03852986544370651, -0.03845461085438728, 0.048425719141960144, 0.08676744997501373, 0.035764291882514954, -0.057531408965587616, -0.09173418581485748, -0.01407243125140667, -0.04556607827544212, -0.01811731420457363, 0.008847006596624851, 0.020224416628479958, 0.01328226737678051 ]
21,078
tfields.core
to_map
Args: map_ (TensorFields) *fields (Tensors) copy (bool) **kwargs: passed to TensorFields constructor
@staticmethod def to_map(map_, *fields, copy=False, **kwargs): """ Args: map_ (TensorFields) *fields (Tensors) copy (bool) **kwargs: passed to TensorFields constructor """ if not copy: if isinstance(map_, TensorFields) and not fields: if not np.issubdtype(map_.dtype, np.integer): map_ = map_.astype(int) else: copy = True if copy: # not else, because in case of wrong map_ type we initialize kwargs.setdefault("dtype", int) map_ = TensorFields(map_, *fields, **kwargs) return map_
(map_, *fields, copy=False, **kwargs)
[ -0.006804338656365871, -0.03342961519956589, 0.001391382422298193, 0.042046621441841125, -0.03854880854487419, 0.00933660939335823, 0.005465331953018904, 0.01214214600622654, -0.02286330610513687, -0.0026711809914559126, -0.014273625798523426, 0.013062143698334694, -0.0032199914567172527, 0.03599832206964493, 0.042921073734760284, -0.011094624176621437, -0.05254006013274193, 0.015302930027246475, 0.017325103282928467, -0.043321866542100906, 0.029275963082909584, -0.02244429662823677, 0.03477773070335388, 0.06219547986984253, -0.022717563435435295, 0.0034112781286239624, 0.002238509012386203, 0.008453046903014183, 0.024940133094787598, -0.007054832763969898, -0.039896924048662186, -0.014055012725293636, 0.014811050146818161, 0.07155941426753998, -0.02031281776726246, -0.07042991369962692, -0.027964282780885696, 0.04241097718477249, -0.09116174280643463, -0.033757533878088, 0.011723137460649014, -0.07491148263216019, -0.06343428790569305, 0.0011175465770065784, 0.04004266485571861, 0.004201474133878946, -0.0028465271461755037, -0.09269203245639801, 0.01718846894800663, -0.02330053225159645, -0.020349252969026566, -0.041208602488040924, 0.057313114404678345, 0.07564019411802292, -0.027126265689730644, 0.01630490832030773, -0.00967363826930523, -0.020057769492268562, -0.05305015668272972, 0.017580151557922363, -0.08358314633369446, -0.005073649808764458, -0.05283154547214508, -0.05920776352286339, 0.056766584515571594, -0.0021155390422791243, -0.051811348646879196, 0.00011144153540953994, 0.027253789827227592, 0.003919098526239395, -0.06470952928066254, -0.023227661848068237, 0.030860908329486847, -0.0004887487157247961, 0.020221728831529617, 0.049625214189291, 0.01838173344731331, 0.018235990777611732, 0.030788037925958633, 0.0018809851026162505, -0.01805381290614605, -0.008184335194528103, 0.010010666213929653, 0.03231833130121231, -0.013763528317213058, 0.015211841091513634, 0.02759992703795433, 0.013891052454710007, -0.03605297580361366, -0.06970120221376419, -0.04321255907416344, -0.007742553949356079, -0.038730986416339874, -0.000793611747212708, -0.018536584451794624, -0.01738886535167694, -0.0018354407511651516, 0.0005841073580086231, -0.04554443433880806, 0.03177179768681526, 0.02189776487648487, -0.0427388958632946, -0.05822400376200676, 0.006171270739287138, 0.010866901837289333, -0.07636890560388565, 0.02869299426674843, -0.02501300349831581, -0.02371954172849655, 0.007637801580131054, -0.04587235301733017, 0.01804470457136631, -0.010648288764059544, 0.020331036299467087, -0.02705339342355728, 0.0017591537907719612, 0.05286797881126404, -0.024830825626850128, 0.002156528877094388, 0.026160722598433495, -0.023063700646162033, 0.04940660297870636, -0.008111463859677315, -0.011723137460649014, 0.022936176508665085, 0.03924108296632767, 0.06157607585191727, 0.021770238876342773, -0.0012809372274205089, 0.00843027513474226, -0.004741175565868616, -0.056985195726156235, -0.024940133094787598, 0.09976053237915039, 0.0354335680603981, -0.007460178341716528, -0.0004568675940390676, 0.04157295823097229, 0.010994425974786282, 0.022298555821180344, 0.035397134721279144, -0.006813447456806898, 0.04346760734915733, 0.024867260828614235, 0.048932939767837524, -0.026397554203867912, 0.014027685858309269, 0.028110025450587273, -0.03854880854487419, 0.003065140452235937, -0.027527056634426117, 0.03419476002454758, -0.03219080716371536, 0.05272223800420761, -0.05315946415066719, -0.02095044031739235, 0.06452735513448715, -0.1146991029381752, 0.04991669952869415, 0.0027736560441553593, -0.018281536176800728, 0.04740264639258385, -0.02514052763581276, -0.05184778571128845, -0.022061724215745926, 0.017589259892702103, 0.05487193539738655, -0.0680980384349823, 0.03209971636533737, -0.023901719599962234, -0.004201474133878946, -0.04886006936430931, 0.06838952004909515, 0.028929824009537697, 0.04029771685600281, 0.021770238876342773, -0.03404901921749115, -0.026452207937836647, -0.02630646526813507, 0.05388817563652992, 0.02331875078380108, 0.017206687480211258, -0.02479439042508602, 0.05920776352286339, 0.014692634344100952, 0.03251872584223747, -0.02031281776726246, 0.013599568046629429, 0.007692454848438501, 0.014218972064554691, 0.07349050045013428, 0.008835620246827602, -0.012634025886654854, -0.013535805977880955, 0.024630429223179817, 0.005028105340898037, -0.031115956604480743, 0.002693953225389123, -0.024739736691117287, 0.1389651745557785, -0.03554287552833557, -0.030642295256257057, 0.024138549342751503, 0.015384909696877003, -0.04940660297870636, -0.005064541008323431, 0.04007910192012787, 0.024466469883918762, 0.016414213925600052, -0.021988851949572563, 0.040552765130996704, -0.04153652489185333, 0.003263258608058095, -0.007965721189975739, 0.032700903713703156, -0.029622100293636322, -0.03284664452075958, 0.009445915929973125, -0.038730986416339874, 0.0261971578001976, 0.08176136761903763, 0.05534559488296509, -0.05060897395014763, -0.057531729340553284, 0.04412344843149185, -0.031207045540213585, -0.034085456281900406, -0.007259782869368792, -0.011358781717717648, -0.0032063282560557127, 0.004096721764653921, 0.014355605468153954, -0.10325834155082703, -0.019948462024331093, 0.06452735513448715, -0.01802648790180683, 0.025176962837576866, -0.07651464641094208, 0.03468663990497589, -0.028529033064842224, -0.014373823069036007, 0.008571462705731392, -0.02395637333393097, 0.015831245109438896, -0.020567866042256355, -0.014310061000287533, -0.028182895854115486, 0.030460117384791374, -0.03587079793214798, 0.04117216914892197, -0.004347216337919235, -0.033247437328100204, -0.025304486975073814, 0.05039036273956299, 0.0046182055957615376, 0.027836758643388748, 0.030860908329486847, 0.011978186666965485, -0.05530916154384613, -0.009022352285683155, -0.005979984067380428, -0.012597590684890747, -0.008416611701250076, -0.030696948990225792, 0.03521495684981346, -0.08190710842609406, 0.0217884574085474, 0.043977703899145126, 0.03587079793214798, 0.013763528317213058, 0.10384131222963333, 0.07862791419029236, -0.002287469105795026, -0.005046323407441378, 0.02353736385703087, -0.08183424174785614, 0.07199664413928986, 0.00826631486415863, 0.06055587902665138, 0.023045483976602554, -0.004354048054665327, -0.02900269627571106, -0.05017174780368805, -0.00783364288508892, -0.03594366833567619, 0.005096422042697668, -0.011859770864248276, 0.04875076189637184, -0.006726913154125214, -0.08576928079128265, 0.01954767107963562, 0.0689360573887825, -0.003399892011657357, 0.011905315332114697, -0.06350716203451157, -0.02053143084049225, -0.0307333841919899, 0.023901719599962234, -0.008721759542822838, 0.011941750533878803, -0.022171029821038246, -0.00421513756737113, 0.024739736691117287, 0.055673517286777496, 0.0474390834569931, -0.04313968867063522, -0.030642295256257057, 0.0035957330837845802, 0.02031281776726246, 0.04252028465270996, 0.0007856414886191487, 0.028000717982649803, -0.05315946415066719, 0.03931395709514618, 0.025067657232284546, -0.011222148314118385, 0.012123928405344486, 0.042921073734760284, 0.016414213925600052, 0.07319901138544083, -0.004864145535975695, -0.0035615747328847647, -0.014801940880715847, 0.03235476464033127, -0.023828847333788872, -0.046236708760261536, 0.06780655682086945, -0.08023107796907425, 0.0315714031457901, -0.031188828870654106, 0.000875591766089201, 0.0333385244011879, 0.02568706125020981, -0.003199496539309621, -0.055272724479436874, -0.014874812215566635, -0.0023341523483395576, 0.007952057756483555, -0.08001246303319931, 0.03692742809653282, -0.02920309081673622, 0.000552510900888592, 0.0017773715080693364, -0.012552046217024326, -0.009737400338053703, -0.0074009704403579235, -0.029913583770394325, -0.031188828870654106, 0.016368670389056206, 0.048932939767837524, 0.019584106281399727, -0.013991250656545162, 0.013062143698334694, 0.04124503955245018, 0.014155209995806217, 0.024521123617887497, 0.060191523283720016, -0.028948042541742325, -0.022790435701608658, 0.023701323196291924, 0.062122609466314316, -0.030460117384791374, 0.059353508055210114, -0.05702163279056549, 0.06336141377687454, 0.042374540120363235, -0.0006040330627001822, -0.038403067737817764, -0.012843530625104904, 0.02264469303190708, 0.02953101135790348, -0.017589259892702103, -0.022189248353242874, 0.031097739934921265, -0.015211841091513634, 0.013881943188607693, -0.08533205091953278, 0.04266602545976639, -0.08576928079128265, -0.012497392483055592, -0.02845616266131401, -0.056220050901174545, 0.010475220158696175, 0.04758482426404953, -0.013763528317213058, -0.004827709868550301, 0.03734643757343292, -0.002662072191014886, 0.0008192305103875697, -0.031844668090343475, -0.05982716754078865, 0.023992808535695076, -0.01590411551296711, -0.0350145623087883, 0.027435967698693275, -0.005246718879789114, -0.02836507372558117, 0.028419727459549904, 0.061284590512514114, -0.04572661221027374, -0.03384862467646599, -0.05028105527162552, -0.0537424311041832, 0.040662072598934174, -0.015639958903193474, 0.050536103546619415, 0.0022555880714207888, 0.009527895599603653, 0.02801893651485443, 0.005415233317762613, 0.05115550756454468, 0.07432851940393448, 0.04346760734915733, 0.008070473559200764, 0.024885479360818863, -0.026689037680625916, 0.00163732236251235, -0.03716425970196724, -0.0040921675972640514, 0.01846371404826641, 0.05039036273956299, 0.04372265562415123, -0.026397554203867912, 0.019711630418896675, 0.049989569932222366, -0.06321567296981812, 0.03605297580361366, 0.050208184868097305, 0.02836507372558117, 0.08926708996295929, -0.045070771127939224, -0.033119913190603256, 0.008894828148186207, -0.04787630960345268, 0.02792784757912159, 0.04539869353175163, 0.036563072353601456, 0.037109605967998505, -0.01390016172081232, 0.05068184807896614, 0.052139267325401306, -0.008885718882083893, 0.03909534215927124, -0.0664220005273819, 0.0015006890753284097, -0.009445915929973125, -0.0419008806347847, 0.05596500262618065, -0.030132196843624115, -0.007856414653360844, 0.044196318835020065, 0.01878252439200878, 0.03231833130121231, -0.02780032344162464, 0.07629603892564774, -0.007733445148915052, -0.06379864364862442, -0.04135434702038765, 0.013973032124340534, 0.00025604511029087007, 0.00690453639253974, -0.014756396412849426, -0.012096601538360119, -0.015858571976423264, 0.05549133941531181, -0.005806915462017059, 0.03428585082292557, -0.02138766646385193, 0.01477461401373148, -0.007246119435876608, 0.06594833731651306, 0.02093222178518772, 0.045580871403217316, -0.058588359504938126, 0.0014608377823606133, 0.02371954172849655, 0.0014312338316813111, 0.04208305850625038, -0.03288308158516884, -0.035306043922901154, 0.007860969752073288, -0.010812249034643173, 0.01587679050862789, -0.002705339342355728, -0.03716425970196724, 0.03455911576747894, -0.02319122664630413, 0.03461376950144768, -0.024958349764347076, 0.03330209106206894, -0.049370165914297104, 0.021187270060181618, 0.043868400156497955, 0.011622939258813858, -0.023865284398198128, -0.005319589748978615, -0.01492946594953537, 0.061721816658973694, 0.009473241865634918, 0.030642295256257057, -0.01068472396582365, -0.009518786333501339, -0.07203307747840881, 0.0143373878672719, -0.00008624976908322424, 0.0121330376714468, 0.008571462705731392, 0.017762329429388046, -0.011531850323081017, -0.0034294959623366594, -0.04197375103831291, -0.015175405889749527, -0.009427698329091072, 0.041937313973903656, 0.023136572912335396, 0.0024890033528208733, 0.004855036735534668, -0.019711630418896675, -0.06671348959207535, -0.020367471501231194, 0.019802719354629517, 0.04354047775268555, -0.0070457239635288715, -0.02794606424868107, -0.018099358305335045, -0.007482950575649738, 0.004413255490362644, -0.02213459461927414, 0.06044657155871391, 0.020859351381659508, -0.04900581017136574, -0.053123027086257935, -0.015284712426364422, -0.016997182741761208, -0.019820937886834145, 0.0003259273653384298, 0.08970431983470917, -0.04437849670648575, 0.05254006013274193, -0.01003799308091402, -0.023901719599962234, 0.019420146942138672, 0.050645411014556885, -0.023701323196291924, 0.041317909955978394, 0.046564631164073944, -0.012697787955403328, 0.017589259892702103, 0.01717936061322689, -0.025759931653738022, -0.041208602488040924, -0.002198657486587763, 0.02652507834136486, -0.013927487656474113, -0.026689037680625916, 0.032500509172677994, -0.028055371716618538, -0.06613051891326904, -0.0041559296660125256, 0.0012501947348937392, 0.0018695989856496453, -0.03927752003073692, 0.0848948284983635, 0.029713189229369164, -0.07013843208551407, 0.002448013285174966, -0.03924108296632767, 0.04423275589942932, -0.040662072598934174, 0.009828489273786545, 0.042046621441841125, -0.04139078035950661, 0.008544135838747025, -0.015257385559380054, -0.011222148314118385, -0.0031516747549176216, -0.039058905094861984, -0.02942170388996601, -0.0029034577310085297, -0.04820422828197479, -0.03634445741772652, 0.08023107796907425, 0.0024184095673263073, 0.009058788418769836, 0.03148031234741211, -0.02020351029932499, -0.004458799958229065, 0.022936176508665085, 0.049989569932222366, -0.008767304010689259, 0.014637981541454792, 0.0408078134059906, -0.031097739934921265, 0.035178519785404205, -0.02266290970146656, -0.05188421905040741, -0.034085456281900406, 0.019948462024331093, -0.02953101135790348, -0.006995625328272581, -0.004449691157788038, -0.002060885541141033, -0.04641888663172722, 0.01590411551296711, -0.011841553263366222, -0.0507182814180851, -0.0005735752056352794, 0.034103672951459885, 0.0416458323597908, -0.02577815018594265, 0.002142865676432848, -0.002826032228767872, 0.04918798804283142, -0.040989991277456284, 0.02599676325917244, -0.0766603946685791, -0.07247030735015869, -0.004401869606226683, 0.026488643139600754, -0.05159273371100426, -0.040552765130996704, -0.0015473722014576197, -0.02277221716940403, -0.04262959212064743, -0.01954767107963562, -0.020239947363734245, 0.017261341214179993, -0.051483429968357086, 0.006576616317033768, 0.0009478935389779508, 0.004076227080076933, -0.02985893189907074, 0.012515610083937645, -0.034850601106882095, 0.024411816149950027, -0.015512434765696526, 0.00141643185634166, 0.008298195898532867, 0.021660933271050453, 0.09116174280643463, 0.022936176508665085, -0.00604374660179019, 0.00848948210477829, -0.033994365483522415, 0.06474597007036209, -0.08314591646194458, 0.010229280218482018, -0.056001435965299606, 0.019365493208169937, -0.01025660615414381, -0.04955234378576279, 0.05188421905040741, 0.030205069109797478, 0.013781745918095112, 0.02160627953708172, 0.016459759324789047, -0.04317612200975418, -0.04565374180674553, -0.009163539856672287, -0.02608785219490528, -0.04605453088879585, 0.027144482359290123, -0.02501300349831581, -0.05949924886226654, -0.01835440658032894, -0.019055791199207306, -0.006576616317033768, 0.00652196304872632, 0.047329775989055634, 0.0040921675972640514, -0.019948462024331093, -0.01891004852950573, 0.027964282780885696, -0.008453046903014183, 0.04354047775268555, 0.01492946594953537, 0.04944303631782532, 0.005356025416404009, -0.000683166494127363, -0.03124348260462284, 0.021679149940609932, 0.040552765130996704, -0.03175358101725578, 0.021733803674578667, -0.016277581453323364, -0.02320944331586361, -0.05414322391152382, 0.006599388550966978, 0.0037391979712992907, 0.029148437082767487, 0.06678635627031326, 0.0031835560221225023, 0.0438319630920887, -0.022207466885447502, -0.0664220005273819, -0.002687121508643031, -0.04004266485571861, -0.01257026381790638, 0.003447713563218713, 0.06649487465620041, -0.033575356006622314, -0.059863604605197906, -0.038730986416339874, -0.003866722574457526, 0.0042310780845582485, -0.008662551641464233, -0.021187270060181618, 0.002536824904382229, 0.01783519983291626, -0.016623718664050102, -0.008849283680319786, 0.04423275589942932, 0.017862526699900627, -0.00887205544859171, -0.028948042541742325, 0.027563491836190224, -0.0217884574085474, 0.04740264639258385, -0.04729333892464638, 0.004139989148825407, 0.031953975558280945, -0.024958349764347076, 0.03381218761205673, 0.07265248149633408, -0.02490369603037834, 0.002857913263142109, -0.03124348260462284, -0.05232144519686699, -0.03548822179436684, -0.03676346689462662, 0.05202995985746384, 0.009901359677314758, -0.013973032124340534, -0.039459697902202606, -0.03563396632671356, 0.019584106281399727, 0.003604841884225607, -0.046346016228199005, -0.011185713112354279, 0.011486305855214596, -0.009072450920939445, -0.0017557379323989153, 0.006485527381300926, 0.06638556718826294, -0.030350811779499054, -0.02202528901398182, 0.05807826295495033, -0.0033110803924500942, 0.0015564810018986464, -0.01717936061322689, 0.031061304733157158, 0.06427230685949326, -0.057094503194093704, -0.06787942349910736, 0.055709950625896454, -0.06343428790569305, -0.012661352753639221, 0.00542434211820364, -0.011950859799981117, -0.010921555571258068, -0.020349252969026566, -0.009473241865634918, -0.03288308158516884, 0.012014621868729591, 0.002089350949972868, 0.025377359241247177, 0.019037572667002678, -0.009455024264752865 ]
21,080
sortedcontainers.sorteddict
values
Return new sorted values view of the sorted dict's values. See :class:`SortedValuesView` for details. :return: new sorted values view
def values(self): """Return new sorted values view of the sorted dict's values. See :class:`SortedValuesView` for details. :return: new sorted values view """ return SortedValuesView(self)
(self)
[ 0.02174193039536476, -0.05249553918838501, -0.06512529402971268, -0.045862410217523575, 0.018994877114892006, 0.041004814207553864, -0.012571124359965324, -0.01134834997355938, 0.05068650469183922, -0.010619710199534893, -0.023885972797870636, 0.011323224753141403, 0.026499025523662567, -0.002099025994539261, 0.015033422969281673, 0.047470442950725555, 0.030251100659370422, 0.02723604068160057, -0.030937863513827324, 0.036750227212905884, 0.008270476944744587, -0.0741034671664238, -0.009782194159924984, 0.0010154888732358813, -0.04083731025457382, -0.06107171252369881, -0.015016673132777214, -0.07691752165555954, 0.029748590663075447, 0.02559450827538967, -0.05537659674882889, -0.0012154459254816175, -0.0018844123696908355, 0.015494056977331638, -0.026281271129846573, -0.05986568704247475, 0.02927958033978939, -0.009304809384047985, 0.02983234077692032, 0.06301475316286087, -0.01731984317302704, -0.04777194559574127, -0.016172446310520172, -0.04539339989423752, 0.027973053976893425, 0.038123756647109985, 0.04278034716844559, 0.027705049142241478, 0.09172482043504715, -0.02479049190878868, 0.020234400406479836, -0.011825734749436378, -0.014966421760618687, 0.00045330586726777256, -0.04294785112142563, 0.021825682371854782, 0.061306215822696686, 0.02433823235332966, -0.00490365969017148, 0.04468988627195358, -0.009229432791471481, -0.020519156008958817, 0.006080370396375656, -0.04797295108437538, -0.00014682713663205504, -0.020837413147091866, 0.02479049190878868, -0.011741982772946358, -0.02430473268032074, -0.02430473268032074, -0.05323255434632301, -0.023400213569402695, 0.045024894177913666, 0.04512539505958557, -0.03316565603017807, 0.04053580388426781, -0.025393502786755562, 0.013056883588433266, 0.023969724774360657, -0.06948037445545197, 0.005221915896981955, -0.030937863513827324, 0.044823888689279556, 0.01824111118912697, -0.01877712272107601, -0.01044383179396391, 0.02525950036942959, -0.0034945381339639425, 0.07417047023773193, 0.09936296939849854, -0.005540172569453716, 0.016582828015089035, -0.03701823577284813, -0.010460582561790943, -0.023450465872883797, 0.010829090140759945, 0.009489063173532486, 0.011465602554380894, -0.06197622790932655, 0.026214269921183586, 0.018760371953248978, 0.037755247205495834, -0.008819050155580044, 0.022931205108761787, -0.051155515015125275, -0.03725273907184601, 0.0062604364939033985, -0.013911151327192783, -0.008584544993937016, 0.03068660944700241, -0.006331625394523144, 0.08381865918636322, 0.0741034671664238, 0.04237833991646767, -0.01200998853892088, -0.00706864008679986, -0.013567768968641758, -0.010921216569840908, -0.012604624964296818, 0.01973189041018486, -0.05363456532359123, 0.03554420545697212, 0.026415273547172546, 0.057219136506319046, -0.08221063017845154, 0.028425313532352448, -0.015133924782276154, -0.0635172575712204, -0.012897755950689316, 0.03946378082036972, 0.018073609098792076, -0.0320768877863884, -0.0004951817099936306, -0.01200998853892088, 0.06901136785745621, -0.02257944829761982, 0.09004978835582733, 0.009036804549396038, 0.06458928436040878, 0.09011678397655487, 0.0018121765460819006, 0.04535989835858345, 0.04415387660264969, 0.027721799910068512, 0.03494119271636009, -0.037956252694129944, 0.03500819578766823, 0.13896074891090393, 0.012814003974199295, 0.00409126840531826, -0.0030757796484977007, 0.03216063603758812, 0.0814066156744957, 0.050787005573511124, 0.02554425597190857, -0.05068650469183922, -0.01584581471979618, -0.06512529402971268, 0.005808177869766951, -0.00865992158651352, 0.011055218987166882, -0.004244115203619003, 0.022445445880293846, -0.02718578837811947, -0.015577808953821659, 0.04639841988682747, 0.06874336302280426, -0.041808828711509705, -0.0575876422226429, 0.006239498965442181, -0.020351653918623924, -0.026968033984303474, -0.07021739333868027, 0.007345020771026611, 0.009690066799521446, -0.005870991386473179, 0.00011424250260461122, 0.041004814207553864, 0.029664838686585426, 0.016993211582303047, -0.005799802485853434, -0.010460582561790943, -0.04529289901256561, 0.005745363887399435, 0.02125617116689682, -0.010552708990871906, 0.011323224753141403, 0.020066898316144943, 0.027487294748425484, 0.0014363409718498588, -0.012663250789046288, -0.01924613118171692, 0.0037583557423204184, -0.05611361190676689, -0.026214269921183586, -0.004451400600373745, -0.06921236962080002, -0.010896091349422932, -0.003408692544326186, 0.023718470707535744, -0.034673187881708145, -0.08167462050914764, 0.0162478219717741, -0.03460618481040001, 0.002680053235962987, 0.04418737813830376, -0.02097141556441784, -0.027537545189261436, 0.02306520752608776, -0.010477332398295403, 0.04150732234120369, -0.03273014724254608, -0.02718578837811947, -0.016113819554448128, -0.03068660944700241, -0.0695473775267601, -0.024974744766950607, -0.05182552710175514, -0.015175800770521164, -0.035309698432683945, 0.0761135071516037, 0.015820689499378204, 0.008425417356193066, -0.021004917100071907, 0.047671444714069366, -0.030753610655665398, 0.004409525077790022, -0.0834166556596756, -0.05048550292849541, -0.035075195133686066, 0.048877470195293427, -0.057051632553339005, -0.03869326785206795, -0.03180887922644615, 0.03564470633864403, -0.007709340192377567, -0.019765391945838928, -0.013283013366162777, -0.04271334782242775, 0.05470658466219902, -0.015577808953821659, 0.05373506620526314, 0.049748487770557404, 0.049111973494291306, -0.07584550231695175, -0.0030757796484977007, -0.01812385953962803, 0.02606351673603058, 0.02470673993229866, 0.005770489573478699, 0.004254584200680256, -0.051323018968105316, -0.005393607076257467, -0.004084987100213766, 0.0011400694493204355, -0.022746950387954712, 0.00663731899112463, 0.009958072565495968, 0.03474018722772598, -0.038927771151065826, -0.004694280680269003, 0.008752048946917057, -0.056214116513729095, 0.05839165672659874, 0.026365023106336594, -0.013726897537708282, 0.05326605588197708, -0.027705049142241478, -0.006863448768854141, 0.03577870875597, 0.0364152230322361, -0.01639857515692711, -0.08549369871616364, -0.02530975267291069, -0.006059432867914438, 0.041172318160533905, 0.031138867139816284, -0.02499149553477764, -0.06046869978308678, 0.018542617559432983, -0.009028429165482521, -0.02747054398059845, -0.04623091593384743, 0.023249460384249687, 0.014438786543905735, 0.013517518527805805, -0.03457268700003624, -0.02341696433722973, -0.029095327481627464, -0.0208541639149189, 0.0654267966747284, 0.016105445101857185, -0.012613000348210335, -0.030368352308869362, 0.026700029149651527, 0.0017818165943026543, -0.03577870875597, -0.015125550329685211, -0.020586159080266953, 0.0735674574971199, -0.00047529066796414554, -0.024840742349624634, 0.0629812479019165, 0.06492428481578827, 0.05182552710175514, 0.05206003412604332, -0.007152392063289881, -0.0029480585362762213, 0.0035887586418539286, -0.017906105145812035, -0.0198993943631649, 0.05283054709434509, 0.011968112550675869, 0.01623944751918316, -0.02458948828279972, -0.035711709409952164, -0.051792025566101074, 0.004581215791404247, 0.015226052142679691, 0.041205815970897675, -0.07417047023773193, 0.004912035074084997, -0.07135641574859619, -0.058224156498909, 0.006963950581848621, 0.022445445880293846, -0.000056237931858049706, -0.003837919794023037, 0.008035971783101559, 0.02430473268032074, -0.008752048946917057, -0.024656489491462708, 0.06921236962080002, 0.05159102380275726, 0.026197519153356552, 0.025661509484052658, 0.04251234233379364, 0.05249553918838501, -0.016624704003334045, -0.04408687353134155, 0.009530939161777496, -0.036750227212905884, -0.0370517335832119, -0.006168309599161148, -0.01620594598352909, 0.0009050414082594216, 0.0064153773710131645, -0.00003343523349030875, 0.052562542259693146, -0.040167298167943954, 0.026365023106336594, -0.027772050350904465, -0.00185195857193321, 0.035075195133686066, 0.0011275067226961255, 0.018425365909934044, 0.02430473268032074, -0.019195880740880966, 0.0031092804856598377, -0.009237808175384998, 0.050753507763147354, 0.011038469150662422, -0.04207683354616165, -0.03993279114365578, 0.041172318160533905, -0.0112478481605649, -0.02077041193842888, -0.036314718425273895, 0.00007079632632667199, -0.006088745780289173, -0.003992860205471516, -0.017336593940854073, 0.048877470195293427, 0.05350055918097496, 0.009480687789618969, -0.043651364743709564, -0.032261140644550323, 0.040736809372901917, -0.010477332398295403, 0.006758759263902903, 0.05128951743245125, 0.004958098288625479, 0.016859209164977074, 0.014664915390312672, -0.01652420312166214, -0.020921165123581886, 0.04582890868186951, -0.01409540418535471, -0.026499025523662567, -0.0396982878446579, -0.056616123765707016, -0.01689271070063114, -0.06103821098804474, 0.02030140347778797, -0.009597940370440483, 0.004124769475311041, -0.004928785376250744, 0.022730201482772827, 0.004539339803159237, -0.03654922544956207, 0.06867635995149612, -0.030820611864328384, -0.0150836743414402, -0.021507427096366882, -0.01993289589881897, -0.07149041444063187, 0.05658262223005295, 0.0284755639731884, 0.011666606180369854, -0.04113881662487984, 0.008978177793323994, -0.026448775082826614, -0.004757094196975231, -0.026566026732325554, 0.04291434958577156, -0.032830651849508286, -0.030619606375694275, 0.01695971190929413, 0.014539288356900215, 0.0014991547213867307, 0.03353416547179222, 0.007202642969787121, -0.048475462943315506, 0.04458938539028168, 0.033902671188116074, -0.03839176148176193, -0.02919582836329937, 0.061741724610328674, 0.016339948400855064, 0.0016226883744820952, 0.05919567495584488, -0.02582901157438755, 0.01909537799656391, 0.00822022557258606, 0.024405233561992645, 0.004501651972532272, 0.03561120480298996, -0.011783858761191368, 0.0037332302890717983, 0.054204076528549194, -0.02185918390750885, 0.0011840390507131815, 0.05206003412604332, -0.04087081179022789, 0.05403657257556915, -0.0029983094427734613, 0.027219289913773537, -0.00543548259884119, 0.022026685997843742, -0.06535979360342026, 0.08167462050914764, 0.020100397989153862, 0.052763547748327255, -0.02887757308781147, -0.017906105145812035, 0.007378521375358105, -0.0662643164396286, -0.03738674148917198, -0.020150650292634964, 0.0681738555431366, 0.03160787746310234, -0.031741879880428314, -0.012336619198322296, -0.060066692531108856, -0.08314865082502365, -0.010376830585300922, -0.05025099590420723, -0.022596197202801704, -0.04291434958577156, 0.030452104285359383, 0.052596043795347214, -0.0012782596750184894, -0.03584571182727814, -0.05658262223005295, -0.10432107001543045, 0.019882643595337868, 0.04060280695557594, -0.0150836743414402, -0.06080370396375656, -0.0000018770514316202025, -0.025209249928593636, -0.03463968634605408, -0.020117148756980896, 0.019681639969348907, -0.027487294748425484, 0.04716893658041954, 0.004970660898834467, -0.014522537589073181, 0.0032977217342704535, -0.015971440821886063, 0.038324758410453796, -0.026616277173161507, -0.04492438957095146, -0.0019535075407475233, -0.010008323937654495, 0.017554348334670067, 0.03092111274600029, 0.005879366770386696, -0.04164132475852966, 0.009262933395802975, 0.01664983108639717, -0.01849236711859703, 0.028090307489037514, 0.01877712272107601, 0.03698473423719406, -0.03839176148176193, 0.0396982878446579, -0.020870914682745934, -0.034907691180706024, -0.05819065496325493, -0.007759591564536095, -0.027118787169456482, -0.008270476944744587, -0.021205920726060867, 0.022026685997843742, -0.014045153744518757, -0.07825755327939987, -0.020954664796590805, -0.03167487680912018, -0.03023434989154339, 0.00826210156083107, 0.00108249019831419, -0.0020875101909041405, -0.0211724191904068, -0.02554425597190857, 0.023333212360739708, -0.035309698432683945, 0.026130517944693565, 0.04633142054080963, -0.002508362289518118, 0.02442198432981968, -0.048944469541311264, 0.0050334748812019825, 0.02237844467163086, -0.004304835572838783, 0.023366713896393776, -0.023165710270404816, 0.020401904359459877, -0.09634791314601898, 0.05128951743245125, 0.0005454326746985316, 0.0172025915235281, 0.020954664796590805, -0.04522589594125748, 0.04519239440560341, 0.024723490700125694, -0.04582890868186951, -0.056046612560749054, 0.0010484660742804408, -0.02525950036942959, -0.042043332010507584, -0.0007930235587991774, 0.06318224966526031, -0.046465422958135605, -0.022411944344639778, 0.03721923753619194, -0.012043489143252373, 0.013308138586580753, 0.03184238076210022, -0.039731789380311966, 0.08180861920118332, 0.02959783747792244, -0.011800608597695827, 0.016700081527233124, -0.04921247437596321, 0.06968138366937637, -0.004706843290477991, 0.057889148592948914, -0.023333212360739708, 0.021306421607732773, -0.015393555164337158, -0.01711883954703808, -0.015703435987234116, 0.04958098381757736, 0.04418737813830376, 0.0107704633846879, 0.01409540418535471, 0.027286291122436523, -0.016666579991579056, -0.0058374907821416855, -0.022763701155781746, 0.03425442799925804, 0.05437157675623894, -0.02726954035460949, -0.041373319923877716, 0.04696793109178543, 0.006180872675031424, 0.1038520559668541, 0.06830785423517227, -0.011281348764896393, -0.0015494057442992926, -0.02819080837070942, -0.05068650469183922, -0.032060135155916214, 0.004193864297121763, -0.038324758410453796, -0.10954717546701431, 0.01760459877550602, -0.0371522381901741, -0.0006543098716065288, -0.009782194159924984, 0.029128827154636383, -0.023735221475362778, -0.005992431193590164, 0.02237844467163086, -0.032981403172016144, 0.05983218550682068, 0.01071183755993843, 0.0058374907821416855, 0.0019231474725529552, -0.011942986398935318, 0.000325322849676013, 0.03417067602276802, -0.0212226714938879, 0.03264639899134636, -0.017537597566843033, 0.019112128764390945, -0.005150726996362209, -0.020267901942133904, 0.0019524606177583337, -0.013551019132137299, 0.013819023966789246, -0.0162478219717741, 0.06244523823261261, -0.012705126777291298, -0.05159102380275726, 0.03083736076951027, 0.022529195994138718, 0.021825682371854782, -0.008044347167015076, 0.02033490315079689, -0.033869173377752304, -0.0005501437117345631, 0.006955575663596392, -0.0741034671664238, -0.023366713896393776, -0.020066898316144943, -0.014589539729058743, 0.02113891951739788, 0.010401956737041473, 0.029212579131126404, -0.004543527495115995, -0.010167451575398445, 0.05798964947462082, -0.012051863595843315, -0.0038860770873725414, -0.0608707070350647, 0.006084558088332415, 0.03534319996833801, -0.0076423389837145805, -0.0036787916906177998, 0.016875959932804108, -0.01584581471979618, -0.02534325234591961, -0.03537670150399208, -0.015736937522888184, 0.03886077180504799, -0.016917835921049118, 0.0016279228730127215, -0.0012018362758681178, -0.021825682371854782, -0.00850079394876957, -0.020502407103776932, -0.0848906859755516, 0.111155204474926, 0.05222753435373306, -0.051323018968105316, 0.08904476463794708, -0.0026256146375089884, 0.02381897158920765, 0.02398647554218769, 0.0004590637981891632, -0.0059840562753379345, 0.024957995861768723, -0.01695971190929413, 0.006909511983394623, 0.01716908998787403, 0.05474008619785309, 0.054204076528549194, -0.045024894177913666, 0.022328192368149757, 0.0390617735683918, -0.012713502161204815, 0.021792182698845863, -0.0397987887263298, -0.032830651849508286, -0.06123921275138855, 0.0005825975094921887, 0.014564413577318192, -0.07162442058324814, 0.0030192474368959665, -0.08254563808441162, -0.014262908138334751, -0.03356766700744629, -0.0215409267693758, 0.05182552710175514, 0.017705101519823074, -0.01628132350742817, 0.03524269908666611, 0.020803913474082947, 0.016691705211997032, 0.03433817997574806, 0.043416861444711685, 0.007420397363603115, 0.021758681163191795, -0.006176684983074665, 0.004271334502846003, 0.005900304298847914, 0.029547585174441338, -0.038425263017416, 0.027018286287784576, 0.05638161674141884, -0.06244523823261261, -0.03557770699262619, 0.001969211036339402, 0.021959684789180756, -0.013827399350702763, -0.0016069849953055382, 0.030937863513827324, 0.027370043098926544, -0.0006522160838358104, 0.010259578004479408, -0.016574453562498093, 0.022428695112466812, 0.035108696669340134, 0.06576180458068848, -0.0028349936474114656, 0.006457252893596888, -0.10907816141843796, -0.06180872395634651, -0.015711812302470207, 0.007956407964229584, 0.00013217059313319623, -0.043416861444711685, -0.04629791900515556, 0.028525816276669502, 0.007181704975664616, 0.020318152382969856, 0.04127281904220581, 0.06659932434558868, -0.0013798086438328028, 0.010803963989019394, 0.0456279031932354, 0.008835799992084503, 0.03845876082777977, -0.05564460530877113, 0.02113891951739788, -0.002661209087818861, -0.03256264701485634, 0.032060135155916214, 0.023249460384249687, 0.06040169671177864, -0.004214802291244268, -0.00020558416144922376, 0.028425313532352448, 0.013098759576678276, -0.014606289565563202, 0.005653236992657185, -0.0013169948942959309, -0.0163566991686821, -0.07745353877544403, -0.041607826948165894, -0.04743694141507149, 0.013492392376065254, -0.02671677991747856, 0.03879376873373985, 0.044053371995687485, 0.011599604971706867 ]
21,081
tfields.mesh_3d
Mesh3D
Points3D child used as vertices combined with faces to build a geometrical mesh of triangles Examples: >>> import tfields >>> import numpy as np >>> m = tfields.Mesh3D([[1,2,3], [3,3,3], [0,0,0], [5,6,7]], faces=[[0, 1, 2], [1, 2, 3]]) >>> m.equal([[1, 2, 3], ... [3, 3, 3], ... [0, 0, 0], ... [5, 6, 7]]) True >>> np.array_equal(m.faces, [[0, 1, 2], [1, 2, 3]]) True conversion to points only >>> tfields.Points3D(m).equal([[1, 2, 3], ... [3, 3, 3], ... [0, 0, 0], ... [5, 6, 7]]) True Empty instances >>> m = tfields.Mesh3D([]); going from Mesh3D to Triangles3D instance is easy and will be cached. >>> m = tfields.Mesh3D([[1,0,0], [0,1,0], [0,0,0]], faces=[[0, 1, 2]]); >>> assert m.triangles().equal(tfields.Triangles3D([[ 1., 0., 0.], ... [ 0., 1., 0.], ... [ 0., 0., 0.]])) a list of scalars is assigned to each face >>> mScalar = tfields.Mesh3D([[1,0,0], [0,1,0], [0,0,0]], ... faces=([[0, 1, 2]], [.5])); >>> np.array_equal(mScalar.faces.fields, [[ 0.5]]) True adding together two meshes: >>> m2 = tfields.Mesh3D([[1,0,0],[2,0,0],[0,3,0]], ... faces=([[0,1,2]], [.7])) >>> msum = tfields.Mesh3D.merged(mScalar, m2) >>> msum.equal([[ 1., 0., 0.], ... [ 0., 1., 0.], ... [ 0., 0., 0.], ... [ 1., 0., 0.], ... [ 2., 0., 0.], ... [ 0., 3., 0.]]) True >>> assert np.array_equal(msum.faces, [[0, 1, 2], [3, 4, 5]]) Saving and reading >>> from tempfile import NamedTemporaryFile >>> outFile = NamedTemporaryFile(suffix='.npz') >>> m.save(outFile.name) >>> _ = outFile.seek(0) >>> m1 = tfields.Mesh3D.load(outFile.name, allow_pickle=True) >>> bool(np.all(m == m1)) True >>> assert np.array_equal(m1.faces, np.array([[0, 1, 2]]))
class Mesh3D(tfields.TensorMaps): # pylint: disable=R0904 """ Points3D child used as vertices combined with faces to build a geometrical mesh of triangles Examples: >>> import tfields >>> import numpy as np >>> m = tfields.Mesh3D([[1,2,3], [3,3,3], [0,0,0], [5,6,7]], faces=[[0, 1, 2], [1, 2, 3]]) >>> m.equal([[1, 2, 3], ... [3, 3, 3], ... [0, 0, 0], ... [5, 6, 7]]) True >>> np.array_equal(m.faces, [[0, 1, 2], [1, 2, 3]]) True conversion to points only >>> tfields.Points3D(m).equal([[1, 2, 3], ... [3, 3, 3], ... [0, 0, 0], ... [5, 6, 7]]) True Empty instances >>> m = tfields.Mesh3D([]); going from Mesh3D to Triangles3D instance is easy and will be cached. >>> m = tfields.Mesh3D([[1,0,0], [0,1,0], [0,0,0]], faces=[[0, 1, 2]]); >>> assert m.triangles().equal(tfields.Triangles3D([[ 1., 0., 0.], ... [ 0., 1., 0.], ... [ 0., 0., 0.]])) a list of scalars is assigned to each face >>> mScalar = tfields.Mesh3D([[1,0,0], [0,1,0], [0,0,0]], ... faces=([[0, 1, 2]], [.5])); >>> np.array_equal(mScalar.faces.fields, [[ 0.5]]) True adding together two meshes: >>> m2 = tfields.Mesh3D([[1,0,0],[2,0,0],[0,3,0]], ... faces=([[0,1,2]], [.7])) >>> msum = tfields.Mesh3D.merged(mScalar, m2) >>> msum.equal([[ 1., 0., 0.], ... [ 0., 1., 0.], ... [ 0., 0., 0.], ... [ 1., 0., 0.], ... [ 2., 0., 0.], ... [ 0., 3., 0.]]) True >>> assert np.array_equal(msum.faces, [[0, 1, 2], [3, 4, 5]]) Saving and reading >>> from tempfile import NamedTemporaryFile >>> outFile = NamedTemporaryFile(suffix='.npz') >>> m.save(outFile.name) >>> _ = outFile.seek(0) >>> m1 = tfields.Mesh3D.load(outFile.name, allow_pickle=True) >>> bool(np.all(m == m1)) True >>> assert np.array_equal(m1.faces, np.array([[0, 1, 2]])) """ def __new__(cls, tensors, *fields, **kwargs): kwargs["dim"] = 3 if "maps" in kwargs and "faces" in kwargs: raise ValueError("Conflicting options maps and faces") faces = kwargs.pop("faces", None) maps = kwargs.pop("maps", None) if faces is not None: if len(faces) == 0: # faces = [] faces = np.empty((0, 3)) maps = [faces] if maps is not None: kwargs["maps"] = maps obj = super(Mesh3D, cls).__new__(cls, tensors, *fields, **kwargs) if len(obj.maps) > 1: raise ValueError("Mesh3D only allows one map") if obj.maps and (len(obj.maps) > 1 or obj.maps.keys()[0] != 3): raise ValueError("Face dimension should be 3") return obj def _save_obj(self, path, **kwargs): """ Save obj as wavefront/.obj file """ obj = kwargs.pop("object", None) group = kwargs.pop("group", None) cmap = kwargs.pop("cmap", "viridis") map_index = kwargs.pop("map_index", None) path = path.replace(".obj", "") directory, name = os.path.split(path) if map_index is not None: scalars = self.maps[3].fields[map_index] min_scalar = scalars[~np.isnan(scalars)].min() max_scalar = scalars[~np.isnan(scalars)].max() vmin = kwargs.pop("vmin", min_scalar) vmax = kwargs.pop("vmax", max_scalar) if vmin == vmax: if vmin == 0.0: vmax = 1.0 else: vmin = 0.0 import matplotlib.colors as colors import matplotlib.pyplot as plt norm = colors.Normalize(vmin, vmax) color_map = plt.get_cmap(cmap) else: # switch for not coloring the triangles and thus not producing the # materials norm = None if len(kwargs) != 0: raise ValueError("Unused arguments.") if norm is not None: mat_name = name + "_frame_{0}.mat".format(map_index) scalars[np.isnan(scalars)] = min_scalar - 1 sorted_scalars = scalars[scalars.argsort()] sorted_scalars[sorted_scalars == min_scalar - 1] = np.nan sorted_faces = self.faces[scalars.argsort()] scalar_set = np.unique(sorted_scalars) scalar_set[scalar_set == min_scalar - 1] = np.nan mat_path = os.path.join(directory, mat_name) with open(mat_path, "w") as mf: for s in scalar_set: if np.isnan(s): mf.write("newmtl nan") mf.write("Kd 0 0 0\n\n") else: mf.write("newmtl mtl_{0}\n".format(s)) mf.write( "Kd {c[0]} {c[1]} {c[2]}\n\n".format(c=color_map(norm(s))) ) else: sorted_faces = self.faces # writing of the obj file with open(path + ".obj", "w") as f: f.write("# File saved with tfields Mesh3D._save_obj method\n\n") if norm is not None: f.write("mtllib ./{0}\n\n".format(mat_name)) if obj is not None: f.write("o {0}\n".format(obj)) if group is not None: f.write("g {0}\n".format(group)) for vertex in self: f.write("v {v[0]} {v[1]} {v[2]}\n".format(v=vertex)) last_scalar = None for i, face in enumerate(sorted_faces + 1): if norm is not None: if not last_scalar == sorted_scalars[i]: last_scalar = sorted_scalars[i] f.write("usemtl mtl_{0}\n".format(last_scalar)) f.write("f {f[0]} {f[1]} {f[2]}\n".format(f=face)) @classmethod def _load_obj(cls, path, *group_names): """ Factory method Given a path to a obj/wavefront file, construct the object """ import csv log = logging.getLogger() with open(path, mode="r") as f: reader = csv.reader(f, delimiter=" ") groups = [] group = None vertex_no = 1 for line in reader: if not line: continue if line[0] == "#": continue if line[0] == "g": if group: groups.append(group) group = dict(name=line[1], vertices={}, faces=[]) elif line[0] == "v": if not group: log.debug("No group found. Setting default 'Group'") group = dict(name="Group", vertices={}, faces=[]) vertex = list(map(float, line[1:4])) group["vertices"][vertex_no] = vertex vertex_no += 1 elif line[0] == "f": face = [] for v in line[1:]: w = v.split("/") face.append(int(w[0])) group["faces"].append(face) else: groups.append(group) vertices = [] for g in groups[:]: vertices.extend(g["vertices"].values()) if len(group_names) != 0: groups = [g for g in groups if g["name"] in group_names] faces = [] for g in groups: faces.extend(g["faces"]) faces = np.add(np.array(faces), -1).tolist() """ Building the class from retrieved vertices and faces """
(tensors, *fields, **kwargs)
[ 0.02122674696147442, -0.03455164656043053, -0.060920003801584244, 0.04996566101908684, -0.04476992413401604, -0.01684284396469593, -0.0817895457148552, 0.0355258472263813, -0.05334288999438286, 0.014115083031356335, 0.004508383572101593, -0.00514973234385252, -0.09040580689907074, 0.03953089192509651, -0.006965533830225468, 0.018163427710533142, -0.029464153572916985, 0.053689271211624146, 0.031412553042173386, -0.003664076328277588, -0.059794262051582336, -0.035049568861722946, 0.016388216987252235, 0.041760727763175964, 0.05507480353116989, -0.0247663427144289, 0.00991519633680582, 0.005404106806963682, 0.05788915976881981, 0.029312610626220703, -0.07230732589960098, -0.01734076999127865, -0.008940995670855045, 0.02526426687836647, -0.02409522607922554, -0.07347636669874191, 0.024290066212415695, -0.006673273630440235, -0.07451551407575607, 0.031152768060564995, 0.055897459387779236, -0.03370733931660652, -0.002982136094942689, 0.0030849683098495007, 0.05386246368288994, 0.028078623116016388, 0.041132912039756775, 0.02797037921845913, -0.02450655587017536, -0.0502687469124794, -0.0026222229935228825, -0.06832393258810043, 0.053949058055877686, 0.01734076999127865, -0.04468332976102829, 0.001780622056685388, -0.007977619767189026, 0.015056810341775417, -0.05078832060098648, 0.01379034947603941, -0.00983942486345768, -0.0208695400506258, 0.009898959659039974, -0.0316290445625782, -0.05659022554755211, -0.04455343633890152, 0.006132050883024931, 0.0007117075729183853, -0.016247499734163284, 0.03680313006043434, -0.05035534128546715, 0.010981405153870583, 0.08321837335824966, -0.032343458384275436, 0.028035325929522514, 0.0225365050137043, 0.05334288999438286, 0.027234315872192383, -0.024917883798480034, -0.015132580883800983, 0.010082975029945374, -0.02994043007493019, -0.04024530574679375, -0.010326525196433067, 0.015370719134807587, 0.027364209294319153, 0.016929440200328827, -0.012372346594929695, -0.036175310611724854, -0.050571832805871964, -0.02955074980854988, -0.01477537490427494, 0.001323965610936284, -0.0012887860648334026, -0.005525881890207529, -0.05217384919524193, 0.004692398943006992, -0.031823884695768356, -0.002532921265810728, -0.0018861604621633887, 0.0075500537641346455, -0.023250918835401535, -0.05442533642053604, 0.014266625046730042, 0.008897698484361172, -0.05697990581393242, -0.041760727763175964, -0.06611574441194534, 0.000602110056206584, 0.01594441570341587, -0.04593896493315697, 0.03790722414851189, 0.02435501292347908, 0.07230732589960098, 0.021183449774980545, -0.039552539587020874, -0.03340425342321396, 0.04401221498847008, -0.01184194814413786, -0.005171380937099457, 0.008524254895746708, 0.04106796532869339, -0.038383498787879944, 0.0362619087100029, -0.011181657202541828, 0.010494304820895195, 0.07685359567403793, 0.010526778176426888, 0.006137463264167309, -0.039162859320640564, 0.0073768626898527145, 0.012556361965835094, -0.04541939124464989, -0.04927289858460426, 0.004762758035212755, 0.007447221782058477, 0.013725402764976025, -0.0398772731423378, -0.041132912039756775, 0.030784735456109047, 0.043319448828697205, 0.01970049925148487, 0.0024828582536429167, -0.01145226787775755, -0.0901460200548172, 0.004124115686863661, 0.041630834341049194, -0.0745588093996048, -0.04966257885098457, -0.04351428896188736, 0.010212868452072144, -0.024311715736985207, -0.007512168493121862, -0.00848095677793026, -0.02797037921845913, -0.0404401458799839, -0.003921157214790583, -0.08512347936630249, 0.04883991926908493, 0.029875483363866806, -0.040851473808288574, -0.015500612556934357, -0.01347644068300724, 0.08637911081314087, -0.0005506938905455172, 0.0025505111552774906, 0.06126638874411583, -0.07347636669874191, -0.0562005452811718, 0.03946594521403313, -0.007046717219054699, 0.0013429083628579974, -0.0316290445625782, 0.04723789915442467, -0.010423945263028145, 0.04005046561360359, -0.027104422450065613, -0.022471558302640915, 0.021042730659246445, 0.03139090538024902, -0.0030876745004206896, -0.0009931433014571667, 0.020425736904144287, 0.03585058078169823, -0.031022874638438225, 0.0002914145006798208, 0.02942085638642311, -0.004695105366408825, 0.06403744965791702, -0.01048348005861044, 0.001995757920667529, -0.005580003838986158, -0.003047082806006074, 0.031412553042173386, 0.023510705679655075, 0.01891031488776207, 0.03578563407063484, -0.05403565615415573, 0.043341100215911865, 0.039032965898513794, -0.0927438884973526, -0.05234704166650772, 0.022103527560830116, -0.05585416406393051, -0.04909970611333847, -0.0020593516528606415, 0.04425035044550896, -0.021042730659246445, -0.03303622081875801, 0.06589925289154053, 0.0035774807911366224, -0.06230553612112999, -0.0071170758455991745, 0.020674699917435646, 0.05009555444121361, -0.0758577436208725, -0.03810206428170204, 0.011560512706637383, -0.026000330224633217, 0.057066500186920166, 0.00450026523321867, -0.0036478396505117416, -0.03662993758916855, 0.031650692224502563, -0.08062050491571426, -0.012610484845936298, 0.01802271045744419, 0.0375608429312706, -0.03693302348256111, -0.03487638011574745, 0.03186718001961708, 0.008161635138094425, -0.01282697357237339, -0.002016053767874837, 0.010510541498661041, 0.022709695622324944, 0.0025775721296668053, -0.01178782619535923, 0.026714742183685303, -0.03030846081674099, 0.034270208328962326, -0.09239750355482101, 0.018574755638837814, -0.003412407822906971, 0.04567917808890343, 0.05429544299840927, 0.06269521266222, -0.007723245304077864, 0.017449013888835907, 0.02385708875954151, -0.019711323082447052, 0.05468512326478958, -0.029226016253232956, 0.051481086760759354, -0.02537251077592373, -0.08191943913698196, 0.06338798254728317, -0.03946594521403313, 0.013443967327475548, -0.025805490091443062, -0.02604362741112709, -0.06126638874411583, 0.09075219184160233, 0.0699259489774704, 0.04024530574679375, 0.021670550107955933, 0.03797217085957527, 0.009633760899305344, -0.006375601049512625, 0.0015248943818733096, 0.07516498118638992, 0.04511630907654762, -0.03483308106660843, 0.0015018924605101347, -0.0022826059721410275, -0.04827704653143883, 0.0024124993942677975, -0.009877311065793037, 0.041111260652542114, 0.025805490091443062, -0.013519737869501114, -0.023142674937844276, -0.04983576759696007, -0.03305787220597267, -0.014060961082577705, -0.012209979817271233, -0.029615696519613266, -0.031412553042173386, 0.016626356169581413, -0.05295320972800255, -0.012350698001682758, -0.007723245304077864, -0.04628534987568855, -0.058885008096694946, -0.029117770493030548, -0.05970766767859459, -0.05217384919524193, 0.010413121432065964, 0.03611036390066147, -0.02887963317334652, 0.02978888712823391, -0.03331765905022621, 0.15197527408599854, 0.015045985579490662, -0.043189555406570435, -0.009092537686228752, 0.00430813105776906, -0.017275823280215263, 0.0613962821662426, -0.02485293708741665, 0.01941906288266182, 0.003182388376444578, -0.04593896493315697, 0.022320015355944633, 0.04801725968718529, 0.06663531810045242, -0.011051763780415058, -0.03585058078169823, 0.03136925771832466, 0.04853683337569237, -0.00023103435523808002, -0.029723940417170525, -0.007084602490067482, 0.055118098855018616, 0.011690406128764153, -0.06689510494470596, 0.06910329312086105, -0.02965899370610714, 0.030156917870044708, -0.020880363881587982, -0.017405716702342033, -0.00560706527903676, 0.02122674696147442, 0.04147929325699806, -0.019981935620307922, -0.012772851623594761, 0.02848995290696621, -0.01684284396469593, 0.03693302348256111, 0.011484741233289242, 0.0751216858625412, 0.017524784430861473, -0.04158753901720047, 0.022752994671463966, -0.006445960141718388, -0.00952551607042551, 0.041522592306137085, -0.03847009688615799, 0.007891024462878704, 0.1135268360376358, -0.0008970763301476836, 0.018434038385748863, 0.020902013406157494, 0.05061512812972069, -0.016139255836606026, -0.025220969691872597, -0.014483114704489708, -0.06594254821538925, -0.005460935179144144, 0.03587222844362259, -0.005003602243959904, -0.009309027343988419, -0.026000330224633217, 0.04494311660528183, 0.01970049925148487, -0.040072113275527954, 0.03589387610554695, -0.03275478631258011, 0.0014572415966540575, -0.0047925254330039024, 0.02628176473081112, -0.037625789642333984, 0.005655775312334299, 0.017449013888835907, 0.03251664713025093, -0.01217750646173954, 0.012924393638968468, 0.07538147270679474, 0.021800443530082703, -0.02277464233338833, -0.011333199217915535, 0.009877311065793037, -0.009097950533032417, 0.00829694140702486, -0.007820664905011654, 0.03808041661977768, 0.03067649155855179, 0.027818836271762848, 0.011365672573447227, 0.0019714029040187597, 0.04559258371591568, 0.025848787277936935, 0.06780435889959335, -0.09231091290712357, -0.015543910674750805, 0.04645853862166405, -0.032581593841314316, 0.013541387394070625, 0.013487264513969421, -0.03253829851746559, -0.055507779121398926, -0.06983935087919235, -0.020144302397966385, 0.055118098855018616, -0.025589000433683395, -0.0016047247918322682, 0.02693123184144497, -0.00028481835033744574, 0.02446325682103634, 0.014418167993426323, 0.009054652415215969, 0.05607065185904503, -0.013054287061095238, 0.0008402479579672217, 0.008773216977715492, 0.03370733931660652, 0.010266991332173347, -0.026606498286128044, 0.028446655720472336, 0.05962107330560684, 0.004069993272423744, 0.06741467863321304, 0.036738183349370956, 0.010018028318881989, -0.011744528077542782, -0.05386246368288994, -0.07429902255535126, 0.019202575087547302, -0.005404106806963682, 0.04481322318315506, 0.014937741681933403, -0.0810534805059433, 0.02005770616233349, -0.05996745452284813, -0.01683202013373375, 0.056287139654159546, -0.009162897244095802, -0.008968057110905647, 0.013617157936096191, 0.036564990878105164, 0.0777195543050766, -0.02617352083325386, -0.002527509117498994, -0.019451536238193512, -0.02175714448094368, 0.03201872482895851, -0.03134760633111, 0.019343292340636253, -0.009125011041760445, 0.04667503014206886, 0.06122308969497681, 0.032170265913009644, -0.017048509791493416, -0.031282659620046616, 0.03935769945383072, -0.006635387893766165, 0.0026249291840940714, -0.04654513671994209, -0.008903110399842262, -0.002201422583311796, -0.0028251814655959606, 0.032603245228528976, 0.02539416030049324, -0.020642226561903954, -0.061309684067964554, 0.003563950303941965, 0.03136925771832466, -0.036868076771497726, -0.033209413290023804, -0.052780017256736755, 0.020685523748397827, -0.0003441837034188211, -0.031910479068756104, -0.03933605179190636, -0.013931067660450935, 0.03766908496618271, 0.0032554534263908863, 0.0036478396505117416, -0.04054839164018631, -0.03639180213212967, 0.0006707776337862015, -0.05481501668691635, 0.04476992413401604, -0.005268801003694534, 0.0009782597189769149, 0.06330138444900513, 0.007885611616075039, 0.03533100709319115, 0.05944788083434105, -0.04819045215845108, -0.031672339886426926, -0.021984457969665527, 0.020046882331371307, 0.022071054205298424, -0.0091358358040452, 0.05282331630587578, 0.006905999034643173, -0.0035774807911366224, -0.024679746478796005, -0.0035206524189561605, 0.019094329327344894, -0.025827137753367424, -0.06507659703493118, -0.028035325929522514, -0.025350863113999367, -0.03901131823658943, 0.020912837237119675, -0.02018759958446026, 0.03834020346403122, -0.02084789052605629, -0.036088716238737106, -0.04801725968718529, 0.03275478631258011, -0.009758241474628448, 0.021183449774980545, 0.010261578485369682, -0.03675983101129532, 0.03457329422235489, -0.06594254821538925, -0.0008646029746159911, 0.0326465405523777, 0.005203854292631149, -0.01425580121576786, -0.017557257786393166, -0.028013676404953003, -0.0020255253184586763, -0.02890128269791603, -0.024917883798480034, 0.06815073639154434, -0.0012495474657043815, -0.018596405163407326, -0.030330108478665352, -0.0221684742718935, 0.04485652223229408, 0.014981038868427277, -0.012718728743493557, 0.0463719442486763, -0.018856192007660866, 0.03028681129217148, -0.05143778771162033, 0.008388948626816273, -0.012718728743493557, 0.0019944049417972565, -0.06905999034643173, 0.050571832805871964, -0.04002881795167923, 0.02372719533741474, 0.007690771948546171, 0.013097584247589111, 0.018087655305862427, 0.033209413290023804, -0.013130057603120804, 0.020685523748397827, 0.0014856557827442884, 0.062089044600725174, 0.014158381149172783, 0.0034746485762298107, -0.04401221498847008, -0.018282495439052582, -0.03214861825108528, 0.013292424380779266, 0.043968915939331055, 0.015154230408370495, 0.02515602298080921, 0.002603280358016491, -0.04210711270570755, -0.006754457019269466, 0.031412553042173386, -0.028186868876218796, -0.0037804392632097006, 0.015078458935022354, 0.040591686964035034, 0.003477354533970356, 0.0004045638197567314, 0.04966257885098457, -0.005460935179144144, -0.005964272189885378, 0.020176775753498077, 0.01074326690286398, -0.05754277855157852, -0.0016832019900903106, 0.026996178552508354, -0.009330675937235355, 0.012264101766049862, 0.07538147270679474, 0.03691137582063675, 0.008497193455696106, 0.08585953712463379, 0.029312610626220703, 0.0016047247918322682, -0.03714951127767563, 0.030784735456109047, -0.025697244331240654, -0.01243729330599308, -0.011744528077542782, 0.021053556352853775, 0.01373622752726078, -0.015998536720871925, 0.0146996034309268, -0.019245872274041176, -0.01113835908472538, 0.007869374938309193, -0.016344919800758362, 0.03383723273873329, -0.015522261150181293, -0.056417033076286316, -0.005628713872283697, -0.00016008346574380994, 0.010234517976641655, -0.02333751507103443, 0.01327077578753233, -0.017124280333518982, -0.020912837237119675, -0.07057541608810425, -0.010505128651857376, -0.060790110379457474, -0.06351787596940994, 0.03240840509533882, 0.0808802917599678, 0.028793036937713623, -0.009698707610368729, -0.05182746797800064, -0.007696183864027262, 0.023250918835401535, 0.02277464233338833, -0.013941891491413116, 0.039812326431274414, -0.01737324334681034, 0.010856923647224903, -0.05412225052714348, -0.0060562798753380775, -0.015825346112251282, 0.009482217952609062, -0.013379020616412163, 0.0018225668463855982, -0.007008831482380629, -0.009271141141653061, -0.022363314405083656, 0.004362253472208977, 0.018574755638837814, -0.019115978851914406, 0.0058614397421479225, 0.029832184314727783, -0.007587939500808716, 0.00644054776057601, 0.0030741437803953886, 0.04598226398229599, -0.01347644068300724, 0.06061692163348198, -0.006191585678607225, -0.0048574721440672874, 0.035439249128103256, -0.03782062977552414, -0.03769073635339737, 0.01438569463789463, 0.03351249918341637, 0.014461465179920197, -0.032430052757263184, 0.0046599255874753, 0.00816704798489809, -0.03396712616086006, -0.006061692256480455, 0.018066007643938065, -0.07858550548553467, 0.005209266673773527, 0.0017264997586607933, 0.02760234847664833, 0.008372711949050426, 0.04232360050082207, 0.06542297452688217, -0.10504046082496643, -0.01134402398020029, 0.006175349000841379, 0.0012421056162565947, -0.0008436305797658861, 0.005027957260608673, 0.08720177412033081, 0.000573695870116353, -0.037734031677246094, -0.016301622614264488, 0.043059661984443665, 0.07100839167833328, -0.03587222844362259, 0.06793425232172012, 0.01521917711943388, 0.03667323663830757, -0.0398772731423378, -0.0015167760429903865, 0.02708277478814125, 0.027688942849636078, 0.00037073742714710534, 0.008026329800486565, 0.07598763704299927, -0.027688942849636078, -0.031802233308553696, -0.009671646170318127, 0.02022007293999195, 0.04057003930211067, -0.015738749876618385, 0.002637106692418456, -0.020512333139777184, -0.04598226398229599, -0.08109678328037262, 0.022731345146894455, 0.019613903015851974, 0.016215026378631592, -0.008951820433139801, 0.014493938535451889, 0.002063410822302103, -0.04208546131849289, -0.02732091210782528, 0.06286840885877609, 0.058365434408187866, -0.021140150725841522, -0.0032094495836645365, -0.0067490446381270885, 0.024939533323049545, 0.04208546131849289, 0.025848787277936935, -0.021280869841575623, 0.0018049770733341575, 0.034638240933418274, 0.007788192015141249, 0.014613008126616478, -0.01801188476383686, -0.02693123184144497, -0.054468631744384766, -0.024571502581238747, -0.07213413715362549, 0.009877311065793037, 0.011777001433074474, 0.03769073635339737, -0.03188883140683174, 0.010808213613927364, -0.008978881873190403, -0.03875153139233589, 0.07118158787488937, -0.04641524329781532, -0.04050509259104729, 0.07347636669874191, -0.03624025732278824, -0.03849174454808235, -0.05152438208460808, -0.02539416030049324, 0.020144302397966385, 0.032321806997060776, 0.05542118474841118, 0.0385783389210701, -0.054468631744384766, -0.000747563608456403, 0.06754457205533981, 0.010110036469995975, -0.016355743631720543, -0.003047082806006074, 0.055767565965652466, -0.002868479350581765, 0.006012982223182917, -0.04541939124464989, 0.002906364854425192, -0.08334826678037643, -0.04689151793718338, -0.03511451557278633, 0.001238046446815133, 0.026325061917304993, 0.005904737394303083, 0.051004808396101, -0.003366403980180621, 0.013238302432000637 ]
21,082
tfields.core
__array_finalize__
null
def __array_finalize__(self, obj): if obj is None: return for attr in self._iter_slots(): setattr(self, attr, getattr(obj, attr, None))
(self, obj)
[ 0.03038063645362854, 0.005202163476496935, -0.0068365102633833885, -0.026392310857772827, -0.06180170550942421, -0.030207229778170586, -0.026288267225027084, 0.03849601000547409, 0.012441841885447502, -0.008874024264514446, -0.02016705460846424, 0.019906945526599884, 0.03006850555539131, -0.006940553430467844, -0.050356943160295486, 0.04588308185338974, 0.0018803654238581657, 0.024554211646318436, -0.003609000938013196, 0.05042630806565285, -0.011149970814585686, 0.007100953254848719, -0.03638046607375145, 0.04213752597570419, 0.0005340346251614392, 0.012493862770497799, 0.046819474548101425, -0.009190489538013935, 0.06121212616562843, 0.0011368895648047328, -0.033363208174705505, 0.0034551036078482866, 0.013074771501123905, 0.04560563340783119, 0.06790557503700256, -0.08448313921689987, 0.01557181030511856, 0.02934020385146141, 0.00012449969653971493, 0.05184823274612427, 0.07733882963657379, -0.04338604584336281, -0.03105691634118557, -0.025976136326789856, 0.06377852708101273, 0.015216329135000706, 0.01728852465748787, 0.03856537491083145, -0.007868272252380848, -0.046125851571559906, 0.028022320941090584, -0.014418663457036018, 0.06866855919361115, 0.030900852754712105, -0.008700618520379066, 0.13782265782356262, 0.008596575818955898, 0.06599811464548111, 0.0021437250543385744, 0.026340289041399956, -0.03558279946446419, -0.0012832003412768245, 0.012242425233125687, -0.06832174956798553, 0.0003519588790368289, -0.05295802652835846, -0.03648450970649719, 0.050322264432907104, 0.04071560129523277, 0.009927462786436081, -0.023791229352355003, 0.027103273198008537, -0.00831045676022768, 0.011730878613889217, -0.01325684692710638, -0.007742553483694792, -0.020930038765072823, 0.026704439893364906, 0.014375312253832817, -0.025941455736756325, -0.010265602730214596, 0.05517761781811714, -0.026583056896924973, 0.008618251420557499, -0.03998729959130287, 0.00009605036757420748, 0.0007982070092111826, 0.007569148205220699, -0.03752494230866432, 0.021831747144460678, 0.023062925785779953, 0.04317795857787132, 0.002451519714668393, 0.0672813132405281, -0.03154245391488075, -0.015381064265966415, -0.012129711918532848, -0.02184908650815487, 0.00849686749279499, -0.008249764330685139, 0.0037368875928223133, -0.09398575872182846, -0.011687527410686016, 0.025282515212893486, 0.012493862770497799, 0.00635530985891819, 0.050010133534669876, -0.07810181379318237, 0.04844948276877403, 0.03258288651704788, 0.05257653445005417, 0.03991793468594551, -0.049593959003686905, 0.008306121453642845, -0.005288866348564625, -0.0324615016579628, -0.021623659878969193, 0.014193236827850342, 0.0076255048625171185, -0.02575070969760418, 0.0032426819670945406, 0.00986677035689354, -0.04838012158870697, -0.003582990262657404, 0.0352880097925663, 0.018155550584197044, 0.030918192118406296, 0.06332767009735107, 0.0007478110492229462, -0.021363552659749985, -0.02897605113685131, -0.020323120057582855, -0.06561662256717682, 0.02013237401843071, -0.027744872495532036, -0.005991158541291952, 0.0869801789522171, -0.04529350623488426, -0.04317795857787132, -0.06797493994235992, 0.03001648373901844, 0.01238114945590496, 0.004456520080566406, -0.013031420297920704, 0.02405133657157421, 0.050252899527549744, 0.035825565457344055, 0.05073843523859978, -0.07609031349420547, -0.04272710531949997, -0.06100403890013695, 0.01238982006907463, 0.015094945207238197, 0.03648450970649719, 0.002846017014235258, -0.005223839543759823, -0.05202163755893707, -0.028057003393769264, -0.03558279946446419, -0.003175487508997321, -0.02394729293882847, 0.04342072457075119, -0.07775500416755676, -0.04844948276877403, 0.005297536496073008, 0.016447506844997406, 0.05503889173269272, -0.025941455736756325, -0.06152425706386566, 0.006290283054113388, -0.054588038474321365, -0.08587038516998291, -0.02823040820658207, 0.05236844718456268, 0.04917778819799423, 0.10418199747800827, -0.030276592820882797, -0.034091513603925705, 0.0038842821959406137, 0.004924715030938387, 0.010109538212418556, -0.012736630626022816, 0.007681861519813538, -0.0021827411837875843, 0.02866392210125923, -0.012407160364091396, 0.0027484765741974115, 0.0012257598573341966, 0.042172208428382874, 0.028733283281326294, 0.02540390007197857, 0.03393544629216194, -0.022351963445544243, -0.006086531560868025, 0.06943154335021973, -0.003962314687669277, -0.010993906296789646, 0.020045669749379158, -0.03471577167510986, 0.01938672922551632, -0.03213202953338623, -0.01550244726240635, 0.013959139585494995, -0.026340289041399956, -0.003877779468894005, 0.010508370585739613, 0.03494120016694069, -0.015476437285542488, -0.06433342397212982, -0.002579406136646867, 0.04092368856072426, 0.020652590319514275, -0.018797151744365692, -0.011557473801076412, 0.05816018953919411, 0.01629144325852394, 0.04137454181909561, -0.006216585636138916, 0.032999057322740555, 0.042865827679634094, 0.010976565070450306, -0.01871044933795929, -0.009806078858673573, -0.02750210464000702, -0.04349008947610855, -0.015216329135000706, -0.019976308569312096, -0.004400163423269987, -0.010265602730214596, -0.025178471580147743, -0.02328835241496563, 0.020357800647616386, -0.037941113114356995, -0.0339181087911129, 0.03071010671555996, 0.07144305109977722, 0.04546691104769707, -0.007387072313576937, -0.03523598983883858, 0.005926131270825863, 0.020999399945139885, 0.0034811145160347223, -0.013239506632089615, -0.016508199274539948, -0.01907460018992424, 0.06880728155374527, 0.04133985936641693, 0.05611400678753853, -0.03277363255620003, -0.03072744607925415, 0.004686282481998205, -0.033016398549079895, -0.004716628231108189, -0.05056503042578697, 0.017106447368860245, -0.08829805999994278, 0.008371148258447647, 0.030502019450068474, 0.006186239421367645, -0.01624809205532074, 0.023236330598592758, -0.06599811464548111, 0.025681348517537117, 0.031958624720573425, 0.024918364360928535, 0.07068006694316864, 0.05094652250409126, 0.013490944169461727, -0.09516491740942001, 0.047859907150268555, 0.034420982003211975, -0.08476058393716812, -0.010066187009215355, 0.02866392210125923, 0.011756889522075653, 0.08372015506029129, 0.011878273449838161, 0.009936132468283176, 0.02828243002295494, 0.009571980684995651, 0.06142021343111992, -0.03006850555539131, 0.03873877972364426, -0.027276678010821342, 0.028057003393769264, -0.018207572400569916, -0.009519959799945354, 0.02439814805984497, -0.005193493328988552, -0.00723967794328928, 0.015120956115424633, 0.03887750208377838, -0.019664179533720016, 0.044287752360105515, 0.04619521275162697, -0.010855181142687798, -0.05611400678753853, 0.052784621715545654, 0.021380892023444176, -0.006307623349130154, -0.04213752597570419, 0.007122628856450319, -0.01062108390033245, 0.038357287645339966, -0.022889520972967148, -0.055281657725572586, 0.024831661954522133, 0.02750210464000702, -0.008947721682488918, 0.024450169876217842, 0.0704026147723198, 0.029097435995936394, -0.013959139585494995, 0.05517761781811714, 0.04657670482993126, 0.0008995407843030989, 0.04567499831318855, 0.003825757885351777, -0.015242339111864567, 0.05264589563012123, -0.026288267225027084, -0.08802060782909393, -0.03102223575115204, -0.045016057789325714, 0.033016398549079895, -0.008887029252946377, -0.015979312360286713, -0.027380721643567085, 0.01629144325852394, -0.027103273198008537, 0.0037433903198689222, -0.014930210076272488, -0.02077397331595421, -0.00512846652418375, 0.026340289041399956, -0.0014056679792702198, -0.030970213934779167, 0.00600416399538517, -0.031230323016643524, -0.025074427947402, -0.04487733170390129, 0.02290686033666134, -0.035114604979753494, 0.021086104214191437, -0.02080865390598774, 0.0010171313770115376, -0.0303632952272892, -0.006233925931155682, 0.024224741384387016, -0.03873877972364426, 0.006875526160001755, -0.024259423837065697, 0.02472761832177639, 0.07643712311983109, 0.005215168930590153, -0.038981545716524124, 0.017435917630791664, 0.044322434812784195, -0.048588208854198456, -0.03787175193428993, -0.028785305097699165, -0.006645764224231243, -0.031611815094947815, -0.04016070440411568, 0.07865671813488007, -0.0035613144282251596, -0.08489931374788284, -0.010196240618824959, -0.007720877882093191, -0.05760529264807701, -0.045362867414951324, 0.007837926968932152, -0.029895100742578506, 0.0008160894503816962, 0.027744872495532036, -0.01735788583755493, -0.005145806819200516, 0.038634736090898514, 0.028802646324038506, -0.03499322012066841, 0.026409650221467018, -0.022508028894662857, 0.03991793468594551, 0.0028330115601420403, -0.0368313193321228, 0.013369560241699219, 0.020600568503141403, 0.028785305097699165, -0.02256004884839058, 0.045709677040576935, -0.00038745280471630394, -0.031594473868608475, -0.05711975693702698, -0.03991793468594551, 0.029028072953224182, 0.03676195815205574, -0.004785990342497826, -0.02396463416516781, -0.03932835906744003, -0.022438665851950645, -0.0018543546320870519, -0.0395711250603199, -0.012485193088650703, 0.03995261713862419, 0.026288267225027084, -0.0033684009686112404, 0.050356943160295486, -0.002429843880236149, 0.05864572525024414, 0.002776654902845621, -0.004616920370608568, 0.033397890627384186, 0.024190060794353485, -0.0979394018650055, 0.05621805042028427, -0.0232536718249321, 0.04456520080566406, 0.0036783632822334766, 0.06339703500270844, 0.03853069245815277, 0.005627007223665714, 0.022091854363679886, -0.03450768440961838, 0.002377822296693921, -0.029895100742578506, -0.057674653828144073, 0.005436261184513569, -0.04688883572816849, 0.04896970093250275, 0.003825757885351777, -0.021797066554427147, 0.012069019488990307, -0.01662091352045536, -0.04491201415657997, -0.03700472414493561, -0.02148493565618992, 0.021328870207071304, -0.0233403742313385, -0.01697639375925064, 0.05538570135831833, 0.020340459421277046, 0.029843078926205635, -0.02575070969760418, -0.026218904182314873, -0.01146210078150034, 0.019594816491007805, 0.02614954300224781, 0.01233779825270176, -0.029496267437934875, -0.014158555306494236, 0.043247319757938385, 0.009233840741217136, 0.0317331999540329, -0.038981545716524124, -0.0019323870074003935, -0.0472356453537941, 0.0424843356013298, -0.06228724122047424, -0.02294154092669487, -0.06526981294155121, -0.05992892384529114, -0.0039731524884700775, 0.023166969418525696, -0.04033410921692848, -0.04827607795596123, 0.02301090396940708, -0.042310930788517, 0.017427248880267143, -0.025889433920383453, -0.023600483313202858, 0.00468194717541337, -0.03459438681602478, 0.031611815094947815, -0.06495768576860428, 0.028386473655700684, -0.0008475191425532103, -0.027640828862786293, 0.01909194141626358, -0.0636398047208786, -0.05711975693702698, 0.004486866295337677, -0.040021978318691254, 0.06658769398927689, -0.03804515674710274, 0.002689952030777931, 0.05049566924571991, 0.019508114084601402, -0.02890668995678425, 0.002752811647951603, 0.0265310350805521, -0.050703756511211395, 0.035825565457344055, -0.046680748462677, 0.03412619233131409, 0.047166284173727036, 0.018866512924432755, 0.037247490137815475, 0.005535969045013189, 0.0036371794994920492, -0.0474090501666069, -0.028091683983802795, -0.013959139585494995, -0.05611400678753853, -0.04546691104769707, -0.04917778819799423, -0.027259336784482002, -0.017496610060334206, 0.013490944169461727, -0.05920062214136124, -0.0027311358135193586, -0.01834629662334919, -0.002421173732727766, -0.05874976888298988, -0.03284299373626709, 0.009988154284656048, 0.008730964735150337, -0.03136904537677765, -0.025213154032826424, 0.02399931475520134, 0.027294019237160683, 0.010725127533078194, 0.045362867414951324, -0.03534003347158432, -0.0023366385139524937, -0.028490515425801277, -0.02575070969760418, -0.04088900610804558, -0.04459988325834274, 0.039709851145744324, -0.028785305097699165, 0.03031127341091633, -0.05091184005141258, -0.014973561279475689, 0.028022320941090584, 0.018797151744365692, 0.052090998739004135, 0.056634221225976944, -0.03964048624038696, 0.07165113091468811, 0.01729719340801239, 0.01909194141626358, 0.02821306698024273, 0.015693193301558495, -0.013560306280851364, -0.024606233462691307, 0.01760065369307995, -0.04456520080566406, -0.005618336610496044, 0.04414902999997139, 0.0008887029835022986, -0.02961765229701996, -0.0018207572866231203, 0.04806799069046974, 0.039050906896591187, -0.047200966626405716, -0.0408543236553669, 0.033692680299282074, -0.07123496383428574, 0.009780067950487137, 0.04439179599285126, 0.012910036370158195, 0.09842493385076523, 0.019993649795651436, -0.02791827917098999, -0.003359730588272214, 0.07817117869853973, 0.014019831083714962, 0.06988240033388138, 0.02547326125204563, 0.015545799396932125, -0.0162741020321846, 0.003058438654989004, -0.047859907150268555, -0.030900852754712105, 0.03452502563595772, 0.01238114945590496, -0.05257653445005417, -0.006086531560868025, -0.010152889415621758, -0.08871423453092575, 0.009060434997081757, 0.0381145179271698, -0.07539669424295425, -0.08087630569934845, 0.017826080322265625, -0.023062925785779953, 0.021762384101748466, 0.02755412645637989, 0.013074771501123905, -0.038704097270965576, -0.050252899527549744, 0.021034082397818565, -0.046437982469797134, 0.006676109973341227, 0.028369132429361343, 0.03735153377056122, -0.05340887978672981, -0.012129711918532848, -0.038322605192661285, -0.03317246213555336, 0.049940772354602814, 0.01590995118021965, -0.01484350673854351, 0.05268057808279991, -0.007954975590109825, 0.02229994162917137, -0.05268057808279991, 0.044703926891088486, 0.006567731499671936, 0.018849173560738564, -0.042172208428382874, 0.014514036476612091, 0.06579002737998962, 0.004183406475931406, -0.023045584559440613, -0.043906260281801224, -0.06526981294155121, 0.03606833517551422, -0.018537042662501335, 0.04456520080566406, -0.05732784420251846, -0.0035353037528693676, -0.00431996351107955, 0.020045669749379158, -0.027467424049973488, -0.024311445653438568, -0.0010404327185824513, 0.01910928077995777, -0.011956306174397469, -0.019629497081041336, -0.023721866309642792, -0.033363208174705505, 0.043628811836242676, -0.07043729722499847, 0.02784891612827778, -0.024242082610726357, -0.022143876180052757, 0.03038063645362854, -0.02439814805984497, 0.028403813019394875, 0.007244012784212828, -0.024311445653438568, 0.05164014548063278, 0.0071833208203315735, -0.05503889173269272, -0.0031278009992092848, -0.015441755764186382, -0.03429960086941719, -0.022837499156594276, -0.029548289254307747, -0.01254588458687067, -0.02467559650540352, -0.0656513050198555, -0.005960812326520681, 0.028490515425801277, 0.046819474548101425, 0.0061125424690544605, -0.019525453448295593, 0.02016705460846424, 0.0292708408087492, -0.05323547497391701, -0.005093785468488932, -0.03641514480113983, -0.03995261713862419, 0.06689982116222382, 0.010915873572230339, -0.0071833208203315735, 0.010811829939484596, -0.008093699812889099, -0.008284445852041245, -0.03502790257334709, 0.05868040770292282, -0.006983904633671045, -0.006953558884561062, -0.02646167203783989, -0.0041335527785122395, -0.024814320728182793, -0.007209331728518009, 0.033657997846603394, 0.0039363037794828415, 0.01533771213144064, -0.013464933261275291, 0.008800326846539974, 0.0008128380868583918, 0.002566400682553649, 0.008072024211287498, 0.020999399945139885, 0.015649842098355293, 0.041860077530145645, -0.09724578261375427, 0.018328957259655, -0.02932286262512207, 0.0472356453537941, -0.007035926450043917, -0.07518860697746277, -0.000049752463382901624, 0.016066014766693115, -0.007720877882093191, 0.05711975693702698, 0.01271061971783638, 0.02301090396940708, -0.0030194225255399942, -0.02016705460846424, -0.020756633952260017, 0.014392652548849583, 0.0486922524869442, 0.02469293773174286, 0.00044516430352814496, -0.017730707302689552, 0.022351963445544243, 0.002529551973566413, 0.07844863086938858, -0.058437637984752655, -0.0817086473107338, 0.03178521990776062, 0.04206816479563713, -0.00723100733011961, -0.01801682636141777, -0.00723100733011961, 0.02008035220205784, 0.028872007504105568, 0.03631110116839409, 0.04283114895224571, 0.003732552519068122, -0.017401237040758133, 0.0018586897058412433, -0.000038440466596512124, 0.03766366466879845, 0.023929953575134277, 0.025005066767334938, -0.010204911231994629, -0.02536921761929989, -0.008206413127481937, 0.028490515425801277, -0.03981389105319977, -0.004025174304842949, 0.01696772314608097, 0.004894368816167116, -0.020010989159345627, 0.05996360629796982, -0.05802146717905998, 0.0061819045804440975, 0.08455249667167664, 0.07941970229148865, 0.05829891562461853, -0.0022434331476688385, -0.011878273449838161, 0.03603365272283554, 0.0008068772731348872, -0.025161132216453552, 0.039709851145744324, 0.06176702305674553, -0.00322100636549294, 0.04414902999997139, 0.05760529264807701, -0.06960494816303253, -0.0034486011136323214, -0.01699373498558998, 0.012840674258768559, -0.02366984449326992, -0.10536115616559982, -0.0135863171890378, -0.010768478736281395, 0.05271525681018829, 0.03752494230866432, 0.046160534024238586, 0.044287752360105515, -0.020409822463989258 ]
21,083
tfields.core
__array_wrap__
null
def __array_wrap__(self, out_arr, context=None): # pylint: disable=arguments-differ return np.ndarray.__array_wrap__( # pylint: disable=too-many-function-args self, out_arr, context )
(self, out_arr, context=None)
[ -0.03192468360066414, -0.06139620766043663, -0.0007828898378647864, 0.031151769682765007, -0.01893637701869011, 0.015878329053521156, -0.06512635201215744, 0.015567483380436897, 0.033033646643161774, -0.05454080179333687, 0.024598808959126472, -0.06828521937131882, -0.0004166486032772809, -0.0444929264485836, -0.020162956789135933, 0.015071811154484749, 0.04429129883646965, -0.004473656415939331, -0.004805504810065031, 0.07050314545631409, -0.01153489202260971, 0.007989572361111641, 0.0048307087272405624, -0.035184361040592194, -0.015995945781469345, 0.057867687195539474, 0.028681807219982147, -0.05390230566263199, 0.07997973263263702, -0.04372001439332962, -0.08414674550294876, -0.019306031987071037, 0.028160931542515755, 0.039116136729717255, 0.06253877282142639, -0.05154995992779732, -0.03901532292366028, 0.05047460272908211, 0.022280069068074226, 0.019625278189778328, 0.017726600170135498, -0.09510195255279541, 0.015878329053521156, -0.005208764225244522, 0.0015783815179020166, 0.02869861014187336, 0.023389030247926712, 0.015097014605998993, -0.003986384719610214, 0.004398045130074024, 0.02945472113788128, -0.0305468812584877, 0.04472815990447998, 0.02774086967110634, -0.04237581416964531, 0.10101641714572906, 0.011299657635390759, 0.030966943129897118, -0.012879089452326298, -0.017012495547533035, -0.05722919479012489, 0.004620677791535854, 0.10309991985559464, 0.02261611819267273, -0.011148435063660145, 0.021238315850496292, -0.05474242940545082, 0.06190028041601181, 0.04593793675303459, 0.07090640068054199, -0.014987798407673836, 0.01403845939785242, -0.0088969049975276, -0.01194655243307352, 0.01266905851662159, 0.03555401414632797, -0.041905347257852554, 0.009224552661180496, 0.028933843597769737, -0.0043266345746815205, -0.04002347216010094, 0.06690741330385208, -0.011644108220934868, 0.08347464352846146, 0.01535745244473219, -0.024413980543613434, -0.06942778080701828, 0.017197322100400925, -0.03548680618405342, -0.0030622491613030434, -0.011282854713499546, 0.031773459166288376, -0.03199189156293869, 0.06190028041601181, 0.006279921159148216, -0.016584033146500587, -0.012929496355354786, 0.007598914671689272, 0.021003080531954765, 0.03338649868965149, 0.009745429269969463, -0.061362601816654205, 0.06183306872844696, 0.012786675244569778, 0.03901532292366028, -0.0007256564567796886, 0.0383768305182457, -0.0137444157153368, 0.011299657635390759, 0.05615383759140968, 0.016264785081148148, 0.056422676891088486, -0.03555401414632797, -0.0028921242337673903, -0.03857845813035965, 0.011938150972127914, -0.06327807903289795, -0.008002174086868763, -0.00814079400151968, 0.02275053784251213, 0.016247984021902084, -0.010862793773412704, 0.007065436337143183, -0.036259718239307404, 0.017877822741866112, 0.010257904417812824, -0.04587072879076004, 0.015281842090189457, 0.03073170781135559, -0.044257692992687225, -0.05780047923326492, 0.012475830502808094, -0.014458521269261837, -0.03995626047253609, -0.001241282094269991, 0.0499369241297245, 0.024951661005616188, 0.002400652039796114, -0.06936057657003403, -0.019121205434203148, 0.011190441437065601, 0.0007876155432313681, 0.03790635988116264, -0.010173892602324486, 0.03110136277973652, 0.0386456698179245, 0.09570683538913727, 0.04351838305592537, -0.011375268921256065, 0.011795329861342907, -0.015995945781469345, -0.009569003246724606, 0.03793996572494507, 0.026497486978769302, 0.044761765748262405, 0.04892877861857414, 0.0038918708451092243, -0.013685607351362705, -0.005523810163140297, 0.009207750670611858, -0.045702703297138214, -0.023103389889001846, -0.0389145091176033, -0.031521424651145935, 0.031538225710392, 0.03357132524251938, -0.004284628666937351, -0.021372735500335693, -0.05138193815946579, -0.0034088001120835543, -0.013551187701523304, -0.06596647948026657, 0.030899733304977417, 0.032983239740133286, -0.030126819387078285, 0.0888514369726181, -0.021238315850496292, 0.010837589390575886, -0.004612276330590248, 0.065865658223629, 0.006956220604479313, 0.0302108321338892, -0.023926708847284317, -0.007678726222366095, 0.022078437730669975, 0.024817239493131638, 0.04607235640287399, -0.03814159333705902, 0.015340650454163551, 0.021204710006713867, -0.013618397526443005, 0.07554388046264648, 0.04882796108722687, -0.02387630194425583, -0.001305341487750411, -0.027724066749215126, -0.07964368164539337, 0.038107991218566895, 0.009266559034585953, 0.04758457839488983, -0.03478110209107399, -0.010173892602324486, 0.017961835488677025, 0.012005360797047615, -0.01390403974801302, 0.021137500181794167, 0.031538225710392, -0.02332182042300701, -0.04916401207447052, 0.04029231145977974, 0.04227500036358833, -0.04022509977221489, -0.03426022455096245, -0.02034778520464897, 0.04291349649429321, 0.08381069451570511, 0.024682819843292236, 0.02700156159698963, -0.04832388833165169, 0.04177092760801315, -0.004427449312061071, -0.03204229846596718, -0.03736868128180504, -0.05003774166107178, -0.03783915191888809, 0.008854898624122143, 0.05598581209778786, -0.031891077756881714, 0.012551440857350826, -0.01270266342908144, -0.01064436137676239, 0.0066327727399766445, -0.039183348417282104, -0.006347130984067917, 0.00022118868946563452, -0.048760753124952316, 0.03447865694761276, -0.037603914737701416, 0.026715919375419617, 0.03084932453930378, 0.009837843477725983, 0.008060982450842857, 0.02641347423195839, 0.022716931998729706, 0.013862033374607563, 0.031067756935954094, 0.0062085106037557125, 0.050777047872543335, 0.07030151039361954, 0.027925696223974228, -0.033352892845869064, -0.034310631453990936, -0.012795076705515385, -0.02115430310368538, 0.012122978456318378, -0.029555534943938255, 0.025808585807681084, -0.039821840822696686, -0.007157850079238415, -0.01868434064090252, 0.013567990623414516, 0.005406192969530821, 0.0411660373210907, -0.01222379319369793, -0.022313673049211502, 0.005700236186385155, -0.00777534069493413, -0.047349344938993454, -0.004238421563059092, 0.07594714313745499, 0.015995945781469345, 0.05669151619076729, -0.019793303683400154, -0.013509181328117847, -0.0041838139295578, 0.0633452907204628, 0.020566217601299286, 0.05188601091504097, 0.028665004298090935, 0.023153796792030334, 0.029353905469179153, -0.02115430310368538, -0.03901532292366028, -0.021389538422226906, -0.025203697383403778, -0.06909173727035522, -0.0007676625973545015, 0.002377548720687628, 0.01718052104115486, -0.039687421172857285, -0.02572457306087017, 0.052289269864559174, -0.027270400896668434, -0.013030311092734337, 0.004181713331490755, -0.017692996188998222, -0.08018136024475098, -0.006338729988783598, 0.04859272763133049, 0.0021843204740434885, -0.02579178288578987, 0.0031105561647564173, 0.0005623574834316969, 0.01602955162525177, 0.01861713081598282, -0.025170091539621353, 0.0034487058874219656, -0.023036178201436996, -0.03636053204536438, 0.028412967920303345, 0.017146915197372437, -0.01504660677164793, -0.05766605958342552, -0.035385992377996445, 0.010904799215495586, -0.004570270422846079, 0.06270679831504822, 0.02711917832493782, 0.019053995609283447, 0.046341199427843094, -0.04173732176423073, -0.05652349069714546, -0.04802144318819046, -0.06647054851055145, 0.04751737043261528, 0.030933337286114693, 0.06216911971569061, -0.03793996572494507, 0.02577497996389866, 0.024161944165825844, 0.025002067908644676, -0.0089641148224473, -0.009249757044017315, 0.006237915251404047, 0.019087599590420723, -0.0045366655103862286, 0.011081225238740444, -0.07278827577829361, 0.0019070797134190798, -0.023338623344898224, -0.05030658096075058, -0.0034256025683134794, -0.06536158919334412, 0.02661510370671749, -0.019608477130532265, -0.05766605958342552, 0.00709484051913023, 0.01684447005391121, 0.050709839910268784, -0.027135981246829033, 0.02496846206486225, -0.03110136277973652, 0.028799423947930336, 0.08132392913103104, 0.018230674788355827, 0.0018608729587867856, -0.052994973957538605, 0.05023936927318573, -0.01686127297580242, -0.024128340184688568, -0.015122218057513237, 0.0070234304293990135, 0.046845272183418274, 0.025304511189460754, 0.0038498647045344114, 0.009064929559826851, -0.027791276574134827, -0.047618184238672256, -0.010770379565656185, 0.027219992130994797, -0.029941992834210396, -0.04062835872173309, -0.018969982862472534, 0.006628572475165129, 0.026144634932279587, -0.041535694152116776, -0.07272106409072876, -0.007687127683311701, -0.017407353967428207, -0.03793996572494507, 0.02108709327876568, 0.03179026395082474, 0.034680288285017014, -0.03807438537478447, -0.022078437730669975, 0.012870687991380692, 0.004826507996767759, 0.021204710006713867, 0.0019837410654872656, -0.016054755076766014, -0.01863393373787403, -0.017894625663757324, -0.016878075897693634, -0.003045446705073118, -0.06791555881500244, 0.004141807556152344, -0.02718638814985752, 0.025892598554491997, -0.048189468681812286, -0.02716958522796631, -0.03192468360066414, -0.022313673049211502, 0.017945032566785812, -0.0033310886938124895, -0.020314179360866547, -0.012921095825731754, 0.02028057537972927, -0.007943364791572094, 0.03318486735224724, 0.0011782728834077716, -0.058640602976083755, 0.04056115075945854, 0.01975969783961773, -0.030681300908327103, 0.041468482464551926, 0.030748510733246803, -0.023523449897766113, -0.007989572361111641, 0.017130112275481224, -0.006741988938301802, 0.011837336234748363, 0.014802971854805946, 0.031067756935954094, 0.022212859243154526, 0.012971502728760242, -0.03350411355495453, -0.039317768067121506, -0.007712331134825945, 0.011039218865334988, -0.012761471793055534, -0.003988484852015972, 0.02547253668308258, -0.05423835664987564, -0.03350411355495453, -0.01359319407492876, -0.015559081919491291, -0.015811119228601456, -0.00635133171454072, 0.020196562632918358, 0.029505128040909767, 0.004290929529815912, 0.06479030102491379, 0.02439717948436737, -0.003851965069770813, 0.014046860858798027, -0.03205910325050354, -0.03884729743003845, 0.007451893296092749, -0.07164570689201355, -0.06710904091596603, 0.10061316192150116, 0.01918841525912285, 0.0713096633553505, -0.029874783009290695, -0.048559121787548065, -0.04012428596615791, 0.0018986784853041172, -0.0719817578792572, 0.02387630194425583, -0.010274707339704037, -0.046341199427843094, 0.003064349526539445, -0.004767699167132378, -0.0821976587176323, -0.003375195199623704, -0.052289269864559174, -0.009703423827886581, -0.05403672531247139, -0.006636973470449448, -0.01925562508404255, 0.05000413581728935, -0.036763790994882584, 0.0047424957156181335, -0.017205724492669106, 0.04503060504794121, 0.018264278769493103, -0.03827601298689842, 0.006250516977161169, -0.014584539458155632, 0.014021656475961208, -0.08004694432020187, -0.03268079459667206, 0.006338729988783598, -0.010728374123573303, -0.020297378301620483, 0.04237581416964531, 0.049903322011232376, -0.018331488594412804, 0.0063009243458509445, 0.05561615899205208, -0.03397458419203758, 0.0989329144358635, -0.03426022455096245, 0.017961835488677025, 0.052457295358181, 0.05017216131091118, 0.0495336651802063, 0.0014082565903663635, -0.0047508967109024525, 0.02401072159409523, 0.0042132181115448475, -0.04415687546133995, -0.029118672013282776, -0.052927762269973755, 0.01535745244473219, -0.082869753241539, -0.027841683477163315, 0.000938312616199255, -0.0413004569709301, 0.04012428596615791, -0.04882796108722687, 0.06479030102491379, -0.02693435177206993, -0.0332016684114933, -0.006851205136626959, -0.01609676145017147, -0.08549094200134277, -0.028917042538523674, -0.032025497406721115, -0.006468948908150196, 0.0471477173268795, 0.0632108747959137, -0.02920268289744854, -0.024565203115344048, 0.03300004079937935, 0.008342423476278782, 0.01868434064090252, -0.0006117147277109325, 0.00833402294665575, 0.005502806976437569, -0.058002106845378876, -0.05813652649521828, 0.012089373543858528, 0.07083918899297714, -0.005801050923764706, 0.02001173608005047, -0.0063009243458509445, 0.016886476427316666, 0.06032084673643112, -0.0068722078576684, -0.008947312831878662, -0.003499113256111741, 0.027219992130994797, -0.0359908789396286, -0.03562122583389282, 0.06092573702335358, -0.03434423729777336, 0.030446065589785576, -0.010535145178437233, -0.033856965601444244, -0.010921602137386799, -0.04560188949108124, 0.10303271561861038, 0.0523228757083416, 0.0031504621729254723, 0.010703169740736485, -0.0018146662041544914, -0.019490858539938927, -0.016121964901685715, 0.01684447005391121, 0.021775994449853897, 0.047920629382133484, -0.023153796792030334, -0.03389057144522667, -0.03945218771696091, 0.040762778371572495, 0.052625320851802826, 0.09779034554958344, -0.056422676891088486, -0.0055910199880599976, -0.01957487128674984, -0.022464895620942116, -0.06505914032459259, -0.03830961883068085, 0.022515302523970604, 0.034747496247291565, 0.00785515271127224, -0.0008248959784395993, -0.013408366590738297, -0.04781981557607651, -0.03105095401406288, -0.011719719506800175, -0.04667724668979645, -0.06778114289045334, 0.03632692992687225, -0.08643187582492828, -0.020919067785143852, 0.009501793421804905, 0.000003737071665455005, -0.0036608369555324316, -0.02775767259299755, 0.01054354663938284, -0.02300257422029972, -0.025640560314059258, 0.0417037159204483, 0.06089213117957115, -0.1276315152645111, -0.0302780419588089, 0.051852405071258545, -0.04986971616744995, 0.03257998079061508, 0.031706251204013824, -0.03743589296936989, 0.01781061291694641, -0.002511968370527029, 0.001164620858617127, -0.037469495087862015, -0.09288402646780014, -0.03884729743003845, 0.025371721014380455, -0.04150208830833435, 0.00944298505783081, 0.01843230426311493, -0.04230860620737076, 0.0019385843770578504, 0.025808585807681084, -0.07628318667411804, 0.04593793675303459, -0.004381242673844099, 0.03336969390511513, 0.04210697486996651, 0.022380882874131203, -0.012366614304482937, 0.00832982175052166, -0.013962848111987114, -0.04573630914092064, 0.03197509050369263, -0.02058301866054535, 0.03471389040350914, 0.00982104055583477, 0.002854318590834737, -0.005443998612463474, 0.07937484234571457, -0.05531371384859085, 0.0011257651494815946, -0.04113243520259857, -0.024867648258805275, 0.03464668244123459, 0.025606956332921982, 0.015382656827569008, -0.0045450665056705475, -0.030362052842974663, 0.017062902450561523, -0.02515329048037529, 0.0005802101222798228, -0.11176999658346176, 0.011072824709117413, 0.03022763319313526, -0.014559336006641388, -0.002192721702158451, -0.005385189782828093, 0.011988558806478977, -0.046778060495853424, 0.011081225238740444, 0.006187507417052984, 0.046979691833257675, 0.006968822330236435, 0.05333102121949196, 0.017062902450561523, 0.019306031987071037, -0.05618744343519211, 0.05682593584060669, -0.031773459166288376, -0.02273373492062092, 0.03147101774811745, -0.007103241980075836, 0.025892598554491997, 0.01393764466047287, 0.018415501341223717, 0.017079705372452736, -0.016121964901685715, 0.02083505690097809, -0.04035951942205429, 0.017911426723003387, -0.0010548797436058521, -0.040191493928432465, 0.00511635048314929, 0.01304711401462555, -0.010761979036033154, -0.023103389889001846, -0.023153796792030334, 0.014046860858798027, -0.020818253979086876, 0.06421902030706406, 0.013441971503198147, 0.014844977296888828, 0.041905347257852554, 0.029488325119018555, -0.051919616758823395, -0.06038805842399597, 0.02229687012732029, 0.00937577523291111, 0.06522716581821442, -0.030815720558166504, -0.012568243779242039, -0.01716371811926365, -0.037603914737701416, -0.005708637181669474, 0.0014607643242925406, 0.0030517475679516792, 0.042409420013427734, -0.016449613496661186, -0.04560188949108124, -0.0018692741869017482, 0.04943285137414932, 0.021624771878123283, 0.017457760870456696, -0.043182335793972015, -0.01861713081598282, 0.009493392892181873, 0.0057716467417776585, 0.014492126181721687, 0.08502047508955002, -0.010887997224926949, -0.02026377245783806, -0.018449105322360992, -0.01329915039241314, -0.025304511189460754, 0.0177938099950552, 0.02559015341103077, -0.01710490882396698, 0.04835749417543411, 0.047416556626558304, -0.0018514215480536222, -0.06190028041601181, 0.012467429041862488, 0.019742896780371666, 0.0002754029119387269, 0.051919616758823395, -0.005225566681474447, -0.0040136887691915035, -0.01456773653626442, 0.04331675544381142, 0.0383768305182457, -0.021271919831633568, 0.0036440344993025064, -0.020633427426218987, -0.01836509443819523, -0.02641347423195839, -0.01939004473388195, -0.02807691879570484, -0.01511381659656763, 0.0066327727399766445, 0.011509688571095467, 0.08085346221923828, -0.028597794473171234, 0.012761471793055534, 0.011148435063660145, 0.005145754665136337, -0.03807438537478447, 0.017306538298726082, 0.04503060504794121, -0.00013100671640131623, 0.020767847076058388, 0.07393084466457367, -0.02673272043466568, 0.02679993212223053, -0.030194029211997986, 0.02901785634458065, -0.022532105445861816, -0.05675872415304184, 0.046341199427843094, -0.04771899804472923, 0.09409379959106445, -0.0016529425047338009, 0.02394351176917553, 0.057565245777368546, 0.015155822969973087 ]
21,084
tfields.core
__getitem__
In addition to the usual, also slice fields Examples: >>> import tfields >>> import numpy as np >>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0], ... [1, 1, 1], [-1, -1, -1]]) >>> maps=[tfields.TensorFields([[0, 1, 2], [0, 1, 3], [2, 3, 4]], ... [[1, 2], [3, 4], [5, 6]]), ... tfields.TensorFields([[0], [1], [2], [3], [4]])] >>> mesh = tfields.TensorMaps(vectors, ... [42, 21, 10.5, 1, 1], ... [1, 2, 3, 3, 3], ... maps=maps) Slicing >>> sliced = mesh[2:] >>> assert isinstance(sliced, tfields.TensorMaps) >>> assert isinstance(sliced.fields[0], tfields.Tensors) >>> assert isinstance(sliced.maps[3], tfields.TensorFields) >>> assert sliced.fields[0].equal([10.5, 1, 1]) >>> assert sliced.maps[3].equal([[0, 1, 2]]) >>> assert sliced.maps[3].fields[0].equal([[5, 6]]) Picking >>> picked = mesh[1] >>> assert np.array_equal(picked, [0, 0, 1]) >>> assert np.array_equal(picked.maps[3], np.empty((0, 3))) >>> assert np.array_equal(picked.maps[1], [[0]]) Masking >>> masked = mesh[np.array([True, False, True, True, True])] >>> assert masked.equal([[0, 0, 0], [0, -1, 0], ... [1, 1, 1], [-1, -1, -1]]) >>> assert masked.fields[0].equal([42, 10.5, 1, 1]) >>> assert masked.fields[1].equal([1, 3, 3, 3]) >>> assert masked.maps[3].equal([[1, 2, 3]]) >>> assert masked.maps[1].equal([[0], [1], [2], [3]]) Iteration >>> _ = [vertex for vertex in mesh]
def __getitem__(self, index): """ In addition to the usual, also slice fields Examples: >>> import tfields >>> import numpy as np >>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0], ... [1, 1, 1], [-1, -1, -1]]) >>> maps=[tfields.TensorFields([[0, 1, 2], [0, 1, 3], [2, 3, 4]], ... [[1, 2], [3, 4], [5, 6]]), ... tfields.TensorFields([[0], [1], [2], [3], [4]])] >>> mesh = tfields.TensorMaps(vectors, ... [42, 21, 10.5, 1, 1], ... [1, 2, 3, 3, 3], ... maps=maps) Slicing >>> sliced = mesh[2:] >>> assert isinstance(sliced, tfields.TensorMaps) >>> assert isinstance(sliced.fields[0], tfields.Tensors) >>> assert isinstance(sliced.maps[3], tfields.TensorFields) >>> assert sliced.fields[0].equal([10.5, 1, 1]) >>> assert sliced.maps[3].equal([[0, 1, 2]]) >>> assert sliced.maps[3].fields[0].equal([[5, 6]]) Picking >>> picked = mesh[1] >>> assert np.array_equal(picked, [0, 0, 1]) >>> assert np.array_equal(picked.maps[3], np.empty((0, 3))) >>> assert np.array_equal(picked.maps[1], [[0]]) Masking >>> masked = mesh[np.array([True, False, True, True, True])] >>> assert masked.equal([[0, 0, 0], [0, -1, 0], ... [1, 1, 1], [-1, -1, -1]]) >>> assert masked.fields[0].equal([42, 10.5, 1, 1]) >>> assert masked.fields[1].equal([1, 3, 3, 3]) >>> assert masked.maps[3].equal([[1, 2, 3]]) >>> assert masked.maps[1].equal([[0], [1], [2], [3]]) Iteration >>> _ = [vertex for vertex in mesh] """ item = super(TensorMaps, self).__getitem__(index) if issubclass(type(item), TensorMaps): # pylint: disable=too-many-nested-blocks if isinstance(index, tuple): index = index[0] if item.maps: item.maps = Maps(item.maps) indices = np.arange(len(self)) keep_indices = indices[index] if isinstance(keep_indices, (int, np.integer)): keep_indices = [keep_indices] delete_indices = set(indices).difference(set(keep_indices)) # correct all maps that contain deleted indices for map_dim in self.maps: # build mask, where the map should be deleted map_delete_mask = np.full( (len(self.maps[map_dim]),), False, dtype=bool ) for i, map_ in enumerate( # pylint: disable=invalid-name self.maps[map_dim] ): for node_index in map_: if node_index in delete_indices: map_delete_mask[i] = True break map_mask = ~map_delete_mask # build the correction counters move_up_counter = np.zeros(self.maps[map_dim].shape, dtype=int) for delete_index in delete_indices: move_up_counter[self.maps[map_dim] > delete_index] -= 1 item.maps[map_dim] = (self.maps[map_dim] + move_up_counter)[ map_mask ] return item
(self, index)
[ 0.045431990176439285, -0.02492041140794754, -0.07776343822479248, 0.03965851664543152, -0.04501210153102875, -0.030651897192001343, -0.0485391691327095, 0.045557957142591476, 0.015000534243881702, -0.0004047992406412959, -0.005251236725598574, 0.02300991676747799, -0.04673364385962486, 0.0030520681757479906, 0.012806613929569721, -0.008654962293803692, -0.01760384626686573, 0.059288326650857925, 0.02156130038201809, -0.043752431869506836, -0.016911029815673828, -0.028132563456892967, 0.06827394664287567, 0.05702092498540878, 0.03126073628664017, 0.015294456854462624, 0.02292593941092491, -0.0235767662525177, 0.08007282763719559, -0.02603311836719513, -0.057482801377773285, -0.009279546327888966, 0.007815184071660042, 0.05576125904917717, -0.021382847800850868, -0.050470657646656036, -0.0045190551318228245, 0.013646392151713371, 0.04438226670026779, 0.06369715929031372, 0.02034362219274044, -0.06386511772871017, -0.02046958915889263, -0.06155572459101677, 0.046985577791929245, 0.027229800820350647, 0.023429805412888527, 0.0020338373724371195, 0.007662974298000336, 0.00835054274648428, -0.02657897397875786, -0.022380083799362183, 0.045557957142591476, 0.023177873343229294, -0.044298287481069565, -0.0039627025835216045, 0.0069229197688400745, 0.0070068975910544395, 0.0036950232461094856, 0.021267376840114594, -0.019010474905371666, -0.01670108549296856, -0.03249940648674965, -0.004739496856927872, 0.004700132645666599, -0.059834182262420654, 0.0001303952158195898, -0.016606610268354416, 0.005762976594269276, 0.01670108549296856, -0.024647483602166176, 0.020459091290831566, 0.051898278295993805, -0.04706955701112747, -0.01597677543759346, -0.004337978083640337, 0.01956682652235031, 0.004561044275760651, 0.07293471693992615, -0.0697435587644577, -0.012418217025697231, -0.010749158449470997, -0.036383382976055145, 0.00958921480923891, -0.011840869672596455, 0.020721521228551865, 0.034136973321437836, -0.004781486000865698, -0.016239207237958908, -0.0692816823720932, -0.009174574166536331, 0.015609373338520527, -0.007815184071660042, 0.0005314220325089991, -0.044172320514917374, -0.011935344897210598, 0.007111869752407074, -0.06714025139808655, -0.043290555477142334, 0.02580217830836773, 0.07049936056137085, -0.01207180880010128, -0.04782535508275032, 0.0209419634193182, 0.02794361300766468, -0.00003206574183423072, -0.045557957142591476, -0.04366845637559891, -0.031008802354335785, -0.012617664411664009, -0.015042522922158241, 0.05878445878624916, -0.0668463259935379, 0.04270271211862564, -0.01848561316728592, -0.002554762177169323, 0.03867177665233612, -0.01894749142229557, -0.02960217371582985, -0.020301632583141327, 0.03902868181467056, 0.004036183003336191, -0.04392039030790329, 0.008597226813435555, 0.0014538656687363982, 0.010612694546580315, 0.04215685650706291, 0.0596662275493145, -0.002634803531691432, -0.06852588057518005, -0.02615908347070217, -0.036824263632297516, -0.046439722180366516, 0.05231816694140434, 0.036047469824552536, 0.0023369446862488985, 0.05903639271855354, -0.03923862800002098, -0.09380320459604263, 0.03478780388832092, 0.013866834342479706, -0.003563807811588049, 0.04963088035583496, 0.03663531318306923, -0.038587797433137894, -0.05752479285001755, 0.017278432846069336, -0.03627840802073479, 0.011830372735857964, -0.046229779720306396, -0.029350239783525467, 0.03812592104077339, -0.007883415557444096, 0.01959831826388836, -0.06722422689199448, -0.01753036491572857, -0.0022372209932655096, -0.05752479285001755, 0.037286143749952316, 0.0322684682905674, -0.015514898113906384, -0.0015037275152280927, -0.009080099873244762, 0.0046870107762515545, -0.0209419634193182, 0.03976348787546158, 0.013509928248822689, -0.06688831746578217, -0.03730713576078415, 0.014675119891762733, 0.002539016306400299, 0.009216563776135445, -0.03029499016702175, 0.012481200508773327, -0.01469611469656229, 0.05026071146130562, -0.04501210153102875, 0.019304396584630013, -0.004996678791940212, -0.041296083480119705, -0.005825959611684084, 0.013982303440570831, -0.041736964136362076, -0.014150259084999561, -0.011001091450452805, 0.05345186963677406, -0.013583408668637276, 0.010854130610823631, 0.026872895658016205, 0.03789498284459114, -0.001716296304948628, -0.023114889860153198, 0.0039627025835216045, -0.006949163042008877, 0.002758145797997713, 0.024899417534470558, 0.002910355571657419, -0.013278989121317863, 0.05664302408695221, 0.08511149883270264, -0.09699435532093048, -0.030022062361240387, -0.005143640097230673, 0.019020970910787582, -0.09069602191448212, 0.009379270486533642, 0.06054799258708954, 0.001460426370613277, -0.044886134564876556, 0.03999442607164383, -0.025613227859139442, -0.023660745471715927, 0.039721500128507614, 0.007662974298000336, 0.06844190508127213, -0.06991151720285416, -0.06344522535800934, 0.003920713439583778, 0.022296106442809105, 0.013898326084017754, 0.027628695592284203, 0.033255208283662796, -0.05697893723845482, -0.0192624069750309, -0.012733133509755135, -0.0014656750718131661, -0.016396665945649147, -0.0036215425934642553, -0.01840163581073284, -0.05194026976823807, 0.018181193619966507, 0.000770233862567693, -0.0015037275152280927, -0.03508172556757927, 0.04786734655499458, 0.011872361414134502, 0.012313244864344597, -0.06995350867509842, 0.07100322842597961, -0.0062248543836176395, -0.014538655988872051, -0.03086184151470661, -0.011431477963924408, 0.009557723067700863, -0.0014801087090745568, 0.020018206909298897, -0.01982925832271576, 0.035942498594522476, 0.008460762910544872, 0.023744722828269005, -0.004015188664197922, 0.019146937876939774, 0.010114076547324657, 0.08473359793424606, 0.031449686735868454, -0.0003454243123997003, 0.04266072064638138, -0.03327620401978493, 0.0018304536351934075, -0.01156794186681509, -0.0654606968164444, -0.04169497638940811, -0.008954132907092571, -0.03277233615517616, 0.051100488752126694, 0.011022086255252361, 0.08952033519744873, 0.0659225732088089, 0.028216540813446045, 0.05160435661673546, 0.06466290354728699, 0.1120263859629631, -0.03506072983145714, -0.008476508781313896, 0.0012891903752461076, -0.01703699678182602, 0.028573445975780487, 0.011945841833949089, 0.022317100316286087, 0.01014556735754013, 0.0031439189333468676, 0.025193339213728905, -0.06852588057518005, 0.0016310063656419516, -0.014066281728446484, -0.051772311329841614, 0.007038389332592487, 0.011504958383738995, 0.0008424022817052901, -0.02993808500468731, 0.029644163325428963, 0.0033722335938364267, 0.03277233615517616, -0.056475069373846054, -0.015577881596982479, -0.04862314462661743, -0.09808606654405594, 0.032121509313583374, -0.042870666831731796, -0.01048147864639759, 0.03342316299676895, -0.058280590921640396, 0.005101651418954134, 0.014391695149242878, 0.058154623955488205, 0.009374021552503109, 0.010282032191753387, 0.03718116879463196, 0.07058334350585938, -0.016375670209527016, 0.03814691677689552, -0.02636902965605259, -0.02292593941092491, 0.01990273781120777, 0.03642537072300911, -0.01257567573338747, -0.03019001893699169, 0.024752456694841385, 0.040393322706222534, 0.10488826781511307, -0.0126281613484025, 0.003994193859398365, -0.02259002812206745, 0.05991815775632858, 0.0010746533516794443, -0.06646842509508133, 0.046649668365716934, -0.0804087445139885, -0.04316458851099014, 0.0047788615338504314, -0.0008778304327279329, -0.0043169837445020676, 0.0035900508519262075, -0.026222066953778267, -0.04190492257475853, -0.016008267179131508, 0.031281728297472, 0.035900507122278214, -0.03136570751667023, 0.02783863991498947, 0.04345851019024849, -0.024311572313308716, -0.003776376601308584, 0.02995907887816429, 0.029539190232753754, -0.017330918461084366, 0.031134769320487976, 0.025235328823328018, -0.007332311477512121, 0.05878445878624916, 0.04192591458559036, -0.023828700184822083, 0.01566185988485813, 0.03052593022584915, -0.00586794875562191, 0.004495436325669289, 0.017016001045703888, -0.0370761975646019, -0.051226455718278885, 0.03354912996292114, 0.027628695592284203, -0.02848946861922741, 0.0039889453910291195, -0.030357973650097847, 0.011441974900662899, -0.060170091688632965, -0.015315450727939606, -0.026872895658016205, -0.01626020111143589, -0.016281194984912872, 0.0014158132253214717, -0.038167908787727356, -0.02739775739610195, 0.034472886472940445, 0.018989479169249535, -0.05832258239388466, -0.029581179842352867, 0.052696067839860916, -0.05164634436368942, -0.03285631537437439, 0.01714196801185608, -0.023177873343229294, -0.007883415557444096, 0.06285738199949265, -0.027691679075360298, 0.03613144904375076, 0.010738660581409931, -0.006014910060912371, 0.03762205317616463, -0.01749887317419052, -0.004437701776623726, 0.0022647762671113014, 0.0010569393634796143, -0.028993334621191025, -0.03617343679070473, 0.03663531318306923, -0.040624260902404785, -0.029077311977744102, 0.003731763456016779, -0.09027613699436188, -0.018653567880392075, -0.024983394891023636, -0.033906035125255585, 0.07667172700166702, 0.04795132204890251, -0.007825681008398533, 0.00798838771879673, 0.024332568049430847, 0.010759655386209488, 0.011326505802571774, -0.004605657421052456, 0.0706673189997673, 0.027544718235731125, 0.018233679234981537, 0.02233809418976307, -0.009274298325181007, -0.022527044638991356, 0.040729232132434845, 0.0126281613484025, 0.03455686569213867, 0.010523468255996704, 0.03205852583050728, 0.015147495083510876, -0.03506072983145714, -0.004049304407089949, -0.06550268083810806, -0.04179994761943817, 0.030441952869296074, -0.013730370439589024, 0.05206623673439026, -0.044886134564876556, -0.10312473773956299, 0.00008036937651922926, -0.00006979014142416418, -0.02370273321866989, 0.007222090847790241, -0.012365730479359627, -0.016218211501836777, -0.005009800661355257, 0.0127436313778162, 0.0903601124882698, 0.008791426196694374, 0.022653011605143547, -0.08192034065723419, 0.012754128314554691, 0.03766404092311859, -0.02683090604841709, 0.040288347750902176, 0.007558001670986414, -0.0038052441086620092, 0.03375907614827156, 0.013121531344950199, 0.01716296188533306, 0.004406210035085678, 0.043962378054857254, -0.017803292721509933, -0.05710490420460701, -0.04079221561551094, -0.020878979936242104, 0.0028001347091048956, 0.015829814597964287, 0.051100488752126694, -0.03877674788236618, -0.018296662718057632, 0.033360179513692856, 0.027019856497645378, -0.0020338373724371195, 0.01672207936644554, 0.0024196102749556303, 0.0046607679687440395, 0.03172261267900467, -0.038377854973077774, -0.07104521989822388, -0.06558666378259659, 0.009620706550776958, 0.044214311987161636, 0.00462140329182148, 0.04925297945737839, -0.029770130291581154, -0.029035324230790138, 0.0013646392617374659, -0.06978555023670197, -0.004833972081542015, -0.03428393602371216, -0.005668501369655132, 0.017845282331109047, -0.010491976514458656, 0.05991815775632858, 0.008056620135903358, -0.024752456694841385, 0.0014040038222447038, -0.0370761975646019, 0.01822318322956562, 0.033150237053632736, -0.008576232939958572, -0.0011658479925245047, -0.0013646392617374659, 0.012449708767235279, 0.06319329142570496, -0.011662417091429234, 0.02737676165997982, -0.009830650873482227, -0.0005520884296856821, -0.0037894982378929853, -0.002111254259943962, -0.036614321172237396, 0.03029499016702175, 0.04259773716330528, 0.046775635331869125, -0.0773855447769165, -0.009143082424998283, -0.03764304891228676, 0.008833414874970913, 0.01647014543414116, 0.03802094981074333, 0.012523189187049866, -0.03986845910549164, 0.03946956619620323, -0.013541419990360737, 0.019199423491954803, 0.04299663379788399, 0.02546626701951027, -0.03149167448282242, -0.022946933284401894, -0.009610209614038467, 0.01571434549987316, -0.018422629684209824, -0.03684525936841965, 0.043542489409446716, 0.009956617839634418, -0.037811003625392914, -0.03262537345290184, 0.002128312364220619, 0.030462946742773056, 0.004624027758836746, 0.04413033276796341, 0.025340300053358078, -0.06651041656732559, 0.03214250132441521, 0.04177895560860634, 0.02781764604151249, -0.012617664411664009, 0.06315130740404129, -0.0943070650100708, 0.028657423332333565, 0.0206795334815979, -0.017740309238433838, -0.027544718235731125, 0.014202745631337166, 0.0032226480543613434, 0.018653567880392075, -0.010486727580428123, 0.05382977053523064, -0.0433325432240963, 0.04169497638940811, 0.05210822448134422, -0.06462091952562332, -0.05051264539361, -0.018853016197681427, 0.0012124294880777597, 0.03228946402668953, 0.004146403633058071, 0.0822562575340271, 0.04455022141337395, -0.015084512531757355, 0.022317100316286087, -0.01659611240029335, -0.008313802070915699, 0.015472909435629845, -0.006293086335062981, -0.0007859797333367169, 0.012911586090922356, -0.008046123199164867, 0.03277233615517616, 0.009206065908074379, -0.001321338233537972, 0.0158718042075634, -0.022527044638991356, -0.01156794186681509, -0.09262751042842865, -0.012901089154183865, 0.030483940616250038, 0.04992480203509331, 0.02124638296663761, 0.042198844254016876, 0.005673749838024378, 0.027334773913025856, 0.04480215534567833, 0.027082839980721474, 0.016239207237958908, 0.054921481758356094, 0.014969042502343655, -0.024878423660993576, 0.028342507779598236, -0.0057787224650382996, 0.03409498557448387, -0.02773366868495941, -0.0016677465755492449, -0.045431990176439285, 0.011441974900662899, -0.0020771382842212915, -0.0027633944991976023, 0.02928725816309452, 0.008927890099585056, -0.009158828295767307, -0.037915974855422974, 0.0038262384478002787, 0.046439722180366516, 0.038167908787727356, -0.018706055358052254, 0.00044777223956771195, -0.007762697990983725, -0.0019577324856072664, -0.06982754170894623, 0.011945841833949089, -0.09455899894237518, -0.018601082265377045, 0.057146891951560974, 0.0822562575340271, -0.03518669679760933, -0.04087619483470917, -0.026851901784539223, -0.03814691677689552, -0.012334238737821579, -0.008602475747466087, -0.04538999870419502, 0.06617450714111328, -0.044424254447221756, 0.0016611858736723661, 0.023492788895964622, -0.0024078008718788624, -0.016942521557211876, -0.011914350092411041, 0.008502752520143986, -0.009148331359028816, -0.012554680928587914, 0.001823892816901207, -0.03184857964515686, -0.028342507779598236, 0.06756013631820679, -0.00920081790536642, -0.035270676016807556, -0.002234596759080887, 0.028468472883105278, 0.006539770867675543, -0.06630047410726547, 0.005437562242150307, -0.007295571267604828, 0.05206623673439026, 0.04774137958884239, -0.06722422689199448, 0.05697893723845482, -0.048203255981206894, -0.023324834182858467, -0.016711581498384476, 0.023849694058299065, 0.025508256629109383, -0.042072877287864685, -0.008880652487277985, 0.001041849609464407, -0.037286143749952316, -0.01608174853026867, -0.02916129119694233, -0.07154908776283264, 0.003739636391401291, -0.056601036339998245, 0.020763510838150978, 0.03252040222287178, 0.05160435661673546, 0.068231962621212, -0.024857427924871445, -0.08003084361553192, -0.05907838046550751, 0.0012563866330310702, 0.05702092498540878, -0.005277479998767376, 0.0648728460073471, -0.0293712355196476, -0.013006061315536499, -0.02055356651544571, 0.058826446533203125, 0.03027399629354477, -0.03965851664543152, 0.0842297300696373, -0.011872361414134502, 0.043080609291791916, -0.005448059644550085, 0.0038577301893383265, 0.006959659978747368, 0.01933588832616806, 0.023639749735593796, -0.06558666378259659, 0.08091261237859726, 0.03375907614827156, -0.05206623673439026, 0.01990273781120777, 0.013530923053622246, -0.040498293936252594, 0.027964606881141663, 0.03613144904375076, -0.01905246265232563, -0.018391137942671776, -0.03228946402668953, -0.003655658569186926, -0.040624260902404785, 0.015955781564116478, -0.05147838965058327, 0.008843911811709404, 0.003941707778722048, -0.035942498594522476, 0.042870666831731796, 0.04988281428813934, 0.05210822448134422, -0.03197454661130905, 0.020438097417354584, -0.02267400547862053, 0.00502817053347826, 0.003432592609897256, 0.006991151720285416, 0.01990273781120777, 0.007075129542499781, -0.000756456283852458, 0.027313778176903725, 0.0596662275493145, 0.019661301746964455, 0.008334796875715256, -0.05462755635380745, -0.05152038112282753, -0.07532808184623718, 0.024101627990603447, 0.04526403173804283, 0.013163520023226738, -0.021603288128972054, -0.06991151720285416, -0.016197217628359795, -0.028090573847293854, 0.024542512372136116, -0.02771267294883728, 0.0018475116230547428, 0.02895134687423706, -0.028090573847293854, 0.0029549687169492245, -0.027019856497645378, 0.027544718235731125, -0.05773473531007767, 0.054585568606853485, 0.006959659978747368, 0.041631992906332016, -0.030567917972803116, -0.01056020800024271, 0.07058334350585938, 0.030987808480858803, -0.04946292191743851, -0.027082839980721474, 0.02233809418976307, -0.001692677498795092, 0.011714902706444263, -0.06625848263502121, -0.038062937557697296, -0.043752431869506836, -0.013950811699032784, 0.0019419866148382425, -0.047783367335796356, 0.0702054426074028, -0.032562389969825745, 0.03422095254063606, -0.03680327162146568, 0.020081190392374992 ]
21,085
tfields.core
__iter__
Forwarding iterations to the bulk array. Otherwise __getitem__ would kick in and slow down imensely. Examples: >>> import tfields >>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]]) >>> scalar_field = tfields.TensorFields( ... vectors, [42, 21, 10.5], [1, 2, 3]) >>> [(point.rank, point.dim) for point in scalar_field] [(0, 1), (0, 1), (0, 1)]
def __iter__(self): """ Forwarding iterations to the bulk array. Otherwise __getitem__ would kick in and slow down imensely. Examples: >>> import tfields >>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]]) >>> scalar_field = tfields.TensorFields( ... vectors, [42, 21, 10.5], [1, 2, 3]) >>> [(point.rank, point.dim) for point in scalar_field] [(0, 1), (0, 1), (0, 1)] """ for index in range(len(self)): yield super(Tensors, self).__getitem__(index).view(Tensors)
(self)
[ 0.0027914182282984257, -0.06379830837249756, -0.077743299305439, 0.019658556208014488, -0.005156739614903927, 0.01977476477622986, -0.021595360711216927, -0.005878198891878128, 0.05233243480324745, 0.025062238797545433, 0.0006924073095433414, -0.018612682819366455, -0.017518388107419014, 0.04838135465979576, -0.0009605335653759539, 0.015252328477799892, -0.017305340617895126, 0.027521979063749313, -0.01006169430911541, 0.010371583513915539, -0.011446509510278702, 0.005524732172489166, 0.005824937019497156, 0.009538757614791393, -0.00045817511272616684, 0.04927228391170502, 0.053262099623680115, -0.04206737503409386, 0.044352803379297256, -0.012589223682880402, -0.01767333224415779, -0.011785450391471386, 0.030775809660553932, 0.014816547743976116, 0.03232525289058685, -0.055896151810884476, -0.04667696729302406, 0.02120799943804741, -0.009267604909837246, 0.051596447825431824, 0.04981458932161331, -0.07367601245641708, -0.01686955988407135, -0.041021499782800674, -0.015397588722407818, 0.007509956136345863, 0.040634140372276306, -0.008318571373820305, 0.00817331112921238, -0.033313021063804626, -0.009107818827033043, -0.005374629981815815, 0.04106023535132408, -0.014826231636106968, -0.010139167308807373, 0.039084695279598236, 0.00719038350507617, -0.00661902641877532, -0.03695421293377876, 0.04260968044400215, -0.011795134283602238, -0.05016321316361427, 0.008705932646989822, -0.022486289963126183, 0.039142802357673645, -0.047141801565885544, -0.04586350917816162, 0.011601453647017479, 0.01613357476890087, 0.02624368853867054, -0.03298376500606537, 0.008589724078774452, 0.024500565603375435, -0.004950954113155603, -0.025236550718545914, 0.04454648122191429, -0.022505657747387886, 0.05620604008436203, 0.07561281323432922, -0.08901549130678177, -0.02635989710688591, 0.03453321009874344, -0.025720752775669098, -0.019755396991968155, -0.05004700645804405, -0.03160863369703293, -0.020162126049399376, -0.030659601092338562, -0.04586350917816162, 0.005548942368477583, -0.020840005949139595, 0.010826732032001019, -0.007509956136345863, 0.014855283312499523, -0.019290564581751823, 0.021595360711216927, -0.02103368751704693, -0.036624956876039505, -0.06910515576601028, 0.03521108999848366, 0.030446553602814674, 0.039491426199674606, 0.01149492897093296, 0.009020662866532803, 0.020142758265137672, 0.0048880078829824924, -0.04903986677527428, -0.041602540761232376, 0.023996997624635696, 0.020549485459923744, -0.03360354155302048, 0.06836916506290436, -0.008144259452819824, 0.018506158143281937, -0.03563718497753143, -0.03377785533666611, 0.03447510302066803, 0.030911386013031006, 0.006551238242536783, -0.0036605587229132652, 0.043151985853910446, 0.009500022046267986, -0.012560171075165272, 0.028664693236351013, -0.015475060790777206, 0.043461874127388, 0.050628047436475754, 0.022273240610957146, -0.020258964970707893, -0.052177488803863525, -0.04106023535132408, -0.019968444481492043, -0.003948658239096403, 0.04295830428600311, 0.03722536563873291, -0.009383813478052616, 0.05024068430066109, -0.03863923251628876, -0.06736203283071518, 0.014680971391499043, -0.0017709648236632347, 0.002125642029568553, 0.030446553602814674, 0.0457473024725914, -0.016259467229247093, -0.008415411226451397, -0.010671787895262241, 0.04408165067434311, 0.022040825337171555, -0.047258008271455765, -0.043539345264434814, 0.049659643322229385, 0.07503177225589752, 0.05283600091934204, -0.058297786861658096, 0.03172484412789345, -0.03354543820023537, -0.043655551970005035, 0.0007644321885891259, 0.008110364899039268, -0.05225495994091034, -0.017131028696894646, -0.06488291919231415, 0.036799266934394836, -0.019174356013536453, 0.040905293077230453, -0.05388187617063522, -0.06356589496135712, -0.031589265912771225, 0.003958342596888542, 0.044972579926252365, -0.05608983337879181, 0.018612682819366455, 0.01893225498497486, 0.0045999083667993546, 0.07355979830026627, -0.015339484438300133, 0.025178447365760803, 0.011388405226171017, 0.010052010416984558, -0.016201362013816833, -0.012879744172096252, -0.043655551970005035, -0.0760776475071907, 0.018157534301280975, 0.04249347001314163, 0.011369037441909313, -0.018767626956105232, 0.02589506469666958, 0.05574120953679085, 0.032518934458494186, 0.0023750055115669966, 0.0012147390516474843, -0.019803816452622414, 0.009112660773098469, 0.044507745653390884, -0.02606937661767006, 0.013392996974289417, 0.03534666448831558, 0.09854456782341003, -0.06282991170883179, -0.02864532545208931, 0.012134074233472347, 0.02504287101328373, -0.06217139586806297, 0.03823250159621239, 0.04493384435772896, -0.004907376132905483, -0.04985332489013672, -0.0007202488486655056, 0.018903203308582306, -0.012143759056925774, 0.030330345034599304, 0.04144759848713875, 0.04888492450118065, 0.008589724078774452, -0.048342619091272354, -0.048807449638843536, -0.005055057350546122, -0.0019961181096732616, 0.08700121939182281, -0.03563718497753143, -0.03511425107717514, -0.050124477595090866, 0.018544893711805344, -0.018273742869496346, -0.02481045387685299, -0.05767801031470299, -0.08428969234228134, -0.01807037740945816, 0.0025057396851480007, 0.031008224934339523, -0.03528856113553047, 0.02469424530863762, 0.05485027655959129, 0.00901097897440195, 0.000663960468955338, -0.022331345826387405, 0.004006762523204088, 0.02144041657447815, -0.030039824545383453, 0.0022600076626986265, -0.02109179086983204, -0.042338527739048004, -0.04408165067434311, 0.019639188423752785, -0.010894520208239555, 0.06252001971006393, -0.02934257499873638, 0.007335643749684095, -0.015794632956385612, -0.027831867337226868, -0.0040479195304214954, 0.019455192610621452, 0.025178447365760803, -0.06170656159520149, 0.042454734444618225, -0.03339049592614174, 0.020278334617614746, -0.023415954783558846, -0.033022500574588776, -0.0013993405736982822, 0.0065899742767214775, 0.05306841805577278, -0.0028446803335100412, 0.027018411085009575, 0.037477150559425354, 0.022718707099556923, 0.033487334847450256, 0.07816939055919647, 0.07964136451482773, 0.10497475415468216, -0.023183539509773254, -0.009320867247879505, 0.012937848456203938, -0.0029560464899986982, 0.04098276421427727, 0.0417574867606163, -0.03526919335126877, -0.019716661423444748, 0.003200568025931716, -0.013083108700811863, -0.06701340526342392, -0.019871605560183525, -0.014564762823283672, -0.04392670467495918, 0.0033748801797628403, 0.000229995435802266, -0.004655591677874327, -0.037244733422994614, 0.07057712227106094, 0.028219228610396385, 0.030388448387384415, -0.03226714953780174, 0.033196814358234406, -0.04206737503409386, -0.09823467582464218, 0.07181667536497116, 0.003091622842475772, -0.015339484438300133, 0.03499804064631462, -0.046057190746068954, -0.055160168558359146, 0.04927228391170502, 0.03625696524977684, -0.0030674126464873552, 0.013286473229527473, 0.05438544601202011, -0.026689153164625168, -0.02727019414305687, 0.029710566624999046, -0.006396294105798006, -0.02984614297747612, -0.0028664693236351013, 0.03354543820023537, -0.05643845722079277, -0.026785993948578835, 0.029013318940997124, -0.003311934182420373, 0.07344359159469604, -0.016540301963686943, 0.03503677621483803, 0.019755396991968155, 0.031995996832847595, -0.03464941680431366, 0.017750805243849754, 0.046793173998594284, -0.054114293307065964, -0.08033861219882965, 0.032518934458494186, 0.037419047206640244, -0.023086698725819588, 0.005602204240858555, 0.03280945494771004, -0.014303294941782951, 0.005437576211988926, 0.030446553602814674, 0.04439153894782066, -0.005955670960247517, -0.009713070467114449, -0.027231458574533463, 0.007364695891737938, 0.009625913575291634, 0.020859375596046448, -0.013228368945419788, -0.011272196657955647, -0.02641800045967102, -0.015707477927207947, 0.05756180360913277, 0.01881604641675949, 0.04776157811284065, -0.03875543922185898, 0.006657762452960014, 0.028006181120872498, -0.00889477040618658, 0.004101181868463755, -0.008623617701232433, 0.006343031767755747, -0.05171265825629234, 0.03232525289058685, 0.00013406312791630626, -0.001183871179819107, 0.023803316056728363, -0.007882790639996529, 0.0168598759919405, -0.04590224474668503, -0.042222317308187485, -0.01284100767225027, -0.009422549977898598, 0.033138711005449295, -0.02006528526544571, -0.00894803274422884, 0.0003979526227340102, 0.028664693236351013, 0.002476687543094158, -0.048226408660411835, -0.04419785737991333, 0.03581149876117706, -0.012027550488710403, -0.021827775985002518, 0.05233243480324745, -0.014845599420368671, 0.05942113324999809, 0.018457738682627678, 0.0028664693236351013, -0.024461830034852028, 0.02333848364651203, -0.0009762700647115707, -0.02451993338763714, -0.011862922459840775, -0.033719751983881, -0.05438544601202011, -0.08545177429914474, -0.016772719100117683, -0.04927228391170502, -0.032344620674848557, -0.006895021069794893, -0.016172310337424278, -0.01613357476890087, -0.08645891398191452, -0.026689153164625168, -0.027308931574225426, -0.05639972165226936, 0.077743299305439, 0.013906249776482582, -0.018399633467197418, 0.012356807477772236, -0.003503193613141775, -0.001104583265259862, 0.0503181591629982, -0.0022999541833996773, 0.06616120785474777, 0.05825905129313469, -0.015513797290623188, 0.048110201954841614, -0.011969446204602718, -0.027173355221748352, 0.024849189445376396, 0.03025287203490734, 0.09598799049854279, 0.03528856113553047, 0.01323805283755064, -0.009684017859399319, 0.003951079212129116, -0.030833913013339043, -0.04950470104813576, 0.00840088538825512, 0.011252828873693943, 0.015620321035385132, 0.019484244287014008, -0.044004179537296295, -0.0794864222407341, -0.0024101100862026215, -0.002180114621296525, -0.021808408200740814, -0.02852911688387394, -0.019813500344753265, 0.0001322473690379411, -0.017925117164850235, 0.020104020833969116, 0.07747214287519455, 0.036218225955963135, 0.03933648020029068, -0.09405118227005005, 0.00094721803907305, 0.018767626956105232, -0.03916217014193535, 0.04373302683234215, -0.025643279775977135, 0.014651919715106487, 0.024771718308329582, 0.014429186470806599, 0.06050574406981468, -0.002607421949505806, 0.04195116460323334, 0.021711569279432297, -0.015688110142946243, -0.07971883565187454, -0.0026921569369733334, 0.014080562628805637, 0.014806863851845264, 0.022893019020557404, -0.006977335084229708, -0.08088091760873795, 0.019232459366321564, -0.057096969336271286, -0.018312478438019753, 0.033719751983881, -0.016094837337732315, -0.029129525646567345, 0.054462917149066925, 0.001842384459450841, -0.015223276801407337, -0.0771622583270073, -0.01406119391322136, 0.053843140602111816, -0.02326101064682007, 0.055896151810884476, -0.027173355221748352, -0.07820812612771988, -0.07239771634340286, -0.074373260140419, 0.03126000985503197, -0.042687151581048965, 0.0032610930502414703, 0.04009183496236801, 0.012995951808989048, 0.029807407408952713, 0.0228736512362957, -0.01164019014686346, 0.026321161538362503, -0.020394541323184967, 0.0019828027579933405, 0.02093684673309326, -0.01320900022983551, 0.004401386249810457, 0.0165790393948555, 0.040053099393844604, 0.04032425209879875, 0.04454648122191429, 0.019745713099837303, -0.012327754870057106, 0.03461068123579025, -0.019755396991968155, 0.02070443145930767, 0.01743123307824135, 0.054579127579927444, 0.01893225498497486, -0.007563218008726835, -0.03978194668889046, 0.008560672402381897, -0.05907250940799713, -0.061784036457538605, -0.041834957897663116, 0.019232459366321564, -0.029536254703998566, -0.02023959718644619, 0.015223276801407337, -0.021866513416171074, 0.016947031021118164, 0.04698685556650162, 0.005878198891878128, -0.06720708310604095, 0.024500565603375435, -0.014148350805044174, 0.031143801286816597, -0.030097927898168564, -0.030214136466383934, 0.020917478948831558, 0.00627524359151721, 0.010700839571654797, -0.012453647330403328, 0.006439872086048126, -0.006163877435028553, 0.00005821759259561077, 0.037244733422994614, 0.062132660299539566, -0.024442462250590324, 0.054230500012636185, 0.053998082876205444, 0.03280945494771004, -0.000064307932916563, 0.019813500344753265, -0.06170656159520149, 0.0009696123306639493, -0.04733547940850258, -0.0514802411198616, -0.06736203283071518, 0.031085697934031487, -0.01120440848171711, -0.019251827150583267, -0.013576993718743324, 0.009800226427614689, 0.0354435071349144, -0.013392996974289417, 0.03701231628656387, -0.043887969106435776, -0.011078516952693462, -0.014429186470806599, 0.03339049592614174, 0.05353325232863426, 0.0017237552674487233, 0.022098928689956665, 0.04311324656009674, 0.02298985794186592, 0.03608265146613121, -0.0000033903520488820504, 0.028839005157351494, -0.0022224821150302887, -0.0029778354801237583, 0.014090246520936489, 0.0049315863288939, -0.031356848776340485, 0.024345621466636658, 0.06159035488963127, 0.020045917481184006, -0.021808408200740814, -0.03637317195534706, -0.00584430480375886, -0.11744777113199234, -0.019000044092535973, 0.003137621795758605, 0.04156380519270897, -0.04179622232913971, 0.012414910830557346, -0.011698293499648571, 0.008802772499620914, 0.07507050782442093, 0.009558125399053097, -0.011107568629086018, 0.031589265912771225, -0.01928088068962097, -0.07336612045764923, -0.004251284059137106, 0.011339984834194183, -0.02178904041647911, -0.08157816529273987, -0.02911015786230564, -0.031937889754772186, 0.007117753382772207, -0.024578038603067398, 0.025875696912407875, -0.0018629629630595446, 0.030543392524123192, -0.01189197413623333, -0.09753742814064026, -0.047258008271455765, 0.04776157811284065, 0.05299094691872597, 0.006507660262286663, 0.020840005949139595, 0.0031521478667855263, 0.03637317195534706, -0.015600953251123428, -0.02911015786230564, -0.050008270889520645, -0.04322945699095726, 0.08545177429914474, 0.05632225051522255, 0.012134074233472347, -0.03131811320781708, -0.010100430808961391, -0.048575036227703094, -0.0023774264845997095, -0.051092877984046936, -0.03025287203490734, 0.07468314468860626, -0.07336612045764923, 0.02694093808531761, 0.031763579696416855, -0.006241349503397942, -0.04198990389704704, 0.012618275359272957, -0.01132061704993248, -0.022951122373342514, -0.057096969336271286, -0.03137622028589249, 0.009843803942203522, -0.042803358286619186, 0.006778812501579523, -0.0042682308703660965, 0.06170656159520149, -0.0007959052454680204, 0.002274533733725548, 0.021479152143001556, -0.044740162789821625, -0.021014319732785225, -0.015562216751277447, 0.041834957897663116, 0.030446553602814674, -0.04098276421427727, 0.053494516760110855, 0.0006270401645451784, 0.008081313222646713, -0.023570900782942772, 0.007756898645311594, -0.007635848131030798, -0.024965398013591766, 0.03195726126432419, 0.03007856011390686, -0.0014380767242982984, -0.00866719614714384, 0.040053099393844604, -0.07018976658582687, 0.0032393040601164103, -0.01140777301043272, 0.006396294105798006, 0.006914388854056597, -0.013644781894981861, 0.0337391197681427, -0.042570944875478745, 0.012676379643380642, -0.03951079398393631, -0.0008092207717709243, 0.06399199366569519, 0.018941938877105713, 0.02419067732989788, -0.03437826409935951, -0.012279334478080273, -0.027231458574533463, 0.008502568118274212, -0.011940394528210163, -0.015184540301561356, 0.07390842586755753, -0.07472188025712967, -0.03858112916350365, -0.025139711797237396, 0.018428687006235123, 0.006565764080733061, -0.07971883565187454, 0.02097558230161667, -0.04505005106329918, 0.0680205449461937, -0.004137496929615736, -0.06019585579633713, 0.012492382898926735, 0.032054100185632706, -0.017808908596634865, 0.022776810452342033, 0.018564263358712196, 0.004607171751558781, -0.01899036020040512, -0.022002089768648148, 0.0263017937541008, 0.015184540301561356, 0.03555971384048462, 0.005573152564466, 0.006594816222786903, -0.002917310455814004, 0.01492307148873806, 0.05407555773854256, 0.028180493041872978, -0.016036733984947205, -0.05213875323534012, 0.010168218985199928, -0.006280085537582636, 0.0010059273336082697, 0.03869733586907387, 0.012937848456203938, 0.05450165271759033, 0.037419047206640244, 0.00044364907080307603, 0.017353760078549385, 0.08723363280296326, -0.01234712265431881, 0.008226573467254639, -0.019755396991968155, 0.07115816324949265, -0.03280945494771004, 0.01943582482635975, 0.028664693236351013, -0.025120342150330544, 0.009901908226311207, -0.057096969336271286, -0.02641800045967102, -0.007969946600496769, 0.005544100422412157, 0.005926618818193674, -0.016743667423725128, 0.025120342150330544, -0.023028595373034477, 0.014119298197329044, -0.004260967951267958, 0.016056101769208908, 0.006948282942175865, 0.015339484438300133, 0.03195726126432419, -0.01640472747385502, -0.0014162876177579165, -0.010720208287239075, 0.07251393049955368, 0.042687151581048965, -0.024210045114159584, -0.014564762823283672, 0.0835149735212326, -0.03511425107717514, 0.032286517322063446, -0.0794864222407341, -0.08707869052886963, -0.0691826269030571, -0.03437826409935951, -0.037767671048641205, -0.008938348852097988, 0.05860767886042595, -0.0531846284866333, 0.036566853523254395, 0.05055057257413864, 0.029710566624999046 ]
21,086
tfields.mesh_3d
__new__
null
def __new__(cls, tensors, *fields, **kwargs): kwargs["dim"] = 3 if "maps" in kwargs and "faces" in kwargs: raise ValueError("Conflicting options maps and faces") faces = kwargs.pop("faces", None) maps = kwargs.pop("maps", None) if faces is not None: if len(faces) == 0: # faces = [] faces = np.empty((0, 3)) maps = [faces] if maps is not None: kwargs["maps"] = maps obj = super(Mesh3D, cls).__new__(cls, tensors, *fields, **kwargs) if len(obj.maps) > 1: raise ValueError("Mesh3D only allows one map") if obj.maps and (len(obj.maps) > 1 or obj.maps.keys()[0] != 3): raise ValueError("Face dimension should be 3") return obj
(cls, tensors, *fields, **kwargs)
[ -0.00709886010736227, -0.01812356896698475, -0.027915099635720253, 0.013837465085089207, -0.06824512034654617, 0.02375831827521324, -0.04027459770441055, 0.049807485193014145, -0.03066781349480152, 0.02682510018348694, 0.03262611851096153, 0.05479562282562256, -0.1375248283147812, 0.018012721091508865, 0.035655952990055084, -0.02553187869489193, -0.03787290304899216, 0.00036169777740724385, 0.0010478554759174585, -0.04241764917969704, -0.007343648001551628, -0.013985262252390385, 0.01109398901462555, 0.04267629608511925, 0.0846875011920929, 0.018991874530911446, -0.009902378544211388, 0.021763062104582787, 0.07907123118638992, 0.03879663348197937, -0.06421766430139542, 0.05165494233369827, -0.009551361203193665, 0.12222786247730255, -0.0036210189573466778, -0.05276342108845711, 0.0033785400446504354, -0.010327293537557125, -0.061926815658807755, 0.023684419691562653, 0.060227151960134506, -0.06425461173057556, 0.007976402528584003, -0.005560850724577904, 0.05771460756659508, 0.0035355740692466497, 0.0642915591597557, -0.021892385557293892, -0.04315663501620293, -0.03813154622912407, -0.020377468317747116, -0.030279846861958504, 0.0531698614358902, -0.015241533517837524, -0.051839690655469894, 0.021245773881673813, 0.036468833684921265, 0.009449751116335392, -0.11350785940885544, 0.020026450976729393, -0.09266852587461472, -0.0221879780292511, 0.01666407659649849, -0.05808410048484802, -0.039794258773326874, -0.03146222233772278, 0.018770180642604828, -0.010447378270328045, 0.016054416075348854, 0.02617848850786686, -0.02717611752450466, 0.02375831827521324, 0.0316469669342041, -0.016119075939059258, 0.057382065802812576, 0.04866206273436546, 0.026769675314426422, 0.03626561164855957, -0.002632628660649061, 0.016451619565486908, -0.03779900446534157, -0.045004092156887054, -0.03373459354043007, 0.051285453140735626, 0.017985010519623756, 0.007537631317973137, -0.009616021998226643, -0.020285096019506454, 0.009338903240859509, -0.051765792071819305, -0.04733189195394516, -0.024903742596507072, -0.016340771690011024, -0.04082883521914482, 0.008138054981827736, -0.03567442670464516, 0.01910272240638733, -0.03343900293111801, 0.02455272525548935, 0.04747968912124634, 0.013745092786848545, -0.011537379585206509, -0.016654839739203453, -0.011398820206522942, 0.006235172972083092, -0.0575668103992939, -0.03270001709461212, -0.05930342152714729, -0.04869901016354561, 0.013024583458900452, 0.015712635591626167, 0.06248105317354202, 0.04552138224244118, 0.1130644679069519, -0.016451619565486908, -0.002646484412252903, -0.007939453236758709, 0.009717632085084915, 0.0385749377310276, 0.006821740884333849, -0.02918984740972519, 0.04234375059604645, -0.010327293537557125, 0.016645602881908417, 0.01321856677532196, 0.05032477527856827, 0.012876787222921848, -0.05032477527856827, -0.0029351499397307634, -0.018483823165297508, -0.007685428019613028, 0.01320932898670435, -0.04722104221582413, -0.03942476958036423, -0.004161400720477104, 0.005320680793374777, 0.006198223680257797, -0.013846702873706818, -0.01842840015888214, 0.026529505848884583, 0.030723238363862038, 0.02918984740972519, 0.032404426485300064, 0.03465832397341728, -0.11077362298965454, 0.01857619732618332, 0.05498037114739418, -0.08306173980236053, -0.006142800208181143, -0.0059118675999343395, -0.011112463660538197, -0.0026765058282762766, 0.011195599101483822, 0.03432578220963478, -0.06211156025528908, 0.001594587811268866, -0.010872294194996357, -0.08712615072727203, 0.06780173629522324, 0.04685155302286148, -0.01895492523908615, 0.015878906473517418, -0.007149665150791407, 0.030150525271892548, 0.014077634550631046, -0.01394831296056509, 0.053724098950624466, -0.12407532334327698, -0.048440366983413696, 0.02056221477687359, 0.0010692167561501265, 0.006313689984381199, 0.04880985617637634, 0.03308798372745514, -0.02479289472103119, 0.02538408152759075, -0.027988998219370842, -0.022890012711286545, 0.010789158754050732, 0.030723238363862038, 0.016571704298257828, 0.013726618140935898, 0.022982385009527206, 0.019971027970314026, -0.000550196273252368, 0.004660214297473431, 0.0010709486668929458, 0.03415951132774353, 0.03244137391448021, 0.0037157011684030294, -0.0162576362490654, 0.022151028737425804, -0.015158398076891899, 0.03327273204922676, 0.0003051193489227444, 0.00940818339586258, 0.04389561712741852, -0.04751663655042648, 0.02325950376689434, 0.07489597052335739, -0.07160750031471252, -0.00333466287702322, -0.0027896626852452755, -0.01797577366232872, -0.01369890570640564, 0.026049166917800903, 0.04430205747485161, -0.030224423855543137, -0.02058069035410881, 0.0055747064761817455, 0.036561205983161926, -0.03597002103924751, 0.02457120083272457, 0.02106102928519249, 0.014170007780194283, -0.04105053097009659, -0.048735957592725754, 0.01671026274561882, -0.020802384242415428, 0.02878340519964695, 0.05675392970442772, 0.010355005972087383, -0.05202443525195122, 0.040385447442531586, -0.07892343401908875, 0.021485943347215652, 0.02700984477996826, 0.014179245568811893, -0.05239392817020416, 0.010133311152458191, -0.04862511157989502, 0.02765645645558834, -0.030944932252168655, 0.007269749883562326, 0.031831711530685425, 0.0028497050516307354, 0.038353241980075836, -0.05165494233369827, 0.03430730849504471, -0.003168391529470682, 0.0643654614686966, -0.05246782675385475, 0.010807633399963379, 0.010742971673607826, 0.05642138794064522, 0.021744588389992714, -0.009745344519615173, 0.019878655672073364, 0.019546112045645714, 0.0265849307179451, -0.059968508780002594, 0.05376104637980461, -0.019952554255723953, 0.07467427849769592, 0.006604664493352175, -0.005588562227785587, 0.050213925540447235, -0.07327020913362503, -0.002614154014736414, -0.03957256302237511, -0.0274162869900465, -0.01644238270819187, 0.06939055025577545, 0.05106375738978386, 0.06717360019683838, -0.01000398863106966, 0.04082883521914482, 0.0019236663356423378, 0.003699535969644785, 0.013403312303125858, 0.05560850724577904, 0.061852917075157166, 0.036561205983161926, -0.020876282826066017, 0.027120692655444145, -0.06299833953380585, 0.01958306133747101, -0.021984757855534554, -0.012544244527816772, 0.008867801167070866, -0.004946570377796888, -0.018723992630839348, -0.043710872530937195, -0.012765939347445965, 0.019638486206531525, -0.007454495877027512, -0.024700522422790527, 0.04707324504852295, 0.010475090704858303, -0.03391934186220169, -0.008332038298249245, 0.05479562282562256, -0.04027459770441055, -0.034843068569898605, -0.04921630024909973, -0.04112442955374718, -0.025254759937524796, 0.09688073396682739, 0.008405936881899834, -0.016405433416366577, 0.01635000854730606, -0.06528919190168381, 0.08505699783563614, 0.020931705832481384, -0.00488190958276391, -0.04345222935080528, -0.012996871955692768, 0.00003875333277392201, 0.049733586609363556, 0.006715512368828058, 0.054130539298057556, 0.03765120729804039, -0.08882581442594528, 0.011167887598276138, 0.022335775196552277, 0.091412253677845, 0.04711019620299339, -0.050213925540447235, -0.00044339007581584156, 0.021005604416131973, 0.039240021258592606, -0.052172232419252396, -0.027065269649028778, 0.034769173711538315, -0.04581697657704353, -0.07149665057659149, 0.04153086990118027, -0.07001868635416031, 0.016978144645690918, -0.011260260827839375, -0.013357126154005527, 0.017440009862184525, 0.0012839838163927197, -0.007939453236758709, -0.06303528696298599, -0.027619507163763046, 0.023388827219605446, 0.001012638327665627, 0.02154136821627617, 0.010391955263912678, 0.025882896035909653, -0.02050679177045822, -0.045484431087970734, 0.023388827219605446, -0.02462662383913994, 0.0002333859883947298, 0.03787290304899216, -0.03912917524576187, 0.023943064734339714, 0.0423068031668663, 0.02008187584578991, -0.04766443371772766, 0.06140952557325363, 0.01621145009994507, 0.030556965619325638, -0.015010601840913296, -0.029466966167092323, -0.007186613976955414, -0.030520016327500343, 0.011611277237534523, -0.0020564524456858635, -0.04252849891781807, 0.020543741062283516, 0.05106375738978386, 0.0003839250130113214, -0.016488568857312202, 0.05494341999292374, -0.0167564507573843, -0.008761572651565075, 0.02292696200311184, 0.04186341166496277, -0.04733189195394516, -0.020599164068698883, 0.048994604498147964, 0.026474082842469215, -0.01272899005562067, -0.023277979344129562, 0.047036297619342804, -0.003189175622537732, -0.036561205983161926, -0.016368484124541283, -0.03105578012764454, 0.0035956164356321096, -0.02660340443253517, -0.024829844012856483, 0.04182646423578262, 0.01382822822779417, 0.030704762786626816, 0.03957256302237511, 0.0311481524258852, 0.014271617867052555, -0.011546616442501545, 0.045595280826091766, -0.0677647814154625, -0.019324418157339096, 0.05187663808465004, -0.022890012711286545, 0.004713329020887613, 0.019860180094838142, -0.05139629915356636, -0.06898410618305206, -0.04149392247200012, 0.005713265854865313, 0.027213066816329956, -0.022575944662094116, 0.004620955791324377, -0.006581571418792009, 0.05058341845870018, 0.04385866969823837, 0.012913735583424568, 0.07112716138362885, 0.045669179409742355, 0.0038819725159555674, 0.0085444962605834, 0.01171288825571537, 0.03234900161623955, -0.012710515409708023, -0.05442613363265991, 0.004849579185247421, 0.03105578012764454, 0.00008573362720198929, 0.03377154469490051, 0.012867549434304237, -0.00721894484013319, 0.007976402528584003, -0.00995780248194933, -0.06466105580329895, 0.008743098005652428, 0.03576679900288582, -0.008392080664634705, -0.045188840478658676, -0.025014590471982956, 0.023314928635954857, -0.038501039147377014, 0.009736106730997562, 0.04226985573768616, -0.011869922280311584, -0.0005109377671033144, -0.030279846861958504, -0.015010601840913296, 0.0379098504781723, -0.06055969372391701, -0.0074083092622458935, -0.01866856962442398, -0.04057019203901291, 0.008405936881899834, 0.003387777367606759, 0.0007482207729481161, 0.005459240172058344, 0.023444250226020813, 0.05398274213075638, 0.06783868372440338, 0.0004526273696683347, -0.014973652549088001, 0.08550038933753967, -0.03205340728163719, -0.04385866969823837, -0.009403564967215061, 0.025587301701307297, 0.016913484781980515, -0.038353241980075836, 0.0018093548715114594, -0.00019023050845135003, -0.04725799337029457, -0.04796002805233002, -0.01472424529492855, 0.027915099635720253, -0.03861188516020775, -0.02880188077688217, -0.042232904583215714, 0.02909747324883938, 0.037540361285209656, 0.016765687614679337, -0.032312050461769104, -0.0622963048517704, -0.0024270988069474697, 0.05398274213075638, 0.00029198508127592504, -0.040976632386446, -0.03617323935031891, -0.00397434551268816, 0.007468351628631353, 0.02839544042944908, -0.004607100039720535, -0.016368484124541283, 0.04581697657704353, -0.01358805876225233, 0.027102218940854073, 0.05047256872057915, 0.02756408229470253, -0.03129595145583153, -0.03805764764547348, 0.021245773881673813, 0.044597651809453964, 0.02228035219013691, 0.01680263690650463, 0.019158145412802696, 0.015019838698208332, -0.04467155039310455, 0.020636113360524178, -0.011287972331047058, -0.05490647256374359, -0.032644595950841904, -0.00506203668192029, -0.022335775196552277, -0.06658241152763367, 0.024127809330821037, 0.004122142214328051, 0.0423068031668663, -0.0006662397645413876, -0.02462662383913994, -0.01639619469642639, 0.01443788968026638, -0.016248399391770363, -0.00011077535600634292, 0.006978774908930063, -0.04666680470108986, 0.0013463355135172606, -0.045484431087970734, 0.009828479960560799, 0.05538681149482727, 0.016146788373589516, -0.031037304550409317, -0.009551361203193665, -0.04400646686553955, 0.0005770421703346074, 0.0221879780292511, -0.04456070438027382, 0.05047256872057915, -0.003842714009806514, -0.02579052373766899, -0.03478764742612839, -0.05098985880613327, 0.053539350628852844, -0.008747716434299946, -0.0011708269594237208, 0.018807129934430122, 0.013403312303125858, 0.031757812947034836, -0.048033926635980606, -0.006581571418792009, -0.009791530668735504, -0.00506203668192029, -0.04984443634748459, 0.015066025778651237, -0.047701381146907806, -0.0011673629051074386, -0.011740599758923054, 0.04145697131752968, 0.004556294996291399, 0.0056809354573488235, -0.0006985702784731984, 0.009773056022822857, -0.021264249458909035, 0.04142002388834953, 0.04300883784890175, -0.018077382817864418, -0.08417021483182907, -0.032238151878118515, -0.012183989398181438, 0.020285096019506454, 0.019176620990037918, 0.035508155822753906, 0.06758003681898117, -0.01577729731798172, -0.04193731024861336, -0.013024583458900452, 0.04618646577000618, -0.02717611752450466, -0.003634874941781163, 0.005856444127857685, 0.050620365887880325, 0.011962294578552246, 0.07190309464931488, 0.040459346026182175, -0.031000357121229172, 0.035748325288295746, -0.0029305312782526016, 0.027582557871937752, -0.035341884940862656, -0.029559338465332985, 0.01418848242610693, -0.05871223658323288, 0.03277391567826271, 0.015758821740746498, 0.04644510895013809, -0.020026450976729393, 0.02455272525548935, 0.03957256302237511, -0.01582348346710205, 0.031037304550409317, 0.021855436265468597, -0.029152898117899895, 0.03242290019989014, -0.03953561559319496, 0.026326285675168037, 0.01077992096543312, -0.04101358354091644, -0.004276867024600506, -0.026474082842469215, -0.022834589704871178, 0.023555098101496696, -0.04082883521914482, 0.008816996589303017, 0.011777549050748348, -0.06462410092353821, -0.03909222409129143, 0.048329517245292664, 0.007112715858966112, -0.025808997452259064, 0.006346020381897688, -0.06266579777002335, -0.006091994699090719, -0.044597651809453964, 0.017994247376918793, -0.037447985261678696, -0.05812104791402817, 0.03887052834033966, 0.07751936465501785, -0.020229673013091087, -0.03033527173101902, -0.05837969481945038, -0.014936703257262707, 0.03816849738359451, 0.00024045829195529222, -0.022982385009527206, 0.030316796153783798, -0.04016375169157982, -0.01747695915400982, 0.006683181505650282, 0.021615266799926758, 0.007611529901623726, -0.03528646007180214, -0.0021800012327730656, 0.011010853573679924, 0.0059118675999343395, -0.029263745993375778, -0.00041221422725357115, 0.04585392400622368, -0.0062490287236869335, -0.027693405747413635, -0.00524216378107667, 0.008456742390990257, -0.030871033668518066, 0.009495937265455723, -0.04315663501620293, 0.05538681149482727, 0.019712384790182114, 0.028691032901406288, -0.01958306133747101, 0.0019479142501950264, 0.03432578220963478, -0.013689668849110603, 0.014530261978507042, 0.016405433416366577, 0.011445006355643272, -0.01654399186372757, -0.025310182943940163, 0.033863916993141174, -0.017255263403058052, -0.0294484905898571, 0.0038265488110482693, 0.027286963537335396, -0.049474943429231644, 0.008803140372037888, -0.004122142214328051, 0.04448680579662323, -0.046038668602705, 0.04711019620299339, 0.06983393430709839, -0.10005836188793182, -0.025494929403066635, -0.004840341862291098, -0.00928809866309166, 0.029744084924459457, 0.02261289395391941, 0.06850376725196838, 0.00829508900642395, -0.003341590752825141, 0.018973400816321373, 0.024497302249073982, 0.027785778045654297, -0.018917975947260857, 0.055904097855091095, 0.012701278552412987, 0.025679675862193108, -0.027286963537335396, 0.027693405747413635, -0.02074696123600006, 0.024515775963664055, 0.030113575980067253, -0.02747170999646187, 0.055904097855091095, -0.02904205024242401, -0.032016459852457047, -0.01540780533105135, -0.013015346601605415, -0.031166628003120422, 0.0066277580335736275, 0.0018185920780524611, -0.005902630276978016, 0.015915855765342712, -0.1143946424126625, 0.031259000301361084, 0.016128314658999443, 0.022575944662094116, -0.040976632386446, 0.00867843721061945, -0.0066277580335736275, -0.026769675314426422, -0.030353745445609093, 0.05246782675385475, 0.08224885910749435, -0.030446119606494904, 0.011251023039221764, 0.004789536353200674, 0.07707597315311432, 0.0012701278319582343, 0.03105578012764454, -0.03602544218301773, 0.009292717091739178, 0.0076392414048314095, -0.004235298838466406, 0.01284907478839159, -0.03308798372745514, -0.07371360063552856, -0.07641088962554932, -0.028192218393087387, -0.021744588389992714, -0.022575944662094116, 0.017726365476846695, 0.019897129386663437, -0.025421030819416046, -0.045890871435403824, -0.028746455907821655, -0.044191211462020874, 0.07511766999959946, -0.012516532093286514, 0.0022227237932384014, 0.05512816458940506, -0.03887052834033966, -0.03499086573719978, 0.02041441760957241, 0.008576827123761177, 0.007569961715489626, 0.011500430293381214, 0.012054667808115482, 0.008877038955688477, -0.03746646270155907, 0.003166082315146923, 0.0221879780292511, 0.007754707708954811, -0.014502550475299358, -0.0023716751020401716, 0.023869166150689125, -0.06517834216356277, -0.018807129934430122, -0.055497657507658005, -0.016654839739203453, -0.06643461436033249, -0.054536979645490646, -0.020211197435855865, 0.014086872339248657, -0.010281107388436794, -0.010502802208065987, 0.01821594312787056, 0.06155732274055481, -0.008031826466321945 ]
21,087
tfields.core
__reduce__
important for pickling (see `here <https://stackoverflow.com/questions/26598109/preserve-custom-attributes-when-pickling-subclass-of-numpy-array>`_) Examples: >>> from tempfile import NamedTemporaryFile >>> import pickle >>> import tfields Build a dummy scalar field >>> scalars = tfields.Tensors([0, 1, 2]) >>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]]) >>> scalar_field = tfields.TensorFields( ... vectors, ... scalars, ... coord_sys='cylinder') Save it and restore it >>> out_file = NamedTemporaryFile(suffix='.pickle') >>> pickle.dump(scalar_field, ... out_file) >>> _ = out_file.seek(0) >>> sf = pickle.load(out_file) >>> sf.coord_sys == 'cylinder' True >>> sf.fields[0][2] == 2. True
def __reduce__(self): """ important for pickling (see `here <https://stackoverflow.com/questions/\ 26598109/preserve-custom-attributes-when-pickling-subclass-of-numpy-array>`_) Examples: >>> from tempfile import NamedTemporaryFile >>> import pickle >>> import tfields Build a dummy scalar field >>> scalars = tfields.Tensors([0, 1, 2]) >>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]]) >>> scalar_field = tfields.TensorFields( ... vectors, ... scalars, ... coord_sys='cylinder') Save it and restore it >>> out_file = NamedTemporaryFile(suffix='.pickle') >>> pickle.dump(scalar_field, ... out_file) >>> _ = out_file.seek(0) >>> sf = pickle.load(out_file) >>> sf.coord_sys == 'cylinder' True >>> sf.fields[0][2] == 2. True """ # Get the parent's __reduce__ tuple pickled_state = super(AbstractNdarray, self).__reduce__() # Create our own tuple to pass to __setstate__ new_state = pickled_state[2] + tuple( getattr(self, slot) for slot in self._iter_slots() ) # Return a tuple that replaces the parent's __setstate__ # tuple with our own return (pickled_state[0], pickled_state[1], new_state)
(self)
[ -0.02159174159169197, -0.015445813536643982, 0.01258724182844162, 0.05934394150972366, 0.008637649938464165, -0.010281328111886978, -0.08537599444389343, -0.023478398099541664, 0.02648942731320858, -0.05595177039504051, 0.007317942567169666, 0.03881939873099327, -0.022982914000749588, 0.06090662628412247, 0.00990971364080906, 0.006117342505604029, -0.01870458573102951, 0.061630796641111374, -0.017380112782120705, 0.038533542305231094, -0.014188041910529137, -0.0022499337792396545, 0.011577214114367962, 0.012653942219913006, 0.03740917146205902, -0.006122106686234474, 0.05583742633461952, -0.05065388232469559, 0.026794342324137688, -0.001848542713560164, -0.07615233957767487, 0.0006717642536386847, -0.0060887569561600685, 0.017580213025212288, 0.03963885456323624, -0.08110719919204712, -0.0017365820240229368, 0.09155050665140152, 0.0036089462228119373, 0.001903332071378827, 0.004299767781049013, -0.07561873644590378, -0.04764285311102867, -0.054122284054756165, 0.04524165391921997, 0.0074942209757864475, 0.03315942734479904, 0.009080728515982628, -0.033940769731998444, -0.032416198402643204, 0.019762257114052773, -0.02246836945414543, 0.02854759804904461, 0.043983884155750275, -0.003511278424412012, 0.06772908568382263, 0.05800994113087654, -0.01172014232724905, -0.06052548438310623, 0.004816692788153887, -0.054998911917209625, 0.012901685200631618, 0.03990565612912178, -0.051187481731176376, -0.02856665663421154, -0.07279828190803528, -0.0344553142786026, 0.0021272534504532814, -0.009681028313934803, 0.0340360552072525, -0.025898655876517296, -0.032549597322940826, 0.09048330783843994, -0.029062140733003616, 0.02399294078350067, 0.06140211224555969, -0.026984913274645805, -0.0136258564889431, 0.014788341708481312, -0.033940769731998444, -0.025765255093574524, -0.005012028384953737, -0.031253714114427567, 0.03009122796356678, -0.05263582617044449, -0.037999942898750305, -0.006107814144343138, 0.026203570887446404, -0.014473899267613888, -0.0488625131547451, 0.010786342434585094, 0.07470399886369705, -0.033083196729421616, 0.04466994106769562, -0.05644725263118744, -0.03639914095401764, -0.006045878399163485, 0.011872599832713604, -0.01609375700354576, -0.011910713277757168, 0.014512013643980026, -0.042916685342788696, -0.05076822638511658, -0.03346434235572815, -0.009928771294653416, 0.006946328096091747, -0.017837485298514366, 0.024355027824640274, -0.002108196262270212, -0.010824456810951233, 0.030872570350766182, 0.05515136942267418, -0.05778125301003456, 0.06540410965681076, -0.018504485487937927, -0.012596771121025085, 0.008042113855481148, -0.006974914111196995, 0.01651301421225071, -0.01395935658365488, 0.017284827306866646, 0.065670907497406, -0.026317913085222244, 0.05061576887965202, -0.022982914000749588, 0.026336969807744026, 0.07420851290225983, 0.047261711210012436, -0.003828103421255946, -0.05877222493290901, -0.045394111424684525, -0.011129370890557766, -0.01909525692462921, 0.02223968505859375, 0.013997470960021019, 0.03937205672264099, 0.06582336872816086, 0.0010898303007707, -0.05942016839981079, 0.007384642492979765, 0.05789559707045555, -0.004354557022452354, 0.0536649115383625, 0.034264739602804184, 0.020753227174282074, 0.012129871174693108, 0.02605111338198185, 0.026851512491703033, -0.022182513028383255, -0.016960855573415756, -0.014931270852684975, 0.00493579963222146, -0.007479928433895111, 0.03672311082482338, -0.002047451678663492, 0.02486957050859928, -0.0022296856623142958, -0.0801924541592598, -0.03323565423488617, -0.001413801684975624, -0.029195541515946388, -0.004223539028316736, 0.0009897802956402302, -0.0436408556997776, 0.0012208481784909964, 0.024926742538809776, 0.026470370590686798, -0.09002593904733658, -0.06483239680528641, -0.01776125654578209, -0.003554156981408596, -0.07336999475955963, 0.0060887569561600685, 0.060334909707307816, -0.030262742191553116, 0.0621262826025486, -0.03338811174035072, -0.002028394490480423, -0.058924682438373566, 0.004328353330492973, 0.030872570350766182, -0.014149927534162998, -0.04066793993115425, 0.02376425638794899, 0.021420227363705635, 0.030262742191553116, 0.00029121694387868047, -0.027537569403648376, 0.10046925395727158, 0.04390765354037285, 0.03496985509991646, -0.004978678189218044, -0.049319881945848465, -0.03083445504307747, 0.008275563828647137, 0.005097785498946905, -0.038971856236457825, -0.015788841992616653, 0.051073141396045685, 0.09025462716817856, -0.061097197234630585, -0.007060671225190163, 0.02757568471133709, 0.004773814231157303, -0.060220569372177124, -0.02759474143385887, 0.02748039923608303, -0.03960074111819267, -0.030377084389328957, 0.00777054950594902, 0.05755256861448288, -0.0009915669215843081, 0.030243683606386185, 0.08514731377363205, 0.07085445523262024, -0.05297885462641716, 0.019066670909523964, 0.011996470391750336, 0.0027418462559580803, 0.013921242207288742, 0.07718142122030258, 0.01879987120628357, 0.00495485682040453, -0.001597226713784039, -0.02366897091269493, -0.042230624705553055, -0.006341264117509127, -0.05595177039504051, 0.01177731342613697, -0.03632291406393051, -0.001632958883419633, -0.016598770394921303, -0.021991942077875137, -0.010652942582964897, 0.05069199576973915, 0.09025462716817856, 0.03142522647976875, -0.07973508536815643, -0.02353557012975216, 0.041811369359493256, -0.0756949707865715, -0.02997688390314579, 0.014512013643980026, -0.05709519609808922, 0.02342122793197632, -0.008104049600660801, 0.0416589118540287, 0.1025274246931076, -0.025669969618320465, 0.009814428165555, 0.003456489183008671, 0.00804687850177288, -0.033731140196323395, 0.03148239850997925, 0.051073141396045685, -0.00031682499684393406, 0.030681999400258064, 0.01357821375131607, -0.020238684490323067, -0.013587742112576962, 0.01547439955174923, -0.08850136399269104, 0.009399935603141785, -0.011224656365811825, 0.019485928118228912, -0.0033945534378290176, 0.044974856078624725, 0.02256365679204464, -0.021000970155000687, 0.05682839825749397, 0.06071605533361435, 0.03180636838078499, -0.01798994280397892, -0.008680528029799461, -0.0436408556997776, -0.06574714183807373, -0.0032182747963815928, 0.008080228231847286, 0.06540410965681076, -0.02060076966881752, -0.00039752008160576224, 0.017694557085633278, -0.020753227174282074, -0.030548598617315292, 0.003039614064618945, -0.030262742191553116, -0.01995282806456089, -0.008437549695372581, -0.02115342766046524, -0.0210390854626894, 0.02843325585126877, 0.016865570098161697, 0.0036280034109950066, 0.00073191337287426, 0.03979131206870079, -0.03030085563659668, -0.10938799381256104, 0.049014970660209656, 0.006622356828302145, 0.012253742665052414, 0.0006005977629683912, -0.0004594557685777545, -0.032320912927389145, 0.0024000087287276983, 0.02780437096953392, -0.06071605533361435, -0.003089639125391841, 0.024793341755867004, -0.019485928118228912, 0.04184948280453682, 0.03881939873099327, 0.004916742444038391, -0.018895156681537628, 0.01557921338826418, 0.025803370401263237, -0.0014828838175162673, 0.021343998610973358, -0.008980678394436836, 0.011834485456347466, 0.05332188308238983, -0.03203505650162697, -0.049434226006269455, -0.07272205501794815, -0.010166984982788563, -0.012244213372468948, -0.041925713419914246, 0.011034085415303707, -0.052826397120952606, -0.01847589947283268, 0.01612234115600586, -0.019590741023421288, 0.010004999116063118, 0.004256889224052429, 0.020448314025998116, -0.0492817685008049, -0.03192071244120598, 0.0545034259557724, -0.03392171114683151, -0.016636885702610016, -0.02889062650501728, -0.04101096838712692, 0.053359996527433395, -0.03115842677652836, 0.028947798535227776, -0.04810022562742233, -0.027270769700407982, -0.01438814215362072, 0.024278799071907997, 0.08911119401454926, -0.0057076141238212585, 0.025041084736585617, -0.03849542513489723, -0.0453178845345974, 0.040172453969717026, 0.017637385055422783, -0.013692556880414486, -0.023630855605006218, 0.012625356204807758, -0.0048405141569674015, -0.029614798724651337, -0.03334999829530716, -0.06220250949263573, 0.04173514246940613, 0.015893656760454178, 0.08072604984045029, 0.001679410575889051, -0.06220250949263573, -0.04428879916667938, 0.007384642492979765, -0.059991881251335144, -0.04569902643561363, -0.07253148406744003, -0.02441219799220562, -0.006555656902492046, 0.010443313978612423, -0.026203570887446404, -0.0906357690691948, 0.017218127846717834, -0.034398142248392105, -0.04581337049603462, 0.009776313789188862, -0.06178325414657593, -0.00388527475297451, 0.006836749613285065, -0.023821426555514336, 0.08712925016880035, 0.03672311082482338, 0.022220628336071968, 0.01237761415541172, 0.00487862853333354, -0.05339810997247696, 0.006212628446519375, -0.05027274042367935, -0.0248505137860775, -0.0492817685008049, 0.02683245576918125, -0.0068510426208376884, -0.008380378596484661, -0.014311913400888443, -0.0729888528585434, -0.035236656665802, -0.03413134068250656, 0.026222627609968185, 0.03365491330623627, 0.02767097018659115, -0.007032085210084915, 0.05240714177489281, -0.006717642303556204, -0.0013923624064773321, -0.023383112624287605, 0.03129182755947113, 0.04859571158885956, 0.021667970344424248, -0.022925741970539093, 0.03998188301920891, 0.0029300355818122625, 0.002068890957161784, -0.015464870259165764, 0.06605205684900284, 0.016217628493905067, -0.012930271215736866, 0.05762879550457001, -0.01981942728161812, -0.004473663866519928, -0.015188542194664478, -0.025803370401263237, -0.023135369643568993, 0.033292826265096664, 0.01628432795405388, 0.04722359776496887, -0.010348028503358364, -0.017361056059598923, -0.03651348501443863, 0.01902855560183525, -0.020734170451760292, -0.07272205501794815, 0.017246713861823082, -0.012711113318800926, -0.025860542431473732, 0.06330782920122147, 0.05004405602812767, 0.027632856741547585, 0.039181482046842575, -0.045394111424684525, 0.030034055933356285, 0.0182186271995306, 0.00786583498120308, 0.043221596628427505, -0.06445125490427017, 0.0125300707295537, 0.08164079487323761, 0.03925771266222, 0.0014126106398180127, 0.01504561398178339, -0.036361027508974075, -0.006045878399163485, 0.018609298393130302, -0.10923554003238678, 0.010510013438761234, -0.0312727689743042, 0.004409346263855696, 0.012520542368292809, -0.025689028203487396, -0.006731935311108828, 0.0038471606094390154, -0.09673405438661575, -0.029405169188976288, -0.032873570919036865, -0.016379613429307938, -0.015321942046284676, 0.06471805274486542, -0.0023011500015854836, -0.015903184190392494, -0.06433691084384918, -0.020638884976506233, 0.04520354047417641, -0.014731170609593391, -0.02441219799220562, -0.056066110730171204, -0.05778125301003456, -0.0013256624806672335, -0.05442719906568527, 0.0025274534709751606, -0.03803805634379387, 0.04829079657793045, 0.043335940688848495, 0.024145398288965225, 0.04036302492022514, 0.06323159486055374, 0.02715642750263214, -0.04272611066699028, 0.03584648296236992, -0.013740199618041515, 0.058276738971471786, 0.005860071163624525, 0.02715642750263214, 0.017694557085633278, -0.007479928433895111, 0.026870569214224815, -0.000058585821534506977, -0.00626503536477685, -0.03462682664394379, -0.00858047790825367, 0.030567655339837074, 0.013825956732034683, -0.0521022267639637, 0.003132517682388425, 0.04303102567791939, 0.022296855226159096, -0.02029585652053356, -0.029481397941708565, 0.012644413858652115, 0.029062140733003616, -0.018094755709171295, 0.01177731342613697, -0.04066793993115425, -0.006255507003515959, 0.032759226858615875, -0.007251242641359568, -0.020333969965577126, 0.004911978263407946, 0.052826397120952606, -0.03540816903114319, 0.015874600037932396, -0.04992971196770668, 0.0344553142786026, -0.014550128020346165, -0.0234402846544981, 0.031996943056583405, 0.030491426587104797, -0.010843513533473015, -0.04668999835848808, 0.0045713321305811405, 0.03878128528594971, -0.0012279945658519864, 0.06048736721277237, 0.017837485298514366, 0.03031991235911846, 0.04036302492022514, -0.019762257114052773, 0.024717113003134727, 0.014855042099952698, 0.0652516558766365, 0.009709613397717476, -0.012882627546787262, 0.05686651170253754, -0.018132871016860008, 0.006060170941054821, 0.0320541113615036, -0.03729482740163803, 0.026946797966957092, 0.0015638767508789897, 0.03838108479976654, -0.03990565612912178, 0.05915336683392525, -0.04360274225473404, 0.001098763314075768, -0.01863788440823555, -0.02582242712378502, 0.022697055712342262, 0.02464088425040245, 0.07150239497423172, 0.047299824655056, 0.0046499427407979965, 0.04741416871547699, 0.03819051384925842, 0.011205599643290043, 0.016322441399097443, -0.01476928498595953, -0.005683792755007744, 0.02614639885723591, 0.04173514246940613, -0.03857165575027466, 0.016960855573415756, 0.020867571234703064, 0.017961356788873672, -0.01674169860780239, 0.005436049774289131, -0.04341216757893562, -0.07904902845621109, 0.01857118494808674, 0.00858047790825367, 0.011682027950882912, -0.04783342778682709, 0.016551127657294273, 0.02113437093794346, -0.023897655308246613, 0.0468805693089962, 0.024164456874132156, -0.043983884155750275, 0.005135899875313044, 0.03270205482840538, 0.0071130781434476376, 0.01660829968750477, -0.013864071108400822, 0.028033055365085602, -0.039410170167684555, 0.0015841248678043485, 0.004757138900458813, -0.03676122799515724, -0.028166456148028374, -0.01570308580994606, -0.012653942219913006, 0.0007861070916987956, -0.011186541989445686, -0.0732937678694725, -0.04383142665028572, 0.05515136942267418, 0.020676998421549797, 0.01792324148118496, 0.018352027982473373, 0.008485192432999611, 0.034264739602804184, -0.07188353687524796, 0.017037084326148033, -0.03872411325573921, -0.050844453275203705, 0.02279234118759632, -0.0129207419231534, -0.025746198371052742, -0.024831455200910568, -0.0024941035080701113, -0.017837485298514366, -0.041049085557460785, -0.04436502605676651, -0.023592742159962654, 0.003725671209394932, -0.01838061399757862, 0.016970384865999222, -0.021953826770186424, -0.0074942209757864475, -0.00975725706666708, 0.05198788270354271, -0.08827268332242966, -0.012882627546787262, -0.050844453275203705, 0.003358821151778102, 0.02812834084033966, -0.022277798503637314, 0.019781313836574554, 0.006007764022797346, -0.00109697668813169, -0.007846778258681297, -0.02530788443982601, -0.03792371228337288, -0.09818239510059357, 0.006903449539095163, -0.029290826991200447, 0.02967197075486183, 0.019133370369672775, -0.06307914108037949, 0.02441219799220562, -0.008351792581379414, 0.011834485456347466, 0.026012998074293137, 0.02683245576918125, 0.017418228089809418, 0.0043998174369335175, 0.03963885456323624, 0.018228156492114067, -0.04516542702913284, -0.019104784354567528, -0.0172562412917614, -0.0009891848312690854, 0.05625668168067932, -0.01985754258930683, -0.020238684490323067, 0.03161579743027687, 0.06750039756298065, -0.012834984809160233, -0.03338811174035072, 0.004137781914323568, 0.030262742191553116, -0.006927270907908678, -0.0020879481453448534, -0.02399294078350067, 0.04215439781546593, -0.009814428165555, 0.010214627720415592, -0.040934741497039795, 0.018876099959015846, 0.045394111424684525, -0.01515042781829834, 0.020734170451760292, 0.025765255093574524, -0.01716095581650734, 0.005416992586106062, 0.04817645624279976, -0.0028299856930971146, -0.04668999835848808, 0.031025027856230736, 0.0109102139249444, 0.04211628437042236, 0.0024798105005174875, -0.024602770805358887, -0.025098256766796112, 0.021534569561481476, 0.028414199128746986, 0.01625574193894863, -0.020981913432478905, -0.000924271356780082, 0.018714113160967827, -0.017122842371463776, 0.0022856660652905703, 0.03424568474292755, 0.07996376603841782, -0.04074417054653168, -0.026127342134714127, 0.0011565303429961205, -0.025974884629249573, 0.024659940972924232, 0.036913685500621796, -0.0008236258290708065, -0.010014528408646584, -0.0022332589142024517, -0.005988706834614277, 0.0593058243393898, -0.005021556746214628, -0.03270205482840538, 0.04935799911618233, -0.02845231257379055, 0.025441285222768784, 0.039181482046842575, 0.0689106285572052, -0.025479398667812347, 0.020105285570025444, -0.014893156476318836, -0.05179731175303459, -0.00809452123939991, 0.009471399709582329, 0.051949769258499146, 0.04455559700727463, -0.03413134068250656, -0.03146333992481232, 0.017027556896209717, 0.02681339904665947, 0.03575119748711586, 0.003370732069015503, -0.04733794182538986, 0.055989883840084076, -0.022849513217806816, -0.002622739179059863, 0.040820397436618805, 0.06384142488241196, -0.034188512712717056, 0.005578978452831507, -0.00774196395650506, 0.0477190837264061, -0.027118312194943428, -0.003446960588917136, 0.03902902826666832, 0.0701683983206749, -0.015741199254989624, -0.0218204278498888, 0.048671942204236984, -0.04806211218237877, 0.035465341061353683, -0.06963479518890381, -0.012644413858652115, -0.06113531067967415, -0.03552251309156418, -0.038533542305231094, -0.029386112466454506, 0.05698085576295853, 0.03294979780912399, 0.02540316991508007, -0.021458342671394348, -0.029710084199905396 ]
21,088
tfields.core
__setattr__
null
def __setattr__(self, name, value): if name in self.__slots__: index = self.__slots__.index(name) try: setter = self.__slot_setters__[index] except IndexError: setter = None if isinstance(setter, str): setter = getattr(self, setter) if setter is not None: value = setter(value) super(AbstractNdarray, self).__setattr__(name, value)
(self, name, value)
[ 0.025088991969823837, -0.01398459728807211, 0.025036940351128578, 0.005487132351845503, -0.059686120599508286, 0.022451696917414665, -0.047853000462055206, 0.013498779386281967, 0.01080943364650011, -0.01991850696504116, -0.02167092077434063, -0.014201479963958263, 0.03185573220252991, 0.03907358646392822, -0.009889851324260235, -0.006749389693140984, 0.04247431084513664, 0.056944724172353745, -0.01530324388295412, 0.05999843031167984, -0.014114726334810257, -0.024169407784938812, 0.005790768191218376, -0.009967928752303123, 0.009187151677906513, 0.0319945365190506, 0.02734457142651081, 0.011746367439627647, 0.05104551464319229, -0.020543130114674568, -0.0580204613506794, -0.027552779763936996, -0.0022252164781093597, 0.0408780537545681, 0.0900150015950203, -0.03024212457239628, -0.04056574031710625, 0.03005126677453518, -0.01419280469417572, 0.019987910985946655, 0.04597913473844528, -0.05066379904747009, -0.003981966525316238, -0.05531376600265503, 0.05413392186164856, 0.034336868673563004, 0.004597913473844528, 0.05059439688920975, 0.017819082364439964, 0.016352955251932144, -0.022156737744808197, -0.02246904745697975, 0.03747733309864998, 0.010792083106935024, -0.015745684504508972, 0.0950813814997673, 0.030918799340724945, 0.06961067020893097, 0.00088271260028705, 0.0213933102786541, -0.044035863131284714, 0.004370186477899551, 0.007937907241284847, -0.06530772149562836, -0.038448967039585114, -0.05673651397228241, -0.015034309588372707, 0.033573441207408905, 0.011173796840012074, 0.015858463943004608, 0.027813037857413292, 0.00007292680675163865, -0.002650306560099125, -0.021445361897349358, 0.030918799340724945, 0.06430138647556305, -0.0743994414806366, 0.02123715542256832, -0.017255188897252083, -0.017168434336781502, 0.018235497176647186, 0.0375814363360405, -0.009525488130748272, 0.016864798963069916, -0.07530167698860168, 0.014409687370061874, -0.027361921966075897, 0.032810017466545105, 0.006749389693140984, -0.04618734121322632, 0.03131786361336708, 0.031630173325538635, 0.004580562934279442, 0.09147244691848755, -0.07544048130512238, -0.029652204364538193, 0.0572570338845253, -0.07828598469495773, 0.025470705702900887, 0.026511741802096367, -0.017107708379626274, -0.010861486196517944, 0.037928447127342224, 0.0015062503516674042, -0.027292519807815552, -0.022503750398755074, 0.00648045539855957, -0.00022189812443684787, -0.010254214517772198, -0.013550831004977226, 0.023458033800125122, 0.05468914285302162, -0.03147401660680771, 0.01388916838914156, -0.01476537436246872, 0.025210445746779442, 0.009039671160280704, -0.04084335267543793, 0.03827546164393425, -0.012292911298573017, -0.03827546164393425, 0.07370541989803314, 0.011867821216583252, 0.018617210909724236, 0.018808068707585335, 0.05062909796833992, 0.029496047645807266, 0.08210311830043793, 0.04479929059743881, -0.058645084500312805, -0.03150871768593788, -0.019293885678052902, 0.0007493297453038394, 0.052780576050281525, 0.051219020038843155, 0.020786037668585777, 0.005894871894270182, 0.008926891721785069, -0.044070564210414886, -0.015476750209927559, 0.005816794000566006, -0.016769370064139366, 0.023111021146178246, -0.010722680948674679, 0.02408265508711338, 0.03274061158299446, 0.008978944271802902, 0.04708957299590111, -0.030450331047177315, -0.01882541924715042, -0.04254371300339699, 0.027760986238718033, 0.007118090521544218, 0.04226610064506531, -0.01566760614514351, 0.034336868673563004, -0.05312758684158325, -0.03654039651155472, -0.009646942839026451, 0.03378165140748024, -0.03497884422540665, -0.02682405337691307, -0.04677726328372955, -0.06277453154325485, -0.014279557392001152, 0.020525779575109482, -0.021636217832565308, -0.027656883001327515, -0.035273801535367966, 0.022833410650491714, -0.009369333274662495, -0.07321960479021072, -0.013403351418673992, 0.0794658213853836, 0.051219020038843155, 0.005001315381377935, -0.01057520043104887, 0.021566815674304962, -0.00020739408500958234, -0.01093088835477829, 0.05753464251756668, 0.020404325798153877, -0.03426746651530266, 0.011945899575948715, 0.013793740421533585, -0.018131393939256668, -0.024724628776311874, 0.015164438635110855, 0.05777755379676819, 0.08147849142551422, 0.07273378223180771, -0.0010345304617658257, -0.05295408144593239, -0.031716927886009216, 0.0236141886562109, -0.02356213703751564, 0.009516812860965729, -0.02057783119380474, -0.002348839771002531, 0.08592025190591812, 0.037442632019519806, 0.01830490119755268, 0.01579773612320423, 0.06218460947275162, 0.022694606333971024, -0.0646136924624443, 0.0698188841342926, -0.028611166402697563, -0.030033916234970093, -0.02194852940738201, -0.006450091488659382, -0.0069792852737009525, 0.02791714109480381, 0.046673160046339035, 0.05621599778532982, -0.00975104607641697, 0.024811381474137306, -0.00946476124227047, 0.04160677641630173, 0.004151134751737118, 0.058887992054224014, 0.0445563830435276, 0.02000526152551174, -0.010471097193658352, -0.036783307790756226, -0.06107417121529579, 0.006558532826602459, -0.07689793407917023, -0.01090486254543066, 0.01535529550164938, 0.000862650980707258, 0.02068193443119526, 0.005140120163559914, -0.01234496384859085, 0.024290863424539566, 0.03032887727022171, 0.04195379093289375, -0.04462578520178795, -0.05062909796833992, 0.019050976261496544, -0.016257528215646744, 0.0314219668507576, 0.00917847640812397, 0.013715662062168121, -0.026893455535173416, 0.028142699971795082, -0.022260840982198715, 0.09834329038858414, -0.03511764854192734, -0.0014097376260906458, 0.019935857504606247, -0.024672577157616615, -0.04191908985376358, 0.026338236406445503, -0.003155643353238702, 0.009282579645514488, -0.044313475489616394, 0.046152640134096146, -0.013906518928706646, -0.014669946394860744, -0.06509951502084732, -0.055626075714826584, -0.022816060110926628, 0.002400891622528434, 0.04077394679188728, 0.008900865912437439, 0.0408780537545681, 0.03482268750667572, -0.07696733623743057, 0.020994246006011963, -0.028316205367445946, 0.025488056242465973, -0.018651911988854408, 0.023024268448352814, -0.0026828390546143055, 0.0013967246050015092, -0.01362890936434269, 0.009126423858106136, 0.029131684452295303, -0.036366891115903854, 0.04060044139623642, -0.013767714612185955, -0.0006392617942765355, -0.005265912041068077, -0.004374524112790823, -0.023319227620959282, 0.026511741802096367, 0.027743635699152946, -0.01291753351688385, -0.0258350670337677, 0.006866506300866604, 0.02233024314045906, -0.014843452721834183, 0.03969820961356163, 0.02427351288497448, 0.003533019218593836, -0.09334632009267807, 0.08529563248157501, 0.0036479670088738203, 0.020803388208150864, 0.008133101277053356, -0.004476459231227636, -0.07953522354364395, 0.057083528488874435, 0.009924552403390408, -0.06832672655582428, 0.02564421109855175, 0.05392571538686752, -0.031161706894636154, 0.00905702169984579, 0.042647816240787506, 0.03803255036473274, -0.0981350839138031, 0.03890008106827736, 0.11354243755340576, 0.048859335482120514, 0.014184128493070602, -0.00794658251106739, -0.005404716823250055, 0.06791031360626221, -0.02370094135403633, -0.07648151367902756, -0.09015380591154099, -0.08855754882097244, 0.030311526730656624, -0.001993152080103755, 0.019849104806780815, -0.018634561449289322, -0.01201530173420906, 0.024256162345409393, -0.027275169268250465, -0.015520126558840275, 0.006714688614010811, 0.001625535893253982, -0.018860120326280594, -0.012171457521617413, -0.008883515372872353, -0.0058861966244876385, -0.02607797645032406, -0.004645627457648516, -0.0025266835000365973, 0.06620994955301285, -0.058506280183792114, -0.03329583257436752, 0.0040687196888029575, 0.00439838133752346, -0.01953679323196411, 0.013967245817184448, 0.03301822394132614, 0.011980600655078888, -0.018860120326280594, -0.00873169768601656, -0.001558302203193307, 0.01778438128530979, 0.0053917039185762405, -0.011772393248975277, 0.009256553836166859, 0.0024616187438368797, -0.05819396674633026, -0.09855150431394577, -0.05645890533924103, -0.019050976261496544, 0.030207423493266106, 0.004096914082765579, 0.0008209010120481253, -0.005049029365181923, -0.07648151367902756, -0.013281896710395813, 0.04268251731991768, -0.04334184154868126, -0.03629748895764351, -0.044452279806137085, -0.022156737744808197, 0.014539816416800022, 0.010384343564510345, 0.004146797116845846, -0.035273801535367966, -0.01892952248454094, 0.013958570547401905, -0.07689793407917023, 0.04677726328372955, -0.038344863802194595, 0.06027604267001152, 0.019658248871564865, 0.018617210909724236, -0.009881176054477692, 0.028645867481827736, 0.027656883001327515, 0.023857098072767258, 0.00808972492814064, -0.03126581013202667, 0.02829885482788086, -0.036887411028146744, 0.033851053565740585, -0.05104551464319229, -0.010236863978207111, -0.012240859679877758, -0.011416705325245857, -0.030311526730656624, -0.021410660818219185, -0.037546735256910324, -0.043307140469551086, 0.01953679323196411, 0.045736223459243774, 0.05541786924004555, -0.007183155044913292, 0.03339993581175804, 0.015823762863874435, 0.018582509830594063, 0.0010095889447256923, -0.006961934734135866, 0.04254371300339699, 0.007300271652638912, -0.06457899510860443, 0.041849687695503235, 0.00632863724604249, 0.03457977995276451, -0.04566682130098343, 0.061768192797899246, 0.028645867481827736, -0.021549465134739876, 0.014643920585513115, -0.04032283276319504, 0.04611793905496597, 0.017385317012667656, -0.013516129925847054, 0.015867138281464577, -0.019241834059357643, 0.009586215950548649, 0.03492679074406624, -0.014956231229007244, 0.029877761378884315, 0.012006626464426517, 0.003728213720023632, -0.008952918462455273, -0.06277453154325485, 0.006194170098751783, -0.0609353631734848, -0.050073880702257156, 0.002112437505275011, 0.046811964362859726, -0.011885172687470913, -0.015147088095545769, -0.03629748895764351, -0.060588352382183075, -0.052017148584127426, 0.003313967725262046, 0.04233550280332565, -0.02451642043888569, -0.0584021732211113, 0.018773367628455162, 0.03813665360212326, 0.015546152368187904, 0.03657510131597519, 0.0260259248316288, -0.02123715542256832, 0.011026316322386265, -0.12853336334228516, 0.06357266008853912, -0.016101371496915817, -0.048338815569877625, 0.013715662062168121, -0.033660195767879486, -0.00844541285187006, -0.029253140091896057, 0.04740188270807266, 0.007950919680297375, -0.008085386827588081, 0.014227505773305893, -0.005803781095892191, 0.02857646532356739, -0.05593838915228844, 0.016812747344374657, -0.06350325793027878, -0.04153737425804138, -0.013828441500663757, -0.06450959295034409, 0.009551513940095901, -0.06856963783502579, -0.01977970264852047, -0.037824343889951706, -0.011017641052603722, 0.04226610064506531, 0.007066038437187672, 0.021636217832565308, 0.03955940529704094, 0.015867138281464577, 0.00005127242548041977, 0.008883515372872353, 0.04261311516165733, -0.030068619176745415, 0.01388916838914156, -0.011963250115513802, 0.00691855838522315, 0.027518076822161674, 0.03378165140748024, 0.0037954472936689854, 0.003569889348000288, 0.007816452533006668, -0.005847157910466194, -0.06641815602779388, -0.04178028553724289, -0.03660980239510536, -0.004018836654722691, 0.0420231930911541, -0.010592550970613956, -0.040114626288414, 0.022226139903068542, -0.026563793420791626, -0.03379900008440018, 0.02895817905664444, 0.007161466870456934, -0.03071059100329876, -0.014366310089826584, 0.02937459386885166, -0.02167092077434063, -0.03254975751042366, -0.005465444177389145, -0.0404963381588459, -0.0022555801551789045, 0.04112096130847931, -0.010323616676032543, -0.03435422107577324, -0.029027581214904785, -0.02555745840072632, -0.012900182977318764, 0.0017914511263370514, -0.02980835922062397, 0.029600150883197784, 0.008640606887638569, 0.022069985046982765, 0.023336580023169518, -0.021202452480793, 0.0907784253358841, 0.044591084122657776, 0.062149908393621445, 0.05191304534673691, 0.031439315527677536, 0.04261311516165733, 0.023388631641864777, -0.017992589622735977, -0.002011587144806981, 0.021775024011731148, -0.02427351288497448, -0.0066626365296542645, 0.003522175131365657, -0.07780016213655472, -0.017619550228118896, 0.08460160344839096, -0.0628439337015152, -0.012093380093574524, 0.014314258471131325, 0.030623838305473328, -0.0290102306753397, -0.009074372239410877, -0.036644503474235535, 0.04348064586520195, -0.04219669848680496, -0.005704015027731657, 0.056424204260110855, -0.006025001406669617, 0.040947455912828445, 0.10160520672798157, 0.01827019825577736, 0.04955336079001427, 0.03005126677453518, -0.045493315905332565, -0.02816005051136017, 0.015199139714241028, -0.03326113149523735, -0.0018304900731891394, -0.0015236010076478124, -0.01642235927283764, 0.027847738936543465, -0.013351299799978733, 0.05177424103021622, 0.01760219968855381, -0.0024768004659563303, -0.07863299548625946, -0.0647525042295456, -0.02895817905664444, 0.05364810675382614, -0.08605905622243881, -0.02191382832825184, 0.018565159291028976, -0.010358317755162716, -0.003858343232423067, 0.05149662867188454, -0.04604853689670563, -0.030554436147212982, -0.08258893340826035, -0.018252847716212273, -0.04205789417028427, -0.014817425981163979, 0.01755882427096367, 0.04136386886239052, -0.0688125416636467, -0.03865717351436615, 0.06277453154325485, -0.018669262528419495, -0.028645867481827736, 0.00025551492581143975, -0.047575391829013824, 0.031716927886009216, 0.019571496173739433, -0.0065064812079072, -0.03098820149898529, 0.03765083849430084, -0.0029279165901243687, -0.030832044780254364, -0.004235719330608845, 0.04001052305102348, 0.02276400849223137, -0.020022612065076828, -0.013290571980178356, -0.01760219968855381, -0.010245539247989655, 0.04858172684907913, 0.00029902704409323633, -0.029895111918449402, 0.005643288139253855, 0.01154683530330658, -0.008883515372872353, -0.059686120599508286, -0.03851836919784546, -0.04629144445061684, 0.024898134171962738, 0.025488056242465973, -0.00038957555079832673, -0.06381556391716003, -0.024637876078486443, -0.033851053565740585, 0.03890008106827736, -0.08814112842082977, -0.0055478597059845924, -0.0453198105096817, 0.0028541763313114643, 0.025939172133803368, -0.008861827664077282, 0.03364284709095955, 0.01641368307173252, 0.027136364951729774, 0.04715897515416145, -0.00861024297773838, -0.025991223752498627, 0.016170773655176163, -0.0031014226842671633, -0.012501118704676628, -0.0013945557875558734, 0.013733012601733208, -0.03154342249035835, -0.03671390563249588, -0.04865112900733948, -0.0007428232929669321, 0.07668972760438919, 0.011538160033524036, -0.016578514128923416, -0.006779753603041172, 0.04649965092539787, -0.01530324388295412, -0.05805516242980957, 0.01717711053788662, -0.01594521664083004, -0.023648889735341072, 0.0655159279704094, 0.0061507937498390675, -0.022347593680024147, -0.032150693237781525, 0.01237098965793848, -0.0006305864662863314, -0.02090749330818653, 0.017714979127049446, -0.047575391829013824, -0.009230528026819229, 0.017107708379626274, -0.05284997820854187, 0.013195144012570381, -0.04611793905496597, 0.025522757321596146, 0.006627935450524092, -0.06374616175889969, 0.03556876257061958, 0.021254505962133408, 0.02800389565527439, -0.015875814482569695, -0.003420240245759487, 0.026754651218652725, 0.002498488873243332, 0.04334184154868126, -0.05392571538686752, -0.02975630760192871, -0.018669262528419495, -0.01057520043104887, 0.04046163707971573, -0.07509347051382065, -0.06679987162351608, 0.020595181733369827, -0.023874448612332344, -0.0003283061960246414, 0.018669262528419495, 0.02569626271724701, 0.040669843554496765, -0.026806702837347984, -0.01069665513932705, 0.02588712051510811, 0.007690660655498505, -0.03778964281082153, -0.01322116982191801, 0.01726386323571205, -0.03421541675925255, 0.008701333776116371, -0.008380347862839699, -0.009473436512053013, -0.02290281280875206, 0.03032887727022171, 0.002249073702841997, -0.01732459105551243, -0.010861486196517944, 0.007100739981979132, 0.0765509232878685, -0.011468757875263691, 0.02956544980406761, 0.04174558445811272, 0.0331396758556366, -0.06565473228693008, 0.0018998924642801285, -0.016049319878220558, -0.0028021244797855616, 0.03699151426553726, 0.032202742993831635, 0.018096692860126495, 0.042509011924266815, 0.013715662062168121, -0.0064110527746379375, -0.0024247486144304276, -0.024342915043234825, 0.02323247492313385, 0.010262889787554741, -0.004732380621135235, 0.07092931866645813, -0.006983622908592224, 0.02106364816427231, 0.012839456088840961, 0.006779753603041172, 0.04271721839904785, 0.024204110726714134, -0.026182079687714577, 0.06562003493309021, 0.01360288355499506, 0.031144356355071068, 0.031439315527677536, 0.023926500231027603, -0.014461738988757133, 0.04955336079001427, 0.04917164519429207, -0.11041932553052902, 0.031630173325538635, -0.01859986037015915, 0.06221931055188179, -0.030832044780254364, -0.06530772149562836, 0.03341728821396828, -0.03952470421791077, 0.03071059100329876, -0.015320594422519207, 0.029686905443668365, 0.011980600655078888, -0.008970269002020359 ]
21,089
tfields.core
__setitem__
In addition to the usual, also slice fields Examples: >>> import tfields >>> import numpy as np >>> original = tfields.TensorFields( ... [[0, 0, 0], [0, 0, 1], [0, -1, 0]], ... [42, 21, 10.5], [1, 2, 3]) >>> obj = tfields.TensorFields( ... [[0, 0, 0], [0, 0, np.nan], ... [0, -1, 0]], [42, 22, 10.5], [1, -1, 3]) >>> slice_obj = obj.copy() >>> assert not obj.equal(original) >>> obj[1] = original[1] >>> assert obj[:2].equal(original[:2]) >>> assert not slice_obj.equal(original) >>> slice_obj[:] = original[:] >>> assert slice_obj.equal(original)
def __setitem__(self, index, item): """ In addition to the usual, also slice fields Examples: >>> import tfields >>> import numpy as np >>> original = tfields.TensorFields( ... [[0, 0, 0], [0, 0, 1], [0, -1, 0]], ... [42, 21, 10.5], [1, 2, 3]) >>> obj = tfields.TensorFields( ... [[0, 0, 0], [0, 0, np.nan], ... [0, -1, 0]], [42, 22, 10.5], [1, -1, 3]) >>> slice_obj = obj.copy() >>> assert not obj.equal(original) >>> obj[1] = original[1] >>> assert obj[:2].equal(original[:2]) >>> assert not slice_obj.equal(original) >>> slice_obj[:] = original[:] >>> assert slice_obj.equal(original) """ super(TensorFields, self).__setitem__(index, item) if issubclass(type(item), TensorFields): if isinstance(index, slice): for i, field in enumerate(item.fields): self.fields[i].__setitem__(index, field) elif isinstance(index, tuple): for i, field in enumerate(item.fields): self.fields[i].__setitem__(index[0], field) else: for i, field in enumerate(item.fields): self.fields[i].__setitem__(index, field)
(self, index, item)
[ -0.01850079372525215, -0.012222074903547764, -0.050453320145606995, 0.043373461812734604, -0.055819109082221985, -0.030238457024097443, -0.04549741744995117, 0.018687104806303978, 0.0009624185040593147, -0.013796412386000156, 0.004224627278745174, -0.008337466977536678, 0.019357828423380852, 0.012035762891173363, 0.0038263851311057806, 0.011784241534769535, -0.011607244610786438, 0.03791451454162598, 0.047584112733602524, -0.0024546619970351458, 0.012231389991939068, -0.0181281678378582, 0.03538066893815994, 0.05533469840884209, 0.03407648578286171, 0.01724318601191044, 0.023773426190018654, 0.013638046570122242, 0.042739998549222946, 0.015696795657277107, -0.008388702757656574, -0.030536554753780365, 0.018333112820982933, 0.05604268237948418, 0.02986583113670349, -0.09464655071496964, -0.029437314718961716, -0.009250396862626076, -0.006721209734678268, 0.08518189936876297, -0.013898883946239948, -0.06200467050075531, -0.04847841337323189, -0.05906093865633011, 0.04005710408091545, 0.04300083592534065, 0.04363429546356201, 0.034542266279459, 0.01442987285554409, -0.011886713095009327, -0.031784847378730774, 0.01658177748322487, 0.02287912741303444, -0.0001721931475913152, -0.019618665799498558, 0.028375335037708282, 0.04754685238003731, 0.028338072821497917, -0.016088051721453667, 0.06036512553691864, -0.009567126631736755, -0.016889194026589394, -0.02280460298061371, -0.054328612983226776, -0.01233386155217886, -0.0357719250023365, -0.02722020074725151, -0.002303283428773284, -0.012743748724460602, -0.010303059592843056, -0.03856660798192024, -0.0016884534852579236, 0.048962824046611786, -0.025729702785611153, -0.03912554308772087, 0.030611081048846245, -0.009809332899749279, 0.04922366142272949, 0.041025929152965546, -0.07355602085590363, 0.0030089407227933407, 0.039088282734155655, -0.009520549327135086, 0.03353618085384369, -0.026717158034443855, 0.025394340977072716, -0.0362563356757164, 0.01061979029327631, 0.012380439788103104, -0.037150636315345764, -0.009585758671164513, 0.003355946857482195, -0.0027690636925399303, -0.025152135640382767, -0.03849208354949951, -0.005300579592585564, 0.01070363074541092, -0.0835423544049263, -0.06494840234518051, 0.05544648692011833, 0.018770946189761162, -0.032399676740169525, -0.06327159702777863, 0.0014578922418877482, 0.008561041206121445, -0.031020967289805412, -0.0036540464498102665, -0.01400135550647974, -0.03174758329987526, -0.023680269718170166, 0.03072286769747734, 0.07877276092767715, -0.06543281674385071, 0.035436563193798065, 0.007359328679740429, 0.009818647988140583, 0.018184062093496323, -0.04124950245022774, -0.0014089853502810001, -0.026568107306957245, 0.040653303265571594, -0.0004497690824791789, -0.017876647412776947, 0.09390130639076233, 0.001709413598291576, -0.007051913533359766, 0.04713696613907814, 0.055185649544000626, 0.0012820602860301733, -0.05235370248556137, -0.062265507876873016, -0.04411870986223221, -0.0634579062461853, 0.04490121826529503, 0.045013006776571274, 0.01737360469996929, 0.042032014578580856, -0.031300436705350876, -0.07512104511260986, -0.015277593396604061, -0.015268277376890182, -0.009790701791644096, 0.06152025982737541, 0.04657802730798721, 0.0074524846859276295, -0.005118925124406815, -0.029921725392341614, 0.010200588032603264, -0.00789963360875845, -0.00571978185325861, -0.053248003125190735, 0.044305019080638885, 0.0020447755232453346, 0.007233568001538515, -0.04922366142272949, 0.00653489725664258, -0.041733913123607635, -0.06755677610635757, 0.037374209612607956, 0.052465490996837616, -0.01769033446907997, -0.026325901970267296, 0.002091353526338935, 0.027835030108690262, -0.01536143384873867, 0.0592845156788826, 0.03510120138525963, -0.07698416709899902, -0.06308528035879135, 0.03905101865530014, 0.04456585645675659, -0.02068064548075199, 0.010852680541574955, 0.04587004333734512, -0.02062475122511387, 0.0580548532307148, -0.01279964204877615, 0.002522200345993042, -0.021984828636050224, -0.04147307574748993, 0.010964468121528625, -0.004063933156430721, 0.005505523178726435, -0.0009967698715627193, 0.010591844096779823, 0.0032185418531298637, -0.05641530826687813, 0.03856660798192024, 0.03150537982583046, 0.06863738596439362, 0.051235832273960114, -0.008253626525402069, -0.0028179707005620003, -0.07351876050233841, -0.0029833228327333927, 0.025003084912896156, -0.026717158034443855, -0.01700098067522049, 0.05376967787742615, 0.10426025837659836, -0.039796266704797745, -0.035753294825553894, 0.034542266279459, 0.005044400691986084, -0.03685253486037254, -0.005472918506711721, 0.06260087341070175, 0.007531667128205299, -0.052465490996837616, 0.007126438431441784, 0.00034263962879776955, 0.01128119882196188, 0.021612204611301422, 0.0061296685598790646, 0.02956773340702057, -0.04713696613907814, -0.07329518347978592, -0.015035388059914112, 0.007773872930556536, 0.0221711415797472, 0.07608986645936966, -0.0012331532780081034, -0.04121223837137222, -0.01361941546201706, 0.0360141322016716, -0.012045077979564667, -0.01584584452211857, -0.04844114929437637, -0.01913425326347351, -0.03267914429306984, -0.006819023285061121, 0.04784495010972023, -0.04255368560552597, -0.01781143806874752, 0.06312254816293716, 0.059172727167606354, 0.002461648778989911, -0.06386779248714447, 0.03437458351254463, 0.01937646046280861, -0.014727972447872162, -0.004573962185531855, -0.008640224114060402, 0.01677740551531315, -0.016115998849272728, 0.02528255432844162, 0.0000418110575992614, 0.03718789666891098, -0.02302817814052105, 0.014364664442837238, -0.03204568475484848, 0.026158221065998077, -0.014495082199573517, 0.05499933660030365, 0.023195859044790268, 0.01790459454059601, 0.0426282100379467, 0.011579297482967377, 0.00663271127268672, -0.030834654346108437, -0.040653303265571594, -0.07817656546831131, 0.027127044275403023, -0.042516425251960754, 0.01315363496541977, -0.016674933955073357, 0.06867464631795883, 0.06837654858827591, 0.016199838370084763, 0.07355602085590363, 0.05268906429409981, 0.05827843025326729, -0.0006258922512643039, 0.0033349867444485426, 0.015538430772721767, -0.03238104656338692, 0.02325175143778324, 0.024388255551457405, 0.028189022094011307, -0.025766965001821518, 0.03599550202488899, -0.002377808326855302, -0.04620540514588356, -0.005701150745153427, 0.025487497448921204, -0.03351755067706108, 0.010880627669394016, 0.021146424114704132, -0.028189022094011307, -0.01641409657895565, 0.005743070971220732, 0.011886713095009327, 0.01695440150797367, 0.006991362199187279, -0.03459816053509712, 0.015715427696704865, -0.09501917660236359, 0.05544648692011833, -0.004478477407246828, -0.01751333847641945, -0.04236737638711929, -0.006371874362230301, -0.019711822271347046, 0.046876128762960434, 0.07143206149339676, -0.04844114929437637, -0.007978816516697407, 0.03998257964849472, 0.05447766184806824, -0.011206673458218575, 0.04970807209610939, 0.014793181791901588, -0.03743010386824608, 0.023065440356731415, 0.09390130639076233, 0.02677305042743683, -0.01695440150797367, 0.023233121261000633, 0.001832845387980342, 0.06643889844417572, -0.01751333847641945, -0.03334986791014671, -0.07210278511047363, 0.041584864258766174, -0.008416649885475636, -0.06938263028860092, 0.041659388691186905, -0.02599054016172886, -0.07802751660346985, 0.048031263053417206, -0.012231389991939068, 0.014066564850509167, 0.02908332087099552, 0.023773426190018654, -0.0588001050055027, -0.02550612762570381, 0.00044452905422076583, -0.01119735836982727, -0.00901750661432743, 0.03439321741461754, 0.0008774136076681316, -0.011411616578698158, -0.009287659078836441, -0.005980618763715029, 0.023270383477211, -0.029828568920493126, 0.030611081048846245, 0.02410878799855709, 0.039945315569639206, 0.07705868780612946, 0.014578922651708126, -0.058315690606832504, 0.004716025199741125, 0.0019620994571596384, -0.02014033868908882, -0.020885588601231575, -0.010899258777499199, -0.04814305156469345, -0.03226925805211067, -0.01619052328169346, 0.025338446721434593, -0.007834424264729023, 0.016078734770417213, -0.01999128982424736, 0.024854036048054695, -0.009576442651450634, -0.05265180394053459, -0.0026083695702254772, -0.032399676740169525, -0.008500490337610245, -0.006949441973119974, -0.04449133202433586, 0.03118864819407463, 0.010563896968960762, 0.010247166268527508, -0.021295474842190742, -0.0580548532307148, 0.053322527557611465, -0.0784001350402832, -0.048888299614191055, 0.030163930729031563, -0.04844114929437637, 0.0007068215636536479, 0.038864705711603165, -0.0018701078370213509, 0.05254001542925835, 0.01785801537334919, -0.0160507895052433, 0.05235370248556137, 0.005221397150307894, -0.031095491722226143, 0.016591094434261322, -0.03377838805317879, -0.043597035109996796, -0.042665474116802216, -0.0064417412504553795, -0.028095867484807968, -0.013796412386000156, -0.008099919185042381, -0.0818282812833786, 0.010303059592843056, -0.045311104506254196, -0.01719660870730877, 0.07187921553850174, 0.025096241384744644, 0.03670348599553108, 0.036051392555236816, 0.031300436705350876, 0.008942981250584126, 0.00527263293042779, 0.027443774044513702, 0.03778409585356712, 0.01587379164993763, -0.02940005250275135, 0.07627618312835693, -0.004483135417103767, 0.002892495598644018, -0.0008925514994189143, 0.014578922651708126, 0.06535828858613968, -0.005030427128076553, 0.04587004333734512, -0.040168892592191696, 0.0009967698715627193, -0.01520306896418333, -0.057607706636190414, -0.013209529221057892, 0.00727548822760582, 0.03262325003743172, 0.03040613792836666, -0.012380439788103104, -0.04911187291145325, 0.002396439667791128, 0.04143581539392471, -0.011719032190740108, -0.040727827697992325, 0.01881752349436283, -0.01646067574620247, -0.0392000675201416, 0.04382060840725899, 0.0536578893661499, -0.04233011230826378, 0.00600856589153409, -0.0827971026301384, -0.014616185799241066, 0.015687480568885803, -0.01808159053325653, -0.0123711246997118, -0.04784495010972023, 0.005594021175056696, 0.06416589021682739, 0.06502293050289154, 0.022655552253127098, 0.03439321741461754, 0.009213133715093136, -0.056750670075416565, -0.03292135149240494, -0.05727234482765198, 0.04892555996775627, -0.011262567713856697, -0.005500865168869495, 0.04855293780565262, -0.007606192026287317, -0.033722493797540665, 0.005724439863115549, -0.03733694925904274, 0.0064650303684175014, -0.015305540524423122, -0.009012848138809204, 0.008384045213460922, -0.0024057552218437195, -0.044603120535612106, -0.03696432337164879, -0.035827819257974625, -0.0030508609488606453, 0.02606506459414959, 0.0046205404214560986, 0.011076254770159721, -0.05663888156414032, -0.06379327178001404, -0.048739250749349594, -0.04549741744995117, 0.00037990204873494804, -0.0034421163145452738, -0.002657276578247547, 0.01337721012532711, -0.05384420230984688, 0.07243815064430237, 0.017792806029319763, 0.03353618085384369, 0.006236798129975796, -0.04907461255788803, -0.0477704256772995, 0.04892555996775627, 0.0008407334098592401, -0.012920744717121124, -0.0247422493994236, 0.045534681528806686, 0.020550226792693138, 0.012930060736835003, 0.006371874362230301, -0.011765610426664352, 0.015696795657277107, -0.020326651632785797, 0.019432352855801582, -0.03312629461288452, 0.02589738368988037, 0.018454214558005333, -0.00608774833381176, -0.08652334660291672, 0.004993164446204901, -0.00727083021774888, -0.02006581425666809, 0.0022601988166570663, 0.023307645693421364, -0.011970553547143936, -0.05000616982579231, 0.029157845303416252, -0.003537601325660944, -0.020960113033652306, 0.04519931972026825, 0.0033978670835494995, -0.00029096711659803987, -0.020829694345593452, -0.003961461130529642, -0.007540982682257891, -0.004371347837150097, -0.056676145642995834, 0.038231246173381805, -0.009753439575433731, -0.014131774194538593, 0.0003507907676976174, 0.0012587711680680513, -0.006791076622903347, 0.02030801959335804, 0.07046324014663696, 0.036219075322151184, -0.004974533338099718, 0.09867089241743088, 0.0025641205720603466, -0.009189845062792301, 0.018873417750000954, 0.015119228512048721, -0.09010054171085358, -0.015119228512048721, -0.004755616653710604, -0.029511839151382446, -0.026083696633577347, 0.02630726993083954, -0.014849075116217136, -0.01871505193412304, -0.010591844096779823, 0.0671096220612526, -0.009348209947347641, -0.020177602767944336, 0.0360141322016716, -0.04773316532373428, -0.02800271101295948, 0.045162055641412735, 0.01575268991291523, -0.005556758958846331, -0.006795734167098999, 0.09762755036354065, 0.04050425440073013, 0.007601534482091665, 0.028095867484807968, 0.004587935749441385, 0.006879574619233608, 0.01683329977095127, 0.0012215088354423642, 0.025338446721434593, 0.03064834326505661, -0.013712571933865547, 0.045534681528806686, 0.0011609573848545551, -0.016134629026055336, -0.010852680541574955, 0.01790459454059601, -0.05350884050130844, -0.09703134745359421, -0.027648717164993286, 0.03709474205970764, 0.02589738368988037, -0.04411870986223221, 0.020494332537055016, -0.0035981526598334312, 0.037150636315345764, 0.0536578893661499, -0.003055518725886941, 0.02045707032084465, 0.014318086206912994, 0.043149884790182114, -0.023754794150590897, 0.006562844384461641, 0.012110287323594093, 0.013563522137701511, -0.08324424922466278, -0.019562771543860435, -0.01749470829963684, -0.004546015523374081, -0.033182188868522644, 0.0008320000488311052, -0.022376084700226784, -0.010843365453183651, -0.02123958058655262, -0.06178109720349312, 0.0030275718308985233, 0.05816664174199104, 0.0575704425573349, -0.055111125111579895, 0.050825946033000946, 0.05745865777134895, 0.03197116032242775, -0.049037348479032516, -0.003525956766679883, -0.06081227585673332, -0.04568373039364815, 0.04162212461233139, 0.05559553578495979, -0.03437458351254463, -0.04911187291145325, 0.02116505615413189, -0.038305770605802536, -0.007289461325854063, -0.049670808017253876, -0.09494465589523315, 0.027592824772000313, -0.049521759152412415, 0.01641409657895565, -0.03912554308772087, -0.0004529713187366724, -0.03299587592482567, -0.016973033547401428, -0.019041098654270172, -0.010908573865890503, -0.04940997436642647, -0.025692440569400787, -0.015547745861113071, 0.012082340195775032, 0.07173016667366028, 0.029530469328165054, -0.031393591314554214, 0.03642401844263077, 0.011765610426664352, -0.019069045782089233, -0.060625962913036346, -0.012501542456448078, -0.055670060217380524, 0.012454965151846409, 0.03150537982583046, -0.05164571851491928, 0.056117210537195206, -0.0064370837062597275, -0.044230494648218155, -0.00843993853777647, 0.0255992840975523, 0.03946090489625931, -0.035268884152173996, 0.022674184292554855, 0.02325175143778324, -0.014690710231661797, -0.031151385977864265, 0.014606869779527187, -0.043373461812734604, 0.07173016667366028, 0.007391933351755142, 0.008370071649551392, 0.022748708724975586, 0.010666368529200554, 0.03759778290987015, -0.038305770605802536, -0.035976868122816086, -0.05902367830276489, 0.04296357184648514, 0.09077126532793045, -0.04497574269771576, 0.05298716574907303, -0.02293502166867256, -0.00871009100228548, -0.019246041774749756, 0.040727827697992325, -0.011542035266757011, -0.026940731331706047, 0.020829694345593452, -0.02513350360095501, 0.0340578556060791, -0.025934645906090736, 0.023605745285749435, -0.012184812687337399, -0.056750670075416565, 0.03655443713068962, -0.041659388691186905, 0.03867839649319649, 0.011299829930067062, -0.05794306844472885, -0.016115998849272728, 0.007396590895950794, -0.009511233307421207, 0.015771320089697838, 0.029046058654785156, -0.015594324097037315, 0.02403426356613636, -0.0196000337600708, 0.004236271604895592, 0.015575692988932133, 0.01007016934454441, -0.02653084509074688, -0.0015079636359587312, 0.010563896968960762, -0.04985712096095085, 0.039162807166576385, 0.07966706156730652, -0.010563896968960762, -0.05820390582084656, 0.02535707876086235, 0.02030801959335804, 0.0014951546909287572, -0.03156127408146858, -0.0015161148039624095, 0.029288263991475105, 0.01233386155217886, -0.01621847040951252, 0.021500417962670326, 0.03197116032242775, -0.0068842326290905476, -0.011188042350113392, -0.029269633814692497, 0.0052167391404509544, -0.06371874362230301, -0.004250245168805122, 0.07713321596384048, 0.06267539411783218, 0.04225558787584305, -0.04635445401072502, 0.003998723812401295, -0.006423110142350197, -0.015929685905575752, -0.02558065392076969, 0.011206673458218575, 0.05816664174199104, 0.01776486076414585, 0.003849674016237259, 0.040578778833150864, 0.014299455098807812, -0.05798032879829407, 0.03485899791121483, -0.005342499818652868, 0.03370385989546776, -0.013386525213718414, -0.006525581702589989, 0.044230494648218155, 0.04676434025168419, -0.06889822334051132, -0.01116941124200821, 0.0786237120628357, -0.06595449149608612, 0.033256713300943375, -0.015929685905575752, -0.005011796019971371, -0.040168892592191696, -0.03705747798085213, -0.010135378688573837, 0.014569607563316822, 0.05604268237948418, -0.04475216940045357, 0.0597689263522625, -0.03018256276845932, -0.0035865081008523703 ]
21,090
tfields.core
__setstate__
Counterpart to __reduce__. Important for unpickling.
def __setstate__(self, state): """ Counterpart to __reduce__. Important for unpickling. """ # Call the parent's __setstate__ with the other tuple elements. super(AbstractNdarray, self).__setstate__(state[0 : -len(self._iter_slots())]) # set the __slot__ attributes valid_slot_attrs = list(self._iter_slots()) # attributes that have been added later have not been pickled with the full information # and thus need to be excluded from the __setstate__ need to be in the same order as they # have been added to __slots__ added_slot_attrs = ["name"] n_np = 5 # number of numpy array states n_old = len(valid_slot_attrs) - len(state[n_np:]) if n_old > 0: for latest_index in range(n_old): new_slot = added_slot_attrs[-latest_index] warnings.warn( "Slots with names '{new_slot}' appears to have " "been added after the creation of the reduced " "state. No corresponding state found in " "__setstate__.".format(**locals()) ) valid_slot_attrs.pop(valid_slot_attrs.index(new_slot)) setattr(self, new_slot, None) for slot_index, slot in enumerate(valid_slot_attrs): state_index = n_np + slot_index setattr(self, slot, state[state_index])
(self, state)
[ -0.023417111486196518, -0.002812393242493272, 0.010979583486914635, 0.005957773886620998, -0.0130855031311512, 0.0008425930282101035, -0.0523420125246048, -0.03169679641723633, -0.006173765752464533, -0.06706545501947403, -0.034954674541950226, 0.06418556720018387, -0.00008873100887285545, 0.061485666781663895, -0.018179310485720634, 0.01920527033507824, 0.033658724278211594, 0.0556538887321949, -0.03733058273792267, 0.06317760050296783, -0.023669101297855377, -0.005332297645509243, 0.004765319172292948, 0.050434086471796036, -0.0016199385281652212, -0.005170303862541914, 0.04481830075383186, -0.0632496029138565, 0.033640723675489426, -0.002825892763212323, -0.0690813809633255, 0.01693735644221306, -0.012572523206472397, 0.020015239715576172, 0.035800639539957047, -0.06155766546726227, 0.03684459999203682, 0.0563378632068634, -0.010205612517893314, 0.010052618570625782, 0.025847019627690315, -0.09100454300642014, -0.016352379694581032, -0.04334235563874245, 0.07070131599903107, 0.01068259496241808, 0.023111123591661453, 0.016460375860333443, -0.01870129071176052, -0.023777097463607788, 0.02435307577252388, -0.034378696233034134, 0.042658381164073944, 0.05723782628774643, -0.0007576587377116084, 0.10230811685323715, 0.04939012601971626, 0.026710987091064453, 0.0030666335951536894, -0.024155084043741226, -0.07703707367181778, 0.01806231401860714, 0.03427070006728172, -0.06360958516597748, -0.042406391352415085, -0.06627348810434341, -0.04474630206823349, -0.0058722770772874355, -0.029104895889759064, 0.013940471224486828, 0.0069387368857860565, -0.006079269107431173, 0.05111806094646454, -0.01362548302859068, 0.0376545712351799, 0.036286622285842896, -0.06350158900022507, -0.02460506558418274, -0.00016368128126487136, -0.017783325165510178, -0.010178613476455212, 0.00551679078489542, -0.02375909872353077, 0.030400846153497696, -0.0700533390045166, -0.005930774845182896, 0.02629700116813183, 0.03596263378858566, -0.01169955637305975, -0.05237801373004913, 0.02386709488928318, 0.07188927382230759, -0.022103160619735718, 0.07458917051553726, -0.04100244492292404, -0.009269648231565952, -0.004002598114311695, -0.01779232546687126, 0.0009747755248099566, -0.039526499807834625, -0.012896510772407055, -0.06396957486867905, -0.06832540780305862, -0.021797172725200653, -0.032686758786439896, 0.014777438715100288, 0.010826589539647102, 0.01571340300142765, -0.0330827459692955, -0.02651299349963665, 0.02471306174993515, 0.04615024849772453, -0.07538113743066788, 0.05878577008843422, -0.02435307577252388, 0.014354455284774303, 0.029122894629836082, -0.02770094946026802, -0.0012104540364816785, -0.026962976902723312, 0.007568712811917067, 0.05263000354170799, -0.030274851247668266, 0.04550227150321007, -0.019529258832335472, 0.030778832733631134, 0.04186641052365303, 0.07804504036903381, 0.01781032420694828, -0.05054208263754845, -0.054645925760269165, -0.02375909872353077, -0.047230206429958344, 0.02782694436609745, -0.014363454654812813, 0.022967128083109856, 0.03670060634613037, -0.02329111658036709, -0.06785742193460464, -0.01073659211397171, 0.04975011199712753, 0.03013085573911667, 0.03722258657217026, 0.03358672559261322, 0.036538612097501755, 0.013004506006836891, 0.03191278874874115, 0.030076857656240463, -0.019619256258010864, 0.008036695420742035, -0.03518866375088692, 0.0057327826507389545, -0.01704535260796547, 0.037618573755025864, 0.017666328698396683, 0.02458706684410572, -0.007820703089237213, -0.06116167828440666, -0.06677746772766113, 0.016442375257611275, -0.057777807116508484, -0.03128281235694885, -0.02172517590224743, -0.058245789259672165, -0.03198478743433952, 0.003390621393918991, 0.009503639303147793, -0.07016133517026901, -0.0750211551785469, 0.010538600385189056, -0.009737630374729633, -0.059793729335069656, -0.012644520029425621, 0.03729458525776863, -0.0346846841275692, 0.056085869669914246, -0.02613500878214836, -0.015191423706710339, -0.04309036582708359, -0.037978559732437134, 0.04975011199712753, -0.01895328052341938, -0.05471792444586754, 0.0052827997133135796, 0.021779173985123634, 0.025109047070145607, -0.012608521617949009, -0.023219117894768715, 0.09316446632146835, 0.05615786835551262, 0.012878511101007462, 0.005881276912987232, -0.04881414771080017, -0.007307722698897123, 0.015146424993872643, -0.007946697995066643, -0.03614262863993645, -0.0036741106305271387, 0.04550227150321007, 0.03493667393922806, -0.04042646661400795, -0.005764281377196312, 0.03477467969059944, 0.021905168890953064, -0.02375909872353077, -0.017729327082633972, 0.018917281180620193, -0.022049162536859512, 0.011051580309867859, 0.0037978559266775846, 0.025361036881804466, -0.0006564125651493669, 0.04352234676480293, 0.05712983012199402, 0.046726226806640625, -0.03805055469274521, 0.06335759907960892, 0.036628611385822296, 0.04100244492292404, -0.021437186747789383, 0.034486692398786545, 0.01126757264137268, 0.027880942448973656, 0.004038596525788307, -0.06666947156190872, -0.03920251131057739, -0.0009100904571823776, -0.023669101297855377, 0.008293185383081436, 0.02496505342423916, -0.013607483357191086, -0.04093044623732567, 0.022769136354327202, -0.03981448709964752, 0.03553065285086632, 0.08646871894598007, 0.026800982654094696, -0.053925953805446625, -0.027376960963010788, 0.046474236994981766, -0.07682108134031296, -0.02962687611579895, 0.004639323800802231, -0.05363796278834343, 0.01037660613656044, 0.0016098138876259327, 0.06800141930580139, 0.07998896390199661, -0.045538272708654404, 0.009431642480194569, -0.00659224996343255, -0.019997240975499153, -0.038914524018764496, 0.00761821074411273, 0.05363796278834343, -0.029842866584658623, 0.019151272252202034, 0.03648461401462555, -0.014777438715100288, -0.036070629954338074, 0.01654137298464775, -0.0814289078116417, -0.01842229999601841, -0.018269306048750877, 0.0196552537381649, 0.030904827639460564, 0.07854901999235153, 0.029428882524371147, -0.052845995873212814, 0.04532228037714958, 0.08243687450885773, 0.020897207781672478, -0.037258587777614594, 0.024659063667058945, -0.03707859292626381, -0.012581522576510906, 0.01787332072854042, -0.02807893417775631, 0.05734582245349884, -0.022481147199869156, 0.04244238883256912, 0.021905168890953064, -0.006817241199314594, 0.03619662672281265, 0.011213574558496475, -0.025109047070145607, -0.014048466458916664, -0.016163386404514313, 0.00196980033069849, -0.019997240975499153, 0.042766377329826355, 0.013265496119856834, 0.003966599237173796, 0.0010462102945894003, 0.04964211583137512, -0.004904814064502716, -0.08848464488983154, 0.054393935948610306, -0.022391149774193764, 0.04481830075383186, -0.006182765122503042, -0.035800639539957047, -0.04089444875717163, 0.022589143365621567, 0.02338111214339733, -0.06954935938119888, -0.0035278662107884884, 0.04694221913814545, -0.0017380589852109551, 0.03382071480154991, 0.04402633011341095, 0.0137424785643816, -0.02725096605718136, 0.011240573599934578, 0.03553065285086632, 0.010457603260874748, 0.010007619857788086, -0.011078579351305962, 0.020807210355997086, 0.058353785425424576, -0.03248876705765724, -0.05090206861495972, -0.09806028008460999, -0.034846678376197815, -0.02206716313958168, -0.0031656299252063036, 0.009386643767356873, -0.07487715780735016, -0.01511942595243454, -0.00445258105173707, -0.054033949971199036, -0.017144348472356796, -0.01954725757241249, 0.00935064535588026, -0.03349673002958298, -0.02725096605718136, 0.05263000354170799, -0.03686260059475899, -0.007321222219616175, -0.021419186145067215, -0.0033276237081736326, 0.06720945239067078, -0.04453030973672867, 0.015191423706710339, -0.011969545856118202, -0.024065086618065834, -0.015209422446787357, 0.031138818711042404, 0.04093044623732567, -0.011078579351305962, -0.017504336312413216, -0.021671177819371223, -0.03128281235694885, 0.07127729803323746, 0.041326429694890976, -0.0023129121400415897, -0.0010287734912708402, 0.028618913143873215, -0.003138630883768201, -0.0523420125246048, -0.047554194927215576, -0.038086555898189545, 0.0005543227307498455, 0.001823555794544518, 0.07991696894168854, -0.04042646661400795, -0.08106892555952072, -0.03859053552150726, 0.022265154868364334, -0.08438079804182053, -0.04438631609082222, -0.09705231338739395, -0.02518104389309883, 0.014804437756538391, -0.00259415153414011, -0.02401108853518963, -0.08373282104730606, -0.003968849312514067, -0.006781242787837982, -0.05414194613695145, 0.01343648973852396, -0.07282523810863495, 0.01103358156979084, 0.018881283700466156, -0.016208384186029434, 0.04352234676480293, 0.035566650331020355, 0.018863284960389137, 0.029608875513076782, 0.007568712811917067, -0.013130501843988895, 0.017063353210687637, -0.02759295329451561, 0.010214611887931824, -0.031732793897390366, 0.04139842838048935, -0.001473694108426571, 0.000620413979049772, -0.022355152294039726, -0.0386265330016613, -0.03499067202210426, -0.03790656104683876, 0.010844588279724121, 0.031480804085731506, 0.05504190921783447, -0.018809286877512932, 0.0811409205198288, 0.019457262009382248, -0.008752168156206608, -0.016298381611704826, 0.02626100368797779, 0.045538272708654404, 0.027412960305809975, -0.06274561583995819, 0.013940471224486828, -0.0030081358272582293, 0.011366568505764008, -0.01522742211818695, 0.08927661180496216, 0.010448603890836239, 0.03218277916312218, 0.0422263965010643, 0.009620634838938713, -0.005300798919051886, -0.0033141241874545813, -0.05173003673553467, -0.007519214414060116, 0.005980273243039846, 0.01702735386788845, 0.033784717321395874, -0.036430615931749344, 0.012752516195178032, -0.03851853683590889, -0.023057125508785248, -0.021185195073485374, -0.0814289078116417, 0.009530638344585896, -0.0029181393329054117, -0.020969204604625702, 0.056193865835666656, 0.04633024334907532, 0.04197440668940544, 0.02590101771056652, -0.025973014533519745, 0.011240573599934578, 0.004047596361488104, 0.02926689013838768, 0.02302112616598606, -0.073365218937397, -0.01025961060076952, 0.041218437254428864, 0.016316380351781845, -0.022589143365621567, -0.012734516523778439, -0.002479405840858817, 0.0018156811129301786, 0.0125995222479105, -0.06526552140712738, -0.0238850936293602, -0.04233439266681671, 0.009058156050741673, 0.003561614779755473, -0.05406994745135307, 0.03707859292626381, -0.006421256344765425, -0.042046405375003815, -0.03715059161186218, -0.012941508553922176, -0.0025379036087542772, 0.0063042608089745045, 0.02915889397263527, -0.012212536297738552, 0.019169272854924202, -0.05504190921783447, -0.017540333792567253, 0.006272762082517147, -0.04183041304349899, -0.03344273194670677, -0.04895814135670662, -0.027754947543144226, 0.030076857656240463, -0.036070629954338074, 0.02951887995004654, -0.027268964797258377, 0.017360340803861618, 0.03252476453781128, 0.03992248326539993, 0.016712365671992302, 0.007429217919707298, 0.04031847044825554, -0.07761305570602417, -0.021905168890953064, -0.022265154868364334, 0.0631416067481041, 0.03635862097144127, 0.04463830590248108, 0.012797513976693153, 0.0022544143721461296, 0.06335759907960892, -0.03572864457964897, -0.00855417549610138, -0.034954674541950226, -0.01837730221450329, 0.007933198474347591, 0.012608521617949009, -0.013391491957008839, -0.02507304772734642, 0.04262238368391991, -0.00269989762455225, -0.015956394374370575, 0.0036898599937558174, 0.014975431375205517, 0.01906127668917179, -0.009773628786206245, 0.031732793897390366, -0.005764281377196312, -0.007235725410282612, 0.03230877220630646, 0.008977158926427364, -0.004594325553625822, 0.010745592415332794, 0.04964211583137512, -0.006970235612243414, 0.019511260092258453, -0.038698531687259674, 0.02149118483066559, 0.003320873947814107, -0.06335759907960892, 0.02962687611579895, 0.006277261767536402, -0.01319349929690361, -0.01738733984529972, 0.01978124864399433, 0.06846939772367477, 0.021131198853254318, 0.03527865931391716, 0.033424731343984604, 0.011375567875802517, 0.01596539467573166, -0.0011699555907398462, 0.03646661713719368, 0.004560576751828194, 0.05687784031033516, 0.0015018179547041655, -0.03214678168296814, 0.08452479541301727, -0.032326772809028625, 0.0052423011511564255, 0.02329111658036709, -0.027016974985599518, -0.018683290109038353, 0.005224301945418119, 0.04496229439973831, -0.03585463762283325, 0.05936174839735031, -0.06180965527892113, 0.01969125308096409, -0.036628611385822296, 0.00010602722613839433, 0.023309115320444107, -0.009121153503656387, 0.07977297157049179, 0.05810179561376572, -0.04129043221473694, 0.03193078935146332, 0.050326090306043625, 0.00893666036427021, -0.02123919315636158, 0.011141576804220676, 0.025109047070145607, 0.014264458790421486, 0.020105237141251564, -0.06756943464279175, 0.029176892712712288, -0.007604711223393679, -0.012356530874967575, 0.019619256258010864, 0.0017988067120313644, -0.009130153805017471, -0.05694983899593353, 0.03225477412343025, 0.015704404562711716, -0.00876566767692566, -0.05162204056978226, 0.005764281377196312, 0.05687784031033516, -0.04352234676480293, 0.04550227150321007, 0.01523642148822546, -0.04391833394765854, 0.0011845800327137113, -0.006700245663523674, 0.016163386404514313, -0.004488579463213682, -0.020483221858739853, 0.0520540252327919, -0.05133405327796936, -0.013364492915570736, -0.007798204198479652, -0.021743174642324448, -0.023417111486196518, 0.00959363579750061, 0.005939774680882692, -0.001123269903473556, 0.012680518440902233, -0.017720326781272888, -0.03873452916741371, 0.07898100465536118, -0.005800279788672924, 0.011861549690365791, 0.00989962462335825, 0.025739023461937904, 0.03733058273792267, -0.034486692398786545, -0.02266114018857479, -0.06155766546726227, -0.032092783600091934, 0.014183461666107178, -0.027628950774669647, -0.010691594332456589, -0.04006648063659668, -0.007541713770478964, 0.0006007272168062627, -0.04643823578953743, -0.04139842838048935, -0.034504689276218414, 0.006943236570805311, 0.019817247986793518, 0.008612672798335552, -0.03657461330294609, -0.02075321227312088, -0.02915889397263527, 0.057741809636354446, -0.1126757264137268, 0.013832475058734417, -0.052845995873212814, 0.025289040058851242, 0.04885014519095421, -0.01565040647983551, 0.03418070450425148, 0.02136518992483616, -0.008734168484807014, 0.014363454654812813, -0.030292849987745285, -0.03801455721259117, -0.0415424220263958, 0.009989621117711067, -0.01464244443923235, 0.02037522755563259, 0.03373071923851967, -0.026243003085255623, -0.0013072004076093435, -0.04377434030175209, 0.003829354653134942, 0.03182279318571091, 0.040354467928409576, 0.012761515565216541, -0.002191416919231415, 0.030562840402126312, 0.00040695330244489014, -0.043594345450401306, -0.0052423011511564255, -0.013796476647257805, -0.010574598796665668, 0.08121291548013687, 0.005408794619143009, -0.002450156956911087, 0.030022861436009407, 0.027862941846251488, 0.0026571492198854685, -0.029572878032922745, 0.0012869511265307665, 0.015335418283939362, 0.0023241618182510138, -0.01745033822953701, -0.010358606465160847, -0.007964697666466236, -0.0112855713814497, 0.019259268417954445, -0.036646608263254166, 0.011339569464325905, 0.04427831992506981, 0.002832642523571849, -0.017018353566527367, 0.02530703879892826, -0.019259268417954445, -0.003570614382624626, 0.02375909872353077, 0.0061377668753266335, -0.046222247183322906, 0.02314712107181549, 0.013211498968303204, 0.028528917580842972, 0.022967128083109856, -0.06494153290987015, -0.03387471288442612, 0.006362758576869965, -0.007357220631092787, 0.02843892015516758, -0.047338202595710754, 0.040030479431152344, 0.02172517590224743, -0.018899282440543175, -0.008374182507395744, 0.01969125308096409, 0.09726830571889877, -0.0650855302810669, -0.03223677724599838, -0.016613369807600975, -0.01956525817513466, 0.020843209698796272, 0.020465223118662834, -0.013130501843988895, 0.017396340146660805, 0.0038023556116968393, -0.02221115678548813, 0.05946974456310272, -0.048886146396398544, -0.022985126823186874, 0.06317760050296783, -0.0369705967605114, 0.03517066687345505, 0.007730706594884396, 0.0537099614739418, -0.06054970249533653, 0.036790601909160614, -0.005908275954425335, -0.010196613147854805, 0.025001050904393196, 0.001441070344299078, 0.018503297120332718, 0.02987886592745781, -0.03445069119334221, -0.012572523206472397, 0.01175355352461338, 0.020807210355997086, 0.06483353674411774, 0.030292849987745285, -0.013112502172589302, 0.06796541810035706, -0.0041983406990766525, 0.003977849148213863, 0.05460992828011513, 0.040606457740068436, -0.0297708697617054, 0.02399308979511261, -0.03358672559261322, 0.05507791042327881, -0.03223677724599838, -0.032812755554914474, 0.05673384666442871, 0.059433743357658386, 0.00876566767692566, 0.0004002035711891949, 0.02867291122674942, -0.09518038481473923, 0.045862261205911636, -0.04694221913814545, -0.0008757792529650033, -0.07167328149080276, -0.05482592061161995, -0.029068896546959877, -0.008243687450885773, 0.059685733169317245, 0.02386709488928318, 0.03191278874874115, -0.015425414778292179, -0.038698531687259674 ]
21,091
tfields.core
_args
null
def _args(self) -> tuple: return super()._args() + tuple(self.fields)
(self) -> tuple
[ -0.02797289937734604, -0.011838887818157673, 0.007257120218127966, 0.033851392567157745, -0.01165689155459404, -0.04357001930475235, 0.03623555228114128, 0.004927561618387699, 0.044152408838272095, -0.030047662556171417, 0.008208053186535835, 0.006793028209358454, -0.0147144366055727, 0.018763864412903786, 0.011083601042628288, 0.01777198165655136, 0.002727676182985306, 0.02577073872089386, -0.00055537442676723, 0.030448054894804955, 0.02464235946536064, -0.009582128375768661, 0.010237316600978374, 0.0012114158598706126, 0.03201322630047798, 0.03978448733687401, 0.048593129962682724, -0.042951229959726334, 0.053288646042346954, 0.013950049877166748, -0.04091286659240723, -0.017280589789152145, 0.03332360461354256, 0.029574470594525337, 0.00018412951612845063, -0.03718193247914314, -0.049903504550457, 0.05638258904218674, -0.027718104422092438, 0.014259444549679756, 0.02233099937438965, -0.0829177126288414, -0.0009355769725516438, -0.009855123236775398, -0.0076984623447060585, -0.05270625650882721, 0.028591688722372055, -0.0419684499502182, -0.04349721968173981, -0.027426909655332565, 0.05667378380894661, -0.005095908883959055, 0.02400537021458149, -0.02498815208673477, -0.029629068449139595, 0.015060230158269405, 0.030994044616818428, 0.026407726109027863, -0.01288536936044693, 0.07385427504777908, 0.0041108513250947, 0.033760394901037216, -0.0031098693143576384, -0.027954699471592903, -0.004936661571264267, -0.06348046660423279, -0.037818923592567444, 0.0018779789097607136, -0.01616131141781807, 0.045135192573070526, -0.022512996569275856, -0.03789171949028969, -0.025625141337513924, 0.0031280689872801304, -0.0068066781386733055, -0.005287005100399256, 0.015178527683019638, 0.039930086582899094, 0.038037318736314774, -0.04546278715133667, -0.025788938626646996, 0.0004945192486047745, -0.09121676534414291, 0.038037318736314774, 0.011365696787834167, -0.015205827541649342, -0.06424485146999359, -0.006683830171823502, -0.03030245751142502, 0.004101751372218132, -0.06271607428789139, 0.011911686509847641, -0.0225857961922884, 0.04950311407446861, -0.01566081866621971, -0.029792865738272667, -0.04710075631737709, -0.030502652749419212, -0.03847411274909973, 0.03880170360207558, -0.029283275827765465, -0.025934536010026932, -0.014668936841189861, -0.011220099404454231, 0.019928643479943275, -0.09107116609811783, -0.010091719217598438, -0.06886756420135498, 0.03494337573647499, 0.014923732727766037, -0.015032930299639702, 0.007102422881871462, -0.0115476930513978, 0.07571064680814743, -0.050485894083976746, -0.048884324729442596, -0.014122947119176388, 0.007061473559588194, 0.020529232919216156, 0.016316007822752, 0.011866187676787376, 0.04873872548341751, 0.023168185725808144, 0.02451496012508869, 0.0068476274609565735, 0.06955915689468384, -0.03538016602396965, -0.009973421692848206, -0.014532439410686493, -0.0797145739197731, 0.010719607584178448, -0.02939247339963913, -0.04353361949324608, -0.022840591147542, -0.007643863093107939, -0.020219838246703148, 0.12863530218601227, 0.007457316387444735, 0.003512537106871605, 0.033469200134277344, 0.008098854683339596, 0.04498959332704544, 0.0673023909330368, 0.013367660343647003, -0.05827535688877106, -0.005318854935467243, 0.04655476659536362, 0.06853996962308884, -0.008135254494845867, 0.007188871037214994, 0.0057101477868855, 0.01228477992117405, -0.019510051235556602, 0.025024551898241043, -0.0580933578312397, -0.0011750163976103067, -0.028537089005112648, -0.0667928010225296, 0.026862718164920807, -0.03321440517902374, -0.03858330845832825, -0.06624681502580643, 0.028846483677625656, -0.010091719217598438, 0.05503581464290619, 0.054489824920892715, 0.057984162122011185, -0.05357984080910683, -0.0008735843584872782, 0.012985466979444027, 0.016206810250878334, 0.003430638462305069, -0.00875859335064888, 0.030011262744665146, -0.04506239295005798, 0.048847924917936325, -0.05558180436491966, -0.00199627666734159, -0.0003864587051793933, 0.00013230310287326574, 0.025534141808748245, -0.05853015184402466, 0.0009583265637047589, -0.0211116224527359, 0.10446612536907196, -0.04546278715133667, -0.005514501128345728, 0.015542522072792053, 0.003614910179749131, -0.02145741507411003, 0.024241965264081955, 0.0016834698617458344, -0.0024114567786455154, -0.003967529162764549, -0.05882134661078453, 0.013731653802096844, -0.04306042939424515, -0.00296199694275856, 0.01685289852321148, 0.031212441623210907, -0.02810029685497284, -0.07032354176044464, -0.04691876098513603, 0.0053825536742806435, 0.004231424070894718, 0.00579659640789032, 0.04728275164961815, -0.0337785966694355, -0.047937940806150436, -0.031521834433078766, 0.06890396773815155, -0.013058265671133995, 0.018408970907330513, -0.056819383054971695, -0.0007689362391829491, -0.039020102471113205, 0.042041245847940445, -0.044152408838272095, -0.010637709870934486, 0.03789171949028969, 0.11130920797586441, -0.01981944590806961, 0.013895451091229916, -0.04728275164961815, 0.04429800808429718, -0.03219522163271904, 0.027863701805472374, -0.024078167974948883, -0.059367336332798004, -0.013831752352416515, -0.029210476204752922, -0.008722193539142609, -0.05692857876420021, 0.043715618550777435, -0.04713715612888336, 0.081898532807827, 0.009345532394945621, -0.06570082157850266, -0.01758088544011116, 0.008572046644985676, 0.00959122832864523, 0.0699959471821785, 0.007903208024799824, 0.018481768667697906, 0.018026776611804962, -0.07105153053998947, 0.02331378310918808, 0.02904667891561985, 0.019582848995923996, 0.03305060788989067, -0.012339378707110882, 0.035871557891368866, -0.0065291328355669975, 0.06002252548933029, -0.05478101968765259, -0.005969493184238672, 0.008176203817129135, 0.007848609238862991, 0.004028952680528164, -0.06118730455636978, 0.043934013694524765, -0.012621473520994186, 0.003639934817329049, 0.017316989600658417, 0.011465794406831264, 0.022003406658768654, 0.02378697320818901, -0.03408798947930336, -0.04549918323755264, 0.042077645659446716, 0.16510744392871857, 0.006520033348351717, -0.03452477976679802, 0.05503581464290619, -0.017225991934537888, -0.03767332434654236, 0.03179483115673065, 0.01761728525161743, -0.06741159409284592, 0.01761728525161743, 0.06672000139951706, 0.004431620705872774, -0.01883666217327118, -0.045098792761564255, 0.031612832099199295, 0.004570393357425928, 0.009381932206451893, 0.04404320940375328, -0.034925173968076706, -0.02029263600707054, 0.018854862079024315, 0.04797434061765671, 0.03059365227818489, -0.009609428234398365, 0.039274897426366806, -0.007680262438952923, -0.011274698190391064, 0.03916569799184799, 0.019164256751537323, -0.002052013296633959, 0.003455663099884987, 0.0018836662638932467, -0.002668527187779546, -0.009259084239602089, 0.04109486564993858, -0.05718337744474411, 0.03408798947930336, 0.03456117957830429, -0.016015714034438133, -0.0368543416261673, -0.02598913386464119, 0.02498815208673477, 0.004795614164322615, -0.02706291526556015, -0.04240524023771286, 0.001409337273798883, 0.0055372510105371475, 0.043206024914979935, -0.016452506184577942, 0.04797434061765671, -0.008098854683339596, -0.05201466754078865, -0.004690966103225946, 0.026407726109027863, 0.011383895762264729, 0.038546908646821976, -0.06264327466487885, 0.009836924262344837, 0.004322422668337822, 0.03241362050175667, -0.03143083676695824, 0.02586173638701439, -0.017917579039931297, 0.0336511954665184, -0.01613401062786579, 0.014923732727766037, -0.010064419358968735, 0.005482651758939028, 0.014769035391509533, -0.04105846583843231, -0.022476596757769585, -0.019273454323410988, -0.014441441744565964, 0.01568811945617199, -0.014841834083199501, -0.012293879874050617, 0.0005064628203399479, 0.059403736144304276, 0.09070717543363571, -0.0009583265637047589, -0.012748871929943562, -0.09805984050035477, -0.035361967980861664, -0.024059969931840897, 0.053288646042346954, 0.014550639316439629, -0.0697411522269249, -0.031212441623210907, 0.02731771022081375, 0.029847465455532074, 0.07804020494222641, -0.05478101968765259, 0.03616275265812874, 0.01965564861893654, 0.0406944714486599, -0.014059248380362988, -0.020183438435196877, 0.024241965264081955, -0.0007638175738975406, -0.0010692308424040675, 0.006674730218946934, -0.0037241082172840834, 0.009745925664901733, -0.018317971378564835, -0.020401835441589355, 0.0331416055560112, -0.008340000174939632, 0.03494337573647499, -0.09427431225776672, -0.0678119882941246, -0.007775810547173023, -0.06788478046655655, 0.019619248807430267, 0.014787235297262669, -0.022385599091649055, 0.01211188267916441, 0.013258462771773338, -0.00451351935043931, 0.016052111983299255, 0.04400681331753731, -0.03670874238014221, -0.017253290861845016, -0.043242424726486206, -0.02939247339963913, -0.008499247953295708, -0.05456262454390526, 0.03356019780039787, -0.03840131312608719, -0.04739195108413696, -0.07461865991353989, 0.0327594131231308, -0.06886756420135498, -0.03752772882580757, 0.0007626800797879696, -0.014896432869136333, 0.005209656897932291, -0.0060377418994903564, 0.05172347277402878, 0.03386959433555603, -0.001433224300853908, -0.0061560398899018764, 0.00915443617850542, 0.0029597219545394182, -0.029756467789411545, 0.0536162406206131, -0.024769756942987442, -0.02072942815721035, 0.06315287202596664, 0.010419313795864582, 0.016752799972891808, 0.030357055366039276, 0.013112865388393402, -0.0578385628759861, 0.05994972586631775, 0.04826553538441658, 0.008312701247632504, -0.08976079523563385, 0.020110640674829483, 0.05503581464290619, 0.005018560215830803, -0.036053553223609924, -0.000053923642553854734, -0.006196989212185144, 0.028082096949219704, -0.01981944590806961, 0.010510311461985111, 0.011083601042628288, -0.01357695646584034, 0.04961230978369713, 0.0742182731628418, -0.004891162272542715, -0.016680000349879265, 0.0580933578312397, -0.05303385108709335, 0.04935751482844353, -0.04498959332704544, -0.047646746039390564, -0.0003295847272966057, 0.01288536936044693, -0.00009334442438557744, 0.032031428068876266, 0.05172347277402878, 0.02860988676548004, -0.047865141183137894, -0.014259444549679756, -0.04688236117362976, -0.08058815449476242, -0.06144209951162338, 0.004242798779159784, -0.009345532394945621, 0.04833833500742912, -0.033269003033638, -0.002137324307113886, 0.020529232919216156, 0.007866809144616127, -0.05110468342900276, 0.024369362741708755, -0.054890215396881104, -0.08801362663507462, -0.004003928508609533, 0.029319675639271736, -0.0044293454848229885, -0.02693551778793335, -0.056346189230680466, 0.0053416043519973755, 0.0377461239695549, 0.05663738399744034, -0.013030966743826866, -0.030375255271792412, -0.066538006067276, 0.009745925664901733, -0.03792811930179596, 0.02447856217622757, 0.010455712676048279, -0.037600524723529816, 0.023732375353574753, -0.0052597057074308395, 0.007038724143058062, -0.04109486564993858, -0.0035011623986065388, 0.004579492844641209, -0.020583830773830414, -0.011574992910027504, -0.016770999878644943, 0.01805407740175724, -0.0032645664177834988, 0.006183339282870293, 0.018345272168517113, -0.028464289382100105, 0.07436386495828629, -0.018099576234817505, -0.023113586008548737, 0.0546354204416275, 0.00229657138697803, -0.004270098637789488, -0.06377165764570236, 0.03610815480351448, 0.005810245871543884, -0.023641375824809074, -0.012384878471493721, -0.04615437239408493, -0.038510508835315704, 0.006902226246893406, 0.005346154328435659, 0.01247587613761425, -0.023641375824809074, -0.020401835441589355, 0.03530736640095711, -0.014878233894705772, 0.005018560215830803, 0.031085044145584106, 0.03332360461354256, -0.012248381040990353, -0.027390509843826294, -0.01387725118547678, 0.027900099754333496, -0.012767070904374123, -0.0007456179009750485, 0.020401835441589355, 0.0026708021759986877, 0.04826553538441658, -0.030848447233438492, -0.004258723929524422, -0.020583830773830414, -0.025479543954133987, 0.08320891112089157, -0.02400537021458149, 0.03523457050323486, -0.024278365075588226, 0.04378841444849968, 0.027954699471592903, 0.023714175447821617, -0.050231099128723145, -0.01447784062474966, -0.009527529589831829, -0.033760394901037216, 0.0025297547690570354, 0.0003062663890887052, 0.015060230158269405, -0.04142245650291443, -0.057765766978263855, -0.024496762081980705, -0.015542522072792053, 0.06449964642524719, -0.010892504826188087, -0.008371850475668907, -0.031649231910705566, -0.014059248380362988, -0.007339018397033215, -0.015360524877905846, 0.03752772882580757, -0.04313322901725769, -0.027681704610586166, 0.019164256751537323, -0.09216315299272537, 0.032249823212623596, 0.036563146859407425, 0.06024092063307762, -0.065264031291008, 0.02451496012508869, -0.039966482669115067, -0.025716139003634453, -0.06304366886615753, -0.0030734699685126543, 0.04258723556995392, -0.021748609840869904, -0.027081115171313286, 0.007730311714112759, -0.011675090529024601, -0.04051247611641884, 0.03008406050503254, 0.03869250789284706, 0.008112505078315735, -0.03767332434654236, -0.035653162747621536, 0.0412040613591671, -0.0008440098608843982, 0.00021569457021541893, 0.04571758210659027, 0.023859772831201553, -0.014441441744565964, -0.006083241198211908, -0.0032509167212992907, -0.006283437367528677, -0.0007683674921281636, -0.022949788719415665, -0.06613761186599731, -0.01726238988339901, -0.05434422567486763, -0.050959087908267975, -0.005054959561675787, 0.012657873332500458, -0.015861015766859055, 0.022476596757769585, -0.013713454827666283, -0.035361967980861664, 0.025406744331121445, 0.04997630417346954, -0.021475614979863167, 0.07167031615972519, 0.01805407740175724, -0.043206024914979935, 0.017207792028784752, -0.02262219414114952, -0.016461605206131935, 0.004690966103225946, -0.021748609840869904, 0.047901540994644165, 0.07308989018201828, 0.050231099128723145, -0.06118730455636978, 0.016780098900198936, -0.03594435751438141, 0.037855323404073715, -0.016934797167778015, -0.015642620623111725, -0.015933815389871597, -0.043970413506031036, 0.014423241838812828, -0.02728131227195263, 0.008080655708909035, -0.02451496012508869, 0.07709381729364395, -0.03132163733243942, -0.0018518167780712247, -0.010956203565001488, -0.0365995429456234, -0.04833833500742912, -0.049539513885974884, -0.008449198678135872, 0.031303439289331436, 0.02176680974662304, -0.03408798947930336, -0.015287726186215878, -0.025406744331121445, 0.02964726835489273, -0.07876818627119064, -0.0881592184305191, 0.022986188530921936, -0.030193259939551353, 0.0030871196649968624, 0.040439676493406296, -0.03676334023475647, 0.012557774782180786, -0.01491463277488947, 0.02526114694774151, -0.025625141337513924, 0.041349660605192184, -0.015469723381102085, -0.02072942815721035, -0.017180493101477623, 0.021967006847262383, 0.0839368999004364, -0.04036687687039375, -0.01824517361819744, 0.028373291715979576, -0.027608904987573624, 0.012848969548940659, 0.07261669635772705, 0.004083551932126284, -0.022349199280142784, 0.010100819170475006, 0.00905888807028532, 0.03934769704937935, 0.014368643052875996, 0.010574010200798512, 0.03530736640095711, 0.020365435630083084, 0.029028480872511864, -0.02211260423064232, 0.014596138149499893, -0.04993990436196327, -0.02999306283891201, -0.005964943207800388, -0.0031553683802485466, -0.009764125570654869, -0.02866448648273945, 0.07130632549524307, 0.022694993764162064, -0.04946671426296234, 0.02860988676548004, -0.059876926243305206, 0.04029407724738121, -0.02775450237095356, 0.0248243547976017, 0.02447856217622757, -0.011201899498701096, -0.06002252548933029, 0.06540963053703308, 0.025825336575508118, -0.0069295261055231094, 0.0058011459186673164, -0.003774157492443919, 0.03912929818034172, 0.00839459989219904, -0.0011488543823361397, 0.06540963053703308, 0.009381932206451893, -0.005632799118757248, 0.029974862933158875, 0.00866304524242878, 0.045535583049058914, -0.019036859273910522, -0.02331378310918808, 0.036180950701236725, 0.0033305403776466846, 0.07349028438329697, 0.05532700940966606, -0.021967006847262383, 0.0011443045223131776, -0.030357055366039276, 0.04458920285105705, 0.03616275265812874, -0.005974043160676956, 0.030011262744665146, 0.011684190481901169, -0.03297780826687813, -0.03610815480351448, 0.01584281586110592, -0.029465273022651672, 0.024878954514861107, -0.01947365142405033, 0.02076582796871662, 0.035744160413742065, 0.044880397617816925, 0.015296826139092445, 0.013731653802096844, 0.014459640718996525, -0.020565630868077278, 0.0209842249751091, 0.02447856217622757, 0.04011208191514015, 0.04240524023771286, 0.044880397617816925, 0.02447856217622757, 0.007320818956941366, 0.02977466583251953, -0.02749970741569996, -0.017508085817098618, -0.05689218267798424, 0.06741159409284592, 0.0893239974975586, 0.029410673305392265, -0.02498815208673477, -0.008731293492019176, -0.032304421067237854, 0.07847699522972107, -0.039966482669115067, -0.011975385248661041, -0.02555234171450138, -0.03745492920279503, 0.0084127988666296, -0.007989657111465931, 0.04306042939424515, 0.053288646042346954, 0.03408798947930336, 0.015697218477725983, 0.029792865738272667 ]
21,093
tfields.mesh_3d
_cut_sympy
Partition the mesh with the cuts given and return the template
def _cut_sympy(self, expression, at_intersection="remove", _in_recursion=False): """ Partition the mesh with the cuts given and return the template """ eps = 0.000000001 # direct return if self is empty if len(self) == 0: return self.copy(), self.copy() inst = self.copy() """ add the indices of the vertices and maps to the fields. They will be removed afterwards """ if not _in_recursion: inst.fields.append(tfields.Tensors(np.arange(len(inst)))) for mp in inst.maps.values(): mp.fields.append(tfields.Tensors(np.arange(len(mp)))) # mask for points that do not fulfill the cut expression mask = inst.evalf(expression) # remove the points if not any(~mask): # no vertex is valid inst = inst[mask] elif all(~mask): # all vertices are valid inst = inst[mask] elif at_intersection == "keep": expression_parts = tfields.lib.symbolics.split_expression(expression) if len(expression_parts) > 1: new_mesh = inst.copy() for expr_part in expression_parts: inst, _ = inst._cut_sympy( expr_part, at_intersection=at_intersection, _in_recursion=True ) elif len(expression_parts) == 1: face_delete_indices = set([]) for i, face in enumerate(inst.maps[3]): """ vertices_rejected is a mask for each face that is True, where a Point is on the rejected side of the plane """ vertices_rejected = [~mask[f] for f in face] if all(vertices_rejected): # delete face face_delete_indices.add(i) mask = np.full(len(inst.maps[3]), True, dtype=bool) for face_idx in range(len(inst.maps[3])): if face_idx in face_delete_indices: mask[face_idx] = False inst.maps[3] = inst.maps[3][mask] else: raise ValueError("Sympy expression is not splitable.") inst = inst.cleaned() elif at_intersection == "split" or at_intersection == "split_rough": """ add vertices and faces that are at the border of the cuts """ expression_parts = tfields.lib.symbolics.split_expression(expression) if len(expression_parts) > 1: new_mesh = inst.copy() if at_intersection == "split_rough": """ the following is, to speed up the process. Problem is, that triangles can exist, where all points lie outside the cut, but part of the area still overlaps with the cut. These are at the intersection line between two cuts. """ face_inters_mask = np.full((inst.faces.shape[0]), False, dtype=bool) for i, face in enumerate(inst.faces): vertices_rejected = [-mask[f] for f in face] face_on_edge = any(vertices_rejected) and not all( vertices_rejected ) if face_on_edge: face_inters_mask[i] = True new_mesh.remove_faces(-face_inters_mask) for expr_part in expression_parts: inst, _ = inst._cut_sympy( expr_part, at_intersection="split", _in_recursion=True ) elif len(expression_parts) == 1: # build plane from cut expression plane_sympy = tfields.lib.symbolics.to_plane(expression) norm_sympy = np.array(plane_sympy.normal_vector).astype(float) d = -norm_sympy.dot(np.array(plane_sympy.p1).astype(float)) plane = {"normal": norm_sympy, "d": d} # initialize empty containers norm_vectors = inst.triangles().norms() new_vertices = np.empty((0, 3)) new_faces = np.empty((0, 3)) new_fields = [ tfields.Tensors( np.empty((0,) + field.shape[1:]), coord_sys=field.coord_sys ) for field in inst.fields ] new_map_fields = [[] for field in inst.maps[3].fields] new_norm_vectors = [] # copy TODO? vertices = np.array(inst) faces = np.array(inst.maps[3]) fields = [np.array(field) for field in inst.fields] faces_fields = [np.array(field) for field in inst.maps[3].fields] face_delete_indices = set([]) # indexing not intersected faces for i, face in enumerate(inst.maps[3]): """ vertices_rejected is a mask for each face that is True where a point is on the rejected side of the plane """ vertices_rejected = [~mask[f] for f in face] if any(vertices_rejected): # delete face face_delete_indices.add(i) if any(vertices_rejected) and not all(vertices_rejected): # face on edge n_true = vertices_rejected.count(True) lonely_bool = True if n_true == 1 else False triangle_points = [vertices[f] for f in face] """ Add the intersection points and faces """ intersection = _intersect( triangle_points, plane, vertices_rejected ) last_idx = len(vertices) for tri_list in intersection: new_face = [] for item in tri_list: if isinstance(item, int): # reference to old vertex new_face.append(face[item]) elif isinstance(item, complex): # reference to new vertex that has been # concatenated already new_face.append(last_idx + int(item.imag)) else: # new vertex new_face.append(len(vertices)) vertices = np.append( vertices, [[float(x) for x in item]], axis=0 ) fields = [ np.append( field, np.full((1,) + field.shape[1:], np.nan), axis=0, ) for field in fields ] faces = np.append(faces, [new_face], axis=0) faces_fields = [ np.append(field, [field[i]], axis=0) for field in faces_fields ] faces_fields[-1][-1] = i face_map = tfields.TensorFields( faces, *faces_fields, dtype=int, coord_sys=inst.maps[3].coord_sys ) inst = tfields.Mesh3D( vertices, *fields, maps=[face_map], coord_sys=inst.coord_sys ) mask = np.full(len(inst.maps[3]), True, dtype=bool) for face_idx in range(len(inst.maps[3])): if face_idx in face_delete_indices: mask[face_idx] = False inst.maps[3] = inst.maps[3][mask] else: raise ValueError("Sympy expression is not splitable.") inst = inst.cleaned() elif at_intersection == "remove": inst = inst[mask] else: raise AttributeError( "No at_intersection method called {at_intersection} " "implemented".format(**locals()) ) if _in_recursion: template = None else: templ
(self, expression, at_intersection='remove', _in_recursion=False)
[ 0.05564875528216362, -0.03352508321404457, -0.0012869031634181738, 0.042477451264858246, -0.07548803091049194, -0.012059974484145641, -0.03949332982301712, -0.03379262611269951, -0.05494903028011322, -0.012605348601937294, 0.0035114900674670935, -0.030890822410583496, -0.08030378818511963, -0.022576436400413513, -0.07775185257196426, -0.009204477071762085, -0.009482309222221375, 0.015013227239251137, -0.007923361845314503, -0.0477871336042881, -0.06363385915756226, -0.08170323818922043, 0.01209084503352642, 0.05869461968541145, 0.045564476400613785, -0.0013274203520268202, 0.027248132973909378, -0.009225057438015938, 0.023358482867479324, 0.0010328668868169188, -0.026260286569595337, 0.006626811809837818, -0.009734416380524635, -0.03463641181588173, 0.015599762089550495, -0.047745972871780396, 0.02817424014210701, 0.03527439758181572, -0.016772830858826637, 0.06202860549092293, -0.010814874432981014, -0.028338881209492683, 0.026610149070620537, 0.005083299707621336, 0.012708249501883984, -0.01029522530734539, 0.026322025805711746, 0.041427865624427795, -0.017750389873981476, 0.008576782420277596, -0.011442570015788078, -0.115248903632164, 0.040501758456230164, 0.05346725881099701, -0.008448156528174877, 0.0128214405849576, 0.0054177273996174335, 0.05515483021736145, 0.03624166548252106, -0.048857301473617554, 0.013325653970241547, -0.0005694916471838951, -0.01804880052804947, -0.001834206865169108, 0.006678262259811163, -0.020816832780838013, 0.004326978698372841, 0.0007061567739583552, -0.013737257570028305, 0.0035552228800952435, -0.07841041684150696, 0.009549194946885109, 0.058365337550640106, -0.039946094155311584, 0.0330311581492424, -0.038608383387327194, 0.0583241768181324, -0.013315364718437195, 0.023934727534651756, -0.06573303788900375, 0.022535275667905807, -0.00881859939545393, -0.035665418952703476, 0.03943159058690071, 0.0316317081451416, 0.07688748091459274, 0.1039709746837616, 0.000011596438525884878, -0.03784691542387009, -0.05494903028011322, -0.007887346670031548, -0.012986081652343273, 0.004669124260544777, 0.0058241854421794415, 0.01663905940949917, 0.011720402166247368, -0.00550004793331027, -0.10652291774749756, 0.022576436400413513, -0.0393286868929863, 0.042889054864645004, 0.03181692957878113, -0.08627203851938248, 0.015435121022164822, 0.03465699031949043, 0.038958244025707245, 0.0131713030859828, -0.049515869468450546, 0.004787459969520569, -0.024510972201824188, -0.03457467257976532, 0.08627203851938248, -0.009765286929905415, 0.05700704827904701, -0.025539979338645935, -0.02586926333606243, -0.07203056663274765, -0.005464032758027315, 0.008062277920544147, -0.02403762750327587, 0.008489316329360008, -0.025622300803661346, -0.06770873069763184, 0.013706387020647526, 0.04461779072880745, 0.03949332982301712, 0.06421010196208954, 0.043465301394462585, -0.0014161723665893078, -0.07087807357311249, -0.023934727534651756, 0.03119952417910099, -0.02051842026412487, -0.006189483683556318, -0.03718835115432739, -0.02073451317846775, -0.02284397929906845, -0.05943550541996956, -0.06211092695593834, 0.003712146542966366, -0.003799612168222666, 0.02980007417500019, 0.004530208185315132, 0.02037435956299305, -0.09606819599866867, 0.010377545841038227, 0.020899154245853424, -0.05190316587686539, -0.010495882481336594, -0.01395334955304861, -0.029264988377690315, 0.008406995795667171, -0.03554193675518036, -0.04861034080386162, 0.0003008240892086178, 0.0014689089730381966, -0.01531163975596428, -0.018367793411016464, 0.030129356309771538, 0.007177331019192934, -0.05396118387579918, -0.039390429854393005, -0.010701683349907398, 0.019756954163312912, -0.002568661468103528, 0.00267027597874403, 0.0702195093035698, -0.047540172934532166, -0.04881614074110985, 0.06832613795995712, 0.009024400264024734, 0.04109858348965645, -0.05960014835000038, 0.05869461968541145, -0.026116224005818367, 0.0710015594959259, 0.025684041902422905, 0.0032053601462394, -0.0016039663460105658, -0.007769010961055756, -0.01593933440744877, -0.04033711552619934, 0.003966826014220715, 0.042971376329660416, 0.011905623599886894, 0.03226969391107559, 0.0625225305557251, -0.033833783119916916, 0.05655428394675255, 0.00028345955070108175, -0.05873578041791916, -0.031940411776304245, 0.028503524139523506, 0.01840895414352417, 0.01314043253660202, -0.005510338116437197, 0.0057058497332036495, 0.0013248479226604104, -0.06651508063077927, 0.02001420594751835, -0.12669147551059723, -0.049515869468450546, 0.006873773876577616, -0.05894158035516739, -0.012872890569269657, 0.046758126467466354, 0.020621322095394135, 0.031652286648750305, -0.0024091650266200304, 0.06264600902795792, -0.01904693990945816, -0.059558987617492676, 0.04188062623143196, 0.04544099420309067, 0.04171598702669144, -0.040872201323509216, -0.0012470291694626212, 0.033627983182668686, 0.014220891520380974, 0.028915125876665115, -0.04688160866498947, 0.010989805683493614, -0.05704820528626442, -0.020971184596419334, -0.05671892315149307, -0.012132004834711552, 0.051121119409799576, 0.09516266733407974, 0.026939431205391884, -0.10660523176193237, 0.034265968948602676, -0.004656261298805475, -0.0025725201703608036, -0.056183841079473495, 0.0033957266714423895, 0.0386495441198349, 0.0026021040976047516, -0.031014302745461464, 0.06984906643629074, -0.0069869644939899445, -0.020744802430272102, -0.05457858741283417, -0.001328706624917686, -0.010372401215136051, -0.006873773876577616, 0.06161700189113617, 0.054208144545555115, 0.02860642410814762, 0.006626811809837818, 0.005541208200156689, -0.030479218810796738, -0.016690511256456375, -0.03920520842075348, 0.03469815105199814, 0.0014521876582875848, -0.064662866294384, 0.024346331134438515, -0.022514697164297104, 0.04379458352923393, -0.01699921302497387, -0.0014599051792174578, -0.04122206196188927, 0.046552322804927826, -0.008623087778687477, 0.04786945506930351, -0.009348537772893906, 0.0001041870636981912, 0.052808694541454315, -0.016217166557908058, 0.02817424014210701, 0.009724126197397709, 0.024264009669423103, -0.027721477672457695, 0.032002151012420654, -0.022658757865428925, 0.024140529334545135, -0.012944920919835567, 0.036365143954753876, 0.037352994084358215, -0.0034986273385584354, -0.005003551486879587, -0.005839620716869831, -0.017544588074088097, 0.002209794707596302, -0.048239897936582565, -0.022514697164297104, 0.01938651129603386, -0.01057820301502943, 0.04194236919283867, -0.04819873720407486, -0.060670316219329834, 0.017616618424654007, 0.03239317238330841, -0.035377297550439835, 0.03659152612090111, -0.006415865384042263, -0.020333198830485344, -0.03570657968521118, -0.029532531276345253, -0.026507247239351273, 0.06478634476661682, -0.017812129110097885, 0.045564476400613785, -0.00558751355856657, -0.004787459969520569, -0.02965601161122322, 0.011319088749587536, 0.005582368932664394, 0.08314385265111923, -0.048034097999334335, 0.0005823542596772313, -0.025539979338645935, -0.06865541636943817, 0.012903761118650436, 0.03971971198916435, 0.06132888048887253, 0.007727850694209337, -0.02269991859793663, 0.017451977357268333, 0.09112895280122757, -0.0001634354266570881, -0.022185413166880608, 0.021115245297551155, 0.05099764093756676, 0.008000537753105164, -0.06079379469156265, 0.03708545118570328, -0.018933748826384544, 0.00657021626830101, -0.011195607483386993, -0.03533613681793213, 0.05124460160732269, -0.010804584249854088, 0.005489758215844631, -0.03696196898818016, -0.03226969391107559, 0.05177968367934227, -0.05309681594371796, -0.03381320461630821, -0.03434829041361809, 0.07622891664505005, 0.03395726531744003, -0.0049469564110040665, 0.026404347270727158, -0.0036941389553248882, -0.020837413147091866, 0.015990784391760826, -0.008911210112273693, 0.006148322951048613, 0.0892355814576149, 0.0019319626735523343, 0.011020676232874393, 0.03766169399023056, 0.0344306081533432, 0.014076829887926579, -0.0071258810348808765, -0.04412386566400528, -0.004447887185961008, -0.04118090122938156, 0.008592217229306698, 0.04659348353743553, -0.011041256599128246, -0.022432375699281693, 0.03500685468316078, -0.007624949794262648, -0.07421205937862396, -0.00125603296328336, -0.02009652741253376, -0.00832981988787651, -0.05918854475021362, -0.002121042925864458, -0.03181692957878113, 0.0034780472051352262, -0.025046056136488914, -0.0071258810348808765, 0.04671696573495865, 0.009502889588475227, 0.04208642989397049, -0.047046247869729996, 0.0021763520780950785, 0.04581143707036972, 0.018676497042179108, -0.05058603733778, 0.018923457711935043, -0.021485688164830208, 0.02788611873984337, -0.013634356670081615, 0.006276949308812618, 0.09713836014270782, 0.0020104243885725737, 0.03490395471453667, 0.006359269842505455, 0.08244412392377853, -0.0442473478615284, 0.00730595737695694, 0.03385436534881592, -0.02558114007115364, 0.0017338786274194717, -0.025190116837620735, 0.024922575801610947, -0.010979516431689262, -0.016176005825400352, 0.006503331009298563, 0.062152087688446045, -0.003588665509596467, -0.05227360874414444, 0.04116032272577286, 0.016248038038611412, 0.017750389873981476, 0.018676497042179108, 0.012461287900805473, 0.020827123895287514, -0.0026677034329622984, -0.008283514529466629, -0.043382979929447174, 0.020539000630378723, -0.005314826499670744, 0.01974666491150856, -0.0067245676182210445, 0.048651501536369324, 0.02642492763698101, 0.0281125009059906, 0.011298508383333683, 0.027495095506310463, -0.04861034080386162, -0.007841041311621666, -0.07651703804731369, 0.0045713684521615505, -0.028215400874614716, 0.05486670881509781, -0.03218737244606018, -0.07388278096914291, 0.012183455750346184, -0.053796540945768356, -0.030047034844756126, 0.011782142333686352, -0.004275528714060783, -0.003236230229958892, 0.02549882046878338, 0.045358676463365555, 0.045564476400613785, 0.03772343695163727, 0.014766265638172626, -0.07211288809776306, 0.023029200732707977, 0.04642884433269501, -0.05474323034286499, 0.01601136475801468, -0.07960406690835953, 0.030520379543304443, 0.07972754538059235, 0.0291620884090662, -0.006179193500429392, -0.01520873885601759, 0.02502547577023506, 0.011751271784305573, 0.026507247239351273, -0.023975888267159462, -0.032907675951719284, 0.0344306081533432, -0.008936935104429722, 0.0808388739824295, -0.006575361359864473, 0.05935318395495415, -0.021197566762566566, -0.004576513543725014, 0.01685515232384205, 0.010948645882308483, -0.021053504198789597, -0.0037661695387214422, 0.01777096837759018, -0.03455409035086632, -0.04712856933474541, -0.010938355699181557, 0.03809387981891632, 0.042045269161462784, 0.0023577148094773293, 0.024552132934331894, 0.013901898637413979, -0.053714219480752945, -0.022432375699281693, -0.03823794052004814, -0.024984315037727356, -0.032290272414684296, 0.015291059389710426, 0.04679928719997406, 0.011421989649534225, 0.003133329562842846, -0.007943942211568356, -0.01854272559285164, -0.05066835507750511, -0.0142311817035079, -0.0013582906685769558, 0.0058807809837162495, 0.010866325348615646, 0.02269991859793663, -0.03486279398202896, -0.006014551967382431, 0.0661034807562828, -0.036776747554540634, -0.008273224346339703, -0.019479122012853622, -0.06717364490032196, -0.012697959318757057, 0.017966480925679207, 0.00969325564801693, 0.043588779866695404, 0.025169536471366882, -0.013788707554340363, -0.0037507342640310526, -0.01693747192621231, -0.1025715246796608, 0.048034097999334335, -0.000030006036467966624, 0.04400038346648216, 0.02965601161122322, 0.025745781138539314, 0.0068120332434773445, -0.04577028006315231, -0.014282631687819958, -0.001530649489723146, -0.0298618134111166, -0.03659152612090111, 0.01183359231799841, 0.019479122012853622, 0.01770922914147377, -0.024572713300585747, -0.04688160866498947, 0.058571137487888336, -0.05466090887784958, 0.0044556050561368465, -0.012677378952503204, 0.01623774692416191, 0.023852406069636345, 0.04171598702669144, 0.019623184576630592, -0.01911897026002407, -0.07651703804731369, 0.04116032272577286, -0.031220104545354843, -0.028421202674508095, 0.017740098759531975, -0.00892150029540062, -0.0302116759121418, 0.002496630884706974, 0.001118403160944581, 0.027742058038711548, -0.0038664978928864002, -0.01728733628988266, 0.00509616220369935, 0.01804880052804947, 0.031940411776304245, 0.06034103408455849, 0.0079079270362854, 0.043177179992198944, 0.007563209161162376, 0.002477336907759309, -0.03331927955150604, -0.04048117622733116, 0.016690511256456375, -0.026157384738326073, -0.01443698350340128, 0.08487258106470108, -0.029347309842705727, -0.0021133252885192633, 0.011710111983120441, 0.019623184576630592, 0.02459329180419445, -0.005489758215844631, 0.0042832461185753345, 0.022288314998149872, 0.0491865836083889, 0.01707124337553978, 0.0189749076962471, -0.00012942991452291608, -0.015568891540169716, 0.005757300183176994, -0.0351097546517849, -0.008736278861761093, -0.02712465263903141, 0.006945804227143526, -0.013541745953261852, -0.004980398807674646, 0.021403366699814796, 0.04811641573905945, 0.075858473777771, 0.010392981581389904, 0.07318305224180222, 0.05289101600646973, 0.009549194946885109, -0.013253623619675636, 0.06021755188703537, 0.006029987242072821, -0.01296550128608942, -0.040501758456230164, 0.04251861199736595, -0.003009848529472947, -0.0021570581011474133, -0.04898078367114067, -0.01989072561264038, -0.036426886916160583, 0.007506613619625568, 0.03202272951602936, 0.03478047251701355, -0.022041352465748787, -0.043382979929447174, 0.00892150029540062, -0.016567029058933258, 0.013747547753155231, -0.05387886241078377, 0.013665227219462395, -0.007861621677875519, 0.030520379543304443, -0.06824381649494171, -0.03140532597899437, -0.023132100701332092, -0.02296745963394642, 0.014714815653860569, 0.08487258106470108, 0.009322812780737877, -0.05087415874004364, 0.009086141362786293, -0.03681790828704834, 0.005209353286772966, 0.02037435956299305, -0.01183359231799841, 0.1019129604101181, -0.02058016136288643, 0.0014753403374925256, 0.004103169776499271, -0.03327811881899834, -0.024613872170448303, -0.036426886916160583, 0.012481867335736752, -0.004669124260544777, 0.014735395088791847, -0.017019793391227722, -0.004108314868062735, -0.03274303674697876, 0.05392002314329147, -0.01813112199306488, -0.05157388374209404, 0.01896461844444275, 0.005242796149104834, -0.0149309067055583, 0.005916796158999205, 0.040933940559625626, -0.06429242342710495, 0.05507251247763634, 0.05873578041791916, 0.002322985790669918, 0.06132888048887253, -0.051121119409799576, -0.03873186185956001, 0.0014843441313132644, 0.03640630468726158, -0.02549882046878338, -0.036365143954753876, 0.012327516451478004, 0.001906237448565662, 0.03132300451397896, 0.008653957396745682, -0.017379947006702423, -0.045070551335811615, -0.02901802770793438, -0.02584868296980858, 0.061164237558841705, 0.0052736662328243256, 0.029964715242385864, 0.06301645189523697, -0.05651312321424484, -0.07972754538059235, -0.05770677328109741, -0.022432375699281693, -0.013675517402589321, 0.0017467411234974861, 0.03690022975206375, 0.008412140421569347, -0.042271651327610016, -0.028133079409599304, 0.03578890115022659, -0.007167041301727295, -0.0012753268238157034, -0.020713932812213898, 0.0009994240244850516, 0.019211580976843834, -0.009935072623193264, 0.0028117645997554064, -0.0006029343931004405, -0.016700800508260727, -0.034759894013404846, 0.014673654921352863, 0.04200410842895508, -0.009117010980844498, -0.0024580429308116436, 0.0028709324542433023, -0.004193207714706659, -0.017184434458613396, 0.04391806572675705, 0.01574382372200489, 0.02290571853518486, -0.02578694187104702, -0.057583291083574295, -0.005003551486879587, 0.003038146300241351, 0.037352994084358215, -0.03226969391107559, -0.025066636502742767, 0.016278907656669617, -0.01861475594341755, -0.00863852258771658, 0.03809387981891632, 0.044576629996299744, -0.02009652741253376, -0.0011492733610793948, 0.0046871318481862545, -0.02473735436797142, 0.04976283013820648, 0.05058603733778, -0.012337806634604931, 0.04663464426994324, 0.030664440244436264, 0.05054487660527229, 0.04132496193051338, -0.0281125009059906, 0.025416499003767967, 0.01884113810956478, -0.048651501536369324, -0.04124264419078827, -0.01911897026002407, -0.007084720302373171, 0.08182672411203384, -0.04231281206011772, 0.040172476321458817, 0.0017287335358560085, -0.03056154027581215, 0.009616080671548843, -0.03148764744400978, -0.06309877336025238, 0.009348537772893906, 0.008571636863052845, -0.061863966286182404, -0.06034103408455849, -0.010557622648775578, -0.003776459489017725, 0.04881614074110985, 0.04239513352513313, 0.017451977357268333, -0.03949332982301712, -0.04153076559305191, 0.031178943812847137, 0.05634848028421402, -0.018223732709884644, 0.00017557450337335467, 0.003236230229958892, 0.01068110391497612, 0.024469811469316483, 0.021753231063485146, -0.03743531182408333, -0.03996667265892029, -0.03562425822019577, 0.032640136778354645, -0.000779473630245775, 0.060176391154527664, -0.015980495139956474, 0.002734588924795389, 0.004579085856676102, 0.016824280843138695 ]
21,094
tfields.mesh_3d
_cut_template
Args: template (tfields.Mesh3D) Examples: >>> import tfields >>> import numpy as np Build mesh >>> mmap = tfields.TensorFields([[0, 1, 2], [0, 3, 4]], ... [[42, 21], [-42, -21]]) >>> m = tfields.Mesh3D([[0]*3, [1]*3, [2]*3, [3]*3, [4]*3], ... [0.0, 0.1, 0.2, 0.3, 0.4], ... [0.0, -0.1, -0.2, -0.3, -0.4], ... maps=[mmap]) Build template >>> tmap = tfields.TensorFields([[0, 3, 4], [0, 1, 2]], ... [1, 0]) >>> t = tfields.Mesh3D([[0]*3, [-1]*3, [-2]*3, [-3]*3, [-4]*3], ... [1, 0, 3, 2, 4], ... maps=[tmap]) Use template as instruction to make a fast cut >>> res = m._cut_template(t) >>> assert np.array_equal(res.fields, ... [[0.1, 0.0, 0.3, 0.2, 0.4], ... [-0.1, 0.0, -0.3, -0.2, -0.4]]) >>> assert np.array_equal(res.maps[3].fields[0], ... [[-42, -21], [42, 21]])
def _cut_template(self, template): """ Args: template (tfields.Mesh3D) Examples: >>> import tfields >>> import numpy as np Build mesh >>> mmap = tfields.TensorFields([[0, 1, 2], [0, 3, 4]], ... [[42, 21], [-42, -21]]) >>> m = tfields.Mesh3D([[0]*3, [1]*3, [2]*3, [3]*3, [4]*3], ... [0.0, 0.1, 0.2, 0.3, 0.4], ... [0.0, -0.1, -0.2, -0.3, -0.4], ... maps=[mmap]) Build template >>> tmap = tfields.TensorFields([[0, 3, 4], [0, 1, 2]], ... [1, 0]) >>> t = tfields.Mesh3D([[0]*3, [-1]*3, [-2]*3, [-3]*3, [-4]*3], ... [1, 0, 3, 2, 4], ... maps=[tmap]) Use template as instruction to make a fast cut >>> res = m._cut_template(t) >>> assert np.array_equal(res.fields, ... [[0.1, 0.0, 0.3, 0.2, 0.4], ... [-0.1, 0.0, -0.3, -0.2, -0.4]]) >>> assert np.array_equal(res.maps[3].fields[0], ... [[-42, -21], [42, 21]]) """ # Possible Extension (small todo): check: len(field(s)) == len(self/maps) # Redirect fields fields = [] if template.fields: template_field = np.array(template.fields[0]) if len(self) > 0: """ if new vertices have been created in the template, it is in principle unclear what fields we have to refer to. Thus in creating the template, we gave np.nan. To make it fast, we replace nan with 0 as a dummy and correct the field entries afterwards with np.nan. """ nan_mask = np.isnan(template_field) template_field[nan_mask] = 0 # dummy reference to index 0. template_field = template_field.astype(int) for field in self.fields: projected_field = field[template_field] projected_field[nan_mask] = np.nan # correction for nan fields.append(projected_field) # Redirect maps and their fields maps = [] for mp, template_mp in zip(self.maps.values(), template.maps.values()): mp_fields = [] for field in mp.fields: if len(template_mp) == 0 and len(template_mp.fields) == 0: mp_fields.append(field[0:0]) # np.empty else: mp_fields.append(field[template_mp.fields[0].astype(int)]) new_mp = tfields.TensorFields(tfields.Tensors(template_mp), *mp_fields) maps.append(new_mp) inst = tfields.Mesh3D(tfields.Tensors(template), *fields, maps=maps) return inst
(self, template)
[ 0.05277324095368385, -0.006892099976539612, -0.039754290133714676, -0.004530962090939283, -0.06842697411775589, -0.010994425043463707, -0.04281529411673546, -0.0014227366773411632, -0.027239050716161728, 0.0022884870413690805, 0.026638474315404892, 0.01221495121717453, -0.080361008644104, -0.048278603702783585, -0.04568256065249443, 0.012311818078160286, -0.0234224833548069, 0.04831735044717789, 0.015343761071562767, -0.056299205869436264, -0.006422293838113546, -0.07408402115106583, 0.013503285124897957, 0.048782311379909515, 0.08625053614377975, -0.04169163480401039, -0.003215990262106061, -0.024836745113134384, 0.04734867811203003, -0.013958560302853584, -0.06408732384443283, 0.01838538981974125, 0.0022509510163217783, 0.024546142667531967, -0.013910126872360706, -0.08222085982561111, 0.023984313011169434, -0.005129117053002119, -0.05707414075732231, 0.05676416680216789, 0.04835609719157219, -0.04390020668506622, -0.04037424176931381, -0.022027596831321716, 0.03394225984811783, -0.0037269648164510727, 0.039579927921295166, -0.049092285335063934, -0.0217369943857193, -0.014355716295540333, -0.037371356040239334, -0.032043661922216415, 0.008073879405856133, 0.012360252439975739, -0.049286019057035446, 0.004480107221752405, 0.01312550250440836, 0.013871380127966404, -0.034697823226451874, -0.04145915433764458, -0.04033549502491951, 0.04312526807188988, -0.007061617448925972, 0.0006974436691962183, -0.025553561747074127, -0.02274441346526146, -0.0029617140535265207, 0.03223739564418793, 0.020865190774202347, -0.005284104496240616, -0.06823324412107468, 0.025534188374876976, 0.08229835331439972, -0.015653736889362335, 0.057655345648527145, -0.016302745789289474, 0.035375893115997314, -0.009342839010059834, 0.03636394068598747, -0.07234040647745132, 0.007555639836937189, -0.019286256283521652, -0.047619905322790146, 0.03636394068598747, 0.028033360838890076, 0.011352833360433578, 0.016816142946481705, 0.011275339871644974, 0.0021783006377518177, -0.05459434166550636, -0.011294713243842125, -0.031055618077516556, -0.03093937784433365, -0.006514317821711302, 0.013416104018688202, 0.031733687967061996, 0.028575817123055458, -0.07385154068470001, -0.022221330553293228, 0.03396163135766983, 0.06966687738895416, -0.009885295294225216, -0.04033549502491951, -0.004349336493760347, 0.03886311128735542, -0.01892784610390663, -0.01690332219004631, 0.014326656237244606, 0.00055395916569978, 0.016157444566488266, 0.0033080142457038164, 0.035375893115997314, -0.029990078881382942, 0.04800737276673317, -0.023868072777986526, -0.025650428608059883, 0.0005342830554582179, 0.035879604518413544, -0.004848202224820852, -0.019664037972688675, 0.020652081817388535, -0.07141048461198807, -0.05598922818899155, -0.008751949295401573, -0.015014412812888622, 0.03934744745492935, 0.037758827209472656, 0.014510703273117542, -0.02642536722123623, -0.05037093162536621, -0.03783632069826126, 0.0032692672684788704, -0.02813022956252098, -0.01875348575413227, -0.01078131701797247, -0.025011105462908745, -0.015091906301677227, -0.05068090930581093, -0.01788168214261532, 0.04738742485642433, -0.009425176307559013, 0.025708548724651337, 0.0468837134540081, 0.03696451708674431, -0.03983178362250328, 0.006596655119210482, 0.04049048200249672, 0.02574729546904564, -0.0042839511297643185, -0.0017339225159958005, -0.03936682268977165, 0.014762558043003082, -0.007080990821123123, 0.030532535165548325, -0.044597648084163666, 0.008984430693089962, 0.02491423860192299, -0.05424562096595764, 0.03928932920098305, 0.011856542900204659, 0.012457119300961494, 0.001594675937667489, 0.011507821269333363, 0.05560176074504852, -0.015828097239136696, -0.03467845171689987, 0.06776827573776245, -0.06486226618289948, -0.052114542573690414, 0.022008223459124565, 0.004107168409973383, 0.023306243121623993, -0.029040779918432236, 0.04052922874689102, -0.009323465637862682, 0.054323114454746246, -0.017765440046787262, -0.025204839184880257, -0.03475594520568848, 0.002023313194513321, -0.0317918099462986, 0.008044819347560406, 0.018336957320570946, 0.05474932864308357, -0.03760384023189545, 0.0029689790681004524, 0.008408071473240852, -0.0009232652955688536, 0.010200113989412785, 0.013454850763082504, 0.012311818078160286, -0.03667391464114189, 0.0004210695333313197, -0.022511932998895645, 0.030377548187971115, 0.00032934840419329703, 0.018181970342993736, -0.03632519394159317, 0.001869536587037146, 0.07931484282016754, -0.0970221683382988, -0.06555970758199692, -0.0020063614938408136, -0.024797998368740082, -0.020516468212008476, 0.037545718252658844, 0.03810754790902138, 0.0009184219525195658, -0.04405519366264343, 0.025049852207303047, 0.01221495121717453, -0.02444927580654621, 0.024216795340180397, 0.03047441504895687, 0.04029674828052521, -0.06319614499807358, -0.047271184623241425, 0.004003036301583052, -0.015237207524478436, 0.011265653185546398, -0.016777396202087402, 0.040219251066446304, -0.05416812747716904, -0.021465767174959183, -0.034523461014032364, 0.02206634357571602, -0.010171053931117058, 0.05459434166550636, -0.013493598438799381, -0.044597648084163666, 0.06459103524684906, 0.0007846241351217031, -0.019344376400113106, -0.013929500244557858, 0.032857347279787064, -0.044248927384614944, -0.003487218404188752, -0.07152672857046127, 0.026367247104644775, -0.0008354794117622077, -0.006703208666294813, -0.021543260663747787, 0.019189387559890747, -0.01287364773452282, 0.04231158271431923, 0.011013798415660858, -0.06338988244533539, 0.0008245818899013102, 0.041071683168411255, 0.02125265821814537, -0.047774892300367355, 0.015808723866939545, -0.03816566988825798, 0.05827529355883598, -0.013619525358080864, -0.04103293642401695, 0.09632471948862076, -0.03545338660478592, -0.003465423360466957, 0.006872726138681173, -0.057810332626104355, -0.08919529616832733, 0.04285404086112976, -0.011982469819486141, 0.033361054956912994, -0.018143221735954285, -0.02712281048297882, 0.04548882693052292, 0.013997307047247887, 0.06408732384443283, 0.025844164192676544, 0.055291786789894104, -0.004327541217207909, -0.012398999184370041, 0.00008816426998237148, -0.04297028109431267, 0.04103293642401695, 0.04219534248113632, 0.047271184623241425, -0.0008421390666626394, 0.00785108469426632, -0.0033080142457038164, -0.039715543389320374, -0.052463263273239136, -0.00426215585321188, -0.027316544204950333, -0.015275954268872738, -0.0019918314646929502, 0.042776547372341156, -0.011779049411416054, -0.04114917665719986, 0.010345414280891418, 0.031714312732219696, -0.03818504139780998, -0.04533383995294571, -0.07431650161743164, -0.06470727920532227, -0.017029250040650368, 0.010016066022217274, -0.04696120694279671, 0.006528847850859165, -0.038088176399469376, 0.028401456773281097, 0.02208571694791317, -0.00017299872706644237, 0.015430941246449947, -0.04486887902021408, -0.0032910623122006655, 0.07005434483289719, -0.006809762679040432, 0.0070955208502709866, -0.008984430693089962, -0.02291877381503582, -0.01808510161936283, 0.07102301716804504, 0.07423900812864304, 0.02274441346526146, 0.007173014804720879, 0.019625291228294373, 0.04889855161309242, 0.000350235408404842, -0.004899057559669018, -0.024720504879951477, 0.07791996002197266, 0.006955063436180353, -0.05738411843776703, 0.013406417332589626, -0.06951189041137695, -0.007478146348148584, 0.026367247104644775, -0.01771700754761696, 0.08594056218862534, 0.01570216938853264, 0.005337381735444069, -0.015024099498987198, -0.04421018064022064, 0.03159807249903679, -0.07389028370380402, -0.039405569434165955, -0.04785238578915596, 0.0435514822602272, 0.0200515054166317, 0.011982469819486141, 0.03611208498477936, 0.04618627205491066, 0.006238246336579323, 0.010141993872821331, -0.011914663016796112, 0.032527998089790344, 0.047619905322790146, 0.0175620187073946, -0.039231207221746445, 0.0820658728480339, 0.029370129108428955, 0.021155791357159615, -0.0501771979033947, 0.0005212664837017655, -0.009948259219527245, -0.026212258264422417, 0.0351821593940258, 0.016448047012090683, -0.017106743529438972, -0.016118697822093964, 0.01909252069890499, 0.057151634246110916, -0.026367247104644775, 0.0032886406406760216, 0.02628975175321102, -0.04080045595765114, 0.010626329109072685, -0.0005594079848378897, -0.06389359384775162, -0.010345414280891418, 0.0008657504222355783, -0.016428673639893532, -0.05598922818899155, -0.014200728386640549, 0.027490904554724693, -0.09632471948862076, -0.007080990821123123, -0.011478760279715061, 0.0032450505532324314, -0.01723267138004303, -0.019170014187693596, -0.0200515054166317, 0.028905166313052177, -0.021504513919353485, 0.013454850763082504, 0.05657043308019638, -0.035220906138420105, 0.04486887902021408, -0.02778150700032711, 0.022201957181096077, -0.07408402115106583, 0.017019564285874367, 0.041575394570827484, -0.034697823226451874, -0.012834900990128517, 0.045256346464157104, 0.02059396170079708, -0.020032132044434547, -0.06544346362352371, -0.0029229670763015747, 0.09771960973739624, -0.004930539522320032, -0.02964135631918907, 0.038591884076595306, 0.0027486062608659267, 0.02661910094320774, 0.0048360941000282764, 0.010655390098690987, 0.07733875513076782, -0.03401975333690643, -0.031733687967061996, 0.007473303005099297, 0.012583046220242977, -0.015527809038758278, 0.031714312732219696, -0.0519208088517189, 0.025476068258285522, 0.027394037693738937, 0.05207579582929611, 0.05168832838535309, -0.02576666884124279, 0.0030779545195400715, -0.028246469795703888, -0.0434739887714386, -0.0028406300116330385, -0.014617257751524448, 0.05707414075732231, -0.04703870043158531, -0.05401314049959183, -0.04045173525810242, 0.01356140524148941, 0.0060735722072422504, 0.06807825714349747, 0.025224212557077408, 0.05505930632352829, 0.03256674483418465, 0.022531306371092796, 0.06296366453170776, 0.0008033921476453543, 0.02778150700032711, -0.09337995946407318, -0.02357747219502926, 0.04696120694279671, -0.03998677060008049, -0.05792657285928726, -0.058314040303230286, 0.00879069697111845, 0.05788782611489296, 0.05068090930581093, -0.003535652067512274, 0.023887446150183678, 0.02712281048297882, -0.04866607114672661, -0.02545669488608837, -0.025863537564873695, -0.005715163424611092, -0.012273071333765984, -0.02491423860192299, 0.05141709744930267, 0.046612486243247986, 0.010345414280891418, 0.0028212566394358873, -0.06393233686685562, -0.025534188374876976, -0.009207225404679775, -0.00361798913218081, -0.009260502643883228, 0.017310164868831635, -0.026386620476841927, -0.03543401509523392, 0.0335160456597805, 0.019005341455340385, 0.031229978427290916, 0.016109012067317963, 0.010326040908694267, -0.010442282073199749, -0.03667391464114189, 0.012931768782436848, -0.06660587340593338, -0.006044512148946524, 0.016835516318678856, 0.00276313629001379, 0.019305629655718803, -0.014026367105543613, 0.015101592987775803, 0.03983178362250328, -0.023190002888441086, -0.07803619652986526, 0.004879684187471867, 0.023306243121623993, -0.011817796155810356, -0.04386145994067192, -0.0044413600116968155, -0.020283987745642662, 0.033380430191755295, 0.035918351262807846, 0.0013936765026301146, -0.00535675510764122, -0.01623493991792202, -0.013987620361149311, -0.02780088037252426, 0.01675802282989025, -0.01925719529390335, 0.080361008644104, 0.022860653698444366, 0.032392386347055435, -0.002471323823556304, -0.025321081280708313, -0.0452175997197628, -0.0018889099592342973, 0.04095544293522835, 0.005390658508986235, 0.00664508854970336, -0.05424562096595764, -0.0024119927547872066, -0.08501063287258148, 0.008577588945627213, 0.034697823226451874, 0.001999096479266882, -0.05773283913731575, -0.03766195848584175, 0.01792042888700962, 0.014743184670805931, 0.044403914362192154, -0.049286019057035446, 0.041614141315221786, 0.018666304647922516, -0.007163328118622303, -0.030687522143125534, 0.026735341176390648, 0.038901858031749725, 0.001701229833997786, 0.022725040093064308, -0.02074895054101944, -0.05339318886399269, -0.03661579266190529, -0.04169163480401039, -0.04328025504946709, -0.00894084107130766, 0.02780088037252426, -0.044946372509002686, 0.06958938390016556, 0.009812645614147186, -0.026870954781770706, 0.013445164076983929, -0.05707414075732231, -0.02156263403594494, 0.013697018846869469, -0.0284402035176754, 0.015924964100122452, -0.011740301735699177, 0.05440060794353485, 0.058662764728069305, -0.025340454652905464, -0.03043566830456257, 0.028575817123055458, 0.027316544204950333, 0.023190002888441086, -0.027316544204950333, 0.051804568618535995, 0.05339318886399269, -0.03155932575464249, 0.004034517798572779, 0.013667958788573742, 0.009749681688845158, -0.057306624948978424, 0.025224212557077408, 0.029854465276002884, 0.00836932472884655, 0.004928117617964745, 0.0434739887714386, 0.02727779746055603, -0.007986699230968952, 0.01954779587686062, 0.006335113663226366, 0.006887256633490324, -0.06842697411775589, 0.013890753500163555, 0.011498134583234787, 0.0535094290971756, -0.0010074186138808727, 0.046263765543699265, 0.018840666860342026, 0.024468649178743362, 0.02962198294699192, 0.032373011112213135, -0.006606341805309057, 0.034213487058877945, 0.049247272312641144, -0.029525116086006165, 0.02007087878882885, -0.016428673639893532, 0.06056135892868042, -0.005807187408208847, 0.003298327559605241, -0.01556655578315258, -0.03111373819410801, -0.033206067979335785, 0.010413222014904022, -0.014510703273117542, 0.09771960973739624, 0.003765711560845375, -0.07722251862287521, -0.02140764705836773, -0.006189812906086445, 0.04471388831734657, -0.0242555420845747, 0.058972738683223724, -0.0038843739312142134, 0.011730615049600601, -0.02778150700032711, 0.03601521626114845, -0.0026711125392466784, -0.018879413604736328, -0.014161981642246246, 0.10849124193191528, -0.04366772621870041, -0.029195766896009445, -0.0030367861036211252, -0.028246469795703888, 0.019770590588450432, 0.02545669488608837, 0.015237207524478436, 0.05285073444247246, -0.05939895287156105, 0.014607571065425873, 0.04754241183400154, 0.015101592987775803, -0.02981571853160858, -0.0073473756201565266, 0.037410102784633636, -0.03894060477614403, 0.06110381707549095, -0.019857771694660187, -0.023151256144046783, 0.001827157218940556, 0.03533714637160301, -0.02477862499654293, -0.0519208088517189, 0.024313662201166153, 0.01625431329011917, -0.0284402035176754, -0.09090016037225723, 0.06536597013473511, -0.04452015459537506, -0.0034775317180901766, 0.03613145649433136, -0.057112887501716614, 0.06478477269411087, -0.03014506585896015, 0.005153333768248558, -0.011130038648843765, 0.01027760747820139, 0.03159807249903679, -0.027549026533961296, 0.024352408945560455, -0.013202996924519539, -0.0209233108907938, 0.019015027210116386, 0.018104474991559982, -0.05676416680216789, -0.01655460149049759, -0.051262110471725464, 0.052966974675655365, -0.01891816034913063, -0.019974011927843094, 0.05242451652884483, -0.03911496698856354, -0.08268582075834274, -0.028033360838890076, -0.032527998089790344, 0.04366772621870041, -0.006383547093719244, 0.05874025821685791, 0.012989888899028301, -0.043086521327495575, -0.015644049271941185, 0.11089354753494263, 0.009928885847330093, -0.027994614094495773, 0.020613335072994232, 0.03312857449054718, -0.007986699230968952, -0.011730615049600601, 0.03401975333690643, -0.0019470303086563945, 0.03700326383113861, 0.032702360302209854, 0.022182583808898926, 0.06094883009791374, -0.01893753372132778, -0.031520579010248184, 0.006461041048169136, 0.024856118485331535, 0.029408875852823257, 0.041614141315221786, 0.02977697178721428, 0.010422908701002598, -0.019140955060720444, -0.07850116491317749, 0.003467845031991601, -0.029893212020397186, 0.006674148607999086, 0.02105892449617386, -0.024836745113134384, 0.029738223180174828, -0.03886311128735542, 0.04335774853825569, 0.044442661106586456, 0.08679299056529999, -0.014161981642246246, -0.02076832391321659, 0.020516468212008476, -0.05467183515429497, 0.07303785532712936, 0.055136799812316895, -0.012544299475848675, 0.020652081817388535, 0.0046932147815823555, -0.003426676383242011, 0.012689600698649883, -0.006054198835045099, -0.00430574594065547, -0.051300857216119766, -0.03376789763569832, -0.030823135748505592, 0.01876317337155342, 0.0032644239254295826, 0.05114587023854256, -0.04370647296309471, -0.03227614238858223, 0.031520579010248184, -0.020981431007385254, -0.009105514734983444, -0.020283987745642662, -0.04490762576460838, 0.038533762097358704, -0.016932383179664612, -0.04269905388355255, -0.019121581688523293, -0.004049048293381929, -0.0016745913308113813, 0.023170629516243935, 0.048588577657938004, 0.03551150858402252, -0.027820253744721413, -0.026328498497605324, 0.044403914362192154, 0.06470727920532227, -0.01939280889928341, -0.08392572402954102, 0.017009876668453217, 0.001936132786795497, 0.040258001536130905, -0.03835940361022949, -0.03866937756538391, -0.005720006767660379, 0.0003590139967855066, -0.019509049132466316, 0.025534188374876976, 0.06346737593412399, 0.014578510075807571, 0.022201957181096077, -0.0034169896971434355, 0.013580778613686562 ]
21,095
tfields.core
_kwargs
null
def _kwargs(self) -> dict: content = super()._kwargs() content.pop("fields") # instantiated via _args return content
(self) -> dict
[ -0.0034143582452088594, -0.009353804402053356, 0.052100252360105515, -0.009099099785089493, -0.062464091926813126, 0.01983182318508625, -0.0038315467536449432, 0.03026592545211315, 0.06573133915662766, -0.020710114389657974, 0.01231364719569683, 0.045354973524808884, -0.04971129819750786, 0.00804954208433628, 0.020095309242606163, -0.018971096724271774, -0.01795227825641632, 0.01120699942111969, 0.013929703272879124, -0.06622318178415298, 0.03500869870185852, -0.025979863479733467, 0.020077744498848915, 0.03124961256980896, 0.04071759432554245, 0.023608475923538208, -0.017073987051844597, -0.031899549067020416, 0.04971129819750786, 0.026700062677264214, -0.030055135488510132, 0.00810663029551506, 0.027472957968711853, 0.0696309506893158, -0.00004418904063641094, -0.05336499214172363, -0.05958329513669014, 0.049535639584064484, -0.06084803491830826, 0.013973617926239967, -0.050905775278806686, -0.04581168666481972, -0.04837629571557045, -0.0215708389878273, 0.03207520768046379, -0.014895823784172535, 0.055367495864629745, 0.02478538639843464, -0.020341230556368828, -0.03068750537931919, 0.04296601936221123, 0.019937217235565186, 0.016406485810875893, 0.019181886687874794, -0.055367495864629745, -0.01663484051823616, -0.014289802871644497, 0.05758079141378403, 0.008673128671944141, 0.07419806718826294, -0.055156707763671875, 0.03179415315389633, -0.02206268347799778, -0.06843647360801697, -0.029545726254582405, -0.0375557467341423, -0.04461720958352089, 0.008163719438016415, -0.015396449714899063, 0.027964802458882332, -0.017355039715766907, -0.06443146616220474, -0.004430980887264013, 0.03931232914328575, 0.016274740919470787, -0.039979830384254456, -0.0344465933740139, 0.014526941813528538, 0.009406502358615398, -0.02525966428220272, -0.04163101688027382, -0.0067057558335363865, -0.08536993712186813, 0.03314672037959099, 0.009749035350978374, -0.018637346103787422, -0.022800447419285774, 0.021605970337986946, 0.007786054164171219, -0.027525655925273895, -0.025786638259887695, 0.05649171024560928, -0.040752727538347244, 0.02937006764113903, -0.014008749276399612, -0.007456694729626179, -0.035939689725637436, 0.03738008812069893, -0.0024811734911054373, 0.0313374400138855, 0.017390171065926552, -0.03843403607606888, -0.013385162688791752, -0.01527348905801773, 0.02511913701891899, -0.05751052871346474, -0.0029159279074519873, -0.07602491229772568, 0.02325715869665146, -0.00598555663600564, -0.016248393803834915, 0.02520696632564068, -0.037204429507255554, 0.06717173755168915, -0.007289819419384003, -0.03846916928887367, -0.04746287316083908, -0.01935754530131817, 0.03131987527012825, -0.014553289860486984, -0.031846851110458374, 0.027455393224954605, -0.025242097675800323, 0.039979830384254456, 0.025769073516130447, 0.04377404972910881, -0.05143275111913681, 0.007417171727865934, 0.04468747228384018, -0.060180533677339554, -0.00030054038506932557, -0.021764064207673073, -0.016977375373244286, -0.07476017624139786, 0.012375127524137497, -0.03279540315270424, 0.09499601274728775, -0.00030054038506932557, 0.0354829765856266, 0.06000487506389618, -0.003688824363052845, 0.0549810491502285, 0.04363352060317993, 0.018742740154266357, -0.04321194067597389, -0.04001495987176895, 0.06548541784286499, 0.03583429381251335, -0.05768618732690811, -0.010565847158432007, 0.024047620594501495, 0.036150477826595306, 0.013745262287557125, -0.013007497414946556, -0.032672442495822906, -0.0024767820723354816, -0.052521832287311554, -0.028070196509361267, -0.003359464928507805, 0.008115413598716259, 0.02241399884223938, -0.01886570081114769, 0.03402501344680786, -0.018830569460988045, 0.020341230556368828, 0.027964802458882332, 0.11235105246305466, -0.11860448867082596, 0.016511879861354828, 0.024767819792032242, -0.009573377668857574, 0.034710079431533813, 0.005594716873019934, -0.0031420879531651735, -0.04205259680747986, 0.10771366953849792, 0.00037546962266787887, -0.01997234858572483, -0.006907762493938208, 0.035939689725637436, 0.029211975634098053, -0.044652339071035385, -0.020429059863090515, 0.026225784793496132, 0.12752792239189148, -0.09555811434984207, -0.02178162895143032, 0.01955076865851879, -0.001993721816688776, 0.0016467965906485915, 0.012787924148142338, -0.013639867305755615, -0.002680984791368246, -0.04015548899769783, -0.03702877089381218, -0.025171834975481033, -0.022045116871595383, -0.05041393265128136, 0.0019794495310634375, 0.07679781317710876, -0.037626009434461594, -0.06857699900865555, -0.035939689725637436, -0.008277897723019123, -0.003743717446923256, 0.027402695268392563, 0.03442902863025665, -0.05364604666829109, -0.03202250972390175, -0.0064378767274320126, 0.033796656876802444, -0.030178096145391464, 0.027051378041505814, -0.06334238499403, 0.03885561600327492, -0.08185677230358124, -0.03797732666134834, 0.0008212025859393179, -0.026190653443336487, 0.02234373614192009, 0.038328640162944794, 0.017636094242334366, 0.00141404930036515, -0.044441550970077515, -0.005524453707039356, -0.014087796211242676, 0.02678789012134075, -0.04219312593340874, -0.044019971042871475, -0.03339264169335365, -0.025558283552527428, -0.011839369311928749, -0.027666183188557625, 0.05399736016988754, 0.01823333092033863, 0.027666183188557625, 0.011084038764238358, -0.07363595813512802, 0.0006356634548865259, 0.019322413951158524, 0.058915793895721436, 0.045987341552972794, 0.03249678760766983, 0.011338743381202221, -0.022431565448641777, 0.002711724955588579, 0.04426589235663414, 0.0556836798787117, 0.03625587373971939, 0.005735243670642376, 0.04971129819750786, -0.008400858379900455, -0.0005039197276346385, 0.09274758398532867, -0.008414032869040966, 0.002441650489345193, 0.052521832287311554, 0.030020004138350487, 0.015642371028661728, -0.0689634457230568, 0.00963485799729824, -0.02339768595993519, -0.02861473709344864, 0.028913356363773346, 0.06320185959339142, 0.005708894692361355, 0.0111367367208004, -0.02652440406382084, -0.09211521595716476, 0.023362554609775543, 0.08635362237691879, -0.017908364534378052, 0.014316151849925518, -0.006692581344395876, -0.02128978632390499, 0.011435355059802532, 0.01701250672340393, -0.04718181863427162, -0.056561972945928574, 0.022220775485038757, 0.06355317682027817, -0.01997234858572483, 0.06070750951766968, 0.0022901450283825397, 0.03927719593048096, -0.016028819605708122, 0.012252166867256165, 0.03941772133111954, 0.009283541701734066, -0.001401972840540111, 0.007403997238725424, 0.01538766734302044, -0.004079664126038551, 0.011321177706122398, 0.01347299199551344, -0.014289802871644497, -0.027508089318871498, -0.0027490523643791676, -0.012638614512979984, 0.01935754530131817, 0.018145503476262093, -0.0029949741438031197, 0.013068977743387222, 0.0382935106754303, 0.05684302747249603, -0.034622251987457275, 0.022519394755363464, 0.007720182184129953, 0.000452045671408996, -0.023503080010414124, -0.019252149388194084, 0.02915927767753601, -0.004450742155313492, -0.010513149201869965, -0.10595709085464478, -0.020516889169812202, 0.03646666184067726, 0.017065204679965973, 0.011540750041604042, 0.06014540418982506, -0.01538766734302044, -0.0828404575586319, -0.04823577031493187, 0.02150057628750801, 0.050765249878168106, 0.0009474569815210998, -0.030950993299484253, 0.01335881371051073, 0.029633555561304092, 0.02824585512280464, -0.02937006764113903, 0.02478538639843464, -0.02025340311229229, 0.0028280986007303, -0.04412536695599556, -0.011373874731361866, -0.010442886501550674, 0.00390620157122612, -0.012717661447823048, -0.06306132674217224, -0.06109395623207092, -0.02944033220410347, -0.011259697377681732, -0.01326220203191042, -0.018602214753627777, -0.011004992760717869, 0.03625587373971939, -0.007720182184129953, 0.04704129323363304, -0.013306116685271263, 0.00905518513172865, -0.0591617152094841, 0.07001739740371704, 0.011066473089158535, 0.04978156089782715, -0.054945915937423706, -0.04300115257501602, 0.010074003599584103, -0.04563602805137634, 0.00008398662612307817, 0.11256183683872223, -0.018549516797065735, 0.014421546831727028, 0.02394222654402256, 0.0688931867480278, 0.01420197356492281, -0.014395197853446007, 0.023011237382888794, 0.04697103053331375, -0.05477025732398033, 0.009371370077133179, -0.040822990238666534, -0.014851909130811691, 0.006538880057632923, 0.018127936869859695, -0.011479269713163376, -0.03465738147497177, 0.011575882323086262, -0.09387179464101791, 0.009028837084770203, -0.005744026508182287, -0.05255696550011635, 0.019252149388194084, -0.01809280551970005, -0.022027550265192986, 0.016301089897751808, 0.01632743887603283, 0.010188181884586811, 0.0410689115524292, -0.003958899062126875, -0.03709903359413147, -0.011531967669725418, -0.044441550970077515, 0.04149049147963524, 0.010759071446955204, -0.04078785702586174, -0.020938469097018242, -0.034780342131853104, -0.031671192497015, -0.02845664508640766, 0.008853178471326828, -0.04272009804844856, -0.02499617636203766, -0.018461687490344048, 0.04496852681040764, -0.02624334953725338, 0.0008574320818297565, 0.035939689725637436, 0.09422311186790466, -0.012375127524137497, 0.016669973731040955, -0.013209504075348377, -0.004523201379925013, -0.022027550265192986, 0.08930467814207077, -0.001746702240779996, 0.020235836505889893, 0.022572090849280357, 0.013314899057149887, 0.008392075076699257, 0.06323698908090591, 0.03409527614712715, -0.0035087745636701584, 0.010917163453996181, 0.054278414696455, 0.04412536695599556, -0.0939420610666275, -0.029176844283938408, 0.06443146616220474, 0.029914608225226402, -0.05143275111913681, 0.0012735227355733514, -0.04995721951127052, 0.06759331375360489, -0.006543271709233522, 0.04918432608246803, 0.014597204513847828, -0.03425337001681328, -0.008532602339982986, 0.06949042528867722, -0.022536959499120712, -0.04229851812124252, 0.019533203914761543, -0.006011905148625374, 0.0445469468832016, 0.010767853818833828, -0.006029471289366484, 0.040260881185531616, 0.030792899429798126, 0.012155554257333279, 0.06386935710906982, 0.043247073888778687, 0.035676199942827225, -0.06660962849855423, -0.03348047286272049, -0.058494213968515396, -0.01050436682999134, -0.06039132550358772, -0.004773514345288277, 0.002709529362618923, 0.055156707763671875, -0.045495498925447464, -0.02338011935353279, 0.010302359238266945, 0.045003656297922134, 0.016432834789156914, -0.032602179795503616, -0.009687555022537708, -0.0737764835357666, 0.016388919204473495, 0.01039897184818983, 0.007570873014628887, -0.05058959126472473, -0.05902118980884552, -0.028843093663454056, 0.0528731495141983, 0.012875753454864025, -0.011646145023405552, -0.02852690778672695, -0.03555323928594589, 0.02603255957365036, -0.0009721589158289135, 0.017091553658246994, -0.010109134949743748, -0.01538766734302044, -0.0075269583612680435, -0.004650553688406944, 0.0002835234918165952, -0.03140770271420479, 0.02323959395289421, -0.0008179089636541903, -0.031196914613246918, -0.009933477267622948, 0.015677504241466522, 0.02548801898956299, -0.009441633708775043, 0.017706356942653656, 0.035447847098112106, 0.024557029828429222, 0.00950311403721571, -0.04711155593395233, 0.004606639035046101, 0.01935754530131817, 0.022712618112564087, -0.007865100167691708, -0.047216951847076416, -0.009520679712295532, 0.061410143971443176, -0.00831742025911808, 0.009968608617782593, -0.04170127958059311, 0.008747783489525318, -0.002492152154445648, -0.0011692255502566695, -0.0055683683604002, -0.008045149967074394, -0.058915793895721436, 0.04679537191987038, 0.010618544183671474, -0.010750288143754005, 0.04166615009307861, 0.09626074880361557, 0.005871378816664219, -0.02346794866025448, -0.014184407889842987, 0.044863130897283554, 0.0035878208000212908, -0.005037001799792051, 0.051748935133218765, 0.037274692207574844, 0.03409527614712715, -0.07700859755277634, -0.016151780262589455, 0.04640892148017883, -0.020991167053580284, 0.0640450194478035, -0.022677486762404442, 0.023011237382888794, -0.0008920148247852921, -0.0003614718443714082, 0.028280986472964287, 0.028649868443608284, -0.016687538474798203, -0.008598473854362965, -0.022009985521435738, -0.005726460833102465, 0.024890780448913574, 0.06379909813404083, -0.005243400111794472, -0.00293349358253181, -0.051748935133218765, -0.045987341552972794, -0.0014107556780800223, 0.019814256578683853, -0.03653692826628685, -0.01667875610291958, -0.012673746794462204, -0.01145292166620493, 0.02302880398929119, -0.020692547783255577, 0.04099864885210991, -0.008466729894280434, 0.009301107376813889, -0.00833059474825859, -0.06583673506975174, 0.05304880812764168, -0.004843777511268854, 0.09457442909479141, -0.0981578603386879, -0.005941641982644796, -0.03147796913981438, -0.024662425741553307, -0.016907110810279846, 0.06502870470285416, 0.039628513157367706, 0.0001969294244190678, 0.022940974682569504, 0.02074524573981762, 0.015220792032778263, -0.04876274615526199, 0.026770325377583504, 0.03188198059797287, 0.013200721703469753, -0.02965112216770649, -0.050905775278806686, 0.0039259628392755985, 0.01905892603099346, -0.01528227236121893, 0.05852934718132019, -0.00823398306965828, -0.0037261517718434334, 0.03794219344854355, 0.0026941592805087566, -0.028562039136886597, -0.010495583526790142, -0.009617292322218418, -0.03839890658855438, -0.03495600074529648, -0.05276775360107422, -0.02666492946445942, -0.04226338863372803, 0.0035504933912307024, -0.013947268947958946, 0.031284742057323456, -0.02749052457511425, -0.005278531927615404, 0.00727225374430418, 0.05441894009709358, -0.02192215621471405, -0.01301627978682518, -0.031671192497015, -0.03674771636724472, -0.014272237196564674, -0.007320559583604336, -0.04321194067597389, -0.013595952652394772, 0.0113123944029212, -0.034147974103689194, 0.04412536695599556, -0.03885561600327492, -0.05065985396504402, -0.009705121628940105, -0.031161783263087273, 0.04588194936513901, -0.039628513157367706, 0.00039358437061309814, 0.010987427085638046, 0.025224532932043076, -0.0612696148455143, 0.032883234322071075, 0.010249662213027477, -0.011769106611609459, 0.03140770271420479, 0.012770358473062515, 0.009573377668857574, 0.022168077528476715, -0.01241904217749834, -0.021887024864554405, 0.0019563944078981876, -0.013007497414946556, 0.05965355783700943, -0.0243638064712286, -0.024679990485310555, -0.007790445815771818, -0.1051139310002327, 0.0165206640958786, -0.003853504080325365, -0.05368117615580559, -0.016626058146357536, -0.04240391403436661, 0.019673729315400124, 0.014825561083853245, -0.005392709746956825, -0.03853943198919296, -0.004562724381685257, 0.027543222531676292, -0.00640274491161108, 0.05115169659256935, 0.008796089328825474, -0.03860969468951225, -0.006200738251209259, 0.01740773767232895, 0.006591577548533678, -0.048130374401807785, 0.03147796913981438, 0.018672477453947067, -0.041876938194036484, -0.002496543573215604, 0.03028349205851555, 0.03028349205851555, -0.011382658034563065, -0.02032366581261158, -0.03938259184360504, -0.0036031908821314573, -0.01260348316282034, -0.014395197853446007, -0.006429093889892101, -0.009898344986140728, 0.041947200894355774, 0.0020453212782740593, 0.01364864967763424, -0.02965112216770649, -0.02708650939166546, 0.028562039136886597, -0.01747800037264824, 0.026471706107258797, -0.0522056482732296, 0.048551954329013824, -0.01566872000694275, -0.02873769775032997, 0.0271392073482275, -0.061937116086483, -0.008137370459735394, -0.021518142893910408, 0.019989915192127228, -0.019252149388194084, 0.00502821896225214, -0.06397475302219391, 0.06917423754930496, 0.02910657972097397, -0.002055202145129442, 0.010012523271143436, -0.0028346858453005552, 0.0018872289219871163, -0.009160580113530159, -0.014360066503286362, 0.03474521264433861, -0.00444635096937418, -0.004821820184588432, 0.010776637122035027, 0.039558250457048416, 0.044652339071035385, 0.011962329968810081, 0.006688189692795277, 0.03530731797218323, 0.013218287378549576, 0.003607582300901413, 0.016485530883073807, -0.008879527449607849, -0.00001905823955894448, -0.0018444121815264225, 0.07609517872333527, -0.016924677416682243, 0.03342777490615845, 0.02643657475709915, -0.009564594365656376, -0.08017045259475708, -0.05751052871346474, 0.055367495864629745, -0.022009985521435738, 0.001505172112956643, 0.011180651374161243, -0.012155554257333279, -0.005739634856581688, -0.0037634791806340218, -0.02798236720263958, -0.008229591883718967, -0.008703868836164474, 0.004514418542385101, 0.015449147671461105, -0.030652374029159546, 0.09829838573932648, 0.02910657972097397, 0.10398971289396286, 0.02561097964644432, 0.023994924500584602, 0.043809179216623306, 0.009485548362135887, 0.027385128661990166, -0.03384935483336449, 0.0021364442072808743, 0.05058959126472473, -0.016652407124638557, 0.012015027925372124, -0.020938469097018242, -0.04588194936513901, 0.015422798693180084, -0.014851909130811691, 0.028772829100489616, 0.0067101470194756985, -0.07110647857189178, -0.04725208133459091, -0.028280986472964287, 0.032391391694545746, 0.05234617367386818, 0.0281931571662426, 0.062674880027771, -0.010179398581385612 ]
21,098
tfields.mesh_3d
_save_obj
Save obj as wavefront/.obj file
def _save_obj(self, path, **kwargs): """ Save obj as wavefront/.obj file """ obj = kwargs.pop("object", None) group = kwargs.pop("group", None) cmap = kwargs.pop("cmap", "viridis") map_index = kwargs.pop("map_index", None) path = path.replace(".obj", "") directory, name = os.path.split(path) if map_index is not None: scalars = self.maps[3].fields[map_index] min_scalar = scalars[~np.isnan(scalars)].min() max_scalar = scalars[~np.isnan(scalars)].max() vmin = kwargs.pop("vmin", min_scalar) vmax = kwargs.pop("vmax", max_scalar) if vmin == vmax: if vmin == 0.0: vmax = 1.0 else: vmin = 0.0 import matplotlib.colors as colors import matplotlib.pyplot as plt norm = colors.Normalize(vmin, vmax) color_map = plt.get_cmap(cmap) else: # switch for not coloring the triangles and thus not producing the # materials norm = None if len(kwargs) != 0: raise ValueError("Unused arguments.") if norm is not None: mat_name = name + "_frame_{0}.mat".format(map_index) scalars[np.isnan(scalars)] = min_scalar - 1 sorted_scalars = scalars[scalars.argsort()] sorted_scalars[sorted_scalars == min_scalar - 1] = np.nan sorted_faces = self.faces[scalars.argsort()] scalar_set = np.unique(sorted_scalars) scalar_set[scalar_set == min_scalar - 1] = np.nan mat_path = os.path.join(directory, mat_name) with open(mat_path, "w") as mf: for s in scalar_set: if np.isnan(s): mf.write("newmtl nan") mf.write("Kd 0 0 0\n\n") else: mf.write("newmtl mtl_{0}\n".format(s)) mf.write( "Kd {c[0]} {c[1]} {c[2]}\n\n".format(c=color_map(norm(s))) ) else: sorted_faces = self.faces # writing of the obj file with open(path + ".obj", "w") as f: f.write("# File saved with tfields Mesh3D._save_obj method\n\n") if norm is not None: f.write("mtllib ./{0}\n\n".format(mat_name)) if obj is not None: f.write("o {0}\n".format(obj)) if group is not None: f.write("g {0}\n".format(group)) for vertex in self: f.write("v {v[0]} {v[1]} {v[2]}\n".format(v=vertex)) last_scalar = None for i, face in enumerate(sorted_faces + 1): if norm is not None: if not last_scalar == sorted_scalars[i]: last_scalar = sorted_scalars[i] f.write("usemtl mtl_{0}\n".format(last_scalar)) f.write("f {f[0]} {f[1]} {f[2]}\n".format(f=face))
(self, path, **kwargs)
[ 0.04501885548233986, -0.03298661485314369, -0.05905323103070259, 0.03848762437701225, -0.04272514954209328, -0.03535807505249977, -0.09260355681180954, 0.036174479871988297, -0.08552805334329605, -0.009422664530575275, -0.016425274312496185, -0.009398366324603558, -0.06554558873176575, 0.009072776883840561, -0.01327628642320633, 0.02243167534470558, -0.05073368549346924, 0.03547470271587372, 0.04824559763073921, -0.008494490757584572, -0.013869151473045349, -0.025308528915047646, 0.020429542288184166, 0.06076379492878914, 0.06554558873176575, 0.0018709261203184724, -0.006404884625226259, 0.03016807697713375, 0.02295650728046894, 0.03467773646116257, -0.048828743398189545, -0.02867133542895317, 0.037224140018224716, 0.017611002549529076, 0.013470668345689774, -0.08420625329017639, 0.03337537869811058, 0.004099029116332531, -0.0904264748096466, -0.009408085606992245, 0.05073368549346924, -0.007255306001752615, 0.006404884625226259, -0.0032170210033655167, 0.02299538254737854, 0.0007647714228369296, -0.0061862049624323845, 0.057537052780389786, -0.003063945332542062, -0.053493909537792206, 0.005413536913692951, -0.06309637427330017, 0.02449212409555912, 0.010146737098693848, -0.042142003774642944, 0.009442102164030075, -0.013703926466405392, 0.015074319206178188, -0.030362458899617195, -0.01479246560484171, -0.01749437488615513, -0.004159773234277964, 0.02902122400701046, -0.02612493187189102, -0.04085908457636833, -0.04183099418878555, -0.01578381285071373, 0.022101225331425667, -0.02620268426835537, 0.055943120270967484, -0.032733917236328125, -0.016804318875074387, 0.05504896491765976, -0.020040778443217278, -0.004133046139031649, -0.011371343396604061, 0.0005877016228623688, -0.004575264640152454, -0.037710096687078476, -0.027621673420071602, 0.030965043231844902, -0.028768526390194893, -0.031898077577352524, -0.019564541056752205, -0.012663982808589935, 0.003654380328953266, 0.027971560135483742, 0.001842983765527606, -0.005622497294098139, -0.055826492607593536, -0.011575444601476192, 0.010778478346765041, 0.013810836710035801, 0.006594407372176647, -0.023908978328108788, -0.057537052780389786, 0.01332488190382719, -0.015132633969187737, -0.0032558974344283342, -0.022101225331425667, 0.0019839105661958456, -0.04023706167936325, -0.05909210816025734, 0.005607918836176395, 0.03378358110785484, -0.021829091012477875, -0.008338985033333302, -0.021731900051236153, -0.006191064603626728, 0.021245945245027542, -0.020526733249425888, 0.013363758102059364, -0.010914545506238937, 0.015239544212818146, 0.0017348587280139327, -0.04470784589648247, -0.027621673420071602, 0.053843796253204346, 0.005501008592545986, -0.07285434752702713, -0.019982462748885155, 0.0269024595618248, -0.06169682741165161, 0.023753473535180092, 0.010720163583755493, 0.0034186923876404762, 0.10652130097150803, 0.0452909916639328, -0.0090241814032197, -0.0030833834316581488, -0.040509194135665894, 0.033394817262887955, -0.06511794775724411, -0.027913246303796768, 0.03425009548664093, -0.010214771144092083, -0.03038189746439457, -0.02783549390733242, -0.024550437927246094, 0.02435605600476265, 0.04163661226630211, -0.009403225965797901, -0.009276878088712692, -0.004307989496737719, -0.04964514821767807, 0.039634477347135544, 0.03152874857187271, -0.04404694586992264, -0.04435795918107033, -0.00994749553501606, 0.007060924079269171, 0.01599763333797455, -0.04742919281125069, -0.0016036509769037366, -0.0018417688552290201, -0.049878403544425964, -0.0029691841918975115, -0.07456491142511368, 0.03512481600046158, 0.0403536893427372, -0.03148987516760826, 0.013976061716675758, 0.0016546762781217694, 0.006516654510051012, -0.005432975012809038, 0.01734858751296997, 0.05730379372835159, -0.021556956693530083, -0.034094590693712234, 0.02801043726503849, -0.03817661106586456, -0.022101225331425667, -0.0773640125989914, 0.051511213183403015, 0.0018211157293990254, 0.06772266328334808, -0.023578528314828873, -0.037360209971666336, -0.001827190164476633, 0.04591301456093788, -0.019496507942676544, -0.008222355507314205, 0.0028355463873595, 0.04365818202495575, -0.002192871179431677, -0.01742633990943432, 0.01710561104118824, -0.022276170551776886, 0.0436970591545105, -0.005821738857775927, 0.06290199607610703, 0.041403353214263916, -0.004465925041586161, 0.009101933799684048, 0.04338604956865311, -0.0059140706434845924, 0.07627547532320023, -0.09182602912187576, 0.04198649898171425, 0.025949988514184952, -0.042802903801202774, -0.03881807252764702, 0.004327428061515093, -0.0655844658613205, -0.019136901944875717, -0.026358190923929214, 0.07425390183925629, -0.014491173438727856, -0.03380301967263222, 0.09944579750299454, 0.009471260011196136, -0.05730379372835159, -0.017640160396695137, 0.015939319506287575, 0.047195933759212494, -0.04972289875149727, -0.022548304870724678, 0.041092339903116226, -0.04097571223974228, 0.05668177455663681, -0.03749627619981766, 0.03992604836821556, -0.05341615527868271, 0.03166481852531433, -0.04171436280012131, -0.014870218001306057, 0.0268635842949152, 0.031139986589550972, 0.0017725202487781644, -0.04653503745794296, 0.018164992332458496, 0.006317412946373224, -0.03586346656084061, 0.04070357605814934, -0.006487497128546238, 0.05944199487566948, 0.019710328429937363, -0.0017664458137005568, -0.008518788032233715, -0.047468069940805435, 0.03539695218205452, -0.05574873834848404, 0.022042911499738693, -0.016668250784277916, 0.054232560098171234, 0.013130499981343746, 0.08832715451717377, -0.031198300421237946, -0.013004151172935963, -0.0018138265004381537, -0.006249379366636276, 0.04323054105043411, -0.03883751109242439, 0.03912908211350441, -0.011692073196172714, -0.08358423411846161, 0.042764026671648026, -0.03415290638804436, 0.012634825892746449, -0.036466050893068314, -0.05361053720116615, -0.055865369737148285, 0.0771307498216629, 0.04890649393200874, 0.0570705384016037, -0.011342185549438, 0.03065403178334236, 0.013703926466405392, -0.02326751872897148, 0.019982462748885155, 0.041403353214263916, 0.004084450658410788, -0.0804741233587265, 0.026222122833132744, -0.019350722432136536, -0.03666043281555176, -0.008392440155148506, -0.029118414968252182, 0.044746723026037216, 0.038623690605163574, -0.004835250787436962, -0.020526733249425888, -0.004660306964069605, -0.025347404181957245, -0.006662440951913595, -0.018164992332458496, -0.0090241814032197, -0.053843796253204346, 0.022626057267189026, -0.0620855912566185, -0.007624631281942129, 0.027543921023607254, -0.03059571608901024, -0.052133236080408096, -0.010768759064376354, -0.06659524887800217, -0.024045046418905258, -0.037263017147779465, 0.0242783036082983, -0.03984829783439636, 0.002094465307891369, -0.031587064266204834, 0.12502646446228027, 0.00008800338400760666, -0.023986730724573135, -0.0024139806628227234, -0.021090440452098846, -0.037962790578603745, 0.06811142712831497, -0.014636959880590439, -0.016017071902751923, 0.012207185849547386, 0.028068751096725464, 0.03263672813773155, 0.05174447223544121, 0.08311771601438522, 0.00490328436717391, -0.01985611394047737, 0.01765959896147251, 0.06850019097328186, -0.0013886159285902977, -0.011789264157414436, -0.0386820062994957, 0.007857889868319035, 0.04326941817998886, -0.10224489867687225, 0.03139268234372139, 0.00041215046076104045, 0.04229750856757164, -0.030459649860858917, -0.05170559510588646, 0.004628719761967659, 0.028943469747900963, 0.04968402162194252, 0.016085105016827583, -0.031101109459996223, 0.009296315722167492, -0.03180088475346565, 0.0027626531664282084, 0.008314687758684158, 0.05613750219345093, 0.030984479933977127, -0.020954372361302376, 0.0056856716983020306, -0.014005218632519245, 0.010282804258167744, 0.03881807252764702, -0.047468069940805435, -0.01860235072672367, 0.08700535446405411, -0.026319313794374466, 0.03016807697713375, 0.0051073855720460415, 0.05765368416905403, -0.04466896876692772, -0.01807752065360546, 0.007002609316259623, -0.03934290260076523, 0.0037297033704817295, 0.026980211958289146, -0.01393718458712101, 0.029293358325958252, -0.021790215745568275, 0.020293474197387695, 0.04991728067398071, -0.04319166764616966, 0.016017071902751923, -0.02783549390733242, 0.018126115202903748, -0.038409870117902756, -0.0004133653419557959, -0.014724431559443474, 0.027368975803256035, -0.012848646380007267, 0.03782672435045242, 0.007109519559890032, 0.0100689847022295, 0.0452909916639328, 0.026435943320393562, -0.03135380521416664, 0.0070414855144917965, 0.026572011411190033, 0.0009937776485458016, -0.0006791218766011298, 0.008635417558252811, -0.0034429901279509068, 0.048206720501184464, 0.04066470265388489, -0.006273677106946707, -0.011225556954741478, 0.04933413490653038, 0.013665050268173218, 0.05061705783009529, -0.07456491142511368, 0.038234926760196686, 0.04964514821767807, -0.03298661485314369, 0.04910087585449219, -0.015268701128661633, 0.014821622520685196, -0.05069480836391449, -0.06138581410050392, -0.06853906810283661, 0.05796469375491142, -0.023908978328108788, 0.004162203054875135, 0.040742453187704086, -0.01527842041105032, 0.03557189553976059, 0.017329148948192596, 0.001596361631527543, 0.03125661611557007, -0.0017008419381454587, -0.04124784842133522, 0.021304260939359665, 0.024589315056800842, -0.018087239935994148, -0.03244234621524811, 0.013820555992424488, 0.04338604956865311, 0.005083087831735611, 0.06601210683584213, 0.04237526282668114, 0.022081788629293442, 0.003158706473186612, -0.06612873822450638, -0.04218088090419769, 0.016882071271538734, -0.012178028002381325, 0.056215256452560425, 0.018728699535131454, -0.06332963705062866, 0.017445778474211693, -0.04338604956865311, -0.00503449235111475, 0.03718526288866997, -0.007337918039411306, -0.010438309982419014, 0.017397183924913406, 0.0536494143307209, 0.09260355681180954, -0.053882673382759094, -0.04801233857870102, -0.021751338616013527, -0.011449095793068409, 0.028924033045768738, -0.007770417723804712, 0.011818422004580498, 0.02338414639234543, 0.06496244668960571, 0.0487121120095253, 0.03364751487970352, -0.04637952893972397, -0.06294087320566177, 0.07491479814052582, -0.026805268600583076, 0.029215605929493904, -0.03636886179447174, 0.016629375517368317, -0.03180088475346565, 0.0006481422460637987, 0.021790215745568275, 0.029273919761180878, -0.008377861231565475, -0.03034302033483982, 0.00627853674814105, 0.014782746322453022, -0.006229941267520189, -0.02219841629266739, -0.05462132394313812, -0.0031878638546913862, 0.0019486788660287857, -0.017795667052268982, -0.015696341171860695, 0.022703809663653374, 0.053144022822380066, -0.051822222769260406, 0.012304376810789108, -0.02128482237458229, -0.04532986879348755, 0.004971317946910858, -0.051822222769260406, 0.046846047043800354, 0.02571672946214676, -0.007605193182826042, 0.07946333289146423, 0.00841673742979765, 0.03749627619981766, 0.054932333528995514, -0.029351672157645226, -0.008523647673428059, -0.01290696021169424, -0.028943469747900963, 0.04735143855214119, -0.020060215145349503, 0.06511794775724411, 0.0015246833208948374, -0.0006065323832444847, -0.02857414446771145, -0.0015003855805844069, 0.02933223359286785, -0.03180088475346565, -0.07693637162446976, -0.041053466498851776, -0.026630325242877007, -0.023714596405625343, -0.00044191518099978566, -0.018242744728922844, -0.0013631032779812813, 0.000510252604726702, -0.03899301588535309, -0.06095817685127258, 0.014287072233855724, 0.024569876492023468, 0.004723480902612209, 0.008747187443077564, -0.0719601958990097, 0.020643360912799835, -0.04657391086220741, -0.0038779196329414845, -0.012673702090978622, -0.0018903643358498812, 0.0031076811719685793, -0.07495367527008057, -0.011419938877224922, -0.006205643527209759, -0.0386042520403862, -0.014287072233855724, 0.08319547027349472, 0.01633780263364315, -0.002022786997258663, -0.009480979293584824, -0.006317412946373224, 0.017095891758799553, 0.043152790516614914, -0.0061667668633162975, 0.05516559258103371, -0.042142003774642944, 0.07110491394996643, -0.08148490637540817, 0.020682238042354584, -0.03599953651428223, 0.0217707771807909, -0.06340739130973816, 0.047468069940805435, -0.044435709714889526, 0.008863816037774086, 0.0011340971104800701, -0.012916679494082928, 0.008159182034432888, 0.03599953651428223, -0.0012950696982443333, 0.019836677238345146, 0.026222122833132744, -0.018893923610448837, 0.03320043534040451, 0.04396919533610344, -0.016085105016827583, 0.014763307757675648, -0.01961313746869564, -0.013052746653556824, 0.060569413006305695, 0.01815527305006981, 0.0023981870617717505, -0.060530535876750946, 0.002186796860769391, 0.026222122833132744, 0.021518079563975334, -0.0027772318571805954, -0.0009044834296219051, 0.020643360912799835, 0.04486335068941116, 0.0013266566675156355, -0.020468417555093765, 0.02867133542895317, 0.03772953525185585, 0.0021989457309246063, 0.02585279755294323, 0.0159198809415102, -0.06659524887800217, 0.01849544048309326, 0.049800653010606766, 0.015531117096543312, -0.038098860532045364, 0.06632311642169952, -0.001694767503067851, 0.01494797132909298, 0.037263017147779465, 0.015064599923789501, -0.01675572246313095, -0.05275525897741318, 0.03234515339136124, -0.04159773513674736, -0.06818918138742447, -0.019700609147548676, 0.03988717496395111, 0.00721156969666481, -0.009126232005655766, 0.009466400370001793, 0.02128482237458229, -0.03790447860956192, -0.004526669159531593, -0.013363758102059364, 0.04206424951553345, -0.015229824930429459, -0.056565143167972565, 0.034405604004859924, -0.015550554729998112, 0.01738746464252472, -0.02132369764149189, 0.019321564584970474, 0.016677970066666603, -0.0047623575665056705, -0.04396919533610344, 0.00006924856279511005, -0.040470320731401443, -0.053493909537792206, 0.0009949925588443875, 0.07293210178613663, 0.06037503108382225, -0.017445778474211693, -0.029759874567389488, -0.00998151209205389, 0.003756430931389332, 0.010039826855063438, -0.008198058232665062, 0.03837099298834801, -0.027368975803256035, 0.01881617121398449, -0.06974423676729202, -0.04190874472260475, -0.0570705384016037, 0.014316230081021786, -0.049878403544425964, -0.008314687758684158, 0.012207185849547386, -0.015774093568325043, 0.008168901316821575, -0.03883751109242439, 0.05329952761530876, -0.000271830998826772, 0.010875669308006763, 0.027407852932810783, -0.012984713539481163, -0.025930549949407578, 0.04268627241253853, 0.04117009416222572, -0.03310324251651764, 0.04459121450781822, -0.002942456630989909, -0.022567743435502052, 0.021731900051236153, -0.03640773519873619, -0.035280320793390274, 0.02664976380765438, 0.02532796561717987, 0.034094590693712234, -0.042841777205467224, 0.019136901944875717, 0.007716963067650795, -0.01833021640777588, -0.02062392421066761, 0.024900326505303383, -0.06507907062768936, 0.043774813413619995, -0.01915634050965309, 0.013577578589320183, 0.023092573508620262, 0.02062392421066761, -0.00138254149351269, -0.07079390436410904, -0.0014615091495215893, -0.016017071902751923, 0.019107744097709656, -0.010720163583755493, 0.023714596405625343, 0.046807169914245605, -0.003340939525514841, -0.002767512807622552, -0.0485566072165966, 0.03689369186758995, 0.05664289742708206, -0.03561077266931534, 0.06472918391227722, 0.017960891127586365, 0.017358306795358658, -0.027621673420071602, 0.01068128738552332, 0.02563897706568241, 0.039770543575286865, -0.004985896870493889, -0.00313197891227901, 0.044202450662851334, -0.0079599404707551, -0.02612493187189102, -0.009830866008996964, 0.04167548567056656, 0.04486335068941116, 0.009325473569333553, -0.015725499019026756, -0.004086880013346672, -0.0394400954246521, -0.03549414128065109, 0.043774813413619995, -0.0026751814875751734, 0.012673702090978622, 0.022898191586136818, -0.006487497128546238, -0.01301387045532465, -0.04571863263845444, -0.017406903207302094, 0.09260355681180954, 0.04183099418878555, 0.01099229883402586, -0.024219989776611328, -0.03329762443900108, -0.02612493187189102, 0.016979262232780457, 0.028418639674782753, -0.0620855912566185, 0.009928056970238686, 0.04326941817998886, -0.015239544212818146, 0.01734858751296997, -0.006089014001190662, -0.017086172476410866, -0.06780041754245758, 0.001779809594154358, -0.04828447476029396, -0.02225673198699951, 0.019039710983633995, 0.00627853674814105, -0.04661278799176216, 0.01943819411098957, 0.025755606591701508, -0.015035443007946014, 0.06597322970628738, -0.038234926760196686, -0.04451346397399902, 0.07056064158678055, -0.031548187136650085, -0.0006119993631727993, -0.04342492297291756, -0.0024309891741722822, -0.00046651664888486266, 0.05535997450351715, 0.07934670895338058, 0.04906200245022774, -0.03438616544008255, 0.016182295978069305, 0.10426647216081619, -0.00038815641892142594, -0.006249379366636276, -0.009723956696689129, 0.07584783434867859, -0.018203867599368095, 0.013927466236054897, -0.04167548567056656, 0.022587180137634277, -0.03988717496395111, -0.02972099743783474, -0.042453013360500336, 0.013752521947026253, 0.03378358110785484, 0.0343472883105278, 0.07281547039747238, -0.03619391843676567, -0.0401981845498085 ]
21,100
tfields.mesh_3d
_save_stl
Saves the mesh in stl format
def _save_stl(self, path, **kwargs): """ Saves the mesh in stl format """ self.triangles()._save_stl(path, **kwargs)
(self, path, **kwargs)
[ -0.031140390783548355, -0.015078154392540455, -0.04500095173716545, 0.03210779279470444, -0.02918890491127968, -0.01732986979186535, -0.10948341339826584, 0.06274780631065369, -0.02665363997220993, 0.015645252540707588, 0.029689285904169083, -0.014969738200306892, -0.08666602522134781, -0.03779546171426773, -0.024668794125318527, 0.023584634065628052, -0.005900328513234854, -0.02962256781756878, -0.06017918139696121, -0.02660360187292099, 0.01481128390878439, 0.0036194240674376488, 0.06184711679816246, 0.029739324003458023, 0.05157262459397316, -0.04259911924600601, 0.04033072665333748, 0.013026591390371323, 0.03702820837497711, -0.020432233810424805, -0.05027163401246071, -0.01901448704302311, -0.027437569573521614, 0.02598646469414234, 0.008664934895932674, -0.0023100932594388723, 0.015345023944973946, 0.046068429946899414, -0.015019776299595833, -0.037295080721378326, 0.004155248869210482, 0.02501906082034111, -0.010307853110134602, 0.030089590698480606, 0.004336636979132891, 0.00507886940613389, -0.013618708588182926, 0.009507243521511555, -0.0011769382981583476, -0.011775637976825237, -0.015878763049840927, -0.031056994572281837, -0.008748332038521767, -0.025486083701252937, 0.0013729209313169122, -0.016470881178975105, 0.04193194583058357, 0.023934900760650635, 0.018280593678355217, -0.007343094330281019, 0.011725599877536297, -0.023751428350806236, 0.018514104187488556, -0.0026207466144114733, -0.016337446868419647, -0.012709682807326317, -0.02118280529975891, -0.00016926958051044494, 0.028488369658589363, 0.05460827052593231, -0.038729507476091385, -0.018847692757844925, 0.04566812515258789, 0.015086493454873562, 0.036994852125644684, 0.03087352029979229, 0.02256719209253788, -0.002397659933194518, -0.052273157984018326, -0.0205489881336689, -0.046068429946899414, -0.09033548831939697, -0.059378571808338165, 0.023084253072738647, -0.04743614047765732, 0.005308210849761963, 0.055709108710289, -0.01190907321870327, -0.036227598786354065, -0.04203202202916145, -0.024185091257095337, 0.05177277699112892, -0.04116469621658325, -0.02410169504582882, 0.006821863818913698, -0.07392298430204391, 0.00793521199375391, -0.03187428414821625, -0.037862177938222885, 0.004067682195454836, -0.02118280529975891, 0.010241135954856873, -0.015061474405229092, 0.01024947501718998, 0.008748332038521767, -0.033542219549417496, 0.019181279465556145, -0.038862939924001694, 0.001905618468299508, -0.0031023635528981686, 0.0034213566686958075, 0.026386769488453865, 0.026420127600431442, 0.01034955121576786, -0.0319410003721714, -0.0320577546954155, 0.0037695385981351137, 0.0070303562097251415, -0.011808997020125389, -0.04546797275543213, -0.029272301122546196, 0.012034168466925621, -0.036227598786354065, 0.06281451880931854, -0.016220690682530403, 0.03696149215102196, 0.03669462352991104, 0.04129812866449356, -0.020182041451334953, -0.014452677220106125, 0.004374166019260883, 0.019314715638756752, -0.0218499805778265, -0.0030252214055508375, 0.056743230670690536, 0.013668746687471867, -0.018881050869822502, -0.022800704464316368, -0.0002913678181357682, 0.08159549534320831, 0.043966829776763916, -0.03646111115813255, -0.023217689245939255, 0.007205489557236433, 0.012826438061892986, 0.07132100313901901, 0.0015845404705032706, -0.05254002660512924, -0.02752096764743328, 0.02256719209253788, 0.01978173665702343, 0.00046285262214951217, -0.026586921885609627, -0.015403402037918568, -0.03649447113275528, -0.05987895280122757, 0.009065239690244198, -0.045834917575120926, 0.05474170669913292, -0.002506075892597437, -0.02261723019182682, 0.023684710264205933, 0.012642965652048588, 0.023884862661361694, -0.013643727637827396, 0.0001211209237226285, 0.011867374181747437, 0.0059044985100626945, -0.03782882168889046, -0.0004649375332519412, -0.005349908955395222, 0.008840068243443966, -0.09647350013256073, 0.053907737135887146, -0.00411980552598834, -0.05007148161530495, 0.041798509657382965, 0.018881050869822502, 0.01563691347837448, -0.015228268690407276, -0.005095548927783966, 0.024501999840140343, -0.030506575480103493, 0.06878573447465897, 0.013393537141382694, -0.00608797138556838, -0.022317001596093178, -0.009882529266178608, 0.03374237194657326, -0.014569433405995369, 0.013193384744226933, 0.04193194583058357, 0.02049895003437996, -0.013418556191027164, 0.0278545543551445, -0.004982962738722563, 0.055709108710289, -0.081462062895298, 0.009765773080289364, 0.0016512579750269651, -0.03415935859084129, -0.03519348055124283, 0.012884816154837608, -0.03384244814515114, -0.013368518091738224, -0.028638483956456184, 0.023451199755072594, -0.05847788602113724, -0.04596835374832153, 0.06471597403287888, 0.03199103847146034, -0.02333444356918335, -0.004432543646544218, 0.04193194583058357, 0.07779259979724884, -0.06274780631065369, -0.06665077805519104, 0.037862177938222885, 0.005007981788367033, 0.01119185984134674, 0.007597454823553562, 0.031040314584970474, -0.05354078859090805, 0.0012863967567682266, -0.0415983572602272, -0.04850361868739128, 0.041665077209472656, -0.005216474179178476, -0.016829488798975945, -0.01645420305430889, 0.026953868567943573, -0.021149445325136185, -0.0031023635528981686, 0.008414744399487972, -0.050738655030727386, 0.005766893271356821, -0.06117994338274002, -0.033292029052972794, 0.052506670355796814, -0.039063092321157455, -0.013385197147727013, -0.06161360815167427, -0.0029939475934952497, -0.01102506648749113, 0.03254145756363869, 0.01376048382371664, 0.024985702708363533, -0.005395777523517609, 0.03439286723732948, 0.04796987771987915, 0.012109225615859032, 0.026686998084187508, -0.051639340817928314, 0.04086446762084961, 0.029739324003458023, -0.05377430096268654, 0.005746044218540192, -0.025335969403386116, 0.021883338689804077, -0.026303373277187347, -0.06805184483528137, -0.05494185909628868, 0.06965306401252747, 0.009190334938466549, 0.04743614047765732, -0.03596073016524315, 0.031524017453193665, -0.0038404257502406836, 0.03892965987324715, 0.005349908955395222, 0.042132098227739334, 0.04096454381942749, -0.05911169946193695, -0.00021904708410147578, 0.028271539136767387, -0.04183186963200569, -0.002474802080541849, 0.016495900228619576, 0.04533453658223152, 0.07225504517555237, 0.0649828389286995, -0.005408287048339844, -0.028354935348033905, -0.008481461554765701, -0.027204059064388275, 0.03225791081786156, -0.01563691347837448, -0.08192908763885498, -0.0025540292263031006, -0.07392298430204391, 0.032674893736839294, 0.043533165007829666, -0.03254145756363869, -0.01998188905417919, 0.030223025009036064, -0.04410026594996452, -0.03576057776808739, -0.03669462352991104, 0.07152115553617477, -0.027337493374943733, 0.02088257670402527, -0.027337493374943733, 0.11321958899497986, -0.048570334911346436, -0.014185807667672634, -0.05427468195557594, -0.05320720374584198, -0.01284311804920435, 0.024335205554962158, 0.007017846684902906, -0.04810331389307976, -0.009974265471100807, -0.017413266003131866, 0.0355270653963089, 0.05170605704188347, 0.08866754919290543, -0.009473884478211403, -0.06565001606941223, -0.024118375033140182, 0.05083873122930527, -0.04957110062241554, -0.02386818453669548, -0.005858629941940308, -0.027721120044589043, 0.01128359604626894, -0.05811093747615814, 0.014310902915894985, -0.031107032671570778, 0.08266297727823257, -0.001110220793634653, -0.022834062576293945, -0.017896968871355057, 0.058944907039403915, 0.0220334529876709, 0.004136484581977129, -0.03127382695674896, 0.05170605704188347, 0.018714256584644318, 0.005491683725267649, -0.017296509817242622, 0.06404879689216614, 0.016362465918064117, 0.004090616479516029, 0.012209301814436913, 0.005062189884483814, 0.03322531282901764, -0.02713734097778797, -0.03802897408604622, -0.01010770071297884, 0.0959397554397583, -0.033542219549417496, 0.017037980258464813, -0.012659644708037376, 0.030172986909747124, -0.034075960516929626, 0.015336683951318264, 0.035126760601997375, 0.006112990435212851, 0.013485273346304893, -0.017513342201709747, 0.00934044923633337, 0.005224813707172871, 0.02179994247853756, 0.020081965252757072, 0.05640964210033417, -0.05023827403783798, 0.037195004522800446, -0.056643154472112656, 0.023634672164916992, -0.011275256983935833, -0.000553025514818728, -0.038829583674669266, 0.006067122332751751, 0.03506004437804222, -0.001598092494532466, 0.03826248273253441, 0.01605389639735222, 0.04810331389307976, -0.004853697959333658, -0.07158787548542023, -0.00032472657039761543, -0.023084253072738647, 0.07045367360115051, -0.023634672164916992, 0.05257338657975197, 0.005462495144456625, 0.036561187356710434, 0.017930326983332634, -0.004025984089821577, 0.018614180386066437, 0.018180517479777336, 0.005787742789834738, 0.019898492842912674, -0.043966829776763916, 0.035994090139865875, 0.0220334529876709, -0.014319241978228092, 0.04696911573410034, 0.031240466982126236, 0.06731795519590378, -0.02496902272105217, -0.07252191752195358, -0.07012008875608444, 0.04269919544458389, -0.06231414154171944, -0.015378382988274097, -0.02098265290260315, -0.006946959067136049, 0.040497519075870514, -0.005683496594429016, 0.039830345660448074, 0.04853697866201401, -0.003777878126129508, -0.02410169504582882, 0.05153926461935043, 0.052273157984018326, 0.007972740568220615, 0.026770394295454025, -0.01637914590537548, 0.03779546171426773, 0.025819670408964157, 0.07432328909635544, 0.06565001606941223, 0.06174704059958458, 0.03782882168889046, -0.026353411376476288, -0.0795939713716507, 0.01020777691155672, 0.013393537141382694, 0.03542698919773102, -0.00033932100632227957, -0.02205013297498226, -0.0037111607380211353, -0.02606986090540886, 0.018230555579066277, 0.021066049113869667, -0.04326629638671875, -0.01911456324160099, -0.019915172830224037, 0.06144681200385094, 0.10261150449514389, -0.006050442811101675, -0.08079488575458527, 0.012109225615859032, 0.056443002074956894, -0.025002380833029747, -0.04750285670161247, -0.009990944527089596, 0.05887819081544876, 0.04226553440093994, 0.05864467844367027, 0.05324055999517441, 0.030806804075837135, -0.025536121800541878, 0.024618756026029587, -0.036994852125644684, -0.016170652583241463, -0.08593213558197021, 0.004303278401494026, -0.04636865854263306, 0.020715782418847084, 0.0060712918639183044, 0.04013057425618172, 0.012259339913725853, 0.010966688394546509, -0.11902400851249695, -0.026770394295454025, -0.0049454341642558575, 0.006438238080590963, -0.05083873122930527, 0.024702152237296104, -0.03542698919773102, -0.031056994572281837, -0.01926467753946781, 0.03064000979065895, 0.017463304102420807, -0.028688523918390274, 0.0004852655401919037, -0.020782500505447388, -0.029138866811990738, 0.002547774463891983, -0.030406499281525612, -0.0548417828977108, 0.05587590113282204, 0.03300848230719566, 0.07332252711057663, -0.006730127148330212, 0.045634765177965164, 0.09193670749664307, -0.024702152237296104, 0.021016011014580727, -0.014060712419450283, -0.023634672164916992, 0.0038237464614212513, 0.027787836268544197, 0.048370182514190674, -0.025235893204808235, -0.004641035571694374, -0.05384101718664169, 0.010241135954856873, 0.009465544484555721, -0.05190621316432953, 0.011658882722258568, -0.026153258979320526, -0.0018618351314216852, 0.01205084752291441, 0.06394872069358826, 0.012200961820781231, -0.007155451457947493, -0.017646778374910355, -0.05660979449748993, -0.059512004256248474, 0.040030498057603836, 0.04086446762084961, 0.0009387360187247396, 0.0663505494594574, -0.05911169946193695, 0.025953106582164764, -0.05374094098806381, 0.02598646469414234, -0.019715020433068275, -0.02443528175354004, -0.010466307401657104, -0.03370901569724083, -0.04199866205453873, 0.009732414968311787, -0.03963019326329231, -0.039063092321157455, 0.08299656212329865, 0.06825199723243713, 0.019131241366267204, 0.012084206566214561, -0.001465699984692037, 0.0002692155248951167, 0.018080441281199455, 0.043232936412096024, 0.023784786462783813, -0.07178802788257599, 0.036327674984931946, -0.10728172957897186, 0.00781845673918724, -0.05377430096268654, -0.03360893949866295, -0.04663553088903427, -0.019281355664134026, 0.012117564678192139, 0.021633148193359375, -0.03184092417359352, -0.019765058532357216, 0.012476171366870403, 0.016520919278264046, -0.01921463944017887, -0.02770444005727768, -0.011291936039924622, 0.03155737370252609, -0.012259339913725853, -0.030172986909747124, -0.020999331027269363, -0.029155544936656952, -0.005996234714984894, -0.02655356377363205, 0.00599206518381834, 0.03866278752684593, 0.043099500238895416, -0.05017155781388283, 0.03736179694533348, 0.038829583674669266, -0.017054660245776176, -0.016237370669841766, -0.0037466043140739202, 0.08800037950277328, 0.0047202627174556255, 0.012592927552759647, -0.05560903251171112, 0.036227598786354065, 0.027204059064388275, 0.04476743936538696, -0.002562368754297495, 0.007301395758986473, 0.0313238650560379, -0.010691478848457336, 0.058944907039403915, -0.0007229465991258621, 0.01666269451379776, 0.05150590464472771, 0.0626477301120758, 0.004928755108267069, 0.03919652849435806, -0.0005248790257610381, 0.055775824934244156, -0.026370089501142502, 0.023601314052939415, 0.022967496886849403, -0.07332252711057663, -0.03816240653395653, -0.009774113073945045, 0.007155451457947493, -0.02938905730843544, -0.014344261959195137, 0.018113799393177032, -0.03347550332546234, 0.014827962964773178, -0.020965972915291786, 0.09974265843629837, -0.012376095168292522, -0.04083110764622688, 0.030756765976548195, 0.02164982631802559, -0.010933329351246357, 0.006196387577801943, 0.013693765737116337, -0.023351123556494713, 0.0205489881336689, -0.05213972181081772, -0.016295747831463814, -0.0008006099378690124, 0.013051610440015793, 0.013526972383260727, 0.020148683339357376, 0.008260459639132023, -0.026286693289875984, -0.05587590113282204, -0.02405165694653988, -0.004807829391211271, -0.013151686638593674, 0.004907905589789152, 0.03956347331404686, 0.0062422556802630424, 0.012442813254892826, -0.037428513169288635, -0.06958634406328201, -0.04930422827601433, 0.003894633846357465, -0.04446721076965332, 0.01612895540893078, -0.013235082849860191, -0.02118280529975891, 0.01637914590537548, -0.0016648099990561604, 0.023617994040250778, -0.03953011706471443, 0.021933376789093018, 0.03529355674982071, -0.028171462938189507, -0.021199483424425125, 0.07232176512479782, 0.0398637019097805, -0.013310139998793602, 0.04239896684885025, 0.003782048122957349, -0.0293390192091465, 0.023701390251517296, -0.03679469972848892, -0.032291267067193985, 0.03235798701643944, 0.03866278752684593, 0.03626095876097679, -0.03064000979065895, 0.005262342281639576, -0.01116684079170227, -0.02103269100189209, -0.022984176874160767, 0.014219165779650211, -0.0038925488479435444, 0.0019004062050953507, -0.016679374501109123, -0.02405165694653988, 0.034359510987997055, 0.03384244814515114, -0.01883101277053356, -0.0522397980093956, -0.010649779811501503, -0.012759720906615257, 0.009790792129933834, -0.023834824562072754, -0.028321577236056328, 0.02752096764743328, -0.03532691299915314, -0.005203964654356241, -0.021533071994781494, -0.03746187314391136, 0.06451582163572311, -0.026036502793431282, -0.032825008034706116, -0.01027449406683445, 0.05324055999517441, -0.032574817538261414, 0.05213972181081772, 0.014869662001729012, 0.0011915328213945031, -0.03629431873559952, -0.021966734901070595, 0.012834778055548668, -0.003410931909456849, 0.033592257648706436, -0.018647540360689163, 0.056443002074956894, -0.019531546160578728, 0.02318432927131653, 0.006659239996224642, 0.00002255950494145509, -0.038963016122579575, -0.03539363294839859, 0.0630146712064743, 0.03572721779346466, -0.019364753738045692, 0.008527330122888088, -0.004695243667811155, -0.0058919889852404594, -0.0355270653963089, -0.0025456894654780626, -0.007968571037054062, 0.07418985664844513, 0.023834824562072754, -0.013652067631483078, -0.03222455084323883, -0.004361656028777361, 0.004265749827027321, 0.02174990437924862, -0.058411166071891785, -0.005566740874201059, 0.022216925397515297, 0.016220690682530403, -0.06061284616589546, -0.039596833288669586, -0.046602170914411545, -0.020899254828691483, -0.007601624820381403, 0.026420127600431442, 0.031574055552482605, -0.043232936412096024, -0.017980365082621574, -0.017004622146487236, 0.00732224527746439, 0.008815049193799496, 0.0032691573724150658, 0.007197150029242039, 0.025552799925208092, -0.04750285670161247, 0.03792889788746834, 0.05691002309322357, 0.03384244814515114, -0.011658882722258568, -0.020015249028801918, -0.04139820486307144, 0.025052418932318687, 0.058177657425403595, 0.03969690948724747, -0.07512389868497849, -0.009557281620800495, 0.08833396434783936, 0.04216545820236206, 0.011300276033580303, 0.007614134345203638, 0.05133911222219467, -0.027887912467122078, 0.0769919902086258, -0.06581681221723557, -0.018664218485355377, -0.0463019423186779, 0.00009779586252989247, -0.055442240089178085, 0.02044891193509102, 0.003231628565117717, 0.04500095173716545, 0.020682424306869507, -0.039496757090091705, 0.0009543729247525334 ]
21,101
tfields.core
_save_txt
Save as text file. Args: **kwargs passed to np.savetxt.
def _save_txt(self, path, **kwargs): """ Save as text file. Args: **kwargs passed to np.savetxt. """ header = kwargs.get("header", []) if isinstance(header, dict): header = [ f"{key}: {type(value).__name__} = {value}" for key, value in header.items() ] if isinstance(header, list): # statictyping like attribute saving header = [ f"{key}: {type(getattr(self, key)).__name__} = {getattr(self, key)}" for key in self._iter_slots() ] + header kwargs["header"] = "\n".join(header) np.savetxt(path, self, **kwargs)
(self, path, **kwargs)
[ 0.0026050542946904898, -0.04278682917356491, -0.009711711667478085, 0.0024948902428150177, 0.023242440074682236, -0.0413006953895092, -0.03822474181652069, 0.031364332884550095, 0.05626571550965309, 0.0013759697321802378, 0.029809078201651573, -0.04741803556680679, 0.03043118119239807, -0.03200371563434601, -0.01826561987400055, 0.03383546322584152, 0.037015099078416824, -0.02815013751387596, -0.03615106642246246, -0.009271055459976196, 0.033783622086048126, -0.015016863122582436, -0.013565290719270706, -0.010031403042376041, 0.03749895468354225, 0.0036786131095141172, 0.01674492470920086, -0.039365265518426895, 0.031761787831783295, -0.006130301859229803, -0.030638547614216805, -0.08889153599739075, -0.01582041196525097, 0.008908161893486977, -0.05927254259586334, 0.004557764623314142, -0.0059747761115431786, -0.011534817516803741, -0.009400660172104836, -0.023795420303940773, -0.005179867148399353, 0.021548939868807793, 0.006765364669263363, -0.014774934388697147, -0.03402554988861084, 0.0011372811859473586, -0.010800390504300594, 0.02557532489299774, 0.01622650772333145, -0.012070516124367714, -0.007983649149537086, -0.019976401701569557, -0.024227436631917953, -0.002583453431725502, -0.09061959385871887, 0.03115696646273136, 0.04956083372235298, 0.03345528990030289, 0.0008256898727267981, -0.02035657688975334, 0.03234932944178581, 0.024728573858737946, 0.0854354128241539, 0.0312606506049633, -0.01126696728169918, 0.0024948902428150177, -0.049007851630449295, -0.006938171107321978, 0.013366563245654106, 0.004300715401768684, 0.0553671233355999, -0.04420384019613266, -0.008070051670074463, -0.0008148894994519651, -0.002643935615196824, 0.014965021051466465, -0.08474418520927429, -0.014757653698325157, -0.0176435187458992, 0.0052360291592776775, -0.012960468418896198, -0.005106424912810326, 0.029774516820907593, 0.026041902601718903, -0.011154643259942532, -0.0765877291560173, 0.030206533148884773, 0.04845487326383591, 0.028824081644415855, -0.0059790960513055325, 0.020529381930828094, 0.002916105557233095, -0.015734009444713593, 0.019596228376030922, -0.04406559467315674, -0.10133358836174011, 0.027873648330569267, -0.029186975210905075, -0.09117257595062256, 0.007430668920278549, -0.0641111209988594, 0.00025272913626395166, 0.03333432599902153, 0.025454360991716385, -0.014714452438056469, -0.044549450278282166, 0.005231709219515324, 0.017885446548461914, 0.018472988158464432, 0.023864543065428734, -0.008186696097254753, 0.02517786994576454, 0.04423839971423149, -0.029256097972393036, 0.0737537071108818, -0.05685325711965561, -0.021548939868807793, -0.007901566103100777, -0.025661727413535118, -0.03286774829030037, 0.011301528662443161, 0.030603986233472824, -0.037084221839904785, 0.08246314525604248, -0.016425233334302902, -0.04071315377950668, 0.05263678357005119, 0.04022929444909096, 0.09186380356550217, -0.049664516001939774, 0.004618247039616108, -0.030344776809215546, 0.03314423933625221, 0.02279314398765564, 0.08647225052118301, 0.02018376998603344, 0.025333397090435028, 0.014498444274067879, -0.023052353411912918, 0.016770847141742706, 0.02431383915245533, -0.07969824224710464, -0.06449129432439804, 0.00996228028088808, 0.07866140455007553, 0.021497096866369247, -0.002566172741353512, -0.03680773079395294, -0.018058253452181816, -0.0021017559338361025, -0.021289730444550514, -0.021756306290626526, -0.11059600114822388, -0.0131332753226161, 0.061726391315460205, -0.06801653653383255, 0.002652575960382819, 0.004635527729988098, -0.027735402807593346, 0.02351893112063408, 0.02144525572657585, 0.0409550815820694, 0.02405462972819805, 0.04924977943301201, -0.01418739277869463, 0.09013573825359344, -0.06086236238479614, 0.010593023151159286, -0.02180814929306507, -0.008173735812306404, 0.03867403790354729, -0.07700246572494507, -0.07651861011981964, 0.013928183354437351, -0.056611329317092896, 0.0026806569658219814, 0.02170446515083313, 0.02127244882285595, -0.009296976029872894, 0.03763720020651817, 0.03532159700989723, -0.019319739192724228, -0.06086236238479614, 0.03425019979476929, 0.04772908613085747, -0.01862851344048977, -0.003222836647182703, -0.008169415406882763, 0.031727228313684464, 0.04285594820976257, 0.021825429052114487, 0.023397965356707573, 0.009435221552848816, -0.0037066941149532795, 0.019578948616981506, -0.042233847081661224, 0.016174664720892906, -0.04886960610747337, -0.00033859224640764296, -0.005503878928720951, 0.008778557181358337, -0.011768105439841747, 0.043789103627204895, 0.01278766244649887, -0.015111906453967094, -0.022914107888936996, 0.0753435268998146, -0.049802761524915695, -0.07382283359766006, 0.06193375959992409, 0.005309471860527992, -0.018282901495695114, -0.024486646056175232, -0.003417243482545018, 0.060413066297769547, 0.024296559393405914, -0.0537773035466671, 0.035563524812459946, -0.0012247642735019326, -0.019544387236237526, 0.030569424852728844, 0.06207200512290001, -0.024866819381713867, 0.03874316066503525, 0.036945976316928864, -0.03691141679883003, 0.02137613296508789, -0.006380870938301086, 0.007996609434485435, -0.005560040939599276, 0.05965271592140198, 0.03649668022990227, -0.040885958820581436, 0.009227854199707508, -0.03950350731611252, 0.0037606959231197834, -0.017064617946743965, -0.06870776414871216, 0.022015515714883804, -0.024331120774149895, -0.0131332753226161, 0.055643610656261444, -0.009573466144502163, -0.005577321629971266, 0.0030867515597492456, 0.009832675568759441, 0.013824500143527985, 0.021324291825294495, -0.044480327516794205, -0.024797696620225906, 0.08820030838251114, 0.019578948616981506, -0.0072708227671682835, -0.0016222186386585236, -0.01658076047897339, -0.016572119668126106, 0.014904539100825787, -0.004678728990256786, 0.006208064500242472, 0.01141385268419981, -0.008618711493909359, 0.0008186696213670075, -0.003153714118525386, -0.036220189183950424, 0.04136981442570686, -0.008000928908586502, -0.006683281622827053, 0.008026850409805775, -0.042164724320173264, 0.011638500727713108, -0.03207283839583397, 0.06701426208019257, -0.06663408875465393, 0.0003850339271593839, 0.009426580742001534, 0.007206020411103964, -0.019146932289004326, -0.004101988393813372, 0.029688114300370216, -0.004242393653839827, 0.04873136430978775, 0.008601430803537369, 0.03749895468354225, 0.0015530962264165282, 0.04420384019613266, 0.008445905521512032, -0.03380090370774269, -0.023363405838608742, 0.005404515657573938, -0.016511637717485428, 0.022084638476371765, 0.051358018070459366, 0.039883680641651154, 0.03580545634031296, 0.030863195657730103, 0.011154643259942532, -0.037153344601392746, -0.040056489408016205, 0.011603939346969128, 0.010834951885044575, 0.02173902653157711, 0.03729159012436867, 0.004782413132488728, -0.05986008420586586, -0.03046574257314205, -0.02058122493326664, -0.02960170991718769, 0.015569843351840973, 0.015103266574442387, 0.037153344601392746, 0.008039810694754124, -0.029912762343883514, 0.051323454827070236, 0.0569569393992424, 0.021427974104881287, 0.028322944417595863, -0.022654898464679718, -0.03425019979476929, 0.005274910945445299, -0.03138161450624466, -0.011111441999673843, -0.05771728605031967, -0.04264858365058899, -0.05903061479330063, 0.0822557732462883, -0.050459425896406174, 0.02583453431725502, -0.03241845220327377, 0.0029139453545212746, 0.022309286519885063, 0.05260222405195236, -0.007292423862963915, 0.04040209949016571, 0.015768570825457573, 0.023864543065428734, 0.005447716917842627, 0.03485501930117607, 0.025091467425227165, 0.0011642820900306106, -0.01007460430264473, -0.00011191904923180118, -0.012035955674946308, -0.04499874636530876, 0.003965903539210558, -0.016468435525894165, -0.006882009096443653, -0.025385238230228424, 0.011586658656597137, 0.0436854213476181, 0.06960635632276535, 0.008925442583858967, -0.0034129235427826643, 0.020840434357523918, 0.005184187553822994, -0.017695359885692596, 0.011690342798829079, 0.022378409281373024, 0.006683281622827053, -0.0035857297480106354, -0.03901965171098709, 0.03691141679883003, 0.04344348981976509, 0.010048683732748032, 0.010800390504300594, 0.012424769811332226, -0.00413006916642189, -0.011120081879198551, 0.053569938987493515, 0.08094244450330734, -0.0176435187458992, 0.013565290719270706, -0.006691921968013048, 0.03148530051112175, 0.032228365540504456, 0.020391138270497322, 0.04634663462638855, -0.006869048345834017, 0.008346541784703732, -0.02695777453482151, -0.10568830370903015, 0.03257397934794426, -0.05077047646045685, 0.02094411663711071, -0.0031580342911183834, 0.019146932289004326, 0.01935430057346821, 0.023691736161708832, 0.01569080725312233, 0.0023048033472150564, -0.04765996336936951, 0.024953221902251244, 0.0032509176526218653, -0.03736071288585663, -0.013910902664065361, 0.020633066073060036, -0.022292006760835648, -0.01602778024971485, 0.07354634255170822, -0.03722246736288071, 0.072163887321949, -0.030603986233472824, -0.02460760995745659, -0.09262415021657944, -0.01438612025231123, -0.02923881821334362, 0.060205698013305664, -0.027821805328130722, -0.040678590536117554, 0.02652576006948948, 0.016857249662280083, 0.026370232924818993, 0.05965271592140198, 0.040678590536117554, -0.02243025042116642, 0.03753351792693138, 0.061104290187358856, -0.08495154976844788, 0.01588953472673893, 0.027856366708874702, 0.0006944651249796152, -0.052049241960048676, 0.07527440041303635, -0.045344360172748566, 0.04406559467315674, 0.05184187367558479, -0.0016470595728605986, -0.07458318024873734, -0.018645795062184334, 0.05626571550965309, 0.02590365707874298, -0.013764018192887306, -0.042268410325050354, -0.07140354067087173, 0.031468018889427185, -0.004123589023947716, -0.005037302151322365, -0.022948669269680977, -0.052083805203437805, -0.05170362815260887, 0.026214707642793655, 0.0381210595369339, -0.011275608092546463, -0.03666948527097702, 0.012779022566974163, -0.006043898407369852, -0.03241845220327377, 0.020062806084752083, 0.002551052253693342, -0.001069778692908585, -0.0036850932519882917, 0.05674957111477852, 0.063316211104393, 0.04029841721057892, -0.03257397934794426, 0.03822474181652069, -0.06708338856697083, 0.07831579446792603, -0.09898342192173004, 0.022620338946580887, -0.022482093423604965, 0.016209226101636887, 0.06483690440654755, 0.013582571409642696, -0.0682930275797844, 0.08273962885141373, -0.07783193141222, -0.039952803403139114, 0.011906350962817669, 0.03304055333137512, -0.026698565110564232, -0.013798578642308712, 0.01417011208832264, -0.06687601655721664, -0.02427927777171135, 0.0034842060413211584, 0.054952386766672134, -0.004052306525409222, 0.035736333578825, -0.0645604133605957, -0.012891346588730812, 0.05097784474492073, -0.0525331012904644, -0.02243025042116642, 0.006795605644583702, 0.05104696750640869, 0.07485966384410858, -0.004536163993179798, -0.03395642712712288, 0.020788591355085373, 0.018887722864747047, 0.0176435187458992, -0.006894969381392002, -0.04202647879719734, 0.0036570122465491295, 0.01029061246663332, 0.026352953165769577, -0.039261579513549805, 0.025488922372460365, -0.05239485576748848, 0.00738314725458622, 0.021082362160086632, -0.008743995800614357, 0.0057501280680298805, -0.020097367465496063, 0.013003670610487461, -0.03514879196882248, 0.018974125385284424, 0.03570177033543587, -0.055816419422626495, -0.016632601618766785, -0.049768198281526566, 0.002300483174622059, -0.0230869147926569, 0.039883680641651154, 0.021324291825294495, -0.01859395205974579, -0.0834999829530716, -0.026819530874490738, 0.016831329092383385, 0.04513699188828468, -0.05305152013897896, 0.0513925775885582, -0.025955498218536377, -0.07326985150575638, -0.018317462876439095, 0.028685837984085083, -0.0397108756005764, 0.0023566451855003834, 0.028599433600902557, 0.08308524638414383, 0.006968412082642317, 0.007962048053741455, 0.03412923589348793, 0.016235146671533585, 0.020270172506570816, 0.03808649629354477, 0.05229116976261139, -0.003019789233803749, 0.09048135578632355, -0.017323827371001244, 0.018922284245491028, -0.03286774829030037, -0.014740373007953167, -0.060205698013305664, -0.015492080710828304, 0.02272402122616768, 0.02837478555738926, -0.04717610776424408, 0.015215590596199036, 0.0029571468476206064, -0.0038362988270819187, -0.038570355623960495, 0.01579449139535427, -0.018939565867185593, -0.031295210123062134, 0.003991824574768543, -0.004037186037749052, 0.004756492096930742, 0.03354169428348541, -0.02438296191394329, -0.03362809494137764, 0.010117805562913418, 0.0021978795994073153, -0.005806290078908205, -0.026180146262049675, 0.012001394294202328, -0.006691921968013048, 0.027528036385774612, -0.023311562836170197, -0.03905421122908592, 0.04047122225165367, 0.00023666355991736054, -0.03673860803246498, -0.03977999836206436, -0.018196498975157738, 0.014714452438056469, 0.034111954271793365, 0.061000607907772064, -0.019630789756774902, 0.0032811586279422045, -0.015163748525083065, 0.05070135369896889, -0.028253821656107903, -0.03221108391880989, 0.0022054398432374, 0.017004134133458138, 0.02101323939859867, -0.028253821656107903, -0.09739360213279724, 0.031934596598148346, -0.033092398196458817, 0.07520528137683868, 0.0317099466919899, -0.07320072501897812, 0.04043666273355484, -0.012597575783729553, 0.009011846035718918, 0.019665351137518883, -0.012649417854845524, -0.028996888548135757, -0.029359782114624977, -0.009789474308490753, -0.05242941528558731, 0.03725702688097954, 0.009158731438219547, 0.005184187553822994, -0.012390208430588245, 0.028962327167391777, -0.000385303923394531, 0.012165560387074947, -0.05415748059749603, 0.024089191108942032, 0.028824081644415855, -0.03366265818476677, -0.018317462876439095, 0.019112370908260345, 0.009547545574605465, -0.01655483804643154, -0.024486646056175232, 0.018905004486441612, -0.030051006004214287, 0.02844390831887722, -0.014740373007953167, -0.004382798448204994, -0.05782097205519676, 0.00589701347053051, -0.028392067179083824, -0.04344348981976509, 0.013625772669911385, -0.08273962885141373, -0.040125612169504166, -0.021566219627857208, 0.0433398075401783, -0.020270172506570816, 0.009512984193861485, -0.04562085121870041, -0.08370734751224518, 0.016770847141742706, 0.002367445733398199, -0.029377061873674393, -0.01295182853937149, 0.01126696728169918, -0.025264274328947067, -0.01883588172495365, -0.028098296374082565, 0.019285177811980247, -0.051219772547483444, -0.04662312567234039, 0.05827026814222336, -0.05077047646045685, -0.029584430158138275, 0.0058754123747348785, -0.05322432518005371, -0.024728573858737946, 0.046795930713415146, 0.04105876386165619, 0.03459580987691879, -0.01632155105471611, 0.019596228376030922, -0.0028426628559827805, 0.02721698395907879, -0.0230869147926569, 0.01473173312842846, -0.027908209711313248, 0.06397287547588348, -0.0325048565864563, -0.035166073590517044, 0.03967631608247757, 0.024175593629479408, -0.05778640881180763, -0.008225577883422375, 0.00985859613865614, -0.0006593638681806624, 0.008882241323590279, 0.025679009035229683, -0.009754912927746773, 0.02362261526286602, -0.03888140618801117, 0.044514890760183334, -0.022015515714883804, 0.019630789756774902, 0.0032379571348428726, 0.009478422813117504, -0.061104290187358856, -0.02797733247280121, 0.009703070856630802, -0.005655084736645222, 0.06055131182074547, -0.025385238230228424, -0.049837321043014526, -0.05547080561518669, -0.007007293403148651, 0.02745891362428665, 0.03805193677544594, 0.08211752772331238, -0.038570355623960495, 0.0694335475564003, -0.0004344457120168954, 0.021358853206038475, -0.019509825855493546, -0.03475133702158928, -0.05609291046857834, 0.014844057150185108, 0.020442979410290718, -0.04814382269978523, -0.040056489408016205, -0.007314024493098259, 0.002250801306217909, -0.027476193383336067, -0.04800557717680931, -0.02137613296508789, 0.016174664720892906, 0.034181077033281326, 0.019838158041238785, 0.017850885167717934, 0.012044595554471016, 0.040885958820581436, -0.07541264593601227, -0.013668973930180073, -0.011698982678353786, -0.0036764529068022966, 0.06919161975383759, 0.004400079138576984, 0.02289682812988758, -0.07085056602954865, -0.00653207628056407, -0.04790189117193222, -0.008549589663743973, 0.04257946088910103, 0.0013176476350054145, -0.005931574385613203, -0.01840386539697647, -0.013608491979539394, 0.022050077095627785, -0.025782693177461624, 0.04503330960869789, -0.0014612928498536348, -0.04468769580125809, 0.0021784387063235044, 0.08757820725440979, -0.023173317313194275, 0.07074687629938126, -0.000441465963376686, 0.01935430057346821, 0.022188322618603706, -0.01010916568338871, 0.05674957111477852, 0.060205698013305664, -0.00161249830853194, 0.009754912927746773, 0.04195735603570938, 0.02275858260691166, -0.0005756608443334699, 0.047694526612758636, 0.05004468932747841, -0.020010963082313538, 0.06518251448869705, -0.044411204755306244, 0.03419835865497589, 0.027804525569081306, -0.015906814485788345, -0.02395094558596611, -0.0021190366242080927, 0.0064931949600577354, 0.013236958533525467, 0.010981837287545204, -0.049871884286403656, 0.022775864228606224 ]
21,102
tfields.core
_weights
Expansion of Tensors._weights with integer inputs Args: weights (np.ndarray | int | None): if weights is int: use field at index <weights> else: see Tensors._weights
def _weights(self, weights, rigid=True): """ Expansion of Tensors._weights with integer inputs Args: weights (np.ndarray | int | None): if weights is int: use field at index <weights> else: see Tensors._weights """ if isinstance(weights, int): weights = self.fields[weights] return super(TensorFields, self)._weights(weights, rigid=rigid)
(self, weights, rigid=True)
[ 0.021313317120075226, -0.06052703410387039, -0.00009658685303293169, 0.02824362739920616, -0.014539722353219986, -0.03226599469780922, 0.0038939465302973986, 0.031586892902851105, 0.0031168984714895487, 0.015401657670736313, 0.0011459826491773129, 0.020703867077827454, 0.018596913665533066, -0.01316410768777132, -0.006991255562752485, 0.029114270582795143, -0.017700152471661568, 0.04590024799108505, 0.009559649974107742, -0.03365902230143547, 0.00765729695558548, -0.05488527566194534, 0.026119261980056763, 0.08002941310405731, 0.0018958230502903461, 0.015279768034815788, 0.026363041251897812, -0.013381768018007278, 0.015601905062794685, -0.028365517035126686, -0.06526333093643188, -0.024256087839603424, 0.01398251112550497, 0.03480827063322067, -0.002046008827164769, -0.06460163742303848, -0.041651517152786255, 0.04332314804196358, -0.05648725479841232, 0.012101924046874046, 0.06533297896385193, -0.031343113631010056, 0.02147003263235092, -0.037542086094617844, -0.026450105011463165, 0.06411407887935638, 0.05829819291830063, -0.050566889345645905, 0.011179043911397457, -0.020999886095523834, 0.041895296424627304, -0.022601867094635963, 0.05377085134387016, -0.0011644837213680148, -0.025283444672822952, 0.024256087839603424, 0.00430750148370862, -0.020390436053276062, -0.0017717565642669797, -0.07160159945487976, -0.03611423075199127, -0.031604304909706116, -0.011866850778460503, -0.03345006704330444, -0.011475061997771263, -0.0020198896527290344, -0.04116395488381386, 0.025858068838715553, -0.0007536495104432106, -0.008540998212993145, -0.02517896704375744, -0.038412727415561676, 0.019084474071860313, -0.01611558347940445, -0.030176453292369843, 0.02472623437643051, 0.015715088695287704, 0.01070889737457037, -0.006272975821048021, -0.015558373183012009, 0.020233720541000366, 0.00847570039331913, 0.005615641362965107, 0.008967612870037556, -0.009681539610028267, -0.02954959124326706, -0.031830672174692154, -0.00025670335162431, 0.01659443788230419, -0.08323337882757187, -0.05836784094572067, 0.020529739558696747, -0.011509887874126434, 0.008702067658305168, 0.03611423075199127, 0.006203324533998966, -0.012502419762313366, -0.08880548924207687, -0.03397245332598686, 0.04175599291920662, -0.04039778932929039, -0.028069499880075455, -0.04722362384200096, 0.0022462564520537853, 0.0026881073135882616, -0.07982046157121658, -0.008166622370481491, -0.04861665144562721, 0.019746161997318268, -0.02387300506234169, -0.007766127120703459, -0.029479939490556717, -0.029201334342360497, 0.010787255130708218, -0.011675309389829636, -0.0028143504168838263, 0.01249371375888586, 0.034042105078697205, 0.0440196618437767, 0.044367916882038116, 0.050566889345645905, -0.006508049089461565, -0.0301068015396595, 0.012868089601397514, 0.022340675815939903, 0.046527110040187836, 0.011710135266184807, 0.0033737379126250744, 0.0284699946641922, -0.018562087789177895, -0.022828234359622, -0.043810706585645676, -0.05418876186013222, 0.06460163742303848, -0.0031756667885929346, 0.03743760660290718, 0.014060868881642818, 0.06923345476388931, 0.027773480862379074, 0.028086911886930466, 0.03042023256421089, 0.02251480333507061, 0.06254692375659943, 0.023751115426421165, 0.012450180947780609, 0.017848161980509758, 0.035644084215164185, 0.05189026519656181, -0.03181326016783714, -0.018057115375995636, -0.0423828549683094, 0.04945246875286102, -0.0024943894241005182, 0.03169136866927147, -0.03153465315699577, 0.045691292732954025, -0.015253649093210697, -0.05784545838832855, 0.041651517152786255, 0.0013505835086107254, 0.008184035308659077, 0.030246105045080185, 0.0011198633583262563, -0.02066904306411743, -0.013338236138224602, 0.04757188260555267, 0.005506810732185841, -0.031621720641851425, -0.0184053722769022, 0.03261424973607063, 0.0320744514465332, -0.044681351631879807, -0.023507336154580116, 0.0027294629253447056, 0.04534303769469261, 0.05509422719478607, -0.022027242928743362, -0.028922729194164276, -0.02688542567193508, 0.07271602004766464, 0.025962546467781067, -0.012511125765740871, -0.019067060202360153, -0.009733778424561024, 0.05265643075108528, 0.04795496538281441, 0.010116860270500183, 0.02906203083693981, 0.010404172353446484, 0.021382968872785568, 0.06066633760929108, -0.003600104944780469, 0.02928839810192585, -0.05178578943014145, -0.0016966636758297682, 0.03425105661153793, 0.00906338356435299, -0.04478582739830017, -0.012363117188215256, 0.06188523769378662, 0.007866251282393932, -0.08469605445861816, 0.02824362739920616, 0.042452506721019745, -0.03257942572236061, 0.028365517035126686, 0.03778586536645889, -0.02059939131140709, -0.04151221364736557, -0.03611423075199127, -0.0021581039763987064, -0.005485044792294502, 0.005724471528083086, 0.010256162844598293, 0.04471617564558983, 0.031064508482813835, -0.06979066878557205, -0.019868051633238792, 0.004340150393545628, -0.008601943030953407, 0.04903455823659897, 0.062233492732048035, -0.02194017916917801, -0.05046241357922554, 0.06735286861658096, -0.042765937745571136, -0.019920289516448975, -0.03545254468917847, -0.05474597215652466, 0.04955694451928139, 0.02547498606145382, 0.01845761202275753, -0.02876601368188858, 0.0158718042075634, 0.009037264622747898, 0.007387397810816765, -0.01559319905936718, -0.08114384114742279, 0.07759162038564682, 0.0012101924512535334, -0.029392875730991364, 0.040084358304739, -0.0092026861384511, -0.014609373174607754, -0.010761135257780552, -0.018057115375995636, 0.01691657491028309, 0.01875362917780876, -0.025057077407836914, -0.019363079220056534, -0.02091282233595848, -0.013198933564126492, -0.02443021535873413, 0.011710135266184807, -0.006878071930259466, 0.055999696254730225, 0.0017358425538986921, 0.007735654711723328, -0.06188523769378662, -0.05091514810919762, -0.034042105078697205, -0.024221261963248253, -0.019868051633238792, -0.008471347391605377, 0.008702067658305168, -0.025335684418678284, 0.03412916883826256, 0.016681501641869545, -0.03202221542596817, 0.024761060252785683, 0.04015401005744934, 0.061153896152973175, 0.0069825490936636925, 0.0005816977354697883, 0.010003676638007164, -0.05662655830383301, 0.05488527566194534, 0.04603955149650574, -0.03520876541733742, 0.015088226646184921, -0.010856905952095985, -0.02308942750096321, -0.019397905096411705, 0.0001236583775607869, 0.020825758576393127, 0.029688892886042595, 0.004579577129334211, 0.015375538729131222, -0.03607940673828125, -0.04697984457015991, 0.06992997229099274, 0.06505437195301056, 0.0553031824529171, -0.004068074747920036, -0.05986534804105759, -0.05446736514568329, -0.04140773415565491, 0.024343151599168777, 0.03398986533284187, 0.021748637780547142, -0.02681577578186989, 0.011788493022322655, -0.011927795596420765, -0.006312154699116945, 0.012284759432077408, -0.01762179471552372, 0.01758696883916855, 0.01301609817892313, 0.0029035911429673433, 0.0312560498714447, -0.001316846115514636, -0.00032050508889369667, -0.06881554424762726, -0.003232258604839444, 0.0646364688873291, -0.04558681696653366, 0.034303296357393265, 0.08225826174020767, -0.013573309406638145, 0.09584027528762817, 0.025527223944664, 0.0079359021037817, -0.03576597571372986, 0.02791278436779976, -0.09096468240022659, -0.04314902052283287, 0.020808344706892967, -0.038064468652009964, -0.04440274462103844, 0.007221975829452276, 0.0061554391868412495, 0.03318887576460838, 0.0576016791164875, -0.030698837712407112, -0.023402858525514603, -0.001535594929009676, 0.06362652033567429, 0.01979839988052845, -0.04555199295282364, -0.009986264631152153, -0.007448342628777027, -0.014356886968016624, 0.021800877526402473, 0.0652981549501419, -0.017848161980509758, -0.021644162014126778, 0.023664051666855812, -0.002195106353610754, 0.06829316169023514, 0.04388035833835602, -0.008924080990254879, -0.06825833767652512, 0.013486245647072792, 0.00706090684980154, 0.0005729913245886564, -0.003362854942679405, -0.0004081134684383869, -0.011727548204362392, 0.0037437607534229755, 0.01613299734890461, -0.03956197574734688, -0.009289750829339027, 0.024343151599168777, 0.03527841717004776, 0.03169136866927147, 0.017021052539348602, 0.021591922268271446, -0.018004877492785454, 0.014600667171180248, 0.010647952556610107, 0.004875595681369305, -0.04781566187739372, -0.06686531007289886, 0.02472623437643051, 0.008027319796383381, 0.011631777510046959, -0.07585033774375916, 0.030193865299224854, 0.01896258443593979, -0.04603955149650574, -0.007021727971732616, -0.01249371375888586, 0.04213907569646835, 0.028330693021416664, -0.0290446188300848, 0.0074701085686683655, 0.014975043013691902, -0.02035561017692089, -0.029741132631897926, -0.00838428270071745, -0.023002363741397858, 0.010395466350018978, -0.042208727449178696, -0.028870489448308945, -0.04691019281744957, -0.012894208543002605, 0.007966374978423119, -0.00508454954251647, -0.012188988737761974, -0.044089313596487045, -0.019676510244607925, -0.074944868683815, -0.09904424101114273, 0.04603955149650574, -0.013494951650500298, 0.05227334797382355, 0.002918827347457409, 0.09521341323852539, 0.0295321773737669, -0.027285922318696976, -0.022636692970991135, 0.08636768907308578, 0.027251096442341805, -0.013782263733446598, 0.019606858491897583, -0.023228729143738747, 0.05098479986190796, 0.0020830112043768167, -0.00638615945354104, 0.02409937232732773, 0.05018380656838417, 0.04095500335097313, 0.02927098609507084, 0.04046744108200073, 0.021887941285967827, -0.06411407887935638, -0.0006197883049026132, -0.019450142979621887, 0.02333320677280426, 0.05875092372298241, -0.08448710292577744, -0.0224973913282156, 0.007757420651614666, -0.04903455823659897, 0.04248733073472977, -0.014452657662332058, 0.024499867111444473, 0.010430291295051575, -0.035417716950178146, 0.02902720496058464, 0.0955616682767868, -0.035435132682323456, 0.0314127653837204, -0.07703440636396408, -0.021226253360509872, -0.04175599291920662, 0.001775021431967616, 0.0660991445183754, -0.0847657099366188, -0.022845646366477013, 0.051367878913879395, -0.02982819639146328, 0.043566927313804626, 0.017317069694399834, 0.004562164191156626, -0.014922804199159145, -0.020390436053276062, -0.03688039630651474, 0.04398483783006668, -0.04746740311384201, 0.011231282725930214, 0.023542160168290138, 0.008680300787091255, -0.05338776856660843, -0.029671480879187584, -0.01413052063435316, 0.004135549534112215, -0.07989011704921722, 0.028905315324664116, 0.03625353425741196, 0.10628797858953476, 0.025875480845570564, -0.014600667171180248, -0.06209418922662735, 0.023820767179131508, 0.059029530733823776, 0.028348105028271675, 0.0029166508466005325, -0.024047132581472397, -0.07508417218923569, 0.011509887874126434, -0.022741170600056648, 0.018527261912822723, -0.024517279118299484, -0.015880510210990906, -0.016089465469121933, -0.06108424440026283, 0.0013799676671624184, 0.014287236146628857, 0.004875595681369305, -0.0033867976162582636, 0.05526835843920708, 0.08894479274749756, 0.03170878440141678, -0.02301977574825287, -0.011753668077290058, -0.022027242928743362, 0.051054447889328, 0.03437294811010361, 0.07132299989461899, -0.00006557023152709007, 0.011318346485495567, -0.04697984457015991, -0.0010017824824899435, -0.010499943047761917, -0.02387300506234169, 0.007700828835368156, 0.025562049821019173, 0.002361616585403681, -0.025562049821019173, -0.019955115392804146, 0.005411040503531694, -0.019415317103266716, 0.0345296636223793, -0.0074701085686683655, -0.03118639811873436, -0.0350172221660614, 0.05965639278292656, -0.0009000262361951172, -0.012502419762313366, 0.0585767962038517, 0.0011579538695514202, -0.01424370426684618, -0.00853229220956564, 0.03736795485019684, 0.003809059038758278, -0.05488527566194534, -0.0607011616230011, 0.07383044809103012, 0.0922880545258522, 0.0022005478385835886, 0.019572032615542412, -0.0033432655036449432, -0.011927795596420765, -0.021313317120075226, 0.005850714631378651, 0.02523120678961277, -0.026972491294145584, -0.02714661881327629, 0.0028339398559182882, -0.029636655002832413, -0.006843246519565582, 0.022062068805098534, -0.048407696187496185, 0.04206942394375801, 0.03656696528196335, -0.07031305134296417, 0.021243665367364883, -0.0317436084151268, -0.06097976863384247, -0.07334288954734802, -0.029741132631897926, 0.012215107679367065, 0.020686455070972443, 0.04092017561197281, -0.016402896493673325, -0.050845496356487274, -0.0032823204528540373, -0.006142379716038704, 0.042452506721019745, 0.01870139129459858, -0.07731301337480545, 0.08121348917484283, 0.00937681458890438, -0.0358356274664402, -0.0005319078918546438, -0.0033236760646104813, -0.020825758576393127, -0.020407849922776222, 0.0014833563473075628, -0.02604961022734642, -0.012006153352558613, 0.033815737813711166, 0.03343265503644943, -0.016472548246383667, -0.015993693843483925, -0.033223699778318405, -0.02707696706056595, -0.02194017916917801, -0.058959878981113434, -0.004028895869851112, 0.009176567196846008, -0.007343865465372801, -0.017578262835741043, 0.036462489515542984, -0.0216789860278368, 0.02523120678961277, 0.0433579720556736, -0.0670742616057396, 0.05589522048830986, 0.021922767162322998, -0.03980575501918793, -0.0023964422289282084, 0.036218710243701935, 0.011422823183238506, 0.007783540058881044, -0.1199396476149559, 0.004483806435018778, 0.04534303769469261, -0.00881960429251194, -0.018335722386837006, -0.012223814614117146, 0.0010034149745479226, -0.0016629262827336788, 0.010874318890273571, -0.01005591545253992, -0.0031256049405783415, 0.013477538712322712, 0.02826104126870632, -0.045447513461112976, 0.010534768924117088, -0.008780425414443016, 0.0379599928855896, 0.012850676663219929, -0.03740278258919716, 0.018335722386837006, -0.033519718796014786, 0.030507298186421394, 0.051054447889328, -0.057636503130197525, -0.06460163742303848, 0.011971328407526016, -0.009507411159574986, -0.01641160249710083, -0.0021298080682754517, 0.02927098609507084, 0.0391092412173748, -0.04819874465465546, -0.0035043342504650354, 0.029514765366911888, 0.0345296636223793, -0.013381768018007278, 0.07438765466213226, 0.005637407302856445, -0.03191773593425751, 0.013608135282993317, -0.007896723225712776, -0.029915260151028633, -0.024534692987799644, 0.018927758559584618, 0.007565879262983799, 0.02817397750914097, -0.0011644837213680148, -0.03327593952417374, 0.04262663424015045, -0.04534303769469261, -0.027999848127365112, -0.07048717886209488, -0.022358087822794914, 0.009263630956411362, -0.1199396476149559, 0.0017173414817079902, -0.06125837564468384, -0.02874859981238842, 0.057357896119356155, 0.03952714800834656, 0.004980072379112244, -0.040084358304739, -0.0012080158339813352, 0.008323337882757187, -0.054920099675655365, -0.0008336397586390376, 0.051681313663721085, -0.012432768009603024, -0.009812136180698872, 0.03688039630651474, -0.023751115426421165, -0.05443254113197327, 0.02820880152285099, -0.05728824809193611, -0.02143520675599575, 0.0011688369559124112, 0.0013995571061968803, -0.010082035325467587, -0.01002108957618475, 0.054119110107421875, 0.02960182912647724, 0.02166157402098179, -0.021800877526402473, -0.04280076175928116, 0.0628255307674408, -0.04617885500192642, 0.019119299948215485, 0.037542086094617844, 0.06972101330757141, -0.0633130893111229, -0.08706420660018921, 0.07459661364555359, -0.006878071930259466, 0.006751829292625189, -0.004488159902393818, -0.049487292766571045, 0.03604457899928093, -0.030994856730103493, -0.0006872630910947919, -0.045726120471954346, -0.021313317120075226, 0.02409937232732773, 0.05728824809193611, 0.025840656831860542, -0.012815850786864758, -0.004553457722067833, -0.025562049821019173, -0.002160280477255583, 0.02087799645960331, -0.04119878262281418, 0.01248500682413578, 0.004381506238132715, 0.01723000593483448, -0.019606858491897583, -0.03167395666241646, 0.02744263783097267, -0.018318308517336845, -0.004736292641609907, -0.015749914571642876, 0.07557173073291779, 0.006799714174121618, 0.028626710176467896, -0.029427701607346535, 0.0011731901904568076, 0.01491409819573164, -0.004566517658531666, 0.022845646366477013, 0.014731263741850853, -0.031343113631010056, -0.03858685493469238, 0.009176567196846008, 0.000777048000600189, -0.042696285992860794, 0.012032273225486279, 0.09779051691293716, -0.04415896534919739, -0.006799714174121618, -0.055721089243888855, 0.03792516887187958, 0.03823859989643097, 0.04440274462103844, -0.027547113597393036, -0.029079444706439972, 0.03670626878738403, -0.01056959480047226, 0.028626710176467896, -0.029932674020528793, 0.01016909908503294, 0.0363231860101223, 0.03062918782234192, 0.0333804152905941, 0.017517317086458206, 0.017848161980509758, -0.03830825164914131, 0.03823859989643097, 0.04579577222466469, 0.04092017561197281, -0.06616879254579544, 0.0695468857884407, -0.027460049837827682, 0.02791278436779976, -0.042765937745571136, -0.051959916949272156, -0.02524861879646778, -0.012728787027299404, -0.04725845158100128, -0.003889593295753002, 0.03181326016783714, -0.014174052514135838, 0.023263555020093918, 0.04126843437552452, 0.022149134427309036 ]
21,103
tfields.mesh_3d
centroids
null
def centroids(self): return self.triangles().centroids()
(self)
[ -0.024729471653699875, -0.03152383118867874, 0.02949218451976776, 0.01721903868019581, 0.011607031337916851, 0.02737727202475071, 0.01915076933801174, -0.01921737939119339, 0.06571211665868759, 0.05272289738059044, -0.026045044884085655, -0.022997574880719185, -0.021615389734506607, -0.016111625358462334, -0.004991689696907997, -0.01921737939119339, -0.0312906913459301, -0.023530466482043266, -0.003601177129894495, -0.010682797990739346, -0.0305746179074049, -0.03730236738920212, 0.002664454746991396, -0.01340553816407919, -0.02982524037361145, -0.01745217852294445, 0.013355579227209091, -0.04659465327858925, 0.05155720189213753, 0.0023771931882947683, -0.07313928753137589, 0.06274791061878204, -0.03527072072029114, -0.019800228998064995, 0.032889362424612045, -0.05502099171280861, 0.07054144144058228, 0.024995915591716766, 0.04403011500835419, 0.06634492427110672, -0.0037448080256581306, -0.020899318158626556, -0.043497223407030106, 0.03137395530939102, 0.05345562472939491, 0.024246538057923317, 0.04389689117670059, -0.009258979931473732, -0.04982530325651169, -0.021682001650333405, -0.04046640545129776, -0.05302264913916588, 0.03903426229953766, 0.02339724451303482, 0.01564534567296505, -0.02124902606010437, 0.03407171741127968, -0.005965880583971739, -0.0627146065235138, 0.02064952440559864, 0.008214014582335949, -0.036536335945129395, 0.0756039023399353, -0.045828621834516525, 0.016677821055054665, -0.04532903805375099, 0.008909271098673344, 0.0786680281162262, 0.018368085846304893, 0.014179895631968975, -0.011523767374455929, 0.005408010445535183, 0.02940892055630684, -0.04019996151328087, 0.04726076498627663, 0.03603675216436386, 0.051657117903232574, 0.06281451880931854, 0.015845179557800293, -0.02731066197156906, -0.07327250391244888, -0.007681123446673155, -0.01587015949189663, 0.031840234994888306, 0.05615338310599327, 0.008701110258698463, 0.03750219941139221, -0.01011660136282444, -0.07453811913728714, 0.07154060900211334, 0.023347284644842148, 0.04592853784561157, 0.009825177490711212, -0.008268136531114578, -0.026977604255080223, 0.028642889112234116, -0.033039238303899765, -0.07320589572191238, 0.04429656267166138, -0.022631213068962097, 0.008809353224933147, 0.02749384194612503, 0.04396350309252739, 0.020000062882900238, 0.030308173969388008, 0.024346455931663513, -0.00013803645560983568, -0.06341402232646942, 0.0074021886102855206, 0.06684450805187225, -0.03257295861840248, 0.023863522335886955, 0.05125745013356209, 0.045795317739248276, 0.0013010032707825303, -0.07020838558673859, 0.007077457848936319, 0.007676960434764624, -0.049858611077070236, 0.04459631070494652, -0.014637848362326622, 0.037402283400297165, 0.03607005625963211, -0.018484655767679214, -0.020466342568397522, 0.0408327691257, -0.0011407197453081608, 0.02403005212545395, -0.03906757012009621, -0.0014248588122427464, 0.06960888206958771, -0.007293945178389549, 0.01474609225988388, -0.0247794296592474, -0.0188843235373497, -0.016045013442635536, 0.10051655769348145, -0.024379761889576912, 0.037968479096889496, 0.013197377324104309, 0.04596184566617012, 0.02782689966261387, 0.04912588372826576, 0.023763606324791908, -0.060649652034044266, 0.06801021099090576, -0.004904262255877256, 0.0005729618715122342, 0.023913482204079628, -0.03470452502369881, 0.016594557091593742, -0.024363107979297638, 0.0653790608048439, -0.005495437886565924, -0.03636980801820755, -0.056253302842378616, -0.011240668594837189, -0.07713596522808075, 0.02133229188621044, -0.023380590602755547, -0.04243144392967224, 0.0006369712064042687, -0.005599518306553364, -0.002668617991730571, -0.022214891389012337, 0.0011875558411702514, 0.025179097428917885, -0.07960058748722076, -0.06457972526550293, -0.02809334546327591, -0.007556227035820484, -0.029192432761192322, -0.07600357383489609, 0.06960888206958771, 0.0567861944437027, -0.04306425154209137, -0.016428029164671898, 0.05069125071167946, -0.0017402219818904996, -0.002204420045018196, -0.014546257443726063, -0.03636980801820755, 0.01365533098578453, -0.04316416755318642, 0.013738594949245453, 0.030041728168725967, 0.057485610246658325, 0.002264786511659622, 0.05065794661641121, -0.03713583946228027, -0.011781886219978333, -0.029925158247351646, -0.03810170292854309, 0.10031672567129135, 0.03342225402593613, 0.011257321573793888, 0.0030162460170686245, -0.0026165777817368507, -0.11230676621198654, -0.07720258086919785, -0.0653124451637268, -0.028742805123329163, 0.014304791577160358, -0.023680342361330986, 0.046727877110242844, 0.024912651628255844, -0.048160020262002945, 0.015054169110953808, 0.013280642218887806, 0.017318956553936005, 0.04459631070494652, -0.03673617169260979, -0.017652012407779694, 0.023780258372426033, -0.014529605396091938, -0.04039979726076126, 0.041465576738119125, -0.0232806745916605, -0.00030599598539993167, 0.017052510753273964, -0.013080807402729988, -0.007468799594789743, 0.045262426137924194, 0.0035907691344618797, -0.07826835662126541, -0.009791871532797813, 0.015195718966424465, 0.002318908227607608, -0.04039979726076126, -0.0845298245549202, 0.041132520884275436, -0.0524231493473053, -0.0700085461139679, -0.02178191766142845, -0.05272289738059044, 0.023080838844180107, -0.005549559835344553, 0.00923400092869997, -0.008322257548570633, 0.008214014582335949, -0.04855968803167343, -0.043197471648454666, 0.04469623044133186, -0.010974222794175148, -0.018634529784321785, 0.045828621834516525, 0.004479614552110434, 0.017735276371240616, 0.016161583364009857, 0.010582881048321724, -0.042364832013845444, -0.02599508687853813, 0.02674446441233158, -0.03816831484436989, 0.0321066789329052, -0.0698087140917778, -0.01129895355552435, 0.05268959328532219, 0.01715242676436901, 0.03427154943346977, -0.008776048198342323, -0.004156965762376785, 0.05119083821773529, 0.07400523126125336, 0.03084106370806694, 0.02309749275445938, 0.03054131381213665, 0.05675288662314415, -0.07726918905973434, -0.009850156493484974, 0.06954226642847061, 0.027710329741239548, 0.0024937631096690893, -0.01646966114640236, -0.016269827261567116, 0.03367204591631889, -0.03996682167053223, 0.04446309059858322, 0.007943405769765377, 0.019317297264933586, 0.010724430903792381, -0.005828494671732187, -0.0641467496752739, -0.044329866766929626, -0.03367204591631889, -0.02358042448759079, -0.013288968242704868, -0.0700085461139679, -0.027593759819865227, -0.01113242469727993, 0.025828558951616287, -0.011199036613106728, -0.04599514976143837, -0.07054144144058228, 0.04769374057650566, -0.012497957795858383, -0.023746952414512634, 0.012098290026187897, -0.04373036324977875, -0.021498819813132286, -0.0018390982877463102, -0.02441306784749031, 0.018418043851852417, -0.026261532679200172, 0.014987558126449585, 0.025711989030241966, 0.043264083564281464, 0.025845210999250412, 0.0728062242269516, -0.035936832427978516, -0.0167694129049778, -0.0450625903904438, -0.02731066197156906, -0.018368085846304893, -0.032889362424612045, 0.0008602233720012009, 0.03222325071692467, -0.05039150267839432, 0.01805168204009533, 0.02779359370470047, 0.00414655776694417, -0.015653671696782112, -0.013663657009601593, 0.07194028049707413, -0.01631978526711464, 0.04149888455867767, 0.027810247614979744, -0.0015258167404681444, 0.007152395788580179, -0.016236521303653717, 0.00198793294839561, -0.0479268804192543, -0.06138237565755844, 0.02417992800474167, -0.02734396792948246, -0.023064186796545982, 0.08925923705101013, 0.0326562225818634, 0.001166739733889699, -0.022997574880719185, 0.033039238303899765, 0.004246474709361792, 0.02121572196483612, 0.03600344434380531, -0.0466279573738575, 0.045562177896499634, -0.01741887256503105, -0.01045798510313034, 0.019916798919439316, 0.0349043570458889, 0.0014685725327581167, 0.03307254612445831, -0.022814394906163216, -0.006802686024457216, 0.04129904881119728, 0.01948382519185543, -0.016344765201210976, -0.04802679643034935, 0.004691938403993845, 0.03527072072029114, 0.02621157467365265, -0.027294008061289787, 0.038268230855464935, -0.01846800185739994, -0.022398073226213455, 0.005695272237062454, 0.002194012049585581, -0.013380559161305428, -0.03500427305698395, -0.01861787773668766, -0.024496331810951233, -0.01223983895033598, -0.0538552924990654, -0.004350555129349232, 0.037901870906353, 0.003401343012228608, 0.005557886324822903, -0.013721941970288754, -0.02268117107450962, 0.027543801814317703, -0.020482996478676796, -0.031190773472189903, 0.032789446413517, -0.007169048767536879, -0.0655122846364975, 0.027144134044647217, -0.03388853371143341, -0.01434642355889082, -0.03610336408019066, 0.060349900275468826, 0.0012999625178053975, -0.034204937517642975, -0.00009796555241337046, -0.043763671070337296, -0.01365533098578453, 0.04502928629517555, 0.03275614231824875, -0.0262448787689209, 0.021498819813132286, -0.03550386056303978, 0.01846800185739994, -0.04796018451452255, 0.037901870906353, 0.03966706991195679, -0.05362215265631676, -0.009925094433128834, -0.010108275339007378, -0.009833503514528275, 0.04129904881119728, 0.007743571884930134, -0.023347284644842148, 0.06514591723680496, 0.11730261892080307, 0.007002520374953747, -0.03573700040578842, -0.025079181417822838, -0.040599629282951355, 0.01981688290834427, 0.058351561427116394, 0.03756881132721901, 0.012231512926518917, -0.030674535781145096, 0.01352210808545351, 0.023147450760006905, 0.021831875666975975, -0.007056641858071089, -0.010990875773131847, -0.0479268804192543, 0.04016665741801262, -0.02922573871910572, 0.010482964105904102, 0.004032069351524115, -0.006798523012548685, -0.03980029374361038, -0.07826835662126541, 0.03753550723195076, 0.00011227658251300454, 0.022930964827537537, -0.003773950506001711, 0.0022585417609661818, 0.05755222216248512, 0.018118292093276978, 0.00904249306768179, -0.02794346958398819, 0.046428125351667404, 0.03338894993066788, -0.07806852459907532, -0.05412173643708229, 0.030224908143281937, 0.027710329741239548, 0.014487972483038902, -0.04562878981232643, -0.00043973911670036614, -0.03690269961953163, 0.0008950902847573161, 0.08466304838657379, -0.08226504176855087, -0.02178191766142845, -0.06348063796758652, 0.02331397868692875, 0.019533785060048103, 0.0450625903904438, 0.00007246588211273775, -0.02358042448759079, -0.049025967717170715, -0.0814657062292099, -0.005158218089491129, 0.006557056680321693, -0.013039175420999527, 0.005195687059313059, 0.0903250202536583, -0.03896765038371086, -0.01831812597811222, -0.03144056722521782, 0.03423824533820152, 0.01700255274772644, -0.00516238110139966, -0.021298985928297043, 0.014637848362326622, -0.035337332636117935, -0.047826964408159256, 0.02591182291507721, -0.0014571236679330468, -0.06021667644381523, 0.02806003950536251, 0.03225655481219292, -0.06431327760219574, -0.008030833676457405, 0.016802718862891197, -0.06900937855243683, 0.02399674616754055, 0.060349900275468826, -0.026078350841999054, -0.029392266646027565, 0.031057551503181458, 0.01718573272228241, 0.0813990905880928, -0.015803547576069832, 0.0163281112909317, 0.07087449729442596, 0.012198206968605518, 0.034204937517642975, 0.014812703244388103, -0.005054137669503689, -0.01786850020289421, 0.0015060413861647248, 0.020000062882900238, -0.024063358083367348, 0.013072481378912926, 0.017768582329154015, -0.004529573023319244, -0.0524897575378418, 0.02884272299706936, -0.019050851464271545, 0.005749393720179796, 0.011923435144126415, -0.02286435291171074, 0.024829387664794922, -0.03189019486308098, 0.022015057504177094, -0.02396344020962715, 0.005532906856387854, -0.05062464252114296, 0.07413845509290695, -0.06757723540067673, 0.08279792964458466, -0.003880112199112773, -0.06594525277614594, -0.008817680180072784, 0.016045013442635536, 0.0015081230085343122, -0.030208256095647812, -0.040000125765800476, 0.024013398215174675, -0.04079946503043175, 0.03950054198503494, -0.003755216021090746, -0.04389689117670059, 0.021532125771045685, 0.00940052978694439, 0.01918407529592514, -0.009617016650736332, 0.030108338221907616, -0.0045961844734847546, 0.05771875008940697, -0.014646175317466259, 0.016677821055054665, -0.02486269362270832, -0.012964237481355667, 0.04139896482229233, 0.07147400081157684, -0.015970075502991676, -0.021798571571707726, -0.01352210808545351, 0.03460460528731346, 0.03756881132721901, -0.009833503514528275, -0.09665309637784958, -0.02862623520195484, 0.04546225816011429, 0.019800228998064995, -0.052556369453668594, 0.05995023250579834, 0.0033576292917132378, 0.016910960897803307, 0.027144134044647217, -0.03293932229280472, 0.026844382286071777, -0.015562080778181553, -0.025079181417822838, -0.024762777611613274, 0.03780195116996765, -0.013047502376139164, -0.035070884972810745, 0.02824322134256363, 0.01915076933801174, -0.02749384194612503, -0.04589523375034332, -0.030774453654885292, -0.054288268089294434, -0.003963376395404339, -0.017169080674648285, 0.030757799744606018, -0.005603681318461895, 0.030674535781145096, 0.07513762265443802, -0.053422316908836365, 0.05212339758872986, 0.0020077084191143513, -0.019234033301472664, -0.04166541248559952, -0.02462955377995968, 0.02614496275782585, 0.02011663280427456, -0.010016684420406818, -0.009783544577658176, -0.012114943005144596, -0.05112422630190849, 0.023330632597208023, -0.011823518201708794, 0.021049192175269127, 0.034737829118967056, -0.02403005212545395, 0.09512103348970413, -0.022431379184126854, -0.014995884150266647, 0.0031182446982711554, -0.011257321573793888, -0.01540387887507677, -0.0023647036869078875, -0.018418043851852417, -0.021898487582802773, 0.01760205440223217, -0.0699419379234314, -0.011423849500715733, -0.020732788369059563, 0.01587848551571369, 0.016161583364009857, 0.022464685142040253, 0.04339730739593506, 0.0016642434056848288, -0.05898436903953552, 0.010824347846210003, -0.0008898862870410085, 0.023746952414512634, 0.015220697969198227, 0.015412205830216408, 0.007185701280832291, 0.0029787772800773382, 0.011865150183439255, 0.01522902399301529, -0.005903432611376047, -0.03753550723195076, -0.009800197556614876, 0.022914310917258263, 0.02602839283645153, -0.001602836069650948, -0.03873451054096222, -0.003907172940671444, -0.011099119670689106, -0.026111656799912453, 0.04279780387878418, 0.05039150267839432, 0.0163281112909317, -0.010707777924835682, -0.06664467602968216, -0.01609497144818306, 0.0182348620146513, 0.04915919154882431, -0.0031057551968842745, -0.020482996478676796, 0.0021097068674862385, 0.024929305538535118, 0.021648695692420006, -0.021915141493082047, -0.00519985007122159, -0.03332233801484108, -0.02384687028825283, -0.017735276371240616, -0.0451292023062706, -0.04719415679574013, 0.01669447496533394, -0.029025904834270477, -0.003984192386269569, 0.03600344434380531, -0.023180756717920303, 0.007660307455807924, 0.016144931316375732, -0.028293179348111153, 0.026078350841999054, 0.03786856308579445, 0.06148229539394379, 0.0007275210809893906, -0.010099949315190315, -0.014188221655786037, 0.03930070996284485, 0.005653639789670706, -0.02952549047768116, 0.018484655767679214, -0.017835194244980812, 0.008676131255924702, 0.03332233801484108, -0.038268230855464935, 0.008751068264245987, -0.005083280149847269, -0.03443807736039162, -0.007243986241519451, -0.007039989344775677, 0.033005934208631516, 0.005562049336731434, -0.031124161556363106, -0.01263950765132904, 0.07054144144058228, 0.023114144802093506, 0.007864304818212986, 0.05898436903953552, 0.010333089157938957, -0.02629483863711357, -0.005249808542430401, 0.04459631070494652, 0.01259787566959858, 0.00628228485584259, -0.09452152997255325, 0.0069733778946101665, 0.0010970060247927904, 0.012697792612016201, 0.026944298297166824, -0.0026020065415650606, 0.011906782165169716, 0.07300606369972229, 0.007131579797714949, 0.018101640045642853, 0.00834723748266697, -0.035703692585229874, -0.00723982322961092, 0.04156549647450447, 0.029309002682566643, 0.005520417355000973, 0.029658712446689606, 0.011756906285881996, 0.04286441579461098, 0.020849358290433884, 0.016611211001873016, 0.08472966402769089, -0.03325572609901428, 0.02587851695716381, 0.036503031849861145, -0.024679511785507202, -0.1193009614944458, -0.006419670768082142, -0.023563772439956665, 0.006040818523615599, -0.005828494671732187, 0.04333069548010826, -0.00938387680798769, 0.05725247040390968, 0.03367204591631889, -0.007310597691684961, -0.06351394206285477, 0.022614559158682823, 0.00611159298568964, -0.08266471326351166, -0.02734396792948246, -0.012831015512347221, 0.013305621221661568, -0.034771133214235306, 0.01646966114640236, -0.016161583364009857, 0.028676195070147514, 0.0167694129049778, 0.0017849765717983246, 0.08366388082504272, -0.006935908924788237, -0.03990020975470543, -0.02331397868692875, -0.005978370551019907, -0.017885152250528336, -0.04652804136276245, -0.02576194703578949, -0.05928412079811096, -0.025212403386831284, -0.04832654818892479, -0.07067466527223587, 0.03159044310450554, 0.0035137496888637543, 0.036536335945129395, 0.03893434628844261, 0.02561207115650177 ]
21,104
tfields.core
cleaned
Args: stale (bool): remove stale vertices duplicates (bool): replace duplicate vertices by originals Examples: >>> import numpy as np >>> import tfields >>> mp1 = tfields.TensorFields([[0, 1, 2], [3, 4, 5]], ... *zip([1,2,3,4,5], [6,7,8,9,0])) >>> mp2 = tfields.TensorFields([[0], [3]]) >>> tm = tfields.TensorMaps([[0,0,0], [1,1,1], [2,2,2], [0,0,0], ... [3,3,3], [4,4,4], [5,6,7]], ... maps=[mp1, mp2]) >>> c = tm.cleaned() >>> assert c.equal([[0., 0., 0.], ... [1., 1., 1.], ... [2., 2., 2.], ... [3., 3., 3.], ... [4., 4., 4.]]) >>> assert np.array_equal(c.maps[3], [[0, 1, 2], [0, 3, 4]]) >>> assert np.array_equal(c.maps[1], [[0], [0]]) Returns: copy of self without stale vertices and duplicat points (depending on arguments)
def cleaned(self, stale=True, duplicates=True): """ Args: stale (bool): remove stale vertices duplicates (bool): replace duplicate vertices by originals Examples: >>> import numpy as np >>> import tfields >>> mp1 = tfields.TensorFields([[0, 1, 2], [3, 4, 5]], ... *zip([1,2,3,4,5], [6,7,8,9,0])) >>> mp2 = tfields.TensorFields([[0], [3]]) >>> tm = tfields.TensorMaps([[0,0,0], [1,1,1], [2,2,2], [0,0,0], ... [3,3,3], [4,4,4], [5,6,7]], ... maps=[mp1, mp2]) >>> c = tm.cleaned() >>> assert c.equal([[0., 0., 0.], ... [1., 1., 1.], ... [2., 2., 2.], ... [3., 3., 3.], ... [4., 4., 4.]]) >>> assert np.array_equal(c.maps[3], [[0, 1, 2], [0, 3, 4]]) >>> assert np.array_equal(c.maps[1], [[0], [0]]) Returns: copy of self without stale vertices and duplicat points (depending on arguments) """ if not stale and not duplicates: inst = self.copy() if stale: # remove stale vertices i.e. those that are not referred by any # map remove_mask = self.stale() inst = self.removed(remove_mask) if duplicates: # pylint: disable=too-many-nested-blocks # remove duplicates in order to not have any artificial separations if not stale: # we have not yet made a copy but want to work on inst inst = self.copy() remove_mask = np.full(inst.shape[0], False, dtype=bool) duplicates = tfields.lib.util.duplicates(inst, axis=0) tensor_indices = np.arange(inst.shape[0]) duplicates_mask = duplicates != tensor_indices if duplicates_mask.any(): # redirect maps. Note: work on inst.maps instead of # self.maps in case stale vertices where removed keys = tensor_indices[duplicates_mask] values = duplicates[duplicates_mask] for map_dim in inst.maps: tfields.lib.sets.remap( inst.maps[map_dim], keys, values, inplace=True ) # mark duplicates for removal remove_mask[keys] = True if remove_mask.any(): # prevent another copy inst = inst.removed(remove_mask) return inst
(self, stale=True, duplicates=True)
[ 0.03869253024458885, -0.030703149735927582, -0.0007363400654867291, 0.012119156308472157, -0.10752856731414795, -0.035952210426330566, -0.04369071498513222, 0.038634635508060455, 0.013884925283491611, 0.0489397756755352, -0.07375703006982803, -0.008076220750808716, -0.040564436465501785, 0.04724154993891716, 0.00018890951469074935, -0.010507771745324135, -0.054690588265657425, 0.040487244725227356, -0.010227950289845467, -0.08290429413318634, 0.006382819730788469, 0.001262814155779779, 0.02203833870589733, 0.08182360231876373, 0.0049644154496490955, -0.03570133447647095, -0.013827030546963215, -0.03153296560049057, -0.00481003150343895, 0.033424168825149536, 0.03394521772861481, -0.016818223521113396, -0.0072753531858325005, 0.005075379274785519, 0.009899883531033993, -0.056466005742549896, -0.00036093327798880637, 0.024836551398038864, -0.00723193259909749, -0.004855864215642214, -0.0004468697588890791, -0.04465561732649803, 0.021497992798686028, -0.03228558599948883, 0.09649010002613068, 0.056774772703647614, 0.07422018051147461, 0.03394521772861481, -0.040718819946050644, 0.001725966576486826, 0.0440380796790123, 0.04010128602385521, 0.009996374137699604, 0.07263774424791336, -0.005085028242319822, -0.010285844095051289, -0.004161135293543339, 0.03807499259710312, 0.04330475628376007, -0.011549864895641804, 0.006503432523459196, -0.009938480332493782, -0.006956935860216618, -0.026843545958399773, 0.030568063259124756, -0.06302732974290848, 0.017696283757686615, -0.027287399396300316, 0.019500648602843285, 0.01079724170267582, -0.0849112868309021, 0.0033795656636357307, 0.017725231125950813, -0.017262078821659088, 0.0347750298678875, 0.0032179446425288916, 0.008245078846812248, 0.03353995829820633, 0.02226991392672062, -0.092862069606781, -0.015496309846639633, -0.033327680081129074, -0.01046917587518692, 0.017667336389422417, -0.015911217778921127, 0.06206243112683296, 0.020243622362613678, -0.006498608272522688, 0.00849112868309021, -0.07850434631109238, 0.0013966941041871905, 0.047974877059459686, -0.03587501868605614, -0.016895415261387825, 0.0257242601364851, 0.011115659028291702, -0.026959333568811417, 0.015998058021068573, 0.005461339373141527, -0.016847170889377594, 0.05345551297068596, -0.006011332850903273, -0.09780236333608627, 0.043845098465681076, 0.02026292122900486, 0.021382205188274384, 0.017976105213165283, -0.08151483535766602, 0.0036039052065461874, 0.021478695794939995, -0.06020982190966606, 0.06059578061103821, -0.02016643062233925, 0.07966222614049911, 0.0011645148042589426, -0.05928351730108261, -0.007613068446516991, -0.025010233744978905, -0.06893252581357956, -0.04419246315956116, 0.01009286381304264, 0.05094677209854126, -0.047048572450876236, 0.001869495608843863, 0.019278721883893013, 0.0032324183266609907, 0.07626577466726303, 0.029699651524424553, -0.00001567021718074102, -0.02587864361703396, -0.04179951176047325, 0.00824025459587574, -0.00009686701378086582, 0.0210927352309227, 0.03765043616294861, -0.03456275165081024, 0.05171869322657585, 0.00592449214309454, -0.03844165429472923, 0.028117215260863304, 0.015187541022896767, 0.046045076102018356, 0.049132756888866425, 0.04689418897032738, -0.0033602677285671234, -0.054767780005931854, -0.03739956021308899, -0.014685792848467827, -0.018342766910791397, 0.03328908234834671, -0.00703895278275013, -0.005273183807730675, 0.010584963485598564, -0.0009516335558146238, -0.08352182805538177, -0.013556858524680138, -0.014155097305774689, -0.04782049357891083, 0.013855977915227413, 0.024913743138313293, -0.012649851851165295, 0.003758289385586977, 0.03859603777527809, 0.01416474673897028, -0.03178383782505989, 0.015023508109152317, 0.06646238267421722, -0.03990830481052399, -0.07163424789905548, 0.009263048879802227, -0.007207810413092375, 0.041915297508239746, 0.028541771695017815, -0.0019382447935640812, -0.01963573507964611, 0.041722316294908524, -0.00841393694281578, -0.01421299111098051, 0.001996138831600547, -0.013923521153628826, -0.02379445731639862, 0.00014390592696145177, 0.0031648750882595778, -0.026920737698674202, 0.07267633825540543, 0.011154254898428917, -0.022405000403523445, -0.000727294129319489, 0.022057635709643364, 0.0029525968711823225, -0.01728137582540512, 0.015110349282622337, 0.02209623157978058, 0.056118641048669815, 0.041066184639930725, 0.01278493832796812, -0.03527677804231644, -0.025704961270093918, -0.0004806412907782942, 0.04874679818749428, -0.115324966609478, -0.07202021032571793, 0.028985625132918358, -0.01466649491339922, -0.030703149735927582, 0.029776843264698982, 0.012813884764909744, -0.012080560438334942, 0.016297178342938423, 0.04951871931552887, 0.026418989524245262, -0.04700997471809387, 0.009948128834366798, -0.026862842962145805, 0.041490741074085236, -0.09911462664604187, -0.006696412805467844, 0.06156068295240402, 0.018516449257731438, 0.002790976082906127, -0.0054806373082101345, -0.006127121392637491, -0.02547338604927063, -0.0384802520275116, -0.02665056474506855, -0.00252321595326066, -0.015486660413444042, 0.007260879967361689, -0.04453982785344124, -0.08869370073080063, 0.05943790078163147, -0.039638131856918335, 0.01891205832362175, -0.040911801159381866, 0.04322756454348564, -0.034659244120121, -0.040487244725227356, -0.037206582725048065, 0.05928351730108261, -0.01088408287614584, -0.049711696803569794, -0.022173425182700157, 0.05430462583899498, 0.01184898428618908, 0.034678541123867035, 0.015554203651845455, 0.0032396549358963966, 0.029062816873192787, 0.028889134526252747, 0.02840668521821499, -0.03271014243364334, 0.0033289084676653147, -0.024161120876669884, 0.046353843063116074, 0.06287294626235962, -0.04353633150458336, 0.05828001722693443, -0.0019937267061322927, 0.010073565877974033, -0.015322627499699593, -0.008949456736445427, -0.02279096096754074, 0.01218669954687357, 0.03917497768998146, 0.07530087232589722, -0.00874200277030468, 0.04901697114109993, 0.04511876776814461, -0.005900369491428137, 0.008780598640441895, -0.04133635759353638, 0.03481362760066986, -0.027094420045614243, -0.02051379531621933, -0.03431187942624092, -0.006435889285057783, 0.006320101208984852, -0.06924129277467728, 0.08375340700149536, -0.00021845960873179138, -0.024431291967630386, -0.054690588265657425, 0.0024436116218566895, 0.013228792697191238, -0.010420930571854115, 0.010855135507881641, -0.005635021720081568, -0.0637606531381607, 0.0063683465123176575, -0.05202746018767357, 0.018419958651065826, -0.014483164064586163, 0.0017525013536214828, -0.07572542876005173, -0.0020902168471366167, -0.051911670714616776, -0.07958503067493439, -0.004969240166246891, -0.05279938131570816, 0.03085753321647644, 0.003104568924754858, -0.035952210426330566, -0.0010656125377863646, 0.03276803717017174, 0.04886258393526077, -0.0036039052065461874, -0.014878773130476475, -0.0009703285177238286, 0.07232897728681564, -0.017416462302207947, 0.0022638989612460136, 0.007362194359302521, -0.0495959110558033, 0.018400661647319794, 0.04986608400940895, 0.019191879779100418, -0.010334089398384094, -0.004689418710768223, 0.049480121582746506, 0.08390779048204422, -0.01763838902115822, 0.0001350107486359775, -0.06696412712335587, 0.06159927695989609, -0.054767780005931854, -0.06167646870017052, 0.0440380796790123, -0.024933042004704475, -0.008336744271218777, 0.028850538656115532, -0.01660594530403614, -0.022636577486991882, 0.010170056484639645, 0.034350473433732986, -0.05094677209854126, -0.024141822010278702, 0.04932573810219765, -0.030162803828716278, 0.0026317674200981855, -0.0018839691765606403, 0.05739231035113335, 0.01652875356376171, -0.01303581241518259, -0.031725943088531494, -0.02562776952981949, 0.03705219551920891, -0.015129647217690945, 0.028811942785978317, 0.03751534968614578, -0.00742008863016963, 0.02211553044617176, 0.06075016409158707, 0.024238312616944313, 0.0638764426112175, 0.052413422614336014, 0.02900492399930954, -0.0032975489739328623, 0.057971250265836716, -0.03373293951153755, -0.001600529532879591, 0.037708330899477005, -0.0328645259141922, -0.02201903983950615, -0.039464451372623444, 0.0489397756755352, -0.017464708536863327, 0.0060354555025696754, -0.09131822735071182, -0.055539701133966446, -0.04233985394239426, -0.013296335004270077, -0.007810873445123434, 0.02632249891757965, 0.026766352355480194, 0.029892632737755775, 0.015583151020109653, -0.03529607877135277, 0.040718819946050644, -0.006551677826792002, 0.009456029161810875, -0.005239412188529968, -0.006291154306381941, 0.02066817879676819, 0.00733324745669961, -0.0007278971606865525, 0.026380391791462898, 0.026418989524245262, -0.023312008008360863, 0.020243622362613678, 0.008370515890419483, -0.017590144649147987, 0.0029188254848122597, -0.016297178342938423, -0.025241808965802193, -0.015467362478375435, 0.032748740166425705, -0.06750447303056717, 0.0071499161422252655, 0.01570858806371689, -0.05388006940484047, 0.05125553905963898, -0.04345913976430893, -0.03043297678232193, 0.020455900579690933, 0.004983713384717703, -0.006334574893116951, 0.001821250538341701, -0.000847906747367233, 0.024083929136395454, 0.0069955321960151196, 0.04129775986075401, 0.057199329137802124, 0.024064630270004272, -0.010662156157195568, 0.014965614303946495, -0.018622588366270065, 0.004571218509227037, -0.016847170889377594, 0.06468696147203445, 0.04210827872157097, 0.02960316278040409, 0.05187307670712471, -0.03489081934094429, 0.001288142753764987, 0.0427258163690567, -0.04430825263261795, -0.045697711408138275, -0.006213962100446224, 0.019954152405261993, 0.05824142321944237, 0.02026292122900486, -0.09780236333608627, 0.005470988340675831, -0.023485690355300903, -0.022887451574206352, 0.020494496449828148, 0.026457585394382477, 0.03570133447647095, 0.032671548426151276, 0.06534309685230255, 0.0015679640928283334, -0.027576869353652, 0.016644541174173355, -0.07132548093795776, 0.00296224607154727, 0.032922420650720596, -0.057662483304739, 0.0070920223370194435, 0.03554695099592209, 0.02599443309009075, 0.062332604080438614, 0.014492812566459179, -0.04917135462164879, -0.05306955426931381, 0.011694599874317646, -0.00856832042336464, 0.013865627348423004, -0.05557829514145851, -0.06665536016225815, 0.024334803223609924, 0.056774772703647614, 0.024083929136395454, 0.009378837421536446, 0.06904831528663635, -0.025743557140231133, -0.03396451473236084, 0.025917239487171173, -0.0016222397098317742, -0.022848855704069138, -0.0072464062832295895, 0.0825183317065239, -0.09239891916513443, -0.028348790481686592, -0.012929673306643963, -0.017020853236317635, 0.013296335004270077, -0.00455192057415843, 0.023350603878498077, -0.012929673306643963, -0.02775055170059204, -0.04751172289252281, -0.0003331923799123615, 0.001963573507964611, -0.018776973709464073, 0.0005795436445623636, 0.043420542031526566, -0.010517420247197151, -0.02234710566699505, 0.015872621908783913, 0.0440380796790123, -0.059553686529397964, -0.06677114963531494, -0.004875162150710821, 0.010855135507881641, -0.02748038060963154, 0.0021987680811434984, 0.023775160312652588, 0.01615244150161743, 0.05959228426218033, -0.041915297508239746, 0.053262535482645035, -0.0071885124780237675, -0.00941743329167366, 0.009803393855690956, 0.035855721682310104, -0.047704704105854034, 0.05036783218383789, -0.009899883531033993, -0.018419958651065826, 0.0015269557479768991, -0.006701237056404352, -0.08707266300916672, 0.041413549333810806, 0.028020724654197693, 0.03184173256158829, -0.02093835175037384, -0.039792515337467194, 0.004805206786841154, -0.02489444427192211, 0.000037220299418549985, 0.006151243578642607, 0.07078513503074646, 0.001236279378645122, 0.01148232165724039, -0.05615723505616188, -0.016943661496043205, -0.0005294894217513502, -0.0377662256360054, 0.05723792687058449, -0.053687091916799545, 0.0015148945385590196, -0.06850796937942505, -0.015322627499699593, -0.03925217315554619, 0.03143647313117981, 0.010363036766648293, -0.021034840494394302, -0.09726201742887497, 0.021633079275488853, 0.006291154306381941, 0.04465561732649803, -0.04376790672540665, 0.052104651927948, -0.0226172786206007, -0.024508485570549965, 0.014955964870750904, 0.018748026341199875, -0.02983473800122738, -0.03601010516285896, 0.03245927020907402, -0.034659244120121, -0.051062557846307755, 0.02815581113100052, -0.017252430319786072, -0.034832924604415894, 0.03564344346523285, -0.022405000403523445, 0.0007170420140028, 0.032594356685876846, -0.0006639724597334862, -0.0027306696865707636, -0.015949813649058342, 0.06665536016225815, 0.03894340246915817, -0.0035628967452794313, 0.02790493704378605, 0.018748026341199875, 0.0288312416523695, 0.02497163787484169, 0.03942585363984108, 0.013846329413354397, 0.05650459975004196, -0.009788920171558857, 0.012678799219429493, -0.0021674088202416897, 0.020069940015673637, 0.046045076102018356, -0.01966468244791031, 0.004677357617765665, -0.07375703006982803, -0.0000059458252508193254, 0.03649255633354187, 0.009557344019412994, 0.007492456119507551, 0.010575314983725548, 0.03103121556341648, -0.02968035452067852, 0.06916410475969315, 0.04168372228741646, 0.0026558898389339447, 0.047280147671699524, 0.011443725787103176, 0.016538402065634727, 0.0010107337730005383, -0.02607162483036518, 0.013547210022807121, 0.03296101838350296, -0.016326123848557472, -0.04832224175333977, 0.05546250939369202, 0.015477011911571026, 0.02624530717730522, 0.048553816974163055, -0.02153659053146839, -0.018574343994259834, -0.07533946633338928, -0.016451561823487282, -0.01705944910645485, 0.023852352052927017, 0.030143506824970245, 0.019896257668733597, -0.001962367445230484, 0.031147003173828125, -0.058125633746385574, 0.01698225736618042, -0.03052946738898754, -0.03990830481052399, -0.028599664568901062, 0.02271376922726631, -0.042995985597372055, -0.0072898268699646, -0.06468696147203445, -0.046045076102018356, -0.0071885124780237675, -0.030162803828716278, -0.04037145525217056, 0.04376790672540665, 0.019201530143618584, -0.01966468244791031, 0.041567932814359665, -0.0483994334936142, -0.09826551377773285, -0.03184173256158829, 0.0303557850420475, 0.03276803717017174, -0.025203213095664978, 0.0011657209834083915, -0.010015672072768211, -0.006585448980331421, 0.06603782624006271, -0.02479795552790165, -0.041143376380205154, 0.017869966104626656, 0.026341795921325684, -0.031050512567162514, -0.024276908487081528, -0.00985646340996027, -0.015148945152759552, 0.036280278116464615, 0.029796142131090164, -0.0035050027072429657, 0.01958748884499073, 0.008746827021241188, -0.03826797381043434, 0.014434918761253357, 0.03986970707774162, -0.040911801159381866, 0.001820044475607574, 0.020127834752202034, 0.019220827147364616, -0.005075379274785519, 0.006667465902864933, 0.01572788506746292, -0.027962829917669296, 0.021826060488820076, 0.01000602263957262, 0.018651535734534264, 0.069550059735775, 0.006570975761860609, 0.02437339909374714, -0.06426240503787994, -0.029969824478030205, -0.05608004331588745, -0.024489186704158783, 0.009634535759687424, -0.04264862462878227, 0.008433234877884388, 0.002379687037318945, -0.07171144336462021, -0.02084186114370823, 0.047781895846128464, 0.06904831528663635, -0.008023151196539402, -0.01374019030481577, -0.024180417880415916, 0.036106593906879425, -0.008375340141355991, 0.018294522538781166, 0.007999029010534286, -0.02632249891757965, 0.003543598810210824, -0.03699430450797081, 0.06059578061103821, 0.03917497768998146, -0.055694084614515305, 0.03936795890331268, 0.009928830899298191, -0.07997099310159683, 0.04511876776814461, 0.017368217930197716, -0.013672647066414356, 0.010662156157195568, -0.038383759558200836, 0.026785651221871376, 0.01650945656001568, 0.04681699350476265, -0.0034422841854393482, 0.02682424709200859, -0.020475199446082115, -0.02336990088224411, 0.03218909725546837, 0.04558192193508148, 0.03251716122031212, 0.024604974314570427, 0.026168113574385643, -0.04453982785344124, 0.004011575598269701, -0.04681699350476265, 0.04801347106695175, -0.03010491095483303, -0.027036525309085846, 0.00787841621786356, -0.023099729791283607, 0.0067301844246685505, 0.0050609055906534195, 0.05538531765341759, -0.02607162483036518, -0.012920023873448372, -0.05160290375351906, -0.050985366106033325, -0.006903866305947304, 0.03817148134112358, -0.040718819946050644, 0.03672413155436516, 0.0008292117854580283, -0.0032372428104281425, 0.02412252500653267, -0.014531408436596394, -0.018941005691885948, 0.03095402382314205, -0.010440228506922722, 0.0063972934149205685, 0.005606074817478657, 0.04650822654366493, -0.02968035452067852, 0.021247118711471558, 0.008346393704414368, 0.034427665174007416, -0.04068022593855858, -0.09124103933572769, 0.039213575422763824, 0.02647688239812851, -0.023775160312652588, -0.01682787388563156, 0.022424299269914627, -0.01155951339751482, 0.007632366847246885, -0.01184898428618908, -0.05125553905963898, -0.05071519687771797, -0.023350603878498077, -0.012968269176781178, -0.026920737698674202, 0.059476494789123535, -0.020783966407179832, 0.06075016409158707, 0.013325282372534275, 0.04311177507042885 ]
21,105
tfields.core
closest
Args: other (Tensors): closest points to what? -> other **kwargs: forwarded to scipy.spatial.cKDTree.query Returns: array shape(len(self)): Indices of other points that are closest to own points Examples: >>> import tfields >>> m = tfields.Tensors([[1,0,0], [0,1,0], [1,1,0], [0,0,1], ... [1,0,1]]) >>> p = tfields.Tensors([[1.1,1,0], [0,0.1,1], [1,0,1.1]]) >>> p.closest(m) array([2, 3, 4])
def closest(self, other, **kwargs): """ Args: other (Tensors): closest points to what? -> other **kwargs: forwarded to scipy.spatial.cKDTree.query Returns: array shape(len(self)): Indices of other points that are closest to own points Examples: >>> import tfields >>> m = tfields.Tensors([[1,0,0], [0,1,0], [1,1,0], [0,0,1], ... [1,0,1]]) >>> p = tfields.Tensors([[1.1,1,0], [0,0.1,1], [1,0,1.1]]) >>> p.closest(m) array([2, 3, 4]) """ with other.tmp_transform(self.coord_sys): # balanced_tree option gives huge speedup! kd_tree = scipy.spatial.cKDTree( # noqa: E501 pylint: disable=no-member other, 1000, balanced_tree=False ) res = kd_tree.query(self, **kwargs) array = res[1] return array
(self, other, **kwargs)
[ 0.010182851925492287, -0.04950150474905968, 0.020292313769459724, 0.044547684490680695, -0.033227287232875824, -0.01220107451081276, -0.012412071228027344, 0.052657268941402435, 0.03735547140240669, 0.04241937771439552, -0.03286033868789673, -0.018558477982878685, -0.0012808835599571466, 0.010210373438894749, -0.006031734403222799, 0.014806416817009449, 0.000694337475579232, 0.0026764387730509043, 0.0023060489911586046, 0.009843423962593079, -0.019521720707416534, -0.007123409304767847, 0.0016398060834035277, -0.017448455095291138, 0.0029722920153290033, 0.027704697102308273, 0.0069215870462358, -0.005834498908370733, -0.013329445384442806, -0.04586870223283768, -0.009678295813500881, -0.03144758194684982, -0.028291815891861916, -0.012705630622804165, -0.008146281354129314, -0.02788817137479782, 0.032034702599048615, 0.03849301487207413, 0.039997510612010956, -0.03447491675615311, -0.018897905945777893, -0.06267499178647995, -0.03089715726673603, -0.019374940544366837, -0.0010933951707556844, 0.02293435111641884, -0.07416051626205444, -0.018934600055217743, -0.0475933663547039, 0.08351773023605347, -0.02440214902162552, -0.033153899013996124, -0.0000202646497200476, 0.017512669786810875, -0.02062256820499897, 0.061427365988492966, -0.019136423245072365, 0.004797866102308035, -0.07617874443531036, -0.014237645082175732, 0.0007958220085129142, 0.039997510612010956, 0.044474292546510696, 0.06183101236820221, -0.018017226830124855, -0.04322666674852371, -0.028328510001301765, 0.04183225706219673, -0.032108090817928314, 0.07676585763692856, -0.033429112285375595, -0.0011857060017064214, 0.00633446779102087, -0.03830954059958458, 0.004552468657493591, 0.07713281363248825, 0.0365481823682785, -0.001183412503451109, 0.010421369224786758, -0.00409378157928586, -0.025172743946313858, -0.050308793783187866, 0.029686223715543747, -0.061427365988492966, -0.04117174819111824, 0.013852348551154137, -0.019485024735331535, 0.05794134363532066, -0.0032291566021740437, -0.05452871322631836, -0.024273717775940895, 0.015127497725188732, -0.022805919870734215, -0.01579718105494976, 0.0038873725570738316, 0.04201573133468628, 0.012430418282747269, 0.01336614042520523, 0.004706128966063261, -0.007426143158227205, 0.059225667268037796, 0.03630966320633888, -0.002619102830067277, 0.026713931933045387, 0.0349152572453022, -0.026200203225016594, -0.03264017030596733, -0.012127685360610485, -0.004953819792717695, 0.03333737328648567, -0.07038094103336334, 0.04876760393381119, -0.01496237050741911, 0.012035947293043137, -0.052620574831962585, -0.01081584021449089, 0.024493888020515442, 0.05452871322631836, 0.0055225919932127, -0.012623067013919353, 0.016778770834207535, 0.03959386423230171, -0.006508769001811743, -0.023227911442518234, -0.03607114776968956, 0.007329818792641163, 0.06513355672359467, -0.00836186483502388, -0.0439605638384819, -0.017751187086105347, 0.05386820435523987, -0.01680629327893257, 0.026016728952527046, 0.06762881577014923, 0.04106166213750839, 0.030401775613427162, 0.0313558466732502, 0.01268728356808424, -0.0238333772867918, -0.002256740117445588, 0.07133500277996063, -0.006582158617675304, 0.01676042377948761, -0.012971669435501099, -0.03610784187912941, 0.012182727456092834, -0.04355692118406296, -0.00005124394010636024, 0.05951922759413719, -0.008733401075005531, -0.04128183424472809, 0.0030410951003432274, 0.06131727993488312, 0.04645582288503647, -0.006907826755195856, -0.07416051626205444, 0.07181204110383987, -0.05518922209739685, 0.0021088134963065386, 0.029649529606103897, 0.014210124500095844, -0.021136298775672913, 0.05353794991970062, -0.025007616728544235, 0.005582221318036318, 0.0026168094482272863, -0.01919146440923214, -0.004146530758589506, -0.02869546040892601, -0.019686847925186157, 0.019705194979906082, 0.007306884508579969, -0.012081815861165524, -0.031135674566030502, -0.07379356771707535, -0.05860185623168945, -0.010540627874433994, -0.030676988884806633, 0.021062908694148064, -0.05981278792023659, 0.0017934662755578756, 0.025136049836874008, 0.0016730609349906445, -0.018861209973692894, 0.03023664839565754, 0.015237582847476006, 0.013678046874701977, -0.026750627905130386, 0.020090492442250252, 0.01571461744606495, -0.0013623004779219627, -0.020842738449573517, -0.017466802150011063, 0.001999875530600548, 0.022604096680879593, 0.08557265251874924, -0.010779145173728466, 0.011705692857503891, -0.024934226647019386, 0.08770096302032471, -0.05970270186662674, -0.011228658258914948, 0.007760984357446432, -0.026787322014570236, 0.00930675957351923, 0.030291691422462463, 0.025943338871002197, -0.00888018123805523, -0.004011217970401049, -0.005389572586864233, 0.03188792243599892, -0.023998504504561424, -0.04586870223283768, -0.005022623110562563, 0.03407127410173416, 0.06355567276477814, -0.06010634824633598, -0.05067574232816696, -0.011687345802783966, -0.0026145160663872957, 0.04249276593327522, -0.05221693217754364, 0.057060666382312775, 0.03104393742978573, 0.019063033163547516, -0.013678046874701977, -0.006618853658437729, -0.00969664379954338, 0.013604656793177128, -0.0878477394580841, 0.058785330504179, -0.020292313769459724, 0.009999377653002739, -0.06623440980911255, -0.0020331302657723427, -0.03163105621933937, 0.015531143173575401, -0.047960314899683, -0.03841962665319443, 0.0041304766200482845, -0.05001523345708847, -0.012127685360610485, 0.010072766803205013, -0.028933977708220482, -0.01303588505834341, -0.024530582129955292, -0.01939328759908676, -0.03728208318352699, 0.047373197972774506, 0.004086901433765888, 0.01687968336045742, -0.047446586191654205, 0.017209937795996666, -0.021539943292737007, 0.028108341619372368, -0.11228658258914948, 0.03139254078269005, 0.006008800119161606, -0.00969664379954338, 0.0138431740924716, -0.04953819885849953, -0.007118822541087866, -0.08227010816335678, -0.010595669969916344, -0.0666380524635315, 0.027135925367474556, -0.025136049836874008, 0.0220536720007658, -0.015705443918704987, -0.015705443918704987, -0.009705817326903343, 0.07038094103336334, -0.023741640150547028, -0.024237021803855896, -0.015971481800079346, -0.015155019238591194, -0.013567962683737278, 0.02603507600724697, -0.00938473641872406, -0.03370432183146477, -0.036511488258838654, -0.040144287049770355, -0.06876635551452637, 0.03141088783740997, -0.034273095428943634, -0.005394159350544214, -0.000645602005533874, -0.08373790234327316, 0.03735547140240669, -0.018136484548449516, 0.01347622461616993, 0.02842024900019169, 0.010962620377540588, -0.01753101870417595, 0.0016466864617541432, 0.004885016940534115, -0.016705380752682686, -0.011430480517446995, 0.028438596054911613, -0.010338805615901947, 0.03352084755897522, -0.01873277872800827, -0.04579531401395798, 0.01776036247611046, 0.006641787942498922, 0.0293926652520895, 0.04939141869544983, -0.0045455885119736195, 0.0183107852935791, 0.0054262676276266575, -0.010329632088541985, -0.03553907200694084, 0.01123783178627491, 0.004304777830839157, -0.040914881974458694, 0.03188792243599892, 0.015182540751993656, 0.003499781945720315, 0.020090492442250252, 0.05959261953830719, 0.029906393960118294, 0.029649529606103897, -0.02475075237452984, 0.021521596238017082, 0.005944584030658007, -0.00834351684898138, -0.021961934864521027, -0.036016106605529785, 0.03093385323882103, 0.05394159257411957, 0.047409892082214355, 0.010880055837333202, 0.04575861617922783, -0.029025714844465256, 0.044621072709560394, 0.06179431453347206, 0.03421805053949356, 0.020365703850984573, -0.010421369224786758, -0.017274154350161552, -0.015191714279353619, 0.003474554279819131, 0.030108217149972916, -0.0014058757806196809, -0.04950150474905968, 0.015531143173575401, 0.04696955159306526, -0.018411697819828987, 0.06421618163585663, -0.031062286347150803, -0.017356717959046364, 0.014375251717865467, 0.022842613980174065, -0.02977796271443367, -0.009348041377961636, 0.0956270694732666, -0.027044186368584633, 0.061390671879053116, -0.007692181505262852, 0.0239801574498415, 0.02831016294658184, -0.01733836904168129, 0.014503683894872665, -0.08579282462596893, -0.05904219299554825, -0.0002373705356149003, 0.00026560845435597, -0.027135925367474556, -0.02065926417708397, 0.005284074693918228, -0.04792362079024315, -0.050492268055677414, 0.018897905945777893, 0.04271293431520462, 0.031117327511310577, -0.006912413518875837, -0.05665702000260353, 0.038639795035123825, -0.01459542103111744, -0.013045058585703373, 0.0006662429077550769, -0.04363030940294266, 0.019705194979906082, 0.030530208721756935, -0.02293435111641884, 0.022585749626159668, -0.0024333347100764513, 0.004057086538523436, 0.01703563705086708, 0.03212643787264824, -0.011118573136627674, -0.07522467523813248, 0.008435253985226154, 0.018292438238859177, -0.0010538334026932716, 0.0065500508062541485, 0.0024493886157870293, 0.009549863636493683, -0.05210684612393379, -0.05126286298036575, 0.009531516581773758, -0.004756584297865629, -0.06311533600091934, 0.012522155418992043, 0.03386944904923439, 0.016393475234508514, -0.021172992885112762, -0.008449015207588673, -0.02985135093331337, 0.04707963764667511, -0.10692912340164185, 0.04142861068248749, 0.07992162555456161, 0.013485398143529892, -0.03614453598856926, -0.009705817326903343, -0.08960909396409988, 0.08615977317094803, 0.0476667545735836, 0.011889168061316013, 0.011118573136627674, -0.03552072495222092, -0.017430106177926064, -0.08190315216779709, 0.011302048340439796, -0.007999502122402191, 0.004862082656472921, -0.02942935936152935, 0.02664054185152054, 0.039263609796762466, -0.036438096314668655, -0.029374316334724426, -0.01765027642250061, -0.014347730204463005, -0.03764903172850609, 0.06480330228805542, 0.02827346883714199, -0.025576388463377953, 0.020604221150279045, 0.004607511218637228, 0.05302422121167183, 0.006912413518875837, -0.009036133997142315, -0.030805420130491257, -0.06436296552419662, -0.053978290408849716, 0.051519725471735, 0.01454037893563509, -0.02418198063969612, -0.046712685376405716, 0.06832601875066757, -0.046015482395887375, 0.042309291660785675, 0.010705755092203617, 0.006935347802937031, 0.003201635554432869, -0.06740864366292953, -0.07445407658815384, -0.05133625119924545, 0.05896880477666855, 0.012861584313213825, 0.009999377653002739, 0.007724289316684008, -0.012329507619142532, 0.006270251702517271, 0.03364928066730499, 0.021411510184407234, -0.026016728952527046, 0.020494136959314346, -0.019705194979906082, 0.10707589983940125, -0.026402024552226067, -0.051923371851444244, -0.0037038978189229965, -0.003905720077455044, 0.0732431411743164, -0.008311408571898937, -0.02418198063969612, -0.004857495427131653, -0.04120844230055809, -0.03750225156545639, -0.11250675469636917, 0.010265415534377098, -0.06784898787736893, -0.01268728356808424, -0.03550237417221069, -0.04711633175611496, -0.02131977304816246, 0.021796807646751404, -0.009678295813500881, 0.02456727623939514, 0.0349152572453022, 0.04183225706219673, -0.0405479334294796, -0.004226800985634327, 0.02753956988453865, 0.03359423950314522, 0.01926485449075699, 0.01637512631714344, 0.03623627498745918, 0.0008376771584153175, 0.008692119270563126, -0.034585002809762955, 0.005742761772125959, 0.012944147922098637, -0.0018863504519686103, -0.00783896166831255, 0.05236371234059334, -0.026970796287059784, 0.06304194778203964, 0.028713807463645935, -0.03553907200694084, 0.08315078169107437, -0.0014311035629361868, 0.03834623470902443, 0.03841962665319443, 0.031337495893239975, 0.03557576611638069, -0.00000970230576058384, 0.0006249611033126712, -0.02309947833418846, 0.065977543592453, -0.024860836565494537, -0.015072455629706383, -0.03548402711749077, 0.012155205942690372, -0.042969800531864166, -0.0024929640349000692, 0.02603507600724697, 0.009687470272183418, -0.010999314486980438, -0.045244887471199036, -0.031612709164619446, -0.016668686643242836, 0.0009747099247761071, 0.07049102336168289, -0.016127435490489006, 0.02243896946310997, 0.054785579442977905, 0.005206097848713398, -0.018677735701203346, -0.01648521237075329, 0.050345487892627716, -0.002637450350448489, 0.05984948202967644, 0.0018278678180649877, -0.04935472458600998, 0.035740893334150314, -0.032456692308187485, 0.02069595828652382, 0.07173865288496017, -0.012714804150164127, 0.0702708512544632, 0.04197903722524643, -0.023081131279468536, -0.014733027666807175, -0.06594084948301315, -0.026126813143491745, 0.002825512085109949, 0.048987776041030884, 0.029062410816550255, 0.05449201911687851, 0.08748079091310501, 0.039263609796762466, -0.003832329995930195, -0.002708546817302704, 0.0037704072892665863, -0.005797803867608309, -0.011797429993748665, 0.018787819892168045, -0.030787073075771332, 0.06902322173118591, -0.06854619085788727, 0.004066260531544685, 0.030640292912721634, 0.031227413564920425, 0.015705443918704987, -0.026897408068180084, -0.041502002626657486, -0.017246631905436516, -0.01008194126188755, -0.01125617977231741, 0.06979382038116455, 0.0348418653011322, 0.03985073044896126, 0.015558663755655289, 0.01365052629262209, 0.02586994878947735, -0.013072580099105835, 0.017485149204730988, 0.009788380935788155, -0.0037635271437466145, -0.02097117155790329, 0.0137330899015069, 0.012751499190926552, -0.03166775405406952, -0.0552259162068367, 0.011338743381202221, 0.073096364736557, 0.003433272475376725, 0.0014047289732843637, -0.041612088680267334, -0.015577011741697788, -0.038676489144563675, 0.018897905945777893, -0.02093447558581829, -0.08190315216779709, -0.023759987205266953, -0.0032108090817928314, 0.02111794985830784, 0.06770220398902893, 0.008320583030581474, 0.0018232809379696846, -0.032034702599048615, -0.02425537072122097, -0.011879993602633476, 0.007926112040877342, 0.028181731700897217, 0.004612097982317209, 0.02873215451836586, -0.02352146990597248, 0.009669122286140919, 0.04564853385090828, -0.05276735499501228, -0.04289641231298447, -0.002396639669314027, 0.028108341619372368, -0.03830954059958458, -0.023778336122632027, 0.08615977317094803, -0.008600382134318352, -0.011907515116035938, 0.02366825006902218, -0.023778336122632027, -0.038713183254003525, -0.029025714844465256, 0.011595607735216618, -0.04263954609632492, -0.028089992702007294, 0.0887284204363823, -0.03286033868789673, 0.09026961028575897, -0.0477401465177536, 0.010623191483318806, 0.026346983388066292, -0.06722517311573029, -0.032841991633176804, -0.006128058768808842, -0.0037084845826029778, 0.019026337191462517, -0.06359236687421799, 0.042933106422424316, -0.027704697102308273, -0.000989043852314353, -0.01029293704777956, -0.03619958087801933, -0.06718847900629044, 0.015852224081754684, 0.05093260854482651, 0.013641351833939552, 0.03375936672091484, 0.014219298027455807, 0.04876760393381119, -0.041465308517217636, -0.08293061703443527, -0.006394097115844488, 0.033575888723134995, -0.046052176505327225, -0.0553726963698864, 0.014705506153404713, -0.00888018123805523, -0.00871046632528305, 0.0017338369507342577, -0.0074444906786084175, 0.05812482163310051, -0.028089992702007294, 0.014246818609535694, 0.015999004244804382, -0.045978788286447525, -0.020842738449573517, 0.05471218749880791, 0.10898403823375702, 0.018751125782728195, 0.05533600226044655, 0.020145533606410027, 0.032034702599048615, 0.030401775613427162, 0.05313430353999138, 0.014512857422232628, -0.011091052554547787, 0.03985073044896126, -0.021191339939832687, 0.04990514740347862, -0.00625649094581604, -0.00671059126034379, 0.009513168595731258, -0.0063528153114020824, -0.017485149204730988, -0.02942935936152935, 0.034695085138082504, 0.029245885089039803, 0.009880119003355503, -0.01946667768061161, -0.018356654793024063, -0.0404011532664299, -0.003291079308837652, 0.02478744648396969, 0.04098827391862869, 0.053354475647211075, -0.022182105109095573, -0.012503808364272118, -0.05236371234059334, 0.030346734449267387, -0.03841962665319443, -0.05640015751123428, 0.06128058582544327, 0.0018530956003814936, 0.008834311738610268, 0.022383926436305046, 0.026622194796800613, -0.019705194979906082, -0.06748203188180923, 0.06300525367259979, 0.03309885412454605, 0.010146156884729862, 0.0295394454151392, 0.059372447431087494, -0.024237021803855896, -0.07603196054697037, -0.0222004521638155, -0.07228907197713852, -0.010687408037483692, -0.010925925336778164, 0.0028576201293617487, -0.01088923029601574, 0.04282302036881447, 0.004073140677064657, -0.045942094177007675, 0.01245793979614973, 0.03414466232061386, -0.051813285797834396, 0.03324563428759575, -0.03630966320633888, -0.022805919870734215, 0.05584973096847534, 0.029979784041643143, -0.03530055284500122, -0.019686847925186157, -0.019485024735331535, -0.01310927513986826, 0.010797492228448391, 0.043079886585474014, 0.03031003847718239, -0.011650650762021542, -0.032731905579566956, 0.0667114406824112, -0.0035273032262921333, -0.011668997816741467, -0.04366700351238251, -0.007050019688904285, -0.025502998381853104, 0.005678545217961073, -0.06483999639749527, 0.07199551910161972, -0.015072455629706383, 0.030787073075771332, -0.01919146440923214, 0.059922873973846436 ]
21,106
tfields.core
contains
Inspired by a speed argument @ stackoverflow.com/questions/14766194/testing-whether-a-numpy-array-contains-a-given-row Examples: >>> import tfields >>> p = tfields.Tensors([[1,2,3], [4,5,6], [6,7,8]]) >>> p.contains([4,5,6]) True
def contains(self, other): """ Inspired by a speed argument @ stackoverflow.com/questions/14766194/testing-whether-a-numpy-array-contains-a-given-row Examples: >>> import tfields >>> p = tfields.Tensors([[1,2,3], [4,5,6], [6,7,8]]) >>> p.contains([4,5,6]) True """ return any(self.equal(other, return_bool=False).all(1))
(self, other)
[ 0.015253650955855846, -0.09330374747514725, -0.03678874671459198, 0.06292243301868439, -0.02589971013367176, -0.002978736534714699, -0.04442007094621658, 0.04801975190639496, -0.02593570575118065, -0.009971118532121181, -0.004389361944049597, -0.007253358606249094, 0.03072328306734562, -0.02237202227115631, -0.026097692549228668, -0.05593905225396156, -0.0020675670821219683, 0.026835625991225243, -0.02001423016190529, -0.008265769109129906, -0.04657987877726555, 0.024387843906879425, 0.027951527386903763, 0.0350429005920887, 0.030777277424931526, 0.04143233597278595, 0.03576283901929855, -0.019438281655311584, 0.021814070641994476, 0.05712694674730301, -0.0556870736181736, -0.034484948962926865, -0.026943616569042206, 0.006398434285074472, 0.016432546079158783, 0.00532302912324667, 0.015946589410305023, -0.005336528178304434, 0.041180357336997986, -0.031137246638536453, -0.011222007684409618, -0.061986517161130905, 0.05723493918776512, -0.015082665719091892, -0.003379201050847769, 0.007104871794581413, 0.00966514553874731, -0.023253943771123886, -0.017836421728134155, 0.06393034756183624, 0.021544095128774643, -0.03133522719144821, -0.009818132035434246, 0.005215039011090994, -0.07717717438936234, 0.04352015256881714, -0.0010495322057977319, 0.021058138459920883, -0.010502071119844913, 0.018808336928486824, -0.028383489698171616, -0.0167115218937397, 0.05518312007188797, 0.04427608475089073, 0.022516008466482162, 0.008400756865739822, -0.04427608475089073, -0.022192036733031273, 0.008454752154648304, 0.03693273290991783, -0.06619814783334732, 0.017314469441771507, 0.029355403035879135, 0.008499748073518276, -0.03554685786366463, 0.02015821635723114, 0.012274914421141148, 0.04236825183033943, 0.024441838264465332, -0.04380812495946884, 0.00588097982108593, -0.04715583100914955, 0.029787365347146988, 0.002393788192421198, -0.043592143803834915, 0.038804568350315094, -0.031281232833862305, 0.04686785489320755, 0.057486917823553085, -0.015271649695932865, -0.002969737397506833, 0.05457117408514023, 0.02849148027598858, -0.019600266590714455, 0.03275710344314575, 0.006510924082249403, 0.025377755984663963, -0.0020551932975649834, -0.015883594751358032, -0.01240090373903513, 0.03218115493655205, 0.026997612789273262, 0.06630613654851913, 0.005408521741628647, 0.047083836048841476, 0.04434807971119881, -0.050791509449481964, -0.028509479016065598, 0.007109371479600668, 0.01648654229938984, -0.026313673704862595, 0.03761667385697365, -0.05842283368110657, 0.005368025042116642, -0.0062139504589140415, -0.04809174686670303, 0.022821981459856033, 0.02528776414692402, -0.08804821223020554, -0.045679960399866104, 0.07631324976682663, 0.0614105686545372, 0.030831273645162582, -0.007617826107889414, 0.07508935779333115, -0.04370013624429703, 0.023001965135335922, 0.05277133360505104, -0.01745845563709736, -0.09013602882623672, 0.011311999522149563, -0.014173746109008789, 0.03819262236356735, 0.04747980087995529, 0.021022140979766846, 0.020860156044363976, 0.04603992775082588, -0.009971118532121181, -0.035600852221250534, -0.0039304024539887905, -0.0153526421636343, 0.0377606600522995, 0.061806533485651016, 0.0157576072961092, -0.010241094045341015, -0.021202124655246735, -0.04258423298597336, -0.007347850129008293, 0.034304965287446976, 0.024531830102205276, -0.045499976724386215, -0.042116276919841766, 0.016801513731479645, 0.013165835291147232, -0.0703737735748291, -0.029805364087224007, 0.027483569458127022, -0.03581683337688446, -0.0038021637592464685, -0.036374781280756, 0.024567827582359314, 0.034970905631780624, -0.020104221999645233, 0.07436942309141159, -0.06648612022399902, 0.06292243301868439, -0.10237494856119156, -0.002344292588531971, -0.026619646698236465, -0.019708257168531418, 0.03984847664833069, -0.05410321429371834, -0.013174834661185741, 0.006290443707257509, -0.08070486038923264, 0.027933530509471893, -0.020752165466547012, 0.01422774139791727, -0.005350026767700911, -0.013345819897949696, 0.008531245402991772, -0.005858481861650944, -0.020086223259568214, -0.015973586589097977, 0.05194340646266937, 0.008733727969229221, 0.0019337040139362216, -0.05194340646266937, 0.04146833345293999, 0.027609558776021004, -0.049999579787254333, -0.036410778760910034, 0.002951738890260458, 0.01770143397152424, 0.011968941427767277, -0.027123602107167244, 0.00804078858345747, 0.014893682673573494, -0.0012508893851190805, 0.02541375160217285, -0.005197040271013975, -0.09503159672021866, 0.019636264070868492, 0.005228537600487471, 0.00005969003541395068, -0.017800426110625267, -0.0010202847188338637, 0.0028549975249916315, -0.019474277272820473, -0.025179773569107056, 0.0001688756892690435, -0.05388723313808441, 0.00400014640763402, 0.05662299320101738, 0.08272068202495575, 0.07688920199871063, -0.08099284023046494, -0.038804568350315094, -0.0297513697296381, -0.013525803573429585, 0.08048888295888901, -0.006029466632753611, -0.0037796657998114824, -0.021544095128774643, -0.015631617978215218, -0.0013307572808116674, -0.006398434285074472, -0.00739734573289752, -0.02048218809068203, -0.025467747822403908, 0.016297558322548866, 0.05583106353878975, 0.014020759612321854, -0.014659703709185123, -0.04107236862182617, 0.009467163123190403, -0.01934828795492649, 0.05680297687649727, 0.05507512763142586, 0.015793602913618088, -0.003660426242277026, 0.04175630584359169, 0.009206186048686504, -0.06472227722406387, 0.004072139970958233, -0.03295508399605751, -0.04974760115146637, 0.056371014565229416, 0.011608973145484924, -0.006731404922902584, -0.04636390134692192, -0.054931141436100006, 0.04571595788002014, -0.016396550461649895, 0.03981247916817665, -0.04272822290658951, 0.011878949590027332, -0.029301408678293228, 0.038156624883413315, 0.015523627400398254, 0.0268896222114563, 0.00880122184753418, 0.05907077714800835, 0.03378301113843918, -0.08833618462085724, -0.011923945508897305, 0.002312795491889119, 0.07084173709154129, 0.021076135337352753, -0.05601104721426964, 0.027069605886936188, 0.0825766995549202, -0.03554685786366463, -0.010754048824310303, 0.02897743694484234, 0.008220773190259933, 0.017836421728134155, -0.01638755016028881, 0.025647731497883797, -0.0018763340776786208, -0.03212716057896614, -0.029229415580630302, 0.010970029979944229, -0.016621530055999756, -0.016315557062625885, -0.055435098707675934, -0.028887445107102394, 0.013732785359025002, -0.04179230332374573, -0.07019378989934921, 0.016720522195100784, -0.016594532877206802, 0.004027144052088261, -0.010448075830936432, -0.04107236862182617, 0.05133146047592163, -0.005089050158858299, 0.009782134555280209, 0.012238917872309685, 0.013165835291147232, 0.0007255608215928078, 0.014119750820100307, -0.0296073816716671, -0.05773889273405075, -0.01672952063381672, -0.016459545120596886, 0.004227376077324152, 0.0418642982840538, 0.005183541681617498, 0.006263446062803268, 0.032415132969617844, -0.01766543835401535, 0.0337110199034214, -0.006546921096742153, 0.01287786103785038, 0.0032779600005596876, -0.0061284578405320644, -0.0030709784477949142, -0.029805364087224007, 0.01078104693442583, 0.040856387466192245, -0.009251181967556477, -0.015532626770436764, 0.031227238476276398, -0.01805240288376808, -0.08243270963430405, 0.04208027943968773, -0.024873800575733185, -0.0709497258067131, 0.04927964136004448, 0.05323929339647293, -0.07238959521055222, 0.060402657836675644, -0.004276871681213379, 0.06447029858827591, -0.01583859883248806, 0.010439076460897923, 0.060402657836675644, 0.029157420620322227, 0.0643623098731041, 0.0007441216730512679, -0.017818424850702286, 0.0010765298502519727, -0.005309530533850193, 0.04632790386676788, -0.01608157716691494, -0.026925619691610336, 0.039884474128484726, 0.03884056583046913, 0.022588001564145088, 0.0033724517561495304, -0.02336193434894085, 0.013975763693451881, 0.0016086077084764838, -0.0009010453359223902, 0.04244024679064751, 0.01159097533673048, 0.04564396291971207, -0.037040725350379944, 0.030777277424931526, 0.07238959521055222, -0.035600852221250534, 0.020032228901982307, -0.008220773190259933, -0.06238248199224472, 0.039272528141736984, -0.05251935496926308, 0.021004142239689827, -0.06047465279698372, 0.02334393560886383, -0.0014095003716647625, 0.008211773820221424, 0.034664932638406754, 0.029211416840553284, 0.06688208878040314, -0.06432630866765976, -0.07253358513116837, 0.034934911876916885, -0.06940186023712158, -0.05928675830364227, 0.018079401925206184, 0.022264031693339348, 0.018826335668563843, -0.04395211115479469, 0.0066279140301048756, 0.028509479016065598, -0.013039846904575825, -0.0337110199034214, -0.05763090401887894, 0.002154184505343437, -0.019726255908608437, -0.021058138459920883, -0.10669456422328949, 0.0010939657222479582, -0.08272068202495575, -0.0431961789727211, -0.03088526800274849, 0.01841237209737301, -0.038336608558893204, -0.042296260595321655, -0.00476507842540741, -0.05100749060511589, -0.011105017736554146, -0.002879745326936245, -0.00038330984534695745, 0.05698296055197716, -0.007307353895157576, 0.006447929888963699, -0.01207693200558424, 0.01487568486481905, -0.04208027943968773, 0.00022469887335319072, 0.00935917254537344, 0.004904566332697868, -0.0559750497341156, 0.0060789622366428375, 0.026835625991225243, 0.02669163979589939, 0.04125235229730606, 0.011734962463378906, 0.0004583969712257385, 0.03216315433382988, -0.020266206935048103, 0.019312292337417603, -0.019258296117186546, 0.011698964983224869, -0.023451926186680794, 0.0034106983803212643, 0.02318195067346096, -0.023091956973075867, -0.10143902897834778, -0.09719140827655792, 0.014704699628055096, 0.00711837038397789, -0.053167298436164856, 0.00619595218449831, 0.01794441230595112, -0.0595027394592762, -0.021004142239689827, 0.019096311181783676, 0.05129546299576759, 0.01033108588308096, -0.014713698998093605, -0.06677409261465073, -0.05118747428059578, -0.02048218809068203, -0.029175419360399246, 0.03963249549269676, 0.03648277372121811, 0.02177807316184044, -0.011114017106592655, 0.03218115493655205, -0.014920680783689022, -0.01794441230595112, 0.014443722553551197, -0.02334393560886383, -0.012598886154592037, -0.0692218765616417, -0.016189567744731903, 0.025269765406847, -0.015847599133849144, 0.01902431808412075, -0.032415132969617844, -0.04146833345293999, 0.04046042263507843, -0.044888030737638474, 0.008481750264763832, -0.0006524422788061202, 0.03317106515169144, 0.06061863899230957, 0.020698169246315956, -0.027555562555789948, -0.05640701204538345, 0.01007910817861557, 0.0749453753232956, 0.021544095128774643, -0.01902431808412075, 0.0837285965681076, -0.07480138540267944, -0.008756225928664207, -0.07818508893251419, -0.03408898413181305, -0.014938678592443466, -0.06605415791273117, 0.04204428195953369, -0.03594282269477844, -0.031767189502716064, -0.016189567744731903, 0.039272528141736984, -0.049171652644872665, 0.016207566484808922, -0.016837511211633682, 0.003385950578376651, 0.04686785489320755, 0.036374781280756, -0.05147544667124748, 0.002456782618537545, 0.041504330933094025, -0.007266857195645571, 0.05003557354211807, 0.011851951479911804, 0.056083038449287415, -0.005152044352144003, 0.022516008466482162, -0.017431458458304405, -0.053491268306970596, 0.04190029576420784, -0.02831149660050869, -0.04780377075076103, 0.016882507130503654, -0.024837803095579147, -0.020842157304286957, -0.008108282461762428, -0.04305219277739525, 0.05194340646266937, 0.02865346521139145, -0.005350026767700911, -0.014425723813474178, -0.007001380901783705, 0.020230211317539215, 0.021382108330726624, 0.05849482864141464, 0.007914800196886063, 0.0014938678359612823, -0.04909965768456459, 0.0595027394592762, -0.01829538121819496, -0.03183918446302414, 0.019546272233128548, 0.000713186920620501, -0.035096894949674606, -0.006591917015612125, 0.005363525822758675, -0.00267951306886971, -0.035276878625154495, 0.08480849862098694, 0.03007533960044384, -0.018502363935112953, 0.06414632499217987, 0.05179942026734352, -0.010322087444365025, -0.014902682043612003, 0.018358375877141953, -0.0281315129250288, -0.0225520059466362, 0.051907408982515335, -0.027231590822339058, -0.032739102840423584, 0.06033066287636757, 0.017494453117251396, 0.03693273290991783, -0.009521158412098885, 0.05662299320101738, -0.0007879927870817482, -0.011995939537882805, 0.020410194993019104, -0.02687162347137928, -0.008495248854160309, 0.00911619421094656, 0.03054329939186573, 0.030147334560751915, -0.004783077165484428, 0.035276878625154495, 0.04078439250588417, -0.02208404615521431, -0.026475658640265465, 0.012112928554415703, -0.013849775306880474, 0.007680820766836405, 0.02415386401116848, 0.00791929941624403, 0.043736133724451065, -0.05691096559166908, -0.03282909840345383, 0.0010298463748767972, -0.0004083388776052743, 0.007896801456809044, 0.015298646874725819, -0.03855258971452713, -0.056371014565229416, -0.05932275205850601, 0.028383489698171616, -0.002082190942019224, -0.004488353151828051, 0.027483569458127022, -0.0016918503679335117, -0.0052060396410524845, 0.0399564653635025, -0.017170481383800507, 0.04460005462169647, 0.032541122287511826, 0.03725670650601387, -0.051583439111709595, -0.019708257168531418, 0.04747980087995529, 0.02159808948636055, -0.019780250266194344, 0.007671821396797895, 0.02721359394490719, 0.0004254936065990478, -0.0030664787627756596, -0.033495038747787476, -0.07213762402534485, -0.08322463929653168, -0.01648654229938984, -0.028275499120354652, -0.03322506323456764, 0.020824158564209938, 0.006888890638947487, 0.02620568312704563, 0.028869446367025375, 0.006173454225063324, 0.029355403035879135, -0.07260558009147644, 0.003905654652044177, -0.005826984532177448, -0.028239501640200615, 0.05489514395594597, 0.007559331599622965, 0.009224183857440948, 0.010214096866548061, 0.04002846032381058, 0.031461216509342194, -0.03826461732387543, -0.023397929966449738, -0.052087392657995224, 0.023379933089017868, -0.040856387466192245, -0.00028431860846467316, -0.02910342626273632, -0.007847306318581104, -0.02685362473130226, 0.0396684929728508, -0.023073960095643997, -0.004072139970958233, -0.08905612677335739, -0.018934326246380806, -0.019942237064242363, -0.0025377755519002676, 0.038480598479509354, -0.07652923464775085, 0.04873969033360481, -0.07354149967432022, -0.005084550473839045, 0.03500690311193466, 0.011383993551135063, -0.02348792366683483, -0.01430873479694128, 0.04989158734679222, -0.02237202227115631, -0.0076853204518556595, 0.0910719484090805, 0.01479469146579504, 0.046471890062093735, 0.023451926186680794, 0.016252562403678894, 0.013102841563522816, 0.037688665091991425, 0.0066279140301048756, 0.03858858719468117, 0.04632790386676788, 0.007289355155080557, -0.0034624438267201185, -0.05676697939634323, 0.022606000304222107, 0.016189567744731903, 0.040208443999290466, -0.03354903310537338, -0.017224477604031563, 0.05457117408514023, -0.017413459718227386, 0.014524715021252632, -0.012904859147965908, -0.06990581750869751, 0.059754714369773865, -0.023559916764497757, -0.029391400516033173, -0.02942739799618721, -0.012031936086714268, -0.020356200635433197, -0.004837071988731623, -0.007041877135634422, -0.0008689856622368097, 0.02669163979589939, -0.00699688121676445, 0.045319993048906326, 0.014452721923589706, 0.06706207245588303, 0.03243312984704971, -0.08063286542892456, 0.018628353253006935, -0.06400234252214432, 0.03801263868808746, 0.06706207245588303, 0.01128500234335661, 0.044564057141542435, -0.011294000782072544, 0.032541122287511826, -0.01312983874231577, 0.03353103622794151, 0.0029832362197339535, 0.0004724582249764353, -0.0045265997759997845, 0.033675022423267365, -0.0029314907733350992, 0.05644300952553749, -0.015244651585817337, 0.013525803573429585, 0.03840860351920128, -0.014767694287002087, -0.02222803421318531, 0.05874680355191231, 0.05194340646266937, -0.071129709482193, -0.017431458458304405, -0.015712609514594078, 0.011428989470005035, 0.0018448368646204472, 0.013660792261362076, 0.015172658488154411, 0.005048553459346294, 0.00019966984109487385, 0.038624584674835205, -0.014578710310161114, -0.06666610389947891, 0.01729647070169449, 0.04514000937342644, -0.03826461732387543, 0.03007533960044384, -0.01735946536064148, -0.02508978173136711, 0.03578083589673042, 0.012049933895468712, 0.062274493277072906, -0.01431773416697979, 0.003464693669229746, -0.03140722215175629, -0.05284332484006882, 0.011914946138858795, 0.00451310072094202, 0.054319195449352264, 0.007847306318581104, 0.04848771169781685, -0.029553385451436043, -0.0072713568806648254, 0.023883888497948647, -0.0024860301055014133, 0.013309823349118233, -0.02685362473130226, 0.017557447776198387, 0.013345819897949696, 0.042476244270801544, -0.014929679222404957, -0.014056757092475891, 0.028365490958094597, 0.05457117408514023, -0.004153132904320955, -0.05507512763142586, -0.036086808890104294, -0.007514335680752993, -0.06857393682003021, 0.007496336940675974, -0.017368463799357414, 0.037508681416511536, -0.038804568350315094, 0.03214515745639801, -0.022606000304222107, 0.07012179493904114 ]
21,107
tfields.core
copy
The standard ndarray copy does not copy slots. Correct for this. Examples: >>> import tfields >>> m = tfields.TensorMaps( ... [[1,2,3], [3,3,3], [0,0,0], [5,6,7]], ... [[1], [3], [0], [5]], ... maps=[ ... ([[0, 1, 2], [1, 2, 3]], [21, 42]), ... [[1]], ... [[0, 1, 2, 3]] ... ]) >>> mc = m.copy() >>> mc.equal(m) True >>> mc is m False >>> mc.fields is m.fields False >>> mc.fields[0] is m.fields[0] False >>> mc.maps[3].fields[0] is m.maps[3].fields[0] False
def copy(self, **kwargs): # pylint: disable=arguments-differ """ The standard ndarray copy does not copy slots. Correct for this. Examples: >>> import tfields >>> m = tfields.TensorMaps( ... [[1,2,3], [3,3,3], [0,0,0], [5,6,7]], ... [[1], [3], [0], [5]], ... maps=[ ... ([[0, 1, 2], [1, 2, 3]], [21, 42]), ... [[1]], ... [[0, 1, 2, 3]] ... ]) >>> mc = m.copy() >>> mc.equal(m) True >>> mc is m False >>> mc.fields is m.fields False >>> mc.fields[0] is m.fields[0] False >>> mc.maps[3].fields[0] is m.maps[3].fields[0] False """ if kwargs: raise NotImplementedError( "Copying with arguments {kwargs} not yet supported" ) # works with __reduce__ / __setstate__ return deepcopy(self)
(self, **kwargs)
[ 0.008482913486659527, -0.03520286828279495, 0.04725006967782974, 0.018295712769031525, -0.08511270582675934, -0.0035496223717927933, -0.015137232840061188, 0.016604019328951836, 0.027536464855074883, 0.01346509624272585, -0.04584195464849472, -0.020495891571044922, -0.02299920655786991, 0.07243967801332474, 0.02016342058777809, -0.015929296612739563, 0.01214498933404684, -0.00421945471316576, 0.011186689138412476, 0.012917496263980865, -0.003618072485551238, -0.018002355471253395, 0.047993242740631104, 0.05237404257059097, -0.00011512743367347866, -0.003415167098864913, 0.013905132189393044, -0.021649762988090515, 0.03766706585884094, 0.04345598444342613, -0.03780396655201912, -0.04283015429973602, 0.02579587884247303, 0.06782419234514236, 0.013924689963459969, -0.05624635890126228, -0.01898021250963211, 0.024055292829871178, 0.0023786381352692842, -0.029746422544121742, -0.015029668807983398, -0.07987139374017715, -0.01562616229057312, -0.0034909509122371674, 0.06129210442304611, -0.021239062771201134, -0.0036742992233484983, -0.013680225238204002, -0.006766773294657469, -0.01356288231909275, -0.03438146784901619, 0.0447467565536499, 0.022686291486024857, 0.012242774479091167, -0.003554511582478881, 0.03776485472917557, 0.05867144465446472, 0.013807347044348717, -0.06622050702571869, 0.04592018574476242, -0.06520353257656097, -0.03426412492990494, -0.01835438422858715, -0.06974078714847565, 0.03109586611390114, -0.05202201381325722, -0.037491053342819214, -0.01839349791407585, 0.06559467315673828, 0.006057826802134514, -0.04431649670004845, 0.02700842171907425, 0.032699551433324814, -0.017973018810153008, 0.008018430322408676, 0.06492973119020462, -0.0006206338875927031, 0.02513093501329422, -0.01919534057378769, -0.04146115481853485, -0.07060130685567856, -0.02262762002646923, -0.06524264812469482, 0.005197312217205763, -0.05362569913268089, 0.01317173894494772, -0.03254309296607971, 0.03179992362856865, -0.013768232427537441, -0.06422567367553711, 0.025639422237873077, 0.04959692806005478, -0.03805821016430855, 0.021649762988090515, -0.0301375649869442, -0.03426412492990494, -0.04384712502360344, 0.013005503453314304, -0.004371022805571556, 0.05487735942006111, 0.001926379045471549, -0.047367412596940994, -0.04588107019662857, 0.01427671778947115, 0.016975603997707367, 0.03897739574313164, -0.023312121629714966, -0.020222092047333717, -0.029316164553165436, -0.006248509045690298, -0.018031690269708633, 0.11288385838270187, -0.01890198327600956, 0.040483295917510986, -0.012663253583014011, -0.006214283872395754, 0.017523204907774925, -0.04592018574476242, -0.020554563030600548, 0.012526353821158409, -0.00834601279348135, 0.059492845088243484, 0.04889287054538727, -0.0038380902260541916, 0.020535005256533623, 0.02221691980957985, 0.03921208158135414, 0.015499039553105831, -0.062074389308691025, -0.06798064708709717, -0.03428368270397186, -0.05796738713979721, 0.0014533406356349587, 0.07709427922964096, 0.017885012552142143, 0.015743505209684372, 0.021806219592690468, -0.007270369678735733, -0.02863166481256485, 0.008815384469926357, 0.02121950499713421, -0.021180391311645508, 0.03520286828279495, 0.060822732746601105, 0.005334211979061365, -0.07071864604949951, -0.006952566094696522, 0.014550518244504929, 0.02428997866809368, 0.02867077849805355, -0.003852758090943098, 0.03457703813910484, 0.006673876661807299, 0.024661563336849213, -0.06410833448171616, 0.007930424064397812, 0.01477542519569397, -0.08964996784925461, -0.008008652366697788, 0.03551578149199486, -0.013973582535982132, -0.0021732880268245935, 0.05030098557472229, -0.010257724672555923, -0.016936490312218666, 0.03453792259097099, 0.053038984537124634, -0.06833267956972122, -0.031232764944434166, 0.003742749337106943, 0.015763061121106148, -0.016858261078596115, 0.026187021285295486, -0.012995724566280842, -0.0038185331504791975, 0.002904236549511552, -0.028357865288853645, -0.005158198066055775, -0.02921837940812111, -0.0366305373609066, 0.021023934707045555, -0.009372763335704803, -0.04310395568609238, 0.06809799373149872, 0.026480378583073616, 0.0020657237619161606, -0.04521612823009491, -0.006375630386173725, 0.04400358349084854, 0.04642866924405098, 0.0069427876733243465, 0.032445307821035385, 0.018696634098887444, -0.014785204082727432, -0.0052804299630224705, -0.04580284282565117, -0.03989658132195473, -0.022784078493714333, 0.043690670281648636, 0.14135906100273132, -0.04462941363453865, -0.08401750773191452, 0.03862536698579788, 0.03428368270397186, -0.021982233971357346, -0.04208698123693466, 0.0206719059497118, -0.013553103432059288, 0.03835156932473183, -0.011480046436190605, 0.02663683518767357, -0.010120823979377747, 0.04592018574476242, -0.018100140616297722, 0.031936824321746826, -0.03342316672205925, -0.04153938218951225, -0.0412655845284462, -0.037647511810064316, 0.01666269078850746, 0.06246552988886833, 0.005343990866094828, -0.07576439529657364, 0.009690566919744015, -0.053078100085258484, 0.0020559451077133417, -0.009309202432632446, 0.003803865285590291, -0.000037720084947068244, -0.027888493612408638, 0.018784640356898308, 0.02675417810678482, -0.00261576846241951, -0.06641607731580734, 0.02517005056142807, 0.00597959803417325, 0.010736874304711819, -0.05874967202544212, 0.04017038270831108, -0.0032073722686618567, -0.04721095412969589, -0.011812517419457436, 0.03895783796906471, 0.04345598444342613, 0.03520286828279495, -0.03412722423672676, -0.035065967589616776, 0.03467482328414917, 0.02491580694913864, 0.015303468331694603, -0.0013237744569778442, -0.014335389249026775, -0.055072929710149765, 0.06704190373420715, 0.05112238600850105, 0.006805887445807457, 0.03975968062877655, 0.003510508220642805, -0.03217151015996933, -0.005524894222617149, 0.0057742479257285595, -0.03950544074177742, 0.022529834881424904, -0.03649364039301872, -0.01894109882414341, -0.0067912195809185505, 0.02096526324748993, 0.02513093501329422, -0.0034689491149038076, 0.03696300834417343, 0.0890241414308548, 0.09653408080339432, 0.006375630386173725, 0.01839349791407585, -0.005725355353206396, -0.06492973119020462, 0.008805605582892895, -0.001025527948513627, 0.05499470233917236, -0.026030564680695534, 0.031819481402635574, 0.02325345017015934, -0.023449020460247993, -0.03880138322710991, -0.01787523366510868, -0.04537258297204971, 0.020104749128222466, -0.009372763335704803, -0.012643696740269661, -0.04247812554240227, 0.025189606472849846, 0.01676047593355179, 0.03522242233157158, -0.021825777366757393, 0.012888160534203053, 0.0064538586884737015, -0.052530501037836075, 0.04521612823009491, -0.018227262422442436, 0.030313579365611076, -0.0021842890419065952, -0.021571533754467964, 0.0023358569014817476, 0.053821273148059845, 0.03580913692712784, -0.017405861988663673, -0.015039446763694286, 0.052530501037836075, -0.0062974016182124615, 0.0397987961769104, 0.05421241372823715, -0.01673114113509655, -0.030861180275678635, 0.03901651129126549, -0.0026891077868640423, -0.01591951958835125, 0.04267369583249092, 0.02321433462202549, 0.0005262095364741981, 0.03136966750025749, -0.05280429869890213, -0.013846460729837418, -0.04087444022297859, -0.02704753540456295, -0.0023028540890663862, -0.046741582453250885, 0.06915407627820969, -0.05343012884259224, 0.021356405690312386, 0.04259546846151352, 0.039720568805933, 0.04904932901263237, 0.01945936307311058, 0.02579587884247303, -0.029570408165454865, -0.029648637399077415, -0.024642007425427437, -0.032777778804302216, -0.03522242233157158, -0.014863432385027409, 0.004478586837649345, -0.005045744124799967, 0.03195637837052345, -0.06219173222780228, 0.016388889402151108, 0.0017393638845533133, -0.04756298288702965, 0.02059367671608925, -0.02630436420440674, -0.008722487837076187, 0.016124868765473366, 0.03709990903735161, 0.02217780612409115, 0.01757209748029709, -0.006717880256474018, 0.05652015656232834, 0.020437220111489296, 0.008311787620186806, -0.028866350650787354, 0.0009760239045135677, 0.04255635291337967, -0.027888493612408638, 0.023312121629714966, -0.06543821841478348, 0.08096659183502197, 0.005358658730983734, -0.022060463204979897, -0.03279733657836914, -0.058358531445264816, -0.039270754903554916, -0.03254309296607971, -0.03418589383363724, -0.031604353338479996, 0.008174887858331203, -0.022940535098314285, -0.0412655845284462, -0.10529568791389465, 0.019547369331121445, -0.053078100085258484, -0.00327093293890357, 0.04193052649497986, -0.07517767697572708, -0.022764520719647408, -0.006884116213768721, -0.009084295481443405, 0.03234752267599106, 0.0198993980884552, -0.007744630798697472, 0.026265250518918037, -0.0054906695149838924, -0.04916667193174362, 0.003943210002034903, -0.03397076576948166, 0.018080582842230797, -0.03872315213084221, 0.021532420068979263, -0.02100437693297863, 0.023409906774759293, -0.04599841311573982, -0.06485150009393692, -0.00821889191865921, -0.04329952597618103, -0.022197363898158073, -0.01838371902704239, -0.014892768114805222, 0.01864774152636528, 0.006316958926618099, -0.00472549581900239, 0.05264784395694733, -0.003737859893590212, 0.06160501763224602, 0.042282555252313614, 0.03905562683939934, -0.005603122990578413, 0.023351235315203667, -0.014931882731616497, 0.010775988921523094, -0.05808473005890846, 0.04279103875160217, 0.03950544074177742, 0.00882516335695982, 0.04564638435840607, -0.030978523194789886, -0.026851965114474297, 0.05280429869890213, -0.034909509122371674, -0.03424456715583801, 0.02867077849805355, 0.04603752866387367, 0.0043441313318908215, -0.025189606472849846, -0.026363035663962364, 0.008155331015586853, 0.047523871064186096, 0.014237604103982449, 0.015939075499773026, 0.019586484879255295, -0.015391475521028042, 0.00015187347889877856, 0.05213935673236847, 0.025346064940094948, -0.03467482328414917, 0.01654534786939621, -0.09708168357610703, -0.05429064482450485, -0.004283015616238117, -0.005368437152355909, -0.021278176456689835, -0.03854713961482048, 0.003862536745145917, 0.06942787766456604, 0.08558207750320435, 0.003473838558420539, -0.042360782623291016, -0.020887034013867378, 0.0024409766774624586, -0.047836784273386, -0.04826704040169716, -0.0009686899720691144, -0.029081478714942932, 0.02863166481256485, 0.003967656288295984, 0.024368206039071083, -0.0038576475344598293, 0.05714598670601845, -0.04204786941409111, 0.02141507714986801, 0.036024268716573715, 0.03350139409303665, 0.02612834982573986, 0.07283081859350204, -0.0411873534321785, 0.014110482297837734, -0.029355280101299286, 0.022784078493714333, 0.004422360099852085, -0.036650095134973526, -0.006810776889324188, -0.04020949825644493, 0.016613798215985298, -0.04263458400964737, -0.01956692710518837, 0.026323921978473663, -0.0239575058221817, -0.003676743945106864, 0.025267835706472397, -0.0412655845284462, 0.04400358349084854, 0.0302940234541893, 0.02258850634098053, -0.03551578149199486, 0.0020583898294717073, -0.0605880469083786, 0.026558607816696167, -0.013846460729837418, 0.007729962933808565, -0.010169717483222485, 0.03909473866224289, 0.04650690034031868, 0.025150492787361145, -0.011812517419457436, -0.003300268668681383, 0.02700842171907425, 0.01842283271253109, -0.04787589982151985, -0.009773684665560722, -0.008199334144592285, -0.008448688313364983, 0.034479252994060516, -0.014618968591094017, -0.014100704342126846, -0.010590195655822754, -0.04857995733618736, 0.023488134145736694, 0.03375563770532608, -0.02575676515698433, -0.05843675881624222, 0.00963678490370512, -0.018921541050076485, -0.03829289600253105, 0.03854713961482048, 0.07670313864946365, -0.030098451301455498, -0.07678136229515076, -0.060783617198467255, -0.011900524608790874, 0.0190486628562212, -0.02133684791624546, 0.02808406576514244, -0.02425086311995983, -0.032484423369169235, -0.05683307349681854, -0.010267502628266811, 0.04122646898031235, -0.0016892487183213234, 0.03872315213084221, 0.02683240734040737, -0.004608152899891138, 0.042321667075157166, 0.026245692744851112, -0.005524894222617149, -0.017679661512374878, 0.05530761554837227, -0.053195443004369736, -0.047836784273386, 0.056872185319662094, -0.023820606991648674, -0.011186689138412476, 0.007901088334619999, 0.0014350058045238256, 0.01971360482275486, -0.03637629747390747, 0.03792130947113037, -0.031487010419368744, 0.01890198327600956, 0.061370331794023514, -0.015978189185261726, -0.036982566118240356, 0.031819481402635574, 0.013621553778648376, 0.02696930803358555, -0.04204786941409111, 0.07447361946105957, 0.019478918984532356, -0.00862470269203186, 0.02000696212053299, -0.0150687824934721, 0.07224410772323608, -0.03442057967185974, 0.004859951324760914, 0.034322794526815414, 0.04893198609352112, 0.00045042557758279145, 0.00667876610532403, 0.03113497979938984, -0.0031413668766617775, 0.013406424783170223, 0.025893663987517357, -0.028807679191231728, -0.036689210683107376, -0.008800717070698738, 0.06316959112882614, 0.016780033707618713, -0.005309765692800283, 0.01714184135198593, 0.007153026759624481, -0.02904236502945423, -0.020182976499199867, 0.01387579645961523, -0.03533976525068283, 0.030489593744277954, 0.11820340156555176, -0.027810264378786087, 0.012712146155536175, -0.0029775758739560843, -0.03835156932473183, -0.018031690269708633, -0.03084162250161171, -0.020065633580088615, 0.022823192179203033, 0.01927356980741024, 0.0364740826189518, -0.011900524608790874, -0.006918341387063265, -0.04920578375458717, -0.020887034013867378, -0.03549622371792793, 0.03109586611390114, 0.08073190599679947, 0.012467682361602783, 0.02037854865193367, -0.008394906297326088, 0.03537888079881668, -0.11022409051656723, -0.012193881906569004, -0.03905562683939934, -0.062074389308691025, 0.053743042051792145, 0.012829489074647427, 0.0103359529748559, -0.015802176669239998, -0.027829822152853012, -0.019107334315776825, -0.006874337792396545, -0.048110585659742355, -0.04850172623991966, -0.029159707948565483, 0.008722487837076187, -0.008942506276071072, 0.022138692438602448, 0.01464830432087183, -0.05601167306303978, 0.0028773455414921045, -0.0054368870332837105, 0.04060063883662224, -0.04185229539871216, -0.009103852324187756, -0.012311224825680256, -0.0017980353441089392, 0.11812517791986465, 0.012585025280714035, -0.03442057967185974, 0.01096178125590086, -0.02683240734040737, -0.0335405096411705, -0.05515115708112717, -0.018413055688142776, -0.029316164553165436, 0.014247382059693336, -0.011656060814857483, -0.05487735942006111, 0.03113497979938984, 0.008883834816515446, 0.03246486559510231, 0.0005677684675902128, 0.016868039965629578, -0.01942024752497673, 0.0016672469209879637, 0.01414959691464901, -0.011499603278934956, -0.029394393786787987, -0.00013537213089875877, -0.009079406037926674, -0.08644259721040726, 0.06852824985980988, 0.00833134539425373, 0.01735696941614151, -0.0068156663328409195, 0.03404899686574936, 0.05929727479815483, -0.07670313864946365, -0.037236809730529785, -0.04416004195809364, 0.016154203563928604, 0.043651554733514786, -0.0036229616962373257, 0.03520286828279495, -0.0270866509526968, -0.022823192179203033, -0.028807679191231728, 0.0476803258061409, 0.06496884673833847, 0.00012490600056480616, 0.01525457575917244, -0.03412722423672676, 0.08120127767324448, -0.017630768939852715, 0.04545081406831741, -0.055737871676683426, -0.0004614264762494713, 0.027986278757452965, -0.020437220111489296, 0.07670313864946365, 0.04592018574476242, 0.002796672284603119, 0.04533347114920616, -0.025639422237873077, -0.04208698123693466, 0.01144093181937933, 0.008277563378214836, -0.03328626602888107, 0.009920363314449787, -0.013680225238204002, 0.020182976499199867, 0.002321189036592841, 0.01173428911715746, -0.06500796228647232, 0.03651319444179535, 0.007006348576396704, -0.01094222441315651, 0.011480046436190605, 0.0317608080804348, 0.07185295969247818, 0.010003481060266495, 0.02630436420440674, -0.06395187228918076, 0.005182644352316856, -0.0507703572511673, -0.007910866290330887, 0.004845283459872007, -0.03895783796906471, -0.03047003783285618, 0.03133055195212364, 0.04588107019662857, 0.012350339442491531, 0.03954455256462097, -0.02700842171907425, -0.07212676107883453, 0.006810776889324188, 0.00173202995210886, 0.019478918984532356, 0.06395187228918076, 0.0222560353577137, -0.0038478688802570105, -0.01225255336612463, -0.00004186452133581042, -0.015675054863095284, -0.029237937182188034, 0.0034616151824593544, 0.058280300348997116, 0.005016408395022154, -0.006800998467952013, 0.06226995959877968, 0.044824983924627304, -0.07685959339141846, -0.014022475108504295, -0.033110253512859344, 0.016457339748740196, -0.003676743945106864, -0.06891939043998718, 0.0383320115506649, 0.0207110196352005, -0.023057878017425537, -0.014824318699538708, 0.027516907081007957, -0.031858593225479126, 0.012409010902047157, -0.06403010338544846, 0.04447295516729355, -0.023527249693870544, -0.02299920655786991, 0.003173147328197956, -0.014922103844583035, 0.08722487837076187, -0.03676743805408478, 0.05538584291934967, 0.009793242439627647, 0.012008088640868664 ]
21,108
tfields.core
cov_eig
Calculate the covariance eigenvectors with lenghts of eigenvalues Args: weights (np.array | int | None): index to scalars to weight with
def cov_eig(self, weights=None): """ Calculate the covariance eigenvectors with lenghts of eigenvalues Args: weights (np.array | int | None): index to scalars to weight with """ # weights = self.getNormedWeightedAreas(weights=weights) weights = self._weights(weights) cov = np.cov(self.T, ddof=0, aweights=weights) # calculate eigenvalues and eigenvectors of covariance evalfs, evecs = np.linalg.eigh(cov) idx = evalfs.argsort()[::-1] evalfs = evalfs[idx] evecs = evecs[:, idx] res = np.concatenate((evecs, evalfs.reshape(1, 3))) return res.T.reshape( 12, )
(self, weights=None)
[ -0.005926673300564289, -0.04939780384302139, 0.038270894438028336, -0.0019777724519371986, -0.011330665089190006, -0.03442608565092087, 0.03812915086746216, -0.007888942025601864, 0.05343750864267349, 0.056378696113824844, -0.012969580478966236, 0.02475205436348915, -0.0010459161130711436, -0.017744584009051323, -0.03081161342561245, 0.06793083995580673, 0.007104920689016581, -0.028738606721162796, 0.027888141572475433, 0.0037407141644507647, -0.06899391859769821, -0.10559932142496109, -0.00277508283033967, -0.028579143807291985, -0.009434838779270649, 0.015600704587996006, -0.029606789350509644, -0.0472007691860199, 0.0283310916274786, -0.028809478506445885, -0.12643569707870483, -0.005621037445962429, -0.026169495657086372, 0.005851371679455042, 0.047342512756586075, 0.005705198273062706, 0.026860497891902924, -0.05304771289229393, 0.028207065537571907, 0.06059558317065239, 0.025602519512176514, 0.00031311038765124977, 0.026417547836899757, 0.003629976650699973, -0.025389904156327248, 0.031502615660429, 0.04851190373301506, 0.04372803866863251, -0.02627580426633358, -0.009177927859127522, 0.01593734696507454, -0.03805827721953392, 0.04238147288560867, -0.02795901522040367, 0.02101355604827404, 0.031520333141088486, 0.014900843612849712, 0.008486924692988396, 0.017071299254894257, -0.03587896376848221, 0.0010503455996513367, -0.0724666491150856, 0.028118476271629333, 0.033238980919122696, -0.015007151290774345, 0.012588643468916416, 0.0072510940954089165, 0.022749921306967735, 0.05198463052511215, -0.03366421163082123, 0.03253025934100151, -0.05815049633383751, -0.031148254871368408, -0.0002843186375685036, 0.05414622649550438, 0.0006910022348165512, -0.09085793793201447, -0.01784203201532364, -0.03851894661784172, 0.039298538118600845, -0.02009221911430359, -0.04262952506542206, -0.05453602597117424, -0.025992315262556076, 0.07895144075155258, 0.0378456637263298, -0.02127932570874691, -0.02094268426299095, 0.028508272022008896, 0.03401857241988182, -0.0003056356217712164, 0.028579143807291985, -0.0017319351900368929, 0.037384994328022, 0.031502615660429, 0.0054970113560557365, 0.023281460627913475, -0.01830270141363144, 0.04291301220655441, 0.023086562752723694, 0.014475611038506031, 0.028153913095593452, 0.06927740573883057, 0.017478814348578453, -0.009399402886629105, -0.007140356581658125, -0.015777884051203728, -0.029039813205599785, 0.0303509458899498, -0.03993638604879379, 0.0002441762771923095, 0.038802433758974075, 0.07760486751794815, -0.0010702783474698663, -0.016123386099934578, -0.034762728959321976, -0.0036454799119383097, 0.07299818843603134, -0.030687587335705757, 0.016672644764184952, 0.021261608228087425, 0.0026111912447959185, -0.01214569341391325, 0.0034705144353210926, -0.07406126707792282, -0.016451168805360794, -0.03047497197985649, -0.04918518662452698, -0.004201382398605347, 0.029376454651355743, 0.04213342070579529, -0.06580467522144318, -0.009337389841675758, -0.03566634654998779, 0.015405806712806225, 0.022253816947340965, 0.039263103157281876, -0.034461524337530136, 0.08476294577121735, -0.01590191014111042, 0.004518091678619385, 0.039263103157281876, 0.014732522889971733, 0.009022895246744156, 0.014138969592750072, 0.05960337445139885, 0.06665514409542084, -0.04298388212919235, -0.017744584009051323, -0.029004376381635666, -0.006422777194529772, 0.05145309120416641, -0.026151778176426888, -0.05513843521475792, 0.015724731609225273, -0.04323193430900574, -0.003853666363283992, 0.024379977956414223, -0.03187469393014908, 0.0028370958752930164, -0.019472088664770126, 0.037278685718774796, -0.025425339117646217, 0.005014196038246155, 0.0008582159643992782, 0.03008517436683178, 0.05255160853266716, 0.029075248166918755, -0.05857573077082634, 0.017744584009051323, -0.06498964875936508, -0.0076630376279354095, -0.10793809592723846, -0.014900843612849712, 0.015104600228369236, -0.0004318763967603445, -0.012287437915802002, -0.01830270141363144, -0.02071234956383705, -0.019773295149207115, 0.00417701993137598, -0.03442608565092087, -0.01071939431130886, 0.01373145543038845, 0.04918518662452698, 0.03905048593878746, 0.028012167662382126, 0.017682570964097977, 0.02826021984219551, -0.038837868720293045, -0.0968111902475357, -0.018134379759430885, -0.03212274610996246, 0.0670449361205101, 0.04340911656618118, -0.019861886277794838, 0.02283851057291031, 0.016034796833992004, -0.08256591111421585, -0.039227668195962906, 0.028951222077012062, -0.05861116573214531, 0.03424890711903572, -0.07243121415376663, 0.03699519857764244, 0.01636257953941822, -0.00999295525252819, -0.06963176280260086, 0.044295016676187515, 0.03901505097746849, 0.026949087157845497, 0.006094994489103556, 0.021102145314216614, -0.02177543006837368, 0.02684278041124344, 0.0023542800918221474, 0.021137582138180733, -0.018621625378727913, 0.009195645339787006, 0.043798912316560745, 0.014440175145864487, -0.026523856446146965, -0.03088248521089554, 0.04553527757525444, -0.049787599593400955, -0.053827304393053055, -0.0015392517670989037, 0.006223449949175119, -0.011702743358910084, -0.032317645847797394, -0.006861297879368067, -0.02131476253271103, -0.011162344366312027, -0.05846942216157913, -0.04209798201918602, 0.05255160853266716, -0.03844807296991348, 0.03517024219036102, 0.0021460936404764652, 0.031449463218450546, -0.024610310792922974, -0.02508869767189026, -0.0303509458899498, 0.04149557277560234, 0.0008050619508139789, -0.019808731973171234, 0.052835095673799515, 0.007153645157814026, 0.006568951066583395, 0.014714804477989674, -0.012712669558823109, -0.04472024738788605, -0.005302113480865955, -0.008885580115020275, 0.001925725839100778, -0.03210502862930298, 0.047767747193574905, 0.006697406526654959, 0.04245234280824661, -0.053295765072107315, 0.014537624083459377, -0.013474543578922749, 0.0285614263266325, 0.03212274610996246, -0.038731563836336136, -0.0011882138205692172, 0.03088248521089554, -0.025620236992836, -0.07094290107488632, 0.01823182962834835, -0.0008560012211091816, 0.06268630921840668, 0.001514889532700181, -0.004930035211145878, -0.03618016839027405, -0.012411464005708694, -0.05113416537642479, -0.018214110285043716, -0.07923492789268494, 0.06513138860464096, -0.023653538897633553, -0.0008067229646258056, -0.029837122187018394, 0.04698815196752548, -0.01467936858534813, -0.0030984363984316587, -0.06803714483976364, -0.09397630393505096, 0.011959654279053211, -0.011401536874473095, 0.023405486717820168, -0.030829330906271935, 0.0069277407601475716, -0.047767747193574905, 0.030723024159669876, -0.04553527757525444, -0.005749492906033993, 0.015140037052333355, 0.0369243249297142, 0.053827304393053055, -0.0028016597498208284, 0.0729273185133934, 0.04617312550544739, -0.05297683924436569, 0.004451649263501167, 0.02547849342226982, -0.002183744218200445, -0.041779059916734695, 0.03616245090961456, 0.004227959550917149, -0.03986551612615585, 0.007645319681614637, -0.05159483477473259, 0.043267372995615005, -0.018657060340046883, 0.02776411548256874, 0.011162344366312027, -0.07774661481380463, 0.04925605654716492, 0.025141851976513863, 0.014032660983502865, 0.002405219478532672, -0.0090583311393857, -0.025460775941610336, -0.0143958805128932, 0.023246023803949356, -0.052799660712480545, -0.04043249040842056, 0.047874052077531815, -0.02863229811191559, -0.017895186319947243, -0.00583365373313427, 0.03058127872645855, 0.04323193430900574, 0.00525338901206851, 0.01050677802413702, 0.08150283247232437, -0.009691749699413776, 0.005590030923485756, -0.0010664025321602821, 0.02101355604827404, -0.02207663655281067, -0.02211207151412964, -0.008646387606859207, -0.05673305690288544, -0.02710855007171631, -0.03249482437968254, -0.014041520655155182, 0.003747358452528715, 0.02531903050839901, -0.02081865817308426, -0.03908592090010643, 0.022980254143476486, 0.060347530990839005, -0.004115006886422634, 0.04549984261393547, 0.029961148276925087, -0.03517024219036102, 0.029465045779943466, -0.03341615945100784, -0.0010514529421925545, 0.0738486498594284, -0.02078322134912014, -0.03566634654998779, 0.015760166570544243, -0.022094354033470154, 0.06250912696123123, -0.010737111791968346, 0.040786851197481155, -0.02223609760403633, -0.015113459900021553, -0.008318603970110416, 0.014829971827566624, 0.027817269787192345, 0.02925242856144905, -0.049291495233774185, -0.08292026817798615, 0.015264062210917473, 0.017257338389754295, 0.009169068187475204, -0.0312722809612751, 0.0051559400744736195, 0.020924964919686317, -0.060347530990839005, -0.01975557766854763, 0.014209841378033161, 0.015210908837616444, 0.029925713315606117, -0.036215607076883316, 0.026949087157845497, -0.03742042928934097, 0.023777564987540245, -0.018409008160233498, -0.016539759933948517, -0.01654861867427826, 0.023423204198479652, 0.02863229811191559, 0.017753442749381065, -0.03915679454803467, 0.011295229196548462, -0.04542896896600723, -0.01033845730125904, -0.009169068187475204, 0.020109936594963074, -0.06849781423807144, -0.023139717057347298, -0.04195623844861984, -0.01876336894929409, 0.04975216090679169, -0.03618016839027405, 0.0033110524527728558, 0.05003565177321434, 0.031520333141088486, -0.0025779700372368097, -0.03387682884931564, 0.02078322134912014, 0.0008881150861270726, -0.04053879901766777, 0.05294140428304672, 0.02882719598710537, 0.010843420401215553, -0.02531903050839901, 0.03717237710952759, -0.0008814707980491221, 0.05946163088083267, -0.01247347705066204, -0.03469185531139374, -0.06669057905673981, 0.0552801787853241, -0.0589655265212059, -0.009939801879227161, 0.03352246806025505, -0.04606681689620018, 0.000936285883653909, 0.0010935332393273711, 0.024964671581983566, -0.0010414866264909506, 0.05517387390136719, -0.02898665890097618, 0.04443676024675369, -0.03649909421801567, 0.006573380436748266, -0.05053175613284111, -0.031750667840242386, -0.024504002183675766, -0.03710150718688965, 0.02207663655281067, -0.021722275763750076, -0.04712989926338196, -0.05056719109416008, 0.07873882353305817, -0.007065054960548878, -0.0003463316534180194, -0.0706239715218544, 0.019879603758454323, 0.09014921635389328, 0.06927740573883057, 0.018373573198914528, 0.00544385751709342, -0.015698153525590897, -0.014829971827566624, 0.021917173638939857, 0.006848009768873453, -0.09539374709129333, -0.030634433031082153, 0.011755897663533688, -0.0005221274914219975, -0.009815775789320469, 0.019082292914390564, 0.006325328256934881, 0.09922083467245102, 0.027586936950683594, -0.01567157730460167, -0.02058832347393036, 0.0692419707775116, 0.015476678498089314, -0.07147444039583206, -0.018107803538441658, -0.0013155619380995631, -0.02204119972884655, -0.03809371590614319, 0.03442608565092087, 0.014457893557846546, 0.00837175827473402, 0.025460775941610336, 0.017407940700650215, 0.012960721738636494, -0.036747146397829056, 0.02173999324440956, -0.01781545579433441, 0.013855481520295143, 0.07469911873340607, 0.015910770744085312, 0.05701654404401779, 0.05598890036344528, 0.026913652196526527, 0.045358095318078995, 0.007140356581658125, 0.011516704224050045, 0.005691909696906805, 0.055811721831560135, -0.0016245197039097548, 0.012340591289103031, -0.026647882536053658, -0.056874800473451614, -0.062438253313302994, 0.01918860152363777, -0.009014035575091839, 0.03051040694117546, -0.011897641234099865, -0.01571587100625038, -0.011968513019382954, 0.015742449089884758, -0.023015690967440605, 0.013571993447840214, -0.007445992436259985, -0.06279261410236359, 0.054394278675317764, 0.01735478825867176, 0.06849781423807144, 0.02802988700568676, -0.010683958418667316, -0.025797417387366295, 0.10035479068756104, -0.012686092406511307, 0.05871747434139252, -0.054287973791360855, -0.012136834673583508, 0.06261543184518814, 0.0810067281126976, -0.08844828605651855, -0.01975557766854763, -0.0016245197039097548, 0.07264382392168045, -0.02680734358727932, -0.054465152323246, -0.01647774688899517, -0.008969740942120552, -0.07197054475545883, -0.015591845847666264, 0.013474543578922749, -0.0068701570853590965, 0.018160955980420113, -0.009930943138897419, -0.006338616833090782, -0.010187854059040546, 0.022643612697720528, -0.02074778638780117, -0.010054968297481537, -0.015104600228369236, 0.005399562418460846, 0.019312627613544464, 0.013598569668829441, 0.015875333920121193, 0.0343906506896019, 0.006046269554644823, 0.00465097650885582, -0.08355811983346939, -0.032813746482133865, -0.007096061483025551, 0.014404739253222942, -0.0436217337846756, 0.05655587837100029, -0.01872793212532997, -0.012712669558823109, 0.04110577702522278, 0.031502615660429, 0.02018081024289131, -0.002019852865487337, -0.030173765495419502, -0.07377777993679047, 0.008792560547590256, 0.01959611475467682, 0.02928786538541317, -0.03869612514972687, 0.04642117768526077, -0.016265129670500755, 0.022873947396874428, 0.009266517125070095, -0.023582667112350464, -0.0364636592566967, -0.05060262605547905, 0.02310428023338318, 0.016238553449511528, -0.019968193024396896, -0.017097875475883484, -0.02475205436348915, 0.01605251431465149, -0.009922083467245102, 0.05368556082248688, -0.0055678836070001125, -0.03749130293726921, 0.007264382671564817, 0.043267372995615005, 0.04790949076414108, -0.05198463052511215, -0.020269399508833885, 0.025159569457173347, -0.027622371912002563, -0.02005678415298462, -0.02071234956383705, 0.020428862422704697, 0.09744903445243835, 0.04723620414733887, -0.010657381266355515, -0.010852279141545296, -0.012810118496418, -0.006050699390470982, 0.04344455152750015, -0.004690842237323523, -0.021491941064596176, -0.004192523192614317, 0.01621197536587715, 0.08355811983346939, -0.009372825734317303, 0.05163026973605156, -0.057122852653265, 0.009310812689363956, -0.0445430688560009, 0.059319887310266495, -0.012322873808443546, -0.04759056493639946, -0.0044184280559420586, -0.004814868327230215, -0.019844166934490204, 0.007671896833926439, 0.01406809687614441, -0.015591845847666264, -0.054323408752679825, 0.04252321645617485, 0.04741338640451431, -0.01017899438738823, 0.06339503079652786, -0.014962856657803059, -0.031024228781461716, -0.006914452183991671, 0.007277671247720718, 0.007220087572932243, 0.002060825703665614, -0.016185399144887924, 0.011685024946928024, 0.05209093913435936, 0.011206638999283314, 0.009408261626958847, -0.01925947330892086, 0.00035878963535651565, -0.03759761154651642, -0.006117141805589199, -0.006785996723920107, -0.044826555997133255, 0.028277939185500145, -0.05056719109416008, -0.029465045779943466, 0.0321936197578907, 0.025070980191230774, 0.01883424073457718, 0.022360123693943024, 0.02097811922430992, -0.009656313806772232, -0.005656473804265261, 0.021988045424222946, -0.006599957589060068, -0.016796670854091644, -0.06374938786029816, 0.11063123494386673, 0.03642822057008743, -0.0013820044696331024, 0.051240473985672, -0.03710150718688965, -0.044826555997133255, 0.04922062158584595, 0.03858981654047966, -0.011197780258953571, -0.01975557766854763, -0.047838617116212845, 0.03511708974838257, -0.007614313159137964, -0.03706606850028038, -0.036321911960840225, -0.031856976449489594, 0.06421005725860596, 0.0693482756614685, 0.0369243249297142, -0.008916586637496948, 0.03366421163082123, -0.09156665951013565, -0.01428071316331625, 0.026647882536053658, -0.010267584584653378, -0.08121934533119202, -0.04943323880434036, -0.009833493269979954, 0.03414259850978851, 0.015414665453135967, 0.033540185540914536, 0.005904525518417358, -0.010249867103993893, -0.03649909421801567, -0.017372505739331245, 0.029110684990882874, 0.008340751752257347, 0.03431977704167366, -0.039333973079919815, 0.05995773524045944, 0.029075248166918755, -0.026665600016713142, 0.04709446057677269, 0.003931182902306318, 0.0018349210731685162, 0.002522601280361414, -0.038802433758974075, -0.019046857953071594, 0.02882719598710537, -0.013075889088213444, -0.015290639363229275, 0.04624399542808533, 0.01418326422572136, 0.006954317446798086, 0.0012402604334056377, 0.026718754321336746, 0.00552801787853241, 0.03176838532090187, 0.014945138245821, -0.02928786538541317, -0.03408944606781006, 0.00583365373313427, 0.045747894793748856, -0.005488152615725994, 0.01273924671113491, 0.008185719139873981, 0.010994022712111473, -0.06470616161823273, 0.06630077958106995, 0.035258833318948746, -0.04043249040842056, 0.03954659029841423, -0.006790426094084978, -0.028667734935879707, -0.05673305690288544, 0.036818016320466995, -0.02200576476752758, 0.025336749851703644, -0.006945458706468344, -0.009452556259930134, -0.016424592584371567, -0.016406873241066933, -0.0053774151019752026, 0.01895826682448387, 0.06488333642482758, -0.05407535657286644, -0.03167979419231415, 0.05120503902435303, 0.02161596715450287, -0.043798912316560745, -0.022484149783849716, 0.0024938094429671764, 0.0004833693674299866, -0.05219724774360657, -0.042275164276361465, 0.0024295817129313946, 0.00024265363754238933, -0.008686252869665623, -0.035489168018102646, 0.04464937746524811, -0.010559932328760624, -0.003638835623860359, 0.0643872395157814, 0.036782581359148026 ]
21,109
tfields.mesh_3d
cut
cut method for Mesh3D. Args: expression (sympy logical expression | Mesh3D): sympy locical expression: Sympy expression that defines planes in 3D Mesh3D: A mesh3D will be interpreted as a template, i.e. a fast instruction of how to cut the triangles. It is the second part of the tuple, returned by a previous cut with a sympy locial expression with 'return_template=True'. We use the vertices and maps of the Mesh as the skelleton of the returned mesh. The fields are mapped according to indices in the template.maps[i].fields. coord_sys (coordinate system to cut in): at_intersection (str): instruction on what to do, when a cut will intersect a triangle. Options: 'remove' (Default) - remove the faces that are on the edge 'keep' - keep the faces that are on the edge 'split' - Create new triangles that make up the old one. return_template (bool): If True: return the template to redo the same cut fast Examples: define the cut >>> import numpy as np >>> import tfields >>> from sympy.abc import x,y,z >>> cut_expr = x > 1.5 >>> m = tfields.Mesh3D.grid((0, 3, 4), ... (0, 3, 4), ... (0, 0, 1)) >>> m.fields.append(tfields.Tensors(np.linspace(0, len(m) - 1, ... len(m)))) >>> m.maps[3].fields.append( ... tfields.Tensors(np.linspace(0, ... len(m.maps[3]) - 1, ... len(m.maps[3])))) >>> mNew = m.cut(cut_expr) >>> len(mNew) 8 >>> mNew.nfaces() 6 >>> float(mNew[:, 0].min()) 2.0 Cutting with the 'keep' option will leave triangles on the edge untouched: >>> m_keep = m.cut(cut_expr, at_intersection='keep') >>> float(m_keep[:, 0].min()) 1.0 >>> m_keep.nfaces() 12 Cutting with the 'split' option will create new triangles on the edge: >>> m_split = m.cut(cut_expr, at_intersection='split') >>> float(m_split[:, 0].min()) 1.5 >>> len(m_split) 15 >>> m_split.nfaces() 15 Cut with 'return_template=True' will return the exact same mesh but additionally an instruction to conduct the exact same cut fast (template) >>> m_split_2, template = m.cut(cut_expr, at_intersection='split', ... return_template=True) >>> m_split_template = m.cut(template) >>> assert m_split.equal(m_split_2, equal_nan=True) >>> assert m_split.equal(m_split_template, equal_nan=True) >>> assert len(template.fields) == 1 >>> assert len(m_split.fields) == 1 >>> assert len(m_split_template.fields) == 1 >>> assert m_split.fields[0].equal( ... list(range(8, 16)) + [np.nan] * 7, equal_nan=True) >>> assert m_split_template.fields[0].equal( ... list(range(8, 16)) + [np.nan] * 7, equal_nan=True) This seems irrelevant at first but consider, the map field or the tensor field changes: >>> m_altered_fields = m.copy() >>> m_altered_fields[0] += 42 >>> assert not m_split.equal(m_altered_fields.cut(template)) >>> assert tfields.Tensors(m_split).equal( ... m_altered_fields.cut(template)) >>> assert tfields.Tensors(m_split.maps[3]).equal( ... m_altered_fields.cut(template).maps[3]) The cut expression may be a sympy.BooleanFunction: >>> cut_expr_bool_fun = (x > 1.5) & (y < 1.5) & (y >0.2) & (z > -0.5) >>> m_split_bool = m.cut(cut_expr_bool_fun, ... at_intersection='split') Returns: copy of cut mesh * optional: template
def cut(self, *args, **kwargs): """ cut method for Mesh3D. Args: expression (sympy logical expression | Mesh3D): sympy locical expression: Sympy expression that defines planes in 3D Mesh3D: A mesh3D will be interpreted as a template, i.e. a fast instruction of how to cut the triangles. It is the second part of the tuple, returned by a previous cut with a sympy locial expression with 'return_template=True'. We use the vertices and maps of the Mesh as the skelleton of the returned mesh. The fields are mapped according to indices in the template.maps[i].fields. coord_sys (coordinate system to cut in): at_intersection (str): instruction on what to do, when a cut will intersect a triangle. Options: 'remove' (Default) - remove the faces that are on the edge 'keep' - keep the faces that are on the edge 'split' - Create new triangles that make up the old one. return_template (bool): If True: return the template to redo the same cut fast Examples: define the cut >>> import numpy as np >>> import tfields >>> from sympy.abc import x,y,z >>> cut_expr = x > 1.5 >>> m = tfields.Mesh3D.grid((0, 3, 4), ... (0, 3, 4), ... (0, 0, 1)) >>> m.fields.append(tfields.Tensors(np.linspace(0, len(m) - 1, ... len(m)))) >>> m.maps[3].fields.append( ... tfields.Tensors(np.linspace(0, ... len(m.maps[3]) - 1, ... len(m.maps[3])))) >>> mNew = m.cut(cut_expr) >>> len(mNew) 8 >>> mNew.nfaces() 6 >>> float(mNew[:, 0].min()) 2.0 Cutting with the 'keep' option will leave triangles on the edge untouched: >>> m_keep = m.cut(cut_expr, at_intersection='keep') >>> float(m_keep[:, 0].min()) 1.0 >>> m_keep.nfaces() 12 Cutting with the 'split' option will create new triangles on the edge: >>> m_split = m.cut(cut_expr, at_intersection='split') >>> float(m_split[:, 0].min()) 1.5 >>> len(m_split) 15 >>> m_split.nfaces() 15 Cut with 'return_template=True' will return the exact same mesh but additionally an instruction to conduct the exact same cut fast (template) >>> m_split_2, template = m.cut(cut_expr, at_intersection='split', ... return_template=True) >>> m_split_template = m.cut(template) >>> assert m_split.equal(m_split_2, equal_nan=True) >>> assert m_split.equal(m_split_template, equal_nan=True) >>> assert len(template.fields) == 1 >>> assert len(m_split.fields) == 1 >>> assert len(m_split_template.fields) == 1 >>> assert m_split.fields[0].equal( ... list(range(8, 16)) + [np.nan] * 7, equal_nan=True) >>> assert m_split_template.fields[0].equal( ... list(range(8, 16)) + [np.nan] * 7, equal_nan=True) This seems irrelevant at first but consider, the map field or the tensor field changes: >>> m_altered_fields = m.copy() >>> m_altered_fields[0] += 42 >>> assert not m_split.equal(m_altered_fields.cut(template)) >>> assert tfields.Tensors(m_split).equal( ... m_altered_fields.cut(template)) >>> assert tfields.Tensors(m_split.maps[3]).equal( ... m_altered_fields.cut(template).maps[3]) The cut expression may be a sympy.BooleanFunction: >>> cut_expr_bool_fun = (x > 1.5) & (y < 1.5) & (y >0.2) & (z > -0.5) >>> m_split_bool = m.cut(cut_expr_bool_fun, ... at_intersection='split') Returns: copy of cut mesh * optional: template """ return super().cut(*args, **kwargs)
(self, *args, **kwargs)
[ 0.018265487626194954, -0.0007653066422790289, -0.016727235168218613, -0.018958212807774544, -0.04201164096593857, -0.007813513278961182, -0.02811642363667488, 0.004500155802816153, -0.08638669550418854, -0.02801455371081829, 0.0059288982301950455, -0.005271829664707184, -0.06589023023843765, -0.04751268029212952, -0.07420291006565094, -0.009051247499883175, -0.0233488567173481, 0.004326974973082542, 0.03653097525238991, -0.032659873366355896, -0.02872765064239502, -0.06752016395330429, 0.027586694806814194, 0.03936299309134483, 0.07212474197149277, -0.05358419939875603, 0.02023160085082054, 0.0031834719702601433, 0.04107442870736122, 0.017430145293474197, -0.0512615367770195, 0.020139915868639946, 0.01994636096060276, 0.01730789989233017, -0.01541309803724289, -0.07840000092983246, 0.05822952091693878, -0.00012129027891205624, 0.01042141392827034, 0.07440665364265442, 0.0004221283888909966, -0.031192930415272713, 0.04486403241753578, 0.00593908503651619, 0.02245239168405533, -0.027158835902810097, 0.05541788041591644, 0.003970426041632891, -0.025671517476439476, 0.011042827740311623, -0.030153846368193626, -0.07367318123579025, 0.017022661864757538, -0.007324532140046358, -0.029685238376259804, 0.013426611199975014, 0.059003740549087524, -0.004714085254818201, -0.004079937469214201, -0.010268607176840305, -0.011776299215853214, 0.050324324518442154, 0.03041871078312397, -0.012244906276464462, 0.003020478179678321, -0.034656547009944916, 0.005129210185259581, 0.03871101886034012, -0.02133180946111679, 0.008338149636983871, -0.05358419939875603, 0.029053637757897377, 0.08907609432935715, -0.010706652887165546, 0.02422494813799858, -0.02793305553495884, 0.0568440742790699, -0.015840956941246986, 0.05871850252151489, -0.07183950394392014, 0.0012205431703478098, -0.007436590269207954, -0.044823285192251205, 0.051791269332170486, 0.009942619130015373, 0.04498627781867981, 0.028564656153321266, 0.006845737807452679, -0.001095751067623496, -0.03989272192120552, -0.03388232737779617, 0.012825571931898594, -0.033046986907720566, -0.01708378456532955, 0.005327858496457338, 0.011195634491741657, 0.010839085094630718, -0.07485488802194595, 0.0008569906349293888, -0.003962785936892033, 0.0524432435631752, 0.042745113372802734, -0.04588274285197258, 0.016584616154432297, 0.05248399078845978, -0.014628689736127853, -0.01740977168083191, -0.00538388779386878, -0.03447318077087402, -0.017226403579115868, -0.009377234615385532, 0.09070602804422379, -0.020903950557112694, 0.06438253819942474, -0.014649064280092716, -0.03080582059919834, -0.056395843625068665, -0.005704781506210566, -0.010920582339167595, -0.03131517767906189, 0.0005217710277065635, -0.06633846461772919, -0.016238253563642502, 0.011929105967283249, 0.01935550943017006, 0.07554760575294495, 0.03661247342824936, 0.006917047780007124, -0.040544699877500534, -0.06373056024312973, -0.014883368276059628, 0.01800062321126461, -0.00563856540247798, -0.020903950557112694, -0.028748024255037308, 0.016808731481432915, -0.025467775762081146, -0.04445654898881912, -0.019905613735318184, 0.026506859809160233, -0.0026206341572105885, 0.01087983325123787, 0.010401039384305477, 0.03131517767906189, -0.10073014348745346, -0.01106320135295391, 0.04506777599453926, -0.051628272980451584, 0.005760810803622007, 0.014669438824057579, -0.04824615269899368, 0.0372237004339695, -0.01367110200226307, -0.02463243156671524, -0.04457879438996315, 0.027668191120028496, 0.005129210185259581, -0.021005820482969284, 0.03072432428598404, 0.025895634666085243, -0.01461850292980671, -0.028666527941823006, 0.007472245488315821, 0.05293222516775131, -0.004484875127673149, -0.01574927195906639, 0.10570145398378372, -0.06584948301315308, -0.0502428263425827, 0.04914261773228645, 0.006713305599987507, 0.053910188376903534, -0.010523284785449505, 0.04653472080826759, -0.05973721295595169, 0.05118004232645035, -0.016829105094075203, -0.013701663352549076, -0.0478794164955616, -0.025264034047722816, -0.0043320683762431145, -0.05994095653295517, 0.0228395015001297, 0.052402496337890625, -0.020211227238178253, -0.0007576663047075272, 0.007477338891476393, -0.019212890416383743, 0.020119542255997658, 0.007686174474656582, -0.008944282308220863, -0.06772390753030777, 0.014027650468051434, -0.016217879951000214, -0.004044282715767622, 0.0004915280733257532, 0.010462162084877491, -0.018214553594589233, -0.025753013789653778, 0.05631434544920921, -0.08015218377113342, -0.05036507174372673, 0.014700000174343586, -0.023185862228274345, 0.017633887007832527, 0.039851974695920944, 0.05354345217347145, 0.029400000348687172, 0.000034500877518439665, 0.02532515674829483, -0.008114033378660679, -0.03292474150657654, 0.0614079013466835, 0.08055966347455978, 0.043723076581954956, -0.03170228749513626, -0.040422454476356506, 0.004510343074798584, 0.01051309797912836, 0.0036113306414335966, -0.02355259843170643, 0.010706652887165546, -0.01585114374756813, 0.0468607060611248, -0.05272848159074783, 0.01042141392827034, 0.029644491150975227, 0.04938710853457451, 0.02023160085082054, -0.07607734203338623, 0.03740706667304039, -0.014537006616592407, 0.010192203335464, -0.05537712946534157, -0.016014136373996735, 0.041420791298151016, -0.011379001662135124, -0.030194593593478203, 0.023858211934566498, 0.01966112293303013, -0.01136881485581398, -0.02294137142598629, 0.006458627991378307, -0.0006417879485525191, 0.03398419916629791, 0.022859875112771988, -0.015188980847597122, 0.04470103979110718, 0.03708108142018318, 0.03213014453649521, -0.04478253796696663, 0.017919126898050308, -0.04637172445654869, 0.04311184957623482, 0.009774532169103622, -0.013691475614905357, 0.05293222516775131, -0.04007609188556671, 0.007008731830865145, -0.011959667317569256, -0.02263575792312622, -0.06438253819942474, 0.06894636154174805, 0.010869646444916725, 0.03630686178803444, -0.02114844135940075, -0.02591600827872753, 0.037142202258110046, 0.014037838205695152, 0.043845321983098984, -0.12126735597848892, 0.036755092442035675, 0.0004711538495030254, -0.006071517709642649, -0.02744407393038273, -0.024978794157505035, -0.0015089657390490174, 0.012143035419285297, 0.037834927439689636, -0.017908940091729164, 0.01406839955598116, 0.0006245971890166402, -0.07212474197149277, -0.04588274285197258, -0.031865280121564865, 0.0012702052481472492, 0.01267276518046856, 0.0075079002417624, 0.045230768620967865, -0.009428170509636402, -0.10178960114717484, -0.0018629677360877395, 0.027545945718884468, -0.04019833728671074, 0.027199584990739822, -0.0378960482776165, -0.045027025043964386, -0.017705198377370834, 0.004655509255826473, -0.04588274285197258, 0.052809979766607285, -0.056192100048065186, -0.01271351333707571, -0.0169207900762558, 0.010345010086894035, -0.01561683975160122, 0.012723700143396854, 0.0035935030318796635, 0.05994095653295517, -0.010146361775696278, 0.05822952091693878, -0.022595010697841644, -0.04979459568858147, -0.03936299309134483, 0.0735916867852211, 0.06739792227745056, 0.03302660956978798, -0.005720062181353569, -0.008394178934395313, 0.06605321913957596, 0.014842619188129902, -0.04030020907521248, -0.007956133224070072, 0.09910020977258682, 0.032782118767499924, -0.04547525942325592, -0.00872016604989767, -0.033780455589294434, -0.02491767145693302, 0.011185446754097939, -0.042419128119945526, 0.11743700504302979, -0.009285550564527512, 0.00010791969543788582, 0.0071004158817231655, -0.04205239191651344, 0.03777380287647247, -0.050813306123018265, -0.019090645015239716, -0.045312266796827316, 0.05407318100333214, -0.0016146569978445768, 0.017022661864757538, 0.037834927439689636, 0.005480665247887373, 0.028503533452749252, 0.02701621688902378, 0.003107068594545126, 0.03223201632499695, 0.08728315681219101, 0.03168191388249397, -0.0045332638546824455, 0.053013719618320465, -0.004655509255826473, 0.021861538290977478, -0.0556623712182045, -0.0257122665643692, -0.003392307786270976, -0.03618461638689041, -0.0031554573215544224, 0.059288982301950455, -0.051791269332170486, 0.00940779596567154, 0.044823285192251205, 0.015158419497311115, -0.07424365729093552, -0.00521070696413517, 0.027505196630954742, -0.048123907297849655, -0.04547525942325592, -0.007961226627230644, -0.060592930763959885, -0.013008940033614635, 0.00033553794492036104, -0.018622037023305893, 0.0014121881686151028, -0.008195529691874981, -0.004698804579675198, -0.07073929160833359, 0.03200789913535118, 0.007752391044050455, -0.00028157810447737575, -0.03657172620296478, -0.013294178992509842, -0.049305614084005356, 0.046330977231264114, -0.030540956184267998, -0.007838981226086617, 0.09616632014513016, -0.007665800396353006, 0.06271184980869293, 0.009285550564527512, 0.0666644498705864, -0.04099293053150177, -0.030846569687128067, 0.01756257750093937, 0.012886694632470608, -0.04221538454294205, 0.0027301455847918987, 0.005582536570727825, 0.0036877337843179703, -0.03208939731121063, 0.017195841297507286, 0.06703118234872818, 0.004408471751958132, -0.021128065884113312, 0.031763408333063126, 0.0145064452663064, 0.006784615572541952, -0.024652807042002678, 0.02880914695560932, 0.02944074757397175, -0.05044656991958618, -0.006596153602004051, 0.006280353292822838, 0.010482536628842354, 0.0037641371600329876, 0.03797754645347595, -0.042337629944086075, 0.032048650085926056, 0.01102245319634676, -0.004388097673654556, 0.0558253638446331, -0.02222827449440956, -0.010105613619089127, -0.032863616943359375, -0.05382869020104408, -0.00521070696413517, -0.002280639251694083, 0.018183991312980652, -0.06776465475559235, -0.07778877019882202, -0.040035344660282135, 0.03732557222247124, -0.015708524733781815, 0.02155592478811741, -0.009810186922550201, 0.039729729294776917, 0.013783159665763378, 0.026547608897089958, 0.005872868932783604, 0.02224864810705185, 0.01087983325123787, -0.08638669550418854, -0.018907276913523674, 0.0323135145008564, -0.003509459551423788, -0.0424598753452301, -0.0766478180885315, 0.018367359414696693, 0.069353848695755, 0.08866860717535019, -0.01422120537608862, 0.015902079641819, 0.015688149258494377, -0.045923493802547455, -0.030357588082551956, -0.031478170305490494, -0.00041098622023127973, 0.004242931492626667, -0.010777962394058704, 0.056803327053785324, -0.0025073024444282055, 0.014740748330950737, -0.012550519779324532, -0.042745113372802734, 0.012988565489649773, -0.03359708935022354, -0.023797089233994484, -0.01781725510954857, 0.02104656957089901, -0.01789875328540802, -0.044741787016391754, 0.039933472871780396, 0.02742370031774044, 0.04934636130928993, -0.01396652776747942, 0.014261954464018345, -0.004803222604095936, -0.06034843996167183, -0.007192099932581186, -0.04168565571308136, -0.03563451021909714, 0.003904209937900305, 0.0027505196630954742, 0.04015759006142616, -0.018988773226737976, 0.033760081976652145, 0.011460498906672001, -0.012255093082785606, -0.052117254585027695, -0.00975415762513876, 0.001846413710154593, -0.03877213969826698, 0.006723492871969938, 0.020924324169754982, -0.020038045942783356, 0.00971850287169218, 0.006193763110786676, -0.014129521325230598, -0.025264034047722816, 0.023898961022496223, 0.0033184511121362448, 0.0012823025463148952, -0.0016757795820012689, -0.02882952243089676, 0.060389187186956406, 0.01966112293303013, -0.009662473574280739, -0.038262784481048584, -0.023613721132278442, -0.06996507197618484, 0.01864241249859333, 0.04197089374065399, 0.0296037420630455, -0.014200831763446331, -0.02373596653342247, 0.003048492828384042, -0.07110603153705597, -0.012733887881040573, 0.052809979766607285, -0.02084282785654068, -0.03314885497093201, -0.018835967406630516, 0.003458523890003562, 0.0019954002927988768, 0.033760081976652145, -0.0390777550637722, 0.03577712923288345, -0.02355259843170643, -0.008190436288714409, 0.0016604989068582654, -0.0032955300994217396, 0.05664033070206642, 0.02412307634949684, 0.05533638224005699, -0.06413804739713669, -0.01211247406899929, 0.01620769314467907, -0.030785446986556053, -0.03950561210513115, 0.028340540826320648, 0.005704781506210566, -0.03070395067334175, 0.009738877415657043, 0.006723492871969938, 0.044415801763534546, 0.020771518349647522, -0.014282328076660633, 0.01676798239350319, 0.032782118767499924, -0.0012078091967850924, 0.04038170352578163, -0.006641995627433062, 0.04885737970471382, 0.03133555129170418, 0.013691475614905357, -0.0522802509367466, -0.032761745154857635, 0.02007879503071308, -0.006280353292822838, 0.02990935556590557, 0.11099874973297119, 0.05215800553560257, 0.0026868502609431744, 0.018092308193445206, 0.0411151759326458, 0.018734095618128777, -0.019864864647388458, 0.0011466866126284003, 0.01267276518046856, 0.046330977231264114, 0.018122868612408638, 0.08284158259630203, 0.03125405311584473, 0.007558835670351982, 0.021392932161688805, -0.018632223829627037, -0.044619541615247726, -0.0345139279961586, 0.02363409474492073, -0.013905405066907406, 0.0028040020260959864, 0.024204574525356293, 0.03200789913535118, 0.045841995626688004, -0.012550519779324532, 0.03968898206949234, 0.05602910742163658, 0.009387422353029251, 0.04706444963812828, 0.07501787692308426, -0.0015739084919914603, 0.0009906964842230082, -0.017195841297507286, 0.02591600827872753, -0.020924324169754982, -0.018571101129055023, -0.02304324321448803, -0.025182535871863365, -0.029644491150975227, -0.022920997813344002, -0.00030927429907023907, 0.06747941672801971, -0.033271100372076035, -0.053461953997612, 0.0037692307960242033, 0.020577963441610336, 0.026751350611448288, -0.05586611106991768, 0.02245239168405533, -0.029155509546399117, 0.022289397194981575, -0.031070686876773834, 0.0011938019888475537, -0.007013825234025717, -0.008623388595879078, -0.0009728689910843968, 0.13487733900547028, -0.044823285192251205, -0.02544740028679371, -0.020965073257684708, -0.02094469778239727, 0.02355259843170643, 0.0468607060611248, -0.007996881380677223, 0.04319334775209427, -0.04547525942325592, 0.010533471591770649, 0.026873596012592316, -0.006529937498271465, -0.03021496906876564, 0.0020692567341029644, 0.014231393113732338, -0.008241372182965279, 0.03420831635594368, -0.01141975075006485, -0.019987110048532486, -0.016533680260181427, -0.004077390767633915, -0.014272141270339489, -0.04015759006142616, 0.021780041977763176, -0.0017534563085064292, -0.030153846368193626, -0.07351018488407135, 0.04677921161055565, -0.025590021163225174, 0.040544699877500534, 0.01669667288661003, -0.004706444684416056, 0.07986694574356079, -0.037957172840833664, -0.01561683975160122, -0.013986902311444283, -0.016197504475712776, 0.017807068303227425, -0.026404989883303642, 0.02133180946111679, -0.001463123713620007, 0.013324740342795849, 0.03500290960073471, 0.0026792099233716726, -0.040340956300497055, -0.018723908811807632, -0.06764241307973862, 0.0578627847135067, -0.027953431010246277, 0.011053014546632767, 0.057903535664081573, -0.024184199050068855, -0.08015218377113342, -0.069353848695755, -0.035654883831739426, -0.004054469987750053, -0.02791268192231655, 0.060185447335243225, 0.0018298596842214465, -0.04938710853457451, -0.03632723540067673, 0.07729978859424591, 0.004637681879103184, -0.010849271900951862, 0.016085447743535042, 0.0600632019340992, 0.025467775762081146, -0.03846652805805206, 0.01241808757185936, -0.03651060163974762, 0.013304365798830986, 0.03547151759266853, 0.04150228574872017, 0.028870269656181335, -0.012499583885073662, -0.007146257907152176, 0.013722036965191364, -0.00451288977637887, 0.003746309783309698, 0.046330977231264114, 0.023491475731134415, 0.004505249671638012, -0.003048492828384042, -0.05847401171922684, -0.004540904425084591, -0.01769500970840454, -0.006529937498271465, -0.012143035419285297, -0.04278586432337761, 0.03651060163974762, -0.03862952068448067, 0.01087983325123787, 0.04588274285197258, 0.05476590245962143, -0.007777858525514603, 0.013813721016049385, -0.005613097921013832, -0.05496964603662491, 0.04783866927027702, 0.06723492592573166, 0.004507796373218298, 0.022004157304763794, -0.030500207096338272, 0.04266361892223358, 0.032170895487070084, 0.004301507491618395, -0.005172505043447018, 0.012469022534787655, -0.024102702736854553, -0.0333322249352932, -0.0008175155962817371, -0.009738877415657043, 0.07420291006565094, -0.017603326588869095, 0.00486434530466795, 0.055214136838912964, -0.03341372311115265, 0.009784718975424767, -0.04869438707828522, -0.026669854298233986, 0.02135218307375908, 0.017684822902083397, -0.07717754691839218, 0.005582536570727825, -0.032374635338783264, -0.004604573827236891, 0.052809979766607285, -0.011857796460390091, 0.04437505081295967, -0.03082619607448578, -0.02844241075217724, 0.02473430335521698, 0.05183201655745506, -0.012815384194254875, -0.07293970882892609, 0.021392932161688805, 0.015117671340703964, 0.019752806052565575, -0.016992099583148956, -0.023369230329990387, -0.010324636474251747, -0.019569437950849533, 0.053461953997612, 0.024286070838570595, 0.0624266117811203, -0.027097713202238083, 0.015902079641819, 0.023389605805277824, 0.008699792437255383 ]
21,110
tfields.core
disjoint_map
Find the disjoint sets of map = self.maps[map_dim] As an example, this method is interesting for splitting a mesh consisting of seperate parts Args: map_dim (int): reference to map position used like: self.maps[map_dim] Returns: Tuple(int, List(List(int))): map description(tuple): see self.parts Examples: >>> import tfields >>> a = tfields.TensorMaps( ... [[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]], ... maps=[[[0, 1, 2], [0, 2, 3]]]) >>> b = a.copy() >>> b[:, 0] += 2 >>> m = tfields.TensorMaps.merged(a, b) >>> mp_description = m.disjoint_map(3) >>> parts = m.parts(mp_description) >>> aa, ba = parts >>> assert aa.maps[3].equal(ba.maps[3]) >>> assert aa.equal(a) >>> assert ba.equal(b)
def disjoint_map(self, map_dim): """ Find the disjoint sets of map = self.maps[map_dim] As an example, this method is interesting for splitting a mesh consisting of seperate parts Args: map_dim (int): reference to map position used like: self.maps[map_dim] Returns: Tuple(int, List(List(int))): map description(tuple): see self.parts Examples: >>> import tfields >>> a = tfields.TensorMaps( ... [[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]], ... maps=[[[0, 1, 2], [0, 2, 3]]]) >>> b = a.copy() >>> b[:, 0] += 2 >>> m = tfields.TensorMaps.merged(a, b) >>> mp_description = m.disjoint_map(3) >>> parts = m.parts(mp_description) >>> aa, ba = parts >>> assert aa.maps[3].equal(ba.maps[3]) >>> assert aa.equal(a) >>> assert ba.equal(b) """ maps_list = tfields.lib.sets.disjoint_group_indices(self.maps[map_dim]) return (map_dim, maps_list)
(self, map_dim)
[ 0.03636574000120163, -0.0057919323444366455, -0.05286800116300583, 0.07683330774307251, -0.022294193506240845, -0.004004504065960646, 0.0050370823591947556, -0.0127517469227314, -0.03490351513028145, 0.037334226071834564, -0.03178916499018669, 0.010321034118533134, -0.07037673145532608, 0.007301632780581713, 0.013710739091038704, -0.06209711357951164, -0.022958841174840927, 0.052678100764751434, 0.019654590636491776, -0.018277820199728012, 0.013957607559859753, 0.016331350430846214, 0.06312257051467896, 0.03534028306603432, -0.04682919755578041, -0.054197296500205994, 0.0003100701724179089, -0.04994354769587517, 0.008820828050374985, -0.009661133401095867, -0.0502094104886055, -0.04682919755578041, 0.0217055045068264, 0.018277820199728012, -0.02136368490755558, -0.028693802654743195, 0.048120513558387756, 0.09639295190572739, -0.028750773519277573, -0.004540970083326101, -0.004830566700547934, -0.07455451786518097, 0.05199446156620979, -0.02062307856976986, 0.09456991404294968, 0.020148329436779022, 0.026737838983535767, -0.02140166610479355, -0.06205913424491882, 0.038017865270376205, 0.020452167838811874, -0.049639709293842316, 0.0032876338809728622, 0.007942543365061283, -0.05245022103190422, 0.008118200115859509, 0.02172449417412281, -0.022275201976299286, -0.03114350698888302, 0.022958841174840927, -0.03034592792391777, 0.0016307613113895059, -0.006000821944326162, 0.01087174192070961, -0.005250719375908375, -0.002582632238045335, -0.05423527583479881, -0.017062462866306305, -0.01196366362273693, 0.04842435568571091, -0.0458037406206131, -0.00025977648328989744, -0.006902844179421663, -0.026490969583392143, 0.06574317812919617, 0.015894582495093346, 0.08226443082094193, -0.008179917931556702, 0.08416342735290527, -0.03173219412565231, -0.06832581758499146, -0.03908130154013634, -0.01954065077006817, 0.0035107657313346863, 0.0021790959872305393, 0.057539526373147964, 0.03815079480409622, 0.003852584632113576, -0.010985681787133217, -0.08097311854362488, -0.016378825530409813, 0.0554126538336277, -0.01106164138764143, 0.028029154986143112, -0.02400328777730465, -0.005336173810064793, -0.0315992645919323, 0.004937385208904743, -0.061603374779224396, -0.04394272714853287, 0.028048144653439522, -0.03995484113693237, -0.035397253930568695, 0.026870768517255783, 0.028048144653439522, -0.05514679476618767, -0.018667113035917282, -0.03397300839424133, -0.029130572453141212, -0.0024497027043253183, -0.05286800116300583, 0.042233631014823914, -0.031979065388441086, 0.06638883799314499, -0.023737428709864616, -0.034998465329408646, 0.05795730650424957, 0.004692889750003815, -0.02964330092072487, -0.01691054366528988, -0.010444468818604946, 0.050437286496162415, -0.02808612585067749, -0.016559230163693428, 0.023053791373968124, 0.007463047280907631, 0.05510881543159485, 0.07231370359659195, -0.028370974585413933, -0.070604607462883, 0.029301481321454048, -0.005350416526198387, -0.02242712303996086, 0.06437590718269348, 0.033555228263139725, 0.007833351381123066, 0.01064386311918497, -0.0281051155179739, -0.00637112557888031, 0.049221932888031006, -0.021553585305809975, -0.04994354769587517, 0.04052453860640526, 0.05218436196446419, -0.04493020474910736, -0.031276434659957886, -0.007686179131269455, -0.04192979261279106, 0.03851160407066345, 0.027934206649661064, -0.07808664441108704, -0.009077192284166813, -0.021268736571073532, -0.024876825511455536, -0.09130364656448364, 0.010824267752468586, 0.051842544227838516, -0.008640424348413944, 0.045158084481954575, -0.03587200120091438, -0.017518222332000732, -0.015410338528454304, 0.023908337578177452, 0.022275201976299286, 0.010757802985608578, 0.024174196645617485, 0.06551530212163925, -0.047816675156354904, -0.0025612686295062304, -0.03418189659714699, -0.009713355451822281, 0.040296658873558044, -0.010957197286188602, -0.022636011242866516, 0.01803095079958439, 0.015942057594656944, -0.020357219502329826, 0.006494560278952122, -0.0273075383156538, -0.007966280914843082, -0.004054352641105652, 0.021610554307699203, -0.030440878123044968, 0.03378310799598694, -0.005431123543530703, 0.057159729301929474, 0.03102956712245941, -0.011052146553993225, 0.013520839624106884, 0.01757519133388996, -0.007852341048419476, -0.016777614131569862, -0.005587790627032518, 0.07011086493730545, 0.037638068199157715, 0.027079658582806587, -0.02252207137644291, 0.010529923252761364, 0.00420389836654067, 0.08454322814941406, -0.04158797487616539, -0.04952577129006386, -0.0191513579338789, 0.07030076533555984, 0.01388164795935154, 0.03627078980207443, 0.029377441853284836, 0.0034015735145658255, 0.013150535523891449, 0.009979214519262314, 0.006499307695776224, -0.09768426418304443, 0.07030076533555984, 0.00411369651556015, 0.07664340734481812, -0.0472089983522892, -0.042841311544179916, 0.034960485994815826, -0.025389553979039192, -0.0172523632645607, 0.013112555257976055, -0.00072577188257128, 0.04869021475315094, 0.03984089940786362, -0.04413262754678726, 0.00777163403108716, -0.004999102558940649, -0.03104855678975582, -0.012438412755727768, -0.02028125897049904, -0.017717616632580757, -0.012685282155871391, -0.03786594420671463, -0.0353023037314415, 0.04333505034446716, 0.021952373906970024, 0.0004753420071210712, -0.06437590718269348, 0.11014166474342346, 0.006803147029131651, -0.04956375062465668, -0.007069006096571684, 0.018819034099578857, 0.017014989629387856, 0.004277484491467476, -0.00784759409725666, -0.026434000581502914, 0.008863556198775768, 0.024800864979624748, 0.052298303693532944, -0.03285260125994682, -0.039157260209321976, -0.014460841193795204, 0.02998512051999569, 0.08591049909591675, -0.012713766656816006, -0.00459556607529521, -0.02366146817803383, -0.03851160407066345, -0.001988009549677372, 0.012647301889955997, -0.021952373906970024, 0.02356651984155178, 0.010748307220637798, 0.006432842928916216, -0.02288288064301014, 0.06650277972221375, 0.041777875274419785, -0.00582516472786665, -0.008654666133224964, 0.07265552133321762, 0.10064669698476791, -0.017157413065433502, -0.06224903091788292, -0.04166393354535103, -0.0010361387394368649, 0.049981530755758286, -0.015932561829686165, 0.00618597399443388, 0.028408953920006752, -0.006432842928916216, -0.006114761345088482, -0.06076781824231148, 0.012637807056307793, -0.030478857457637787, 0.011811744421720505, -0.012789726257324219, -0.0315043143928051, 0.005578295793384314, -0.038454633206129074, -0.0005649508093483746, 0.025997230783104897, 0.031333405524492264, -0.033878058195114136, -0.03397300839424133, -0.03349825739860535, -0.016340846195816994, 0.011887704022228718, -0.00037505137152038515, 0.015040034428238869, 0.04132211580872536, -0.02886471338570118, 0.020869947969913483, 0.0008990550995804369, 0.01495457999408245, -0.04318312928080559, 0.07409875839948654, 0.010919217020273209, 0.04819647595286369, -0.023015810176730156, -0.015229933895170689, 0.017527716234326363, -0.03642271086573601, 0.01726185716688633, -0.011830734089016914, 0.002551773563027382, -0.017043473199009895, 0.0330045223236084, 0.02166752517223358, 0.09145556390285492, 0.018600648269057274, 0.01144144032150507, 0.01716690883040428, 0.0928228422999382, 0.02138267643749714, -0.04117019474506378, 0.07368097454309464, -0.05594437196850777, 0.047057077288627625, 0.015087509527802467, -0.04724697768688202, -0.01837277039885521, 0.00618597399443388, 0.007472542580217123, -0.01538185402750969, -0.03222593292593956, 0.05275405943393707, -0.03515038266777992, -0.003520260564982891, 0.010102649219334126, 0.05222234129905701, -0.032434821128845215, -0.019255802035331726, 0.007804866414517164, 0.03592897206544876, 0.028276024386286736, -0.008289109915494919, 0.048918090760707855, 0.010757802985608578, 0.06373024731874466, 0.015210944227874279, 0.04489222541451454, -0.007197188213467598, 0.005146274343132973, 0.01759418286383152, 0.06042599678039551, 0.003866827115416527, 0.021059846505522728, -0.011109116487205029, 0.032776642590761185, 0.02888370305299759, -0.027554407715797424, 0.038853421807289124, -0.03758109733462334, 0.018078425899147987, -0.041018277406692505, -0.03494149446487427, -0.024098237976431847, -0.02664288878440857, -0.04048655927181244, -0.02020529843866825, -0.020015399903059006, -0.007453552447259426, 0.036897458136081696, 0.0003249060537200421, -0.0023191466461867094, -0.052260320633649826, 0.004823445342481136, -0.039878878742456436, -0.007629209663718939, -0.0351124033331871, -0.029491381719708443, 0.03224492445588112, 0.033555228263139725, -0.05256416276097298, 0.01294164638966322, 0.04451242461800575, -0.0044792527332901955, -0.012599826790392399, 0.009779820218682289, 0.060084179043769836, 0.009138910099864006, 0.023699449375271797, 0.015210944227874279, -0.05985629931092262, -0.03636574000120163, -0.03334634006023407, -0.054083358496427536, 0.01838226430118084, -0.07174400240182877, 0.022389141842722893, -0.0554126538336277, -0.033194418996572495, 0.051196884363889694, 0.01291316095739603, 0.004374808166176081, -0.03737220913171768, 0.033935029059648514, 0.019293781369924545, -0.05837508291006088, -0.025940261781215668, 0.02512369491159916, 0.04204373434185982, 0.016302864998579025, 0.014793165028095245, -0.056703969836235046, -0.03334634006023407, 0.042195651680231094, 0.0330045223236084, 0.026699859648942947, 0.04572778195142746, -0.012637807056307793, 0.025997230783104897, -0.0099507300183177, -0.005839407444000244, -0.07747896760702133, -0.044360507279634476, 0.030535828322172165, -0.007705169264227152, 0.01716690883040428, -0.01804044470191002, -0.06407206505537033, 0.000996378599666059, -0.06536338478326797, -0.01576165296137333, 0.0164547860622406, 0.008374564349651337, 0.03182714432477951, 0.05085506662726402, 0.015590743161737919, 0.050779107958078384, 0.04348696768283844, 0.018600648269057274, -0.10300145298242569, 0.07398481667041779, -0.017119433730840683, -0.0466013178229332, 0.0038430895656347275, 0.060881756246089935, 0.00952820386737585, 0.01159336045384407, 0.024819854646921158, 0.00117262895219028, -0.035777051001787186, 0.05928660184144974, 0.019255802035331726, -0.040676455944776535, -0.0353023037314415, -0.04333505034446716, 0.028655823320150375, 0.04272736981511116, 0.0013019979232922196, -0.010444468818604946, 0.05313386023044586, 0.02616814151406288, -0.021097825840115547, 0.042119693011045456, -0.017527716234326363, -0.006238196045160294, -0.025275614112615585, 0.06433792412281036, -0.02252207137644291, -0.010415983386337757, -0.03321341052651405, 0.020793987438082695, 0.0070215314626693726, 0.00860719196498394, 0.04132211580872536, 0.0013755839318037033, -0.01575215719640255, -0.047019097954034805, -0.021534595638513565, -0.019616611301898956, -0.03606190159916878, -0.03780897706747055, 0.00767668429762125, -0.0466013178229332, 0.01868610456585884, -0.019977420568466187, -0.0367075577378273, 0.00035724829649552703, -0.06312257051467896, 0.011374975554645061, -0.05465305596590042, 0.022579042240977287, 0.024212177842855453, 0.01835377886891365, -0.008132442831993103, 0.05123486369848251, -0.032757651060819626, 0.01047295331954956, -0.0003320272662676871, 0.012466897256672382, 0.015239428728818893, -0.018496204167604446, -0.020528128370642662, 0.03704937919974327, 0.001010620966553688, 0.0281051155179739, -0.026851778849959373, -0.04869021475315094, -0.08234038949012756, 0.03338431939482689, 0.04766475781798363, 0.036935437470674515, 0.019341256469488144, -0.02030024863779545, -0.020091358572244644, 0.010017194785177708, 0.024193186312913895, 0.01691054366528988, 0.04565182328224182, 0.0018254081951454282, 0.01557175349444151, -0.0412081740796566, -0.01606549136340618, -0.015391348861157894, -0.008531231433153152, -0.03232088312506676, -0.015970541164278984, -0.0300041101872921, -0.028295014053583145, -0.007614966947585344, 0.013549324125051498, 0.019635600969195366, 0.07109834253787994, -0.012789726257324219, -0.029035622254014015, -0.013302454724907875, 0.05370355769991875, 0.030554817989468575, -0.025351572781801224, 0.07075652480125427, -0.02660490944981575, 0.03397300839424133, 0.07368097454309464, -0.013596799224615097, -0.009893760085105896, 0.010700833052396774, 0.0236044991761446, 0.02966229058802128, 0.01648326963186264, -0.0005682146875187755, -0.026775820180773735, 0.031656235456466675, 0.004011625424027443, -0.05362759903073311, -0.07899816334247589, -0.015429328195750713, 0.0024971775710582733, 0.043676868081092834, -0.002336949808523059, 0.06110963597893715, 0.06843975186347961, -0.018932972103357315, -0.019673580303788185, 0.012115583755075932, -0.023015810176730156, -0.03406795859336853, 0.015040034428238869, -0.029472392052412033, 0.022939851507544518, -0.020490149036049843, -0.000046547615056624636, 0.023034799844026566, 0.04796859622001648, 0.016312360763549805, -0.06376823037862778, -0.013008111156523228, -0.04728495702147484, -0.04382878914475441, 0.05157668516039848, 0.05317183956503868, 0.05393143743276596, 0.026130160316824913, 0.017404282465577126, -0.04151201620697975, -0.0026372282300144434, 0.040220700204372406, -0.00590112479403615, 0.02506672404706478, -0.009699113667011261, 0.016312360763549805, 0.053399719297885895, -0.03416290879249573, -0.007690927013754845, -0.010245074518024921, -0.01799297146499157, -0.02584531158208847, -0.04075241833925247, 0.04234757274389267, 0.002017681486904621, 0.0018823781283572316, 0.04014473780989647, 0.008944262750446796, -0.07839048653841019, 0.01121356151998043, -0.00934305228292942, 0.02852289378643036, 0.0077004218474030495, -0.023129750043153763, -0.04318312928080559, 0.03209300339221954, -0.0628187283873558, 0.010387498885393143, -0.06749025732278824, -0.02582632191479206, 0.049335870891809464, 0.053361739963293076, -0.03182714432477951, 0.006323650944977999, -0.029814209789037704, 0.0011732224375009537, -0.0466013178229332, -0.001688917982392013, -0.007562744896858931, 0.009960224851965904, -0.014926094561815262, 0.04052453860640526, 0.01102366205304861, -0.03408694639801979, 0.0031784416642040014, -0.004764101933687925, 0.000026296620490029454, 0.03363118693232536, -0.016606705263257027, 0.03746715560555458, -0.07611168920993805, -0.034675635397434235, 0.07892220467329025, -0.07899816334247589, 0.019996410235762596, -0.002950562397018075, -0.012922655791044235, -0.017328321933746338, -0.02954835072159767, -0.016302864998579025, -0.004659657366573811, 0.04538596421480179, 0.021154796704649925, -0.03927120193839073, 0.04071443900465965, 0.01407154742628336, -0.01762266643345356, -0.026073191314935684, 0.010055175051093102, -0.012960636056959629, -0.026870768517255783, -0.024497026577591896, 0.02844693511724472, -0.019350752234458923, -0.03222593292593956, -0.02288288064301014, -0.07466845214366913, -0.014964074827730656, -0.021990353241562843, 0.055336691439151764, -0.025256624445319176, 0.037296246737241745, 0.01291316095739603, -0.012998615391552448, -0.031998053193092346, 0.0016995999030768871, -0.025731371715664864, -0.01083376258611679, -0.011536390520632267, 0.0281051155179739, -0.007325370330363512, -0.0025921270716935396, -0.02662389911711216, 0.04994354769587517, 0.057577505707740784, -0.023794397711753845, 0.02064206823706627, -0.008778100833296776, 0.03218795359134674, 0.010378004051744938, -0.06399610638618469, -0.010017194785177708, 0.02018630877137184, 0.056058309972286224, -0.04648737981915474, 0.06904742866754532, 0.025750363245606422, -0.06228701397776604, 0.08826525509357452, 0.024629956111311913, -0.034238867461681366, 0.0015737914945930243, 0.03374512866139412, -0.026111170649528503, -0.02098388597369194, -0.03365017846226692, 0.04606959968805313, -0.037619076669216156, 0.01984449103474617, -0.036517661064863205, 0.015248923562467098, 0.006057791877537966, -0.005815669894218445, -0.015258419327437878, 0.004875667858868837, 0.11074934899806976, -0.030099058523774147, 0.004070968832820654, -0.08644221723079681, 0.0008225018973462284, 0.048500314354896545, 0.02140166610479355, -0.004381929058581591, -0.028636833652853966, -0.027117637917399406, 0.05632416903972626, 0.05685588717460632, 0.006793652195483446, 0.04344898834824562, 0.01916085183620453, -0.04344898834824562, -0.04124615713953972, -0.031979065388441086, -0.04272736981511116, 0.01384366862475872, -0.03832170367240906, 0.010776792652904987, -0.014394376426935196, -0.009067697450518608, 0.0056210230104625225, -0.023376619443297386, -0.015220439061522484, 0.007206683047115803, 0.002746420446783304, -0.026794809848070145, -0.002169600920751691, 0.03636574000120163, -0.036498669534921646, -0.005896377377212048, -0.010558407753705978, 0.03824574500322342, -0.042955249547958374, -0.045158084481954575, 0.08385958522558212, 0.019369741901755333, -0.03306148946285248, -0.06513550132513046, 0.01403356809169054, -0.004794960375875235, 0.03408694639801979, -0.07975775748491287, -0.02468692511320114, -0.054159317165613174, -0.004137433599680662, 0.047816675156354904, -0.04766475781798363, 0.029890170320868492, -0.04227161407470703, 0.06335044652223587, -0.014185487292706966, -0.003389704739674926 ]
21,111
tfields.mesh_3d
disjoint_parts
Returns: disjoint_parts(List(cls)), templates(List(cls)) >>> import tfields >>> a = tfields.Mesh3D( ... [[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]], ... maps=[[[0, 1, 2], [0, 2, 3]]]) >>> b = a.copy() >>> b[:, 0] += 2 >>> m = tfields.Mesh3D.merged(a, b) >>> parts = m.disjoint_parts() >>> aa, ba = parts >>> assert aa.maps[3].equal(ba.maps[3]) >>> assert aa.equal(a) >>> assert ba.equal(b)
def disjoint_parts(self, return_template=False): """ Returns: disjoint_parts(List(cls)), templates(List(cls)) >>> import tfields >>> a = tfields.Mesh3D( ... [[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]], ... maps=[[[0, 1, 2], [0, 2, 3]]]) >>> b = a.copy() >>> b[:, 0] += 2 >>> m = tfields.Mesh3D.merged(a, b) >>> parts = m.disjoint_parts() >>> aa, ba = parts >>> assert aa.maps[3].equal(ba.maps[3]) >>> assert aa.equal(a) >>> assert ba.equal(b) """ mp_description = self.disjoint_map(3) parts = self.parts(mp_description) if not return_template: return parts else: templates = [] for i, part in enumerate(parts): template = part.copy() template.maps[3].fields = [tfields.Tensors(mp_description[1][i])] templates.append(template) return parts, templates
(self, return_template=False)
[ 0.04853887856006622, 0.009392963722348213, -0.03813235089182854, -0.0036548953503370285, -0.05978614464402199, -0.015236125327646732, -0.015721887350082397, 0.02787529118359089, -0.03263949975371361, 0.022700052708387375, 0.020215190947055817, -0.009603150188922882, -0.08631625026464462, -0.02077568508684635, -0.012302868068218231, -0.045811135321855545, -0.027127964422106743, 0.02936994470655918, -0.0013521944638341665, -0.046932123601436615, 0.0016394482227042317, 0.02583882585167885, 0.04043038189411163, 0.057170502841472626, -0.0009213138837367296, -0.0934905856847763, 0.0050257728435099125, -0.03295711427927017, 0.009000617079436779, 0.019673379138112068, 0.003984186332672834, 0.010752164758741856, 0.01643184944987297, 0.01575925387442112, -0.02277478575706482, 0.005712379235774279, 0.01986020989716053, 0.06490533798933029, -0.013778838329017162, 0.012340234592556953, 0.024531003087759018, -0.07929137349128723, 0.011368709616363049, -0.027015864849090576, 0.08145862072706223, 0.022401122376322746, 0.04327022284269333, 0.02535306289792061, -0.05937511473894119, 0.00592256523668766, 0.07626470178365707, -0.02608170546591282, -0.007991726510226727, 0.03830049932003021, -0.04356915503740311, 0.0026973828207701445, 0.005866515450179577, 0.036488231271505356, -0.03968305513262749, 0.004923015367239714, -0.053770165890455246, -0.014815754257142544, 0.0006889419164508581, 0.009621832519769669, 0.010742823593318462, 0.0039421492256224155, -0.03097669780254364, -0.01418052613735199, -0.025708042085170746, 0.046969491988420486, -0.055040620267391205, 0.0080617880448699, 0.013890936970710754, -0.009556441567838192, 0.07491951435804367, 0.02413865737617016, 0.08280381560325623, 0.012134719640016556, 0.0644943043589592, -0.03394732251763344, -0.08205648511648178, -0.0268477164208889, -0.09595676511526108, 0.036731112748384476, 0.017020368948578835, 0.04995879903435707, -0.023279231041669846, -0.0023388995323330164, 0.005651659332215786, -0.07084657996892929, -0.04248553141951561, 0.043868083506822586, -0.016319749876856804, 0.007038884796202183, 0.0041313162073493, -0.00149582140147686, -0.010967020876705647, -0.019411813467741013, -0.02632458694279194, -0.03555407375097275, 0.02223297394812107, -0.014507481828331947, -0.038487330079078674, 0.015591106377542019, 0.053583335131406784, -0.05956194922327995, -0.03379785642027855, -0.013517273589968681, 0.007342486176639795, 0.007169666700065136, -0.014264601282775402, 0.020140457898378372, -0.012386942282319069, 0.047081589698791504, -0.013657397590577602, -0.074471116065979, 0.02068226970732212, 0.016142260283231735, -0.00862228311598301, -0.061878662556409836, 0.012685872614383698, -0.009098703972995281, -0.03676848113536835, -0.0505940280854702, 0.0056376466527581215, 0.008715699426829815, 0.025072814896702766, 0.019206300377845764, -0.04214923456311226, -0.05201394855976105, -0.02490466646850109, 0.035367242991924286, -0.025894874706864357, -0.03349892422556877, -0.06453166902065277, 0.015180076472461224, -0.007618062663823366, -0.07144444435834885, 0.039346758276224136, 0.02815553918480873, -0.06804411113262177, -0.03370444104075432, 0.05306020379066467, 0.07024872303009033, -0.0866151824593544, -0.027445577085018158, 0.0117050064727664, 0.007221045438200235, -0.013330441899597645, 0.042410798370838165, -0.0832522064447403, 0.021298814564943314, 0.024605736136436462, -0.06359751522541046, -0.09752614796161652, -0.010172986425459385, 0.0063102408312261105, 0.012882046401500702, 0.03990725427865982, -0.040280915796756744, -0.007935676723718643, -0.016908269375562668, 0.03772132098674774, 0.0901276171207428, 0.03319999575614929, -0.0013545298716053367, 0.06337331235408783, -0.07914191484451294, -0.01293809525668621, 0.0025666006840765476, -0.0161235760897398, 0.06972559541463852, 0.018935393542051315, -0.03626403585076332, -0.013956328853964806, 0.012059986591339111, 0.011032412759959698, -0.039645686745643616, 0.002001434564590454, -0.04562430456280708, 0.027707142755389214, -0.016170283779501915, 0.000956344825681299, 0.040766678750514984, 0.010621382854878902, 0.012583115138113499, -0.002407793654128909, 0.0009475870756432414, 0.03146246075630188, 0.0013930639252066612, 0.01024771947413683, -0.020420705899596214, -0.018412264063954353, 0.0433075912296772, 0.004582047462463379, 0.03370444104075432, 0.0020679933950304985, 0.0011402572272345424, 0.0008419103687629104, 0.08228068053722382, -0.09177173674106598, -0.10783926397562027, -0.04674529284238815, 0.020869102329015732, 0.025166230276226997, 0.03263949975371361, -0.01114451140165329, -0.018533704802393913, 0.02028992399573326, -0.027856606990098953, 0.007132300641387701, -0.03409678488969803, 0.06811884045600891, 0.02247585356235504, 0.08183228969573975, -0.04278445988893509, -0.04166347160935402, 0.02228902280330658, -0.014087110757827759, -0.0050864932127296925, -0.05257444083690643, -0.003243865445256233, -0.0020364655647426844, 0.04297129437327385, -0.0692024677991867, 0.055040620267391205, -0.05593741312623024, 0.026829032227396965, -0.04943567141890526, -0.03392863646149635, 0.0020516456570476294, -0.027034547179937363, 0.00850551389157772, -0.01937444880604744, 0.05915091931819916, 0.014096451923251152, -0.0240826066583395, -0.02738952822983265, 0.07869351655244827, 0.03482542932033539, -0.03613325208425522, 0.0011904683196917176, 0.028006073087453842, -0.025184914469718933, 0.06464377045631409, -0.0024708493147045374, -0.019206300377845764, -0.003991192206740379, 0.07039818912744522, 0.03874889761209488, -0.022513220086693764, 0.033143945038318634, 0.002884214511141181, 0.03394732251763344, 0.04569903388619423, -0.01588069461286068, 0.03280764818191528, -0.015693863853812218, -0.04592323303222656, 0.0197667945176363, 0.05444275960326195, -0.021840626373887062, 0.029388627037405968, 0.028772082179784775, 0.001943049719557166, -0.016665387898683548, -0.011069778352975845, 0.055077988654375076, -0.0037483111955225468, 0.024848617613315582, 0.022550586611032486, 0.023036349564790726, 0.022606637328863144, -0.04136453941464424, 0.009075350128114223, -0.00289589143358171, 0.03161192312836647, -0.003745975671336055, -0.0008302333881147206, -0.026829032227396965, -0.03353629261255264, -0.00956578366458416, 0.007426560390740633, -0.021298814564943314, 0.002603966975584626, -0.015918061137199402, -0.022606637328863144, -0.003853403963148594, -0.00295661180280149, 0.0033699769992381334, -0.009481709450483322, -0.004558693617582321, 0.026978498324751854, -0.029108380898833275, -0.010434551164507866, -0.04147664085030556, -0.05205131322145462, -0.024998081848025322, 0.006445693783462048, -0.019084859639406204, 0.020177824422717094, 0.013068878091871738, 0.04390545189380646, 0.022905567660927773, -0.00517056742683053, -0.01492785383015871, 0.023372646421194077, -0.007207033224403858, 0.033573657274246216, -0.013442541472613811, -0.021429596468806267, 0.0011250771349295974, -0.013862912543118, 0.027707142755389214, -0.0031597912311553955, 0.03112616203725338, 0.0197667945176363, 0.025857508182525635, 0.01430196687579155, 0.009280865080654621, -0.02199009247124195, 0.024119973182678223, -0.007221045438200235, 0.13825546205043793, 0.05040719360113144, -0.021373547613620758, 0.012629823759198189, -0.029594141989946365, 0.015180076472461224, 0.0402061827480793, -0.041738204658031464, 0.01858041249215603, -0.009584466926753521, 0.031481143087148666, -0.0083653898909688, -0.030752498656511307, 0.052126046270132065, -0.11411681026220322, 0.02359684370458126, -0.013451882638037205, 0.06258862465620041, -0.01628238335251808, 0.006403656676411629, 0.011434100568294525, 0.030528301373124123, 0.03665637969970703, 0.015114685520529747, 0.04667055979371071, 0.027595043182373047, 0.0742095559835434, -0.0034423742908984423, 0.039496224373579025, 0.03622666746377945, 0.03407810255885124, 0.03592773899435997, -0.023540794849395752, -0.031481143087148666, 0.021205399185419083, -0.009799323044717312, 0.05967404693365097, 0.025184914469718933, -0.016805512830615044, 0.03232188522815704, 0.0330505296587944, 0.03288238123059273, -0.03813235089182854, -0.02292424999177456, -0.014283283613622189, -0.08452266454696655, -0.0439801849424839, -0.05646054074168205, -0.008211253210902214, -0.01794518530368805, 0.008706357330083847, 0.022214289754629135, -0.04812784865498543, -0.04700685665011406, -0.0065064141526818275, -0.013563982211053371, 0.020514121279120445, -0.05216341093182564, -0.04752998799085617, -0.0045540230348706245, -0.030659083276987076, -0.020962517708539963, 0.026156438514590263, 0.047118958085775375, -0.017384691163897514, -0.00349608832038939, -0.00032637163531035185, 0.034638598561286926, 0.01362003106623888, 0.0034447095822542906, -0.003393330844119191, -0.07727359235286713, -0.039496224373579025, -0.043195489794015884, -0.06191602721810341, -0.007104275748133659, -0.033330775797367096, 0.058291491121053696, -0.04252289608120918, -0.011116486974060535, 0.04734315350651741, -0.03486279770731926, -0.027856606990098953, 0.015591106377542019, 0.017450081184506416, 0.01703905127942562, -0.06666155159473419, 0.004801575094461441, 0.035759590566158295, -0.03960832208395004, 0.009425659663975239, 0.039832521229982376, 0.047941017895936966, 0.042074501514434814, 0.027856606990098953, -0.02879076637327671, 0.07585367560386658, 0.045773766934871674, 0.010453234426677227, 0.0627380907535553, -0.010331793688237667, 0.007772198878228664, -0.04536273702979088, -0.05743206664919853, 0.023055031895637512, -0.015385591425001621, -0.0015145045472308993, -0.02675430104136467, -0.06931456178426743, -0.032172419130802155, -0.0197667945176363, 0.006520426366478205, 0.010490600019693375, 0.04786628484725952, 0.014189868234097958, 0.023858409374952316, -0.006585817784070969, 0.047268420457839966, 0.02277478575706482, -0.01952391304075718, -0.08183228969573975, 0.04427911341190338, -0.012181427329778671, -0.032265834510326385, -0.05623634532094002, 0.04782891646027565, 0.017664937302470207, 0.02826763689517975, 0.05029509589076042, 0.027445577085018158, -0.005488181486725807, 0.04454067721962929, -0.023036349564790726, 0.03975778818130493, -0.05646054074168205, -0.05249971151351929, -0.014498140662908554, 0.02544647827744484, 0.02417602203786373, 0.058291491121053696, 0.06613842397928238, 0.021579062566161156, -0.0603092759847641, 0.0058945403434336185, -0.04536273702979088, -0.012667189352214336, -0.0008705189684405923, 0.054218560457229614, -0.04312075674533844, -0.009827347472310066, -0.02393314242362976, 0.04495170712471008, 0.02238243818283081, 0.01864580437541008, 0.00005134222737979144, 0.0016674729995429516, -0.041439272463321686, -0.04973459988832474, -0.026380637660622597, -0.05380753055214882, -0.009042654186487198, -0.0052266172133386135, -0.009621832519769669, -0.027352161705493927, 0.006319582462310791, 0.0058151367120444775, -0.06617578864097595, -0.021859310567378998, -0.03273291513323784, 0.010042204521596432, -0.057656265795230865, -0.008776419796049595, 0.033966004848480225, 0.008514855057001114, -0.015619130805134773, 0.03286369889974594, -0.046147432178258896, 0.012134719640016556, 0.002017782535403967, 0.06333594769239426, 0.018879344686865807, -0.01779571920633316, -0.036637697368860245, 0.06131816655397415, 0.012797972187399864, 0.011611590161919594, 0.01044389232993126, -0.04252289608120918, -0.025577260181307793, 0.04913673922419548, 0.061392899602651596, 0.017534155398607254, 0.008215924724936485, -0.0384499654173851, -0.01858041249215603, 0.0021730863954871893, -0.010490600019693375, 0.039795152842998505, 0.0007111281738616526, -0.0033442876301705837, -0.006029993295669556, -0.02787529118359089, 0.02821158803999424, -0.0007374013657681644, -0.012190768495202065, -0.017319299280643463, -0.01898210123181343, 0.0003567317908164114, 0.009911421686410904, 0.02098120003938675, 0.012125377543270588, -0.0474926196038723, -0.0006918611470609903, -0.04334495589137077, 0.004801575094461441, -0.009332243353128433, 0.020906468853354454, 0.032209787517786026, 0.015236125327646732, 0.0341341532766819, -0.04050511494278908, 0.015619130805134773, 0.043681252747774124, -0.01304085273295641, -0.01114451140165329, -0.022830834612250328, 0.03164929151535034, 0.023073716089129448, -0.028809448704123497, -0.022793468087911606, -0.007529317867010832, 0.06094450131058693, 0.016543947160243988, -0.023484745994210243, -0.03998198360204697, -0.005595609545707703, 0.022307705134153366, 0.07480741292238235, -0.00592256523668766, 0.04752998799085617, 0.026249855756759644, -0.010359818115830421, 0.023671576753258705, 0.028809448704123497, 0.02010309137403965, -0.05944984778761864, 0.009593808092176914, -0.0012482693418860435, 0.03336814418435097, 0.007716149557381868, 0.03938412293791771, 0.0327889658510685, 0.02116803266108036, 0.05971141532063484, -0.03355497494339943, -0.02636195346713066, -0.05593741312623024, -0.0021730863954871893, -0.0021135336719453335, 0.04685739055275917, 0.018477655947208405, 0.038337867707014084, -0.017085758969187737, -0.004815587308257818, -0.0039421492256224155, 0.06834303587675095, -0.04114034026861191, 0.036488231271505356, 0.04349442198872566, 0.038038935512304306, 0.00794034730643034, 0.003512436058372259, 0.06774517893791199, -0.016347775235772133, 0.012321551330387592, -0.02894023060798645, -0.05444275960326195, 0.049884065985679626, 0.02544647827744484, 0.03021068684756756, 0.02869735099375248, 0.03443308547139168, -0.09259379655122757, 0.0022910237312316895, -0.05014562979340553, 0.042373429983854294, -0.012583115138113499, 0.03693662956357002, -0.034302301704883575, 0.02383972518146038, -0.08213122189044952, 0.014339333400130272, -0.0025712712667882442, -0.04891254007816315, -0.01126595214009285, 0.05784309655427933, -0.0365629643201828, -0.012256160378456116, -0.03204163908958435, 0.0034727342426776886, 0.0001919403875945136, -0.009122057817876339, 0.01636645756661892, -0.02709059789776802, -0.012153402902185917, 0.04667055979371071, 0.04106561094522476, 0.010621382854878902, -0.042410798370838165, 0.009808664210140705, 0.02219560742378235, -0.015357566066086292, -0.006151434034109116, 0.019654694944620132, -0.07831985503435135, 0.019822843372821808, 0.041738204658031464, -0.03732897341251373, -0.028248954564332962, -0.015815304592251778, 0.01204130332916975, -0.044652778655290604, -0.06412064284086227, 0.015507031232118607, -0.024643102660775185, -0.005544230807572603, 0.00016610506281722337, -0.043046023696660995, 0.04300865903496742, -0.0059552607126533985, -0.011471467092633247, -0.08018817007541656, 0.014572872780263424, 0.035423289984464645, -0.0366937480866909, 0.008239278569817543, 0.025913557037711143, 0.01556308101862669, -0.017235225066542625, -0.02438153699040413, -0.05623634532094002, 0.018561730161309242, -0.008692345581948757, 0.030023856088519096, -0.02281215228140354, 0.04424174875020981, 0.009458355605602264, -0.05332176759839058, -0.004437252879142761, -0.009752615354955196, -0.009603150188922882, -0.021821944043040276, -0.021186714991927147, -0.019150249660015106, -0.0019453851273283362, -0.013022170402109623, 0.005390094593167305, 0.09102440625429153, 0.022326389327645302, -0.03435835242271423, -0.004955710843205452, 0.01044389232993126, 0.0252970140427351, 0.023970508947968483, 0.0006334762438200414, -0.005114518105983734, 0.015329541638493538, 0.04300865903496742, -0.01410579401999712, 0.029837023466825485, 0.01014496199786663, 0.005703038070350885, 0.054218560457229614, 0.049510400742292404, -0.010808214545249939, -0.015862012282013893, 0.05141608417034149, -0.0240826066583395, 0.0029239163268357515, -0.05866515636444092, 0.04345705360174179, -0.017020368948578835, 0.004993077367544174, -0.013311759568750858, -0.009533087722957134, -0.021728526800870895, -0.039309389889240265, -0.01014496199786663, 0.04487697780132294, 0.09005288034677505, -0.015161393210291862, -0.0017889136215671897, -0.07869351655244827, 0.03329341113567352, 0.03682452812790871, 0.09872187674045563, 0.01728193275630474, -0.04360651969909668, -0.01971074566245079, 0.029388627037405968, -0.024194706231355667, -0.008715699426829815, 0.03572222217917442, -0.022419804707169533, -0.07267753779888153, -0.04551220312714577, -0.011630273424088955, 0.00107603392098099, 0.03155587613582611, -0.026772983372211456, -0.010910972021520138, 0.025708042085170746, -0.04244816303253174, 0.0031294310465455055, 0.016599997878074646, -0.05433066189289093, 0.011069778352975845, -0.027651092037558556, -0.01849633827805519, 0.05616161227226257, 0.0412898063659668, -0.05560111626982689, -0.004374197218567133, 0.012218793854117393, 0.06793200969696045, -0.057133134454488754, -0.03140641003847122, 0.061542365700006485, 0.019019467756152153, -0.004558693617582321, -0.061878662556409836, 0.011714347638189793, 0.03392863646149635, -0.00045189919183030725, -0.06094450131058693, -0.04211186617612839, -0.07200493663549423, -0.002837506588548422, 0.06348541378974915, 0.006641867104917765, 0.07585367560386658, -0.042410798370838165, 0.041738204658031464, -0.010967020876705647, 0.04024355113506317 ]
21,112
tfields.core
distances
Args: other(Iterable) **kwargs: ... is forwarded to scipy.spatial.distance.cdist Examples: >>> import tfields >>> p = tfields.Tensors.grid((0, 2, 3j), ... (0, 2, 3j), ... (0, 0, 1j)) >>> p[4,2] = 1 >>> p.distances(p)[0,0] 0.0 >>> p.distances(p)[5,1] 1.4142135623730951 >>> p.distances([[0,1,2]])[-1][0] == 3 True
def distances(self, other, **kwargs): """ Args: other(Iterable) **kwargs: ... is forwarded to scipy.spatial.distance.cdist Examples: >>> import tfields >>> p = tfields.Tensors.grid((0, 2, 3j), ... (0, 2, 3j), ... (0, 0, 1j)) >>> p[4,2] = 1 >>> p.distances(p)[0,0] 0.0 >>> p.distances(p)[5,1] 1.4142135623730951 >>> p.distances([[0,1,2]])[-1][0] == 3 True """ if issubclass(type(other), Tensors) and self.coord_sys != other.coord_sys: other = other.copy() other.transform(self.coord_sys) return scipy.spatial.distance.cdist(self, other, **kwargs)
(self, other, **kwargs)
[ 0.0012529457453638315, -0.014332851395010948, 0.012720405124127865, 0.00499292416498065, -0.051560547202825546, -0.010165008716285229, -0.023969808593392372, 0.029137177392840385, 0.016030162572860718, 0.09542661160230637, -0.021008942276239395, -0.004860911052674055, 0.0037765176966786385, 0.03321072459220886, 0.02055632695555687, -0.010202727280557156, -0.023781217634677887, 0.01871757209300995, -0.0037576586473733187, -0.023234305903315544, -0.025572823360562325, -0.02496933564543724, 0.011692589148879051, -0.03151341527700424, -0.009816117584705353, 0.06310226023197174, 0.04552566260099411, -0.01505892351269722, -0.019745388999581337, 0.008114091120660305, -0.0017550670308992267, -0.006039599422365427, -0.015304090455174446, 0.015417244285345078, -0.00223007844761014, -0.030400732532143593, 0.019424784928560257, 0.011041953228414059, -0.031419117003679276, 0.04499761015176773, -0.02942006289958954, -0.04978780075907707, 0.010268733836710453, -0.017378581687808037, 0.02649691514670849, 0.01643563061952591, -0.062121596187353134, -0.022234778851270676, -0.07713337242603302, 0.02204618789255619, -0.02725127711892128, -0.04563881456851959, 0.030721334740519524, 0.004144268576055765, 0.022706253454089165, 0.09731251746416092, 0.04616686701774597, 0.06668547540903091, -0.03526635840535164, 0.004521448630839586, -0.03462515026330948, 0.005091933999210596, 0.020575184375047684, -0.003637432586401701, 0.001408532727509737, -0.05450255423784256, -0.03424797207117081, 0.03543609008193016, 0.015313520096242428, 0.09437050670385361, -0.040924061089754105, 0.014483723789453506, 0.027534162625670433, -0.03151341527700424, 0.029948115348815918, 0.08328141272068024, 0.019255053251981735, 0.036511052399873734, 0.08094289153814316, -0.052616652101278305, -0.07324841618537903, -0.033757638186216354, -0.004764258861541748, -0.028345098719000816, -0.006911829113960266, 0.03055160492658615, -0.05570952966809273, 0.05005182698369026, -0.003366334130987525, -0.032531801611185074, -0.05412537232041359, -0.0004334626719355583, -0.024554437026381493, -0.045073047280311584, -0.014512011781334877, 0.06796789169311523, -0.034021664410829544, -0.01833096332848072, 0.01751059480011463, 0.027175839990377426, 0.08599710464477539, 0.019575657323002815, 0.05389906466007233, 0.004941062070429325, 0.0208769291639328, -0.07830262929201126, -0.04986323416233063, -0.04816592484712601, -0.012164064683020115, 0.023309743031859398, -0.06845822185277939, 0.10153693705797195, 0.060688309371471405, 0.005775573197752237, -0.02008485049009323, -0.020367735996842384, -0.0058274357579648495, -0.001690239179879427, -0.033229585736989975, -0.018236666917800903, -0.02289484441280365, 0.045865125954151154, 0.03926447033882141, 0.008491271175444126, 0.007953789085149765, 0.07196599990129471, -0.008788300678133965, -0.01856669969856739, -0.04186701402068138, -0.0037576586473733187, 0.06242334097623825, -0.02879771590232849, 0.03900044411420822, 0.07747283577919006, 0.07581324130296707, 0.004917487967759371, 0.04115036875009537, 0.010777927003800869, -0.00044701757724396884, 0.007732196245342493, 0.03309757262468338, -0.02246108651161194, 0.044695865362882614, 0.03081563115119934, -0.040245138108730316, 0.05586040019989014, -0.011975474655628204, 0.011777454987168312, -0.0014108900213614106, -0.008279107511043549, -0.021367263048887253, 0.05518147721886635, 0.10093344748020172, -0.0025931145064532757, -0.055068325251340866, -0.045601099729537964, 0.011777454987168312, -0.03866098076105118, 0.03990567475557327, 0.03496461361646652, -0.04435640200972557, -0.030476167798042297, 0.02231021411716938, 0.032701533287763596, 0.007496458478271961, 0.00008324487134814262, -0.0007278401171788573, -0.0457896888256073, -0.04047144576907158, -0.014436575584113598, 0.024158397689461708, 0.00642620911821723, 0.03373877704143524, -0.048844847828149796, -0.031155092641711235, -0.03634132072329521, -0.016369624063372612, 0.0039768945425748825, 0.0018470047507435083, -0.022347932681441307, -0.006765671540051699, -0.04081090912222862, -0.022932562977075577, 0.004578026011586189, 0.032154619693756104, 0.03839695453643799, -0.019405925646424294, -0.005407822318375111, 0.02793020009994507, 0.02453557774424553, 0.016765663400292397, -0.028194226324558258, -0.05220175161957741, 0.01115510705858469, 0.003809520974755287, 0.053031548857688904, -0.036831654608249664, -0.020895788446068764, 0.015954727306962013, 0.13254114985466003, -0.07634129375219345, 0.0026968391612172127, -0.013719933107495308, -0.03677507862448692, 0.020839210599660873, 0.01184346154332161, -0.028552548959851265, 0.005120222456753254, -0.01131540909409523, -0.031532272696495056, 0.03138140216469765, -0.006534648593515158, 0.0036232881247997284, 0.00469353748485446, 0.032211195677518845, 0.0011816351907327771, -0.045223917812108994, -0.051975443959236145, 0.012069769203662872, -0.05631301924586296, 0.1049315556883812, -0.0502404160797596, 0.0006624229135923088, 0.011400274932384491, -0.01745401881635189, -0.01131540909409523, 0.028722278773784637, -0.017680326476693153, -0.03579441085457802, -0.05876468867063522, 0.037642594426870346, -0.02049974910914898, 0.04148983210325241, 0.004988209344446659, 0.01917961798608303, -0.051711417734622955, -0.032154619693756104, -0.00495520606637001, -0.018991028890013695, 0.030985360965132713, -0.09406876564025879, -0.03956621140241623, -0.012126346118748188, -0.011447422206401825, -0.009014609269797802, -0.02587456814944744, -0.04673263803124428, 0.047675590962171555, 0.04367747902870178, 0.01909475214779377, -0.02681751921772957, -0.04005654901266098, -0.030400732532143593, -0.03102307952940464, -0.0046487473882734776, -0.054691143333911896, 0.006223475094884634, 0.003774160286411643, 0.026515774428844452, -0.0583120733499527, -0.01593586802482605, -0.035624679177999496, -0.09127762913703918, 0.03918903321027756, -0.04122580587863922, 0.038962725549936295, 0.03456857427954674, 0.03390850871801376, -0.02417725697159767, 0.019481362774968147, -0.014323421753942966, 0.06336628645658493, -0.008627999573946, -0.031249387189745903, -0.00438707834109664, 0.004790189675986767, 0.03377649560570717, -0.022970279678702354, -0.004356432240456343, -0.037001386284828186, 0.00703912740573287, -0.020216863602399826, -0.10802444070577621, -0.030721334740519524, -0.04111265391111374, 0.017878346145153046, 0.02119753323495388, -0.03473830595612526, 0.0011804564855992794, 0.018264956772327423, 0.03888728842139244, 0.014766608364880085, 0.0026709078811109066, 0.007788773160427809, 0.045865125954151154, 0.012616680935025215, -0.04503532871603966, -0.016350766643881798, 0.016652509570121765, 0.01883072592318058, -0.008703435771167278, -0.03183401748538017, -0.015973584726452827, 0.005384248681366444, 0.0021263540256768465, 0.006133894436061382, 0.056124426424503326, 0.024629874154925346, 0.024950476363301277, 0.0003497758007142693, 0.039754804223775864, 0.0039768945425748825, -0.04892028495669365, -0.006478071678429842, 0.05193772539496422, 0.018198950216174126, -0.0030881636776030064, 0.015266372822225094, 0.0016430916730314493, 0.09029696136713028, 0.001921262126415968, 0.07038184255361557, -0.04069775342941284, 0.04043372720479965, 0.006704379804432392, 0.013974529691040516, 0.044280968606472015, -0.019726529717445374, 0.0649881660938263, 0.07943417131900787, 0.03202260658144951, 0.04167842119932175, 0.03907587751746178, -0.012267788872122765, 0.08577080070972443, 0.023460613563656807, 0.05299383029341698, 0.012192352674901485, -0.023083433508872986, -0.03166428580880165, -0.00458274083212018, 0.02336631901562214, 0.015172077342867851, -0.00632248492911458, -0.040396008640527725, -0.008462983183562756, 0.01667136885225773, -0.024365847930312157, 0.046883512288331985, -0.018868444487452507, -0.010099002160131931, 0.022706253454089165, 0.012003762647509575, -0.013125874102115631, 0.01024987455457449, 0.10070713609457016, -0.00861385464668274, 0.002286655595526099, -0.028194226324558258, -0.020198004320263863, 0.03315414860844612, 0.0028524259105324745, 0.041565269231796265, -0.03488917648792267, -0.026534633710980415, 0.00034093562862835824, 0.013851946219801903, -0.07800088822841644, -0.015766136348247528, 0.014389428310096264, -0.035775549709796906, -0.008189527317881584, -0.0049033439718186855, 0.02278169058263302, 0.009816117584705353, -0.007237147074192762, -0.04529935494065285, 0.018312104046344757, -0.05265437066555023, 0.017095696181058884, -0.030400732532143593, -0.04322486370801926, 0.06140495091676712, 0.012550674378871918, 0.018415827304124832, 0.009217343293130398, 0.01845354586839676, -0.00017061515245586634, -0.019217336550354958, 0.02842053584754467, -0.03183401748538017, -0.04296083748340607, -0.006190471816807985, 0.016878819093108177, -0.04081090912222862, -0.00847712717950344, 0.029929256066679955, 0.013682215474545956, -0.06144266948103905, -0.06747755408287048, 0.010202727280557156, -0.010287592187523842, -0.005690707825124264, 0.06883540749549866, 0.009368215687572956, -0.004684107843786478, -0.0008633892866782844, -0.043262578547000885, -0.014926910400390625, 0.018660996109247208, -0.022215919569134712, 0.02593114599585533, 0.05804804712533951, 0.04484673589468002, 0.00892031379044056, -0.023913230746984482, -0.06966520100831985, 0.04148983210325241, 0.06566709280014038, 0.0377180315554142, 0.01078735664486885, -0.057029660791158676, 0.036737360060214996, -0.0645732656121254, 0.01505892351269722, -0.016133887693285942, 0.0039839670062065125, -0.03639790043234825, 0.005931159947067499, -0.045865125954151154, -0.047298409044742584, 0.013191880658268929, -0.04016970098018646, 0.023177729919552803, -0.009222058579325676, 0.017595460638403893, 0.009853835217654705, 0.028778856620192528, 0.046921227127313614, -0.019057035446166992, -0.019632235169410706, -0.0012016728287562728, 0.012352654710412025, -0.044695865362882614, -0.07343700528144836, -0.051975443959236145, 0.04944833740592003, -0.030627040192484856, -0.008576137013733387, -0.052239470183849335, 0.04511076211929321, 0.004344645421952009, 0.049108874052762985, 0.00005819774014526047, -0.000661244208458811, 0.010645913891494274, -0.052088599652051926, -0.06732667982578278, -0.06065059080719948, 0.03006126917898655, 0.04616686701774597, 0.0015264014946296811, -0.015813283622264862, -0.02438470534980297, -0.025535106658935547, 0.005634130910038948, 0.00020951186888851225, -0.01168315950781107, 0.04382834956049919, -0.0005009425804018974, 0.10825074464082718, 0.02251766435801983, -0.0048231929540634155, -0.007081559859216213, -0.032701533287763596, 0.06242334097623825, -0.012041481211781502, -0.004563881549984217, -0.023705782368779182, -0.049108874052762985, -0.0285336896777153, -0.043752916157245636, 0.03447427973151207, -0.06321541965007782, -0.02417725697159767, -0.02926919050514698, -0.009028753265738487, -0.009321068413555622, 0.04296083748340607, 0.031475696712732315, -0.010306451469659805, 0.006605369970202446, 0.03192831203341484, -0.08720408380031586, 0.04514848068356514, 0.021442700177431107, 0.047185253351926804, 0.006100891157984734, 0.027703892439603806, 0.03903815895318985, -0.024252692237496376, 0.023762358352541924, 0.03983023762702942, 0.03585098683834076, 0.03275810927152634, -0.007784058339893818, 0.022989138960838318, 0.02231021411716938, -0.03971708565950394, 0.01789720542728901, -0.0041843438521027565, -0.05333329364657402, 0.0700046643614769, -0.0035902848467230797, 0.029288049787282944, -0.04164070636034012, -0.04205560311675072, 0.033644482493400574, -0.0336822010576725, -0.0012788769090548158, 0.028137650340795517, 0.07483257353305817, -0.03711454197764397, -0.032211195677518845, -0.050429005175828934, 0.035247497260570526, -0.00840640626847744, -0.03336159884929657, 0.029344627633690834, -0.03006126917898655, -0.018906163051724434, -0.033644482493400574, -0.019255053251981735, 0.026742083951830864, -0.00628005200996995, 0.0611032098531723, -0.05012726038694382, -0.006430923938751221, -0.014191408641636372, 0.025044770911335945, 0.0036539342254400253, -0.04069775342941284, 0.04032057523727417, -0.03622816875576973, 0.015766136348247528, 0.0074870288372039795, -0.018783578649163246, -0.022498805075883865, 0.024950476363301277, 0.037736888974905014, 0.03207918256521225, -0.017567172646522522, -0.026911813765764236, 0.002673265291377902, -0.03852896764874458, 0.051824573427438736, -0.06857138127088547, -0.05657704547047615, 0.01617160439491272, 0.04699666425585747, 0.03754829987883568, -0.0056718485429883, 0.0627628043293953, 0.04488445445895195, 0.021367263048887253, 0.01239980198442936, 0.0361904501914978, -0.028646843507885933, -0.06947661191225052, 0.0108910808339715, -0.05631301924586296, 0.03675622120499611, -0.04839223250746727, 0.008345114067196846, 0.036152731627225876, 0.04228191077709198, -0.02210276573896408, -0.06766614317893982, -0.021178673952817917, -0.0637434720993042, -0.02566711977124214, 0.012692117132246494, 0.04099949821829796, 0.018934451043605804, 0.069023996591568, 0.017699185758829117, -0.03666192665696144, 0.0015063638566061854, 0.017850058153271675, 0.007472884841263294, 0.02517678402364254, 0.00033681021886877716, -0.01602073386311531, 0.0023479473311454058, -0.0251202080398798, -0.0333993136882782, -0.057670868933200836, -0.011918897740542889, 0.017416300252079964, 0.0008203671313822269, -0.017708614468574524, -0.007373875007033348, -0.014455434866249561, -0.005223947111517191, 0.025855708867311478, -0.014163119718432426, -0.05955676734447479, -0.02368692308664322, -0.007633186411112547, -0.011437992565333843, 0.046883512288331985, -0.004537950269877911, 0.04563881456851959, -0.01933049038052559, -0.0006989622488617897, -0.03075905330479145, 0.019057035446166992, 0.02576141431927681, 0.011720878072082996, -0.003686937503516674, -0.026949532330036163, -0.01707683876156807, 0.006567651871591806, -0.06755299121141434, -0.039754804223775864, -0.010693061165511608, -0.04088634252548218, -0.01634133607149124, 0.006364917382597923, 0.097991444170475, -0.003656291402876377, -0.01139084529131651, 0.0560867115855217, -0.0007172318873926997, -0.02251766435801983, -0.030740194022655487, -0.024837322533130646, -0.03930218517780304, -0.0008138843695633113, 0.05476658046245575, 0.006831678096204996, 0.08916541934013367, -0.02544081024825573, 0.008472412824630737, -0.049372900277376175, -0.08297966420650482, -0.011890608817338943, 0.0034677013754844666, 0.04269681125879288, -0.0006700843805447221, -0.036888234317302704, 0.07143794745206833, 0.0059547340497374535, 0.009174910373985767, -0.04997638985514641, -0.03741628676652908, -0.04563881456851959, 0.002637904603034258, 0.03485145792365074, -0.015181506983935833, 0.07026869058609009, 0.027402149513363838, 0.05167369917035103, -0.046770356595516205, -0.06547849625349045, -0.05868925526738167, 0.04824135825037956, -0.026044299826025963, -0.005987737327814102, 0.014332851395010948, -0.01266382820904255, -0.007637901231646538, 0.007802917622029781, 0.03156999126076698, -0.011815172620117664, -0.01748230680823326, 0.01426684483885765, -0.007788773160427809, -0.015040064230561256, 0.016539355739951134, -0.01684110052883625, 0.08177268505096436, -0.013088156469166279, 0.0457896888256073, -0.027213558554649353, 0.043790630996227264, 0.025252221152186394, 0.02363034524023533, 0.023649204522371292, 0.0015429031336680055, 0.04020741954445839, -0.007689763326197863, 0.05804804712533951, -0.03473830595612526, 0.015370097011327744, -0.004009897820651531, -0.019245624542236328, -0.026968391612172127, -0.013484195806086063, 0.015775565057992935, -0.030268719419836998, 0.025591682642698288, -0.017812339588999748, 0.041716139763593674, 0.006826963275671005, -0.06491272896528244, -0.010570477694272995, 0.02979724295437336, 0.044809021055698395, 0.00042285447125323117, 0.018349820747971535, -0.0034488423261791468, 0.02076377533376217, -0.030306436121463776, -0.056011274456977844, 0.004860911052674055, 0.05721824988722801, 0.020575184375047684, 0.042470499873161316, -0.01801035925745964, 0.021103236824274063, -0.06842050701379776, 0.08222530782222748, 0.01139084529131651, -0.004615744110196829, 0.011437992565333843, 0.04148983210325241, -0.000661244208458811, 0.004606314469128847, -0.028269663453102112, -0.06947661191225052, 0.021329546347260475, 0.019801964983344078, -0.018264956772327423, -0.032060325145721436, 0.006751527544111013, -0.003941534087061882, -0.028967447578907013, -0.02857140824198723, 0.034078240394592285, -0.0009641671204008162, 0.02210276573896408, 0.024158397689461708, -0.002301978413015604, 0.024026384577155113, -0.014596877619624138, -0.06065059080719948, -0.0006412065122276545, -0.019688811153173447, -0.045223917812108994, 0.039603929966688156, 0.016039591282606125, -0.002586042508482933, -0.04699666425585747, 0.017322005704045296, 0.014813756570219994, 0.018349820747971535, -0.08765669912099838, -0.04058460146188736, -0.03481374308466911, -0.006176327355206013, 0.007515317294746637, -0.03313528746366501, 0.06468641757965088, -0.013804798945784569, 0.04262137413024902, 0.0047666160389781, 0.043639760464429855 ]
21,113
tfields.core
dot
Computes the n-d dot product between self and other defined as in `mathematica <https://reference.wolfram.com/legacy/v5/Built-inFunctions/ AdvancedDocumentation/LinearAlgebra/2.7.html>`_ by summing over the last dimension. When self and b are both one-dimensional vectors, this is just the "usual" dot product; when self and b are 2D matrices, this is matrix multiplication. Note: * This is not the same as the numpy.dot function. Examples: >>> import tfields >>> import numpy as np Scalar product by transposed dot product >>> a = tfields.Tensors([[4, 0, 4]]) >>> b = tfields.Tensors([[10, 0, 0.5]]) >>> c = a.t.dot(b) >>> assert c.equal([42]) >>> assert c.equal(np.dot(a[0], b[0])) >>> assert c.rank == 0 To get the angle between a and b you now just need >>> angle = np.arccos(c) Matrix vector multiplication >>> a = tfields.Tensors([[[1, 20, 0], [2, 18, 1], [1, 5, 10]]]) >>> b = tfields.Tensors([[1, 2, 3]]) >>> c = a.dot(b) >>> assert c.equal([[41,41,41]]) TODO: generalize dot product to inner # Matrix matrix multiplication can not be done like this. It requires # >>> a = tfields.Tensors([[[1, 8], [2, 4]]]) # >>> b = tfields.Tensors([[[1, 2], [1/2, 1/4]]]) # >>> c = a.dot(b) # >>> c # >>> assert c.equal([[[5, 4], [4, 5]]]) TODO: handle types, fields and maps (which fields etc to choose for the output?)
def dot(self, b, out=None): # pylint:disable=line-too-long """ Computes the n-d dot product between self and other defined as in `mathematica <https://reference.wolfram.com/legacy/v5/Built-inFunctions/ AdvancedDocumentation/LinearAlgebra/2.7.html>`_ by summing over the last dimension. When self and b are both one-dimensional vectors, this is just the "usual" dot product; when self and b are 2D matrices, this is matrix multiplication. Note: * This is not the same as the numpy.dot function. Examples: >>> import tfields >>> import numpy as np Scalar product by transposed dot product >>> a = tfields.Tensors([[4, 0, 4]]) >>> b = tfields.Tensors([[10, 0, 0.5]]) >>> c = a.t.dot(b) >>> assert c.equal([42]) >>> assert c.equal(np.dot(a[0], b[0])) >>> assert c.rank == 0 To get the angle between a and b you now just need >>> angle = np.arccos(c) Matrix vector multiplication >>> a = tfields.Tensors([[[1, 20, 0], [2, 18, 1], [1, 5, 10]]]) >>> b = tfields.Tensors([[1, 2, 3]]) >>> c = a.dot(b) >>> assert c.equal([[41,41,41]]) TODO: generalize dot product to inner # Matrix matrix multiplication can not be done like this. It requires # >>> a = tfields.Tensors([[[1, 8], [2, 4]]]) # >>> b = tfields.Tensors([[[1, 2], [1/2, 1/4]]]) # >>> c = a.dot(b) # >>> c # >>> assert c.equal([[[5, 4], [4, 5]]]) TODO: handle types, fields and maps (which fields etc to choose for the output?) """ if out is not None: raise NotImplementedError("performance feature 'out' not yet implemented") return Tensors(np.einsum("t...i,t...i->t...", self, b))
(self, b, out=None)
[ -0.03651954233646393, -0.07390724867582321, 0.05544930696487427, 0.05159918591380119, -0.02008102834224701, -0.039180655032396317, -0.07919172942638397, -0.033745188266038895, -0.03542489930987358, 0.01854286715388298, 0.024063263088464737, -0.0070208110846579075, 0.011314451694488525, 0.03765193000435829, -0.03708573430776596, 0.022100456058979034, 0.03553813695907593, -0.014343592338263988, 0.035972218960523605, 0.013164020143449306, -0.030083797872066498, 0.017693575471639633, 0.031933367252349854, 0.03232970088720322, -0.02272327058017254, 0.001017380622215569, 0.01983567886054516, -0.033405471593141556, -0.015117391012609005, 0.007728553842753172, -0.021515388041734695, -0.015787387266755104, 0.0176086463034153, -0.052240874618291855, 0.014117114245891571, -0.0017540231347084045, 0.015796825289726257, 0.041181206703186035, -0.06771685183048248, 0.0007295651012100279, 0.036632779985666275, -0.050768766552209854, 0.022421300411224365, -0.005477931350469589, -0.011927829124033451, -0.012333601713180542, -0.026384660974144936, 0.009521503001451492, -0.06171519309282303, 0.004925891757011414, 0.019590327516198158, -0.06484813243150711, 0.020345253869891167, -0.029347743839025497, -0.03825587034225464, 0.062092654407024384, 0.026969728991389275, -0.025422129780054092, -0.06699967384338379, 0.018703289330005646, -0.052089888602495193, -0.005779901519417763, 0.011616422794759274, 0.005558141972869635, 0.045484285801649094, 0.056543949991464615, -0.020590603351593018, 0.005492086056619883, -0.016646116971969604, 0.04846624284982681, -0.03212209790945053, 0.0075586955063045025, -0.012522333301603794, -0.024497345089912415, 0.023440450429916382, 0.0020441978704184294, 0.007846510969102383, 0.015881754457950592, -0.023440450429916382, -0.025403257459402084, -0.04295528307557106, -0.02610156312584877, -0.022647777572274208, -0.06798107922077179, 0.03997332602739334, 0.030215909704566002, 0.001804744708351791, 0.010512343607842922, -0.09987669438123703, -0.021119052544236183, -0.036387428641319275, -0.04854173585772514, -0.003720369189977646, 0.06473489850759506, -0.05254284292459488, -0.03551926463842392, 0.004583815578371286, 0.028687184676527977, -0.008530662395060062, 0.037463199347257614, 0.031499285250902176, 0.022251442074775696, -0.010757694020867348, 0.006383842322975397, 0.055222831666469574, -0.06718840450048447, -0.09157251566648483, -0.015910062938928604, 0.05627972632646561, -0.017570899799466133, -0.03491532430052757, 0.05556254833936691, 0.034141525626182556, -0.020043283700942993, -0.003949206322431564, 0.0032744910567998886, -0.033480964601039886, -0.00489286333322525, 0.012371348217129707, 0.059525907039642334, 0.03948262333869934, 0.03955811634659767, 0.04212486743927002, -0.013890637084841728, -0.022157074883580208, -0.013692468404769897, 0.05997886508703232, -0.018240896984934807, 0.0047701881267130375, -0.06069604307413101, 0.004524837248027325, 0.013362188823521137, 0.05665719136595726, 0.06933994591236115, -0.022006090730428696, 0.06420645117759705, 0.03172576054930687, -0.01754259131848812, -0.06296081840991974, -0.005878985393792391, -0.002273034770041704, 0.0019805009942501783, 0.03063111938536167, -0.001578266965225339, -0.013164020143449306, 0.03876544535160065, 0.047786809504032135, -0.01482485793530941, 0.014513450674712658, -0.024667203426361084, -0.023987770080566406, -0.025742974132299423, 0.05371297895908356, -0.011257832869887352, -0.02602607011795044, 0.009007209911942482, 0.0569969080388546, -0.03527391329407692, -0.002767275320366025, -0.019816804677248, -0.0029300563037395477, -0.00836552307009697, -0.03129167854785919, 0.07420921325683594, -0.005572296679019928, -0.018231460824608803, 0.059261683374643326, 0.011003045365214348, 0.014135987497866154, -0.01470218226313591, 0.016872594133019447, -0.0345001146197319, -0.012862049974501133, 0.017844561487436295, -0.04925891384482384, 0.020458491519093513, -0.0026611138600856066, 0.0008893971098586917, 0.01805216632783413, -0.013437680900096893, 0.026554519310593605, 0.02113792486488819, -0.026214802637696266, -0.059601400047540665, 0.0026823461521416903, 0.046541184186935425, 0.01915624551475048, 0.019967790693044662, 0.014437957666814327, 0.020118774846196175, 0.014636126346886158, -0.017816251143813133, 0.022515665739774704, 0.029460983350872993, 0.00029784184880554676, 0.04080374538898468, -0.0009430676000192761, 0.03540602698922157, 0.06881149858236313, 0.026988601312041283, -0.015957245603203773, -0.017995545640587807, 0.03223533555865288, 0.02766803465783596, 0.011059664189815521, -0.020590603351593018, 0.00009989498357754201, 0.02336495742201805, -0.01139938086271286, -0.02864943817257881, 0.05733662471175194, -0.02355368807911873, -0.028234228491783142, 0.032254207879304886, 0.025950578972697258, 0.05095749720931053, 0.047635823488235474, 0.015051335096359253, -0.0457485094666481, 0.021515388041734695, 0.046201467514038086, -0.002529001794755459, -0.0037746294401586056, 0.036293063312768936, -0.02313847839832306, 0.0031447382643818855, -0.004456421826034784, 0.023685799911618233, 0.015183446928858757, -0.06979290395975113, 0.008205100893974304, -0.00037687315489165485, -0.04080374538898468, 0.021590881049633026, 0.03191449120640755, -0.019193992018699646, -0.008441015146672726, -0.053146783262491226, 0.0031140693463385105, -0.0030102671589702368, -0.02025088667869568, -0.03731221333146095, -0.003939769696444273, 0.00621870206668973, -0.009889529086649418, 0.028800424188375473, -0.003364138538017869, 0.01903356984257698, -0.007577568758279085, 0.016334708780050278, -0.014145424589514732, -0.030668865889310837, 0.07643625140190125, 0.0020005537662655115, -0.009776290506124496, -0.02328946441411972, 0.0352361686527729, -0.012041068635880947, 0.015513727441430092, 0.044653866440057755, 0.03268829360604286, -0.026950854808092117, -0.025403257459402084, 0.0108237499371171, -0.008823196403682232, -0.0337640605866909, -0.013532047159969807, -0.011625858955085278, -0.012258109636604786, 0.020968066528439522, 0.039444878697395325, 0.06299857050180435, -0.006209265440702438, -0.02206270955502987, -0.006657503079622984, -0.02047736570239067, 0.02321397140622139, 0.060998015105724335, -0.012814867310225964, -0.028215356171131134, -0.020703842863440514, -0.08168298006057739, -0.07866328209638596, 0.02113792486488819, -0.048692721873521805, -0.00991783943027258, -0.02610156312584877, -0.017325550317764282, 0.059941116720438004, -0.0550340972840786, 0.099801205098629, 0.006133772898465395, 0.0907420963048935, 0.02221369557082653, -0.022289186716079712, -0.008474043570458889, -0.09028913825750351, 0.05144819989800453, 0.029706334695219994, -0.03587785363197327, 0.010663328692317009, -0.009011927992105484, 0.022024963051080704, 0.016834847629070282, -0.004187479615211487, 0.012928105890750885, 0.11150255799293518, 0.019816804677248, 0.03610433265566826, 0.005293917842209339, -0.019760185852646828, -0.03559475764632225, -0.025667481124401093, 0.027233952656388283, -0.015428798273205757, 0.005487367510795593, -0.021704120561480522, 0.010455723851919174, 0.02908352017402649, 0.003491532290354371, 0.01284317672252655, 0.0379161536693573, 0.002308421768248081, 0.04944764822721481, 0.024402979761362076, -0.007218978833407164, 0.036953624337911606, -0.05963914841413498, 0.013409371487796307, 0.008558972738683224, 0.06847178190946579, -0.018155967816710472, 0.007789891678839922, 0.030329149216413498, -0.07545484602451324, -0.05375072360038757, 0.03304688259959221, -0.024233121424913406, 0.02047736570239067, 0.003165970556437969, -0.011295579373836517, 0.051334962248802185, -0.023572562262415886, 0.04706963151693344, 0.010134880430996418, 0.00598750589415431, 0.0032626953907310963, 0.015674149617552757, 0.01846737414598465, 0.056204233318567276, 0.0102764293551445, 0.0349719412624836, 0.02468607760965824, -0.036727145314216614, -0.005218425299972296, 0.03568912297487259, -0.05061778053641319, 0.051259469240903854, -0.008422141894698143, 0.01634414680302143, -0.029800700023770332, 0.03210322558879852, -0.01805216632783413, 0.00513821467757225, 0.05861999839544296, -0.023251717910170555, -0.052580591291189194, -0.007676652632653713, 0.018750471994280815, -0.015353305265307426, 0.015532600693404675, -0.07122725993394852, 0.0354626439511776, 0.02395002357661724, 0.009672488085925579, 0.011210650205612183, -0.07651174068450928, 0.040086567401885986, 0.01122952252626419, 0.011757970787584782, -0.008662775158882141, -0.054316919296979904, 0.01077656727284193, 0.012258109636604786, 0.014938096515834332, 0.07549259066581726, 0.04454062879085541, -0.06379123777151108, 0.01859004981815815, 0.02155313454568386, -0.013975566253066063, 0.019014695659279823, -0.026120437309145927, -0.0048032160848379135, -0.12531770765781403, -0.06228138878941536, 0.0021173313725739717, -0.018089912831783295, -0.02311960607767105, -0.08877928555011749, 0.01783512532711029, 0.047296106815338135, -0.029385490342974663, 0.023836785927414894, -0.042577821761369705, 0.010229245759546757, -0.011965575627982616, 0.038954176008701324, -0.057865072041749954, 0.06299857050180435, -0.05129721388220787, 0.011125721037387848, 0.007917285896837711, 0.018042730167508125, -0.009290306828916073, 0.04782455787062645, -0.0012751170434057713, -0.05292030796408653, 0.01861836016178131, 0.003918537404388189, 0.02147764153778553, 0.03338659927248955, 0.048768214881420135, 0.006379123777151108, 0.0005181268788874149, -0.01940159499645233, -0.01854286715388298, -0.03587785363197327, 0.02502579428255558, 0.01663667894899845, -0.0009006030159071088, -0.0667731985449791, -0.007105740252882242, 0.04823976382613182, 0.039935581386089325, -0.036293063312768936, 0.036802638322114944, -0.03733108565211296, -0.020062156021595, -0.011578676290810108, 0.02734719030559063, 0.011456000618636608, 0.026573391631245613, -0.04616371914744377, -0.02981957420706749, -0.03451898694038391, 0.012003322131931782, -0.006841516122221947, -0.06197941675782204, -0.04627695679664612, 0.08809985220432281, 0.033820681273937225, 0.09089308232069016, -0.00808714423328638, 0.02883817069232464, -0.00962530542165041, 0.022515665739774704, -0.11550366133451462, 0.014683309011161327, 0.06080928072333336, -0.05409044027328491, 0.017891744151711464, 0.008332494646310806, 0.01527781318873167, -0.01049347035586834, -0.03338659927248955, 0.05227861925959587, -0.013315006159245968, 0.013909510336816311, 0.010087697766721249, 0.043483734130859375, -0.029272252693772316, 0.013560356572270393, 0.030215909704566002, 0.018231460824608803, -0.00875714048743248, 0.00951678492128849, -0.01135219819843769, -0.01503246184438467, -0.09127054363489151, -0.07224640995264053, -0.0019168041180819273, -0.03551926463842392, -0.028271974995732307, 0.04676765948534012, 0.07032135128974915, 0.048768214881420135, 0.02529001794755459, 0.07881426811218262, -0.04053952172398567, -0.004260613117367029, 0.08523113280534744, 0.03633080795407295, -0.05476987361907959, -0.07813483476638794, 0.031423792243003845, -0.021458769217133522, -0.013777397572994232, -0.0018755190540105104, 0.02387453243136406, -0.011701351962983608, 0.003088118741288781, -0.03574574366211891, -0.031933367252349854, 0.022742142900824547, -0.005345819052308798, -0.0277623999863863, 0.008639183826744556, 0.0016490413108840585, 0.03231082856655121, -0.050844259560108185, -0.038954176008701324, 0.020684970542788506, 0.010512343607842922, -0.01156923919916153, 0.03838798403739929, -0.02883817069232464, 0.01540048886090517, 0.035387150943279266, -0.059525907039642334, 0.039369385689496994, 0.049523141235113144, -0.07417146861553192, -0.045069076120853424, -0.025403257459402084, 0.013437680900096893, -0.020364126190543175, -0.012626135721802711, 0.004640435334295034, 0.027158459648489952, -0.07636075466871262, -0.02742268331348896, -0.01653287746012211, -0.0016136540798470378, -0.07039684057235718, 0.005128778051584959, -0.04435189813375473, 0.03534940630197525, 0.0012114201672375202, 0.0029512885957956314, 0.014098240993916988, -0.022855382412672043, 0.03221646323800087, -0.0442764051258564, -0.028875915333628654, 0.02874380350112915, -0.023062987253069878, 0.004225226119160652, 0.03967135772109032, 0.002205799100920558, 0.029442111030220985, -0.028366340324282646, 0.005874267313629389, 0.07394499331712723, 0.016061048954725266, 0.03393391892313957, -0.007818201556801796, 0.013966129161417484, -0.02321397140622139, -0.0048362440429627895, -0.040426284074783325, 0.017080198973417282, 0.04782455787062645, -0.02462945692241192, 0.051259469240903854, 0.022157074883580208, 0.03421701863408089, -0.021534262225031853, 0.027479304000735283, -0.021251164376735687, -0.02353481575846672, -0.011559803038835526, -0.054807621985673904, -0.030102670192718506, 0.015985555946826935, 0.04303077608346939, 0.0032792093697935343, 0.0364440493285656, -0.020968066528439522, -0.029781827703118324, -0.041671909391880035, 0.014909787103533745, 0.023081859573721886, 0.041181206703186035, 0.024818189442157745, -0.04053952172398567, -0.023987770080566406, -0.014928659424185753, 0.028894789516925812, -0.018316389992833138, -0.046880900859832764, -0.014881476759910583, -0.00005061100091552362, 0.001818899647332728, -0.008625028654932976, -0.016617806628346443, -0.039595864713191986, 0.018382444977760315, 0.06937769055366516, -0.04740934818983078, 0.02693198248744011, 0.020269760861992836, 0.02262890338897705, 0.00022072736464906484, -0.019816804677248, -0.00801165122538805, -0.07009486854076385, 0.005525114014744759, -0.008238129317760468, -0.03251843526959419, 0.019344976171851158, 0.01209768746048212, -0.0261770561337471, 0.01866554282605648, -0.014211480505764484, -0.04450288414955139, -0.046956390142440796, 0.045635271817445755, 0.0028191765304654837, 0.006709403824061155, -0.021779611706733704, 0.04982510954141617, -0.03691587597131729, 0.00409075478091836, -0.06107350438833237, 0.01668386347591877, 0.01829751767218113, -0.05741211399435997, 0.05733662471175194, 0.07904074341058731, 0.015645839273929596, 0.00415209261700511, -0.02262890338897705, -0.003682622918859124, -0.041936133056879044, -0.050919752568006516, 0.0004025288508273661, -0.01487204059958458, 0.011087974533438683, 0.039444878697395325, -0.015551473945379257, -0.009568685665726662, -0.05714789032936096, -0.029102394357323647, 0.07715342938899994, -0.0042393808253109455, -0.053901709616184235, -0.0282531026750803, 0.07115177065134048, 0.03661390766501427, -0.06983064860105515, 0.0019038288155570626, 0.03165026754140854, 0.011465437710285187, -0.02898915484547615, -0.017231183126568794, 0.0352361686527729, 0.06764136254787445, 0.008450452238321304, -0.0015629325062036514, -0.03850122168660164, -0.06952867656946182, -0.041520923376083374, -0.048692721873521805, 0.004128501284867525, -0.0035316378343850374, 0.002294267062097788, -0.009729107841849327, -0.0555247999727726, 0.014588942751288414, 0.017523717135190964, 0.015796825289726257, -0.020552858710289, -0.023232845589518547, 0.00397515669465065, -0.04095473140478134, 0.039520371705293655, -0.02140215039253235, 0.037708550691604614, -0.040275298058986664, 0.051674678921699524, 0.0013175816275179386, 0.020364126190543175, 0.040841490030288696, -0.07458668202161789, -0.06658446788787842, 0.0694909319281578, 0.05476987361907959, -0.0432949997484684, -0.078285813331604, -0.011333324946463108, -0.008148481138050556, 0.056204233318567276, 0.04880595952272415, 0.0020807646214962006, 0.022836508229374886, -0.00157000997569412, -0.009729107841849327, -0.027970004826784134, 0.005614761263132095, 0.017401041463017464, -0.009266715496778488, -0.045220062136650085, 0.004350260365754366, -0.015107954852283001, 0.04318176209926605, 0.012088251300156116, -0.03525504097342491, -0.03906741738319397, 0.007214260753244162, 0.0017540231347084045, 0.027970004826784134, 0.07209542393684387, -0.04197388142347336, 0.040426284074783325, -0.024648331105709076, -0.0026823461521416903, 0.004088395740836859, -0.02553536929190159, 0.06794333457946777, -0.060582805424928665, -0.04393668845295906, 0.056468456983566284, 0.006803769618272781, 0.021364403888583183, 0.0026965010911226273, -0.02527114562690258, -0.03098970837891102, -0.02857394516468048, 0.016910340636968613, -0.020118774846196175, 0.04004881903529167, 0.06684868782758713, 0.0008870379533618689, -0.06518784910440445, 0.004373852163553238, 0.002814458217471838, -0.08198495209217072, -0.02419537492096424, 0.0029725206550210714, -0.025629734620451927, 0.005147650837898254, 0.032763782888650894, -0.012361912056803703, -0.023648053407669067, 0.008030524477362633, -0.02898915484547615, 0.02223256789147854, 0.04986285790801048, 0.011456000618636608, 0.028271974995732307, 0.016013866290450096, -0.04053952172398567, -0.028536198660731316, 0.0804750993847847, 0.027158459648489952, 0.08296635746955872, -0.08183396607637405, -0.04095473140478134, -0.09814036637544632, -0.014560633338987827, 0.016495130956172943, 0.003057449823245406, 0.08628803491592407, -0.02328946441411972, -0.0002142397133866325, -0.0032556180376559496, 0.029970558360219002 ]
21,114
tfields.core
epsilon_neighbourhood
Returns: indices for those sets of points that lie within epsilon around the other Examples: Create mesh grid with one extra point that will have 8 neighbours within epsilon >>> import tfields >>> p = tfields.Tensors.grid((0, 1, 2j), ... (0, 1, 2j), ... (0, 1, 2j)) >>> p = tfields.Tensors.merged(p, [[0.5, 0.5, 0.5]]) >>> [len(en) for en in p.epsilon_neighbourhood(0.9)] [2, 2, 2, 2, 2, 2, 2, 2, 9]
def epsilon_neighbourhood(self, epsilon): """ Returns: indices for those sets of points that lie within epsilon around the other Examples: Create mesh grid with one extra point that will have 8 neighbours within epsilon >>> import tfields >>> p = tfields.Tensors.grid((0, 1, 2j), ... (0, 1, 2j), ... (0, 1, 2j)) >>> p = tfields.Tensors.merged(p, [[0.5, 0.5, 0.5]]) >>> [len(en) for en in p.epsilon_neighbourhood(0.9)] [2, 2, 2, 2, 2, 2, 2, 2, 9] """ indices = np.arange(self.shape[0]) dists = self.distances(self) # this takes long dists_in_epsilon = dists <= epsilon indices = [indices[die] for die in dists_in_epsilon] # this takes long return indices
(self, epsilon)
[ 0.018218398094177246, -0.04159451648592949, -0.06100529059767723, -0.015741214156150818, -0.017987318336963654, 0.0003622189105954021, -0.022461039945483208, -0.004362802486866713, -0.07442645728588104, 0.011692681349813938, -0.019392287358641624, -0.0445893220603466, -0.05194693058729172, -0.009206253103911877, 0.004122478887438774, -0.014326999895274639, -0.012607760727405548, 0.02349628135561943, -0.021130014210939407, -0.04773201793432236, -0.03336804732680321, -0.057529840618371964, 0.045772455632686615, 0.0016949765849858522, 0.0022345499601215124, -0.020372070372104645, 0.00802312046289444, -0.01153554581105709, -0.025807086378335953, 0.023459307849407196, -0.027988487854599953, -0.05494173616170883, 0.010851547122001648, -0.015584079548716545, 0.042038191109895706, -0.016841158270835876, 0.052538495510816574, 0.07058127224445343, -0.044293537735939026, 0.004427505191415548, -0.026638977229595184, -0.08836524188518524, -0.008457551710307598, 0.00564761133864522, 0.02251649834215641, -0.014585810713469982, 0.047177426517009735, -0.0067336903885006905, -0.027896055951714516, 0.023681145161390305, -0.049580663442611694, -0.04566153511404991, 0.0454396978020668, 0.00603120494633913, -0.0278775691986084, 0.014012730680406094, 0.01189603190869093, -0.033109236508607864, -0.037472039461135864, -0.007889093831181526, -0.02735994942486286, -0.013301001861691475, 0.10012262314558029, -0.012265761382877827, 0.007417689077556133, -0.012090140022337437, -0.08437217026948929, 0.009964197874069214, -0.01660083420574665, 0.03203701972961426, -0.005800124257802963, -0.016462186351418495, 0.0925801545381546, -0.01941077411174774, -0.007223580963909626, 0.03911733254790306, 0.016813429072499275, 0.04473721235990524, 0.04144662618637085, -0.00008282797352876514, -0.03347896412014961, 0.0017723885830491781, 0.014086676761507988, -0.025437358766794205, 0.034162964671850204, 0.03604857996106148, -0.004478342831134796, 0.05383254960179329, 0.028043948113918304, -0.018588127568364143, 0.03142696991562843, -0.004164073150604963, -0.012265761382877827, -0.009076847694814205, -0.00023064737615641207, 0.057936541736125946, 0.016286564990878105, 0.018162939697504044, 0.015075701288878918, -0.04910001531243324, 0.015879862010478973, 0.052020877599716187, 0.013180840760469437, 0.010296953842043877, 0.014410189352929592, -0.05812140554189682, -0.02695324644446373, -0.021555203944444656, -0.0183293167501688, 0.0032305074855685234, -0.06522019952535629, 0.002534954808652401, -0.06854776293039322, -0.001041596056893468, 0.008905848488211632, -0.01551937684416771, 0.029781674966216087, 0.05686432495713234, 0.02427271194756031, -0.04166846349835396, 0.03307226300239563, 0.027544813230633736, -0.0673646330833435, 0.03462512418627739, -0.02547433041036129, 0.016157159581780434, 0.09435485303401947, 0.01752515695989132, -0.05601394921541214, -0.034162964671850204, 0.01920742355287075, 0.03307226300239563, 0.01857888512313366, 0.02540038526058197, 0.01428078394383192, 0.007426931988447905, -0.010712899267673492, -0.026712922379374504, -0.005319476593285799, -0.018467966467142105, -0.0055413139052689075, -0.0005956103559583426, 0.000012628196600417141, 0.007584067061543465, -0.0200578011572361, -0.021850986406207085, -0.044293537735939026, 0.017765481024980545, 0.07069218903779984, 0.004885044880211353, -0.03442177549004555, 0.0204829890280962, 0.04407170042395592, 0.015833646059036255, -0.012302733957767487, -0.04307343438267708, 0.047325316816568375, -0.04976552724838257, 0.0161479152739048, -0.01720164343714714, -0.01978050358593464, -0.006091285962611437, -0.006992500275373459, 0.006992500275373459, -0.05194693058729172, 0.005874070338904858, -0.053093090653419495, -0.007990769110620022, -0.019299855455756187, -0.009423469193279743, -0.006692095659673214, -0.015389971435070038, -0.07838255912065506, 0.023884495720267296, -0.05349979177117348, 0.01963261142373085, 0.008281930349767208, 0.011572519317269325, 0.010546521283686161, -0.020501475781202316, 0.031223617494106293, -0.00400000624358654, -0.02863551490008831, -0.06492441892623901, 0.010019657202064991, 0.06030280515551567, 0.0454396978020668, -0.01403121743351221, -0.009982683695852757, 0.05801048502326012, -0.0270826518535614, -0.029467403888702393, 0.003683425486087799, 0.03207399323582649, 0.0010704811429604888, 0.040559276938438416, 0.03469907119870186, 0.03438480198383331, -0.05024617537856102, 0.05804745852947235, -0.04392381012439728, -0.021795526146888733, -0.016933590173721313, -0.026361681520938873, 0.05128141865134239, 0.01745120994746685, -0.02906070277094841, -0.03026232123374939, -0.010555763728916645, 0.007584067061543465, -0.013264029286801815, -0.0647025853395462, -0.008697875775396824, 0.05797351524233818, 0.04222305491566658, -0.008827281184494495, -0.01410516258329153, 0.01386483944952488, 0.01515889074653387, -0.00912768580019474, -0.019022559747099876, -0.05120747163891792, 0.05194693058729172, -0.003248994005843997, 0.02532644011080265, -0.013837109319865704, -0.04806477576494217, 0.022424066439270973, -0.0020265772473067045, -0.10049235075712204, 0.013920298777520657, 0.007445418741554022, -0.018283100798726082, -0.057455893605947495, 0.06429588049650192, 0.039302196353673935, -0.008697875775396824, -0.013670731335878372, -0.03419993817806244, 0.038673657923936844, -0.02821032516658306, -0.051466282457113266, 0.011738897301256657, -0.022424066439270973, -0.009215496480464935, -0.04118781536817551, -0.0038405603263527155, -0.008831902407109737, 0.06359339505434036, 0.02780362404882908, -0.056753408163785934, -0.07017457485198975, 0.012552301399409771, -0.01094397995620966, 0.03800814598798752, -0.02961529605090618, -0.0018971721874549985, 0.05642065033316612, 0.02020569145679474, 0.0030595078133046627, -0.02632470801472664, 0.005545935593545437, 0.0392652228474617, -0.009779333136975765, -0.030705997720360756, 0.07553564012050629, 0.0009491637465544045, 0.049284882843494415, 0.02427271194756031, 0.006692095659673214, 0.023255957290530205, 0.07002668082714081, -0.04222305491566658, -0.0426667295396328, -0.027692705392837524, -0.045846402645111084, 0.026971733197569847, -0.0142068387940526, -0.0419272743165493, -0.0014939364045858383, -0.02384752407670021, -0.0436280257999897, -0.04325829818844795, 0.00714501366019249, -0.04325829818844795, -0.007417689077556133, 0.0011577140539884567, 0.008494524285197258, 0.024291198700666428, -0.045698508620262146, -0.014021974056959152, -0.01970655843615532, 0.028894323855638504, -0.032406751066446304, 0.03370080143213272, 0.01950320601463318, -0.03780479356646538, -0.005250152200460434, 0.0049081528559327126, -0.016730239614844322, 0.07394580543041229, -0.031500913202762604, -0.029116161167621613, 0.0023292929399758577, -0.0061929612420499325, 0.06766041368246078, 0.0227198489010334, 0.06074647977948189, 0.07675574719905853, -0.053721629083156586, -0.009312550537288189, -0.06211447715759277, 0.022849254310131073, -0.03682501241564751, 0.012838841415941715, -0.051133524626493454, -0.022424066439270973, -0.02371811866760254, -0.005176206585019827, 0.05368465557694435, 0.04765807464718819, 0.07350213080644608, -0.0222392026335001, 0.036695607006549835, -0.027748163789510727, -0.03333107382059097, 0.04189030081033707, -0.005624502897262573, -0.020279638469219208, 0.01045408844947815, -0.004986720625311136, -0.04695558920502663, -0.009871765039861202, 0.030946319922804832, 0.04137267917394638, -0.022830767557024956, 0.05923059210181236, 0.015907591208815575, -0.011285979300737381, -0.04776899144053459, -0.005282503552734852, 0.0540543869137764, -0.022997146472334862, 0.009173901751637459, 0.031353022903203964, -0.01301446184515953, -0.04318435117602348, -0.026768382638692856, 0.039228253066539764, 0.03512425720691681, 0.027970001101493835, 0.02055693417787552, 0.004339694511145353, 0.031001780182123184, 0.03749052435159683, 0.0348469614982605, 0.013217813335359097, -0.021019095554947853, 0.009603711776435375, 0.056050922721624374, -0.03673258051276207, 0.037472039461135864, 0.034588150680065155, -0.01660083420574665, -0.01970655843615532, -0.03981981799006462, 0.01150781661272049, 0.03041021339595318, -0.02434665709733963, -0.018283100798726082, -0.06958300620317459, -0.03623344749212265, -0.004143276251852512, 0.006128259003162384, 0.056198813021183014, -0.03011443093419075, -0.04832358658313751, 0.01727558858692646, -0.022849254310131073, 0.03675106540322304, 0.00564761133864522, 0.007135770283639431, 0.04189030081033707, 0.007061824668198824, 0.01333797536790371, 0.005901800002902746, 0.04695558920502663, 0.04566153511404991, 0.02181401289999485, -0.01079608779400587, 0.019373802468180656, -0.037619929760694504, -0.026934761554002762, 0.04558759182691574, -0.015750456601381302, 0.03357139602303505, 0.0227198489010334, 0.005240909289568663, -0.04251883924007416, -0.0076487697660923, 0.020316610112786293, -0.025234006345272064, -0.024660926312208176, 0.05368465557694435, -0.02996653877198696, -0.018625101074576378, -0.01428078394383192, -0.009178523905575275, -0.000050007296522380784, -0.010648196563124657, -0.05283427983522415, -0.00282380566932261, 0.06658820062875748, 0.030558105558156967, -0.008392849005758762, 0.01807975023984909, -0.023755090311169624, 0.022202229127287865, 0.016277320683002472, -0.0017481250688433647, 0.03527215123176575, -0.10078813880681992, 0.019170450046658516, 0.005407287273555994, 0.010518791154026985, -0.010759115219116211, -0.0270826518535614, -0.05009828507900238, -0.05298217013478279, -0.00021273862512316555, -0.03595614805817604, -0.10478121042251587, -0.004161762539297342, -0.03699139133095741, -0.0274523813277483, 0.01707223802804947, 0.01297748927026987, -0.021093042567372322, 0.049580663442611694, 0.03166729211807251, 0.028117893263697624, 0.04229700192809105, 0.043517109006643295, -0.01587061956524849, 0.005767772905528545, -0.028395190834999084, 0.028395190834999084, -0.0356973372399807, 0.032203398644924164, -0.01515889074653387, 0.058860864490270615, -0.06141199544072151, 0.03383020684123039, -0.029929565265774727, 0.03018837608397007, -0.011766626499593258, -0.09206253290176392, -0.013301001861691475, -0.012580030597746372, 0.07487013190984726, 0.04784293845295906, 0.038377873599529266, 0.0008174477843567729, 0.0010109778959304094, -0.040559276938438416, -0.06581176817417145, 0.025012169033288956, -0.028764920309185982, -0.0012328153243288398, -0.05043104290962219, 0.06551598757505417, -0.017811696976423264, -0.05789956822991371, -0.03721322864294052, 0.028247298672795296, 0.07468526810407639, -0.038377873599529266, 0.026121357455849648, 0.01907801814377308, -0.048175692558288574, -0.04998736456036568, -0.04377591982483864, 0.01336570456624031, -0.0479908287525177, -0.006821500603109598, 0.009779333136975765, -0.021148500964045525, -0.00747314840555191, 0.011249005794525146, -0.07169046252965927, 0.018135208636522293, -0.03941311687231064, 0.002775278640910983, -0.011979221366345882, 0.027951516211032867, 0.03116815909743309, 0.055976975709199905, 0.025381898507475853, 0.08977021276950836, 0.002712886780500412, -0.013291759416460991, 0.0029670754447579384, 0.022960172966122627, -0.017608346417546272, 0.004080884158611298, 0.017404993996024132, 0.03277647867798805, 0.03741657733917236, -0.021777041256427765, 0.046474941074848175, 0.03164880722761154, -0.05897178128361702, 0.01153554581105709, 0.017007535323500633, 0.04177938029170036, 0.014955539256334305, -0.015482403337955475, -0.048730287700891495, -0.014095920138061047, 0.014225324615836143, -0.00020291769760660827, 0.04059625044465065, 0.04089203104376793, 0.01111960131675005, -0.024328170344233513, 0.09169280529022217, -0.0029093055054545403, -0.006008096970617771, -0.00022631461615674198, 0.03773085027933121, -0.021166987717151642, 0.0011640688171610236, 0.017053751274943352, 0.022608930245041847, 0.0064563932828605175, 0.014835378155112267, 0.04603126645088196, -0.026195302605628967, 0.058860864490270615, 0.026620490476489067, 0.00531023321673274, -0.04773201793432236, 0.035142745822668076, -0.03159334510564804, 0.014123649336397648, 0.040004681795835495, -0.010759115219116211, 0.027286002412438393, -0.04510694369673729, -0.01882845163345337, 0.08829129487276077, 0.004670139867812395, 0.023902982473373413, -0.013670731335878372, 0.036917444318532944, 0.04784293845295906, -0.00854998454451561, -0.04503299668431282, 0.0075286077335476875, 0.040707167237997055, -0.010601980611681938, -0.055681195110082626, 0.03970889747142792, 0.026361681520938873, -0.06451771408319473, 0.019595639780163765, -0.007658012676984072, -0.019540179520845413, -0.028339730575680733, 0.032961342483758926, -0.011064141988754272, 0.04987644776701927, -0.048878178000450134, -0.040633220225572586, 0.010648196563124657, 0.028727946802973747, -0.0062761506997048855, -0.04030046612024307, 0.0027244407683610916, -0.08074882626533508, -0.021573688834905624, -0.0602288618683815, 0.03604857996106148, -0.027489354833960533, 0.01332873199135065, 0.08525951951742172, -0.0568273551762104, 0.04174241051077843, 0.010223007760941982, 0.017571372911334038, 0.04651191458106041, 0.03004048392176628, 0.029744701460003853, -0.011831329204142094, -0.05749286711215973, 0.004013870842754841, -0.06466560810804367, -0.022627416998147964, 0.04026349261403084, 0.02835821732878685, 0.0023200497962534428, 0.004508383572101593, -0.02858005464076996, -0.00459388317540288, 0.06477652490139008, -0.09346750378608704, 0.0032513048499822617, -0.023108065128326416, -0.0017504359129816294, -0.03699139133095741, 0.03919127956032753, 0.016868887469172478, 0.008351254276931286, -0.03116815909743309, -0.04466326907277107, 0.009816305711865425, 0.008998280391097069, 0.06803014129400253, 0.04185332730412483, 0.03741657733917236, -0.02525249309837818, 0.0017723885830491781, 0.06854776293039322, -0.027748163789510727, 0.0117573831230402, -0.0777909904718399, 0.05601394921541214, -0.08962231874465942, -0.016794942319393158, 0.07365002483129501, -0.020002340897917747, 0.025770114734768867, -0.04307343438267708, -0.048730287700891495, -0.06766041368246078, -0.025104602798819542, 0.028727946802973747, -0.04259278625249863, -0.08104460686445236, 0.03004048392176628, -0.07191229611635208, 0.08488978445529938, -0.006003475282341242, -0.007205094676464796, 0.00946506392210722, -0.0270826518535614, 0.020704826340079308, 0.024642441421747208, 0.022682877257466316, 0.018948612734675407, -0.015658024698495865, 0.04292554035782814, -0.03530912473797798, 0.0036718714982271194, -0.06178172305226326, 0.0392652228474617, -0.05771470442414284, 0.04536575451493263, -0.006590420380234718, 0.0042703705839812756, 0.04614218324422836, -0.008919713087379932, -0.04115084186196327, -0.0628909096121788, 0.01767304725944996, 0.02815486676990986, 0.020593907684087753, -0.007893715053796768, -0.014659756794571877, 0.024660926312208176, 0.02124093286693096, -0.00658117700368166, -0.039930734783411026, 0.00476950453594327, 0.022627416998147964, -0.023662658408284187, -0.04340618848800659, 0.017294075340032578, -0.07697758823633194, -0.022571958601474762, 0.07143165171146393, 0.047399263828992844, 0.005356449633836746, 0.022571958601474762, 0.025511303916573524, 0.025770114734768867, 0.012690949253737926, 0.009973441250622272, 0.06074647977948189, 0.005615259986370802, -0.033589884638786316, -0.00749625638127327, 0.06015491485595703, 0.0662924200296402, 0.020353583618998528, 0.03246220946311951, 0.013559812679886818, 0.024679413065314293, 0.012940516695380211, -0.015177377499639988, 0.0030618186574429274, 0.007205094676464796, -0.05734497308731079, 0.05338887497782707, 0.014724459499120712, 0.043738946318626404, 0.03730566054582596, -0.0010756804840639234, -0.02562222257256508, 0.019817477092146873, -0.02547433041036129, -0.02597346529364586, 0.027896055951714516, -0.05087471753358841, -0.046548888087272644, 0.08200590312480927, 0.05538541078567505, -0.028247298672795296, 0.00586020527407527, 0.042888570576906204, 0.003313696477562189, -0.003845182014629245, 0.028191840276122093, 0.01206240989267826, -0.06984181702136993, 0.009686901234090328, 0.003794344374909997, -0.04473721235990524, -0.044922079890966415, -0.03342350572347641, -0.029079189524054527, -0.005832475610077381, -0.015611808747053146, 0.055126599967479706, -0.030632050707936287, 0.023588713258504868, 0.03819300979375839, -0.028764920309185982, -0.01905953139066696, 0.02575162798166275, 0.017035266384482384, 0.00877644307911396, -0.03264707326889038, -0.04325829818844795, 0.006539582274854183, 0.03959798067808151, 0.024734873324632645, -0.03804511949419975, -0.008110931143164635, -0.007893715053796768, 0.04913698881864548, 0.048101749271154404, 0.07498104870319366, -0.04262975975871086, 0.02780362404882908, 0.01619413122534752, 0.07401975244283676, -0.06958300620317459, -0.06865867972373962, -0.00047718154382891953, -0.012164085172116756, 0.00039254824514500797, -0.04784293845295906, 0.046400994062423706, -0.07102494686841965, 0.04044835641980171, -0.00292085949331522, 0.0332016684114933 ]
21,115
tfields.core
equal
Test, whether the instance has the same content as other. Args: other (iterable) optional: see TensorFields.equal Examples: >>> import tfields >>> maps = [tfields.TensorFields([[1]], [42])] >>> tm = tfields.TensorMaps(maps[0], maps=maps) # >>> assert tm.equal(tm) >>> cp = tm.copy() # >>> assert tm.equal(cp) >>> cp.maps[1].fields[0] = -42 >>> assert tm.maps[1].fields[0] == 42 >>> assert not tm.equal(cp)
def equal(self, other, **kwargs): """ Test, whether the instance has the same content as other. Args: other (iterable) optional: see TensorFields.equal Examples: >>> import tfields >>> maps = [tfields.TensorFields([[1]], [42])] >>> tm = tfields.TensorMaps(maps[0], maps=maps) # >>> assert tm.equal(tm) >>> cp = tm.copy() # >>> assert tm.equal(cp) >>> cp.maps[1].fields[0] = -42 >>> assert tm.maps[1].fields[0] == 42 >>> assert not tm.equal(cp) """ if not issubclass(type(other), Tensors): return super(TensorMaps, self).equal(other, **kwargs) with other.tmp_transform(self.coord_sys): mask = super(TensorMaps, self).equal(other, **kwargs) if issubclass(type(other), TensorMaps): mask &= self.maps.equal(other.maps, **kwargs) return mask
(self, other, **kwargs)
[ 0.05097687244415283, -0.04585179686546326, -0.015003553591668606, 0.07625013589859009, -0.0569235198199749, -0.03423235937952995, -0.056297559291124344, 0.028344392776489258, 0.01502311509102583, 0.04772968962788582, 0.018407227471470833, -0.010670715011656284, 0.03994427248835564, 0.048903368413448334, 0.023278003558516502, -0.028148779645562172, -0.037636034190654755, 0.025605803355574608, 0.03071131557226181, -0.028813865035772324, -0.013556013815104961, 0.010103436186909676, 0.04350443556904793, 0.060405440628528595, 0.023141074925661087, 0.023023705929517746, -0.01013277843594551, -0.01986454799771309, 0.016167454421520233, 0.06333964318037033, -0.07378540188074112, -0.048042669892311096, 0.03910313546657562, 0.054654404520988464, 0.025762295350432396, -0.06474806368350983, -0.028422638773918152, 0.04679074138402939, -0.048199161887168884, -0.051055118441581726, 0.012196499854326248, -0.06236157566308975, 0.005467396695166826, -0.017810607329010963, 0.023884404450654984, 0.0053891511633992195, -0.019238585606217384, -0.01866152510046959, -0.022965021431446075, 0.023356249555945396, -0.017497625201940536, -0.03740129619836807, 0.02048073150217533, 0.06071842089295387, -0.02867693454027176, 0.038516294211149216, 0.036814454942941666, 0.02353230118751526, -0.042174264788627625, 0.02900947816669941, -0.054889142513275146, -0.00559943588450551, -0.028931232169270515, -0.028500882908701897, -0.02501896396279335, -0.05441967025399208, -0.07503733038902283, -0.009091136045753956, 0.03368464112281799, 0.0775020569562912, -0.07472434639930725, -0.0006363550783134997, 0.024510368704795837, 0.005829281639307737, -0.028383515775203705, 0.046282149851322174, -0.0033841130789369345, 0.06404384970664978, 0.0193755142390728, -0.06545227020978928, -0.035171303898096085, -0.03892708197236061, 0.0011015484342351556, -0.024510368704795837, -0.09037342667579651, 0.014230879954993725, -0.012509481981396675, 0.04741670563817024, 0.05919263884425163, -0.06427858769893646, -0.02319975756108761, 0.042565491050481796, 0.02452993020415306, -0.03444753214716911, -0.018192052841186523, 0.023004144430160522, -0.03884883597493172, -0.024882033467292786, -0.06650858372449875, 0.023884404450654984, 0.06529577821493149, 0.0027165820356458426, -0.000558720959816128, 0.02994842268526554, 0.02535150572657585, 0.022730285301804543, -0.0418221615254879, -0.041743915528059006, -0.0424872450530529, -0.0005987606127746403, -0.0459691658616066, 0.06725191324949265, -0.02785535901784897, 0.04988143593072891, 0.0015380108961835504, -0.02480378933250904, 0.022182568907737732, -0.0219478327780962, -0.03656015917658806, -0.029478950425982475, 0.029655002057552338, 0.0974155068397522, 0.03446709364652634, 0.004816981963813305, 0.05125072970986366, -0.0037459980230778456, 0.09154710918664932, 0.030417894944548607, -0.05246353521943092, -0.054771773517131805, 0.020989326760172844, -0.029381144791841507, -0.0019439088646322489, 0.10570952296257019, 0.06596086174249649, 0.023141074925661087, 0.03299999237060547, -0.011707466095685959, -0.039553046226501465, 0.014309125952422619, 0.044912852346897125, 0.008396708406507969, 0.0479644238948822, 0.042839352041482925, -0.05109424144029617, -0.0315328910946846, -0.06490454822778702, -0.03010491468012333, 0.05946649610996246, -0.004772968590259552, -0.0017372921574860811, -0.027737990021705627, -0.0006950391107238829, 0.026799045503139496, -0.0919383317232132, -0.013917898759245872, 0.03820331022143364, -0.05387195199728012, 0.044756364077329636, 0.04659513011574745, 0.0012812683125957847, 0.010983696207404137, 0.017155300825834274, 0.021204501390457153, -0.017869291827082634, 0.024021334946155548, -0.0215761661529541, -0.06017070636153221, 0.02106757089495659, -0.023473616689443588, 0.01757587119936943, -0.04636039212346077, 0.028383515775203705, -0.01675429381430149, 0.023336688056588173, -0.00966330524533987, -0.012646411545574665, -0.015727322548627853, -0.03446709364652634, -0.004484438803046942, -0.00018185940280091017, -0.020950203761458397, -0.026427380740642548, 0.02140011452138424, 0.025429751724004745, 0.03597331792116165, -0.01199110597372055, -0.012167158536612988, 0.022475987672805786, 0.004259483423084021, -0.007115439977496862, 0.003347435500472784, -0.034564901143312454, -0.010719618760049343, 0.020774150267243385, -0.020656783133745193, 0.005051718093454838, -0.027601061388850212, 0.054497912526130676, 0.11462949961423874, -0.09655480831861496, -0.044912852346897125, 0.017595432698726654, 0.006934497505426407, -0.024647297337651253, -0.01092501264065504, 0.042291633784770966, 0.008191314525902271, 0.008274449966847897, -0.02140011452138424, 0.01718464307487011, -0.022299936041235924, -0.0023681456223130226, -0.0013057199539616704, 0.054654404520988464, -0.018358323723077774, -0.0569235198199749, -0.028070533648133278, -0.048590388149023056, 0.018084466457366943, 0.0988239273428917, -0.004381741862744093, -0.05132897570729256, -0.004958801437169313, -0.00003428966738283634, 0.014289564453065395, 0.009624183177947998, 0.015316534787416458, -0.015238289721310139, -0.04565618559718132, 0.014876404777169228, 0.04827740415930748, 0.004790084902197123, -0.008005481213331223, 0.011746589094400406, 0.010083874687552452, 0.020930642262101173, -0.050937749445438385, -0.0023815941531211138, -0.015267631970345974, -0.03528866916894913, -0.019502663984894753, 0.004565129522234201, 0.008890632539987564, 0.012763779610395432, -0.05610194429755211, -0.06643033772706985, 0.04639951512217522, 0.007687609642744064, 0.019532006233930588, -0.022788969799876213, -0.015267631970345974, -0.014563423581421375, 0.005105511751025915, 0.03595375642180443, -0.024725543335080147, -0.006298753898590803, -0.02672080136835575, 0.045734431594610214, 0.0008998219855129719, -0.009629073552787304, 0.00943834986537695, -0.022945459932088852, -0.010592469945549965, -0.00875859335064888, -0.030515702441334724, 0.006870923098176718, 0.06799524277448654, 0.007183904759585857, -0.025879662483930588, -0.005335357505828142, 0.05089862644672394, -0.0027043563313782215, 0.026701239868998528, -0.005707023199647665, -0.017008591443300247, 0.048473019152879715, -0.0452258363366127, 0.014504739083349705, -0.027072904631495476, -0.013066980056464672, -0.004408638458698988, -0.039337869733572006, -0.05332423374056816, -0.0005107345641590655, -0.046673376113176346, -0.009506815113127232, 0.0005226547364145517, -0.003560165176168084, -0.08254888653755188, 0.011345581151545048, -0.0006363550783134997, 0.03673620894551277, -0.02730764076113701, -0.03656015917658806, -0.004415974020957947, -0.04620390385389328, 0.009629073552787304, -0.016842320561408997, 0.011736808344721794, -0.023786598816514015, -0.01942441798746586, 0.029655002057552338, -0.003183609340339899, 0.06592173874378204, 0.006068908143788576, -0.005242441315203905, 0.07347241789102554, 0.03820331022143364, 0.028774742037057877, 0.03376288712024689, 0.03728392720222473, 0.010308830067515373, 0.02589922398328781, 0.04823828116059303, 0.042017772793769836, 0.02830526977777481, 0.01311588380485773, 0.01630438305437565, 0.059740353375673294, 0.014553642831742764, 0.020930642262101173, -0.025957908481359482, 0.02212388440966606, -0.0026407819241285324, -0.11314283311367035, 0.06866032630205154, -0.024666858837008476, 0.03904445096850395, 0.050820380449295044, 0.010387075133621693, -0.012118254788219929, 0.051368098706007004, 0.010885889641940594, -0.0360124409198761, 0.0024696202017366886, 0.005433164071291685, 0.04632126912474632, -0.00019576630438677967, 0.01296917349100113, 0.007795196957886219, -0.02666211687028408, -0.016509776934981346, -0.04921634867787361, 0.006460134871304035, 0.007648486644029617, -0.035171303898096085, 0.03585594892501831, 0.0193755142390728, 0.0486295111477375, -0.03262832760810852, -0.01261706929653883, 0.05989684537053108, -0.024725543335080147, 0.0020893963519483805, 0.058214571326971054, 0.031669821590185165, 0.0020893963519483805, -0.05074213445186615, 0.02627088874578476, 0.0726117193698883, -0.02785535901784897, 0.033528149127960205, -0.06193122640252113, 0.002393819857388735, -0.003188499715179205, 0.017272669821977615, -0.042448125779628754, -0.0363449826836586, -0.012216061353683472, -0.04209601879119873, -0.00834780465811491, -0.023512739688158035, -0.02151748165488243, 0.014367809519171715, -0.035269107669591904, -0.08239239454269409, 0.05046827718615532, -0.03761647269129753, -0.013624478131532669, 0.04757319763302803, 0.0007500554202124476, -0.015140483155846596, 0.02425607107579708, -0.01199110597372055, 0.031219910830259323, 0.012059570290148258, 0.007433312013745308, 0.006778006907552481, 0.02233905903995037, -0.023278003558516502, -0.01141404639929533, -0.018984287977218628, -0.019796082749962807, -0.04499109834432602, 0.001820427947677672, -0.05649317055940628, 0.024451684206724167, -0.0535198450088501, -0.07668048143386841, 0.018270298838615417, -0.013291935436427593, -0.029263775795698166, -0.0006925939815118909, 0.016138112172484398, 0.051641955971717834, -0.015277412720024586, -0.00699318153783679, 0.002376703778281808, 0.031943678855895996, 0.00011194287071703002, 0.0093356529250741, 0.04659513011574745, 0.003435461549088359, -0.024334317073225975, -0.014622107148170471, -0.01998191699385643, -0.02261291816830635, 0.04565618559718132, 0.012675752863287926, 0.01283224392682314, 0.06193122640252113, -0.008939535357058048, -0.02873561903834343, 0.03769471496343613, -0.05406756326556206, -0.015101360157132149, 0.0404137447476387, 0.015737103298306465, 0.006914936471730471, -0.044756364077329636, -0.08653940260410309, 0.027385886758565903, 0.01680319756269455, 0.025801416486501694, 0.025644926354289055, 0.017008591443300247, -0.046008288860321045, 0.0004612198972608894, 0.02179134078323841, 0.02873561903834343, -0.02916596829891205, 0.017311792820692062, -0.05923176184296608, -0.05664966255426407, 0.005799939390271902, -0.017497625201940536, 0.04757319763302803, -0.000690148794092238, 0.04577355459332466, 0.021224062889814377, 0.06866032630205154, -0.04100058600306511, -0.03669708967208862, 0.005560312885791063, -0.027112027630209923, -0.01729223132133484, -0.05621931329369545, -0.02885298803448677, -0.0007097101188264787, 0.00829401146620512, -0.019893890246748924, -0.02775755152106285, -0.02589922398328781, 0.04882512241601944, 0.0014279783936217427, -0.0043988581746816635, 0.02529282309114933, 0.05457615852355957, 0.03431060165166855, 0.04753407463431358, -0.03256964311003685, -0.006049346644431353, -0.00713011110201478, 0.012675752863287926, 0.04236987978219986, 0.013644039630889893, 0.05868404358625412, -0.06353525817394257, -0.009775783866643906, -0.036325421184301376, 0.02632957324385643, 0.0394161157310009, -0.06830822676420212, 0.02693597599864006, -0.023082390427589417, -0.018808236345648766, 0.0014891076134517789, 0.05872316658496857, 0.014221099205315113, -0.01818227209150791, -0.018583280965685844, -0.03597331792116165, 0.03313692286610603, -0.03376288712024689, -0.04319145530462265, 0.00370198511518538, 0.03313692286610603, 0.004728955682367086, 0.0011284452630206943, 0.007369737606495619, 0.021556604653596878, 0.011462949216365814, 0.030183158814907074, 0.006958949379622936, -0.028500882908701897, -0.002692130394279957, -0.03411499038338661, 0.016822759062051773, 0.021282745525240898, -0.001193242147564888, -0.0438956655561924, 0.02785535901784897, -0.001718953368254006, 0.08387906104326248, 0.012304087169468403, -0.03749910369515419, -0.020813273265957832, 0.003638410707935691, -0.017722580581903458, 0.01390811800956726, 0.0583319365978241, 0.0022471097763627768, -0.06091403588652611, -0.05324598774313927, 0.0012513149995356798, -0.036873139441013336, 0.0005434387130662799, 0.04909898340702057, -0.04585179686546326, -0.02134143002331257, -0.07585890591144562, -0.030613508075475693, -0.003697094740346074, -0.021928271278738976, 0.08114046603441238, 0.002139522461220622, -0.028911670669913292, 0.04866863414645195, 0.03524954989552498, -0.0019756960682570934, -0.015150263905525208, 0.035719022154808044, -0.04639951512217522, -0.006518818903714418, 0.06686068326234818, -0.011335800401866436, -0.01092501264065504, 0.02179134078323841, 0.03135684132575989, 0.006127592176198959, -0.013722285628318787, 0.03884883597493172, -0.026564309373497963, -0.0349365659058094, 0.0418221615254879, -0.04659513011574745, -0.016226137056946754, 0.015404561534523964, 0.04416952282190323, 0.051915816962718964, 0.0239822119474411, 0.08685237914323807, 0.024862471967935562, -0.002606549533084035, -0.04260461404919624, -0.006924717221409082, 0.015228508971631527, 0.0036237395834177732, 0.049568455666303635, 0.005374480038881302, 0.034075867384672165, -0.02216300740838051, -0.01970805786550045, 0.04538232460618019, -0.010876108892261982, -0.01794753596186638, 0.012411675415933132, -0.002838840475305915, -0.07687609642744064, -0.04225251078605652, 0.06216596066951752, 0.06498279422521591, -0.0059173074550926685, 0.059740353375673294, -0.03405630588531494, 0.005907527171075344, 0.027601061388850212, 0.0013362845638766885, 0.006088469177484512, -0.01822139509022236, 0.09217306971549988, -0.02404089644551277, 0.0024940718431025743, 0.010915231890976429, -0.06451332569122314, 0.01740959845483303, 0.004961246624588966, -0.024862471967935562, -0.030535263940691948, 0.02319975756108761, -0.0037264367565512657, -0.03693182393908501, -0.04377829656004906, -0.015864253044128418, -0.0487077534198761, -0.04718197137117386, 0.004618923179805279, 0.03043745644390583, 0.02758149988949299, 0.05872316658496857, 0.018739771097898483, 0.05621931329369545, -0.08951272815465927, 0.044521626085042953, -0.06420034170150757, -0.07840187847614288, 0.07030348479747772, 0.0059857722371816635, 0.013516890816390514, 0.006450354121625423, -0.0002014207566389814, -0.04999880492687225, -0.01844635047018528, -0.0699513778090477, -0.0360124409198761, 0.03337165713310242, -0.01433846727013588, 0.01431890670210123, -0.0009089913801290095, 0.005574984010308981, -0.012744218111038208, 0.0006394115625880659, -0.03951392322778702, 0.004702059086412191, -0.07644574344158173, -0.032980430871248245, -0.0008979880949482322, -0.011815054342150688, 0.08106222748756409, -0.05316774174571037, -0.011462949216365814, -0.018328983336687088, 0.037909891456365585, -0.028148779645562172, -0.02873561903834343, -0.011668344028294086, -0.03595375642180443, 0.051055118441581726, -0.0008026265422813594, -0.04788617789745331, 0.0823141485452652, 0.022573795169591904, 0.02955719642341137, -0.014993772841989994, 0.01762477494776249, -0.007565351203083992, 0.0018827796448022127, 0.02026555687189102, -0.021986953914165497, 0.009932273998856544, -0.014719913713634014, -0.0002348889975110069, -0.033410780131816864, 0.024999402463436127, 0.0006889262003824115, 0.039885587990283966, -0.009369885548949242, -0.00004378379890113138, 0.03145464509725571, -0.05621931329369545, -0.011521633714437485, -0.011639001779258251, -0.04499109834432602, 0.012049790471792221, -0.033958498388528824, 0.03924006223678589, 0.000009226690053765196, -0.008249998092651367, 0.0002836395287886262, 0.006875813473016024, 0.013966802507638931, -0.056454047560691833, 0.06959927082061768, -0.016020743176341057, 0.05719738081097603, -0.03546472266316414, 0.025429751724004745, 0.02212388440966606, -0.01346798799932003, 0.046008288860321045, -0.07382452487945557, 0.058058079332113266, 0.039005327969789505, -0.005809720139950514, 0.02484291046857834, -0.029713686555624008, -0.002167641883715987, 0.010964135639369488, 0.011159748770296574, -0.03272613510489464, -0.03382157161831856, -0.02447124570608139, 0.010465321131050587, -0.0021309643052518368, 0.004303496330976486, -0.07018611580133438, 0.0390835739672184, 0.048355650156736374, -0.034291043877601624, -0.027777113020420074, 0.044091276824474335, 0.033410780131816864, -0.0823141485452652, -0.01702815294265747, -0.03835980221629143, 0.04131356626749039, -0.008059275336563587, 0.0005443556001409888, -0.005765707232058048, -0.01856371946632862, -0.01587403379380703, 0.03344990313053131, 0.0328630656003952, 0.006230289116501808, 0.031024297699332237, 0.004235031548887491, -0.05649317055940628, -0.009022671729326248, -0.0077071706764400005, 0.033528149127960205, 0.08262713253498077, -0.013164786621928215, 0.006313425023108721, -0.04013988375663757, 0.009120478294789791, -0.04941196367144585, -0.051368098706007004, -0.024001773446798325, 0.06357438117265701, 0.043660927563905716, -0.01636306755244732, 0.06400472670793533, 0.0329413078725338, -0.00041506733396090567, -0.00023901520762592554, -0.0053206863813102245, 0.040257252752780914, -0.01757587119936943, -0.010083874687552452, 0.0360124409198761, 0.008171753026545048, -0.04976406693458557, -0.0328630656003952, 0.07456785440444946, 0.04686898738145828, 0.012362771667540073, -0.07754117995500565, 0.0008234104607254267, -0.03749910369515419, -0.022808531299233437, 0.008616773411631584, -0.02051985263824463, 0.028774742037057877, -0.024569053202867508, 0.05015529319643974, -0.015443683601915836, 0.05594545230269432 ]
21,116
tfields.core
evalf
Args: expression (sympy logical expression) coord_sys (str): coord_sys to evalfuate the expression in. Returns: np.ndarray: mask of dtype bool with lenght of number of points in self. This array is True, where expression evalfuates True. Examples: >>> import tfields >>> import numpy as np >>> import sympy >>> x, y, z = sympy.symbols('x y z') >>> p = tfields.Tensors([[1., 2., 3.], [4., 5., 6.], [1, 2, -6], ... [-5, -5, -5], [1,0,-1], [0,1,-1]]) >>> np.array_equal(p.evalf(x > 0), ... [True, True, True, False, True, False]) True >>> np.array_equal(p.evalf(x >= 0), ... [True, True, True, False, True, True]) True And combination >>> np.array_equal(p.evalf((x > 0) & (y < 3)), ... [True, False, True, False, True, False]) True Or combination >>> np.array_equal(p.evalf((x > 0) | (y > 3)), ... [True, True, True, False, True, False]) True
def evalf(self, expression=None, coord_sys=None): """ Args: expression (sympy logical expression) coord_sys (str): coord_sys to evalfuate the expression in. Returns: np.ndarray: mask of dtype bool with lenght of number of points in self. This array is True, where expression evalfuates True. Examples: >>> import tfields >>> import numpy as np >>> import sympy >>> x, y, z = sympy.symbols('x y z') >>> p = tfields.Tensors([[1., 2., 3.], [4., 5., 6.], [1, 2, -6], ... [-5, -5, -5], [1,0,-1], [0,1,-1]]) >>> np.array_equal(p.evalf(x > 0), ... [True, True, True, False, True, False]) True >>> np.array_equal(p.evalf(x >= 0), ... [True, True, True, False, True, True]) True And combination >>> np.array_equal(p.evalf((x > 0) & (y < 3)), ... [True, False, True, False, True, False]) True Or combination >>> np.array_equal(p.evalf((x > 0) | (y > 3)), ... [True, True, True, False, True, False]) True """ coords = sympy.symbols("x y z") with self.tmp_transform(coord_sys or self.coord_sys): mask = tfields.evalf(np.array(self), expression, coords=coords) return mask
(self, expression=None, coord_sys=None)
[ 0.06789679825305939, -0.05331415310502052, 0.029204178601503372, 0.030642999336123466, 0.035192783921957016, 0.028445880860090256, -0.062452610582113266, -0.051214251667261124, -0.0769185945391655, 0.0073934015817940235, 0.07197993993759155, 0.038517627865076065, 0.022379500791430473, 0.003205751534551382, -0.009449554607272148, -0.05035873502492905, -0.06159709766507149, -0.0123174749314785, -0.011734168976545334, 0.0003873515233863145, -0.049269899725914, -0.027279268950223923, 0.027026504278182983, 0.02146565541625023, 0.0478699654340744, 0.016099240630865097, -0.0008931870688684285, 0.022651709616184235, -0.03960646688938141, 0.00760241923853755, -0.02945694513618946, -0.020007390528917313, -0.0033904651645570993, -0.03993700444698334, 0.001634471584111452, -0.02086290530860424, -0.0037064224015921354, 0.04899768903851509, 0.034492816776037216, 0.0002231448597740382, 0.010188408195972443, -0.06443585455417633, 0.01436876691877842, 0.03309288248419762, -0.05440299212932587, -0.010830044746398926, 0.029729153960943222, -0.001060887472704053, -0.06669130176305771, 0.01911298744380474, 0.027998680248856544, -0.03145962953567505, 0.034123390913009644, -0.03033190406858921, 0.014699307270348072, 0.022943362593650818, 0.01332853827625513, 0.029068073257803917, 0.003130408003926277, -0.06875231117010117, -0.009084988385438919, 0.048764366656541824, -0.039820343255996704, -0.0029286814387887716, 0.023701660335063934, 0.007349653635174036, -0.04670335352420807, -0.024148860946297646, 0.026345979422330856, 0.04293131083250046, -0.06774125248193741, 0.03083743527531624, 0.04048142582178116, -0.09146235138177872, -0.009328032843768597, -0.028018124401569366, 0.013221599161624908, 0.033695634454488754, -0.02593766525387764, -0.056736212223768234, -0.02795979380607605, 0.039120376110076904, 0.024673836305737495, 0.0260348841547966, -0.009609963744878769, 0.03750656545162201, 0.008112812414765358, 0.04145359992980957, 0.041064731776714325, -0.015904806554317474, 0.024382183328270912, 0.003239777870476246, -0.024032199755311012, -0.03960646688938141, -0.002787715755403042, 0.042114682495594025, -0.005706675350666046, -0.010450895875692368, -0.02068791352212429, 0.02321557141840458, 0.047908853739500046, 0.04137582704424858, -0.07019113749265671, -0.0011338007170706987, 0.034745585173368454, 0.04619782045483589, -0.04168692231178284, -0.03188738599419594, -0.005939997732639313, -0.014689585193991661, 0.016847817227244377, 0.058758340775966644, -0.0005018860683776438, 0.009298867546021938, -0.046858903020620346, 0.0088711092248559, -0.029068073257803917, 0.004163345322012901, -0.03252902254462242, -0.055102959275245667, 0.06163598224520683, 0.046158935874700546, 0.021971186622977257, 0.03147907182574272, 0.027065390720963478, 0.05969163030385971, 0.028329219669103622, 0.01729501783847809, 0.006625382229685783, -0.04670335352420807, -0.030118023976683617, 0.02156287245452404, 0.017674166709184647, 0.06809123605489731, 0.001453403732739389, 0.013999340124428272, 0.0015190256526693702, -0.026073770597577095, -0.07182439416646957, 0.002181320684030652, 0.007023974321782589, 0.03943147510290146, 0.01874356158077717, 0.032373473048210144, -0.03795376792550087, 0.03455114737153053, -0.03538722172379494, 0.03587330877780914, 0.022943362593650818, 0.03390951082110405, -0.01758667081594467, 0.028095897287130356, 0.02356555499136448, 0.008914857171475887, -0.015097899362444878, 0.057358406484127045, 0.040442537516355515, -0.04479788616299629, 0.051136478781700134, 0.0023721104953438044, -0.03085687942802906, 0.03523167222738266, -0.08430713415145874, 0.02453773282468319, -0.014922907575964928, -0.012803562916815281, -0.03908149152994156, 0.004773386288434267, 0.007310766261070967, 0.014815968461334705, 0.06054714694619179, -0.027454260736703873, 0.0344344861805439, -0.005847640801221132, 0.0006762702250853181, -0.005555987823754549, -0.02873753383755684, 0.018782448023557663, -0.04133693873882294, 0.018451908603310585, 0.000018987819203175604, 0.010966150090098381, -0.04320351779460907, -0.016536720097064972, 0.07295211404561996, 0.032023489475250244, 0.013756295666098595, -0.012171648442745209, 0.021932300180196762, 0.02444051392376423, -0.1252163201570511, -0.03733157366514206, 0.0180922020226717, -0.023176684975624084, 0.008866248652338982, -0.009716902859508991, -0.014174331910908222, 0.02201007306575775, -0.010946705937385559, 0.026676520705223083, -0.037117693573236465, -0.030915210023522377, 0.00803503766655922, 0.042270228266716, -0.07905738055706024, 0.012336918152868748, 0.0015712800668552518, 0.016604771837592125, -0.004122027661651373, -0.02271004021167755, 0.046664465218782425, -0.031498514115810394, -0.06634131819009781, 0.05603624880313873, 0.03433727100491524, 0.0702689066529274, 0.05133091285824776, 0.027940349653363228, -0.03363730385899544, -0.007121191825717688, 0.06202485412359238, -0.031945716589689255, 0.01677004247903824, -0.025995995849370956, 0.03258735314011574, 0.018675507977604866, -0.001478923368267715, 0.014281271025538445, -0.044836774468421936, -0.044486790895462036, 0.01771305315196514, 0.040092553943395615, 0.03727324306964874, -0.038789838552474976, 0.051564235240221024, 0.01786860264837742, 0.055102959275245667, 0.0030574947595596313, 0.03048745170235634, 0.0187921691685915, -0.01779082790017128, 0.008282942697405815, 0.00821002945303917, -0.05984717980027199, 0.003762322710826993, -0.019375475123524666, 0.03258735314011574, 0.0597694031894207, -0.0166922677308321, -0.027765357866883278, -0.029573606327176094, -0.02339056320488453, -0.00609068525955081, -0.011393907479941845, 0.026054326444864273, 0.030448565259575844, 0.03515389934182167, -0.02166008949279785, 0.09566215425729752, 0.007048278581351042, 0.03534833341836929, 0.004826855845749378, -0.001312438165768981, -0.024071088060736656, -0.007310766261070967, -0.05284750834107399, 0.005133091472089291, 0.005240030586719513, -0.020260155200958252, 0.011345298029482365, -0.10748381912708282, 0.03925648331642151, 0.005405300762504339, -0.034492816776037216, 0.00571639696136117, 0.008122533559799194, 0.08065175265073776, -0.03313177078962326, 0.07050222903490067, -0.02278781495988369, -0.0011799790663644671, -0.022496161982417107, -0.0347844697535038, 0.0468200147151947, -0.013134103268384933, -0.041920244693756104, -0.007986429147422314, 0.050086528062820435, 0.02655985951423645, -0.05222531408071518, -0.018500516191124916, 0.03678715601563454, 0.042814649641513824, -0.045808952301740646, 0.04265910014510155, -0.010548113845288754, -0.0017256131395697594, 0.0010614950442686677, 0.004348058719187975, -0.03534833341836929, 0.05926387384533882, 0.042542438954114914, 0.0145048713311553, 0.022398943081498146, 0.0048560211434960365, -0.04242577776312828, -0.021154558286070824, 0.03853707015514374, 0.03810931369662285, 0.012871615588665009, 0.0506698340177536, -0.008365578018128872, -0.023254459723830223, -0.0239349827170372, 0.015039568766951561, 0.031226305291056633, 0.01541871763765812, 0.009366919286549091, -0.0018422742141410708, 0.03455114737153053, 0.08057397603988647, 0.023371120914816856, 0.02286558784544468, 0.06490249931812286, -0.0166922677308321, -0.047014448791742325, 0.020532365888357162, -0.07629640400409698, -0.04285353422164917, 0.03884816914796829, 0.003966479562222958, 0.027376487851142883, 0.04172581061720848, 0.029651379212737083, 0.045886725187301636, 0.007330209948122501, 0.03406506031751633, 0.005235170014202595, -0.02306002378463745, -0.01160778570920229, -0.04678112640976906, 0.03270401433110237, -0.04759775474667549, -0.012123039923608303, -0.0123174749314785, -0.018821334466338158, -0.057786162942647934, 0.015904806554317474, 0.0559195876121521, 0.0008810348226688802, 0.03733157366514206, -0.040014781057834625, -0.0010566342389211059, -0.039820343255996704, -0.009167623706161976, 0.030215242877602577, -0.01996850222349167, 0.037642668932676315, -0.03499834984540939, 0.03789543733000755, 0.06194708123803139, -0.03919815272092819, 0.010402287356555462, -0.027590366080403328, -0.0618693046271801, -0.024226635694503784, 0.029865259304642677, 0.02445995807647705, -0.015982579439878464, -0.009692598134279251, 0.01596313714981079, -0.008423908613622189, -0.002505784621462226, 0.0006999669712968171, 0.009119014255702496, 0.025101594626903534, -0.0014242384349927306, -0.06307480484247208, -0.012686901725828648, -0.035892751067876816, 0.02119344472885132, 0.015496491454541683, 0.015447882935404778, -0.015340943820774555, -0.0007181952823884785, 0.04300908371806145, -0.06346367299556732, -0.02480994164943695, 0.014290993101894855, 0.00115871278103441, 0.04273687303066254, -0.0011113191721960902, -0.017178356647491455, -0.009187066927552223, -0.04090918228030205, -0.0038571099285036325, -0.003750170348212123, 0.03888705372810364, -0.023993313312530518, -0.010130077600479126, -0.02619043178856373, -0.003905718680471182, 0.05829169601202011, -0.0323345884680748, 0.03420116379857063, 0.015282613225281239, 0.011588342487812042, -0.015020125545561314, -0.036592718213796616, 0.0454200804233551, 0.045964498072862625, -0.03538722172379494, -0.003448795760050416, 0.028718089684844017, -0.04514786973595619, 0.025976553559303284, -0.049736544489860535, 0.022398943081498146, 0.035970527678728104, 0.03196515887975693, 0.03803154081106186, -0.033948399126529694, -0.029398614540696144, 0.018519960343837738, -0.019929615780711174, 0.02655985951423645, 0.007461453787982464, 0.013620191253721714, 0.00007967289275256917, 0.05502518266439438, -0.08469600975513458, -0.038439854979515076, -0.00615873746573925, -0.008491960354149342, 0.0020415703766047955, -0.061480436474084854, 0.038692619651556015, 0.030176354572176933, -0.06159709766507149, 0.023429451510310173, 0.061830420047044754, 0.0005082659772597253, 0.06400809437036514, -0.03188738599419594, -0.06459140032529831, 0.002412212546914816, -0.012045265175402164, 0.01621590182185173, -0.0692189559340477, -0.005133091472089291, 0.015185395255684853, 0.06249149888753891, 0.010684218257665634, 0.03845929726958275, 0.023176684975624084, 0.04452567920088768, 0.05716397240757942, -0.07882405817508698, -0.055258505046367645, 0.035542767494916916, -0.03284011781215668, -0.018033871427178383, -0.027765357866883278, -0.05432521551847458, -0.024868272244930267, -0.04503120854496956, -0.002940833568572998, 0.00392273161560297, 0.03340398147702217, -0.013766017742455006, 0.018024150282144547, -0.006965643726289272, -0.0506698340177536, 0.002243296941742301, 0.035542767494916916, 0.07015224546194077, -0.004036962520331144, 0.06743015348911285, 0.012054987251758575, -0.05471408739686012, -0.1062394380569458, -0.01979351043701172, -0.05238086357712746, -0.03993700444698334, 0.026054326444864273, -0.037837106734514236, -0.0044525680132210255, -0.032820675522089005, -0.0022226383443921804, -0.0274348184466362, 0.014786803163588047, -0.01024673879146576, 0.02531547285616398, 0.012502188794314861, -0.01811164617538452, -0.012298031710088253, 0.009517607279121876, 0.006105267908424139, 0.011102254502475262, 0.02076568827033043, -0.01297855470329523, 0.10662830621004105, -0.049308788031339645, 0.021582316607236862, 0.01966712810099125, 0.023857207968831062, 0.039470359683036804, -0.03499834984540939, -0.0426202118396759, 0.006168459076434374, -0.030448565259575844, -0.05374190956354141, 0.009138458408415318, -0.012016099877655506, -0.0007224485743790865, -0.015408995561301708, 0.05331415310502052, -0.004544924478977919, -0.03192627429962158, 0.0017766522942110896, 0.016449224203824997, 0.04942544922232628, -0.019151875749230385, 0.032820675522089005, 0.01608951948583126, -0.013659078627824783, -0.02496548928320408, -0.018558846786618233, 0.007281600963324308, -0.03136241063475609, 0.007821159437298775, -0.0290097426623106, 0.015807587653398514, 0.0012796272058039904, -0.042114682495594025, 0.05144757404923439, -0.05704731121659279, 0.0006434592651203275, -0.0706188902258873, 0.020221268758177757, 0.028076454997062683, 0.0037526008673012257, 0.05082537978887558, -0.02131010591983795, 0.009391224011778831, -0.040170326828956604, 0.02278781495988369, -0.06326924264431, 0.11277245730161667, 0.007553810719400644, 0.014086836017668247, -0.014922907575964928, 0.039820343255996704, -0.020357374101877213, 0.03138185292482376, 0.018996326252818108, 0.02031848579645157, 0.02348778210580349, -0.09457331895828247, -0.009493302553892136, -0.02226283960044384, -0.04635336995124817, 0.018296359106898308, 0.006124711129814386, -0.07030779868364334, -0.020726799964904785, 0.041064731776714325, 0.014806246384978294, 0.04293131083250046, 0.007981568574905396, 0.0017669305671006441, 0.05444187670946121, -0.008944022469222546, 0.02173786424100399, 0.057630617171525955, 0.01283272821456194, -0.0006629027775488794, -0.040092553943395615, -0.03136241063475609, -0.007446871139109135, -0.03754545375704765, -0.04864770546555519, -0.08329607546329498, -0.030118023976683617, 0.010849488899111748, 0.04775330424308777, 0.012871615588665009, 0.054130781441926956, 0.005653205793350935, -0.014096557162702084, 0.059536080807447433, 0.06058603152632713, -0.009196789003908634, 0.029126403853297234, -0.022496161982417107, -0.018597735092043877, -0.015613152645528316, 0.05576403811573982, 0.03425949439406395, -0.01143279392272234, -0.0657191202044487, 0.004428263287991285, -0.029243065044283867, -0.11487235873937607, -0.011199471540749073, -0.04433124512434006, -0.04783107712864876, 0.051408685743808746, -0.042192455381155014, -0.027045946568250656, 0.023001693189144135, -0.030604112893342972, 0.011996656656265259, -0.004160915035754442, 0.058136146515607834, 0.019550466910004616, -0.05751395598053932, 0.08936244994401932, -0.0019479984184727073, -0.013834070414304733, -0.01125780213624239, 0.06529136747121811, -0.008603760972619057, 0.008312107995152473, -0.015933971852064133, -0.027940349653363228, 0.07987400889396667, -0.0464700311422348, -0.0071066091768443584, 0.033870626240968704, 0.013620191253721714, -0.00119942263700068, 0.010402287356555462, -0.0188602227717638, -0.03805098310112953, -0.08135171979665756, -0.05463631451129913, 0.02963193692266941, 0.006124711129814386, -0.0033345650881528854, -0.08710700273513794, 0.03252902254462242, -0.001436390564776957, -0.0957399308681488, 0.039664797484874725, -0.03952869027853012, -0.0148548549041152, 0.0031425601337105036, 0.040714748203754425, -0.027318157255649567, -0.023001693189144135, -0.000360616686521098, 0.006669130176305771, 0.027376487851142883, 0.04168692231178284, 0.02313779853284359, -0.023448893800377846, 0.004095293115824461, 0.0221850648522377, 0.03252902254462242, 0.0123174749314785, -0.003570317756384611, -0.014524315483868122, 0.03750656545162201, -0.027045946568250656, -0.03453170508146286, 0.007388540543615818, -0.0022846146021038294, 0.014660419896245003, 0.015827031806111336, 0.03550388291478157, -0.036145519465208054, -0.02611265704035759, 0.003188738599419594, 0.0611693374812603, -0.029845815151929855, 0.011559177190065384, 0.03742879256606102, -0.03173183649778366, -0.019881006330251694, 0.020921235904097557, 0.018597735092043877, 0.029398614540696144, 0.0225350484251976, 0.05541405454277992, -0.06412475556135178, 0.038614846765995026, 0.03814820200204849, 0.004498746246099472, -0.0235849991440773, -0.0277848020195961, 0.018024150282144547, 0.0031935994047671556, -0.008229472674429417, 0.0031838775612413883, 0.009259980171918869, -0.0007777411374263465, 0.049658771604299545, 0.06385254859924316, 0.034123390913009644, -0.02665707655251026, -0.004778246860951185, -0.03490113094449043, 0.04662558063864708, -0.01401878334581852, -0.005410161800682545, -0.03655383363366127, -0.03530944511294365, -0.0008306031813845038, -0.08065175265073776, -0.0590694360435009, 0.009537050500512123, -0.00394703634083271, -0.02943750098347664, -0.03291789069771767, -0.00042775762267410755, 0.01933658868074417, 0.04273687303066254, 0.06813012063503265, -0.03155684471130371, 0.06455251574516296, 0.009833564050495625, 0.025276586413383484, 0.025451578199863434, -0.009089848957955837, 0.05568626523017883, -0.0041779279708862305, -0.03927592560648918, -0.008166281506419182, -0.05090315639972687, 0.0014339601621031761, 0.013416034169495106, -0.026676520705223083, -0.02409053035080433, -0.00385467940941453, -0.025218255817890167, -0.023371120914816856, -0.04845327138900757, -0.10717272758483887, 0.013727130368351936, 0.061208225786685944, -0.026676520705223083, -0.002906807465478778, -0.06066380813717842, -0.020610138773918152, 0.05074760690331459, -0.03892594203352928, -0.012521632015705109, -0.035464994609355927, -0.020046276971697807, -0.01253135409206152, 0.025548795238137245, 0.03958702087402344, -0.0191421527415514, 0.035814978182315826, 0.04024810343980789, -0.02136843651533127, -0.018869943916797638, -0.05844724550843239, 0.02321557141840458, -0.07291322946548462, 0.07497424632310867, 0.0022372209932655096, 0.02584044821560383, -0.03917870670557022, -0.009653711691498756, -0.008953744545578957, 0.010198130272328854 ]
21,117
tfields.mesh_3d
in_faces
Check whether points lie within triangles with Barycentric Technique see Triangles3D.in_triangles. If multiple requests are done on huge meshes, this can be hugely optimized by requesting the property self.tree or setting it to self.tree = <saved tree> before calling in_faces.
def in_faces(self, points, delta, **kwargs): """ Check whether points lie within triangles with Barycentric Technique see Triangles3D.in_triangles. If multiple requests are done on huge meshes, this can be hugely optimized by requesting the property self.tree or setting it to self.tree = <saved tree> before calling in_faces. """ key = "mesh_tree" if hasattr(self, "_cache") and key in self._cache: log = logging.getLogger() log.info("Using cached decision tree to speed up point - face mapping.") indices = self.tree.in_faces(points, delta, **kwargs) else: indices = self.triangles().in_triangles(points, delta, **kwargs) return indices
(self, points, delta, **kwargs)
[ -0.01802619732916355, -0.05383290722966194, -0.04615288972854614, 0.04662606492638588, -0.046735260635614395, 0.04054757207632065, 0.009013098664581776, 0.02651607245206833, -0.0592198371887207, -0.002622943837195635, 0.0420398972928524, 0.0011283435160294175, -0.08444377034902573, -0.006469776388257742, -0.033395327627658844, -0.06511633843183517, -0.006078495644032955, 0.029646316543221474, 0.00500474963337183, -0.03752652183175087, -0.061221737414598465, 0.002643417799845338, 0.03139342740178108, 0.060129791498184204, -0.0018619942711666226, -0.014413679018616676, 0.0031211439054459333, -0.016979750245809555, 0.07672736048698425, 0.057436324656009674, -0.10540912300348282, 0.020455775782465935, -0.043313831090927124, 0.014131592586636543, -0.01000949926674366, -0.03734453022480011, 0.06271406263113022, 0.0488099567592144, -0.007661816664040089, 0.02194810099899769, -0.05328693240880966, -0.03510604426264763, 0.006324183661490679, 0.036634765565395355, -0.014340882189571857, -0.022039096802473068, 0.000002941356797236949, -0.005928353406488895, -0.035670213401317596, -0.01992800273001194, -0.00955452211201191, -0.09747432172298431, 0.08240547776222229, -0.003232613205909729, 0.003928728401660919, -0.04731763154268265, 0.0036716661415994167, 0.0019825631752610207, -0.03301314637064934, 0.021602319553494453, 0.006028448231518269, -0.007843807339668274, 0.044041797518730164, -0.04553412273526192, -0.05521603673696518, -0.05670836195349693, 0.01304874662309885, -0.0010197176598012447, -0.012903153896331787, 0.05073906108736992, -0.05685395374894142, 0.0005886267754249275, 0.07090365141630173, 0.010255186818540096, 0.010519073344767094, -0.004836407955735922, 0.07144962251186371, 0.04553412273526192, -0.0027366881258785725, 0.036452773958444595, -0.004304084461182356, -0.0657351091504097, 0.007420678623020649, -0.03350452333688736, -0.0002040288527496159, 0.034214287996292114, 0.04018358886241913, -0.022785259410738945, 0.02942792698740959, -0.006037547718733549, -0.01869046501815319, -0.01787150651216507, -0.004222188610583544, -0.00846712663769722, 0.002541047753766179, 0.02325843647122383, 0.011374430730938911, -0.01179300993680954, -0.028499774634838104, -0.038327280431985855, 0.0045907204039394855, 0.07403389364480972, 0.005063896533101797, 0.030010297894477844, 0.009013098664581776, -0.049792706966400146, -0.02445957623422146, -0.06897454708814621, 0.03112044185400009, -0.03195760026574135, -0.052813757210969925, 0.013540122658014297, 0.025988299399614334, 0.05099384859204292, -0.019363831728696823, -0.045133739709854126, -0.04990190267562866, -0.02555152215063572, -0.0810951441526413, -0.030974850058555603, 0.006651767063885927, 0.00783015787601471, -0.004310909193009138, 0.020874354988336563, -0.035633817315101624, -0.009399829432368279, 0.08335182815790176, 0.04626208543777466, -0.03468746319413185, -0.018908854573965073, 0.023749811574816704, 0.0270074475556612, 0.0075162239372730255, -0.03112044185400009, 0.0012932728277519345, 0.024987349286675453, 0.0034874004777520895, -0.025387728586792946, -0.03461466729640961, 0.06915654242038727, 0.0469900481402874, 0.01032798271626234, -0.005327783524990082, -0.016952451318502426, -0.051758211106061935, 0.05073906108736992, 0.0019018048187717795, -0.02779000997543335, 0.007520773448050022, -0.02276706136763096, 0.006811009254306555, -0.018408378586173058, 0.009226937778294086, -0.004636217840015888, -0.03208499401807785, -0.035542819648981094, -0.01624268665909767, -0.06722743809223175, 0.00674276240170002, -0.009954901412129402, -0.023931803181767464, 0.0008547884644940495, -0.045643314719200134, 0.0339776985347271, 0.013276235200464725, 0.012502774596214294, -0.024932751432061195, -0.06595350056886673, -0.046007297933101654, 0.03912804275751114, -0.015150741674005985, 0.052813757210969925, -0.06744582206010818, 0.07745532691478729, -0.01213879231363535, -0.00013229885371401906, 0.019582219421863556, 0.00590560445562005, 0.06096694990992546, 0.020273786038160324, 0.0009560209000483155, -0.003353182226419449, -0.008398879319429398, 0.009454427286982536, -0.009663715958595276, 0.02769901417195797, 0.0537601113319397, -0.03179381042718887, 0.00822598859667778, 0.02688005566596985, -0.043714214116334915, 0.012038697488605976, 0.04378701001405716, 0.005960201844573021, 0.001526448642835021, 0.036907751113176346, 0.024077394977211952, -0.02074696123600006, -0.04400539770722389, 0.003721713786944747, -0.036398179829120636, -0.04214908927679062, -0.020219188183546066, 0.016069795936346054, -0.037963300943374634, 0.08437097817659378, 0.01323073823004961, 0.030738262459635735, 0.020692365244030952, 0.06620828807353973, -0.02718943916261196, -0.07672736048698425, -0.021747911348938942, 0.0688653513789177, 0.01170201413333416, 0.021001748740673065, -0.04378701001405716, 0.013248937204480171, -0.0242775846272707, 0.022221088409423828, 0.010182389989495277, -0.0007433190476149321, 0.018890654668211937, 0.012166091240942478, -0.029555320739746094, -0.034396279603242874, 0.016979750245809555, 0.05234058201313019, -0.03792690113186836, -0.07621778547763824, 0.006838307715952396, -0.000553650432266295, 0.014704864472150803, -0.0166612658649683, 0.01615169085562229, 0.01750752329826355, 0.02682545781135559, -0.03377750888466835, 0.03610699251294136, 0.01140172965824604, 0.005441527813673019, -0.0580550953745842, 0.041348330676555634, -0.020528573542833328, -0.004447402432560921, 0.009499924257397652, 0.053869303315877914, -0.011392629705369473, 0.025260336697101593, 0.02025558613240719, -0.049938302487134933, -0.03379570692777634, -0.051357828080654144, 0.0031825657933950424, -0.018608568236231804, -0.08138632774353027, 0.04356861859560013, 0.028499774634838104, 0.028354180976748466, 0.031375229358673096, -0.041894301772117615, -0.04760881885886192, 0.0653347298502922, 0.04378701001405716, 0.010027698241174221, 0.004474700894206762, 0.06744582206010818, 0.03195760026574135, -0.009745612740516663, -0.002541047753766179, -0.010437177494168282, 0.0027730863075703382, -0.043495822697877884, 0.008075845427811146, 0.02280345931649208, -0.03259456902742386, -0.019363831728696823, 0.04025638476014137, -0.051212236285209656, 0.0555800199508667, 0.019673215225338936, -0.03876405954360962, -0.04793640226125717, 0.027462424710392952, -0.09994939714670181, -0.038873255252838135, -0.0024705263786017895, 0.02491455338895321, 0.018426578491926193, -0.03354092314839363, -0.041894301772117615, 0.003437353065237403, -0.06249567121267319, -0.06264126300811768, -0.015123442746698856, -0.00008267789235105738, 0.0065607717260718346, -0.053359728306531906, -0.005937452893704176, -0.02651607245206833, 0.041930701583623886, -0.03650737181305885, 0.040656764060258865, -0.0417851097881794, 0.010164191015064716, 0.03244897723197937, 0.0034737512469291687, -0.0061012445949018, 0.051576219499111176, -0.04840957745909691, -0.03597959876060486, -0.01638828031718731, -0.01633368246257305, -0.031156841665506363, -0.0008496699738316238, -0.017225438728928566, -0.02942792698740959, -0.018217287957668304, -0.014058796688914299, 0.05044787377119064, -0.030428877100348473, 0.02664346620440483, -0.045315731316804886, 0.06413359194993973, -0.03021048754453659, -0.015150741674005985, 0.04862796515226364, -0.019163640215992928, 0.026079295203089714, 0.03799969702959061, -0.06333283334970474, 0.015714913606643677, 0.03148442506790161, 0.021147342398762703, -0.047790806740522385, -0.0460800938308239, 0.06264126300811768, 0.043859805911779404, 0.038727663457393646, 0.024423178285360336, 0.0644247755408287, 0.012320782989263535, -0.02198449894785881, 0.0013956426410004497, 0.0244049783796072, 0.020601369440555573, 0.0188724547624588, 0.02445957623422146, 0.050484273582696915, 0.1240449920296669, -0.0641699880361557, -0.024605168029665947, -0.00033440825063735247, 0.04768161475658417, -0.026352280750870705, -0.02080155909061432, 0.004210814367979765, -0.03894605115056038, 0.014304484240710735, 0.05055706948041916, 0.050302281975746155, -0.03414149209856987, -0.007566271349787712, 0.022912653163075447, 0.005864656530320644, -0.0721047893166542, 0.03379570692777634, 0.007225038483738899, 0.02948252484202385, -0.038545671850442886, 0.0012534622801467776, -0.010955851525068283, -0.016197189688682556, 0.027298633009195328, 0.037089742720127106, 0.0037308132741600275, 0.01126523595303297, 0.062131691724061966, 0.023094644770026207, 0.061185337603092194, -0.0049911001697182655, 0.028208589181303978, 0.003842282807454467, 0.008239638060331345, -0.009363431483507156, -0.006838307715952396, -0.021311134099960327, 0.03619799017906189, 0.06544392555952072, 0.010792059823870659, 0.043677814304828644, -0.00842162873595953, 0.015305434353649616, -0.06369680911302567, -0.04149392247200012, 0.01775321178138256, 0.02025558613240719, 0.007134043145924807, 0.005182190798223019, -0.005709964316338301, -0.028263185173273087, -0.004379156045615673, -0.03792690113186836, 0.02615209110081196, -0.035397227853536606, 0.05885585397481918, 0.015487425029277802, 0.05303214490413666, 0.04000159725546837, -0.023877205327153206, -0.024004599079489708, 0.02546052634716034, 0.052449773997068405, -0.011183340102434158, -0.04786360636353493, 0.02627948485314846, 0.023567819967865944, 0.015096144750714302, 0.006437927950173616, 0.03537902981042862, 0.06202249601483345, -0.005578021053224802, -0.016979750245809555, 0.006765511352568865, 0.002820858731865883, -0.004138018004596233, -0.05113944038748741, 0.0020189613569527864, 0.01398599985986948, 0.03456006944179535, -0.01190220471471548, -0.08852037042379379, 0.028499774634838104, -0.08509894460439682, -0.025515122339129448, 0.06224088370800018, -0.03650737181305885, -0.0027730863075703382, 0.016916053369641304, 0.04200349748134613, 0.021911703050136566, 0.029719112440943718, -0.020674165338277817, -0.02911854349076748, 0.008316983468830585, -0.00524588767439127, -0.018253685906529427, -0.0242775846272707, 0.01227528601884842, -0.03472386300563812, 0.059802208095788956, 0.005682665389031172, -0.029373329132795334, -0.035579219460487366, 0.025060145184397697, 0.022148292511701584, -0.05841907486319542, 0.0012136517325416207, 0.003662566654384136, 0.09572721272706985, 0.0040629468858242035, 0.026024697348475456, -0.026261284947395325, 0.004076595883816481, -0.03326793387532234, -0.06216808781027794, 0.012111494317650795, 0.018226386979222298, -0.0015537472208961844, -0.0402199886739254, 0.043859805911779404, -0.02495095133781433, -0.04356861859560013, -0.02253047190606594, -0.018890654668211937, 0.06165851280093193, 0.0060557471588253975, 0.002661616774275899, -0.04123913496732712, -0.015068845823407173, -0.024987349286675453, -0.03108404390513897, 0.04171231389045715, -0.024932751432061195, -0.029082143679261208, -0.011538222432136536, -0.039564818143844604, 0.08815638720989227, 0.0043996297754347324, -0.06628108024597168, -0.0014604768948629498, -0.060311783105134964, 0.02418658882379532, 0.01615169085562229, 0.04131193086504936, -0.004699914716184139, 0.04775441065430641, 0.002361331833526492, 0.021402128040790558, -0.0034282533451914787, 0.0038900552317500114, -0.022202888503670692, 0.029719112440943718, -0.003437353065237403, -0.011520023457705975, 0.005750912241637707, 0.056016795337200165, 0.02527853474020958, -0.005487025249749422, 0.02966451458632946, 0.01581500843167305, -0.053687311708927155, 0.07428868114948273, 0.010482675395905972, 0.0537601113319397, 0.06722743809223175, 0.004395080264657736, -0.014795859344303608, -0.0393100343644619, 0.01359471958130598, 0.006683615501970053, -0.022566869854927063, 0.045679714530706406, -0.020819758996367455, 0.0011368743143975735, 0.03597959876060486, -0.001931378385052085, -0.0365801677107811, 0.022039096802473068, -0.02664346620440483, -0.004322283901274204, -0.02467796579003334, -0.004047022666782141, 0.021966300904750824, -0.0014559271512553096, 0.013567420653998852, 0.0307200625538826, -0.033067744225263596, 0.018726862967014313, -0.008753761649131775, 0.04560691863298416, -0.045679714530706406, -0.021747911348938942, -0.0033236087765544653, 0.05183100700378418, -0.030774660408496857, 0.009645516984164715, -0.004031098447740078, 0.004372331313788891, 0.039965201169252396, 0.03825448453426361, -0.007302384357899427, -0.006870156154036522, -0.008021248504519463, 0.09427127987146378, 0.012848556973040104, -0.04240387678146362, -0.02848157472908497, -0.048518773168325424, -0.00007699067646171898, -0.031975798308849335, -0.0307200625538826, 0.029446126893162727, 0.021365730091929436, -0.0316300168633461, -0.04309544339776039, -0.01624268665909767, 0.00872646365314722, 0.003919628914445639, -0.026406878605484962, 0.044951751828193665, 0.07043047249317169, -0.023531422019004822, -0.004636217840015888, 0.024095594882965088, 0.0005732713034376502, -0.00022450282995123416, -0.044442176818847656, 0.0001431045529898256, -0.025078345090150833, -0.011874905787408352, -0.029373329132795334, 0.002622943837195635, 0.042294684797525406, 0.03678036108613014, 0.0840797945857048, -0.017434727400541306, 0.08553571999073029, 0.03030148334801197, 0.04265866428613663, -0.04036558046936989, -0.04928313195705414, 0.009317933581769466, -0.07021208852529526, -0.008121343329548836, 0.011947701685130596, -0.018799658864736557, -0.047099243849515915, 0.0011897654039785266, -0.029955700039863586, -0.0015605719527229667, 0.01133803278207779, -0.0032053145114332438, 0.008198689669370651, -0.02431398257613182, -0.032194189727306366, -0.016042497009038925, -0.010992249473929405, -0.019709613174200058, -0.016952451318502426, -0.0006051197415217757, -0.033340729773044586, 0.04811839014291763, -0.013276235200464725, -0.02280345931649208, 0.0021531798411160707, -0.010573671199381351, 0.017926102504134178, 0.05379650741815567, 0.06253206729888916, -0.06566231697797775, -0.02984650619328022, 0.04324103519320488, 0.0026775409933179617, 0.014914154075086117, -0.04469696432352066, 0.09929423034191132, -0.0718500018119812, 0.002059909515082836, 0.005955651868134737, -0.019090844318270683, 0.03263096511363983, -0.02445957623422146, -0.027134841307997704, 0.010382580570876598, -0.01140172965824604, 0.0027207639068365097, -0.002763986587524414, -0.02618848904967308, -0.0023454076144844294, -0.06569871306419373, 0.02678905986249447, -0.027899203822016716, -0.03587040305137634, 0.03789050504565239, -0.016606668010354042, 0.04873716086149216, 0.021456725895404816, 0.1172749325633049, 0.04684445634484291, -0.02371341362595558, 0.050156690180301666, -0.04345942661166191, -0.008171390742063522, -0.026261284947395325, 0.02697104960680008, -0.022221088409423828, 0.036853156983852386, 0.01805349625647068, -0.018517572432756424, -0.036270786076784134, 0.011137842200696468, -0.029136741533875465, -0.038545671850442886, 0.00240455474704504, 0.026334082707762718, 0.010173290967941284, -0.0022657865192741156, 0.0018767811125144362, 0.06970251351594925, -0.045825306326150894, 0.024113792926073074, -0.03337712958455086, -0.03858206793665886, 0.019090844318270683, -0.00010549784201430157, 0.03825448453426361, -0.009167791344225407, -0.04520653933286667, -0.007434328086674213, 0.018217287957668304, 0.04899194836616516, -0.058164287358522415, 0.0933249294757843, 0.05612599104642868, 0.05426968261599541, 0.0026957402005791664, -0.03383210673928261, 0.04160311818122864, 0.031193239614367485, -0.032612767070531845, -0.025769909843802452, 0.08073116093873978, 0.04491535201668739, 0.026479674503207207, 0.015205338597297668, -0.019618617370724678, 0.034068696200847626, 0.015478325076401234, -0.034669265151023865, 0.04739042744040489, -0.06129453331232071, -0.07578101009130478, 0.043532222509384155, -0.02134753204882145, 0.014541071839630604, 0.011146942153573036, -0.011037747375667095, 0.028736362233757973, -0.026133891195058823, -0.07985760271549225, -0.003330433275550604, 0.061367329210042953, -0.0393100343644619, -0.032066795974969864, 0.05801869556307793, 0.008253286592662334, -0.007639067713171244, 0.023913603276014328, -0.030792858451604843, 0.014177090488374233, -0.013740312308073044, 0.015187139622867107, 0.02298544906079769, -0.07716413587331772, -0.029882904142141342, 0.037144340574741364, -0.05517963692545891, -0.06096694990992546, 0.009954901412129402, -0.0001538391807116568, 0.014595669694244862, -0.046917252242565155, 0.018189989030361176, -0.02189350500702858, -0.0333225317299366, 0.04768161475658417, -0.01663396693766117, -0.03949202224612236, 0.005496124736964703, 0.027298633009195328, -0.01483225729316473, -0.04775441065430641, -0.021766111254692078, 0.07163161784410477, 0.03348632529377937, 0.005709964316338301, 0.023567819967865944, -0.024477774277329445, -0.047463223338127136, 0.05499764904379845, 0.03698055073618889, 0.030246885493397713, -0.022202888503670692, 0.0469900481402874, 0.017580321058630943, -0.0008491012849844992, -0.04418738931417465, -0.017698613926768303, -0.0463348813354969, -0.06897454708814621, -0.007325133308768272, -0.03066546469926834, 0.00011097179231001064, 0.0308474563062191, 0.010782960802316666, 0.025151140987873077, 0.041057147085666656 ]
21,118
tfields.core
index
Args: tensor Returns: int: index of tensor occuring
def index(self, tensor, **kwargs): """ Args: tensor Returns: int: index of tensor occuring """ indices = self.indices(tensor, **kwargs) if not indices: return None if len(indices) == 1: return indices[0] raise ValueError("Multiple occurences of value {}".format(tensor))
(self, tensor, **kwargs)
[ -0.014884890988469124, -0.06565500050783157, -0.005247933324426413, 0.05576036497950554, 0.03676130250096321, 0.03538704663515091, -0.005673093255609274, 0.023946380242705345, 0.05215295031666756, -0.017057931050658226, -0.03279314190149307, 0.02439301274716854, -0.024977071210741997, -0.07434715330600739, 0.045006826519966125, -0.04675900191068649, 0.05074433982372284, 0.029975920915603638, -0.02092302031815052, 0.024496082216501236, 0.033686406910419464, -0.005724627990275621, 0.01617325469851494, -0.025767266750335693, -0.008872529491782188, 0.016353625804185867, 0.023894846439361572, -0.010367030277848244, 0.03782634809613228, -0.030353840440511703, -0.04407920688390732, -0.06283777952194214, -0.014738877303898335, 0.02648875117301941, 0.022846976295113564, -0.018861640244722366, 0.002480099443346262, 0.07558398693799973, -0.013184252195060253, -0.014369546435773373, -0.009052899666130543, -0.08376079797744751, -0.015872636809945107, -0.021867820993065834, -0.03413303941488266, 0.019480053335428238, 0.006918511353433132, -0.020459210500121117, -0.021249406039714813, -0.03150478005409241, -0.003446371993049979, -0.0355931855738163, -0.014395313337445259, -0.04892345145344734, -0.008898296393454075, 0.06139481067657471, 0.02696974016726017, 0.003804966574534774, -0.013940091244876385, 0.052874431014060974, 0.004391171969473362, -0.0007284621242433786, 0.01877574808895588, 0.01706651970744133, -0.010409976355731487, -0.01820886880159378, 0.0419834665954113, 0.042842376977205276, -0.016628475859761238, 0.007266369182616472, -0.03679565712809563, -0.043838709592819214, 0.04071228206157684, -0.05562294274568558, -0.002724888501688838, -0.03404714912176132, 0.017624810338020325, 0.058577585965394974, 0.06489915400743484, 0.06139481067657471, -0.0006237825728021562, -0.03289620950818062, 0.028584487736225128, 0.020132824778556824, -0.012677495367825031, -0.02801760844886303, -0.0031801103614270687, 0.011990368366241455, -0.047514840960502625, -0.019033420830965042, -0.02934032864868641, 0.0152284549549222, -0.01570085436105728, -0.0029288793448358774, -0.02920290268957615, 0.018586788326501846, 0.01722971349954605, -0.03231215476989746, -0.008378656581044197, -0.006227089557796717, -0.019823618233203888, 0.044525839388370514, 0.014094695448875427, -0.024994248524308205, -0.027828648686408997, -0.041949111968278885, -0.02635132521390915, 0.0030340957455337048, -0.003931655548512936, -0.024856824427843094, 0.00042167058563791215, 0.010135125368833542, 0.001521342433989048, -0.01321001909673214, 0.02489118091762066, -0.0298900306224823, 0.020871486514806747, 0.015194098465144634, -0.023534104228019714, 0.011303241364657879, 0.02336232177913189, 0.04260188341140747, -0.012239452451467514, 0.052874431014060974, 0.027759935706853867, 0.03593675047159195, 0.03174527361989021, 0.03830733895301819, 0.0026325557846575975, 0.0013184251729398966, 0.024770932272076607, -0.02863602340221405, 0.028051964938640594, 0.0748281478881836, 0.025320634245872498, 0.03322259709239006, 0.056481849402189255, -0.019926685839891434, -0.07633982598781586, 0.04043743014335632, 0.03768892213702202, 0.016439516097307205, -0.007253485731780529, 0.01829475909471512, 0.044044848531484604, 0.008726514875888824, -0.035352692008018494, -0.003918772097676992, 0.06077639386057854, -0.034665562212467194, 0.004895780701190233, 0.008361478336155415, 0.024444548413157463, 0.016843203455209732, -0.03621159866452217, -0.004206506535410881, 0.02343103475868702, -0.04394178092479706, -0.020957376807928085, 0.0036374791525304317, 0.06156659126281738, -0.016370803117752075, 0.01658553071320057, 0.0041184681467711926, -0.009636958129703999, 0.05442046746611595, -0.017281247302889824, 0.01351922657340765, -0.005625853314995766, -0.02849859744310379, -0.028928052634000778, 0.005625853314995766, -0.028103498741984367, 0.03566189855337143, -0.026866670697927475, 0.028258103877305984, -0.048545531928539276, 0.05734075978398323, 0.024032270535826683, 0.04191475361585617, -0.02731330320239067, -0.00012226031685713679, -0.03981901705265045, -0.053355421870946884, -0.01153514627367258, 0.014764644205570221, 0.05163760483264923, 0.014575684443116188, 0.03160784766077995, 0.0222457405179739, 0.02099173329770565, 0.000016431666153948754, 0.020682526752352715, 0.018174512311816216, 0.028721913695335388, 0.005235049873590469, -0.01528857834637165, -0.03497477248311043, 0.04088406264781952, 0.02696974016726017, -0.011371954344213009, -0.02842988446354866, 0.00934492889791727, 0.05603521689772606, -0.00934492889791727, 0.030886365100741386, 0.07901962101459503, 0.02954646572470665, -0.07819506525993347, -0.03662387654185295, -0.014412491582334042, -0.04095277562737465, 0.01617325469851494, 0.04490375891327858, 0.04720563441514969, -0.010727772489190102, -0.05026334896683693, -0.026471571996808052, -0.012325342744588852, 0.000042375075281597674, 0.0816994160413742, 0.005398242734372616, 0.06005490943789482, 0.022778265178203583, 0.0522560179233551, -0.06280341744422913, 0.0018369914032518864, -0.0016093805897980928, -0.021867820993065834, 0.004797006491571665, -0.017762236297130585, 0.05895550921559334, 0.04036871716380119, 0.02573291026055813, 0.018329115584492683, 0.004565100651234388, -0.014129051938652992, -0.0433577224612236, 0.013089771382510662, 0.008967009373009205, -0.015846868976950645, 0.003201582934707403, 0.015460360795259476, 0.014275066554546356, -0.03428764268755913, 0.038822684437036514, 0.005183515138924122, 0.034648384898900986, -0.050435129553079605, -0.02982131764292717, -0.0755152702331543, 0.03456249460577965, 0.01088237576186657, 0.015202688053250313, -0.004483504686504602, -0.018105799332261086, 0.011492201127111912, 0.03427046537399292, 0.021781930699944496, 0.004689642693847418, -0.07475943118333817, -0.003830733709037304, 0.029288792982697487, -0.03404714912176132, -0.05830273777246475, -0.04081534966826439, -0.011621037498116493, 0.06355925649404526, -0.021799108013510704, 0.0682317242026329, -0.008906885050237179, 0.05603521689772606, -0.012625960633158684, -0.05198116600513458, 0.02897958643734455, -0.05754689872264862, 0.06483044475317001, 0.06012362241744995, -0.06596420705318451, 0.027966074645519257, 0.007657173089683056, -0.013356033712625504, -0.024633508175611496, -0.007601344026625156, -0.017607633024454117, 0.018518075346946716, 0.054042547941207886, -0.04414791986346245, 0.001583613338880241, -0.021094802767038345, 0.06445252150297165, 0.03153913468122482, -0.017693523317575455, -0.013192840851843357, -0.06988082826137543, 0.014721699059009552, -0.0304569099098444, 0.019548766314983368, 0.005582907702773809, 0.02599058300256729, 0.039028819650411606, -0.0094136418774724, -0.07723309099674225, -0.06922806054353714, 0.0009142011986114085, 0.014575684443116188, 0.04851117357611656, 0.04669028893113136, 0.042292673140764236, -0.036452095955610275, 0.012282397598028183, 0.018105799332261086, -0.05095047503709793, 0.008185401558876038, -0.02002975530922413, 0.0021204312797635794, -0.04105584695935249, -0.017040753737092018, 0.006317275110632181, 0.10513044893741608, 0.019583122804760933, 0.0108394306153059, -0.006510529667139053, -0.03442506864666939, -0.027021273970603943, -0.054523538798093796, -0.00803079828619957, -0.03531833365559578, -0.04435405507683754, 0.07228577136993408, -0.04531603306531906, -0.07977546006441116, 0.004496388137340546, 0.007601344026625156, -0.027759935706853867, -0.01875857077538967, 0.0007375880377367139, 0.0597800612449646, -0.0034034266136586666, 0.02030460722744465, 0.026660531759262085, -0.04205217957496643, -0.016920505091547966, 0.047377415001392365, 0.021146336570382118, 0.007863311097025871, 0.04332336410880089, 0.01077071763575077, 0.06541450321674347, -0.013914324343204498, 0.013072594068944454, -0.0012540069874376059, 0.014189175330102444, -0.012668906711041927, 0.023396678268909454, 0.1031377837061882, 0.023104649037122726, -0.02947775460779667, -0.04115891456604004, 0.01629350148141384, -0.009241859428584576, -0.03758585453033447, 0.016259144991636276, -0.03600545972585678, -0.02662617713212967, 0.034648384898900986, -0.01843218505382538, 0.06469301879405975, 0.004702526144683361, -0.01617325469851494, -0.02349974773824215, 0.030216416344046593, -0.003667541081085801, 0.029099833220243454, 0.04098713397979736, 0.003656804794445634, -0.029220081865787506, 0.02348257042467594, -0.012574426829814911, -0.10011442005634308, -0.0038350282702594995, -0.021026089787483215, 0.010212427005171776, 0.010616114363074303, -0.08245525509119034, 0.0277255792170763, -0.005308057181537151, -0.031728096306324005, -0.025767266750335693, 0.022280097007751465, -0.00407337537035346, -0.07812635600566864, -0.02612800896167755, -0.07585883140563965, 0.006733845919370651, 0.004852835554629564, 0.053217995911836624, 0.011088513769209385, 0.0031264284625649452, -0.07743922621011734, -0.03456249460577965, -0.01011794712394476, -0.034373532980680466, 0.035627540200948715, 0.019754905253648758, 0.029357505962252617, -0.012677495367825031, 0.039166245609521866, -0.007674351334571838, -0.050435129553079605, -0.056481849402189255, -0.008438779972493649, 0.043185941874980927, 0.016078775748610497, 0.016757313162088394, -0.043185941874980927, -0.006574947852641344, 0.026952560991048813, -0.035352692008018494, 0.021936533972620964, -0.009405052289366722, -0.001178852515295148, 0.016276324167847633, 0.033119529485702515, -0.0042236847802996635, -0.03713922202587128, 0.00038624060107395053, -0.0033926900941878557, 0.005488427821546793, 0.06692618131637573, -0.1054053008556366, -0.11131459474563599, -0.008352888748049736, -0.04978236183524132, 0.004599457141011953, 0.007253485731780529, -0.012016135267913342, -0.020682526752352715, 0.01745302975177765, 0.05229037627577782, 0.07565269619226456, 0.03717357665300369, -0.013605116866528988, 0.027055630460381508, -0.01980643905699253, -0.0017006396083161235, 0.016396570950746536, 0.04095277562737465, 0.01066764909774065, -0.03641773760318756, 0.0011219497537240386, -0.008687864057719707, -0.003757726401090622, -0.011036979965865612, 0.08472277224063873, -0.04583137854933739, -0.16752159595489502, -0.012720441445708275, 0.07386616617441177, 0.012033313512802124, -0.0273820161819458, 0.06345619261264801, -0.016345037147402763, -0.0590929314494133, -0.031247105449438095, -0.10341263562440872, 0.003996073734015226, -0.004406202584505081, 0.01171551737934351, -0.010848019272089005, 0.023877667263150215, -0.034648384898900986, -0.08582217991352081, -0.08245525509119034, -0.02605929598212242, 0.003525821026414633, 0.035490117967128754, 0.001707081450149417, 0.06355925649404526, 0.0043782880529761314, -0.004273071885108948, -0.050022855401039124, 0.012625960633158684, -0.043976135551929474, 0.005217871628701687, 0.04552217200398445, -0.02356846071779728, -0.03488887846469879, 0.03720793500542641, -0.001744658686220646, 0.009430820122361183, -0.020802773535251617, 0.03720793500542641, 0.0006221721414476633, 0.009422230534255505, -0.002561695873737335, -0.013064004480838776, 0.016989218071103096, -0.022537769749760628, 0.05273700878024101, 0.03988773003220558, 0.0008562247967347503, 0.02786300517618656, -0.019497232511639595, -0.01727265864610672, -0.04280801862478256, 0.018311938270926476, -0.014318011701107025, 0.035283979028463364, -0.05699719488620758, 0.030353840440511703, 0.026540284976363182, 0.008078038692474365, 0.0022739614360034466, 0.03121274895966053, 0.036039818078279495, 0.0033196830190718174, 0.00009716406930238008, 0.03524962067604065, 0.035764966160058975, -0.030817652121186256, 0.01278915349394083, -0.008486020378768444, 0.04322029650211334, -0.012170739471912384, 0.043701283633708954, -0.03475145623087883, -0.04490375891327858, -0.007657173089683056, 0.06118867173790932, -0.050503842532634735, -0.02085430920124054, -0.045212965458631516, 0.028240924701094627, -0.026299791410565376, 0.006051013246178627, 0.05603521689772606, -0.030491266399621964, 0.05916164442896843, 0.0369674377143383, -0.07338517904281616, -0.023379500955343246, 0.023963559418916702, -0.06081075221300125, 0.01661129854619503, 0.006905627436935902, -0.0679912269115448, -0.004103437531739473, -0.03614288568496704, 0.00523075507953763, -0.00582340219989419, -0.01672295667231083, 0.05582907795906067, -0.027777114883065224, -0.039166245609521866, 0.026591820642352104, -0.04696514084935188, 0.02731330320239067, -0.0021655240561813116, 0.01397444773465395, 0.035558827221393585, -0.018586788326501846, 0.05108790099620819, 0.03411586210131645, -0.015795335173606873, -0.030010277405381203, -0.016465283930301666, -0.08637188374996185, 0.016327857971191406, -0.006772496737539768, -0.01604441925883293, -0.0061068423092365265, -0.041949111968278885, 0.002370588481426239, -0.005754689686000347, 0.034940414130687714, 0.010135125368833542, -0.06637647747993469, 0.007901961915194988, -0.004887191578745842, 0.007051642052829266, -0.034648384898900986, 0.04930137097835541, 0.007313609588891268, 0.05844016373157501, 0.10203837603330612, 0.01850089803338051, 0.05400819331407547, -0.07510299235582352, 0.020253071561455727, -0.003512937342748046, -0.0362803116440773, -0.027055630460381508, 0.02313900552690029, 0.03488887846469879, 0.06328441202640533, -0.06874706596136093, -0.027759935706853867, 0.01663706637918949, -0.030817652121186256, -0.04761790856719017, 0.024719398468732834, -0.034218929708004, -0.02329360879957676, 0.0007885857485234737, -0.03621159866452217, 0.0001638637186260894, 0.050091568380594254, 0.04741177335381508, -0.0565849207341671, -0.00043240695958957076, 0.008541849441826344, -0.01278915349394083, -0.021094802767038345, -0.03988773003220558, 0.021661682054400444, -0.011638215743005276, 0.09564809501171112, -0.019651835784316063, 0.05844016373157501, 0.003452813718467951, 0.03621159866452217, -0.022211384028196335, -0.04991978779435158, 0.006686605978757143, -0.0008905811700969934, 0.051122259348630905, -0.054660964757204056, 0.005913587752729654, 0.017298424616456032, 0.0011874415213242173, 0.042223963886499405, -0.014575684443116188, -0.014936425723135471, -0.044457126408815384, -0.0015653615118935704, -0.024221232160925865, -0.00030115494155324996, -0.05246215686202049, 0.06345619261264801, -0.05462660640478134, 0.08451663702726364, 0.024358656257390976, 0.024925537407398224, 0.08135585486888885, -0.011423488147556782, -0.034081507474184036, -0.05026334896683693, 0.02710716612637043, -0.007949202321469784, 0.007352260407060385, 0.03614288568496704, 0.002278255997225642, 0.006042424123734236, 0.009027132764458656, 0.027364837005734444, 0.016422338783740997, -0.048339392989873886, 0.011492201127111912, 0.044663261622190475, 0.008022209629416466, 0.008125278167426586, -0.014799000695347786, -0.02628261223435402, -0.020905843004584312, -0.007687234785407782, -0.023242074996232986, -0.07881347835063934, -0.012102026492357254, 0.03524962067604065, 0.0034034266136586666, 0.01658553071320057, 0.0003653047024272382, -0.004163560923188925, 0.10018313676118851, -0.007025874685496092, 0.07750794291496277, -0.008125278167426586, 0.013544993475079536, -0.021163515746593475, 0.016491051763296127, -0.029168546199798584, 0.03212319314479828, 0.06221936270594597, -0.04648414999246597, -0.00018681268556974828, -0.0037534318398684263, 0.003607417456805706, 0.029099833220243454, -0.03724228963255882, -0.04363257437944412, -0.0618414431810379, -0.004109879024326801, -0.005814813543111086, -0.0558977909386158, 0.030886365100741386, -0.05170631781220436, 0.04590009152889252, 0.009551066905260086, 0.020064111799001694, -0.013794077560305595, -0.011200171895325184, -0.0037469901144504547, -0.009319161996245384, -0.038341693580150604, 0.0071976566687226295, 0.01889599673449993, 0.0023491159081459045, 0.031126858666539192, -0.02071688324213028, -0.028189390897750854, -0.006235678680241108, 0.016113130375742912, 0.022554948925971985, -0.012625960633158684, 0.03892575204372406, -0.035077840089797974, 0.05830273777246475, -0.050022855401039124, 0.03693308308720589, -0.019686192274093628, -0.06311262398958206, 0.016774490475654602, 0.057856105268001556, 0.0011337597388774157, -0.017624810338020325, 0.07098023593425751, 0.024908358231186867, -0.042086537927389145, 0.0030233594588935375, 0.005793340504169464, -0.056413136422634125, 0.022572126239538193, -0.027485085651278496, 0.008378656581044197, 0.0055013117380440235, 0.0584058053791523, -0.043907422572374344, -0.012960935942828655, -0.022400343790650368, 0.01617325469851494, 0.011732695624232292, -0.047102563083171844, 0.03669258952140808, 0.05802788585424423, -0.0006978634628467262, -0.01644810475409031, -0.008722219616174698, -0.01898188702762127, -0.04218960553407669, -0.0011498642852529883, 0.060432832688093185, -0.019411342218518257, -0.020734060555696487, 0.020905843004584312, -0.008649212308228016, 0.05345848947763443, -0.011011212132871151, -0.019411342218518257, 0.009997699409723282, -0.03871961310505867, -0.05163760483264923, -0.06039847433567047, 0.008812405169010162, -0.06558628380298615, 0.033755119889974594, 0.019428519532084465, -0.005076151806861162 ]
21,119
tfields.core
indices
Returns: list of int: indices of tensor occuring Examples: Rank 1 Tensors >>> import tfields >>> p = tfields.Tensors([[1,2,3], [4,5,6], [6,7,8], [4,5,6], ... [4.1, 5, 6]]) >>> p.indices([4,5,6]) array([1, 3]) >>> p.indices([4,5,6.1], rtol=1e-5, atol=1e-1) array([1, 3, 4]) Rank 0 Tensors >>> p = tfields.Tensors([2, 3, 6, 3.01]) >>> p.indices(3) array([1]) >>> p.indices(3, rtol=1e-5, atol=1e-1) array([1, 3])
def indices(self, tensor, rtol=None, atol=None): """ Returns: list of int: indices of tensor occuring Examples: Rank 1 Tensors >>> import tfields >>> p = tfields.Tensors([[1,2,3], [4,5,6], [6,7,8], [4,5,6], ... [4.1, 5, 6]]) >>> p.indices([4,5,6]) array([1, 3]) >>> p.indices([4,5,6.1], rtol=1e-5, atol=1e-1) array([1, 3, 4]) Rank 0 Tensors >>> p = tfields.Tensors([2, 3, 6, 3.01]) >>> p.indices(3) array([1]) >>> p.indices(3, rtol=1e-5, atol=1e-1) array([1, 3]) """ self_array, other_array = np.asarray(self), np.asarray(tensor) if rtol is None and atol is None: equal_method = np.equal else: equal_method = lambda a, b: np.isclose(a, b, rtol=rtol, atol=atol) # NOQA # inspired by # https://stackoverflow.com/questions/19228295/find-ordered-vector-in-numpy-array if self.rank == 0: indices = np.where(equal_method((self_array - other_array), 0))[0] elif self.rank == 1: indices = np.where( np.all(equal_method((self_array - other_array), 0), axis=1) )[0] else: raise NotImplementedError() return indices
(self, tensor, rtol=None, atol=None)
[ -0.022848598659038544, -0.05303269997239113, -0.028050817549228668, 0.040607254952192307, 0.03203669190406799, 0.029660137370228767, -0.02644149772822857, 0.033215612173080444, -0.008425537496805191, -0.003913360647857189, -0.031999263912439346, -0.02756427973508835, 0.008196302689611912, -0.05823491886258125, 0.00036607348010875285, -0.026759618893265724, 0.03211154416203499, 0.03126945719122887, -0.05082456395030022, -0.02062174864113331, 0.013613722287118435, -0.00446305563673377, -0.005220932886004448, 0.009618492797017097, -0.0022011189721524715, 0.043189652264118195, 0.014895564876496792, -0.021276704967021942, 0.01682300493121147, -0.027208732441067696, -0.06104187294840813, -0.02498188242316246, 0.007316790986806154, 0.011358804069459438, 0.011592715978622437, -0.04229142516851425, 0.05441746488213539, 0.05711213871836662, 0.029641425237059593, 0.037669312208890915, -0.00638114009052515, -0.11422427743673325, 0.04292767122387886, -0.032485805451869965, -0.04708195850253105, 0.04251598194241524, -0.006128514185547829, -0.01264064572751522, -0.023840388283133507, 0.035667017102241516, -0.01970481127500534, -0.05887116491794586, 0.007312112953513861, -0.0067460439167916775, -0.006339035928249359, 0.048279594630002975, 0.034731365740299225, -0.05714956670999527, -0.050674859434366226, -0.009576388634741306, -0.008547171950340271, -0.016598450019955635, 0.025094160810112953, -0.004369490314275026, -0.0131739666685462, 0.013791495934128761, -0.036059990525245667, 0.026235654950141907, -0.0022818190045654774, 0.049589503556489944, -0.033552445471286774, -0.041430629789829254, 0.07934320718050003, -0.07073521614074707, 0.0462585873901844, 0.017936430871486664, 0.02947300858795643, 0.018993716686964035, 0.04929009824991226, 0.009843048639595509, -0.022960877045989037, -0.00930972769856453, 0.056101635098457336, 0.02258661575615406, -0.010844195261597633, -0.02541228197515011, -0.02844379097223282, 0.019667385146021843, -0.007340182550251484, -0.08495711535215378, -0.02468247525393963, -0.023447414860129356, 0.011985689401626587, -0.019386690109968185, -0.049252670258283615, 0.02982855588197708, -0.013894418254494667, -0.03080163151025772, -0.03125074505805969, -0.042890243232250214, -0.02058432251214981, 0.07837013155221939, 0.010956473648548126, 0.0071904780343174934, 0.014137687161564827, -0.05176021531224251, -0.06665577739477158, -0.025580698624253273, -0.01024537906050682, 0.0018315368797630072, -0.037126634269952774, 0.06953758746385574, -0.028481217101216316, 0.02483217790722847, 0.007630234118551016, -0.04259083420038223, 0.05007604509592056, 0.022418199107050896, -0.025430995970964432, -0.04326450452208519, 0.03516176715493202, 0.019817089661955833, 0.01622418873012066, 0.05063743516802788, 0.04165518283843994, -0.02732101082801819, 0.05134852975606918, 0.06770370900630951, -0.03637811169028282, -0.03733247518539429, 0.026235654950141907, -0.011312020942568779, 0.010526074096560478, 0.07417841255664825, 0.04498610273003578, 0.04506095498800278, 0.045397788286209106, 0.00929101463407278, -0.07571288198232651, 0.04274053871631622, 0.06538329273462296, -0.014465165324509144, -0.02879933826625347, 0.016869788989424706, -0.0012982158223167062, 0.014717791229486465, -0.05550282076001167, -0.024626335129141808, 0.04936495050787926, -0.03620969504117966, -0.04210429638624191, -0.027938539162278175, 0.03929734230041504, 0.017234692350029945, -0.043825894594192505, -0.03319690003991127, 0.04113122075796127, -0.05718699097633362, -0.024963170289993286, 0.020472044125199318, 0.01643003150820732, 0.006923817563802004, 0.0018128239316865802, -0.008397468365728855, -0.007031417451798916, 0.08428344875574112, -0.054978854954242706, -0.02698417566716671, -0.04116864502429962, -0.0391102135181427, -0.012687427923083305, -0.0008251272374764085, -0.04865385219454765, 0.01505462545901537, -0.05161051079630852, -0.02689061127603054, -0.0023122276179492474, 0.03763188421726227, 0.0026619271375238895, 0.05119882524013519, 0.008299225009977818, 0.015316607430577278, -0.05430518463253975, -0.034188687801361084, -0.0016408980591222644, 0.03293491527438164, 0.02258661575615406, -0.014044121839106083, 0.019667385146021843, 0.01615869253873825, -0.004856029059737921, 0.021688390523195267, 0.01758088357746601, 0.019480254501104355, 0.00664780056104064, 0.031175892800092697, -0.03130688518285751, 0.012172820046544075, 0.027994679287075996, 0.017412465065717697, 0.006334357429295778, -0.008912076242268085, 0.022174930199980736, 0.030876483768224716, 0.01846039481461048, 0.023353850468993187, 0.05235903337597847, -0.028930330649018288, -0.040307845920324326, 0.000504666764754802, 0.004832637496292591, -0.04760592430830002, -0.02704031579196453, 0.04517323151230812, 0.04580947384238243, 0.06414823234081268, -0.029398156329989433, -0.013885061256587505, 0.00632032286375761, -0.026385359466075897, 0.09139439463615417, 0.0009321423713117838, 0.046071458607912064, -0.007050130516290665, 0.007564738858491182, -0.039334770292043686, -0.0033800394739955664, -0.016383249312639236, -0.00912727601826191, -0.013510800898075104, -0.0279572531580925, 0.04195459187030792, -0.005398706533014774, -0.0018397239036858082, 0.006427922751754522, 0.023484840989112854, -0.017683804035186768, -0.03065192885696888, 0.01021730899810791, 0.020472044125199318, -0.06051791086792946, -0.005253680516034365, 0.014970416203141212, 0.010937760584056377, -0.0462585873901844, -0.0017742282943800092, -0.007232582662254572, 0.01764637790620327, -0.027246158570051193, -0.029342016205191612, -0.08016657829284668, -0.046370863914489746, 0.048129890114068985, 0.0006081731989979744, 0.026478923857212067, -0.025580698624253273, -0.008481676690280437, 0.034581661224365234, -0.0027625097427517176, -0.0032303351908922195, 0.0031578221824020147, 0.013370453380048275, -0.0066852266900241375, -0.03643425181508064, -0.05894601717591286, -0.01505462545901537, 0.02541228197515011, 0.05318240448832512, 0.012303811497986317, 0.06433536857366562, -0.024289501830935478, 0.06523358821868896, -0.06373655050992966, -0.05000119283795357, 0.013894418254494667, -0.007485208101570606, 0.04195459187030792, 0.0065776268020272255, -0.0846577063202858, 0.025730403140187263, -0.013931844383478165, -0.03735119104385376, -0.03598513826727867, 0.008397468365728855, -0.02531871758401394, -0.004556620493531227, -0.027508139610290527, -0.022268494591116905, 0.003812778042629361, -0.035124339163303375, 0.030333805829286575, 0.024551482871174812, -0.0018093151738867164, -0.03759445995092392, -0.01646745763719082, 0.02483217790722847, -0.059769388288259506, -0.0024631014093756676, 0.033702149987220764, -0.009889831766486168, 0.02898646891117096, -0.0072232261300086975, -0.04689482972025871, -0.07301820814609528, 0.0017414805479347706, -0.009814979508519173, 0.03377700224518776, 0.04307737201452255, 0.06646864861249924, -0.0295291468501091, 0.01661716215312481, -0.011742420494556427, 0.01921827159821987, -0.02140769548714161, 0.02883676439523697, -0.007887538522481918, -0.06781598925590515, -0.034001559019088745, 0.04150547832250595, 0.09625978022813797, 0.04966435581445694, 0.05142338201403618, 0.012968122959136963, -0.00443264702335, -0.0009368205792270601, -0.06747915595769882, 0.01356694009155035, -0.03190569952130318, -0.023746823891997337, 0.06882648915052414, -0.0439007468521595, -0.035180479288101196, 0.03426354005932808, -0.01265935879200697, 0.027639131993055344, -0.024813465774059296, 0.05943255499005318, 0.06489675492048264, -0.004977663513273001, 0.033365316689014435, 0.014502591453492641, -0.03134430944919586, 0.013529513962566853, 0.0463334396481514, -0.02531871758401394, 0.0007052469882182777, -0.010348300449550152, 0.012238315306603909, 0.05445488914847374, 0.049065541476011276, 0.02616080269217491, -0.02331642434000969, 0.004530890379101038, 0.0035835434682667255, -0.019835801795125008, 0.08428344875574112, -0.0035554738715291023, -0.015428885817527771, -0.017515387386083603, 0.02483217790722847, -0.043638765811920166, -0.01897500269114971, 0.029491720721125603, -0.052433885633945465, -0.024532770738005638, -0.018759803846478462, 0.035517312586307526, -0.015138833783566952, 0.013464018702507019, 0.01168628130108118, -0.014455808326601982, -0.024457918480038643, 0.027152592316269875, 0.029903406277298927, 0.035180479288101196, 0.0037566388491541147, -0.04902811348438263, 0.027732696384191513, -0.02644149772822857, -0.11257753521203995, 0.010301518253982067, -0.040307845920324326, 0.04610888287425041, 0.010993899777531624, -0.08675356209278107, -0.02864963561296463, 0.01505462545901537, 0.0030642570927739143, -0.011817272752523422, 0.042852818965911865, -0.0033145437482744455, -0.07103462517261505, -0.0327477864921093, 0.0023356189485639334, -0.0327477864921093, 0.02849993109703064, 0.0024280145298689604, 0.003059578826650977, -0.005913314409554005, -0.08585534244775772, -0.04187973961234093, -0.026216942816972733, -0.021763242781162262, 0.024364352226257324, 0.027096454054117203, 0.04187973961234093, 0.004187038168311119, 0.03699564188718796, 0.0034104480873793364, -0.015934137627482414, -0.07485208660364151, 0.024083657190203667, 0.09461303055286407, 0.010067605413496494, 0.00506187230348587, -0.0077144429087638855, -0.05744897201657295, 0.06452249735593796, 0.015906067565083504, -0.005033802706748247, -0.003405769821256399, -0.028219236060976982, 0.04816731438040733, 0.018909508362412453, 0.025449708104133606, 0.004671237897127867, 0.034824930131435394, 0.0002947300672531128, -0.014418382197618484, 0.036321971565485, -0.03456294909119606, -0.05209704861044884, -0.03959675133228302, -0.062351785600185394, 0.0008795119938440621, 0.03519919142127037, -0.005459523759782314, -0.015082694590091705, -0.014090904965996742, 0.04506095498800278, 0.058197494596242905, 0.027208732441067696, -0.02737714909017086, 0.01743117906153202, 0.00215667556039989, -0.00383149110712111, 0.0343196801841259, 0.02513158693909645, 0.004870063625276089, -0.0012678072089329362, 0.0247386135160923, -0.01567215472459793, 0.004804567899554968, -0.03587286174297333, 0.04595917835831642, -0.028668347746133804, -0.06339971721172333, -0.007251295726746321, -0.00013354956172406673, -0.012687427923083305, 0.02468247525393963, 0.05879631265997887, -0.007574094925075769, -0.07152116298675537, -0.010376369580626488, -0.05999394506216049, 0.0131739666685462, -0.013248818926513195, -0.012865201570093632, -0.012668714858591557, 0.08181332796812057, -0.0006192840519361198, -0.07837013155221939, -0.03940962255001068, -0.03098876215517521, 0.07747190445661545, 0.012228959240019321, 0.03823070228099823, -0.010947117581963539, -0.012313167564570904, -0.048466723412275314, -0.0653458684682846, -0.010179882869124413, -0.06504645943641663, 0.013370453380048275, 0.029809841886162758, -0.04386331886053085, -0.024514056742191315, 0.011134247295558453, -0.06972471624612808, 0.035517312586307526, -0.03892308473587036, 0.020939869806170464, 0.006895747967064381, 0.04962693154811859, -0.0053191762417554855, 0.041430629789829254, 0.03892308473587036, 0.00625950563699007, 0.06515873968601227, 0.059956517070531845, -0.019910654053092003, 0.02571169100701809, 0.04569719731807709, 0.0072372606955468655, -0.03420740365982056, 0.00045993097592145205, -0.0061472272500395775, -0.0223433468490839, -0.018759803846478462, 0.026142090559005737, 0.015269825235009193, 0.020939869806170464, -0.03132559731602669, 0.029903406277298927, 0.06822767108678818, -0.011087465099990368, -0.003321561263874173, 0.009506214410066605, 0.04071953147649765, -0.064784474670887, 0.017477961257100105, -0.012453515082597733, 0.024813465774059296, -0.0024209970142692327, 0.03768802434206009, -0.08480741083621979, 0.006339035928249359, -0.005403384566307068, 0.032336100935935974, -0.01818905584514141, -0.027208732441067696, -0.05082456395030022, -0.0065168095752596855, -0.055465392768383026, 0.0830858126282692, 0.0406821072101593, -0.050375450402498245, 0.11991303414106369, 0.0567004531621933, -0.037426043301820755, 0.032972343266010284, 0.017206622287631035, -0.05598935857415199, 0.01730954460799694, 0.04012071713805199, -0.06860193610191345, 0.011695638298988342, -0.023746823891997337, 0.02747071534395218, 0.04640829190611839, 0.0010742443846538663, 0.09371481090784073, -0.008659450337290764, -0.07069779187440872, -0.004722698591649532, -0.03177471086382866, -0.040158141404390335, -0.043489061295986176, 0.009131954051554203, 0.036883365362882614, 0.00814016442745924, 0.0358915738761425, 0.050861991941928864, 0.0036934823729097843, -0.02288602478802204, 0.04408787563443184, -0.05134852975606918, 0.0077284774743020535, 0.017028849571943283, -0.005567123647779226, 0.017870934680104256, -0.06684291362762451, -0.006689904723316431, -0.008579920046031475, 0.033365316689014435, 0.0263479333370924, -0.07608713954687119, -0.0032817961182445288, -0.036789797246456146, 0.01803935132920742, -0.03261679410934448, 0.023597119376063347, -0.01657973602414131, 0.02513158693909645, 0.06433536857366562, 0.010554144158959389, 0.07354217022657394, -0.035910286009311676, -0.007148373872041702, -0.0025894143618643284, -0.003960142843425274, -0.014296747744083405, 0.013127184472978115, 0.0037683346308767796, 0.028032105416059494, -0.09057102352380753, -0.000775420805439353, 0.039185065776109695, -0.02840636484324932, 0.000735070847440511, -0.004420951008796692, -0.05539054051041603, -0.015587946400046349, 0.003873595269396901, -0.041430629789829254, -0.03241095319390297, 0.002460762159898877, 0.010226665996015072, -0.01288391463458538, 0.004376507829874754, -0.03252322971820831, 0.0355360247194767, -0.08660385757684708, 0.017608951777219772, 0.012855845503509045, 0.010413795709609985, 0.10075090080499649, 0.021688390523195267, 0.05430518463253975, 0.022698894143104553, 0.00031022680923342705, 0.03235481306910515, -0.05729927122592926, 0.009927257895469666, -0.006282896734774113, 0.05176021531224251, -0.058197494596242905, 0.012013759464025497, 0.007232582662254572, -0.015269825235009193, 0.014184469357132912, 0.013267531991004944, -0.009384579956531525, -0.045884326100349426, -0.013782139867544174, -0.003705178154632449, -0.012846488505601883, -0.023447414860129356, 0.016018345952033997, -0.013913131318986416, 0.08525652438402176, 0.013014906086027622, 0.014586799778044224, 0.08084025233983994, -0.05224675312638283, -0.024794751778244972, 0.0028888226952403784, 0.058983441442251205, 0.014090904965996742, -0.022025225684046745, 0.07709764689207077, -0.021201852709054947, -0.011835985817015171, -0.026628628373146057, -0.030240241438150406, -0.017150484025478363, -0.013267531991004944, 0.055839654058218, 0.06407338380813599, 0.030333805829286575, 0.02576782926917076, -0.016925927251577377, -0.04723166301846504, -0.017870934680104256, 0.0024163187481462955, 0.02674090676009655, -0.0027812228072434664, -0.018394898623228073, 0.044798970222473145, 0.012257028371095657, -0.0034572305157780647, 0.013239461928606033, 0.03970903158187866, 0.08967279642820358, 0.04113122075796127, 0.050525154918432236, 0.00009626972314435989, 0.013931844383478165, -0.0383242666721344, -0.011508507654070854, 0.0005698699387721717, -0.017758656293153763, 0.045884326100349426, 0.00021037529222667217, -0.006198687944561243, 0.012013759464025497, 0.03609741851687431, 0.013155253604054451, -0.042066872119903564, -0.010984542779624462, -0.04936495050787926, 0.01979837566614151, -0.00578232342377305, 0.006886391434818506, 0.04528551176190376, -0.020696600899100304, 0.03420740365982056, 0.016757510602474213, 0.007026739418506622, 0.028387652710080147, -0.0271338801831007, -0.008729624561965466, 0.013464018702507019, -0.04786790534853935, -0.000008588984201196581, -0.007522634230554104, -0.0082758329808712, 0.019686097279191017, -0.01949896849691868, -0.004884098190814257, -0.009557675570249557, 0.03641553968191147, -0.06399852782487869, -0.00152745028026402, 0.001835045637562871, 0.02649763785302639, 0.017711874097585678, -0.03416997566819191, 0.0346752293407917, -0.025973672047257423, -0.0590582937002182, 0.07144631445407867, 0.033122047781944275, 0.03211154416203499, 0.0008958858670666814, 0.07563803344964981, 0.04034527391195297, -0.0567004531621933, -0.028237948194146156, -0.016476815566420555, -0.010469934903085232, -0.0029285878408700228, -0.0526958666741848, -0.03579800948500633, 0.01452130451798439, 0.033215612173080444, -0.0693504586815834, 0.03358987346291542, 0.009683988057076931, 0.03680851310491562, 0.0422540009021759, -0.04247855767607689, 0.007312112953513861, 0.048579003661870956, 0.029248451814055443, -0.042403705418109894, -0.04116864502429962, 0.0021508277859538794, -0.020397191867232323, -0.006245470605790615, 0.025505848228931427, -0.03480621799826622, -0.044948674738407135, 0.016570379957556725, 0.023933952674269676, 0.027695270255208015, -0.031175892800092697, -0.024776039645075798, -0.025187725201249123, -0.025973672047257423, -0.014961060136556625, -0.05714956670999527, 0.04098151624202728, -0.07679823786020279, 0.04116864502429962, -0.01383827906101942, -0.0021426407620310783 ]
21,120
tfields.core
keep
Return copy of self with vertices where keep_condition is True Copy because self is immutable Examples: >>> import numpy as np >>> import tfields >>> m = tfields.TensorMaps( ... [[0,0,0], [1,1,1], [2,2,2], [0,0,0], ... [3,3,3], [4,4,4], [5,5,5]], ... maps=[tfields.TensorFields([[0, 1, 2], [0, 1, 3], ... [3, 4, 5], [3, 4, 1], ... [3, 4, 6]], ... [1, 3, 5, 7, 9], ... [2, 4, 6, 8, 0])]) >>> c = m.removed([True, True, True, False, False, False, False]) >>> c.equal([[0, 0, 0], ... [3, 3, 3], ... [4, 4, 4], ... [5, 5, 5]]) True >>> assert c.maps[3].equal(np.array([[0, 1, 2], [0, 1, 3]])) >>> assert c.maps[3].fields[0].equal([5, 9]) >>> assert c.maps[3].fields[1].equal([6, 0])
def keep(self, keep_condition): """ Return copy of self with vertices where keep_condition is True Copy because self is immutable Examples: >>> import numpy as np >>> import tfields >>> m = tfields.TensorMaps( ... [[0,0,0], [1,1,1], [2,2,2], [0,0,0], ... [3,3,3], [4,4,4], [5,5,5]], ... maps=[tfields.TensorFields([[0, 1, 2], [0, 1, 3], ... [3, 4, 5], [3, 4, 1], ... [3, 4, 6]], ... [1, 3, 5, 7, 9], ... [2, 4, 6, 8, 0])]) >>> c = m.removed([True, True, True, False, False, False, False]) >>> c.equal([[0, 0, 0], ... [3, 3, 3], ... [4, 4, 4], ... [5, 5, 5]]) True >>> assert c.maps[3].equal(np.array([[0, 1, 2], [0, 1, 3]])) >>> assert c.maps[3].fields[0].equal([5, 9]) >>> assert c.maps[3].fields[1].equal([6, 0]) """ keep_condition = np.array(keep_condition) return self[keep_condition]
(self, keep_condition)
[ 0.04740404337644577, -0.036440953612327576, -0.03964833915233612, 0.042004041373729706, -0.05450740456581116, -0.03326981142163277, -0.05048458278179169, 0.0527678057551384, 0.0527678057551384, -0.00997550692409277, -0.019642960280179977, -0.03542618826031685, -0.037763774394989014, -0.013744636438786983, -0.027616117149591446, -0.027942292392253876, -0.043526191264390945, 0.0020238682627677917, 0.015457052737474442, -0.057370491325855255, 0.02451745979487896, -0.029681891202926636, 0.04675169661641121, 0.06153827905654907, 0.007393291220068932, -0.02123759128153324, 0.0052142636850476265, -0.01895437017083168, 0.0363684706389904, 0.015665441751480103, -0.03553491458296776, -0.02397383376955986, -0.021926183253526688, 0.023810748010873795, -0.0020669051446020603, 0.013001683168113232, 0.0011937085073441267, 0.0426926352083683, 0.045048341155052185, -0.031874507665634155, -0.00378724979236722, -0.04497585445642471, 0.014460408128798008, 0.012485239654779434, 0.06657586246728897, 0.02823222614824772, 0.05110068991780281, 0.0037238269578665495, 0.04305505007505417, 0.031312763690948486, 0.01061879564076662, 0.04066310450434685, 0.019008731469511986, 0.0488174669444561, -0.015484234318137169, -0.0481288768351078, 0.021074505522847176, -0.009137419983744621, 0.009314097464084625, 0.03964833915233612, 0.025731554254889488, -0.019044972956180573, -0.0005388110294006765, 0.013391280546784401, 0.025568466633558273, -0.012829534709453583, -0.01394396461546421, 0.0065053715370595455, -0.0032390952110290527, 0.022723497822880745, -0.05381881073117256, -0.014985911548137665, 0.06342284381389618, -0.014342622831463814, 0.006990103516727686, -0.023357726633548737, -0.0075880903750658035, 0.03859733045101166, 0.020657725632190704, -0.08154365420341492, -0.0240644384175539, -0.03484632074832916, -0.0005184251349419355, 0.021310076117515564, 0.01291107852011919, 0.04283760115504265, 0.007166781462728977, -0.027761084958910942, 0.017395980656147003, -0.08031143993139267, -0.03346914052963257, 0.07150472700595856, -0.043091293424367905, 0.002965017920359969, 0.037872496992349625, 0.011678863316774368, 0.0009167998214252293, -0.044504713267087936, 0.008842956274747849, 0.032091960310935974, 0.08871949464082718, 0.010772823356091976, -0.05055706575512886, -0.012140944600105286, 0.06385774165391922, -0.008240438997745514, 0.0008290271507576108, -0.06795304268598557, 0.019099336117506027, 0.019969135522842407, -0.014614434912800789, 0.06273425370454788, -0.03761880472302437, 0.0437798835337162, -0.013327857479453087, -0.004201763309538364, -0.010863427072763443, -0.05979868024587631, -0.06773559749126434, -0.03631410747766495, 0.03606041520833969, 0.0027022662106901407, -0.032218802720308304, 0.025876520201563835, 0.025296654552221298, -0.000936619471758604, 0.057370491325855255, 0.019697323441505432, 0.019008731469511986, -0.07922419160604477, -0.036984577775001526, -0.02343020960688591, -0.0006251680315472186, 0.009903023950755596, 0.019353028386831284, -0.016172824427485466, 0.0016999586950987577, -0.0038846491370350122, -0.01345470268279314, 0.02419128455221653, 0.0011993712978437543, 0.012874837033450603, 0.02158188819885254, 0.08386311680078506, -0.014560072682797909, -0.12575843930244446, -0.028159743174910545, -0.04247518256306648, 0.000046788503823336214, 0.02703625150024891, -0.029138267040252686, 0.01785806007683277, -0.010183896869421005, -0.02036779373884201, -0.07143224030733109, 0.036893974989652634, -0.011687924154102802, -0.05950874835252762, -0.007896143943071365, -0.002813256112858653, 0.007746647112071514, 0.018664436414837837, 0.011669803410768509, 0.03526310250163078, -0.014161414466798306, 0.003660404123365879, 0.06229935213923454, -0.0045709749683737755, -0.0864725187420845, 0.017595307901501656, 0.04291008412837982, -0.006971982307732105, 0.02016846463084221, 0.010736580938100815, -0.054652370512485504, 0.07523760944604874, 0.008910909295082092, 0.0012412756914272904, -0.00026530001196078956, -0.025967124849557877, 0.020458396524190903, -0.014333562925457954, -0.01333691831678152, 0.006786243990063667, 0.09270607680082321, -0.040699344128370285, -0.02343020960688591, 0.015230542980134487, 0.03859733045101166, 0.004183642566204071, -0.036984577775001526, -0.028069138526916504, 0.058022841811180115, 0.051173172891139984, 0.00023882664390839636, -0.032200682908296585, -0.04301880672574043, 0.015511414967477322, -0.04479464888572693, 0.1027812510728836, -0.08371815085411072, -0.08799466490745544, 0.0004688760091084987, -0.009848661720752716, -0.03620538115501404, 0.03837988153100014, 0.05624699965119362, -0.003746477887034416, 0.014261079020798206, 0.03441142290830612, -0.006460069678723812, -0.012612085789442062, 0.0662134513258934, 0.011098997667431831, 0.05055706575512886, -0.08038392663002014, -0.0437798835337162, 0.0802389532327652, 0.002312668599188328, 0.001394169987179339, -0.040046993643045425, 0.013880542479455471, -0.029446320608258247, -0.024571821093559265, 0.004190437961369753, -0.015547657385468483, -0.019751684740185738, -0.026130210608243942, -0.02801477536559105, -0.08509533107280731, 0.07288190722465515, 0.013581548817455769, -0.008811244741082191, -0.06219062954187393, 0.016861416399478912, -0.027000010013580322, -0.02812349982559681, -0.027507392689585686, 0.05679062753915787, -0.01841074600815773, 0.0039503369480371475, 0.007687754463404417, 0.022270478308200836, 0.060088612139225006, 0.036875851452350616, 0.026075849309563637, 0.011660742573440075, 0.05588458478450775, 0.028848333284258842, 0.02919262833893299, -0.026130210608243942, -0.02373826503753662, -0.007660573348402977, 0.05026713386178017, 0.071540966629982, 0.027217460796236992, 0.024807391688227654, -0.019044972956180573, -0.015574838034808636, 0.021418800577521324, -0.024263767525553703, 0.01530302595347166, 0.014079871587455273, -0.02777920477092266, 0.06244431808590889, -0.037872496992349625, 0.03259934112429619, 0.06490875035524368, 0.009594970382750034, 0.027000010013580322, -0.02036779373884201, 0.048346325755119324, 0.008081882260739803, -0.035244978964328766, -0.0060795326717197895, -0.007080707233399153, -0.014088931493461132, -0.022506048902869225, 0.02812349982559681, -0.007760237902402878, 0.0019570477306842804, -0.02256041206419468, -0.04359867423772812, 0.013518125750124454, -0.04164162650704384, -0.006093122996389866, -0.006455539260059595, -0.01143423281610012, 0.018936248496174812, -0.03457450866699219, -0.014261079020798206, -0.0035992462653666735, 0.03625974431633949, -0.05896512418985367, -0.0054271831177175045, -0.037763774394989014, -0.044722165912389755, -0.0021303279791027308, -0.013672152534127235, 0.02256041206419468, 0.07299063354730606, -0.0520792156457901, -0.036767128854990005, -0.01291107852011919, 0.028793970122933388, -0.009064936079084873, 0.018012087792158127, 0.006496311165392399, 0.021835578605532646, 0.0025505044031888247, 0.039177197962999344, -0.02323088049888611, -0.03261746093630791, -0.016952019184827805, 0.01334597822278738, 0.012403695844113827, -0.00064725277479738, -0.01514899916946888, 0.014396985061466694, 0.05621076002717018, 0.04316377639770508, -0.03582484647631645, -0.08495036512613297, 0.07878929376602173, -0.04258390888571739, -0.07610741257667542, 0.043308742344379425, -0.03288927301764488, -0.03029799833893776, 0.018465107306838036, -0.01061879564076662, 0.04903491958975792, -0.029446320608258247, -0.005812250543385744, -0.0682792216539383, -0.011796648614108562, 0.045374512672424316, 0.01291107852011919, -0.0042651863768696785, 0.04762149602174759, 0.02832282893359661, -0.06519868224859238, -0.020240947604179382, 0.03486444428563118, -0.015185240656137466, 0.04033692926168442, -0.017903363332152367, 0.007270975969731808, 0.038633570075035095, 0.04686041921377182, 0.05871143192052841, 0.0810362696647644, 0.013925843872129917, 0.04787518456578255, 0.04932485148310661, 0.01732349582016468, -0.002162039512768388, 0.013744636438786983, -0.06835170090198517, 0.021545646712183952, 0.07418660819530487, -0.008534902706742287, 0.03714766353368759, -0.023883230984210968, 0.022034907713532448, -0.0010487419785931706, 0.019769806414842606, -0.03424833342432976, -0.07820942252874374, -0.05102820694446564, -0.015946315601468086, -0.04787518456578255, 0.03238189220428467, 0.051716797053813934, 0.04686041921377182, -0.014061749912798405, -0.06418392062187195, 0.01873691938817501, -0.01105369534343481, 0.02123759128153324, -0.015710745006799698, -0.038089945912361145, -0.0040749176405370235, -0.0016070895362645388, -0.033396657556295395, 0.05903760716319084, -0.001539136515930295, -0.05892888084053993, 0.06603223830461502, 0.013427522033452988, -0.01514899916946888, -0.01568356342613697, -0.011080876924097538, -0.02004161849617958, -0.007746647112071514, 0.0027249171398580074, -0.07048995792865753, -0.02212551236152649, 0.0045052869245409966, -0.05624699965119362, 0.022632895037531853, -0.000167900652741082, -0.07367922365665436, 0.005762418266385794, -0.01742316037416458, -0.01362685114145279, -0.017241952940821648, 0.04838256910443306, 0.010818124748766422, -0.00909664761275053, 0.0560295507311821, 0.024753030389547348, 0.006405706983059645, -0.003257215954363346, 0.049759749323129654, -0.020567122846841812, 0.019099336117506027, -0.0039005049038678408, 0.027289943769574165, 0.013373159803450108, 0.026891285553574562, 0.04055437818169594, 0.00765151297673583, -0.04718659445643425, 0.02375638484954834, -0.02158188819885254, -0.022850343957543373, 0.020512759685516357, -0.01611846312880516, 0.06164700165390968, -0.02671007812023163, -0.12662823498249054, 0.009821480140089989, 0.016200006008148193, -0.03441142290830612, 0.057153042405843735, 0.02919262833893299, 0.002206208882853389, -0.006582384929060936, 0.05153559148311615, 0.027434909716248512, -0.005436243489384651, -0.0370570607483387, -0.044069815427064896, -0.02102014236152172, 0.021926183253526688, -0.06856915354728699, 0.019588598981499672, 0.008634567260742188, 0.02408256009221077, 0.0726282149553299, 0.03149397298693657, 0.000021146846847841516, -0.014424166642129421, 0.003529028268530965, 0.009694634936749935, -0.044939614832401276, -0.07241076231002808, -0.027308063581585884, -0.009264265187084675, 0.06454633176326752, 0.04838256910443306, -0.01688859798014164, 0.01089966855943203, 0.022143632173538208, -0.02103826217353344, 0.0062380894087255, 0.003673994680866599, -0.0024259237106889486, -0.0005934566142968833, 0.04617182910442352, -0.10691279172897339, -0.06871411949396133, -0.006500841584056616, 0.033396657556295395, 0.02201678603887558, -0.03866981342434883, 0.01613658294081688, -0.006247150246053934, -0.019117457792162895, -0.0802389532327652, 0.0062924521043896675, -0.04367115721106529, -0.02812349982559681, 0.025858398526906967, 0.02245168574154377, -0.022071149200201035, -0.019353028386831284, 0.023031553253531456, 0.017269134521484375, -0.03560739755630493, -0.020875176414847374, 0.02986309863626957, 0.02102014236152172, 0.015121817588806152, 0.01280235406011343, -0.035371825098991394, 0.029700011014938354, 0.06795304268598557, 0.022361082956194878, 0.010156715288758278, 0.022705378010869026, -0.04646176099777222, 0.0030080548021942377, -0.005920975469052792, -0.06092217192053795, 0.04410605877637863, 0.008240438997745514, 0.009984567761421204, 0.019969135522842407, 0.030352361500263214, -0.021056383848190308, 0.027833567932248116, 0.06262552738189697, 0.008430708199739456, -0.02015034295618534, -0.034918803721666336, 0.04414229840040207, -0.0000685193226672709, -0.025097325444221497, 0.01938926987349987, 0.06081344559788704, -0.018501348793506622, -0.040590617805719376, -0.036024175584316254, -0.004106629174202681, -0.02321276068687439, -0.08328325301408768, 0.04541075602173805, -0.015438931994140148, -0.058892641216516495, -0.035698000341653824, -0.011370809748768806, 0.013092286884784698, -0.015438931994140148, 0.03223692625761032, 0.029808735474944115, -0.007674164138734341, 0.011669803410768509, -0.02004161849617958, 0.040916793048381805, 0.03243625536561012, 0.050955723971128464, -0.020512759685516357, -0.012575843371450901, 0.05577585846185684, 0.004670639522373676, -0.018057389184832573, -0.039177197962999344, 0.009105708450078964, -0.02526041306555271, -0.016390275210142136, 0.020458396524190903, -0.05950874835252762, 0.04609934613108635, 0.04435974732041359, 0.007746647112071514, -0.04686041921377182, -0.009078526869416237, 0.007778358645737171, 0.019570477306842804, -0.0276704803109169, 0.08777721226215363, 0.0470416285097599, -0.008335573598742485, 0.023683901876211166, 0.036440953612327576, -0.0002654415729921311, 0.05305773764848709, 0.037002697587013245, 0.04671545326709747, 0.02834095060825348, 0.01236745435744524, 0.017169469967484474, 0.0025459742173552513, 0.005635572597384453, 0.05349263921380043, -0.003139430657029152, -0.004398826975375414, -0.05023089051246643, -0.043417464941740036, 0.008811244741082191, 0.03580672666430473, 0.005866612773388624, -0.0073072174564003944, 0.017395980656147003, 0.01378087792545557, 0.06153827905654907, 0.023810748010873795, 0.08292083442211151, 0.07407788187265396, 0.050593309104442596, 0.0009977772133424878, 0.02551410347223282, -0.006890438962727785, -0.04316377639770508, 0.038198672235012054, 0.016190946102142334, -0.06704700738191605, 0.049904715269804, -0.007225674111396074, -0.030805381014943123, 0.009513426572084427, 0.015230542980134487, -0.08060137182474136, -0.040046993643045425, -0.06951143592596054, 0.02536913752555847, 0.014695978723466396, -0.018157053738832474, -0.008362755179405212, -0.014288260601460934, -0.01841074600815773, -0.06465505808591843, 0.024136921390891075, -0.010120473802089691, -0.017287254333496094, 0.04283760115504265, 0.01678893342614174, -0.02375638484954834, -0.0236657802015543, -0.021291954442858696, -0.018881887197494507, 0.01721477136015892, -0.019914772361516953, -0.057479217648506165, 0.037981223315000534, -0.022361082956194878, -0.027271822094917297, 0.04910740256309509, -0.03783625736832619, -0.06780807673931122, -0.015266784466803074, 0.03484632074832916, 0.007257385179400444, -0.032218802720308304, -0.006709230598062277, -0.023249002173542976, 0.005549498833715916, 0.014460408128798008, -0.025459742173552513, -0.010718460194766521, -0.016961080953478813, 0.007452183868736029, -0.025894640013575554, -0.06266176700592041, 0.0003969590470660478, 0.01079094409942627, 0.02941007912158966, -0.019806047901511192, -0.010491950437426567, 0.057587940245866776, 0.028504038229584694, -0.020422155037522316, -0.0021541116293519735, 0.02995370328426361, -0.021074505522847176, 0.019860411062836647, 0.015656381845474243, -0.025206049904227257, -0.0070942980237305164, 0.02430000901222229, -0.003755538258701563, -0.03827115520834923, 0.040590617805719376, -0.02190806157886982, 0.023466451093554497, -0.0004768038634210825, 0.02973625250160694, 0.025640949606895447, -0.02493423782289028, -0.063640296459198, -0.0669020414352417, 0.003662669099867344, 0.04501209780573845, -0.09292352199554443, 0.01764967106282711, -0.024318130686879158, -0.02736242674291134, -0.02834095060825348, 0.05015840753912926, 0.023140277713537216, -0.0016093546291813254, 0.013463763520121574, -0.023720143362879753, 0.03736511617898941, -0.05827653408050537, 0.0341939739882946, -0.0004145135753788054, -0.01742316037416458, -0.012557722628116608, -0.04628055542707443, 0.09227117896080017, 0.013826180249452591, -0.030134910717606544, 0.029120145365595818, -0.03071477636694908, -0.043417464941740036, 0.03662216290831566, 0.04131545126438141, 0.0005291843554005027, 0.03104095160961151, -0.06244431808590889, -0.03093222714960575, -0.04095303639769554, 0.004324079025536776, -0.013753696344792843, -0.037328872829675674, -0.008208728395402431, -0.02493423782289028, -0.0073661101050674915, 0.04584565386176109, 0.021291954442858696, -0.01949799433350563, 0.0361691415309906, 0.007502016145735979, -0.022361082956194878, -0.06476378440856934, 0.00893809087574482, -0.001122357789427042, -0.009558728896081448, 0.002600336680188775, 0.0015368714230135083, 0.05255035683512688, -0.038524847477674484, 0.01862819492816925, 0.02136443741619587, -0.0810362696647644, -0.0405181348323822, -0.018465107306838036, 0.01687047630548477, 0.06893157213926315, -0.023991955444216728, -0.02594900317490101, 0.0238651093095541, -0.005368290469050407, -0.03740135580301285, -0.04932485148310661, 0.0014723159838467836, 0.04849129542708397, 0.003929951228201389, 0.02930135279893875, -0.005209733732044697, 0.016707388684153557, -0.035136256366968155, -0.007900673896074295, -0.0039005049038678408, 0.043417464941740036, -0.015964435413479805, -0.0586027055978775, 0.01232215203344822, 0.060378547757864, -0.022161753848195076, -0.03553491458296776, 0.035589274019002914, 0.013164769858121872, 0.020675847306847572, -0.004657048732042313, -0.03642283380031586, -0.0354805514216423, -0.057914115488529205, 0.008362755179405212, -0.00024562195176258683, 0.05447116121649742, -0.06443760544061661, 0.046353038400411606, -0.004197233356535435, 0.03694833815097809 ]
21,121
tfields.core
main_axes
Returns: Main Axes eigen-vectors
def main_axes(self, weights=None): """ Returns: Main Axes eigen-vectors """ # weights = self.getNormedWeightedAreas(weights=weights) weights = self._weights(weights) mean = np.array(self).mean(axis=0) relative_coords = self - mean cov = np.cov(relative_coords.T, ddof=0, aweights=weights) # calculate eigenvalues and eigenvectors of covariance evalfs, evecs = np.linalg.eigh(cov) return (evecs * evalfs.T).T
(self, weights=None)
[ -0.0009381095878779888, -0.03225236386060715, 0.03856106847524643, 0.018376758322119713, 0.015621131286025047, -0.03802943602204323, -0.00002287819006596692, -0.024543695151805878, 0.03930535167455673, 0.06315792351961136, 0.006029597017914057, -0.007748541887849569, 0.012661711312830448, -0.013024993240833282, -0.029346106573939323, 0.02167288027703762, 0.006592241581529379, -0.01910332217812538, 0.020219750702381134, -0.0071593159809708595, -0.06340602040290833, -0.0651426836848259, 0.005130252335220575, -0.02528798021376133, -0.014992033131420612, 0.00614921422675252, -0.05833779275417328, -0.07003370672464371, 0.052702490240335464, -0.06858057528734207, -0.11497435718774796, -0.019351419061422348, -0.014761658385396004, -0.020326077938079834, 0.07084887474775314, -0.017393238842487335, 0.0038809163961559534, -0.006924511399120092, 0.07939043641090393, 0.0924331471323967, 0.05068228393793106, -0.04993800073862076, 0.04001419618725777, -0.021867811679840088, -0.012280707247555256, 0.03671807423233986, 0.01562999188899994, 0.024685462936758995, 0.033351071178913116, 0.016347695142030716, 0.024118388071656227, -0.0400850810110569, 0.0534113310277462, -0.0011906350264325738, 0.04043950140476227, 0.03584974259138107, 0.012422475963830948, 0.0021907684858888388, 0.005772641394287348, -0.06638316065073013, -0.0011385793332010508, -0.033811818808317184, 0.006627683527767658, 0.0070618498139083385, 0.030090391635894775, -0.01117314025759697, 0.013503462076187134, 0.028034746646881104, 0.015346454456448555, 0.003205300075933337, -0.014043955132365227, -0.04791779816150665, -0.05217085778713226, -0.05996813252568245, 0.03257134184241295, -0.007128303870558739, -0.036966171115636826, 0.008634596131742, -0.018607132136821747, 0.04129011556506157, -0.05486445873975754, 0.015018614009022713, -0.03551304340362549, 0.03962433338165283, 0.04781147092580795, 0.02197413705289364, -0.03248273953795433, 0.021052641794085503, 0.014611029997467995, 0.00013456944725476205, 0.053482215851545334, 0.03831297159194946, 0.026634782552719116, 0.045046981424093246, -0.001033914159052074, -0.011563003994524479, -0.0031521369237452745, -0.03437889367341995, 0.05433282628655434, -0.02130073681473732, -0.029027126729488373, 0.029452433809638023, 0.046358343213796616, -0.0012881009606644511, -0.016126181930303574, 0.0021065932232886553, -0.01993621326982975, -0.061669353395700455, -0.010845300741493702, 0.024260157719254494, 0.01920964941382408, 0.00933900848031044, -0.012874363921582699, 0.030781514942646027, -0.032553620636463165, -0.033918146044015884, -0.00925926398485899, 0.002870814874768257, -0.01051746029406786, 0.011864262633025646, 0.0027932850643992424, 0.04323943331837654, 0.026953760534524918, -0.04366473853588104, -0.049654461443424225, -0.005777071695774794, -0.027361346408724785, -0.04185718670487404, -0.048236776143312454, -0.025943659245967865, 0.0679071769118309, -0.07095520198345184, -0.036026954650878906, -0.026617061346769333, 0.009755454026162624, 0.015293290838599205, 0.07591710239648819, -0.013902186416089535, -0.0032208061311393976, 0.02218679152429104, 0.021052641794085503, 0.08300553262233734, 0.02975369244813919, 0.031827058643102646, -0.03749780356884003, 0.058515001088380814, 0.034449778497219086, 0.00618022633716464, -0.009276985190808773, -0.09399260580539703, -0.01466419268399477, 0.013831302523612976, -0.0534113310277462, -0.02472090534865856, 0.004414763767272234, -0.07542090862989426, 0.017091980203986168, 0.007930182851850986, 0.0099415248259902, 0.008355489000678062, -0.06142126023769379, -0.006840336602181196, 0.027308182790875435, -0.02938154898583889, 0.00106271100230515, 0.02360447682440281, 0.028513215482234955, -0.020698219537734985, -0.014238886535167694, -0.00598086416721344, -0.03834841400384903, -0.03542443737387657, -0.12390578538179398, -0.00027647652314044535, -0.032340969890356064, -0.015647713094949722, -0.021017199382185936, 0.008058660663664341, 0.022541211917996407, -0.018394479528069496, 0.028885358944535255, -0.0024920266587287188, 0.003860980039462447, -0.033510562032461166, 0.042211610823869705, 0.031508076936006546, 0.04533052071928978, 0.01720716804265976, 0.01841220073401928, -0.03441433608531952, -0.0684388056397438, -0.02261209674179554, -0.023533592000603676, 0.02576644904911518, 0.04433814063668251, 0.04260147362947464, 0.024384204298257828, 0.013955350033938885, -0.020237471908330917, -0.0669502392411232, -0.006977675016969442, -0.04132555425167084, 0.007912461645901203, -0.015762899070978165, -0.007447283249348402, 0.046464670449495316, 0.007380829192698002, -0.05482902005314827, -0.0011972803622484207, 0.0329434871673584, 0.04412548616528511, -0.011580725200474262, -0.047457050532102585, -0.04933548346161842, -0.0032961207907646894, 0.04043950140476227, 0.0004086923727300018, -0.022842470556497574, 0.02429560013115406, 0.06489459425210953, -0.032978929579257965, 0.002441078657284379, 0.003433458972722292, 0.015665434300899506, -0.007465004455298185, -0.026404406875371933, 0.04043950140476227, 0.0034090925473719835, -0.025624679401516914, -0.028371447697281837, 0.0038521194364875555, -0.016117321327328682, -0.03026760369539261, -0.049229156225919724, -0.021105805411934853, 0.01604643650352955, -0.04033317416906357, 0.006432751659303904, -0.0015926819760352373, 0.042211610823869705, -0.011757936328649521, -0.02475634776055813, 0.0019304900197312236, 0.03545987978577614, -0.040900249034166336, 0.014354074373841286, 0.024844951927661896, 0.030551139265298843, 0.016773000359535217, -0.016710978001356125, 0.014628750272095203, -0.03042709268629551, -0.015213546343147755, 0.007385259494185448, 0.04883929342031479, -0.0020855495240539312, -0.0016070803394541144, 0.02560695819556713, 0.025217095389962196, -0.029895460233092308, 0.0398724265396595, 0.05993269011378288, 0.023374103009700775, 0.007496016565710306, -0.00515683414414525, 0.010428855195641518, 0.014965451322495937, -0.008355489000678062, -0.028779031708836555, 0.021761484444141388, 0.04345208406448364, 0.0776183232665062, 0.012714873999357224, 0.014956590719521046, -0.013716114684939384, -0.0028575239703059196, -0.03990786895155907, -0.0016879327595233917, -0.06337057799100876, 0.026776550337672234, -0.038490183651447296, 0.00003288090738351457, -0.04391283541917801, 0.07198302447795868, -0.03483964130282402, -0.0535176582634449, -0.013166761957108974, -0.11086306720972061, 0.034343451261520386, -0.015470501966774464, -0.0028597391210496426, 0.010021270252764225, 0.0038033865857869387, -0.05057596042752266, -0.004177744500339031, -0.08335995674133301, 0.003867625491693616, -0.0012172166025266051, -0.00016682734712958336, 0.030834676697850227, 0.01674642041325569, 0.03888004645705223, 0.03584974259138107, -0.03771045431494713, 0.026794271543622017, 0.03746236115694046, 0.02748539298772812, -0.011022510938346386, 0.04852031543850899, -0.04217616841197014, -0.04901650547981262, 0.028991684317588806, -0.04394827410578728, 0.02812335267663002, -0.0808081179857254, 0.030125834047794342, 0.0341130755841732, -0.07237288355827332, 0.04791779816150665, 0.07091975957155228, -0.0069023603573441505, 0.044834330677986145, -0.008856109343469143, -0.030551139265298843, 0.010216201655566692, 0.02193869650363922, -0.04809500649571419, -0.04338120296597481, 0.06326425075531006, -0.02424243651330471, -0.006561229471117258, -0.0392344705760479, -0.03289032354950905, -0.003070176811888814, -0.02592593804001808, 0.0013711685314774513, 0.05961370840668678, 0.043629296123981476, 0.02124757319688797, -0.025199374184012413, 0.0012881009606644511, 0.005108100827783346, -0.0014088257448747754, 0.053694870322942734, -0.08180049806833267, -0.027449950575828552, -0.02603226527571678, 0.0031875791028141975, 0.01873118057847023, -0.053801193833351135, -0.03515861928462982, -0.005400498863309622, -0.028371447697281837, -0.022576654329895973, -0.003094543470069766, 0.07371968775987625, -0.0014420527731999755, -0.0010593882761895657, -0.01563885249197483, 0.026634782552719116, 0.04192807152867317, -0.009720011614263058, -0.08662063628435135, -0.023888014256954193, -0.06305159628391266, -0.045046981424093246, 0.07364880293607712, -0.019847609102725983, 0.04313310608267784, -0.034502942115068436, -0.010278225876390934, -0.035282667726278305, -0.024260157719254494, 0.024118388071656227, 0.0020833343733102083, 0.040687598288059235, -0.0647173821926117, -0.003165427828207612, 0.03338651359081268, -0.06064153090119362, 0.03377637639641762, -0.008492827415466309, 0.024579135701060295, -0.046464670449495316, -0.008426372893154621, 0.005998585373163223, 0.03356372192502022, 0.020113425329327583, -0.02156655304133892, 0.06071241572499275, -0.02208046428859234, -0.010287086479365826, -0.028087910264730453, -0.005298602394759655, -0.037072498351335526, -0.010030130855739117, 0.0022727283649146557, 0.010712392628192902, -0.056211262941360474, -0.021229851990938187, -0.0035287097562104464, 0.0059232707135379314, -0.006211237981915474, -0.004089138936251402, -0.02828284166753292, -0.05142657086253166, -0.0686514601111412, -0.015036335214972496, 0.04054582864046097, -0.01626794971525669, -0.015523665584623814, 0.06312248110771179, 0.042991336435079575, 0.009702290408313274, -0.023267775774002075, 0.03494596853852272, 0.003936294466257095, -0.019900770857930183, 0.08194226771593094, -0.02229311689734459, 0.0011003682157024741, 0.029310664162039757, 0.04433814063668251, 0.01857169158756733, 0.05865677073597908, -0.010065573267638683, -0.07492472231388092, -0.06836792081594467, 0.04150276631116867, -0.026581618934869766, -0.022275395691394806, -0.03138403221964836, -0.02743222936987877, 0.006561229471117258, -0.015550246462225914, 0.044728003442287445, 0.01432749256491661, 0.04699630290269852, -0.03404219448566437, 0.031401753425598145, -0.000893806922249496, -0.023320939391851425, -0.0524543933570385, -0.034910526126623154, -0.03173845261335373, 0.0016967933624982834, -0.04118378832936287, 0.021548831835389137, -0.057947929948568344, -0.02927522175014019, 0.054899901151657104, 0.013450298458337784, 0.016666674986481667, -0.0396597757935524, -0.014894566498696804, 0.045826710760593414, 0.01784512586891651, -0.028867637738585472, -0.0010300377616658807, 0.012546523474156857, 0.0007354247500188649, -0.01773880049586296, 0.0031499217730015516, -0.04621657356619835, 0.0160996001213789, 0.018110942095518112, 0.01735779643058777, -0.014761658385396004, -0.010287086479365826, 0.01091618463397026, 0.11646293103694916, 0.020680498331785202, -0.019280534237623215, -0.04901650547981262, 0.05121391639113426, 0.017659055069088936, -0.05121391639113426, -0.016028715297579765, 0.008466245606541634, -0.03269539028406143, -0.06996282190084457, 0.028690427541732788, 0.009587103500962257, -0.010960487648844719, 0.008151696063578129, 0.020910874009132385, 0.022009579464793205, -0.03448522090911865, 0.01445154007524252, -0.03312069550156593, 0.043097663670778275, 0.07442852854728699, -0.0030413800850510597, 0.07123873382806778, 0.04175086319446564, 0.03278399631381035, 0.07198302447795868, -0.037214264273643494, 0.0023790549021214247, 0.013051575049757957, 0.08626621216535568, -0.024614578112959862, -0.012413615360856056, -0.0020202030427753925, -0.036540865898132324, -0.026138590648770332, -0.030976446345448494, -0.005927701015025377, 0.029151175171136856, 0.008541559800505638, 0.01752614788711071, -0.07123873382806778, 0.02991318143904209, -0.05808969587087631, 0.039163585752248764, -0.0007764047477394342, -0.034024473279714584, 0.059897247701883316, 0.054758135229349136, 0.040900249034166336, -0.025429747998714447, -0.02445508912205696, -0.04447990655899048, 0.08825097233057022, -0.01392876822501421, 0.0943470224738121, -0.07010459154844284, 0.017543867230415344, 0.031135935336351395, 0.07286907732486725, -0.06216554343700409, -0.02076910436153412, -0.013157901354134083, 0.04433814063668251, -0.05100126564502716, -0.005320753902196884, -0.028672706335783005, -0.029292942956089973, -0.025412026792764664, 0.01157186459749937, 0.006676416378468275, -0.020893152803182602, 0.03005494922399521, -0.041467323899269104, 0.03471559286117554, -0.03613327816128731, 0.0407230406999588, -0.029611922800540924, 0.00648148451000452, -0.024313319474458694, 0.034237124025821686, -0.006065039429813623, 0.03258906304836273, 0.028194237500429153, 0.03877371922135353, 0.011846541427075863, -0.0165249053388834, -0.03609783947467804, -0.08888892829418182, 0.013503462076187134, 0.027839815244078636, 0.000979089643806219, 0.06213010102510452, -0.010659229010343552, -0.021637437865138054, 0.033546000719070435, -0.0040979995392262936, 0.031508076936006546, 0.0001601819385541603, -0.012138939462602139, -0.08569914102554321, 0.02124757319688797, 0.020184308290481567, -0.03724970668554306, -0.029080290347337723, 0.0397660993039608, 0.023693082854151726, 0.010225062258541584, -0.015222406946122646, -0.022700702771544456, -0.008111824281513691, -0.0670565590262413, 0.0043815369717776775, -0.013326250948011875, 0.03216375783085823, 0.01637427695095539, 0.03457382321357727, 0.05723908543586731, -0.00317428819835186, 0.02371080406010151, -0.03739147633314133, -0.010606065392494202, 0.028052467852830887, 0.03749780356884003, 0.034502942115068436, -0.03535355255007744, -0.022310838103294373, 0.003420168301090598, 0.012732595205307007, 0.012528803199529648, 0.0052675907500088215, 0.0406167134642601, 0.05723908543586731, 0.020804546773433685, -0.004233122803270817, -0.033971309661865234, 0.02739678882062435, 0.008249162696301937, -0.04391283541917801, -0.0008672252879478037, 0.006694137584418058, -0.013255367055535316, 0.008745352737605572, 0.003316056914627552, 0.02213362790644169, 0.002545190043747425, -0.07077798992395401, 0.03186250105500221, 0.016932491213083267, 0.07035268098115921, -0.0020456770434975624, -0.034910526126623154, -0.047882355749607086, -0.035016853362321854, -0.0390218161046505, 0.019422302022576332, 0.04302677884697914, -0.027414510026574135, 0.009312426671385765, 0.07627152651548386, 0.047031745314598083, -0.021920975297689438, 0.0012980690225958824, -0.06266173720359802, 0.01073011290282011, 0.005050507374107838, 0.0026493011973798275, -0.03460926562547684, -0.0016104030655696988, -0.006277692038565874, 0.04518875107169151, 0.0198298878967762, 0.034538384526968, 0.018536249175667763, 0.07435764372348785, 0.0200957041233778, -0.038171205669641495, 0.0027246158570051193, 0.004749249201267958, -0.029292942956089973, -0.015603410080075264, -0.06858057528734207, -0.02528798021376133, 0.04086480662226677, -0.02344498783349991, 0.015071777626872063, -0.01830587536096573, 0.011332630179822445, 0.002507532713934779, -0.013104737736284733, -0.011598446406424046, -0.018819786608219147, -0.0026116441003978252, 0.0005781502113677561, 0.08619532734155655, -0.003920788876712322, -0.03778133913874626, 0.06464649736881256, -0.022045021876692772, -0.06602873653173447, 0.09654443711042404, 0.005178985185921192, -0.012759177014231682, -0.0202551931142807, -0.054013848304748535, 0.03919902816414833, 0.008895982056856155, 0.002474305685609579, 0.013264227658510208, -0.021743763238191605, 0.017074258998036385, 0.06638316065073013, -0.005015065427869558, -0.025784170255064964, 0.05929473042488098, -0.07882335782051086, 0.0006008553318679333, 0.04175086319446564, -0.002802145667374134, -0.06989193707704544, -0.030622024089097977, -0.03127770498394966, 0.06542622298002243, 0.0014453754993155599, 0.0524543933570385, 0.033864982426166534, 0.0009093128610402346, -0.06205921992659569, -0.005644163582473993, 0.040900249034166336, 0.02534114196896553, 0.009152937680482864, -0.04632290080189705, 0.06276806443929672, 0.024260157719254494, -0.01201489195227623, 0.03595606982707977, 0.0195640716701746, -0.02328549697995186, -0.008820666931569576, -0.009844059124588966, -0.008483966812491417, 0.03558392822742462, -0.014495842158794403, 0.008940284140408039, 0.04143188148736954, -0.006765021942555904, 0.04486977308988571, 0.024065224453806877, 0.016090739518404007, -0.010136457160115242, 0.02975369244813919, 0.014123699627816677, -0.00545809231698513, 0.027060087770223618, 0.022541211917996407, -0.00030015077209100127, -0.01993621326982975, -0.043310318142175674, 0.006543508265167475, -0.0032185909803956747, -0.07251465320587158, 0.041679978370666504, 0.05819602310657501, -0.05263160541653633, 0.06358323246240616, -0.00634857639670372, -0.011182000860571861, -0.09888362139463425, -0.0006833691149950027, -0.015071777626872063, -0.005373917054384947, -0.040793925523757935, -0.01138579286634922, 0.01648060418665409, -0.008054230362176895, -0.013583206571638584, 0.0070441290736198425, 0.04827221855521202, 0.026882877573370934, 0.020645057782530785, 0.05993269011378288, 0.031295426189899445, -0.019386859610676765, -0.027892978861927986, 0.03618644177913666, 0.03678895905613899, -0.045046981424093246, -0.028247399255633354, -0.02309056557714939, -0.00008209843508666381, -0.011926285922527313, -0.06390221416950226, 0.07861070334911346, 0.005143543239682913, 0.001532873371616006, 0.0397660993039608, 0.041360996663570404 ]
21,122
tfields.core
min_dists
Args: other(array | None): if None: closest distance to self **kwargs: memory_saving (bool): for very large array comparisons default False ... rest is forwarded to scipy.spatial.distance.cdist Returns: np.array: minimal distances of self to other Examples: >>> import tfields >>> import numpy as np >>> p = tfields.Tensors.grid((0, 2, 3), ... (0, 2, 3), ... (0, 0, 1)) >>> p[4,2] = 1 >>> dMin = p.min_dists() >>> expected = [1] * 9 >>> expected[4] = np.sqrt(2) >>> np.array_equal(dMin, expected) True >>> dMin2 = p.min_dists(memory_saving=True) >>> bool((dMin2 == dMin).all()) True
def min_dists(self, other=None, **kwargs): """ Args: other(array | None): if None: closest distance to self **kwargs: memory_saving (bool): for very large array comparisons default False ... rest is forwarded to scipy.spatial.distance.cdist Returns: np.array: minimal distances of self to other Examples: >>> import tfields >>> import numpy as np >>> p = tfields.Tensors.grid((0, 2, 3), ... (0, 2, 3), ... (0, 0, 1)) >>> p[4,2] = 1 >>> dMin = p.min_dists() >>> expected = [1] * 9 >>> expected[4] = np.sqrt(2) >>> np.array_equal(dMin, expected) True >>> dMin2 = p.min_dists(memory_saving=True) >>> bool((dMin2 == dMin).all()) True """ memory_saving = kwargs.pop("memory_saving", False) if other is None: other = self else: raise NotImplementedError( "Should be easy but make shure not to remove diagonal" ) try: if memory_saving: raise MemoryError() dists = self.distances(other, **kwargs) return dists[dists > 0].reshape(dists.shape[0], -1).min(axis=1) except MemoryError: min_dists = np.empty(self.shape[0]) for i, point in enumerate(np.array(other)): dists = self.distances([point], **kwargs) min_dists[i] = dists[dists > 0].reshape(-1).min() return min_dists
(self, other=None, **kwargs)
[ -0.0058311284519732, -0.004217068199068308, 0.031255628913640976, 0.020433368161320686, -0.00854646135121584, -0.027387745678424835, 0.007852977141737938, 0.025707755237817764, -0.02981005795300007, 0.0504387728869915, -0.045086245983839035, -0.007642978336662054, -0.018724076449871063, 0.007799256592988968, 0.01325434073805809, -0.028169136494398117, -0.010578077286481857, 0.005914151202887297, -0.020570112392306328, 0.003123121103271842, -0.010900400578975677, -0.00003130522964056581, 0.020726390182971954, 0.009899243712425232, -0.02518031746149063, 0.05856523662805557, 0.04301556199789047, -0.046844374388456345, 0.0006141242920421064, 0.014318985864520073, 0.04918854683637619, 0.02096080780029297, 0.020296623930335045, -0.030689122155308723, 0.013547361828386784, -0.04028069227933884, 0.027915185317397118, -0.0025102177169173956, -0.031470511108636856, 0.0009254596661776304, -0.053329918533563614, -0.05727594345808029, 0.015217584557831287, -0.014309218153357506, 0.024086369201540947, 0.020570112392306328, -0.018890121951699257, 0.028071463108062744, -0.050204355269670486, 0.08501531183719635, 0.011408304795622826, -0.02105848118662834, 0.02084359899163246, 0.012023650109767914, -0.05504897981882095, 0.10275288671255112, 0.04868064448237419, 0.015305491164326668, -0.04219510033726692, -0.024496600031852722, -0.002389346482232213, 0.011896674521267414, 0.06489450484514236, -0.005362294148653746, -0.04055418074131012, -0.07411491125822067, -0.06352706998586655, 0.020765459164977074, -0.03041563555598259, 0.10306543856859207, -0.04954017326235771, -0.0004044307570438832, 0.00048287506797350943, -0.003955790773034096, 0.035983044654130936, 0.09321991354227066, 0.004849506542086601, -0.04227323830127716, 0.07161445915699005, -0.04321090877056122, -0.019319886341691017, -0.04395322874188423, 0.02105848118662834, -0.01705385372042656, -0.019319886341691017, 0.03127516433596611, -0.009879709221422672, 0.0830618366599083, 0.0461411252617836, -0.06739494949579239, -0.02500450424849987, 0.05965918302536011, 0.0025590546429157257, 0.004253695718944073, 0.018694773316383362, 0.054541073739528656, -0.006094847805798054, 0.01275620423257351, 0.02504357323050499, 0.012277602218091488, 0.06942656636238098, 0.02156638540327549, 0.034478865563869476, 0.016526414081454277, 0.027758905664086342, -0.027954254299402237, -0.0029814941808581352, -0.046336472034454346, -0.02435985580086708, 0.048172738403081894, -0.06508985161781311, 0.001589641789905727, 0.011046911589801311, 0.025317059829831123, -0.02336358278989792, -0.025199851021170616, -0.017893848940730095, 0.025375664234161377, 0.003589513711631298, -0.021234294399619102, -0.0059629883617162704, 0.04567229002714157, -0.003816605545580387, -0.0337560810148716, 0.015432467684149742, 0.01891942322254181, 0.0649726390838623, -0.004842180758714676, -0.021800801157951355, -0.017219899222254753, 0.06946563720703125, -0.024477064609527588, 0.028032394126057625, 0.08767203986644745, 0.011281329207122326, -0.041140224784612656, 0.04489089921116829, 0.013596199452877045, 0.03615885600447655, -0.007555071730166674, 0.028755180537700653, -0.052392248064279556, 0.021292898803949356, 0.035338398069143295, -0.046805307269096375, 0.03049377351999283, -0.006275544408708811, 0.023129167035222054, 0.05485362932085991, 0.009362038224935532, -0.0217421967536211, -0.015823163092136383, 0.05004807934165001, -0.04000720754265785, -0.03496723622083664, -0.04610205441713333, 0.011095748282968998, -0.061065688729286194, -0.00018130707030650228, 0.028559831902384758, -0.038210008293390274, -0.03791698440909386, 0.04324997961521149, -0.020784994587302208, -0.011144585907459259, 0.0023588233161717653, -0.018391985446214676, -0.01895849220454693, -0.04973552003502846, 0.05098574608564377, 0.037565361708402634, 0.03373654559254646, 0.030864935368299484, -0.04028069227933884, -0.022328240796923637, -0.01952500082552433, 0.006172987166792154, -0.006798099726438522, -0.01237527560442686, 0.0022745796013623476, 0.008341345936059952, -0.003508932888507843, 0.0018033033702522516, -0.01619432307779789, 0.045516010373830795, 0.03205655515193939, 0.007017865777015686, -0.038991399109363556, 0.0348890982568264, 0.044617410749197006, -0.014328752644360065, -0.03582676500082016, -0.04219510033726692, 0.009503665380179882, -0.0021878941915929317, 0.0853278711438179, -0.04043697193264961, -0.02981005795300007, 0.002036499558016658, 0.07239585369825363, -0.0584089569747448, 0.0071741440333426, 0.011320398189127445, -0.021585918962955475, 0.03990953415632248, 0.022543122991919518, -0.0337560810148716, -0.00006470891821663827, 0.006480659358203411, 0.024691948667168617, 0.028930991888046265, -0.0590340718626976, -0.0745837464928627, 0.009000645019114017, 0.04543787240982056, -0.021976614370942116, -0.01626269519329071, -0.040397901087999344, -0.00587508175522089, -0.045984845608472824, 0.06610565632581711, -0.06731681525707245, 0.01791338250041008, 0.027641698718070984, -0.013430153951048851, 0.009020179510116577, 0.026879841461777687, -0.04528159275650978, -0.016526414081454277, -0.04391416162252426, 0.06790285557508469, -0.07470095902681351, 0.01830407790839672, -0.04965738207101822, 0.011066446080803871, -0.032837945967912674, 0.012590158730745316, -0.012883179821074009, 0.034088172018527985, -0.018245473504066467, -0.06458194553852081, -0.008165533654391766, 0.02393009141087532, -0.022699400782585144, 0.003037656657397747, -0.033795151859521866, -0.05571316182613373, -0.002705565420910716, 0.03109935112297535, 0.012248300015926361, -0.027915185317397118, -0.02689937688410282, -0.007999488152563572, -0.026352403685450554, 0.022836145013570786, -0.07223957777023315, 0.016682691872119904, 0.009225294925272465, -0.0041023013181984425, -0.038815584033727646, -0.009757616557180882, -0.06391776353120804, -0.045476943254470825, 0.01945663057267666, -0.04360160231590271, 0.041999753564596176, 0.032369110733270645, 0.023129167035222054, -0.025121713057160378, -0.011632954701781273, -0.06126103550195694, 0.05958104506134987, -0.005914151202887297, -0.048954129219055176, 0.001222143997438252, 0.009366922080516815, 0.0019424885977059603, -0.048172738403081894, 0.02568822167813778, -0.026098450645804405, -0.044656481593847275, -0.045164383947849274, -0.05262666568160057, -0.006749262567609549, -0.06313637644052505, -0.0005686449003405869, -0.009972499683499336, -0.11283282190561295, -0.003301376011222601, 0.00874180905520916, 0.011310631409287453, 0.05610385537147522, -0.02797378972172737, -0.028598900884389877, 0.016965946182608604, 0.0031841672025620937, -0.02539519965648651, -0.008898086845874786, 0.012092022225260735, 0.02195708081126213, 0.008189952000975609, -0.004036371596157551, -0.03875698149204254, -0.00431718397885561, 0.027739372104406357, -0.0033575384877622128, 0.026352403685450554, -0.008609949611127377, 0.02568822167813778, 0.003167074406519532, -0.002996145049110055, -0.009405991062521935, -0.017747336998581886, 0.0006476996932178736, 0.03690117970108986, 0.02199614979326725, 0.0233245138078928, 0.04051510989665985, -0.0017971987836062908, 0.08087394386529922, 0.03174399957060814, 0.06809820234775543, -0.05516618862748146, 0.027485419064760208, -0.016311531886458397, -0.008575763553380966, 0.0482899472117424, -0.02754402346909046, 0.01626269519329071, 0.07802186906337738, 0.041140224784612656, -0.0019290584605187178, 0.04231230914592743, -0.018636168912053108, 0.08118649572134018, 0.036276064813137054, 0.0552443265914917, -0.007945767603814602, -0.023656604811549187, -0.029790522530674934, 0.009381572715938091, 0.015090608969330788, 0.019173376262187958, 0.001092726131901145, -0.022367309778928757, -0.021449176594614983, 0.06884052604436874, -0.009244829416275024, 0.0386202372610569, -0.02732914127409458, -0.009952964261174202, 0.0241449736058712, 0.016291996464133263, -0.023265909403562546, 0.05860430747270584, 0.03686210885643959, -0.04219510033726692, 0.03242771700024605, 0.011955278925597668, 0.009537850506603718, 0.0322323702275753, 0.015403165481984615, -0.014201777055859566, -0.060167089104652405, -0.041648127138614655, -0.022230567410588264, -0.004131603520363569, -0.07962371408939362, -0.0265477504581213, -0.015305491164326668, -0.024281717836856842, -0.031509581953287125, -0.015383630059659481, 0.011847836896777153, 0.009825988672673702, 0.0005133981467224658, -0.02195708081126213, 0.05102481693029404, -0.08407764136791229, -0.0018265008693560958, -0.0010628135642036796, -0.00452229892835021, 0.03453747183084488, 0.023793349042534828, -0.014465495944023132, 0.019251514226198196, 0.03242771700024605, -0.006602752022445202, 0.004803111311048269, 0.007545304484665394, -0.012932016514241695, -0.07962371408939362, 0.004778692964464426, 0.04860250651836395, -0.00918622501194477, 0.00852692686021328, 0.03080633096396923, 0.011085981503129005, -0.06856703758239746, -0.044265784323215485, 0.020335694774985313, -0.04188254475593567, -0.008556229062378407, 0.03195888176560402, -0.009200875647366047, -0.03678397089242935, -0.013332479633390903, -0.052431318908929825, -0.024164509028196335, 0.11228585243225098, -0.06137824431061745, 0.007052051369100809, 0.08079580217599869, 0.021488245576620102, -0.016965946182608604, -0.0326816700398922, -0.06567589193582535, 0.05622106418013573, 0.063214510679245, 0.017298037186264992, -0.0005634559784084558, -0.04313277080655098, -0.03063051775097847, -0.0461411252617836, -0.02439892664551735, -0.026196124032139778, -0.011652489192783833, -0.04231230914592743, -0.0018033033702522516, -0.017141759395599365, 0.0033428873866796494, 0.017864545807242393, -0.021839872002601624, 0.012668297626078129, -0.038991399109363556, 0.030103078112006187, 0.02551240846514702, 0.009215527214109898, 0.034088172018527985, -0.00739879347383976, 0.009757616557180882, -0.003518700134009123, 0.012111556716263294, -0.02758309431374073, -0.0536034069955349, -0.040358833968639374, 0.016829203814268112, 0.017151527106761932, -0.007408561185002327, -0.02883331850171089, 0.05399410054087639, -0.021449176594614983, 0.032544925808906555, 0.004180440679192543, -0.008751576766371727, -0.01944686286151409, -0.02422311343252659, -0.04582856595516205, -0.0682544857263565, 0.03938209265470505, 0.040827665477991104, 0.02551240846514702, -0.022093823179602623, -0.0034893981646746397, -0.00863436795771122, 0.023265909403562546, 0.005826244596391916, 0.025961708277463913, 0.02797378972172737, -0.0043293931521475315, 0.1158021092414856, -0.004610205534845591, -0.0418434739112854, -0.008649018593132496, -0.019798487424850464, 0.034771889448165894, -0.0182357057929039, 0.016711995005607605, 0.026391472667455673, -0.017991522327065468, -0.03461560979485512, -0.04832901805639267, 0.0557522289454937, -0.04028069227933884, 0.014719448052346706, -0.0434843935072422, -0.028071463108062744, -0.026215659454464912, 0.020765459164977074, 0.04192161560058594, 0.014817122370004654, 0.011300863698124886, 0.02117568999528885, -0.06727774441242218, 0.0332481749355793, 0.04692251607775688, 0.023383118212223053, 0.00866855401545763, 0.07665443420410156, 0.027270536869764328, -0.016848737373948097, 0.01686827279627323, -0.012599925510585308, 0.054970838129520416, 0.02529752627015114, 0.024301253259181976, -0.002285568043589592, 0.04328904673457146, -0.061065688729286194, 0.026957981288433075, -0.006309730466455221, -0.06028429791331291, 0.04309369996190071, 0.025277990847826004, 0.03889372572302818, 0.010431566275656223, 0.007149725221097469, 0.035592347383499146, 0.0008924947469495237, -0.03776070848107338, 0.02758309431374073, 0.07614652812480927, -0.0391867458820343, -0.061534520238637924, -0.07903767377138138, 0.010167847387492657, -0.014572937972843647, -0.02758309431374073, 0.03840535506606102, -0.006231591105461121, 0.010285056196153164, -0.019495699554681778, -0.004544275812804699, 0.017464082688093185, 0.029419362545013428, 0.07681071013212204, -0.052392248064279556, 0.008507391437888145, 0.03209562599658966, -0.006207172758877277, 0.04496903717517853, -0.050673190504312515, 0.0573931522667408, -0.010597611777484417, 0.008746692910790443, 0.019017096608877182, -0.026059381663799286, 0.035983044654130936, -0.03352166339755058, 0.007457397878170013, 0.048172738403081894, -0.02453566901385784, 0.03145097941160202, -0.011134818196296692, -0.034596074372529984, -0.00870762299746275, -0.04172626510262489, -0.03531886264681816, 0.05434572696685791, 0.06255032867193222, 0.04145278036594391, 0.013674338348209858, 0.03822954371571541, 0.039714183658361435, -0.06204242631793022, -0.0007069144630804658, -0.0012892946833744645, -0.00010026830568676814, -0.042429517954587936, 0.03389282524585724, -0.05907314270734787, 0.062315911054611206, -0.0939231663942337, 0.016379904001951218, 0.006475775968283415, 0.0413355715572834, -0.005948337260633707, -0.024984968826174736, -0.07493537664413452, -0.05317363888025284, -0.0034942817874252796, -0.008942040614783764, 0.036451879888772964, 0.019964532926678658, 0.014318985864520073, -0.0048275296576321125, -0.045984845608472824, -0.00359195563942194, -0.0033111432567238808, -0.0027592862024903297, 0.01658501848578453, -0.012990620918571949, -0.010148311965167522, -0.002681147074326873, 0.004422183148562908, -0.007252282928675413, -0.01726873591542244, -0.021117085590958595, 0.03905000165104866, -0.016184555366635323, -0.01694641262292862, -0.04055418074131012, -0.027758905664086342, -0.034771889448165894, 0.030767260119318962, -0.023090096190571785, -0.05653361976146698, -0.05879965424537659, 0.005025319289416075, -0.024477064609527588, 0.03244725242257118, 0.021019410341978073, 0.010939470492303371, -0.012932016514241695, -0.03412724286317825, -0.005953220650553703, 0.01677059940993786, -0.012590158730745316, 0.005596711300313473, -0.025102177634835243, -0.009699013084173203, 0.003872768022119999, 0.04731320962309837, -0.08048325031995773, 0.0017361525679007173, -0.03791698440909386, 0.03399049863219261, 0.0006898215506225824, 0.0019046399975195527, 0.06821541488170624, 0.0010200812248513103, -0.01795245334506035, 0.040788598358631134, -0.021214758977293968, -0.006759029813110828, -0.06083127111196518, -0.02508264221251011, -0.04567229002714157, -0.013635268434882164, 0.0729428231716156, -0.012619460932910442, 0.05665082857012749, -0.038854654878377914, 0.006246242206543684, -0.04965738207101822, -0.08017069101333618, -0.02930215373635292, 0.008072743192315102, 0.07669350504875183, -0.004722530487924814, -0.06692611426115036, 0.04313277080655098, -0.009029947221279144, 0.012512019835412502, -0.0026396356988698244, -0.00489101791754365, -0.06895773112773895, -0.02260172739624977, 0.04387509077787399, 0.004195091780275106, 0.06829354912042618, 0.013322711922228336, 0.03479142487049103, -0.031255628913640976, -0.03785838186740875, -0.031216559931635857, 0.04172626510262489, -0.029927264899015427, -0.02805192768573761, -0.0015810953918844461, -0.04301556199789047, 0.015705954283475876, 0.012707367539405823, -0.006954377517104149, 0.004910552408546209, -0.009493897669017315, 0.0016445833025500178, 0.00006734153430443257, -0.0600498802959919, -0.006221823859959841, 0.04543787240982056, 0.06258939951658249, 0.03611978888511658, 0.036412809044122696, -0.06844983249902725, 0.028325414285063744, 0.014279915951192379, -0.005958104506134987, 0.008678320795297623, 0.03359980136156082, 0.05141551047563553, -0.04262486472725868, 0.09368874877691269, -0.008258323185145855, -0.005752989556640387, -0.006216940004378557, -0.004055906552821398, 0.031079817563295364, -0.024379391223192215, 0.005342759191989899, 0.019651977345347404, 0.02410590462386608, -0.041179291903972626, 0.018421286717057228, -0.02023802138864994, -0.030767260119318962, -0.012297136709094048, 0.05962011590600014, 0.06809820234775543, 0.000253646750934422, 0.026606354862451553, -0.01701478287577629, 0.052001554518938065, -0.036842573434114456, -0.03625652939081192, 0.0015554559649899602, 0.04489089921116829, 0.01007017306983471, 0.0648554340004921, 0.013928290456533432, 0.003992418292909861, -0.05684617534279823, 0.01794268563389778, 0.015442234463989735, -0.008360881358385086, 0.04141370952129364, 0.0595419742166996, -0.0804051086306572, -0.02367614023387432, -0.054150380194187164, -0.06809820234775543, 0.049852728843688965, 0.03287701681256294, 0.03352166339755058, 0.0022318472620099783, 0.016819436103105545, 0.003909395541995764, -0.0073011196218431, 0.005264620296657085, 0.05047784373164177, -0.02766123227775097, 0.02998586930334568, 0.05098574608564377, 0.001001767348498106, 0.06817634403705597, -0.0015798744279891253, -0.01970081403851509, -0.0058701978996396065, -0.04328904673457146, -0.029497500509023666, 0.022777540609240532, -0.008365764282643795, -0.007706466130912304, 0.0059239184483885765, -0.03098214417695999, 0.03998767212033272, -0.049344826489686966, -0.023402653634548187, 0.01506130676716566, -0.03961651027202606, -0.02203521877527237, -0.025766359642148018, -0.07923302054405212, 0.08290556073188782, -0.03977278992533684, 0.05504897981882095, -0.0005176713457331061, 0.07684978097677231 ]
21,123
tfields.core
mirror
Reflect/Mirror the entries meeting <condition> at <coordinate> = 0 Args: coordinate (int): coordinate index Examples: >>> import tfields >>> p = tfields.Tensors([[1., 2., 3.], [4., 5., 6.], [1, 2, -6]]) >>> p.mirror(1) >>> assert p.equal([[1, -2, 3], [4, -5, 6], [1, -2, -6]]) multiple coordinates can be mirrored at the same time i.e. a point mirrorion would be >>> p = tfields.Tensors([[1., 2., 3.], [4., 5., 6.], [1, 2, -6]]) >>> p.mirror([0,2]) >>> assert p.equal([[-1, 2, -3], [-4, 5, -6], [-1, 2., 6.]]) You can give a condition as mask or as str. The mirroring will only be applied to the points meeting the condition. >>> import sympy >>> x, y, z = sympy.symbols('x y z') >>> p.mirror([0, 2], y > 3) >>> p.equal([[-1, 2, -3], [4, 5, 6], [-1, 2, 6]]) True
def mirror(self, coordinate, condition=None): """ Reflect/Mirror the entries meeting <condition> at <coordinate> = 0 Args: coordinate (int): coordinate index Examples: >>> import tfields >>> p = tfields.Tensors([[1., 2., 3.], [4., 5., 6.], [1, 2, -6]]) >>> p.mirror(1) >>> assert p.equal([[1, -2, 3], [4, -5, 6], [1, -2, -6]]) multiple coordinates can be mirrored at the same time i.e. a point mirrorion would be >>> p = tfields.Tensors([[1., 2., 3.], [4., 5., 6.], [1, 2, -6]]) >>> p.mirror([0,2]) >>> assert p.equal([[-1, 2, -3], [-4, 5, -6], [-1, 2., 6.]]) You can give a condition as mask or as str. The mirroring will only be applied to the points meeting the condition. >>> import sympy >>> x, y, z = sympy.symbols('x y z') >>> p.mirror([0, 2], y > 3) >>> p.equal([[-1, 2, -3], [4, 5, 6], [-1, 2, 6]]) True """ if condition is None: condition = np.array([True for i in range(len(self))]) elif isinstance(condition, sympy.Basic): condition = self.evalf(condition) if isinstance(coordinate, (list, tuple)): for coord in coordinate: self.mirror(coord, condition=condition) elif isinstance(coordinate, int): self[:, coordinate][condition] *= -1 else: raise TypeError()
(self, coordinate, condition=None)
[ 0.05215862765908241, 0.026814978569746017, 0.021812457591295242, 0.06102338433265686, 0.0144374193623662, -0.06106016784906387, -0.06955709308385849, 0.0173249039798975, -0.005834740586578846, 0.04631009325385094, -0.03750050812959671, -0.0012161456979811192, -0.00036869445466436446, 0.02839665673673153, -0.0016713382210582495, 0.023798752576112747, -0.006556611508131027, 0.05208506062626839, -0.0066899508237838745, 0.02361483685672283, 0.05392422154545784, -0.018980149179697037, 0.030015118420124054, 0.04623652622103691, -0.001379371271468699, 0.0023092974442988634, -0.028415048494935036, 0.026814978569746017, -0.021260708570480347, -0.007991157472133636, -0.014161544851958752, 0.0052967858500778675, -0.0038967239670455456, 0.018180113285779953, 0.004942747298628092, -0.0027817320078611374, -0.010005040094256401, 0.10181599110364914, -0.02558274008333683, -0.0281759575009346, -0.0021782570984214544, -0.02056182734668255, 0.00594509020447731, 0.034410715103149414, 0.002402405021712184, 0.02245616540312767, -0.0019736504182219505, -0.04461806267499924, -0.0030828947201371193, -0.007673902437090874, -0.018465183675289154, 0.024387285113334656, 0.02453441731631756, -0.02447924204170704, 0.03178071603178978, -0.013140810653567314, 0.035201556980609894, 0.04009372368454933, 0.0019196250941604376, 0.012000530026853085, -0.01875944994390011, 0.022364206612110138, -0.07529527693986893, 0.008234846405684948, 0.04046155884861946, 0.008188867941498756, 0.022548122331500053, 0.026814978569746017, 0.03087952546775341, -0.01255227904766798, -0.08070241659879684, 0.022548122331500053, 0.025288473814725876, -0.06006702035665512, 0.03253477066755295, -0.0128189567476511, -0.00399327976629138, 0.032185330986976624, 0.02983120270073414, -0.02527008205652237, -0.055321983993053436, -0.01698465831577778, -0.0045243375934660435, 0.013416685163974762, -0.08923612534999847, -0.00025518369511701167, 0.013012069277465343, 0.0021598655730485916, 0.026870151981711388, -0.04862743616104126, -0.06139121949672699, -0.024810291826725006, -0.05142296105623245, -0.007894601672887802, -0.04792855307459831, 0.031394489109516144, 0.0028575975447893143, -0.04583191126585007, 0.006827888078987598, 0.04906883463263512, 0.01896175742149353, 0.03051169216632843, -0.03378539904952049, -0.01912728138267994, 0.011825810186564922, -0.006243953946977854, -0.0529678575694561, 0.018299659714102745, -0.037849947810173035, -0.020800918340682983, -0.03727980703115463, 0.06378212571144104, -0.0552116334438324, -0.03135770559310913, -0.03003351017832756, 0.007632520981132984, 0.018492771312594414, -0.02674141153693199, -0.03921092674136162, -0.011963746510446072, 0.05900030955672264, 0.0061795832589268684, -0.02499420754611492, -0.0045220390893518925, -0.022437773644924164, 0.03431875631213188, 0.0380338653922081, 0.03288421034812927, -0.022897563874721527, -0.05234254151582718, -0.053262121975421906, -0.042926035821437836, -0.013674166984856129, 0.08857402950525284, 0.020267562940716743, 0.021150359883904457, -0.001337990164756775, -0.048222821205854416, -0.07731835544109344, 0.001236836309544742, -0.015917943790555, -0.03194623813033104, 0.07029276341199875, 0.051239047199487686, 0.0031886466313153505, -0.059294573962688446, -0.008961315266788006, 0.021003227680921555, 0.026244837790727615, 0.031173791736364365, -0.002210442442446947, 0.06245793029665947, 0.0622740164399147, -0.01986294612288475, -0.08180591464042664, 0.07378716766834259, 0.0366361029446125, -0.05282072350382805, -0.0005362305673770607, 0.04947344958782196, -0.02298952080309391, -0.04539051279425621, -0.00022457889281213284, 0.04185932129621506, 0.00579795753583312, -0.04413988068699837, -0.007940581068396568, -0.07389751821756363, -0.002641496015712619, 0.00566921615973115, 0.051349394023418427, -0.02859896421432495, 0.0321117639541626, 0.0024070029612630606, 0.009821123443543911, 0.015605286695063114, -0.043146733194589615, 0.007264688611030579, 0.03891666233539581, -0.052305757999420166, -0.01173385139554739, -0.002169061452150345, -0.02918749675154686, -0.014823643490672112, 0.027881691232323647, -0.011191299185156822, -0.015402979217469692, -0.010979795828461647, 0.033454351127147675, 0.024276934564113617, -0.03332560881972313, -0.04770785570144653, 0.032387636601924896, -0.01363738439977169, -0.0001906693505588919, -0.026520712301135063, -0.010106193833053112, 0.0008460144163109362, 0.05318855866789818, 0.07007206231355667, -0.020745744928717613, -0.03788673132658005, 0.04962058365345001, 0.06823290139436722, -0.023909103125333786, 0.018695078790187836, 0.024037843570113182, 0.04358813166618347, 0.010032626800239086, -0.028065606951713562, 0.06683513522148132, -0.0066899508237838745, 0.002836907049641013, -0.012405145913362503, -0.004510544240474701, 0.025766655802726746, -0.004103629384189844, 0.020304344594478607, 0.06400282680988312, 0.032681904733181, -0.0032323268242180347, 0.001852955436334014, -0.07731835544109344, -0.0002796100452542305, 0.04307316616177559, 0.015982314944267273, -0.015669656917452812, -0.03628665953874588, -0.028304697945713997, -0.055910516530275345, -0.0051726424135267735, 0.01791343465447426, -0.04623652622103691, -0.031081832945346832, 0.11682355403900146, -0.11939837783575058, -0.010795879177749157, -0.0207089614123106, -0.00815668236464262, 0.015081126242876053, -0.00043277774238958955, 0.0109889917075634, 0.03759246692061424, 0.007609531749039888, 0.031339313834905624, -0.05223219096660614, -0.028415048494935036, 0.06462813913822174, -0.009922277182340622, -0.04046155884861946, -0.053629957139492035, -0.016901895403862, -0.04344100132584572, -0.0016173127805814147, 0.06473848968744278, 0.006225562188774347, 0.033233653753995895, -0.017738714814186096, 0.01612025313079357, 0.006069233641028404, -0.011209690943360329, -0.08533710241317749, -0.006860073190182447, -0.09122242033481598, 0.024276934564113617, -0.049657367169857025, -0.07569989562034607, 0.05598408356308937, 0.07161695510149002, 0.009499270468950272, 0.004089836031198502, 0.032976169139146805, -0.05197471007704735, 0.01681913435459137, 0.004220875911414623, 0.04631009325385094, 0.06444422900676727, 0.0003204164677299559, 0.011926963925361633, -0.03698554262518883, -0.008358989842236042, -0.01668119616806507, -0.049878064543008804, 0.0374637246131897, -0.03910057991743088, -0.00026064369012601674, 0.018980149179697037, 0.024019451811909676, 0.042778901755809784, -0.008473937399685383, 0.06466492265462875, 0.07878968864679337, 0.04689862206578255, -0.02839665673673153, -0.011356823146343231, -0.021058401092886925, -0.05226897448301315, 0.0013287942856550217, 0.022640081122517586, -0.021279100328683853, 0.0021460717543959618, -0.03406127542257309, -0.0072095138020813465, 0.0014586851466447115, -0.0019747999031096697, -0.0028116183821111917, 0.020948052406311035, 0.04792855307459831, 0.030107077211141586, 0.0018426101887598634, 0.10321375727653503, 0.016065077856183052, -0.04678827524185181, 0.006671559065580368, 0.0662098228931427, -0.009301559999585152, 0.008060126565396786, 0.011366019025444984, 0.006616384256631136, 0.05837499350309372, 0.021371059119701385, -0.022235464304685593, -0.02368840202689171, 0.0706973746418953, -0.03840169683098793, -0.02405623532831669, 0.029812810942530632, -0.045795127749443054, -0.021150359883904457, 0.04274211823940277, 0.03338078409433365, 0.05355639010667801, -0.03185427933931351, 0.0366361029446125, -0.036893583834171295, -0.03426358103752136, -0.021371059119701385, -0.0008931428892537951, 0.006708342581987381, 0.062163665890693665, 0.017150182276964188, -0.002190901432186365, -0.04825960472226143, 0.0030208230018615723, 0.031339313834905624, 0.03571651875972748, 0.0034093460999429226, 0.04119722172617912, 0.03426358103752136, 0.04984128102660179, 0.013379901647567749, 0.07386073470115662, -0.03770281374454498, -0.0366361029446125, 0.0035426851827651262, 0.03899022936820984, 0.008837171830236912, -0.04406631365418434, -0.07592059671878815, 0.01642371341586113, 0.02992316149175167, -0.03924771025776863, 0.023872319608926773, -0.012635041028261185, -0.04413988068699837, -0.007223307620733976, -0.07511136680841446, 0.01600070670247078, 0.0260609220713377, 0.010841858573257923, -0.04101330786943436, -0.03654414415359497, 0.012938502244651318, 0.0194399394094944, -0.023265395313501358, 0.013545425608754158, -0.02425854280591011, -0.012929307296872139, 0.003384057665243745, -0.02315504662692547, 0.030916308984160423, -0.05877960845828056, 0.01777549833059311, 0.0033955522812902927, -0.0622740164399147, 0.06297289580106735, 0.03512798994779587, 0.015191475860774517, -0.002094345400109887, 0.00847853533923626, -0.013085635378956795, -0.017987001687288284, -0.00012227552360855043, -0.044581279158592224, -0.015844378620386124, 0.00013298001431394368, -0.0153570007532835, 0.044470928609371185, -0.028157565742731094, -0.09968256205320358, -0.004993324168026447, -0.002935761818662286, -0.03152323141694069, 0.02589539624750614, -0.019568679854273796, -0.011145319789648056, 0.009784339927136898, 0.04116043820977211, -0.014216720126569271, -0.01552252471446991, 0.06495919078588486, 0.01783067360520363, 0.012451124377548695, -0.0013368406798690557, 0.05716114491224289, 0.007122153881937265, 0.04079260677099228, -0.02664945274591446, 0.015081126242876053, 0.027403509244322777, 0.044581279158592224, -0.01348105538636446, 0.007103762123733759, -0.01862151175737381, -0.009232591837644577, 0.030382951721549034, 0.0062347580678761005, 0.04020407423377037, -0.058926742523908615, 0.050135549157857895, -0.03932127729058266, -0.0667615681886673, 0.0219779834151268, 0.012763782404363155, 0.019770989194512367, 0.007945179007947445, 0.060250937938690186, -0.006349705625325441, -0.024037843570113182, -0.017113400623202324, 0.05539555102586746, -0.003839250188320875, -0.005986471194773912, -0.07316185534000397, -0.08298297971487045, 0.05355639010667801, 0.0011161412112414837, -0.05524841696023941, -0.03246120363473892, 0.021996373310685158, -0.010216543450951576, 0.05175400897860527, 0.005986471194773912, 0.02192280814051628, -0.009411909617483616, -0.007126751821488142, -0.09710773825645447, -0.0757734626531601, -0.006510632578283548, -0.0027357530780136585, -0.001778239500708878, -0.06102338433265686, -0.02076413668692112, -0.027201201766729355, 0.01475007738918066, -0.008970511145889759, -0.028139173984527588, -0.0478917695581913, 0.005811750888824463, -0.06319359689950943, 0.04561121016740799, -0.06911569833755493, -0.005030107218772173, 0.021812457591295242, 0.008575091138482094, 0.043882399797439575, 0.0035518810618668795, 0.01572483219206333, -0.004804810043424368, -0.021646933630108833, -0.12682859599590302, -0.0018219195771962404, -0.02637357823550701, -0.034668199717998505, 0.032222114503383636, -0.030530083924531937, -0.012938502244651318, -0.013333922252058983, 0.04840673506259918, -0.030438126996159554, 0.014290286228060722, 0.06723975390195847, 0.0628257617354393, 0.0024529818911105394, 0.0324060283601284, 0.025545956566929817, -0.04524337872862816, 0.017196161672472954, 0.039284493774175644, -0.011246473528444767, 0.007715283427387476, -0.0016816834686324, -0.012313188053667545, -0.02059861086308956, 0.006197975017130375, 0.032222114503383636, 0.035569388419389725, -0.014290286228060722, -0.00905787106603384, 0.01536619570106268, 0.027035677805542946, 0.0035082008689641953, 0.014961580745875835, 0.017232945188879967, -0.01785825937986374, 0.015384587459266186, -0.0269069354981184, 0.030419735237956047, -0.03865917772054672, -0.024699941277503967, 0.024184975773096085, 0.01019815169274807, -0.020580219104886055, 0.012202838435769081, -0.024019451811909676, 0.03406127542257309, 0.01363738439977169, -0.059515271335840225, 0.01949511468410492, -0.011099341325461864, -0.053740303963422775, -0.017545603215694427, 0.0002576263213995844, 0.04270533472299576, 0.04093974083662033, 0.08673486858606339, -0.007637118920683861, 0.006469251122325659, 0.0032760067842900753, 0.027734559029340744, -0.006142800208181143, -0.023026304319500923, -0.05245289206504822, -0.05616799741983414, -0.024350501596927643, -0.026336796581745148, -0.024111410602927208, -0.047744639217853546, -0.016497280448675156, -0.019476722925901413, -0.011972942389547825, -0.03902701288461685, 0.01738007739186287, -0.010207347571849823, 0.025619523599743843, 0.04686184227466583, 0.006947433575987816, -0.006032450590282679, -0.009701577946543694, 0.02924267202615738, 0.006818692199885845, -0.023706793785095215, 0.0907074585556984, 0.011430390179157257, 0.023909103125333786, -0.00002094201772706583, 0.0219779834151268, -0.033454351127147675, 0.0650695413351059, 0.02902197279036045, 0.07356646656990051, 0.016414517536759377, 0.021886024624109268, 0.034245193004608154, 0.010152172297239304, 0.002023077802732587, 0.07404465228319168, -0.08658773452043533, 0.008161280304193497, -0.03884309530258179, -0.018410008400678635, -0.05955205485224724, 0.004938149359077215, -0.02712763473391533, -0.033288825303316116, 0.009136036038398743, 0.01639612577855587, 0.0673501044511795, 0.0512758269906044, -0.006294530816376209, -0.0222538560628891, 0.03141288086771965, -0.020193995907902718, 0.013674166984856129, -0.028304697945713997, -0.03781316429376602, -0.030327776446938515, -0.03619470074772835, 0.07724478840827942, 0.023817144334316254, -0.03555099666118622, 0.015917943790555, -0.02321022003889084, -0.0103544807061553, -0.046530790627002716, -0.05524841696023941, -0.07356646656990051, -0.0019725009333342314, -0.010474026203155518, 0.0011977540561929345, 0.04024085775017738, -0.00001100982535717776, 0.023449311032891273, -0.009765949100255966, 0.012193642556667328, -0.013582209125161171, -0.02065378613770008, 0.04454449564218521, -0.00626234570518136, 0.013692558743059635, 0.007586542051285505, 0.036525752395391464, -0.01571563631296158, -0.017205357551574707, -0.08246801048517227, -0.002607011701911688, 0.03192784637212753, -0.04756072163581848, 0.011963746510446072, 0.03236924484372139, -0.007306070066988468, 0.04384561628103256, -0.022548122331500053, 0.02823113277554512, -0.06738688796758652, -0.04899526759982109, -0.026336796581745148, 0.01740766502916813, 0.020635394379496574, 0.022437773644924164, 0.02845183201134205, 0.0013000573962926865, 0.08048171550035477, -0.02986798621714115, 0.03247959539294243, -0.03529351204633713, 0.05756575986742973, 0.0006120959878899157, -0.04513302817940712, 0.02203315682709217, -0.08335080742835999, 0.044360581785440445, -0.007241699378937483, 0.061795834451913834, 0.023486094549298286, 0.003062204224988818, -0.058448560535907745, 0.0214078426361084, 0.05936814099550247, -0.025196515023708344, -0.010455634444952011, -0.003742694156244397, -0.0183088555932045, -0.014906405471265316, 0.02304469607770443, -0.006947433575987816, 0.017288120463490486, 0.0020012378226965666, -0.021150359883904457, 0.021371059119701385, 0.041822537779808044, -0.031008265912532806, 0.024276934564113617, 0.009425703436136246, 0.10314019024372101, -0.13514159619808197, 0.01645130105316639, 0.013278747908771038, -0.01907210610806942, -0.0269069354981184, 0.019164064899086952, -0.031799107789993286, 0.014510986395180225, -0.009122242219746113, -0.013784516602754593, 0.050503380596637726, 0.023283787071704865, 0.010446438565850258, -0.05649904906749725, -0.02039630338549614, 0.01411556638777256, 0.014198328368365765, 0.05039303004741669, 0.002448383951559663, -0.011274061165750027, -0.01249710377305746, -0.0859256386756897, 0.021223926916718483, 0.08202661573886871, 0.020046861842274666, 0.02727476879954338, 0.006207170896232128, -0.026502320542931557, 0.024607984349131584, -0.03316008672118187, -0.03957876190543175, -0.04840673506259918, -0.016460496932268143, 0.008786595426499844, -0.020433086901903152, 0.010759095661342144, 0.05576338246464729, 0.015936335548758507, -0.032553162425756454, 0.026575887575745583, 0.004510544240474701, -0.03487050533294678, 0.02050665393471718, 0.02764260023832321, -0.011825810186564922, 0.0013058048207312822, -0.05087121203541756, 0.014124762266874313, 0.009347539395093918, 0.0025771253276616335, -0.01226720865815878, -0.009425703436136246, 0.0019529598066583276, -0.05752898007631302, -0.011871788650751114, 0.01239595003426075, 0.040866173803806305, 0.03770281374454498, -0.0022955036256462336, 0.048553869128227234, 0.0163409523665905, 0.0007201467524282634, -0.026410361751914024, -0.056535832583904266, 0.06319359689950943, 0.011099341325461864, -0.021812457591295242, 0.00849232915788889, -0.006666961126029491, 0.028415048494935036, 0.02330217882990837, -0.05863247439265251, 0.03194623813033104, -0.011007382534444332, -0.0260609220713377, 0.029849594458937645, 0.004630089737474918, -0.009867102839052677, -0.06389247626066208, 0.005738184321671724, -0.008322206325829029, 0.04722967371344566, 0.01398682501167059, -0.00020805516396649182, -0.03224050626158714, -0.04899526759982109, -0.010207347571849823, -0.027624208480119705, 0.04491233080625534, -0.04825960472226143, 0.022584905847907066, 0.005710597150027752, 0.025968963280320168 ]
21,124
tfields.core
moment
Returns: Moments of the distribution. Args: moment (int): n-th moment Examples: >>> import tfields Skalars >>> t = tfields.Tensors(range(1, 6)) >>> assert t.moment(1) == 0 >>> assert t.moment(1, weights=[-2, -1, 20, 1, 2]) == 0.5 >>> assert t.moment(2, weights=[0.25, 1, 17.5, 1, 0.25]) == 0.2 Vectors >>> t = tfields.Tensors(list(zip(range(1, 6), range(1, 6)))) >>> assert tfields.Tensors([0.5, 0.5]).equal( ... t.moment(1, weights=[-2, -1, 20, 1, 2])) >>> assert tfields.Tensors([1. , 0.5]).equal( ... t.moment(1, weights=list(zip([-2, -1, 10, 1, 2], ... [-2, -1, 20, 1, 2]))))
def moment(self, moment, weights=None): """ Returns: Moments of the distribution. Args: moment (int): n-th moment Examples: >>> import tfields Skalars >>> t = tfields.Tensors(range(1, 6)) >>> assert t.moment(1) == 0 >>> assert t.moment(1, weights=[-2, -1, 20, 1, 2]) == 0.5 >>> assert t.moment(2, weights=[0.25, 1, 17.5, 1, 0.25]) == 0.2 Vectors >>> t = tfields.Tensors(list(zip(range(1, 6), range(1, 6)))) >>> assert tfields.Tensors([0.5, 0.5]).equal( ... t.moment(1, weights=[-2, -1, 20, 1, 2])) >>> assert tfields.Tensors([1. , 0.5]).equal( ... t.moment(1, weights=list(zip([-2, -1, 10, 1, 2], ... [-2, -1, 20, 1, 2])))) """ array = tfields.lib.stats.moment(self, moment, weights=weights) if self.rank == 0: # scalar array = [array] return Tensors(array, coord_sys=self.coord_sys)
(self, moment, weights=None)
[ 0.07311078161001205, 0.011982849799096584, 0.007644387427717447, -0.02650175243616104, 0.02318676747381687, -0.008654280565679073, -0.016094878315925598, 0.04659091308712959, 0.013930175453424454, 0.10267391055822372, -0.037135057151317596, 0.058800194412469864, -0.010714823380112648, -0.018947936594486237, -0.025161266326904297, 0.058437902480363846, -0.004804914351552725, 0.054054152220487595, -0.04648222401738167, 0.0318455770611763, -0.00019374197290744632, -0.03717128932476044, -0.026827815920114517, 0.06271295994520187, -0.003260639263316989, 0.00563366012647748, -0.010524619370698929, -0.028621166944503784, -0.0208680909126997, -0.025704706087708473, 0.007128119934350252, -0.05485120043158531, 0.0022122531663626432, 0.003054585075005889, 0.00579216331243515, -0.028385676443576813, -0.01675606332719326, 0.04608370363712311, -0.14549696445465088, 0.014220010489225388, 0.07521207630634308, -0.044960591942071915, 0.005823864135891199, 0.0384393148124218, 0.002714934991672635, 0.022444067522883415, 0.07803796976804733, 0.0038901239167898893, -0.0454678051173687, -0.013124072924256325, 0.01590467430651188, -0.01860375888645649, 0.032769422978162766, -0.03534170612692833, -0.06264050304889679, 0.07079210132360458, 0.02211800403892994, 0.0339287631213665, -0.012227397412061691, 0.031755004078149796, -0.007123590912669897, 0.008409732021391392, 0.015053284354507923, 0.0016303196316584945, 0.005420812871307135, 0.017263272777199745, -0.0004704151360783726, 0.003813136601820588, 0.002307355171069503, 0.036899566650390625, -0.01882113516330719, -0.01590467430651188, 0.021339071914553642, 0.005108335055410862, -0.0018227879190817475, 0.032968685030937195, -0.007938751019537449, 0.024454794824123383, 0.0010755581315606833, 0.01883924938738346, -0.03574023023247719, 0.014238124713301659, 0.000423147197579965, -0.029907308518886566, 0.015587667003273964, -0.036066293716430664, -0.04543157294392586, 0.014537016861140728, -0.04032323881983757, -0.028295103460550308, -0.0718427523970604, -0.016022419556975365, -0.0012770837638527155, 0.025813395157456398, -0.01044310349971056, 0.012218340300023556, -0.02526995539665222, -0.02874797023832798, -0.00444941408932209, 0.030142799019813538, -0.01612205058336258, 0.02521561086177826, -0.003138365224003792, 0.03356647118926048, 0.026809701696038246, 0.002522466704249382, -0.039598651230335236, -0.06789375841617584, -0.005710647441446781, 0.015152915380895138, -0.08158843964338303, 0.05680758133530617, 0.01260780543088913, -0.03438162803649902, 0.023005621507763863, -0.02501634880900383, 0.047424186021089554, 0.049924008548259735, -0.03869291767477989, 0.027425600215792656, 0.03528736159205437, 0.04586632549762726, 0.005044933408498764, -0.013341449201107025, -0.002690027467906475, 0.004225245211273432, 0.05079351365566254, -0.05872773751616478, -0.016384711489081383, 0.003215352538973093, -0.06340131908655167, -0.03760603815317154, 0.05155432969331741, 0.035450395196676254, -0.03530547767877579, 0.01498082559555769, 0.002762485994026065, -0.034001223742961884, -0.0037225631531327963, 0.01692815311253071, -0.0014684197958558798, 0.04032323881983757, 0.03331286460161209, -0.01437398511916399, -0.05372808873653412, 0.00785723514854908, 0.009464911185204983, 0.04470698907971382, 0.014600418508052826, -0.0038901239167898893, -0.04492436349391937, -0.002570017706602812, 0.06691556423902512, 0.05104712024331093, -0.033838190138339996, -0.02112169750034809, 0.01249911729246378, -0.03804079070687294, -0.017915401607751846, 0.04651845246553421, -0.011176747269928455, 0.05021384358406067, 0.0047052837908267975, -0.00449696509167552, -0.018984166905283928, 0.06383606791496277, 0.012788952328264713, -0.011629613116383553, -0.08006680756807327, 0.01674700528383255, 0.022009314969182014, 0.02892911620438099, 0.013160302303731441, -0.01488119550049305, 0.027153879404067993, 0.04090290889143944, 0.01672889105975628, 0.00918866228312254, 0.03829439729452133, 0.028693625703454018, -0.0020356352906674147, -0.014464558102190495, -0.04325781390070915, -0.0575321689248085, 0.010751052759587765, 0.04246076941490173, -0.009464911185204983, -0.02025219239294529, -0.021375302225351334, 0.0009634736343286932, 0.044960591942071915, 0.044127319008111954, 0.031139105558395386, 0.015642011538147926, 0.017924459651112556, 0.03577645868062973, -0.010551790706813335, -0.023875124752521515, -0.013975461944937706, 0.02148398943245411, 0.03534170612692833, -0.04151880741119385, 0.03374761715531349, -0.014147551730275154, 0.05477873980998993, 0.015171029604971409, -0.005982367321848869, 0.003588967490941286, -0.046011243015527725, -0.03782341629266739, 0.006670724600553513, -0.005407226737588644, -0.015035170130431652, 0.054271530359983444, 0.0029368395917117596, -0.053474485874176025, 0.019129084423184395, -0.025306183844804764, 0.020179733633995056, -0.02749805711209774, 0.019962359219789505, -0.026592325419187546, -0.0008525213343091309, 0.008219528011977673, 0.013585996814072132, 0.014410214498639107, -0.011466581374406815, -0.032153524458408356, -0.05307596176862717, -0.027171993628144264, 0.02978050522506237, -0.02025219239294529, -0.05169924721121788, -0.04405485838651657, 0.03490695357322693, -0.014392099343240261, 0.005008704029023647, -0.001566918333992362, 0.058401674032211304, 0.03374761715531349, -0.008944114670157433, -0.0233860295265913, 0.011837932281196117, 0.02005293220281601, 0.02686404436826706, -0.016638318076729774, -0.003806343534961343, -0.009990236721932888, -0.040214549750089645, -0.00026025675470009446, -0.06398098915815353, -0.0018465634202584624, 0.05441644787788391, -0.009410567581653595, 0.03789587318897247, -0.024654055014252663, 0.017824828624725342, 0.0322803296148777, 0.007123590912669897, -0.04202601686120033, 0.00501776160672307, -0.08970381319522858, -0.03432728722691536, 0.07042980939149857, -0.03247959166765213, -0.007245865184813738, -0.01760745234787464, 0.03057754971086979, -0.02981673553586006, 0.02025219239294529, -0.03146516904234886, 0.04343895986676216, -0.03782341629266739, -0.0997031033039093, 0.0397435687482357, -0.06662572920322418, 0.04572140797972679, -0.035251133143901825, -0.05072105675935745, 0.010923141613602638, -0.07303831726312637, -0.05445267632603645, 0.00889882817864418, 0.013395792804658413, -0.025342412292957306, 0.05644528940320015, 0.0034825438633561134, -0.038149479776620865, 0.03764227032661438, -0.0105427335947752, 0.036084409803152084, -0.005044933408498764, -0.012462887912988663, -0.014437385834753513, 0.0001536915951874107, -0.032787539064884186, -0.042931750416755676, 0.0021182834170758724, -0.004164108075201511, -0.014319640584290028, 0.02981673553586006, -0.0024794444907456636, 0.013912061229348183, 0.03302302956581116, -0.024364221841096878, -0.00046871689846739173, 0.03434539958834648, -0.004571687895804644, 0.05503234639763832, 0.01538840588182211, 0.009455854073166847, -0.011294492520391941, -0.044743217527866364, 0.026012655347585678, 0.031573858112096786, 0.02896534651517868, -0.009052802808582783, 0.008264814503490925, 0.0334940105676651, 0.07108193635940552, 0.03063189424574375, 0.03695391118526459, 0.05564824491739273, 0.06300279498100281, -0.05557578429579735, -0.039381276816129684, -0.04035946726799011, -0.026320604607462883, -0.016683604568243027, 0.03916390240192413, 0.007295680232346058, -0.04528665542602539, 0.04115651547908783, 0.043728794902563095, -0.0024183073546737432, 0.025360528379678726, 0.044779445976018906, -0.025505445897579193, 0.026429293677210808, -0.011765473522245884, 0.03680899366736412, -0.03137459605932236, -0.011837932281196117, 0.05825675651431084, 0.009252063930034637, -0.001374450046569109, 0.057133644819259644, 0.025360528379678726, 0.06836473941802979, -0.0018612815765663981, -0.03818570822477341, 0.06144493445754051, -0.02229915000498295, 0.045141737908124924, -0.02025219239294529, 0.04202601686120033, -0.0011168821947649121, -0.033838190138339996, -0.03988848626613617, 0.021647021174430847, -0.08463170379400253, 0.03699013963341713, 0.025559788569808006, -0.045141737908124924, 0.0006498635048046708, 0.011412237770855427, 0.02046956866979599, 0.018332038074731827, 0.05300350487232208, -0.018033146858215332, 0.014890252612531185, 0.007553814444690943, -0.04717058315873146, 0.0691617801785469, -0.010723880492150784, -0.00920224841684103, -0.0401783213019371, -0.007177934981882572, 0.008305572904646397, -0.04383748397231102, 0.04535911604762077, -0.04753287509083748, 0.021393416449427605, 0.012037193402647972, 0.021248498931527138, 0.0322803296148777, 0.08195073157548904, -0.0213028434664011, -0.08267532289028168, -0.006670724600553513, -0.02650175243616104, -0.04151880741119385, -0.033838190138339996, -0.005053990986198187, -0.06470557302236557, 0.02318676747381687, 0.034635234624147415, -0.007612687069922686, -0.03637424111366272, -0.04285929352045059, 0.018504127860069275, -0.03613875061273575, -0.07963205873966217, 0.05586561933159828, -0.07521207630634308, -0.030360175296664238, -0.025940196588635445, 0.03923635929822922, 0.013368621468544006, 0.019944243133068085, -0.007481355685740709, 0.026157572865486145, 0.018449783325195312, 0.007286623120307922, 0.04659091308712959, 0.009546427056193352, -0.05122826620936394, -0.04756910353899002, 0.011529983021318913, -0.003885595127940178, 0.034037452191114426, 0.002590396674349904, 0.03126590698957443, 0.026719126850366592, 0.0553584098815918, -0.026574209332466125, -0.0029119320679455996, -0.04691697657108307, -0.014129436574876308, 0.010307243093848228, -0.005457042250782251, 0.004139200318604708, -0.05046745017170906, -0.067857526242733, 0.031175334006547928, -0.02686404436826706, -0.029508786275982857, -0.014998940750956535, -0.0007789304945617914, -0.009401509538292885, 0.01717269979417324, 0.04401862993836403, 0.01672889105975628, -0.08600842207670212, -0.057133644819259644, -0.028403790667653084, 0.02624814584851265, -0.042678143829107285, -0.005552144255489111, -0.06119133159518242, -0.0192196574062109, 0.005185322370380163, 0.05021384358406067, 0.024074386805295944, 0.059850845485925674, -0.012843295931816101, 0.006145399529486895, -0.07082833349704742, 0.0003249317524023354, -0.006838285364210606, -0.01699155382812023, -0.005058519542217255, -0.011856046505272388, -0.05586561933159828, -0.04057684540748596, -0.030052226036787033, 0.07263980060815811, -0.05992330238223076, 0.015859387814998627, 0.014718163758516312, 0.11209353059530258, 0.027787892147898674, 0.012807066552340984, -0.04988778010010719, 0.028657397255301476, 0.0013801108580082655, -0.02459971234202385, -0.04941679909825325, 0.016674546524882317, -0.03043263405561447, -0.01107711624354124, -0.02670101262629032, 0.035015642642974854, -0.02273390255868435, -0.0401783213019371, 0.034001223742961884, -0.03264262154698372, -0.049090735614299774, 0.09941326826810837, -0.06198837608098984, -0.02356717549264431, 0.05981461703777313, 0.10267391055822372, -0.00512644974514842, -0.021665137261152267, 0.009446796961128712, 0.009646058082580566, 0.022824475541710854, 0.07673370838165283, 0.04014209285378456, -0.001883924938738346, 0.03166443109512329, -0.04945302754640579, -0.02849436365067959, -0.018313923850655556, -0.017091184854507446, -0.011294492520391941, -0.027353141456842422, -0.030106568709015846, 0.004583009518682957, 0.017743311822414398, -0.002445479389280081, -0.031519513577222824, 0.04238831251859665, -0.037750955671072006, -0.03684522211551666, -0.04358387738466263, 0.025088807567954063, 0.016022419556975365, -0.014863080345094204, 0.012399486266076565, 0.03327663615345955, -0.0351424440741539, 0.009564542211592197, -0.034236714243888855, -0.011629613116383553, -0.10774601250886917, -0.06651704013347626, 0.04314912483096123, 0.05300350487232208, 0.025704706087708473, -0.021157925948500633, -0.012571576051414013, 0.019292116165161133, -0.018286751583218575, -0.03807701915502548, 0.0171364713460207, -0.025922082364559174, -0.03077681176364422, 0.027570515871047974, -0.030885500833392143, -0.0865156278014183, -0.005909908562898636, 0.005484214052557945, 0.042062245309352875, -0.006122755818068981, 0.02106735296547413, -0.026954617351293564, 0.038330625742673874, 0.004931716714054346, 0.01755310781300068, -0.058800194412469864, -0.025722820311784744, 0.03510621562600136, -0.023241112008690834, -0.013930175453424454, -0.05191662162542343, -0.03642858564853668, 0.00970945879817009, -0.007268508430570364, -0.006598265841603279, -0.035251133143901825, 0.06651704013347626, 0.06869079917669296, -0.05974215641617775, 0.038330625742673874, -0.0011638670694082975, 0.007553814444690943, -0.009079975076019764, 0.05495988577604294, 0.003262903541326523, 0.04445338249206543, 0.03599383309483528, -0.009143375791609287, 0.035649657249450684, 0.03622932359576225, -0.0012238719500601292, -0.04651845246553421, 0.008047439157962799, -0.03164631500840187, -0.023259226232767105, -0.03374761715531349, 0.019165312871336937, -0.025487329810857773, 0.013151245191693306, 0.05640906095504761, -0.047677792608737946, 0.018476955592632294, 0.024128731340169907, 0.05698872730135918, 0.032533932477235794, 0.022226691246032715, 0.020614486187696457, 0.047858938574790955, 0.020324651151895523, -0.044743217527866364, -0.07796550542116165, -0.031555742025375366, 0.0007732696831226349, 0.04358387738466263, -0.026737242937088013, 0.05970592796802521, -0.02650175243616104, -0.006231443956494331, -0.001101597910746932, -0.03988848626613617, -0.022788245230913162, -0.0459025539457798, 0.019382689148187637, -0.013776200823485851, -0.02235349453985691, -0.02586773782968521, -0.009754746221005917, 0.03865668922662735, 0.08513891696929932, 0.0005547615583054721, -0.02628437615931034, 0.020560141652822495, 0.016049591824412346, 0.0036387827713042498, 0.013395792804658413, -0.030305830761790276, -0.0007059057825244963, -0.049344342201948166, -0.0023526418954133987, -0.04314912483096123, 0.002222442766651511, -0.07716846466064453, -0.0048592584207654, -0.033403437584638596, -0.0002789375139400363, -0.025143152102828026, -0.01696438156068325, -0.06271295994520187, -0.03179123252630234, 0.009917777962982655, -0.0035459452774375677, -0.07615403831005096, 0.02728068269789219, 0.03285999968647957, -0.01426529698073864, 0.08144352585077286, 0.018504127860069275, -0.025505445897579193, 0.005959724076092243, -0.001569182612001896, -0.03651915863156319, -0.004150521941483021, 0.0003223843814339489, 0.029037803411483765, -0.025903968140482903, 0.017698025330901146, -0.009582656435668468, 0.03764227032661438, 0.03164631500840187, -0.023295456543564796, -0.04112028330564499, 0.017743311822414398, 0.04488813504576683, 0.007997623644769192, -0.012508174404501915, 0.007621744181960821, 0.012209282256662846, 0.01418378110975027, -0.0004961719387210906, -0.014066035859286785, -0.06818359345197678, 0.027008961886167526, 0.014192838221788406, -0.022081773728132248, 0.0005222117761150002, 0.01779765635728836, 0.06408967822790146, -0.02773354947566986, 0.003339890856295824, 0.05999576300382614, 0.025577904656529427, 0.07492224127054214, 0.0018975109560415149, 0.026103228330612183, 0.1005726084113121, 0.04688074812293053, 0.00440186308696866, 0.01674700528383255, -0.027969039976596832, -0.03099418804049492, -0.04488813504576683, 0.06383606791496277, -0.047025665640830994, -0.008414261043071747, -0.017462534829974174, -0.028621166944503784, 0.05133695527911186, 0.016855694353580475, 0.025740936398506165, 0.04927188158035278, -0.06535769999027252, 0.04659091308712959, 0.012734607793390751, 0.022607099264860153, 0.016855694353580475, 0.00981814693659544, -0.04999646916985512, 0.009881548583507538, 0.04401862993836403, -0.060104452073574066, 0.011194861494004726, 0.01923777163028717, 0.0034916012082248926, 0.003077228320762515, 0.00962794292718172, 0.06014068052172661, 0.056119225919246674, 0.02876608446240425, 0.057206105440855026, 0.04068553075194359, 0.011339779011905193, 0.04760533198714256, 0.02271578647196293, -0.028566822409629822, -0.019563835114240646, -0.03804079070687294, 0.07090079039335251, 0.03209918364882469, 0.009700401686131954, -0.01252628955990076, 0.037352435290813446, 0.025179380550980568, -0.024128731340169907, -0.07369044423103333, 0.004718869458884001, -0.03996094688773155, -0.019473262131214142, -0.028077727183699608, 0.004080327693372965, -0.00970945879817009, 0.04336650297045708, 0.039562422782182693, -0.0359213761985302, 0.043475192040205, -0.09484837204217911, 0.02028842270374298, 0.002488501835614443, 0.029200837016105652, 0.044743217527866364, -0.05144564062356949, -0.031320251524448395, -0.053039733320474625, 0.009664172306656837, -0.0105427335947752, 0.05351071432232857, -0.0467720590531826, -0.00687904329970479, -0.014754393137991428, 0.036664076149463654, -0.03785964474081993, 0.022262919694185257, -0.03804079070687294, -0.017435362562537193, -0.06651704013347626, -0.024074386805295944, -0.02418307401239872, 0.02313242480158806, 0.024708399549126625, -0.08383465558290482, 0.030142799019813538, -0.006362775340676308, 0.03807701915502548 ]
21,125
tfields.mesh_3d
nfaces
null
def nfaces(self): return self.faces.shape[0]
(self)
[ -0.023171767592430115, -0.03987213969230652, -0.023467503488063812, 0.02028399519622326, -0.01501293946057558, 0.06165220960974693, 0.023641465231776237, 0.016735166311264038, -0.0026920654345303774, 0.03715832903981209, 0.01798769272863865, -0.03108704835176468, -0.06474873423576355, 0.007019375450909138, 0.043455760926008224, -0.01205558143556118, 0.034113992005586624, -0.016682976856827736, 0.02886033244431019, 0.030913086608052254, -0.03576663136482239, -0.004453432746231556, 0.007262922823429108, -0.06551416963338852, 0.0016113250749185681, -0.008785092271864414, 0.038062933832407, -0.010333355516195297, 0.07577794045209885, 0.05225824937224388, -0.1294974684715271, -0.01460412796586752, 0.007954422384500504, 0.0505882129073143, 0.029660558328032494, 0.035436104983091354, 0.015560920350253582, 0.03166112303733826, -0.021032031625509262, 0.016761260107159615, -0.006801922805607319, -0.050483833998441696, 0.0186835415661335, 0.049370478838682175, -0.007776111364364624, -0.009567921981215477, 0.034862030297517776, -0.034044407308101654, -0.06193054839968681, -0.029434407129883766, -0.0423424057662487, -0.04143780097365379, 0.02892991714179516, 0.029086483642458916, -0.016187183558940887, 0.02216278575360775, 0.011037902906537056, -0.04529976099729538, -0.0422380268573761, 0.021971428766846657, -0.009854959324002266, -0.029782332479953766, 0.07536043226718903, -0.0740383192896843, -0.0019831692334264517, -0.04258595034480095, 0.023885013535618782, 0.08350186794996262, -0.009246092289686203, 0.021501731127500534, 0.01275143027305603, 0.026877162978053093, 0.043942857533693314, 0.05399787425994873, -0.013577750883996487, 0.002800791757181287, 0.04564768448472023, 0.1116141602396965, 0.02515493705868721, -0.02313697524368763, 0.05845130607485771, 0.043594930320978165, -0.004294692073017359, 0.01407354325056076, 0.06888903677463531, -0.0007888099062256515, 0.03510557487607002, 0.011820732615888119, -0.06057364493608475, 0.0024093766696751118, -0.003170461393892765, 0.03277448192238808, 0.06293953210115433, -0.003340074559673667, -0.014082241803407669, 0.003370518097653985, -0.0394546315073967, -0.025485465303063393, 0.047909196466207504, -0.06944571435451508, -0.05994737893342972, 0.03402701020240784, 0.029730143025517464, 0.023119578137993813, -0.03722791373729706, 0.02223237231373787, -0.00024857569951564074, -0.04717855527997017, -0.051527608186006546, 0.02508535236120224, 0.04008089378476143, 0.045125801116228104, 0.025102747604250908, 0.07765673100948334, 0.03136538714170456, -0.048257119953632355, -0.0028029661625623703, 0.004927479662001133, 0.010950922034680843, 0.047700438648462296, -0.006214800290763378, 0.013525562360882759, -0.01694392040371895, -0.050901345908641815, 0.004688281565904617, 0.05559832602739334, 0.019831692799925804, -0.03296583890914917, 0.006336573977023363, -0.005388479679822922, 0.031243614852428436, -0.021501731127500534, -0.031817689538002014, 0.008350186049938202, 0.02084067463874817, -0.014195317402482033, 0.04794398695230484, -0.0705590769648552, 0.002302824752405286, 0.020023051649332047, -0.00029682304011657834, 0.05977341905236244, 0.03830648213624954, 0.03454889729619026, -0.06046926602721214, 0.07320330291986465, 0.08621567487716675, -0.014682411216199398, 0.06680148839950562, -0.0471089705824852, 0.002953008748590946, 0.007115054875612259, 0.009907148778438568, -0.027486030012369156, -0.013368996791541576, 0.0025202776305377483, -0.018022485077381134, -0.0609215684235096, 0.0015156458830460906, -0.030843501910567284, -0.06328745186328888, -0.012899298220872879, -0.056398551911115646, -0.02005784399807453, -0.0360797643661499, -0.012525280006229877, 0.02710331417620182, -0.008924261666834354, -0.03108704835176468, 0.04690021276473999, 0.017100486904382706, 0.00105355866253376, -0.052014704793691635, 0.01736142858862877, 0.040672365576028824, 0.08489356189966202, -0.011516299098730087, -0.015291279181838036, 0.020457956939935684, 0.054658930748701096, 0.016422033309936523, -0.056398551911115646, -0.008302346803247929, -0.05065779760479927, 0.024406898766756058, 0.013890882954001427, 0.03470546379685402, 0.01896188221871853, 0.021797465160489082, 0.011664167046546936, -0.010437733493745327, 0.020997239276766777, 0.00215169508010149, 0.03059995360672474, -0.009498337283730507, -0.03503599017858505, 0.007871790789067745, 0.012142563238739967, -0.01965773105621338, -0.09943680465221405, -0.04982278123497963, -0.02452867291867733, -0.04738730937242508, -0.013438581489026546, -0.017535392194986343, 0.01622197777032852, -0.002794268075376749, 0.010994412004947662, 0.007645639590919018, -0.01755278743803501, -0.029295237734913826, -0.04286428913474083, 0.02056233398616314, -0.007406441494822502, 0.03771501034498215, -0.04495183750987053, -0.009498337283730507, -0.017813730984926224, -0.03642768785357475, 0.025207124650478363, 0.02779916301369667, 0.015204298309981823, -0.0013471199199557304, 0.006023441907018423, -0.05817296728491783, -0.01991867460310459, 0.013525562360882759, 0.03559267148375511, -0.03660165145993233, -0.03451410308480263, -0.012690544128417969, 0.024424295872449875, 0.012403505854308605, 0.03848044201731682, 0.00484049879014492, 0.09435711055994034, -0.0016102377558127046, -0.03952421620488167, -0.052223458886146545, 0.022963013499975204, -0.01554352417588234, -0.05636375769972801, 0.010855242609977722, -0.0007610847242176533, -0.02710331417620182, 0.014412770047783852, 0.02731206826865673, 0.03705395385622978, -0.011351034976541996, 0.007715224288403988, -0.07028073817491531, -0.04453432932496071, -0.04696979746222496, -0.006193054839968681, 0.013073260895907879, -0.03621893376111984, -0.039489421993494034, -0.014647618867456913, 0.0335921049118042, 0.005271055269986391, 0.0016874335706233978, -0.014925958588719368, 0.024980975314974785, 0.04829191043972969, -0.011759845539927483, 0.045960817486047745, 0.002902994630858302, 0.033000633120536804, -0.06119990721344948, 0.009628809057176113, 0.13631679117679596, 0.006662752944976091, 0.0013699524570256472, -0.07967469841241837, -0.00961141288280487, -0.09094744920730591, 0.020388372242450714, 0.05552874132990837, -0.009698393754661083, 0.031817689538002014, 0.027833955362439156, -0.06307870149612427, -0.057581495493650436, 0.018092071637511253, -0.030217237770557404, 0.006127818953245878, 0.01547393947839737, -0.026390068233013153, -0.03858482092618942, -0.03371387720108032, 0.007736969739198685, -0.0007822863408364356, -0.04926609992980957, 0.005579838063567877, -0.01750059984624386, -0.06078239902853966, -0.017022203654050827, 0.02865157648921013, 0.012960185296833515, 0.014090939424932003, 0.007080262526869774, -0.03296583890914917, -0.019344598054885864, 0.00045991261140443385, 0.0028703766874969006, -0.009454846382141113, 0.049370478838682175, 0.011072695255279541, 0.041576970368623734, -0.024354711174964905, -0.011864223517477512, 0.006858460605144501, -0.049579232931137085, 0.020718900486826897, 0.015039034187793732, 0.03625372797250748, 0.008528498001396656, -0.010159393772482872, -0.02948659658432007, 0.07167243212461472, 0.04032444208860397, 0.01037684641778469, -0.034113992005586624, -0.01476939208805561, -0.02696414478123188, -0.0016635137144476175, 0.017883315682411194, 0.005875573959201574, -0.008371931500732899, -0.0028051408007740974, -0.06426164507865906, -0.05065779760479927, 0.01638724096119404, 0.04822232574224472, -0.076125867664814, -0.00017695219139568508, 0.027625199407339096, 0.024232937023043633, -0.0016134995967149734, 0.001219910103827715, -0.023049993440508842, -0.03830648213624954, -0.01833561807870865, 0.021084221079945564, 0.03240916132926941, 0.010385544039309025, 0.012977581471204758, -0.025120144709944725, 0.021762672811746597, 0.01407354325056076, 0.004294692073017359, 0.006736686918884516, 0.03914149850606918, 0.015517429448664188, -0.0016352448146790266, 0.04035923629999161, -0.026216106489300728, 0.028199275955557823, -0.0014199665747582912, 0.0625220239162445, -0.032287389039993286, 0.022214975208044052, -0.015656599774956703, -0.024720031768083572, -0.003377041546627879, -0.002178876893594861, 0.011029204353690147, 0.012560072354972363, -0.0015341292601078749, -0.0015004241140559316, -0.024859201163053513, -0.011725053191184998, -0.05705960839986801, 0.006419206038117409, 0.0742470771074295, 0.026181314140558243, -0.047004591673612595, 0.02830365300178528, 0.005762498360127211, 0.011020506732165813, -0.06377454847097397, 0.03340074419975281, -0.03073912486433983, -0.0020060017704963684, -0.03547089546918869, 0.046239156275987625, -0.09874095767736435, -0.015778373926877975, -0.013577750883996487, -0.008232762105762959, -0.01268184557557106, -0.0007175941718742251, -0.045264970511198044, -0.07877009361982346, 0.0017265749629586935, 0.006906299851834774, -0.010315959341824055, 0.020527541637420654, 0.017752844840288162, -0.012647053226828575, 0.01337769441306591, 0.0038119470700621605, 0.007541262079030275, 0.05531998723745346, -0.050553422421216965, 0.021988824009895325, -0.025989955291152, 0.06314828246831894, -0.024285126477479935, -0.038167309015989304, 0.03851523622870445, 0.029712747782468796, -0.0013058038894087076, -0.04108987748622894, -0.013116750866174698, 0.008611129596829414, -0.02077108807861805, -0.03115663304924965, 0.04676104336977005, 0.0019929546397179365, 0.0019114098977297544, 0.07094179093837738, 0.001361254369840026, 0.0636005848646164, -0.01707439124584198, -0.0019527259282767773, -0.05218866467475891, 0.016700372099876404, 0.04954443871974945, 0.010228978469967842, -0.06607084721326828, -0.016700372099876404, 0.04119425266981125, -0.018909692764282227, -0.05525039881467819, 0.01090743113309145, -0.029086483642458916, -0.00472307438030839, -0.02167569287121296, 0.03352252021431923, 0.019762108102440834, 0.027903540059924126, 0.02585078589618206, 0.04216844215989113, 0.018144259229302406, -0.03023463301360607, -0.03166112303733826, -0.02969535067677498, 0.007128101773560047, -0.01567399501800537, 0.010776959359645844, -0.06920216977596283, -0.0026877163909375668, -0.048187535256147385, 0.030895689502358437, -0.000390327739296481, -0.07188118994235992, 0.000014091959201323334, 0.023310936987400055, -0.016978712752461433, -0.0002873094636015594, 0.06784526258707047, -0.034949008375406265, -0.021727880463004112, -0.03162633255124092, -0.06631439924240112, 0.03011286072432995, -0.010115902870893478, -0.023502295836806297, -0.007850045338273048, 0.053684741258621216, 0.040602780878543854, -0.008828582242131233, -0.07556919008493423, 0.03312240540981293, 0.032287389039993286, 0.0656881332397461, 0.0114293172955513, 0.012003392912447453, -0.03628851845860481, -0.02188444696366787, 0.023815426975488663, -0.03291365131735802, -0.03472285717725754, 0.0015406529419124126, 0.01076826173812151, -0.07236828655004501, 0.010968318209052086, 0.025694219395518303, 0.0015830561751499772, 0.008158828131854534, -0.03778459504246712, -0.048883382230997086, -0.00965490285307169, 0.03510557487607002, -0.009411356411874294, 0.11098789423704147, -0.028790747746825218, -0.006841064430773258, 0.03663644194602966, -0.04696979746222496, 0.01784852333366871, 0.04599561169743538, -0.0756387710571289, -0.09512253850698471, -0.01469980739057064, 0.022702069953083992, -0.03374867141246796, 0.025659427046775818, 0.024354711174964905, 0.02466784231364727, -0.03514036908745766, 0.0014156175311654806, -0.01979690045118332, 0.031104445457458496, 0.012072977609932423, 0.029086483642458916, 0.016961315646767616, 0.0023223955649882555, 0.03526214137673378, 0.011255355551838875, -0.02313697524368763, 0.0032791877165436745, 0.043873272836208344, -0.03594059497117996, 0.05584187060594559, 0.03275708481669426, -0.03841085731983185, 0.03642768785357475, 0.03176550194621086, -0.013055864721536636, 0.004540414083749056, -0.006436602212488651, 0.0596342496573925, -0.024493880569934845, -0.04905734583735466, 0.003531432943418622, -0.047352515161037445, 0.04425598680973053, 0.021623503416776657, -0.02800791710615158, -0.05531998723745346, -0.014665015041828156, 0.011794638819992542, -0.023171767592430115, -0.032496143132448196, 0.03312240540981293, -0.02731206826865673, 0.05434579774737358, -0.02725987881422043, -0.021484334021806717, 0.01637854240834713, 0.015195599757134914, -0.05364994704723358, 0.03526214137673378, 0.08962533622980118, 0.03691478446125984, -0.0691673755645752, -0.021588711068034172, -0.03587101027369499, -0.006158262491226196, -0.05667689070105553, 0.05761628597974777, -0.01052471436560154, -0.005923413671553135, -0.011246656998991966, 0.018161656334996223, 0.030634745955467224, -0.03129580244421959, 0.004731772467494011, -0.06704504042863846, 0.05518081411719322, -0.052293043583631516, 0.012325223535299301, 0.028321050107479095, -0.01965773105621338, 0.015421750955283642, 0.00611477205529809, 0.013473373837769032, -0.04150738567113876, -0.03604497015476227, -0.017596278339624405, 0.030269425362348557, -0.005184073932468891, -0.019883882254362106, 0.07828299701213837, -0.07988344877958298, 0.017474504187703133, -0.047770027071237564, 0.04648270457983017, -0.024058975279331207, -0.029799727723002434, -0.002605084329843521, -0.004275121726095676, -0.02278904989361763, 0.027712181210517883, 0.0032791877165436745, -0.056120213121175766, 0.006814969703555107, 0.004259899724274874, 0.04745689406991005, -0.00068334536626935, -0.03646248206496239, 0.057511910796165466, 0.016039317473769188, -0.0561550036072731, 0.008458913303911686, 0.025520257651805878, -0.02188444696366787, -0.027277275919914246, -0.0002616228593979031, 0.000611585914157331, -0.0102115822955966, -0.0679844319820404, -0.081901416182518, -0.0071324510499835014, 0.01652641035616398, 0.03865440562367439, 0.06551416963338852, 0.07619544863700867, -0.017161373049020767, -0.03973297029733658, -0.014064845629036427, 0.027781765908002853, 0.047422099858522415, -0.026877162978053093, -0.012412204407155514, -0.003970687743276358, -0.03213082253932953, 0.0033509472850710154, 0.00811098888516426, -0.0010263770818710327, -0.010202883742749691, -0.046308740973472595, 0.04209885746240616, 0.007532563991844654, -0.040602780878543854, 0.005031857173889875, -0.013656034134328365, 0.01616108976304531, -0.03823689743876457, 0.06099115312099457, 0.03660165145993233, 0.0016232850030064583, 0.006223498377948999, -0.03204384073615074, 0.009420054033398628, 0.024980975314974785, 0.047770027071237564, -0.016839543357491493, 0.0187357310205698, -0.029243048280477524, 0.024128559976816177, -0.0004971513990312815, 0.0024550417438149452, -0.018927089869976044, -0.0009567922097630799, 0.04884859174489975, -0.05719877779483795, -0.06805402040481567, -0.024024182930588722, -0.005618979688733816, 0.01328201498836279, -0.021640900522470474, 0.029938897117972374, 0.010272469371557236, 0.03166112303733826, -0.052223458886146545, -0.02731206826865673, 0.003546654712408781, -0.03435753658413887, 0.06019092723727226, -0.02960836887359619, -0.03364429250359535, 0.0008067497983574867, 0.024615654721856117, 0.01991867460310459, 0.013986562378704548, 0.033679086714982986, 0.03423576429486275, -0.021762672811746597, 0.02948659658432007, -0.047422099858522415, 0.0249461829662323, 0.0796051099896431, -0.00975928083062172, -0.03681040555238724, 0.011994695290923119, 0.03277448192238808, 0.03086089715361595, -0.030686935409903526, -0.05024028941988945, 0.06840194761753082, 0.009881054051220417, 0.009881054051220417, 0.03420097380876541, 0.00020685195340774953, 0.03402701020240784, -0.006714941468089819, 0.006971535738557577, 0.01735273189842701, 0.013716921210289001, -0.10437732934951782, -0.006332224700599909, -0.03025203011929989, 0.04745689406991005, 0.0021875749807804823, 0.01957074925303459, -0.006401809863746166, 0.025415880605578423, -0.06934133917093277, 0.04696979746222496, 0.026355275884270668, -0.018353013321757317, -0.07062865793704987, 0.09957597404718399, 0.0013743015006184578, 0.053684741258621216, -0.021936636418104172, 0.022632485255599022, 0.03009546361863613, 0.05601583421230316, 0.03670602664351463, 0.046308740973472595, -0.07877009361982346, -0.014621524140238762, 0.015665298327803612, 0.01805727742612362, -0.03232217952609062, -0.005879922769963741, 0.022214975208044052, -0.05051862820982933, -0.032078634947538376, 0.024145955219864845, -0.03526214137673378, 0.00750646973028779, 0.06888903677463531, -0.031191425397992134, -0.010829147882759571, -0.048117950558662415, 0.05935590714216232, -0.03987213969230652, -0.002746428595855832, -0.0070454697124660015, 0.08920782804489136, 0.023241352289915085, 0.015700090676546097, -0.013925675302743912, -0.012403505854308605, -0.02005784399807453, 0.027416445314884186, 0.03284406661987305, 0.014056147076189518, -0.034322746098041534, -0.03247874602675438, -0.02605953998863697, 0.05312805995345116, -0.049161724746227264, -0.03872399032115936, -0.0005468937451951206, -0.020092636346817017, -0.017178768292069435, -0.012516581453382969, 0.0007137887296266854, -0.01431709062308073, 0.04129863157868385, 0.02327614463865757, -0.033766064792871475 ]
21,126
tfields.core
norm
Calculate the norm up to rank 2 Args: See numpy.linal.norm except redefinition in axis axis: by default omitting first axis Examples: >>> import tfields >>> a = tfields.Tensors([[1, 0, 0]]) >>> assert a.norm().equal([1])
def norm(self, ord=None, axis=None, keepdims=False): """ Calculate the norm up to rank 2 Args: See numpy.linal.norm except redefinition in axis axis: by default omitting first axis Examples: >>> import tfields >>> a = tfields.Tensors([[1, 0, 0]]) >>> assert a.norm().equal([1]) """ if axis is None: axis = tuple(range(self.ndim)[1:]) return Tensors(np.linalg.norm(self, ord=ord, axis=axis, keepdims=keepdims))
(self, ord=None, axis=None, keepdims=False)
[ -0.02874176949262619, 0.08457347750663757, -0.005905277095735073, 0.013058600947260857, 0.05473049357533455, 0.0004829296376556158, 0.0010054341983050108, -0.03492693975567818, -0.01605941727757454, 0.06893619894981384, 0.008208656683564186, -0.004544815048575401, -0.02103324793279171, 0.03982735425233841, 0.0027025705203413963, 0.018775753676891327, -0.00853443332016468, 0.004264922346919775, -0.043938565999269485, -0.014352531172335148, 0.025731775909662247, 0.016674263402819633, -0.015921765938401222, 0.005148190539330244, -0.0339541956782341, -0.014205701649188995, -0.0010054341983050108, -0.03588132560253143, -0.030430302023887634, -0.014159818179905415, 0.05094964802265167, 0.010011899285018444, 0.04397527500987053, 0.021749040111899376, 0.0023492632899433374, -0.051793914288282394, -0.015371156856417656, -0.007460746448487043, -0.023749584332108498, -0.03817553073167801, 0.024061596021056175, -0.02004215307533741, 0.032761212438344955, 0.0008890034514479339, 0.0176378283649683, 0.017289109528064728, 0.02773232012987137, -0.041112110018730164, -0.10858001559972763, -0.013489910401403904, -0.048747215420007706, -0.0025763893499970436, 0.06284279376268387, -0.041038695722818375, -0.011443481780588627, 0.015692345798015594, -0.0017688301159068942, 0.011810554191470146, -0.03894638270139694, -0.02384135313332081, -0.013563325628638268, -0.0392400398850441, -0.07664471864700317, 0.025731775909662247, 0.03876284509897232, -0.01616036333143711, -0.00910798367112875, 0.07429545372724533, 0.04977501928806305, 0.06508193910121918, -0.06860583275556564, 0.01403134223073721, -0.003991912584751844, -0.02940250001847744, 0.035165537148714066, 0.07627764344215393, 0.04166271910071373, 0.0044599296525120735, 0.057667072862386703, -0.02600708045065403, -0.04793965443968773, 0.042763933539390564, 0.017940662801265717, 0.013499087654054165, -0.060823895037174225, -0.037551507353782654, -0.026190616190433502, -0.008511491119861603, -0.03406431898474693, -0.06732107698917389, -0.06743119657039642, -0.018656454980373383, 0.04015772044658661, -0.01881246082484722, 0.01353579480201006, 0.01638978347182274, -0.02576848305761814, -0.03255932033061981, -0.008639967069029808, -0.04548026993870735, 0.0013076954055577517, 0.06783498078584671, 0.03555096313357353, 0.048894044011831284, 0.034743402153253555, 0.004400280304253101, -0.027181711047887802, -0.0916212722659111, -0.047829534858465195, 0.07231326401233673, -0.05249135196208954, 0.04606758803129196, 0.04581063613295555, 0.0039506168104708195, -0.052638180553913116, -0.030944203957915306, -0.017536884173750877, 0.044856246560811996, -0.013847806490957737, 0.017344171181321144, 0.043204423040151596, 0.03773504123091698, 0.027145003899931908, -0.08104958385229111, -0.007786523085087538, 0.00897950865328312, -0.03433962166309357, -0.03454151377081871, -0.03817553073167801, 0.011920676566660404, -0.002217346802353859, -0.022226233035326004, 0.009433760307729244, 0.010094490833580494, 0.02659439481794834, -0.014737957157194614, 0.05465707927942276, 0.008208656683564186, 0.013232960365712643, 0.0028700472321361303, 0.030081583186984062, 0.0435347855091095, 0.047315631061792374, -0.008323366753757, -0.01250799186527729, 0.03114609234035015, -0.028705062344670296, 0.004872885998338461, 0.03165999427437782, 0.013499087654054165, -0.026796285063028336, 0.007066143676638603, 0.14815041422843933, 0.03351370990276337, -0.022336356341838837, 0.03288968652486801, -0.016747677698731422, -0.10791928321123123, -0.007410273887217045, 0.02708994410932064, -0.06621985882520676, -0.027677258476614952, -0.02171233296394348, -0.05102306231856346, 0.04074503481388092, 0.02723677270114422, 0.02046428620815277, -0.035404134541749954, -0.01696792244911194, 0.0319720059633255, -0.004955477546900511, -0.014462652616202831, 0.01837197318673134, -0.015967650339007378, -0.011874792166054249, 0.007254268508404493, -0.006345764268189669, 0.01672014780342579, -0.037808455526828766, 0.004207567311823368, 0.0026108024176210165, -0.030448656529188156, 0.007139557972550392, -0.07143229246139526, 0.010397326201200485, 0.03199036046862602, -0.01705051213502884, 0.00014811944856774062, -0.0065476540476083755, 0.02310720831155777, 0.02303379401564598, 0.006432943977415562, -0.04272722825407982, 0.02270342782139778, 0.03112773969769478, 0.03364218398928642, 0.003117821179330349, 0.048747215420007706, 0.07987495511770248, 0.028760122135281563, 0.0063732946291565895, 0.023621108382940292, -0.0036546646151691675, 0.034669987857341766, 0.007933352142572403, -0.0009515205165371299, -0.009920131415128708, 0.0033334761392325163, 0.02626403048634529, -0.02409830316901207, 0.03894638270139694, 0.0191244725137949, -0.014435121789574623, 0.0022070228587836027, 0.018518801778554916, 0.0308157280087471, -0.05010538175702095, -0.0201155673712492, 0.022630013525485992, 0.007180853746831417, 0.012976009398698807, -0.013315550982952118, 0.0035445429384708405, 0.015013260766863823, -0.02013392187654972, 0.0038565543945878744, 0.01688533090054989, -0.005551970098167658, -0.03322005271911621, 0.039056502282619476, 0.0010077283950522542, -0.041772838681936264, -0.025952018797397614, 0.0168119166046381, 0.04995855316519737, -0.05028891935944557, -0.011957383714616299, 0.06405413150787354, 0.03802870213985443, 0.01192985288798809, -0.048416849225759506, -0.04456258937716484, -0.046838440001010895, 0.004280982073396444, -0.014233232475817204, 0.03727620095014572, -0.004659525118768215, 0.018739046528935432, 0.020666176453232765, 0.009020804427564144, -0.09257566183805466, -0.017188165336847305, 0.0324675552546978, 0.027713965624570847, 0.03993747755885124, -0.010424856096506119, -0.015949295833706856, 0.02367617003619671, -0.016830269247293472, -0.030540423467755318, -0.017839718610048294, 0.032173894345760345, -0.01656414195895195, 0.033660538494586945, -0.0070844972506165504, -0.02641085907816887, 0.0352756567299366, 0.01872986927628517, 0.06192511320114136, 0.04603087902069092, 0.02742030844092369, 0.054033055901527405, 0.0027438662946224213, -0.021877514198422432, 0.030283473432064056, 0.026520980522036552, 0.0415525957942009, -0.005744683090597391, 0.011553604155778885, 0.04034125804901123, -0.02152879722416401, -0.04581063613295555, -0.06089731305837631, -0.0036844892892986536, -0.05094964802265167, 0.022886963561177254, -0.046581488102674484, -0.05946572870016098, -0.026355799287557602, 0.016692617908120155, 0.08383933454751968, 0.04481954127550125, -0.0018686279654502869, 0.02666780911386013, 0.013526617549359798, -0.05961255729198456, -0.06867924332618713, 0.027622198686003685, 0.039643820375204086, 0.004540226887911558, -0.0573367103934288, 0.02369452267885208, -0.014893963001668453, 0.008506902493536472, 0.06721095740795135, -0.013370612636208534, 0.023382512852549553, -0.006488004699349403, 0.026961468160152435, 0.020519347861409187, 0.013994635082781315, -0.0027851618360728025, -0.09683369845151901, 0.052124280482530594, 0.04562709853053093, 0.06104414165019989, 0.03578956052660942, -0.025952018797397614, 0.018436212092638016, 0.0606403611600399, 0.006754131987690926, 0.07803959399461746, 0.004085974767804146, 0.004900416359305382, -0.07987495511770248, -0.06599961966276169, 0.006699071265757084, -0.03340359032154083, 0.036321815103292465, 0.019271301105618477, 0.044268932193517685, -0.003604192053899169, 0.004024031106382608, 0.028925305232405663, -0.00041840519406832755, -0.04133235290646553, 0.07279045879840851, -0.012269395403563976, 0.0011201443849131465, -0.0010077283950522542, -0.006744955200701952, 0.021492088213562965, 0.0164815504103899, -0.00931905023753643, -0.05425330251455307, 0.0020406930707395077, -0.0006400825222954154, -0.0068826074711978436, 0.037221141159534454, -0.029842985793948174, 0.019913677126169205, -0.05359257012605667, -0.013361435383558273, 0.007933352142572403, 0.005414317827671766, 0.04537015035748482, -0.034156087785959244, 0.006822958122938871, -0.043938565999269485, -0.04926111549139023, -0.02211611159145832, -0.022886963561177254, 0.005538204684853554, -0.026208968833088875, 0.0204459335654974, 0.010690983384847641, 0.026814639568328857, -0.05902524292469025, -0.024722326546907425, 0.03470669686794281, -0.01756441406905651, -0.04408539459109306, 0.011773847043514252, -0.0034848935902118683, -0.028356343507766724, 0.046765025705099106, -0.05854804813861847, -0.015930941328406334, 0.03489023074507713, -0.0619618222117424, 0.02855823189020157, 0.0032371196430176497, 0.0823710486292839, -0.043020885437726974, -0.0077452277764678, -0.007795700337737799, 0.01847291924059391, 0.043755028396844864, -0.06614644825458527, -0.011498542502522469, -0.011489366181194782, 0.02136361412703991, -0.024153364822268486, -0.06423766911029816, -0.08640884608030319, 0.049995262175798416, -0.038799554109573364, 0.006905549671500921, -0.061741579324007034, -0.09052005410194397, -0.05227110907435417, 0.03718443587422371, 0.01216845028102398, 0.05091294273734093, -0.06552242487668991, 0.02898036688566208, -0.026961468160152435, 0.044525884091854095, -0.018436212092638016, 0.056932929903268814, -0.0405615009367466, 0.08391275256872177, 0.06588949263095856, -0.0004597008228302002, 0.05194074660539627, -0.019528251141309738, 0.07047790288925171, 0.007653459440916777, 0.033733952790498734, 0.04962818697094917, 0.00024132142425514758, -0.00007448988617397845, 0.04995855316519737, 0.06383389234542847, 0.05168379470705986, -0.015270211733877659, 0.022666720673441887, -0.04191966727375984, -0.031513165682554245, -0.028962012380361557, -0.03683571517467499, 0.04896745830774307, -0.0415525957942009, -0.03703760355710983, 0.014517713338136673, 0.012278571724891663, -0.012186803855001926, 0.070220947265625, -0.03611992299556732, -0.010195435956120491, -0.003588132793083787, 0.024740679189562798, -0.00484535563737154, -0.05058257654309273, -0.011571957729756832, -0.02171233296394348, 0.017371701076626778, 0.002624567598104477, -0.01250799186527729, -0.032247308641672134, 0.0013191663892939687, 0.013866160064935684, 0.06511864066123962, -0.0005164823378436267, 0.007547926157712936, 0.011966560035943985, -0.032008714973926544, -0.07168924063444138, 0.00376708060503006, -0.017601121217012405, -0.02218952588737011, 0.02624567598104477, -0.020244043320417404, -0.05021550506353378, -0.0035835443995893, -0.019032703712582588, 0.018757399171590805, 0.006341175641864538, 0.013269667513668537, -0.009415406733751297, 0.09580589830875397, 0.026319090276956558, 0.07047790288925171, 0.0039093210361897945, -0.018500449135899544, 0.006822958122938871, 0.023988181725144386, -0.05862146243453026, -0.024942569434642792, -0.09081371128559113, -0.07627764344215393, 0.030430302023887634, -0.01607777178287506, 0.00210034241899848, -0.004223627038300037, -0.01574740558862686, -0.04793965443968773, 0.05572159215807915, 0.06376047432422638, -0.015361979603767395, 0.001735564204864204, 0.03331182152032852, 0.08090275526046753, -0.003831318113952875, 0.016004357486963272, 0.0032669443171471357, 0.010076137259602547, 0.04702197387814522, -0.03551425412297249, 0.053629279136657715, 0.008837267756462097, -0.017858073115348816, 0.03310992941260338, 0.05344574153423309, -0.03305486962199211, -0.006744955200701952, -0.049150995910167694, -0.00012446047912817448, 0.02079465240240097, 0.013031070120632648, -0.013205429539084435, -0.041626010090112686, 0.016958745196461678, -0.009929308667778969, 0.041112110018730164, 0.0573367103934288, -0.02402488887310028, 0.016132831573486328, 0.005464790388941765, 0.024703972041606903, 0.006483416073024273, -0.025364702567458153, -0.0962463840842247, -0.0285031720995903, -0.00918598659336567, -0.014187348075211048, -0.033256758004426956, -0.02666780911386013, 0.06508193910121918, -0.03536742553114891, 0.015141736716032028, -0.02103324793279171, -0.007157912012189627, -0.01947319135069847, -0.030705606564879417, 0.03718443587422371, -0.04125893861055374, 0.021638918668031693, -0.007235914934426546, 0.002103783655911684, -0.015233504585921764, -0.05216098949313164, 0.05946572870016098, -0.018830813467502594, -0.022648368030786514, -0.009892601519823074, 0.014343353919684887, -0.024960923939943314, 0.004831590689718723, 0.015628106892108917, -0.04463600367307663, 0.0019535133615136147, -0.0068367235362529755, -0.02567671425640583, -0.06959692388772964, 0.015288565307855606, -0.058254390954971313, -0.01184726133942604, 0.02874176949262619, -0.010122021660208702, 0.009176810272037983, -0.049077581614255905, 0.054106470197439194, 0.04977501928806305, 0.033678892999887466, 0.02171233296394348, 0.018500449135899544, -0.04265381395816803, 0.011415951885282993, 0.01151689700782299, -0.05531781166791916, 0.028264574706554413, 0.00010782751633087173, 0.007038613315671682, 0.03472504764795303, 0.05021550506353378, 0.023657815530896187, -0.07374484837055206, -0.010984641499817371, -0.05682280659675598, 0.030430302023887634, -0.05157367140054703, -0.007304740604013205, 0.025034338235855103, -0.02758549153804779, -0.05513427406549454, -0.01449018344283104, 0.04158930480480194, 0.009617296978831291, -0.03030182607471943, 0.0012847534380853176, 0.0027278068009763956, 0.012397870421409607, -0.04085515812039375, 0.050986357033252716, -0.04962818697094917, -0.07591057568788528, -0.03219224885106087, 0.00977330282330513, 0.03413773328065872, -0.006253995932638645, 0.021235138177871704, 0.007538749370723963, 0.04628783091902733, -0.015573046170175076, -0.06772486120462418, -0.0392400398850441, -0.02716335840523243, 0.003067348850890994, 0.0023446748964488506, 0.013682623393833637, -0.05128001421689987, -0.013067777268588543, -0.005749271251261234, 0.03931345418095589, -0.022097758948802948, -0.0038794963620603085, -0.021822454407811165, 0.02690640650689602, -0.035073768347501755, 0.010507447645068169, -0.03520224243402481, -0.000013352975656744093, -0.04830672964453697, -0.05116989091038704, 0.01461865846067667, 0.009800832718610764, -0.02211611159145832, -0.014214878901839256, 0.007598398718982935, -0.030613837763667107, -0.04610429331660271, -0.004684761632233858, -0.028943659737706184, 0.01729828678071499, 0.004095151554793119, -0.05278501287102699, -0.03909321129322052, 0.011902322992682457, 0.06306304037570953, 0.04511319845914841, 0.06203523650765419, 0.006437532138079405, 0.012021620757877827, -0.0007077615009620786, -0.024447022005915642, 0.02525458112359047, 0.007157912012189627, 0.0042993356473743916, -0.026649456471204758, -0.02468561939895153, 0.0074332160875201225, 0.034578219056129456, 0.02518116682767868, 0.012700704857707024, -0.03470669686794281, -0.0032738270238041878, -0.004629700444638729, 0.009828363545238972, -0.013994635082781315, 0.006180581636726856, -0.05542793124914169, 0.053372327238321304, -0.00013098462659399956, -0.06398072093725204, 0.004209861624985933, 0.04147918149828911, -0.04338795691728592, -0.05157367140054703, -0.06787168979644775, -0.04441576078534126, 0.05638232082128525, 0.05208757519721985, 0.01498573087155819, 0.02461220510303974, 0.051793914288282394, 0.01690368354320526, -0.01615118607878685, 0.02808103896677494, 0.04067162051796913, -0.024960923939943314, 0.058768291026353836, -0.022831903770565987, 0.011489366181194782, 0.0025190343149006367, -0.044929660856723785, -0.028136098757386208, 0.06783498078584671, -0.01582081988453865, -0.04581063613295555, -0.04283734783530235, 0.0063732946291565895, 0.006061282940208912, -0.010048607364296913, 0.004370455630123615, 0.0001544285041745752, 0.006763308774679899, 0.00010574839689070359, 0.030283473432064056, 0.07128546386957169, 0.045516978949308395, -0.029787926003336906, -0.037239495664834976, 0.016426490619778633, 0.04786624014377594, 0.009007039479911327, -0.03769833594560623, 0.01143430545926094, 0.0010777015704661608, 0.057520244270563126, -0.010177082382142544, 0.02989804744720459, 0.05381281301379204, -0.0294942669570446, 0.00753416121006012, -0.00391161534935236, 0.045443564653396606, 0.05465707927942276, -0.0039093210361897945, -0.02626403048634529, 0.019106118008494377, -0.07312082499265671, 0.05425330251455307, -0.021418673917651176, 0.06089731305837631, 0.004973831120878458, 0.004886651411652565, 0.04819660633802414, -0.016270484775304794, -0.030210059136152267, -0.009442937560379505, -0.04687514528632164, 0.04797636345028877, 0.010498270392417908, -0.008506902493536472, 0.020684529095888138, 0.01345320325344801, -0.014756310731172562, -0.021583857014775276, -0.003916203510016203, 0.027970917522907257, 0.01424240879714489, 0.04441576078534126, -0.013278843834996223, 0.022997085005044937, -0.003790022572502494, -0.0326327346265316, -0.046765025705099106, 0.039717234671115875, -0.02053770050406456, 0.03578956052660942, -0.03734961524605751, -0.01279247272759676, -0.008988684974610806, -0.014811371453106403, -0.013104484416544437, 0.019289655610919, -0.022556599229574203, -0.06302633136510849, -0.08618859946727753, 0.04786624014377594, -0.04878392070531845, -0.029622742906212807, 0.05575829744338989, -0.03202706575393677, -0.024869155138731003, 0.0955856516957283, 0.0051711322739720345 ]
21,127
tfields.core
normalized
Return the self / norm(self) Args: forwarded to :meth:norm Examples: >>> import tfields >>> a = tfields.Tensors([[1, 4, 3]]) >>> assert not a.norm().equal([1]) >>> a = a.normalized() >>> assert a.norm().equal([1]) >>> a = tfields.Tensors([[1, 0, 0], ... [0, 2, 0], ... [0, 0, 3]]) >>> assert a.norm().equal([1, 2, 3]) >>> a = a.normalized() >>> assert a.equal([ ... [1, 0, 0], ... [0, 1, 0], ... [0, 0, 1], ... ]) >>> assert a.norm().equal([1, 1, 1])
def normalized(self, *args, **kwargs): """ Return the self / norm(self) Args: forwarded to :meth:norm Examples: >>> import tfields >>> a = tfields.Tensors([[1, 4, 3]]) >>> assert not a.norm().equal([1]) >>> a = a.normalized() >>> assert a.norm().equal([1]) >>> a = tfields.Tensors([[1, 0, 0], ... [0, 2, 0], ... [0, 0, 3]]) >>> assert a.norm().equal([1, 2, 3]) >>> a = a.normalized() >>> assert a.equal([ ... [1, 0, 0], ... [0, 1, 0], ... [0, 0, 1], ... ]) >>> assert a.norm().equal([1, 1, 1]) """ # return np.divide(self.T, self.norm(*args, **kwargs)).T return np.divide(self, self.norm(*args, **kwargs)[:, None])
(self, *args, **kwargs)
[ -0.04671686887741089, -0.009200307540595531, 0.03336405009031296, 0.004067030735313892, -0.012219088152050972, -0.02834324724972248, -0.004024290945380926, -0.025949817150831223, 0.017761768773198128, 0.07594190537929535, -0.0070903105661273, -0.02881113439798355, 0.00810706801712513, 0.021576859056949615, -0.019543344154953957, 0.036207374185323715, -0.019381381571292877, 0.02749744802713394, -0.01518838107585907, -0.021288927644491196, 0.034929677844047546, 0.040130436420440674, 0.022062743082642555, 0.03277019038796425, 0.016691023483872414, -0.014486548490822315, 0.03118656948208809, -0.07111905515193939, 0.012848938815295696, 0.006919351406395435, 0.04833648353815079, 0.06082550808787346, 0.04016643017530441, -0.01514339167624712, 0.038582805544137955, -0.12467429041862488, -0.0294409841299057, -0.003695869352668524, -0.09249795973300934, -0.010500498116016388, -0.008534466847777367, -0.08767510950565338, 0.01702394336462021, 0.011976146139204502, 0.025068026036024094, -0.0017916980432346463, 0.06316494941711426, -0.0036553789395838976, -0.0662602111697197, -0.021252935752272606, -0.0635608583688736, 0.015629276633262634, 0.05071191489696503, -0.009357769973576069, -0.018805518746376038, 0.09796866029500961, 0.011589238420128822, -0.005245750304311514, -0.04347763955593109, -0.012012138031423092, -0.0030097828712314367, 0.012992904521524906, -0.00008449549204669893, -0.015602282248437405, 0.04419746994972229, -0.04876837879419327, -0.023538392037153244, 0.0850837305188179, 0.003122256137430668, 0.04056233540177345, -0.11675617843866348, 0.0006917101563885808, 0.0007316381670534611, -0.0052367523312568665, 0.035487543791532516, 0.08090872317552567, 0.0020391391590237617, 0.037035174667835236, 0.07108306139707565, -0.0036936199758201838, -0.023124489933252335, 0.015539297834038734, 0.0051377760246396065, -0.01608816720545292, -0.021900782361626625, -0.05560674890875816, -0.06154533475637436, -0.0011297933524474502, -0.012659983709454536, -0.038150910288095474, -0.04876837879419327, 0.03282417729496956, -0.00825103372335434, 0.04963217303156853, -0.04603303223848343, 0.022152721881866455, -0.05578670650720596, -0.024060267955064774, 0.005407711490988731, -0.024348199367523193, 0.019813278689980507, 0.06899555772542953, 0.01583622582256794, 0.019489355385303497, 0.050855882465839386, -0.019975241273641586, -0.024834083393216133, -0.08227639645338058, -0.003455176716670394, 0.0811246708035469, -0.036081403493881226, 0.038150910288095474, 0.011967148631811142, 0.025895830243825912, -0.038186900317668915, -0.0565425269305706, -0.04509725421667099, 0.018337629735469818, 0.00019246977171860635, 0.01617814600467682, -0.007873124442994595, 0.034479785710573196, 0.01486445777118206, -0.026543674990534782, -0.026741627603769302, 0.018463600426912308, 0.010698450729250908, -0.0039298138581216335, -0.04124617204070091, -0.03370596840977669, -0.009978622198104858, 0.004845345392823219, -0.002384431893005967, 0.02834324724972248, 0.04520522803068161, 0.020587094128131866, 0.06766387820243835, 0.024150244891643524, 0.036531295627355576, 0.06039360910654068, 0.002881563501432538, 0.010185573250055313, 0.04678885266184807, 0.007882121950387955, 0.004552915226668119, 0.04020242020487785, 0.050459977239370346, 0.04020242020487785, 0.009510734118521214, 0.021864790469408035, -0.034713730216026306, 0.008966363966464996, 0.11941954493522644, 0.0011922159465029836, -0.03140251711010933, 0.0029040579684078693, -0.03347202390432358, -0.09170614928007126, 0.006842869333922863, 0.01534134428948164, -0.04027440398931503, -0.02969292551279068, 0.013037892989814281, -0.02699356898665428, -0.004647392779588699, 0.04272181913256645, 0.025535915046930313, -0.03244626894593239, -0.038762763142585754, 0.010536489076912403, 0.06741193681955338, -0.006527944467961788, -0.011562244966626167, 0.013415803201496601, -0.004885836038738489, 0.006743893027305603, 0.019957244396209717, 0.017554817721247673, -0.051863640546798706, 0.04167807102203369, 0.02927902340888977, -0.026723632588982582, 0.001348553691059351, -0.08839493989944458, 0.037611037492752075, 0.0016983452951535583, -0.01790573261678219, -0.01542232558131218, -0.03305812180042267, 0.018787523731589317, 0.020299162715673447, -0.037898968905210495, -0.002861318178474903, -0.012866933830082417, 0.02981889434158802, 0.04416147619485855, -0.02933301031589508, -0.025463933125138283, 0.10833418369293213, -0.008390501141548157, -0.04354962334036827, -0.036927200853824615, 0.03066469356417656, 0.051755666732788086, -0.013091880828142166, -0.012453032657504082, 0.024168241769075394, 0.013460792601108551, -0.008017090149223804, -0.04772462695837021, 0.019219420850276947, -0.024564146995544434, -0.013631751760840416, 0.021432893350720406, 0.006042060442268848, -0.0053357286378741264, 0.03235629200935364, -0.010311543010175228, -0.004755367059260607, 0.027155529707670212, 0.02861318178474903, -0.04516923800110817, -0.005254747811704874, -0.036009419709444046, -0.04268582910299301, -0.009861649945378304, -0.017986714839935303, -0.0046788849867880344, -0.016547057777643204, 0.002151612425222993, 0.010374528355896473, -0.04668087884783745, -0.05499489605426788, 0.014837464317679405, -0.036927200853824615, -0.0008401747909374535, 0.012812946923077106, 0.011238322593271732, 0.04729273170232773, 0.007756151724606752, -0.035577524453401566, -0.00004235318920109421, 0.004379706457257271, 0.008831395767629147, 0.03187040612101555, -0.014297593384981155, -0.01542232558131218, 0.038366857916116714, 0.016655031591653824, 0.017662791535258293, -0.0818445011973381, 0.035001661628484726, 0.018022704869508743, 0.04272181913256645, 0.051647692918777466, 0.009537727572023869, 0.020083215087652206, 0.04768863692879677, 0.015080406330525875, 0.009357769973576069, -0.009915637783706188, -0.0617612823843956, 0.036963190883398056, 0.025715872645378113, -0.026507683098316193, -0.024204233661293983, 0.021054983139038086, 0.027227511629462242, -0.0005089412443339825, 0.06359684467315674, -0.04826449975371361, 0.06006968766450882, 0.01418961863964796, -0.03349002078175545, 0.03111458569765091, 0.02940499410033226, 0.018589571118354797, -0.026723632588982582, 0.016834989190101624, -0.0023079500533640385, 0.02985488623380661, -0.0606815405189991, -0.06442464888095856, -0.024726107716560364, 0.006910353433340788, 0.017833750694990158, 0.010437512770295143, -0.06413672119379044, 0.022098734974861145, -0.009182312525808811, 0.06647615879774094, 0.020425133407115936, -0.020929012447595596, 0.006793381180614233, -0.000049101581680588424, -0.07435828447341919, -0.10588677227497101, 0.011202330701053143, 0.027011564001441002, -0.03136652708053589, -0.053879160434007645, -0.012740964069962502, 0.00815205741673708, 0.00728826317936182, 0.02771339751780033, -0.024420181289315224, 0.022764576599001884, 0.02733548730611801, 0.03410187363624573, -0.04347763955593109, -0.024816086515784264, 0.012183097191154957, -0.05863003060221672, -0.020425133407115936, 0.026381714269518852, 0.04020242020487785, 0.05639856308698654, 0.020101210102438927, 0.01650206744670868, 0.06903155148029327, 0.008480479009449482, 0.08853890001773834, -0.007531205657869577, 0.0840039849281311, -0.022314682602882385, -0.008615447208285332, 0.04682484269142151, -0.03930263593792915, -0.003963555674999952, 0.05909791961312294, 0.020623086020350456, -0.015224372036755085, 0.009690690785646439, 0.010914399288594723, -0.053231317549943924, -0.053627222776412964, 0.05902593582868576, 0.006910353433340788, 0.031600471585989, -0.03296814486384392, -0.037790995091199875, 0.019885262474417686, 0.008844892494380474, 0.004854343365877867, -0.009060841053724289, 0.035271596163511276, 0.03194238990545273, 0.01436957623809576, 0.0976807251572609, 0.03055671975016594, 0.0035609016194939613, -0.051359761506319046, 0.020659077912569046, -0.021666837856173515, -0.0022044747602194548, -0.004750867839902639, -0.04185802489519119, -0.01470249705016613, -0.01770778000354767, -0.02699356898665428, 0.025679880753159523, 0.018103687092661858, -0.018112683668732643, -0.051863640546798706, 0.05776623636484146, -0.021000996232032776, -0.023574382066726685, -0.04509725421667099, -0.039554573595523834, 0.022386666387319565, -0.010743440128862858, -0.026687640696763992, 0.002746595535427332, -0.00036385079147294164, -0.0026678643189370632, 0.04902032017707825, -0.018499592319130898, 0.0033404540736228228, -0.008219541050493717, -0.010572480969130993, 0.01583622582256794, -0.004255985841155052, 0.04621298983693123, -0.04704079031944275, 0.03019680455327034, 0.03023279644548893, 0.04426945000886917, 0.0033314561005681753, -0.016457078978419304, 0.006919351406395435, -0.04272181913256645, -0.03176243230700493, -0.02800132893025875, -0.07515009492635727, -0.06874362379312515, -0.03449777886271477, 0.009083335287868977, -0.017887737601995468, -0.02870316058397293, -0.07637380063533783, -0.005668649449944496, -0.023394426330924034, -0.024780096486210823, 0.04884036257863045, -0.04200199246406555, 0.00383308669552207, 0.003992798738181591, 0.011121350340545177, 0.012731966562569141, 0.04790458455681801, -0.021828798577189445, 0.08479579538106918, 0.02843322604894638, 0.026579666882753372, 0.06993133574724197, 0.03154648467898369, -0.027461456134915352, -0.016205139458179474, -0.004087276291102171, 0.05755028873682022, -0.008862888440489769, 0.06154533475637436, 0.012839940376579762, 0.05488692224025726, 0.0930018424987793, -0.005889096762984991, -0.019003471359610558, -0.09631305187940598, 0.012686977162957191, 0.007603188510984182, -0.01652006432414055, -0.007873124442994595, -0.04869639873504639, 0.018103687092661858, 0.004858842119574547, -0.0067303963005542755, 0.00039590566302649677, 0.05805416777729988, -0.024150244891643524, 0.012776955962181091, -0.0016736012184992433, -0.006667411420494318, 0.018463600426912308, -0.06978736817836761, -0.021576859056949615, -0.04160608723759651, -0.016187142580747604, -0.053303297609090805, -0.0321403406560421, -0.03113258257508278, 0.03262622654438019, 0.07281064987182617, 0.04682484269142151, -0.020551104098558426, 0.01583622582256794, 0.006905854679644108, -0.04722074791789055, -0.05647054314613342, 0.010149581357836723, -0.0032819679472595453, 0.008799903094768524, 0.04444940760731697, 0.005034300498664379, -0.006455961614847183, -0.007018327713012695, -0.03446178883314133, 0.03456976264715195, 0.00189292395953089, -0.024078262969851494, -0.021846793591976166, 0.09206606447696686, -0.01532334927469492, 0.012246082536876202, 0.03203236684203148, -0.012309066951274872, 0.04354962334036827, -0.03079066425561905, -0.05013605207204819, -0.03278818726539612, -0.09005054086446762, -0.06406473368406296, 0.004595655016601086, 0.020551104098558426, 0.025086022913455963, 0.011247320100665092, 0.03239228203892708, -0.036315347999334335, 0.04808454215526581, 0.07266668230295181, -0.006833871826529503, 0.003959056455641985, 0.04596104845404625, 0.04182203486561775, 0.00699583301320672, -0.038510825484991074, 0.011697213165462017, 0.012273075990378857, 0.014441559091210365, -0.009960626251995564, 0.037539053708314896, 0.020065218210220337, 0.001798446523025632, 0.03514562547206879, 0.01725788787007332, -0.0074097346514463425, 0.009879645891487598, -0.005047797225415707, 0.024888070300221443, -0.04426945000886917, -0.01509840227663517, -0.04272181913256645, -0.07882121950387955, -0.004456188064068556, 0.02938699722290039, 0.012363053858280182, 0.019039463251829147, -0.07982897758483887, -0.00849397573620081, 0.023286450654268265, 0.013604758307337761, 0.023574382066726685, 0.010212566703557968, -0.11049367487430573, -0.020875025540590286, -0.04480932280421257, 0.03514562547206879, -0.0017905733548104763, -0.03514562547206879, 0.05517485365271568, -0.023286450654268265, 0.0023776835296303034, -0.036693256348371506, -0.0008086822926998138, 0.014360577799379826, 0.0011652223765850067, 0.07939708232879639, -0.06460460275411606, -0.008354509249329567, 0.04444940760731697, 0.03152848780155182, 0.022692592814564705, -0.019795283675193787, 0.00878190714865923, -0.019885262474417686, 0.004876838065683842, -0.04369358718395233, 0.003997297491878271, 0.021018991246819496, 0.010509495623409748, 0.010356532409787178, -0.022476645186543465, -0.05992572009563446, -0.00014452806499321014, 0.023070503026247025, -0.03919466212391853, 0.024096257984638214, -0.03948259353637695, 0.02958494983613491, 0.0011472266633063555, 0.016349105164408684, -0.010014614090323448, -0.03440780192613602, 0.08537165820598602, 0.036891210824251175, -0.035217609256505966, 0.03361599147319794, 0.018499592319130898, 0.052547480911016464, -0.015224372036755085, 0.0009160942281596363, -0.04754467308521271, 0.04556514322757721, -0.018238654360175133, 0.006545940414071083, 0.012399045750498772, 0.04441341757774353, 0.027065550908446312, -0.07122702896595001, -0.05945783108472824, -0.06723198294639587, -0.0021021240390837193, -0.07183888554573059, -0.017743771895766258, 0.016097163781523705, -0.03147450089454651, -0.05517485365271568, 0.009969624690711498, 0.039734531193971634, -0.019957244396209717, 0.016403092071413994, -0.04462936520576477, -0.0034394303802400827, 0.005821612663567066, 0.020695069804787636, 0.04855243116617203, -0.04477333277463913, -0.05049596726894379, -0.053735196590423584, 0.0029355506412684917, -0.015602282248437405, -0.015503305941820145, 0.017698783427476883, -0.003295464674010873, 0.07176689803600311, -0.016079168766736984, -0.09955228120088577, -0.018022704869508743, 0.023376429453492165, -0.0008542339783161879, -0.04768863692879677, 0.009861649945378304, 0.013289833441376686, 0.02866716869175434, 0.06838370859622955, 0.04185802489519119, 0.009348772466182709, -0.02755143493413925, -0.017581811174750328, 0.0605015829205513, 0.00820604432374239, -0.04038237780332565, -0.051287777721881866, -0.04444940760731697, -0.020191188901662827, -0.023376429453492165, -0.023556387051939964, 0.036027416586875916, -0.036999184638261795, -0.013802710920572281, -0.04257785528898239, 0.0147654814645648, -0.04272181913256645, -0.014441559091210365, -0.013388809747993946, 0.012668981216847897, -0.02947697602212429, -0.04912829399108887, -0.016996949911117554, -0.05934985727071762, 0.0046563902869820595, 0.004687882959842682, -0.015269361436367035, 0.005367221310734749, 0.004939822945743799, 0.011715208180248737, -0.035613514482975006, -0.0606815405189991, -0.016475073993206024, 0.05578670650720596, 0.015629276633262634, -0.03334605321288109, 0.04520522803068161, 0.020245175808668137, 0.013352818787097931, -0.0025913824792951345, 0.008260032162070274, 0.007886621169745922, -0.01632211171090603, 0.004345964640378952, 0.0034821704030036926, -0.05999770388007164, -0.010356532409787178, 0.036297351121902466, -0.024906065315008163, 0.011328300461173058, 0.001966031501069665, -0.01612415723502636, -0.025517920032143593, -0.039626557379961014, -0.019471360370516777, -0.04067030921578407, 0.052295539528131485, -0.02785736322402954, -0.007499712985008955, -0.017554817721247673, 0.017194902524352074, 0.053771186619997025, -0.051647692918777466, 0.009951628744602203, -0.003380944486707449, -0.010815422981977463, 0.02789335325360298, -0.03428183123469353, 0.021396901458501816, 0.0031042604241520166, -0.03908668830990791, -0.03070068545639515, 0.052799418568611145, -0.040418367832899094, -0.022674597799777985, 0.00776065094396472, -0.0058711012825369835, 0.011616231873631477, -0.015350342728197575, -0.03554153069853783, 0.019561339169740677, 0.01383870281279087, -0.016816992312669754, 0.025535915046930313, 0.035883449018001556, 0.035919442772865295, -0.010725444182753563, -0.050747908651828766, 0.007958604022860527, 0.02974691241979599, -0.004827349912375212, 0.03349002078175545, 0.03145650401711464, -0.013298830948770046, 0.054131101816892624, 0.04318970814347267, 0.03037676215171814, 0.07378242164850235, -0.012632990255951881, 0.07558199018239975, 0.016637036576867104, 0.022890545427799225, 0.027371477335691452, 0.024960052222013474, -0.002834324724972248, 0.002978290431201458, -0.04300975054502487, 0.04754467308521271, -0.0028320751152932644, 0.020857030525803566, -0.023430416360497475, 0.04297376051545143, 0.003623886499553919, -0.021630845963954926, -0.026363717392086983, -0.010617470368742943, -0.011616231873631477, 0.02909906581044197, 0.003075017360970378, 0.017500830814242363, -0.013172861188650131, 0.004017542582005262, -0.03215833753347397, -0.04344164952635765, -0.0005736133316531777, 0.01641208864748478, -0.0037408587522804737, 0.0633808970451355, -0.021162956953048706, 0.021684832870960236, -0.010374528355896473, 0.0016960959183052182, 0.013487786054611206, 0.03419185429811478, -0.06935547292232513, 0.04646492749452591, 0.002584634115919471, -0.0328601710498333, -0.035037651658058167, 0.04768863692879677, -0.02999885194003582, 0.05733433738350868, -0.04959618300199509, -0.008966363966464996, -0.038438841700553894, -0.0051377760246396065, -0.05794619396328926, 0.010608471930027008, 0.0822044163942337, -0.02951296791434288, 0.03061070665717125, 0.07338651269674301, 0.03053872287273407 ]
21,128
tfields.core
parts
Args: *map_descriptions (Tuple(int, List(List(int)))): tuples of map_dim (int): reference to map position used like: self.maps[map_dim] map_indices_list (List(List(int))): each int refers to index in a map. Returns: List(cls): One TensorMaps or TensorMaps subclass per map_description
def parts(self, *map_descriptions): """ Args: *map_descriptions (Tuple(int, List(List(int)))): tuples of map_dim (int): reference to map position used like: self.maps[map_dim] map_indices_list (List(List(int))): each int refers to index in a map. Returns: List(cls): One TensorMaps or TensorMaps subclass per map_description """ parts = [] for map_description in map_descriptions: map_dim, map_indices_list = map_description for map_indices in map_indices_list: obj = self.copy() map_indices = set(map_indices) # for speed up map_delete_mask = np.array( [i not in map_indices for i in range(len(self.maps[map_dim]))] ) obj.maps[map_dim] = obj.maps[map_dim][~map_delete_mask] obj = obj.cleaned(duplicates=False) parts.append(obj) return parts
(self, *map_descriptions)
[ 0.02929961495101452, -0.023314094170928, -0.08980243653059006, -0.0005050282925367355, -0.018388304859399796, -0.020448893308639526, 0.001491473987698555, 0.021901119500398636, -0.0003648959973361343, 0.044469475746154785, -0.00936586782336235, 0.0497288852930069, -0.06154292821884155, -0.010685626417398453, 0.04289950430393219, -0.050356872379779816, -0.004560280125588179, -0.01835886761546135, 0.0016460182378068566, -0.056715261191129684, -0.006196485832333565, 0.024138329550623894, 0.03569725528359413, 0.03051634319126606, -0.009969326667487621, -0.004682933911681175, 0.03355816751718521, -0.005372250452637672, 0.019673720002174377, -0.05895247310400009, -0.04466572403907776, -0.004037773702293634, -0.010518817231059074, 0.06405488401651382, -0.011421550996601582, -0.030300471931695938, 0.0271605271846056, 0.061071936041116714, 0.0011762529611587524, 0.030477095395326614, 0.03832695633172989, -0.04262475669384003, -0.028318382799625397, -0.01797618716955185, 0.06872555613517761, 0.04266400635242462, 0.005862866528332233, -0.02653253823518753, 0.0044621569104492664, 0.017191201448440552, -0.024491574615240097, -0.035383258014917374, -0.004942961037158966, 0.0596589632332325, -0.03691398352384567, 0.006245547439903021, 0.008870345540344715, 0.022529108449816704, 0.010773937217891216, 0.00932661909610033, -0.03259655833244324, -0.030320096760988235, -0.030791088938713074, -0.012657904997467995, 0.03603087365627289, -0.03455902263522148, -0.058167487382888794, -0.02125350572168827, 0.010489379987120628, 0.01903591863811016, -0.03126208111643791, -0.011706109158694744, 0.01576841250061989, -0.01525817159563303, 0.03754197061061859, 0.011696296744048595, 0.06401563435792923, -0.0010069903219118714, 0.07908737659454346, -0.05153435468673706, -0.0665275901556015, -0.02592417411506176, -0.023765461519360542, -0.007442651782184839, -0.012549969367682934, 0.016926268115639687, 0.05106336250901222, -0.010283321142196655, -0.041329529136419296, -0.075005441904068, -0.02111613191664219, 0.05114186182618141, -0.011951416730880737, -0.002423645230010152, -0.02545318193733692, -0.010832811705768108, -0.06177842617034912, -0.0489438995718956, -0.048904649913311005, -0.032851677387952805, 0.04505821689963341, -0.03585425019264221, -0.02539430744946003, 0.01896723173558712, 0.019134042784571648, -0.0063093276694417, -0.036285992711782455, -0.059148721396923065, -0.045450709760189056, 0.023824336007237434, -0.016936080530285835, 0.06001220643520355, -0.01782900281250477, 0.056244272738695145, -0.01866305060684681, -0.017789753153920174, 0.029378114268183708, 0.002681219018995762, -0.03263580799102783, -0.040858540683984756, -0.01590578630566597, 0.01696551777422428, -0.0321059413254261, 0.021469376981258392, -0.010518817231059074, 0.02547280676662922, 0.07292523235082626, 0.053025826811790466, -0.055773280560970306, -0.07920511811971664, -0.012422408908605576, -0.018643425777554512, -0.023765461519360542, 0.041408028453588486, 0.0172010138630867, -0.020978759974241257, 0.023137472569942474, -0.06684158742427826, -0.03764009475708008, -0.014679244719445705, -0.01567029021680355, -0.020370395854115486, -0.00036428272142075, 0.06970679014921188, -0.07347472012042999, -0.04957188665866852, -0.0044817812740802765, -0.04274250566959381, 0.00951795931905508, -0.01949709840118885, -0.06680233776569366, 0.021076884120702744, 0.0027646238449960947, 0.02209736593067646, -0.08493552356958389, -0.01828037016093731, 0.02845575474202633, -0.005607746075838804, 0.018564926460385323, 0.022921601310372353, -0.008311042562127113, 0.0016411120304837823, 0.01889854669570923, -0.026807283982634544, -0.01272659096866846, 0.0095523027703166, 0.05369306728243828, -0.0749269425868988, 0.002291178796440363, -0.008070641197264194, 0.01453205943107605, -0.0016815878916531801, 0.01628846675157547, -0.0024665743112564087, 0.019634470343589783, 0.03332266956567764, -0.008438603021204472, -0.032694682478904724, 0.001340609509497881, 0.025649428367614746, 0.0027646238449960947, 0.015052112750709057, -0.06201392039656639, 0.009763267822563648, -0.0057549308985471725, 0.07166925072669983, 0.015297421254217625, 0.007045252248644829, 0.026355916634202003, -0.014100316911935806, -0.012697153724730015, 0.011784607544541359, 0.005803992971777916, 0.04017167538404465, 0.051495105028152466, -0.005416405852884054, -0.010047825053334236, 0.01414937898516655, 0.0172010138630867, 0.1047171801328659, -0.09278538823127747, -0.012540156953036785, 0.012549969367682934, 0.008836002089083195, -0.008085358887910843, 0.038896072655916214, 0.025649428367614746, -0.007148281671106815, 0.0013271175557747483, 0.03695323318243027, 0.00201643374748528, -0.018859297037124634, 0.05239783972501755, 0.009714205749332905, 0.09992875903844833, -0.036580365151166916, -0.05910947173833847, 0.0420360192656517, -0.008095171302556992, -0.02945661172270775, -0.021842245012521744, 0.00577455572783947, -0.031615324318408966, 0.015267984010279179, -0.028082886710762978, 0.005740212742239237, -0.010175385512411594, -0.028710875660181046, 0.0033828006125986576, -0.023686962202191353, -0.0309677105396986, -0.0565975159406662, -0.009508146904408932, -0.03418615460395813, 0.0627204105257988, 0.03304792568087578, -0.014777367934584618, -0.053575318306684494, 0.08383654057979584, 0.00013031999696977437, -0.039425939321517944, -0.04305649921298027, -0.029319239780306816, 0.011264554224908352, -0.0006270691519603133, 0.033989910036325455, -0.04368449002504349, 0.007010909263044596, 0.03198819234967232, 0.009576832875609398, 0.0028087792452424765, 0.013992381282150745, 0.010077262297272682, 0.04183977097272873, 0.06797982007265091, 0.011539299041032791, 0.0028823716565966606, -0.044783469289541245, -0.027337148785591125, -0.032145190984010696, 0.009660238400101662, -0.012098602019250393, 0.037816718220710754, -0.0014031630707904696, 0.062131669372320175, -0.010145948268473148, 0.0787341296672821, 0.04450872540473938, -0.0014988332986831665, -0.015542729757726192, 0.08014710247516632, 0.11256703734397888, -0.04725617915391922, -0.0025291277561336756, -0.009262838400900364, 0.014080692082643509, 0.03418615460395813, -0.029240740463137627, -0.020252646878361702, 0.01536610722541809, 0.01767200417816639, 0.004965038504451513, -0.030928460881114006, -0.003289583371952176, 0.03234143555164337, -0.008811471983790398, -0.016887018457055092, 0.003009931882843375, 0.0037164196837693453, -0.03534400835633278, 0.015434794127941132, 0.041094034910202026, 0.007172812707722187, -0.06535011529922485, -0.006873536854982376, -0.015267984010279179, -0.02745489776134491, 0.023686962202191353, -0.06613510102033615, -0.007167906500399113, 0.018555114045739174, -0.03249843418598175, 0.042860254645347595, 0.023529965430498123, 0.028122136369347572, 0.00009919651347445324, 0.03149757534265518, 0.0070845019072294235, 0.0748877003788948, 0.014021818526089191, 0.034460898488759995, 0.005622464697808027, -0.010852436535060406, 0.05871697887778282, -0.0382288359105587, -0.004523483570665121, -0.004251191858202219, 0.01599409617483616, 0.03830733150243759, 0.06845080852508545, -0.010028200224041939, 0.0004424747312441468, 0.0097534554079175, 0.06974603980779648, 0.019398974254727364, -0.0589132234454155, 0.03404878079891205, -0.06923579424619675, 0.011578548699617386, -0.06601735204458237, -0.06028695032000542, -0.03088921308517456, 0.021076884120702744, 0.014051255770027637, -0.020684389397501945, -0.013060210272669792, 0.058088988065719604, 0.0206451416015625, -0.010656189173460007, -0.013491952791810036, 0.057461000978946686, -0.01189254317432642, -0.007795895449817181, 0.060836441814899445, -0.01859436370432377, 0.01204953994601965, -0.00703543983399868, 0.015729162842035294, 0.007300373166799545, 0.0367177352309227, 0.01576841250061989, -0.05039612203836441, 0.002914261771366, 0.03764009475708008, 0.05298657715320587, 0.054478053003549576, 0.02301972359418869, 0.028043637052178383, -0.013707824051380157, 0.002146447077393532, 0.07637917250394821, -0.03151720017194748, 0.018447179347276688, -0.07323922216892242, 0.019291039556264877, -0.03610937297344208, 0.019742406904697418, -0.010616940446197987, -0.03546175733208656, -0.047138430178165436, -0.008198200725018978, 0.016690772026777267, 0.009449273347854614, 0.013786322437226772, 0.0017882969696074724, -0.03432352840900421, -0.06028695032000542, 0.02545318193733692, -0.04831590875983238, 0.028553878888487816, -0.01821168325841427, -0.025374682620167732, 0.03173307329416275, 0.015631040558218956, -0.02721940167248249, 0.0282987579703331, 0.004773698281496763, -0.00703543983399868, -0.018761172890663147, 0.014394686557352543, 0.02990797907114029, 0.015248359180986881, -0.018447179347276688, -0.004216848406940699, -0.005436030216515064, 0.008958656340837479, -0.03259655833244324, 0.009606270119547844, -0.01979146897792816, -0.06248491257429123, -0.021842245012521744, -0.07449520379304886, -0.02898562140762806, 0.06122893467545509, 0.025590553879737854, -0.03646261617541313, -0.02170487307012081, 0.06032619997859001, 0.02698390558362007, -0.014846053905785084, -0.000054466094297822565, 0.009611176326870918, 0.09977176040410995, 0.020291896536946297, 0.018986856564879417, 0.00274254591204226, -0.03196856752038002, 0.025727927684783936, 0.02476631850004196, 0.004273269325494766, 0.030084600672125816, 0.03187044709920883, 0.019987715408205986, -0.009199058637022972, -0.024079455062747, -0.06224941834807396, -0.01821168325841427, 0.01036181952804327, -0.0072611235082149506, 0.035971999168395996, -0.04219301417469978, -0.06413338333368301, -0.051887597888708115, -0.05710775777697563, 0.00011314842413412407, 0.018309805542230606, 0.005072974134236574, 0.010754312388598919, -0.006804850418120623, -0.009032249450683594, 0.03320492058992386, 0.025649428367614746, 0.025669053196907043, -0.0389941968023777, 0.07712490856647491, 0.01982090435922146, -0.05942346528172493, 0.011352865025401115, 0.025355059653520584, 0.011029058136045933, -0.013904070481657982, -0.0055979336611926556, 0.012402784079313278, -0.04560770466923714, 0.10361819714307785, 0.007099220063537359, -0.048747651278972626, -0.01499323919415474, -0.05377156287431717, 0.01318777073174715, 0.054949045181274414, 0.01441431138664484, 0.01576841250061989, 0.01307002268731594, 0.023745836690068245, 0.03263580799102783, 0.05542003735899925, 0.0130013357847929, -0.007894018664956093, 0.00910093542188406, 0.053653817623853683, -0.027886640280485153, 0.008732972666621208, -0.061974670737981796, -0.00493069551885128, 0.037208352237939835, 0.0451367162168026, 0.057696495205163956, -0.00920887105166912, -0.016631897538900375, 0.021979616954922676, -0.028691250830888748, -0.0214105024933815, -0.03548138216137886, -0.027239026501774788, 0.04144727811217308, -0.007079595699906349, -0.029868729412555695, 0.007521150168031454, -0.02561017870903015, -0.016160905361175537, -0.04501896724104881, 0.009581739082932472, -0.004040226340293884, 0.03962218388915062, 0.019300851970911026, 0.02951548621058464, 0.04289950430393219, 0.04690293222665787, -0.03754197061061859, 0.010666001588106155, -0.012913024984300137, 0.01958540827035904, -0.004746714141219854, -0.008301230147480965, -0.014924553222954273, 0.021371252834796906, 0.009149996563792229, -0.005686244927346706, -0.029849106445908546, -0.04419473186135292, -0.05176984891295433, -0.0026272512041032314, 0.03141907975077629, 0.021626373752951622, 0.019771844148635864, -0.03302830085158348, -0.023431843146681786, -0.003637921065092087, 0.04537221044301987, 0.0172010138630867, 0.013295706361532211, -0.006701820995658636, -0.007094313856214285, -0.02280385233461857, -0.033754412084817886, -0.011784607544541359, -0.01980127952992916, 0.024413075298070908, -0.02103763446211815, -0.029692107811570168, -0.025904549285769463, -0.020821763202548027, 0.006996190641075373, 0.03400953486561775, 0.0374438501894474, 0.030418220907449722, -0.1215943843126297, 0.04391998425126076, 0.07013852894306183, 0.030849963426589966, 0.0015503480099141598, 0.05797124281525612, -0.03581500053405762, 0.0021219162736088037, 0.06279890984296799, 0.007584930397570133, -0.039661433547735214, -0.0077124908566474915, 0.010224446654319763, 0.02347109094262123, -0.0024861989077180624, 0.019084980711340904, -0.013629325665533543, 0.02608117088675499, 0.017642568796873093, -0.03355816751718521, -0.10644415020942688, -0.0489438995718956, -0.0025082766078412533, 0.06032619997859001, 0.004422907251864672, 0.08171708136796951, 0.0543210543692112, -0.020782513543963432, 0.012648092582821846, -0.03809146210551262, 0.017789753153920174, -0.038582079112529755, 0.015297421254217625, -0.012716778554022312, 0.029378114268183708, 0.016484713181853294, -0.011814044788479805, 0.013109271414577961, 0.001075676642358303, 0.021685248240828514, -0.03281242772936821, 0.004574998281896114, -0.06833305954933167, -0.02494294010102749, 0.05742175132036209, 0.016926268115639687, -0.012579405680298805, 0.05443880334496498, 0.01981109194457531, -0.01857473887503147, 0.034676771610975266, 0.037208352237939835, -0.02753339521586895, 0.09223589301109314, 0.05102411285042763, 0.020704014226794243, 0.022686105221509933, -0.05337907001376152, -0.053496818989515305, -0.009625894948840141, -0.02470744587481022, -0.11978891491889954, 0.01487549114972353, 0.020900260657072067, 0.01414937898516655, 0.03687473386526108, 0.04388073459267616, 0.009974232874810696, -0.07057027518749237, -0.0032773178536444902, 0.00644670007750392, 0.01888873428106308, 0.01750519499182701, -0.016013721004128456, 0.028808997943997383, 0.06162142753601074, -0.038130711764097214, 0.007246405351907015, -0.06366239488124847, -0.0420360192656517, 0.05710775777697563, 0.03130133077502251, -0.03981843218207359, -0.03661961108446121, -0.03875869885087013, -0.004962585400789976, -0.01742669753730297, -0.04596095159649849, -0.0017196106491610408, -0.0027106560301035643, -0.05184834823012352, 0.008502383716404438, 0.02194036729633808, -0.008423884399235249, -0.034912265837192535, 0.008276700042188168, -0.008021579124033451, 0.00439592357724905, -0.020762888714671135, -0.019016293808817863, -0.022744979709386826, -0.039268940687179565, 0.030987335368990898, -0.02814175933599472, -0.03012385033071041, 0.008575975894927979, -0.003711513476446271, 0.012098602019250393, -0.060522448271512985, 0.019977902993559837, 0.009640613570809364, 0.05683301016688347, 0.037424225360155106, -0.03234143555164337, 0.07594742625951767, -0.009949701838195324, 0.025198061019182205, 0.014178815297782421, 0.03336191922426224, -0.03259655833244324, -0.04651043936610222, -0.016622085124254227, -0.004874274600297213, -0.014178815297782421, -0.05133810639381409, -0.01958540827035904, -0.030378971248865128, -0.038111086934804916, -0.018309805542230606, 0.038366205990314484, 0.029927603900432587, 0.03503001481294632, 0.02280385233461857, -0.0035864063538610935, -0.03206669166684151, 0.010042918846011162, -0.01789768785238266, 0.01318777073174715, 0.018712112680077553, 0.0037703874986618757, 0.0112743666395545, 0.007339622359722853, -0.017868252471089363, 0.05306507647037506, 0.04093703627586365, -0.00940021127462387, 0.018299993127584457, -0.011706109158694744, 0.030948085710406303, -0.028495004400610924, -0.0002848641888704151, 0.002693484304472804, 0.01866305060684681, 0.04023054987192154, -0.05820673704147339, 0.08524951338768005, 0.005058255512267351, -0.07626142352819443, 0.08964543789625168, 0.02784739062190056, -0.07508394122123718, 0.04886540025472641, 0.022587981075048447, -0.019624657928943634, -0.004150615073740482, -0.07900887727737427, 0.013040585443377495, -0.016082407906651497, 0.042821004986763, -0.03726722672581673, 0.012599030509591103, 0.0018226401880383492, -0.005176003556698561, 0.016082407906651497, 0.06370164453983307, 0.09608232975006104, -0.06554635614156723, 0.012716778554022312, -0.06605660170316696, 0.03614862263202667, 0.0070845019072294235, 0.02301972359418869, 0.007692866027355194, -0.010685626417398453, 0.010872060433030128, 0.08124608546495438, 0.08501402288675308, -0.030614467337727547, 0.032380685210227966, -0.02661103755235672, -0.02882862277328968, -0.034912265837192535, -0.0321255661547184, -0.010528629645705223, 0.009817235171794891, -0.08391503989696503, -0.05651901662349701, -0.06432963162660599, -0.019251789897680283, 0.030535968020558357, -0.039739932864904404, -0.027867015451192856, 0.015474042855203152, -0.020625516772270203, -0.03565800562500954, -0.004891446325927973, 0.08352254331111908, -0.08454302698373795, -0.013217207044363022, 0.031105084344744682, 0.018869109451770782, -0.0187219250947237, -0.035442132502794266, 0.07606517523527145, 0.017721066251397133, -0.06436888128519058, -0.03059484250843525, 0.021999241784214973, 0.004903711378574371, 0.013334955088794231, -0.07614367455244064, -0.041408028453588486, -0.03349929302930832, 0.005612652283161879, 0.01128417905420065, -0.051416605710983276, 0.021822620183229446, -0.02790626510977745, 0.026395166292786598, -0.01097018364816904, -0.03340116888284683 ]
21,129
tfields.core
paths
Find the minimal amount of graphs building the original graph with maximum of two links per node i.e. "o-----o o-----o" " \ / \ /" "" \ / \ /"" "o--o--o o--o 8--o" | | | = | + + o o o / \ / \ / \ / \ o o o o where 8 is a duplicated node (one has two links and one has only one.) Examples: >>> import tfields Ascii figure above: >>> a = tfields.TensorMaps([[1, 0], [3, 0], [2, 2], [0, 4], [2, 4], ... [4, 4], [1, 6], [3, 6], [2, 2]], ... maps=[[[0, 2], [2, 4], [3, 4], [5, 4], ... [1, 8], [6, 4], [6, 7], [7, 4]]]) >>> paths = a.paths(2) >>> assert paths[0].equal([[ 1., 0.], ... [ 2., 2.], ... [ 2., 4.], ... [ 0., 4.]]) >>> assert paths[0].maps[4].equal([[ 0., 1., 2., 3.]]) >>> assert paths[1].equal([[ 4., 4.], ... [ 2., 4.], ... [ 1., 6.], ... [ 3., 6.], ... [ 2., 4.]]) >>> assert paths[2].equal([[ 3., 0.], ... [ 2., 2.]]) Note: The Longest path problem is a NP-hard problem.
def paths( self, map_dim ): # noqa: E501 pylint: disable=too-many-locals,too-many-branches,too-many-statements """ Find the minimal amount of graphs building the original graph with maximum of two links per node i.e. "o-----o o-----o" " \\ / \\ /" "" \\ / \\ /"" "o--o--o o--o 8--o" | | | = | + + o o o / \\ / \\ / \\ / \\ o o o o where 8 is a duplicated node (one has two links and one has only one.) Examples: >>> import tfields Ascii figure above: >>> a = tfields.TensorMaps([[1, 0], [3, 0], [2, 2], [0, 4], [2, 4], ... [4, 4], [1, 6], [3, 6], [2, 2]], ... maps=[[[0, 2], [2, 4], [3, 4], [5, 4], ... [1, 8], [6, 4], [6, 7], [7, 4]]]) >>> paths = a.paths(2) >>> assert paths[0].equal([[ 1., 0.], ... [ 2., 2.], ... [ 2., 4.], ... [ 0., 4.]]) >>> assert paths[0].maps[4].equal([[ 0., 1., 2., 3.]]) >>> assert paths[1].equal([[ 4., 4.], ... [ 2., 4.], ... [ 1., 6.], ... [ 3., 6.], ... [ 2., 4.]]) >>> assert paths[2].equal([[ 3., 0.], ... [ 2., 2.]]) Note: The Longest path problem is a NP-hard problem. """ obj = self.cleaned() flat_map = np.array(obj.maps[map_dim].flat) values, counts = np.unique(flat_map, return_counts=True) counts = dict(zip(values, counts)) # last is a helper last = np.full(max(flat_map) + 1, -3, dtype=int) duplicat_indices = [] d_index = len(obj) for i, val in enumerate(flat_map.copy()): if counts[val] > 2: # The first two occurences are uncritical if last[val] < -1: last[val] += 1 continue # Now we talk about nodes with more than two edges if last[val] == -1: # append a point and re-link duplicat_indices.append(val) flat_map[i] = d_index last[val] = d_index d_index += 1 else: # last occurence of val was a duplicate, so we use the same # value again. flat_map[i] = last[val] last[val] = -1 if duplicat_indices: duplicates = obj[duplicat_indices] obj = type(obj).merged(obj, duplicates) obj.maps = [flat_map.reshape(-1, *obj.maps[map_dim].shape[1:])] paths = obj.parts(obj.disjoint_map(map_dim)) # remove duplicate map entries and sort sorted_paths = [] for path in paths: # find start index values, counts = np.unique(path.maps[map_dim].flat, return_counts=True) first_node = None for value, count in zip(values, counts): if count == 1: first_node = value break edges = [list(edge) for edge in path.maps[map_dim]] if first_node is None: first_node = 0 # edges[0][0] path = path[list(range(len(path))) + [0]] found_first_node = False for edge in edges: if first_node in edge: if found_first_node: edge[edge.index(first_node)] = len(path) - 1 break found_first_node = True # follow the edges until you hit the end chain = [first_node] visited = set() n_edges = len(edges) node = first_node while len(visited) < n_edges: for i, edge in enumerate(edges): if i in visited: continue if node not in edge: continue # found edge visited.add(i) if edge.index(node) != 0: edge = list(reversed(edge)) chain.extend(edge[1:]) node = edge[-1] path = path[chain] path_map = Maps.to_map([sorted(chain)]) path.maps[dim(path_map)] = path_map sorted_paths.append(path) paths = sorted_paths return paths
(self, map_dim)
[ 0.01686958223581314, -0.00918871071189642, -0.039102621376514435, 0.05683238059282303, -0.02643272466957569, 0.005682226270437241, -0.0322616845369339, -0.00879910122603178, -0.028861457481980324, 0.017395809292793274, -0.022222917526960373, 0.026635117828845978, -0.033314138650894165, 0.03181641921401024, 0.043433863669633865, -0.005267317406833172, -0.0076859318651258945, 0.05128677189350128, -0.0030865164007991552, 0.042583804577589035, -0.004055480007082224, -0.016454674303531647, 0.07541219890117645, 0.027181584388017654, -0.018923887982964516, -0.037078674882650375, 0.032524798065423965, 0.0008715614094398916, -0.01563497632741928, -0.05699429661035538, -0.04177422821521759, -0.029650796204805374, 0.018407780677080154, 0.020431727170944214, -0.021494297310709953, -0.036127422004938126, 0.02738397754728794, 0.020654359832406044, -0.03790849447250366, -0.03689651936292648, -0.014289053156971931, -0.009790834970772266, -0.05076054483652115, -0.0284566693007946, 0.07954104244709015, 0.03023773990571499, -0.02669583633542061, 0.006684078834950924, -0.027201823890209198, 0.0023035025224089622, -0.0467936135828495, -0.0657782182097435, -0.006845994386821985, 0.026716075837612152, -0.003668400691822171, -0.009451824240386486, 0.006673959083855152, -0.013509834185242653, 0.017456527799367905, -0.0278292465955019, 0.008637186139822006, -0.027120865881443024, -0.015726054087281227, 0.011678163893520832, -0.03580358996987343, -0.03892046585679054, -0.040742017328739166, 0.00045918257092125714, -0.018357181921601295, 0.027707809582352638, -0.029428163543343544, 0.022465791553258896, 0.036127422004938126, -0.06258038431406021, 0.014440848492085934, -0.0026766674127429724, 0.055010829120874405, -0.012811573222279549, 0.04918186739087105, -0.061932723969221115, -0.03013654425740242, -0.05403933674097061, 0.004042830318212509, -0.04731983691453934, -0.002512221923097968, 0.024489736184477806, 0.053148798644542694, 0.011728762648999691, -0.08783922344446182, -0.049667615443468094, -0.01287229172885418, 0.03412371501326561, -0.01595880836248398, 0.020198972895741463, 0.000258211133768782, -0.018235746771097183, 0.01652551256120205, -0.022061001509428024, 0.03290934860706329, -0.024044468998908997, 0.05148916691541672, -0.06436145305633545, -0.06088026985526085, 0.0374632254242897, -0.013995581306517124, -0.038758549839258194, -0.014562285505235195, -0.014086658135056496, -0.05084150284528732, -0.0012251193402335048, -0.07415734976530075, 0.10508323460817337, 0.018094070255756378, 0.02997462823987007, 0.002762685064226389, 0.01946023292839527, 0.047076962888240814, -0.011334093287587166, 0.013681869022548199, 0.025724343955516815, -0.031188994646072388, 0.043595779687166214, -0.047643668949604034, 0.0017317380988970399, -0.0021782710682600737, 0.0056872861459851265, 0.052541617304086685, 0.04464823007583618, -0.04351482167840004, -0.07350968569517136, 0.034265391528606415, 0.020532922819256783, -0.023578960448503494, 0.07601938396692276, 0.03643101453781128, -0.019652508199214935, -0.030096065253019333, -0.035277362912893295, -0.02973175421357155, 0.03284863010048866, 0.01562485657632351, -0.06557582318782806, 0.018974486738443375, -0.003202893305569887, -0.012497861869633198, -0.012953248806297779, 0.021231185644865036, -0.00500167440623045, 0.041571833193302155, -0.019692987203598022, -0.0061730328015983105, -0.02979247272014618, -0.009406285360455513, 0.0384347178041935, -0.05278449133038521, -0.04946522042155266, 0.0018645594827830791, -0.020887114107608795, 0.022566989064216614, 0.004796749912202358, -0.012933009304106236, -0.06921892613172531, 0.04784606397151947, -0.027181584388017654, -0.05497035011649132, -0.00643614586442709, 0.0635518804192543, -0.04497206211090088, -0.038475196808576584, -0.0018949186196550727, 0.012680016458034515, -0.014046179130673409, -0.03756442293524742, -0.015999287366867065, 0.007427878677845001, 0.04193614423274994, -0.013702108524739742, 0.029144810512661934, -0.030035346746444702, 0.025562427937984467, -0.016110602766275406, 0.011880557984113693, -0.014046179130673409, 0.028011400252580643, -0.004581705667078495, 0.048048458993434906, 0.03833352029323578, -0.03481185808777809, 0.02760661207139492, 0.051246292889118195, -0.047076962888240814, 0.02574458345770836, 0.04452679306268692, 0.0708380788564682, 0.04509349912405014, -0.009826254099607468, -0.0120930727571249, -0.001459770486690104, 0.00551019050180912, 0.09123944491147995, -0.05335119366645813, -0.0003247799468226731, 0.02181812934577465, -0.0009563140920363367, -0.03294982761144638, 0.006628420203924179, 0.0369977168738842, 0.03675484284758568, 0.022344354540109634, 0.08816304802894592, -0.06375427544116974, -0.07784093171358109, 0.021777650341391563, -0.05735860764980316, 0.003746828529983759, -0.04440535604953766, -0.04098489135503769, 0.06023260951042175, -0.0056872861459851265, -0.04671265557408333, 0.01770951971411705, 0.024429017677903175, 0.0029549598693847656, -0.004483038559556007, -0.02631128765642643, -0.03734178841114044, 0.021555015817284584, -0.0072356038726866245, 0.043960090726614, -0.04086345434188843, 0.026837512850761414, -0.05043671280145645, 0.003691169898957014, -0.04731983691453934, 0.08451995253562927, -0.010013468563556671, 0.008637186139822006, -0.016910061240196228, 0.04642930254340172, 0.007301382254809141, -0.04549828916788101, -0.06796407699584961, -0.014410489238798618, -0.01119241677224636, 0.010676310397684574, 0.04772462695837021, 0.00681563513353467, -0.023599199950695038, 0.026675596833229065, -0.006770096719264984, -0.005646807141602039, -0.01642431505024433, -0.026068413630127907, -0.008424671366810799, 0.019146520644426346, -0.02181812934577465, 0.034892816096544266, -0.04861516132950783, -0.04294811561703682, -0.013651509769260883, -0.02608865313231945, -0.00860682688653469, -0.003334449604153633, 0.009704817086458206, 0.00495866546407342, -0.013428876176476479, 0.046186428517103195, 0.0031953034922480583, -0.006937072146683931, -0.007225484121590853, 0.02444925718009472, 0.09026795625686646, -0.05901823937892914, 0.000567337148822844, -0.03456898406147957, 0.025056440383195877, 0.020846635103225708, -0.03408323600888252, 0.012973488308489323, 0.025623146444559097, -0.04861516132950783, -0.049384262412786484, -0.034204673022031784, -0.006542402785271406, -0.0396895632147789, 0.027788767591118813, -0.002924600848928094, -0.03434634953737259, -0.015503419563174248, -0.04335290566086769, 0.06003021448850632, 0.03390108048915863, -0.001689994242042303, 0.0017709520179778337, 0.02963055670261383, -0.042745720595121384, 0.01543258223682642, -0.0026108892634510994, -0.029326966032385826, 0.0010132375173270702, 0.0343058705329895, -0.05671094357967377, 0.10953591018915176, -0.034670181572437286, 0.06687115132808685, -0.01222462859004736, 0.0060768951661884785, -0.007372220046818256, 0.06476624310016632, -0.007007909938693047, -0.011313853785395622, 0.02406470850110054, -0.020532922819256783, 0.004131378140300512, -0.013469355180859566, -0.011587086133658886, -0.021959805861115456, -0.014967074617743492, 0.04699600860476494, 0.08970125019550323, -0.030662769451737404, 0.052136827260255814, -0.05258209630846977, 0.027910204604268074, -0.006608181167393923, -0.01065607089549303, 0.12864194810390472, -0.01979418285191059, 0.03948717191815376, -0.03317246213555336, 0.03776681795716286, -0.010170324705541134, 0.024024229496717453, -0.0005603798199445009, -0.01065607089549303, -0.0027905143797397614, 0.061932723969221115, -0.01171864289790392, -0.05930159240961075, -0.004012471064925194, 0.07359064370393753, -0.0033698687329888344, -0.002871472155675292, 0.042259976267814636, 0.034832097589969635, 0.014744440093636513, 0.01607012376189232, -0.0033723986707627773, -0.043312426656484604, 0.04642930254340172, 0.04533637315034866, 0.03333437815308571, -0.0540798157453537, 0.019692987203598022, 0.015867730602622032, 0.07994583249092102, 0.00514588039368391, 0.002435059053823352, 0.005358394701033831, 0.04181470721960068, 0.04930330440402031, -0.037523943930864334, -0.03564167395234108, -0.038535915315151215, 0.06383523344993591, -0.009563140571117401, 0.007908565923571587, 0.02141333930194378, 0.03329389914870262, -0.0452149361371994, -0.02210148051381111, -0.04177422821521759, 0.02343728579580784, 0.01704161800444126, -0.02305273525416851, 0.04327194765210152, -0.006916832644492388, 0.02232411503791809, 0.0001399368338752538, 0.038657352328300476, -0.013135404326021671, 0.020927593111991882, 0.03981100022792816, 0.027788767591118813, -0.02119070664048195, 0.00619833217933774, 0.09609691798686981, -0.0013497184263542295, 0.003855615621432662, -0.05229874327778816, 0.03323318064212799, 0.011232895776629448, 0.05800626799464226, -0.024307580664753914, -0.006152793299406767, 0.021494297310709953, -0.002572940196841955, 0.03632981702685356, -0.01355031318962574, -0.03665364533662796, -0.005914979614317417, -0.04570068046450615, -0.008212157525122166, 0.04889851436018944, 0.00975035596638918, -0.04946522042155266, -0.008404431864619255, 0.049100909382104874, 0.023821834474802017, 0.039041902869939804, -0.004472918808460236, 0.03973004221916199, 0.027728049084544182, 0.0016760795842856169, 0.020340649411082268, -0.07035233080387115, -0.06824743002653122, 0.027181584388017654, 0.0920490249991417, -0.005292616784572601, 0.027586372569203377, 0.03359748795628548, 0.00451086787506938, -0.01258893869817257, 0.01076738815754652, -0.05525370314717293, -0.038252562284469604, 0.043433863669633865, -0.0019606968853622675, 0.10411173850297928, 0.026999428868293762, -0.05229874327778816, 0.030784206464886665, -0.06658779829740524, -0.02821379527449608, 0.033374857157468796, 0.04695552960038185, -0.0008544843294657767, 0.06646636128425598, -0.01799287274479866, 0.03920381888747215, 0.014471207745373249, 0.03513568639755249, -0.060920748859643936, 0.07427878677845001, 0.012680016458034515, -0.024044468998908997, -0.012639537453651428, 0.017567843198776245, 0.004865058232098818, 0.0008702964405529201, -0.033921319991350174, -0.0018683543894439936, -0.05132725089788437, 0.0003393270599190146, 0.012214508838951588, -0.04189566522836685, 0.0005606960621662438, -0.08630102127790451, 0.03833352029323578, 0.03329389914870262, 0.0147849190980196, 0.03594526648521423, 0.005530430004000664, 0.00028604036197066307, -0.01613084226846695, 0.026493443176150322, 0.02226339653134346, -0.032180726528167725, -0.06112314388155937, 0.0622970312833786, -0.031168755143880844, -0.06472576409578323, -0.036957237869501114, 0.003964402712881565, -0.005798602942377329, 0.003023268189281225, 0.029306726530194283, -0.006598061416298151, -0.002260493813082576, -0.02934720553457737, -0.048696119338274, 0.0341641940176487, -0.03491305559873581, -0.0033167400397360325, 0.03418443351984024, -0.021777650341391563, 0.01239666435867548, 0.009988169185817242, -0.016515392810106277, -0.03250455856323242, -0.06553534418344498, -0.020107895135879517, 0.019713226705789566, -0.0015344034181907773, 0.05492987111210823, 0.020674599334597588, -0.022526510059833527, 0.020269811153411865, -0.05229874327778816, -0.007144526578485966, -0.02125142514705658, -0.032180726528167725, 0.048331812024116516, -0.011688283644616604, 0.05339167267084122, 0.018589936196804047, 0.01906556263566017, 0.019045323133468628, 0.004232575185596943, -0.013469355180859566, -0.06055643782019615, 0.028355471789836884, 0.04630786553025246, 0.02238483354449272, 0.033820122480392456, -0.015584377571940422, -0.0029372505377978086, -0.009330387227237225, 0.001602711621671915, 0.007918685674667358, 0.026048174127936363, -0.018994726240634918, -0.046186428517103195, -0.05161060020327568, -0.03434634953737259, 0.05626567453145981, -0.013165763579308987, 0.030399655923247337, -0.027120865881443024, 0.003220602637156844, -0.004371721763163805, 0.013560432940721512, 0.04424344003200531, 0.05642759054899216, 0.030824685469269753, 0.028436429798603058, -0.0661020502448082, -0.017719639465212822, 0.015736173838377, 0.014612884260714054, -0.024469496682286263, 0.03209976851940155, -0.038819268345832825, 0.03626909852027893, 0.01995609886944294, 0.0739954337477684, -0.018063711002469063, -0.005211658775806427, -0.012467502616345882, 0.024084948003292084, 0.04043842479586601, 0.02422662451863289, -0.001023357268422842, 0.0423814132809639, 0.01076738815754652, -0.0322616845369339, -0.08205074071884155, -0.009305087849497795, -0.02131214179098606, -0.013651509769260883, 0.025096919387578964, 0.0060768951661884785, 0.015867730602622032, -0.024469496682286263, -0.012548459693789482, -0.031229473650455475, 0.009178590960800648, -0.001185905421152711, 0.04250285029411316, -0.013621151447296143, 0.02618985064327717, -0.04145039618015289, -0.02805187925696373, 0.02979247272014618, 0.015715934336185455, 0.00995275005698204, -0.022222917526960373, 0.032808151096105576, -0.03734178841114044, -0.006334948353469372, 0.08277935534715652, 0.03655245155096054, 0.0708380788564682, 0.020219212397933006, 0.020603761076927185, -0.02339680679142475, 0.05841105803847313, 0.0029018314089626074, -0.07063568383455276, -0.0038859746418893337, -0.026898231357336044, 0.00021235612803138793, -0.005849201697856188, -0.055739451199769974, -0.020927593111991882, 0.0120930727571249, -0.003928983584046364, -0.021777650341391563, -0.011617445386946201, -0.00877380184829235, 0.015361743979156017, -0.017719639465212822, 0.0540798157453537, -0.008925598114728928, -0.061527933925390244, 0.059908777475357056, -0.008090720511972904, 0.017608322203159332, 0.03813112527132034, 0.008449970744550228, 0.02041148766875267, 0.050801023840904236, -0.061487454921007156, -0.05735860764980316, -0.07877194881439209, -0.0226074680685997, 0.0569133386015892, 0.02349800430238247, -0.034265391528606415, 0.005024443846195936, -0.0268779918551445, 0.023072974756360054, -0.042583804577589035, -0.028881696984171867, 0.043595779687166214, 0.03552023693919182, -0.013924743048846722, 0.020826395601034164, 0.010898944921791553, -0.051367729902267456, -0.04594355449080467, -0.04752223193645477, 0.006790336221456528, 0.019267957657575607, -0.058613453060388565, 0.015645096078515053, -0.02950911968946457, -0.00927472859621048, 0.06343044340610504, -0.08322462439537048, -0.010048887692391872, -0.026007695123553276, -0.007220424246042967, -0.027687570080161095, -0.005732824560254812, 0.024024229496717453, 0.01764880120754242, 0.04493158310651779, 0.029549598693847656, -0.027525654062628746, 0.03143186867237091, -0.0003148183459416032, -0.01607012376189232, 0.016373716294765472, 0.03709891438484192, -0.013722348026931286, -0.04181470721960068, -0.00248818751424551, -0.011951396241784096, 0.002548906020820141, -0.03545951843261719, 0.014865877106785774, -0.0907537043094635, -0.04298859462141991, -0.026392245665192604, 0.09933523088693619, -0.0076403929851949215, 0.009067274630069733, 0.015351624228060246, -0.04290763661265373, -0.04982953146100044, -0.000057042048865696415, -0.0036456312518566847, 0.026554159820079803, -0.00668913871049881, 0.02400398999452591, 0.031006839126348495, -0.013449115678668022, -0.04695552960038185, 0.02928648702800274, 0.06217559427022934, -0.05784435197710991, 0.0226074680685997, -0.012933009304106236, 0.02491476573050022, -0.019197119399905205, -0.04861516132950783, 0.027970923110842705, 0.04841277003288269, 0.029367445036768913, -0.03487257659435272, 0.07456213980913162, 0.021575255319476128, -0.052703533321619034, 0.05100341886281967, 0.013428876176476479, -0.019095921888947487, 0.028355471789836884, -0.013621151447296143, 0.04829133301973343, 0.002306032460182905, -0.04230045527219772, -0.009932510554790497, -0.009846493601799011, 0.03102707862854004, -0.044324398040771484, 0.037139393389225006, -0.01777023822069168, 0.06727593392133713, -0.007220424246042967, 0.0015369333559647202, 0.0720929279923439, -0.04671265557408333, -0.028760259971022606, -0.07031185179948807, 0.003850555745884776, 0.006279289722442627, -0.027201823890209198, -0.015554018318653107, -0.0037063495256006718, -0.03525712341070175, -0.003283851081505418, 0.0711619108915329, 0.002279468346387148, 0.058451537042856216, -0.017497006803750992, -0.025096919387578964, -0.07869099080562592, -0.042543329298496246, -0.07468357682228088, 0.03928477689623833, -0.03552023693919182, 0.0020429196301847696, -0.035722631961107254, -0.008141319267451763, 0.027404217049479485, -0.0009689637226983905, -0.011698403395712376, 0.030460374429821968, -0.011172177270054817, -0.04723887890577316, -0.07435974478721619, 0.01703149825334549, 0.028517387807369232, 0.0014154966920614243, 0.02900313399732113, 0.023821834474802017, 0.0005401403759606183, -0.038090646266937256, 0.09561116993427277, 0.006269169971346855, -0.01506827212870121, -0.03608694300055504, -0.04201710224151611, 0.01737556979060173, -0.03165450319647789, -0.04962713643908501, -0.012700255960226059, -0.04861516132950783, -0.008358893916010857, -0.014865877106785774, -0.057480040937662125, 0.025724343955516815, 0.020553162321448326, 0.06565678119659424, -0.006420966237783432, 0.015341504476964474 ]
21,130
tfields.mesh_3d
planes
null
def planes(self): return self._planes
(self)
[ 0.013510414399206638, -0.0005014782655052841, -0.06270585209131241, -0.0036978754214942455, -0.001351673505268991, 0.03782578930258751, 0.02182905375957489, -0.03217888996005058, -0.006860559806227684, 0.06718965619802475, -0.010080134496092796, -0.04230959340929985, -0.03425223007798195, 0.018542053177952766, 0.01513705775141716, -0.01447123009711504, 0.009077178314328194, -0.03880346193909645, -0.017033403739333153, 0.018339775502681732, -0.019300591200590134, 0.005086422432214022, 0.04810820147395134, -0.028183920308947563, -0.007973083294928074, 0.0436243936419487, 0.028655901551246643, -0.04092736914753914, 0.012574883177876472, 0.006713066250085831, -0.09095720201730728, 0.038061778992414474, -0.013055291026830673, 0.01605573296546936, -0.007821375504136086, 0.020177125930786133, 0.04069137945771217, 0.018356632441282272, -0.06280699372291565, 0.029262730851769447, 0.0084324199706316, -0.03519618883728981, 0.024593506008386612, 0.013114288449287415, 0.004315241705626249, -0.052760571241378784, 0.062200162559747696, -0.07099920511245728, 0.0004653950163628906, -0.025132911279797554, 0.028740182518959045, -0.014268952421844006, 0.04133192077279091, -0.0033649613615125418, 0.02587459236383438, -0.014134101569652557, 0.02712196670472622, 0.06159333139657974, 0.030408967286348343, 0.009743005968630314, -0.03603900969028473, -0.03297114372253418, 0.010501544922590256, -0.06267213821411133, 0.020665960386395454, -0.0551878921687603, -0.019469156861305237, 0.015516327694058418, 0.01602201908826828, 0.0781463235616684, -0.01046783197671175, 0.026852265000343323, 0.014024535194039345, 0.015550040639936924, -0.033695969730615616, -0.012102903798222542, 0.026616275310516357, 0.04463578015565872, 0.006793133914470673, -0.05552501976490021, -0.012987865135073662, 0.05390680581331253, 0.023851823061704636, 0.059031154960393906, 0.04244444519281387, -0.033695969730615616, 0.012912011705338955, -0.03549960255622864, -0.05195146054029465, 0.014993778429925442, -0.008006795309484005, 0.006864774040877819, -0.022469596937298775, 0.04352325573563576, -0.046523697674274445, -0.01729467883706093, -0.05218745023012161, -0.015179199166595936, 0.0024125739000737667, -0.01866004802286625, -0.052760571241378784, 0.018997175619006157, -0.02176162786781788, 0.03549960255622864, 0.010282411240041256, 0.04453464224934578, -0.02048054151237011, -0.04595058038830757, -0.04756879433989525, 0.02853790484368801, 0.016207439824938774, 0.08556314557790756, 0.0038179773837327957, 0.04541117325425148, 0.02988641895353794, -0.02277301251888275, -0.02759394608438015, -0.03147092089056969, -0.026565706357359886, 0.04858018085360527, -0.03418480232357979, 0.030189834535121918, 0.051412057131528854, -0.013105859979987144, -0.019688289612531662, 0.05356967821717262, 0.008276497945189476, -0.012482172809541225, -0.04153420031070709, -0.023818111047148705, 0.022992145270109177, 0.007281970232725143, -0.06624569743871689, -0.01115894503891468, -0.014429088681936264, -0.06509946286678314, 0.12116388976573944, -0.03974742069840431, -0.021205365657806396, 0.015802886337041855, -0.004589158110320568, 0.08772076666355133, 0.03873603418469429, 0.0364435613155365, -0.06364981085062027, 0.0281164962798357, 0.07922513782978058, 0.01685641147196293, 0.03610643371939659, -0.003777943318709731, 0.03332512825727463, -0.0016255902592092752, 0.04439979046583176, -0.0035040266811847687, -0.009389021433889866, -0.0357355922460556, -0.010358265601098537, -0.009481731802225113, 0.017581237480044365, 0.018879180774092674, -0.07922513782978058, 0.019856853410601616, -0.10221728682518005, -0.010729106143116951, 0.011310652829706669, 0.022874150425195694, 0.008145861327648163, -0.05444621294736862, -0.006308512296527624, 0.015415188856422901, 0.0551878921687603, 0.01004642155021429, -0.07517959922552109, 0.03880346193909645, 0.024728355929255486, 0.03298799693584442, -0.01872747391462326, 0.037589799612760544, 0.01610630191862583, -0.0077918763272464275, 0.019266879186034203, -0.002612743992358446, -0.005819676443934441, -0.033577971160411835, 0.01823863759636879, -0.0218964796513319, 0.06388580054044724, -0.016249582171440125, 0.006468648090958595, -0.021626776084303856, 0.014403804205358028, 0.06472862511873245, 0.02311014197766781, -0.032364312559366226, -0.03738752380013466, -0.07511217147111893, 0.0047197951935231686, -0.0093721654266119, 0.0033965669572353363, -0.028790751472115517, -0.057750068604946136, -0.04497290775179863, -0.025031771510839462, 0.007319896947592497, 0.018980320543050766, 0.028335629031062126, -0.020227694883942604, -0.0373200960457325, 0.004323669709265232, 0.040826231241226196, 0.04308499023318291, -0.029667286202311516, 0.061188776046037674, -0.026953402906656265, 0.03839890658855438, -0.05262571945786476, -0.05532274395227432, 0.006742564961314201, 0.010122275911271572, 0.018862325698137283, 0.01025712676346302, -0.006266371347010136, -0.02892560325562954, -0.017665520310401917, -0.07005524635314941, -0.012431603856384754, -0.0019174169283360243, 0.015010635368525982, -0.10430748015642166, -0.010720677673816681, 0.004266779404133558, -0.03066181391477585, -0.12021993100643158, 0.0003876974806189537, -0.008706336840987206, 0.04419751092791557, -0.004327883943915367, -0.024391228333115578, -0.03067867085337639, -0.05825576186180115, 0.03437022492289543, -0.025099197402596474, 0.06334639340639114, -0.01026555523276329, -0.0399496965110302, 0.013957109302282333, -0.03066181391477585, 0.014875783585011959, 0.016729988157749176, 0.0008243839256465435, -0.015078060328960419, -0.034437648952007294, 0.0027328457217663527, 0.003723160130903125, -0.029936987906694412, -0.10970152914524078, -0.06004254147410393, -0.010122275911271572, 0.044264938682317734, -0.007682309951633215, -0.030931515619158745, -0.03920801356434822, 0.006068308372050524, 0.02900988608598709, 0.10410520434379578, 0.04864760488271713, 0.0357355922460556, -0.004614443052560091, -0.03396566957235336, 0.017614951357245445, 0.10619539767503738, -0.02101994678378105, -0.07511217147111893, -0.03462307155132294, -0.02230103313922882, 0.00017080285761039704, 0.029043598100543022, 0.006156804505735636, -0.006856345571577549, 0.037589799612760544, 0.039781130850315094, -0.04008454829454422, -0.08718136698007584, -0.002747595077380538, -0.017985790967941284, 0.0005349277053028345, 0.05687353387475014, -0.004378452897071838, -0.005777535494416952, -0.010206557810306549, 0.04153420031070709, 0.05040067061781883, -0.0321451798081398, -0.046489983797073364, 0.06951584666967392, -0.025638602674007416, -0.02402038685977459, 0.011083090677857399, -0.0031626843847334385, 0.016215868294239044, -0.03883717209100723, -0.06449263542890549, 0.0445009283721447, 0.05404165759682655, -0.0026928118895739317, 0.05437878519296646, 0.01066168025135994, 0.01649399846792221, 0.0420398935675621, -0.022469596937298775, 0.056266702711582184, 0.0003821664722636342, -0.016645707190036774, 0.010493116453289986, -0.012650737538933754, -0.030830377712845802, -0.00723561504855752, 0.05397422984242439, -0.017901510000228882, 0.08866472542285919, -0.0009655563626438379, 0.01006327848881483, -0.0021144261118024588, 0.019688289612531662, 0.04143306240439415, 0.028773896396160126, 0.00916146021336317, -0.025267761200666428, 0.036780692636966705, 0.023851823061704636, -0.06159333139657974, -0.025065485388040543, -0.027459096163511276, 0.0793599858880043, 0.008959183469414711, -0.013021578080952168, 0.014909496530890465, 0.01601359061896801, 0.004943142645061016, 0.003381817601621151, 0.02752652019262314, -0.0267174132168293, -0.033105991780757904, -0.011032521724700928, 0.007045980077236891, 0.01828920654952526, 0.029178449884057045, 0.03251601755619049, 0.005305555649101734, 0.025942018255591393, -0.011420219205319881, -0.017682377249002457, 0.04008454829454422, 0.06270585209131241, -0.007973083294928074, 0.010619539767503738, -0.017952078953385353, 0.0374886617064476, -0.015440473333001137, 0.06688624620437622, 0.05963798612356186, -0.00844927690923214, -0.01089767087250948, -0.012549598701298237, -0.014016106724739075, -0.029077310115098953, 0.004197246395051479, -0.04622028395533562, 0.0330217108130455, -0.019300591200590134, -0.029785281047225, 0.03708410635590553, -0.0271556805819273, -0.004416380077600479, 0.0156343225389719, 0.03920801356434822, 0.013653693720698357, 0.02361583337187767, 0.030408967286348343, -0.00822171475738287, 0.015946166589856148, 0.007100763730704784, 0.046085432171821594, 0.003946507349610329, 0.005153847858309746, 0.036241285502910614, -0.07180831581354141, -0.030139265581965446, -0.026178007945418358, -0.020800812169909477, -0.02496434561908245, -0.025065485388040543, -0.059469420462846756, -0.026026301085948944, 0.0022650803439319134, 0.010122275911271572, 0.015465757809579372, -0.00368312606588006, 0.0004390568647067994, -0.0298695620149374, 0.03254973143339157, -0.016274865716695786, -0.010990380309522152, 0.028908746317029, -0.04382667317986488, -0.05555873364210129, 0.049187012016773224, 0.062166448682546616, -0.003699982538819313, -0.03288685902953148, -0.016620421782135963, 0.009684008546173573, 0.03640985116362572, -0.0551878921687603, -0.002030144212767482, -0.030526962131261826, 0.021222222596406937, 0.019806284457445145, 0.04986126720905304, 0.016258008778095245, 0.03920801356434822, 0.030493250116705894, -0.02533518709242344, 0.03843262046575546, 0.02449236623942852, -0.03034154139459133, -0.01825549453496933, 0.037556085735559464, 0.010821816511452198, 0.01376326009631157, -0.012785588391125202, -0.009220457635819912, 0.03430279716849327, -0.1016104519367218, -0.000953967566601932, -0.008807475678622723, 0.0091530317440629, 0.008908613584935665, -0.011900627054274082, 0.05205260217189789, 0.0793599858880043, 0.036780692636966705, -0.006220016162842512, -0.023919248953461647, -0.0022819368168711662, 0.008697908371686935, -0.033173419535160065, 0.008373422548174858, 0.011866914108395576, -0.01177420374006033, -0.014117245562374592, 0.014066675677895546, 0.018879180774092674, -0.0986437201499939, 0.039342865347862244, 0.0002857688523363322, -0.026852265000343323, -0.03211146593093872, -0.05002983286976814, -0.03529732674360275, 0.05707580968737602, 0.027088254690170288, -0.03175748139619827, -0.015448901802301407, -0.037218958139419556, 0.0038917241618037224, 0.02496434561908245, -0.0012515885755419731, 0.00411507161334157, 0.023244991898536682, 0.026178007945418358, -0.0013780116569250822, -0.03917430341243744, -0.08043880015611649, 0.01731153577566147, 0.05471591278910637, 0.03207775205373764, 0.0120439063757658, -0.015406760387122631, -0.04126449674367905, -0.0755167230963707, -0.02494749054312706, -0.016156870871782303, -0.048276763409376144, -0.02494749054312706, 0.028369341045618057, -0.07140376418828964, 0.05154690891504288, -0.01957029476761818, -0.04797334969043732, 0.010493116453289986, -0.0029688356444239616, -0.06665025651454926, 0.010434119030833244, -0.0195365808904171, 0.05313141271471977, 0.045714590698480606, -0.024762069806456566, 0.004429022315889597, 0.04453464224934578, 0.01955343782901764, 0.01046783197671175, 0.004504876211285591, -0.07450534403324127, -0.029667286202311516, -0.05016468092799187, 0.046085432171821594, -0.0625372901558876, 0.0051032789051532745, 0.03812920302152634, 0.0218964796513319, -0.0632452592253685, -0.028403054922819138, -0.01742953062057495, -0.016788985580205917, 0.06233501061797142, -0.014639793895184994, 0.013426132500171661, -0.03785950317978859, 0.04284900054335594, 0.026380285620689392, 0.004110857378691435, 0.04048910364508629, 0.034521933645009995, -0.029347013682127, 0.04675968736410141, -0.08886700123548508, -0.07356138527393341, 0.01446280162781477, 0.006839489098638296, 0.045613452792167664, -0.04547860100865364, -0.04264672100543976, 0.041163358837366104, 0.009734578430652618, 0.00016540354408789426, 0.011605639941990376, -0.038095492869615555, -0.02759394608438015, 0.026178007945418358, 0.018896037712693214, -0.06725708395242691, 0.027037685737013817, -0.047905921936035156, 0.01266759354621172, -0.03708410635590553, 0.006114663556218147, -0.03169005364179611, 0.07335910201072693, -0.018963463604450226, 0.019738858565688133, -0.028268203139305115, 0.0086726238951087, -0.04042167589068413, 0.05896373093128204, 0.09358680248260498, 0.004450093023478985, -0.03035839833319187, -0.04504033178091049, -0.012136616744101048, 0.04675968736410141, -0.005431978963315487, -0.018019504845142365, 0.012701306492090225, -0.04719795286655426, -0.029532434418797493, 0.013898111879825592, 0.06391951441764832, 0.018457772210240364, 0.01696597971022129, 0.0038348338566720486, -0.035836733877658844, 0.008061579428613186, -0.005617399234324694, 0.038095492869615555, -0.03738752380013466, 0.000021514972104341723, 0.018896037712693214, -0.002425216371193528, -0.04396152123808861, 0.03032468631863594, -0.01600516401231289, 0.027459096163511276, -0.02850419282913208, -0.04935557395219803, 0.054581061005592346, -0.03430279716849327, 0.019469156861305237, 0.07909028232097626, -0.01916574127972126, 0.028133351355791092, -0.0006737297517247498, -0.005394051782786846, 0.0028002713806927204, -0.03705039247870445, -0.00433631194755435, -0.05491819232702255, -0.008331282064318657, -0.029195304960012436, 0.04197246581315994, 0.054581061005592346, 0.016831127926707268, 0.016847984865307808, 0.019452299922704697, 0.01246531680226326, -0.02226732112467289, 0.022503310814499855, 0.02358212135732174, -0.028605330735445023, 0.01534776296466589, -0.010316124185919762, -0.033628541976213455, -0.002686490770429373, -0.106532521545887, -0.010998808778822422, -0.0031521490309387445, 0.004127713851630688, 0.04348954185843468, 0.03067867085337639, 0.02624543383717537, 0.012549598701298237, 0.04180390387773514, -0.03201032802462578, 0.024155238643288612, 0.014698791317641735, -0.017598094418644905, 0.033662255853414536, -0.04665854945778847, 0.049658991396427155, 0.0005768053815700114, 0.059368282556533813, 0.0008012063335627317, 0.007513745687901974, -0.01641814596951008, -0.08387750387191772, -0.04332097992300987, -0.00955758523195982, -0.021239079535007477, 0.015507899224758148, 0.006860559806227684, 0.004648155532777309, 0.02226732112467289, 0.012347321957349777, 0.006822632625699043, -0.0029920132365077734, 0.0030510106589645147, -0.034505076706409454, 0.02319442294538021, 0.051917750388383865, -0.026161151006817818, -0.032701440155506134, -0.028183920308947563, 0.01737896166741848, -0.009178316220641136, -0.020295120775699615, -0.031841762363910675, 0.006776277907192707, 0.04979384317994118, -0.029785281047225, -0.04706310108304024, -0.06678510457277298, -0.021963905543088913, -0.004530160687863827, -0.051007501780986786, 0.009936855174601078, -0.009650295600295067, -0.0010013761930167675, 0.013080575503408909, -0.05245715379714966, 0.06543659418821335, -0.024660930037498474, 0.0004951570881530643, -0.0016782665625214577, -0.026498280465602875, -0.01472407579421997, 0.0772697925567627, -0.022419027984142303, -0.005398266017436981, 0.03423537313938141, 0.028369341045618057, -0.021272791549563408, 0.017648663371801376, 0.000016239111573668197, 0.011504501104354858, 0.036746978759765625, 0.03614014759659767, -0.08502374589443207, 0.04628770798444748, 0.03684811666607857, -0.03617386147379875, -0.021475069224834442, -0.042107317596673965, 0.08084335178136826, 0.0023030072916299105, -0.010737534612417221, 0.053232550621032715, 0.057615216821432114, 0.01737896166741848, 0.042983852326869965, 0.046085432171821594, -0.056266702711582184, -0.028723325580358505, -0.050535522401332855, -0.015330906957387924, 0.003921222873032093, 0.01003799308091402, 0.03711782023310661, 0.0020775527227669954, -0.010535257868468761, -0.043455831706523895, -0.006569786462932825, 0.0884624496102333, -0.011504501104354858, -0.051378343254327774, -0.0036915543023496866, 0.04679340124130249, -0.019873710349202156, 0.03440393880009651, 0.020244551822543144, 0.03792692720890045, -0.018997175619006157, 0.049254436045885086, 0.019030889496207237, 0.05073780193924904, 0.0022081900388002396, 0.051917750388383865, -0.02225046418607235, 0.037589799612760544, -0.03914058953523636, -0.017496956512331963, 0.018070073798298836, 0.02850419282913208, -0.00702490983530879, -0.004825147800147533, -0.04497290775179863, 0.023952960968017578, 0.039342865347862244, -0.046119142323732376, -0.006742564961314201, 0.017985790967941284, 0.02407095581293106, 0.004517518449574709, -0.003969685174524784, -0.01957029476761818, 0.0011241119354963303, 0.023244991898536682, 0.014420660212635994, 0.022419027984142303, -0.011049377731978893, -0.02847048081457615, -0.009540729224681854, 0.036679551005363464, 0.022435884922742844, 0.007277755998075008, -0.04858018085360527, -0.029549291357398033, 0.003657841356471181, -0.011866914108395576, -0.011285368353128433, -0.07228029519319534, -0.10464460402727127, -0.026430854573845863, -0.05916600674390793, 0.039882272481918335, -0.026481423527002335, 0.04042167589068413, 0.018558910116553307, -0.01492635253816843 ]
21,131
tfields.core
plot
Generic plotting method of TensorMaps. Args: *args: Depending on Positional arguments passed to the underlying :func:`rna.plotting.plot_tensor_map` function for arbitrary . dim (int): dimension of the plot representation (axes). map (int): index of the map to plot (default is 3). edgecolor (color): color of the edges (dim = 3)
def plot(self, *args, **kwargs): # pragma: no cover """ Generic plotting method of TensorMaps. Args: *args: Depending on Positional arguments passed to the underlying :func:`rna.plotting.plot_tensor_map` function for arbitrary . dim (int): dimension of the plot representation (axes). map (int): index of the map to plot (default is 3). edgecolor (color): color of the edges (dim = 3) """ scalars_demanded = ( "color" not in kwargs and "facecolors" not in kwargs and any(v in kwargs for v in ["vmin", "vmax", "cmap"]) ) map_ = self.maps[kwargs.pop("map", 3)] map_index = kwargs.pop("map_index", None if not scalars_demanded else 0) if map_index is not None: if not len(map_) == 0: kwargs["color"] = map_.fields[map_index] if map_.dim == 3: # TODO: Mesh plotting only for Mesh3D(). # Overload this function for Mesh3D() specifically. return rna.plotting.plot_mesh(self, *args, map_, **kwargs) return rna.plotting.plot_tensor_map(self, *args, map_, **kwargs)
(self, *args, **kwargs)
[ 0.005521729122847319, -0.03706078603863716, -0.01909578964114189, 0.0395047552883625, -0.03215461224317551, 0.04216758906841278, -0.06682614237070084, -0.02119322679936886, 0.003540563629940152, -0.022159870713949203, 0.018749257549643517, 0.05759742483496666, 0.0065202913247048855, 0.0256252009421587, 0.004673635121434927, -0.04081793501973152, -0.010368631221354008, 0.06784750521183014, 0.01378836389631033, -0.023381855338811874, 0.0013029183028265834, 0.001467065536417067, 0.05303778126835823, 0.008225598372519016, 0.026664799079298973, 0.007765073794871569, 0.00639718072488904, -0.0175546295940876, 0.004737470299005508, 0.051542218774557114, -0.10301148146390915, -0.06117218732833862, -0.0008845709962770343, 0.07444986701011658, 0.017919400706887245, -0.05741503834724426, -0.017098665237426758, 0.0035063663963228464, -0.056065384298563004, 0.007012732792645693, 0.013651574961841106, -0.03729788959026337, -0.00036477152025327086, -0.039906006306409836, 0.037352606654167175, -0.022798221558332443, -0.02422082982957363, 0.027139002457261086, -0.0327017679810524, -0.04669075459241867, -0.048879384994506836, -0.04658132418990135, -0.030549615621566772, 0.009219600819051266, -0.0025374419055879116, 0.045778825879096985, -0.007227036170661449, 0.03826453536748886, -0.022251063957810402, -0.010313915088772774, -0.03819157928228378, -0.043152473866939545, -0.052016422152519226, -0.040635548532009125, 0.023546002805233, -0.010286557488143444, 0.03383256122469902, -0.03624005243182182, 0.007217916660010815, 0.01119848620146513, -0.01148118358105421, 0.008189121261239052, 0.014216970652341843, -0.03520045429468155, 0.046435415744781494, -0.0216491911560297, 0.017053069546818733, 0.02232401818037033, -0.01590403914451599, 0.0012003263691440225, 0.0003388385521247983, -0.022634074091911316, 0.000544022535905242, -0.03199046477675438, -0.03514573723077774, -0.015511909499764442, 0.00021202345669735223, -0.0037480276077985764, -0.05168812721967697, -0.05110449343919754, -0.013906914740800858, 0.010222721844911575, -0.0022467647213488817, 0.0081298453733325, -0.07682088762521744, -0.05249062553048134, 0.01661534421145916, -0.005001929588615894, -0.02230577915906906, -0.007851706817746162, 0.05767038092017174, -0.04552348703145981, -0.01924169808626175, 0.010286557488143444, -0.01672477461397648, -0.04716495797038078, -0.06945250183343887, 0.0408908873796463, -0.04395496845245361, 0.06850409507751465, -0.018931642174720764, 0.07364737242460251, 0.04811336472630501, 0.030421946197748184, -0.014490549452602863, 0.047602683305740356, -0.009648206643760204, -0.04234997555613518, -0.018037952482700348, -0.03954123333096504, -0.051396310329437256, 0.08922311663627625, 0.03303006291389465, -0.02442145347595215, -0.010669567622244358, 0.030513139441609383, 0.01498299092054367, 0.017673181369900703, -0.08893129974603653, -0.04132861644029617, 0.009347270242869854, -0.02422082982957363, 0.024767987430095673, 0.0410732738673687, 0.05807162821292877, 0.024001967161893845, -0.006178318057209253, -0.02487741783261299, -0.047712117433547974, 0.034817442297935486, 0.02947353944182396, -0.009219600819051266, -0.03538283705711365, 0.003743467852473259, -0.03906702995300293, -0.04858756810426712, -0.008690682239830494, -0.06952545791864395, 0.06058855354785919, -0.06325138360261917, -0.001850075670517981, 0.007596367038786411, -0.020153626799583435, 0.054022662341594696, -0.046289507299661636, -0.011672688648104668, 0.06544001400470734, 0.010541897267103195, 0.025752870365977287, 0.029820073395967484, -0.01851215586066246, -0.0268289465457201, 0.06861352920532227, -0.003266985062509775, -0.00016058496839832515, 0.011599734425544739, 0.051068015396595, -0.042459405958652496, -0.000687936320900917, 0.011508542113006115, -0.02166742831468582, -0.0628136545419693, -0.006378942169249058, 0.012694049626588821, 0.023454809561371803, 0.018785733729600906, -0.02945530042052269, 0.0176458228379488, 0.008654204197227955, 0.05475220829248428, 0.02232401818037033, -0.012083057314157486, -0.0398695282638073, 0.05807162821292877, -0.0320998951792717, 0.01975237764418125, 0.011690927669405937, -0.018895165994763374, 0.0037411879748106003, 0.027284910902380943, 0.016779489815235138, 0.04103679582476616, -0.003184911562129855, 0.01980709470808506, 0.05256357789039612, -0.04081793501973152, 0.02560696192085743, -0.048295751214027405, 0.08360563218593597, 0.03005717508494854, -0.0066570802591741085, -0.030421946197748184, -0.026628321036696434, 0.02695661596953869, -0.029801834374666214, -0.0004716381954494864, 0.07747747004032135, 0.00312791601754725, 0.027813829481601715, 0.04453860595822334, 0.006529410369694233, -0.030841432511806488, 0.06270422786474228, 0.018694540485739708, 0.003517765551805496, -0.00900985673069954, -0.04935358837246895, -0.0009900127770379186, -0.05774333328008652, 0.018840448930859566, 0.05033847317099571, 0.020609591156244278, 0.0020712183322757483, 0.03138859197497368, 0.011399110779166222, -0.03472625091671944, 0.06033321097493172, 0.027613205835223198, 0.036094143986701965, -0.038045670837163925, 0.007637403905391693, 0.04869699850678444, 0.0005257839802652597, 0.02117498777806759, 0.007268073037266731, -0.021266181021928787, 0.025242190808057785, -0.031078534200787544, 0.025150997564196587, 0.012657572515308857, -0.021229702979326248, 0.012666691094636917, -0.043809060007333755, 0.03538283705711365, 0.029163483530282974, 0.02442145347595215, -0.03478096425533295, 0.05774333328008652, -0.0017372244037687778, -0.014299044385552406, -0.005681316833943129, 0.0004559644148685038, -0.028634564951062202, 0.060369689017534256, 0.004924415610730648, -0.034762728959321976, 0.0407085046172142, -0.04687314108014107, 0.03841044381260872, 0.005170636344701052, -0.03518221527338028, 0.03538283705711365, -0.02237873338162899, 0.012311039492487907, 0.1087019145488739, -0.04749325290322304, -0.0027289469726383686, 0.026610083878040314, 0.005065764766186476, 0.013843080028891563, 0.054642774164676666, 0.10468942672014236, -0.01982533372938633, 0.003458490129560232, 0.026062926277518272, -0.002235365565866232, 0.015831084921956062, -0.043115995824337006, 0.04286065697669983, 0.004860580898821354, -0.021266181021928787, -0.053329598158597946, -0.0752158910036087, 0.016077306121587753, -0.027047809213399887, -0.02630002796649933, 0.03317597135901451, 0.028889905661344528, 0.018256815150380135, -0.03135211393237114, 0.03436147794127464, 0.009784996509552002, -0.009730280376970768, 0.001097164349630475, -0.021339135244488716, -0.05650310963392258, 0.005298306699842215, 0.059895485639572144, -0.08338677138090134, -0.023381855338811874, 0.07857178896665573, -0.08645085245370865, 0.07820701599121094, -0.030312513932585716, 0.03906702995300293, 0.007049209903925657, 0.025187473744153976, 0.026591844856739044, 0.050229039043188095, 0.010022098198533058, -0.013323280028998852, 0.07609134167432785, -0.0446845144033432, 0.049608927220106125, -0.052818916738033295, 0.04738382250070572, 0.004928975366055965, -0.040599070489406586, 0.023965489119291306, 0.03200870379805565, -0.029619447886943817, -0.012757884338498116, -0.013660693541169167, -0.031534500420093536, 0.03189926967024803, -0.04796745628118515, 0.031060295179486275, -0.054059140384197235, 0.06135457381606102, 0.0282150786370039, 0.007851706817746162, 0.012630213983356953, -0.01822945661842823, 0.004203991964459419, -0.0935274213552475, -0.03147978335618973, 0.005316545255482197, 0.04267827048897743, -0.023801341652870178, 0.03346778824925423, -0.0005702404887415469, -0.04096384346485138, -0.015256569720804691, 0.049608927220106125, -0.03899407759308815, 0.04100032150745392, -0.01661534421145916, -0.0049882507883012295, -0.03264705091714859, 0.054642774164676666, -0.003508646273985505, 0.020901408046483994, -0.0033034621737897396, 0.008977939374744892, -0.01920522190630436, 0.07444986701011658, 0.019971242174506187, 0.028470417484641075, -0.059238895773887634, 0.04202168062329292, 0.00859036948531866, -0.03144330531358719, -0.012311039492487907, -0.018858687952160835, 0.002624075161293149, -0.013514785096049309, 0.02113850973546505, 0.010104171931743622, 0.061099231243133545, -0.0181565023958683, -0.011116412468254566, -0.03337659686803818, -0.01017712615430355, 0.02887166664004326, 0.015201853588223457, -0.009894427843391895, -0.015293046832084656, 0.006976255681365728, -0.011408229358494282, -0.027248432859778404, -0.019661186262965202, -0.046289507299661636, 0.0448668971657753, -0.02117498777806759, -0.03073200210928917, 0.002594437450170517, -0.0032008702401071787, 0.03135211393237114, -0.0243302620947361, -0.004427414387464523, 0.008234716951847076, -0.024111397564411163, 0.02693837694823742, -0.022761743515729904, -0.026664799079298973, -0.015320404432713985, -0.004621199332177639, 0.04807688668370247, -0.034945111721754074, -0.03199046477675438, -0.046362463384866714, -0.020117150619626045, -0.01971590146422386, 0.019022835418581963, 0.06784750521183014, -0.0051797558553516865, -0.012985866516828537, -0.005694995634257793, 0.06886886805295944, -0.020791977643966675, 0.05934832990169525, 0.017673181369900703, -0.001281260047107935, 0.000622961379121989, 0.0036591144744306803, 0.03135211393237114, -0.06347024440765381, -0.007076567970216274, 0.036823686212301254, -0.008736277930438519, 0.024786226451396942, 0.028561610728502274, 0.003463049652054906, 0.015265688300132751, 0.04752973094582558, -0.047092005610466, 0.00590929901227355, 0.04023430123925209, 0.02947353944182396, 0.049499496817588806, -0.02814212441444397, -0.09272492676973343, 0.014992110431194305, 0.010587493889033794, -0.0006959157180972397, 0.025862302631139755, -0.038629304617643356, -0.002441689372062683, -0.004172074608504772, -0.009620849043130875, 0.034762728959321976, -0.032318759709596634, 0.02495037205517292, -0.06748273223638535, 0.016305288299918175, 0.04530462622642517, -0.01920522190630436, -0.013040582649409771, -0.006602364592254162, -0.019624708220362663, 0.006456456147134304, 0.048295751214027405, -0.009392866864800453, -0.021466804668307304, 0.052016422152519226, -0.04103679582476616, -0.07131283730268478, -0.027649682015180588, -0.00868156272917986, 0.007769633550196886, -0.0004485549870878458, -0.0012983586639165878, -0.04975483566522598, -0.03580232709646225, 0.020117150619626045, 0.031078534200787544, 0.05230823904275894, 0.008736277930438519, -0.03396023064851761, -0.046325985342264175, 0.016815967857837677, 0.02309003844857216, -0.0203542523086071, -0.02184981480240822, -0.035583462566137314, 0.05238119140267372, 0.02487741783261299, 0.048368703573942184, -0.04807688668370247, -0.0032008702401071787, 0.003531444352120161, 0.0001363618648611009, 0.06398092955350876, 0.010706044733524323, 0.0004895917954854667, 0.09659150242805481, 0.02819683961570263, 0.02814212441444397, -0.009648206643760204, 0.017390482127666473, -0.021868053823709488, -0.05628424882888794, -0.030276037752628326, 0.026537129655480385, -0.03436147794127464, 0.029528256505727768, 0.0564301572740078, -0.0015457193367183208, -0.03760794550180435, -0.03246466815471649, 0.02053663693368435, -0.07718565315008163, 0.0030823193956166506, 0.001973185921087861, 0.01053277775645256, -0.015484551899135113, 0.0029227319173514843, 0.07616429775953293, 0.008727159351110458, 0.010569254867732525, -0.023272423073649406, -0.027066048234701157, 0.06872295588254929, -0.007660202216356993, 0.06784750521183014, 0.019953003153204918, -0.045049283653497696, -0.02245168760418892, -0.04920767992734909, 0.0027973416727036238, 0.010496300645172596, 0.016095543280243874, -0.0023869737051427364, -0.015010348521173, -0.04399144649505615, 0.019989479333162308, 0.03281119838356972, 0.03583880141377449, 0.014627338387072086, 0.02177686057984829, -0.03275648504495621, 0.000608142523560673, -0.0496818833053112, -0.0019424083875492215, 0.013751886785030365, 0.016287049278616905, -0.008084248751401901, -0.024567361921072006, 0.04340781271457672, 0.0008651925018057227, -0.013040582649409771, -0.026628321036696434, 0.019642947241663933, -0.055299364030361176, 0.021576236933469772, -0.046289507299661636, 0.024822702631354332, -0.02117498777806759, 0.04672723263502121, -0.014280805364251137, 0.03655010834336281, 0.030604330822825432, 0.04023430123925209, 0.001084055402316153, -0.023162992671132088, 0.10220898687839508, -0.04158395528793335, -0.03826453536748886, -0.06449160724878311, -0.015767250210046768, 0.003964610397815704, 0.04369962960481644, 0.05646663159132004, 0.032336995005607605, -0.00893690250813961, -0.01537512056529522, -0.038082148879766464, 0.024622078984975815, -0.0176458228379488, -0.014144016429781914, 0.013204729184508324, 0.01211953442543745, -0.014071062207221985, 0.007072008214890957, 0.012730526737868786, 0.024056682363152504, 0.08236541599035263, -0.009187683463096619, 0.001790800248272717, -0.013131774961948395, -0.06861352920532227, 0.0655859187245369, 0.05734208598732948, 0.007651082705706358, 0.027649682015180588, 0.07733156532049179, 0.00836238730698824, 0.04267827048897743, 0.008257515728473663, -0.03689664229750633, -0.011690927669405937, 0.01469117309898138, -0.019369367510080338, -0.007683000527322292, -0.01152678020298481, -0.008740837685763836, 0.009365509264171124, -0.013533024117350578, -0.01924169808626175, 0.027649682015180588, -0.03461681678891182, 0.02230577915906906, -0.005298306699842215, -0.03454386442899704, -0.03720669820904732, -0.06193820759654045, 0.05128687620162964, 0.05613834038376808, -0.013706290163099766, -0.0319175086915493, -0.006761952303349972, -0.011079935356974602, 0.016606224700808525, -0.05551822856068611, 0.01982533372938633, -0.08338677138090134, -0.06128161773085594, 0.07893656194210052, 0.04523167014122009, 0.06503876298666, 0.029145246371626854, -0.042532362043857574, -0.04220406711101532, -0.00836238730698824, -0.010906669311225414, 0.03392375260591507, 0.015603102743625641, -0.05314721167087555, 0.002350496593862772, 0.023473048582673073, -0.015949634835124016, 0.008585809729993343, -0.06598716974258423, -0.05427800491452217, 0.010067693889141083, -0.05573708936572075, -0.014198731631040573, 0.008854828774929047, 0.0036089583300054073, 0.012438708916306496, -0.03954123333096504, -0.007637403905391693, -0.005663078278303146, 0.009411105886101723, 0.09943672269582748, 0.06325138360261917, -0.013988988474011421, 0.023473048582673073, 0.08448109030723572, 0.013852198608219624, 0.008996178396046162, 0.0486605241894722, 0.007030971348285675, 0.025096282362937927, 0.04723791405558586, 0.057889241725206375, -0.024129636585712433, -0.04997370019555092, -0.013678932562470436, -0.016360003501176834, -0.005799867212772369, -0.03135211393237114, 0.0025989972054958344, -0.07131283730268478, 0.00103389925789088, -0.04858756810426712, -0.042094636708498, 0.020263059064745903, 0.0044114557094872, -0.0042815059423446655, -0.03910350799560547, -0.03771737590432167, -0.03775385394692421, -0.0117730014026165, 0.018329769372940063, 0.002500964794307947, 0.05267300829291344, -0.03186279162764549, -0.0019241698319092393, -0.05573708936572075, 0.026537129655480385, -0.016752133145928383, -0.07284487783908844, 0.0422770194709301, -0.01982533372938633, 0.0016323525924235582, 0.003321700729429722, -0.0076693217270076275, 0.010323034599423409, 0.06306900084018707, 0.04023430123925209, -0.04267827048897743, 0.04479394480586052, -0.017153382301330566, -0.019533514976501465, 0.024020206183195114, -0.04665428027510643, -0.07153169810771942, 0.031115012243390083, -0.037972718477249146, -0.012757884338498116, -0.05234471336007118, -0.04027077555656433, 0.04216758906841278, -0.017709657549858093, 0.010487181134521961, -0.05194346606731415, 0.0028406584169715643, -0.0009142086491920054, -0.022725267335772514, -0.03779033198952675, 0.021393850445747375, 0.10096876323223114, -0.02934587001800537, -0.027211956679821014, -0.07952019572257996, -0.005722353234887123, 0.016870683059096336, 0.00859036948531866, -0.029272915795445442, -0.01475500874221325, 0.0005286337691359222, -0.014873559586703777, 0.08674266934394836, 0.05380380153656006, 0.013943391852080822, -0.06730034947395325, -0.03261057659983635, -0.03067728690803051, -0.012639333494007587, 0.02305356040596962, -0.0011364913079887629, -0.048259273171424866, -0.028579849749803543, -0.05894707888364792, 0.045778825879096985, 0.010441585443913937, -0.006675319280475378, -0.0007529112626798451, -0.002011942910030484, -0.0236371960490942, -0.06000491604208946, -0.04180281609296799, -0.0331212542951107, 0.051396310329437256, -0.006871383637189865, -0.01714426279067993, 0.06569535285234451, 0.017527272924780846, 0.024622078984975815, 0.08550244569778442, 0.03717022016644478, -0.06204763799905777, 0.01766406185925007, 0.03126091882586479, -0.015502789989113808, 0.020627830177545547, -0.04275122284889221, 0.024695033207535744, -0.0294188242405653, -0.040051914751529694, 0.030294276773929596, -0.03406966105103493, -0.041948724538087845, 0.030823195353150368, 0.04658132418990135, -0.02108379453420639, -0.012046580202877522 ]