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
|
---|---|---|---|---|---|---|
21,132 | tfields.mesh_3d | project |
Project the points of the tensor_field to a copy of the mesh
and set the face values accord to the field to the maps field.
If no field is present in tensor_field, the number of points in a mesh
is counted.
Args:
tensor_field (Tensors | TensorFields)
delta (float | None): forwarded to Mesh3D.in_faces
merge_functions (callable): if multiple Tensors lie in the same face,
they are mapped with the merge_function to one value
point_face_assignment (np.array, dtype=int): array assigning each
point to a face. Each entry position corresponds to a point of the
tensor, each entry value is the index of the assigned face
return_point_face_assignment (bool): if true, return the
point_face_assignment
Examples:
>>> import tfields
>>> import numpy as np
>>> mp = tfields.TensorFields([[0,1,2],[2,3,0],[3,2,5],[5,4,3]],
... [1, 2, 3, 4])
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [1,1,0], [0,1,0], [0,2,0], [1,2,0]],
... maps=[mp])
>>> points = tfields.Tensors([[0.5, 0.2, 0.0],
... [0.5, 0.02, 0.0],
... [0.5, 0.8, 0.0],
... [0.5, 0.8, 0.1]]) # not contained
Projecting points onto the mesh gives the count
>>> m_points = m.project(points, delta=0.01)
>>> list(m_points.maps[3].fields[0])
[2, 1, 0, 0]
TensorFields with arbitrary size are projected,
combinging the fields automatically
>>> fields = [tfields.Tensors([1,3,42, -1]),
... tfields.Tensors([[0,1,2], [2,3,4], [3,4,5], [-1] * 3]),
... tfields.Tensors([[[0, 0]] * 2,
... [[2, 2]] * 2,
... [[3, 3]] * 2,
... [[9, 9]] * 2])]
>>> tf = tfields.TensorFields(points, *fields)
>>> m_tf = m.project(tf, delta=0.01)
>>> assert m_tf.maps[3].fields[0].equal([2, 42, np.nan, np.nan], equal_nan=True)
>>> assert m_tf.maps[3].fields[1].equal([[1, 2, 3],
... [3, 4, 5],
... [np.nan] * 3,
... [np.nan] * 3],
... equal_nan=True)
>>> assert m_tf.maps[3].fields[2].equal([[[1, 1]] * 2,
... [[3, 3]] * 2,
... [[np.nan, np.nan]] * 2,
... [[np.nan, np.nan]] * 2],
... equal_nan=True)
Returning the calculated point_face_assignment can speed up multiple
results
>>> m_tf, point_face_assignment = m.project(tf, delta=0.01,
... return_point_face_assignment=True)
>>> m_tf_fast = m.project(tf, delta=0.01, point_face_assignment=point_face_assignment)
>>> assert m_tf.equal(m_tf_fast, equal_nan=True)
| def project(
self,
tensor_field,
delta=None,
merge_functions=None,
point_face_assignment=None,
return_point_face_assignment=False,
):
"""
Project the points of the tensor_field to a copy of the mesh
and set the face values accord to the field to the maps field.
If no field is present in tensor_field, the number of points in a mesh
is counted.
Args:
tensor_field (Tensors | TensorFields)
delta (float | None): forwarded to Mesh3D.in_faces
merge_functions (callable): if multiple Tensors lie in the same face,
they are mapped with the merge_function to one value
point_face_assignment (np.array, dtype=int): array assigning each
point to a face. Each entry position corresponds to a point of the
tensor, each entry value is the index of the assigned face
return_point_face_assignment (bool): if true, return the
point_face_assignment
Examples:
>>> import tfields
>>> import numpy as np
>>> mp = tfields.TensorFields([[0,1,2],[2,3,0],[3,2,5],[5,4,3]],
... [1, 2, 3, 4])
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [1,1,0], [0,1,0], [0,2,0], [1,2,0]],
... maps=[mp])
>>> points = tfields.Tensors([[0.5, 0.2, 0.0],
... [0.5, 0.02, 0.0],
... [0.5, 0.8, 0.0],
... [0.5, 0.8, 0.1]]) # not contained
Projecting points onto the mesh gives the count
>>> m_points = m.project(points, delta=0.01)
>>> list(m_points.maps[3].fields[0])
[2, 1, 0, 0]
TensorFields with arbitrary size are projected,
combinging the fields automatically
>>> fields = [tfields.Tensors([1,3,42, -1]),
... tfields.Tensors([[0,1,2], [2,3,4], [3,4,5], [-1] * 3]),
... tfields.Tensors([[[0, 0]] * 2,
... [[2, 2]] * 2,
... [[3, 3]] * 2,
... [[9, 9]] * 2])]
>>> tf = tfields.TensorFields(points, *fields)
>>> m_tf = m.project(tf, delta=0.01)
>>> assert m_tf.maps[3].fields[0].equal([2, 42, np.nan, np.nan], equal_nan=True)
>>> assert m_tf.maps[3].fields[1].equal([[1, 2, 3],
... [3, 4, 5],
... [np.nan] * 3,
... [np.nan] * 3],
... equal_nan=True)
>>> assert m_tf.maps[3].fields[2].equal([[[1, 1]] * 2,
... [[3, 3]] * 2,
... [[np.nan, np.nan]] * 2,
... [[np.nan, np.nan]] * 2],
... equal_nan=True)
Returning the calculated point_face_assignment can speed up multiple
results
>>> m_tf, point_face_assignment = m.project(tf, delta=0.01,
... return_point_face_assignment=True)
>>> m_tf_fast = m.project(tf, delta=0.01, point_face_assignment=point_face_assignment)
>>> assert m_tf.equal(m_tf_fast, equal_nan=True)
"""
if not issubclass(type(tensor_field), tfields.Tensors):
tensor_field = tfields.TensorFields(tensor_field)
inst = self.copy()
# setup empty map fields and collect fields
n_faces = len(self.maps[3])
point_indices = np.arange(len(tensor_field))
if not hasattr(tensor_field, "fields") or len(tensor_field.fields) == 0:
# if not fields is existing use int type fields and empty_map_fields
# in order to generate a sum
fields = [np.full(len(tensor_field), 1, dtype=int)]
empty_map_fields = [tfields.Tensors(np.full(n_faces, 0, dtype=int))]
if merge_functions is None:
merge_functions = [np.sum]
else:
fields = tensor_field.fields
empty_map_fields = []
for field in fields:
cls = type(field)
kwargs = {key: getattr(field, key) for key in cls.__slots__}
shape = (n_faces,) + field.shape[1:]
empty_map_fields.append(cls(np.full(shape, np.nan), **kwargs))
if merge_functions is None:
merge_functions = [lambda x: np.mean(x, axis=0)] * len(fields)
# build point_face_assignment if not given.
if point_face_assignment is not None:
if len(point_face_assignment) != len(tensor_field):
raise ValueError("Template needs same lenght as tensor_field")
else:
point_face_assignment = self.in_faces(tensor_field, delta=delta)
point_face_assignment_set = set(point_face_assignment)
# merge the fields according to point_face_assignment
map_fields = []
for field, map_field, merge_function in zip(
fields, empty_map_fields, merge_functions
):
for i, f_index in enumerate(point_face_assignment_set):
if f_index == -1:
# point could not be mapped
continue
point_in_face_indices = point_indices[point_face_assignment == f_index]
res = field[point_in_face_indices]
if len(res) == 1:
map_field[f_index] = res
else:
map_field[f_index] = merge_function(res)
map_fields.append(map_field)
inst.maps[3].fields = map_fields
if return_point_face_assignment:
return inst, point_face_assignment
return inst
| (self, tensor_field, delta=None, merge_functions=None, point_face_assignment=None, return_point_face_assignment=False) | [
0.008989999070763588,
-0.06943307816982269,
-0.05054054036736488,
0.0904916375875473,
-0.022743243724107742,
0.004056279547512531,
0.00021027222101110965,
-0.032971687614917755,
-0.013748230412602425,
0.011642375029623508,
0.01673654094338417,
-0.013888620771467686,
-0.061490993946790695,
0.04316001757979393,
0.00285293348133564,
-0.004377171862870455,
-0.023625697940587997,
0.04825418442487717,
0.013627896085381508,
-0.03096611052751541,
-0.01319669745862484,
-0.07240132987499237,
0.04135499894618988,
0.023385029286146164,
0.041515447199344635,
-0.018030138686299324,
0.04408258572220802,
-0.011341538280248642,
0.031126556918025017,
0.0400313176214695,
-0.004216725938022137,
-0.02741623856127262,
-0.021259117871522903,
0.009686937555670738,
-0.02705523557960987,
-0.0355989933013916,
0.0028378914576023817,
0.048334408551454544,
-0.06915229558944702,
-0.006498069502413273,
0.002178558148443699,
-0.05599571019411087,
-0.04604804888367653,
0.009511449374258518,
0.002381622791290283,
-0.01103067398071289,
0.02312430366873741,
-0.00875434372574091,
0.01707748882472515,
-0.0024969433434307575,
-0.02777724154293537,
-0.050059203058481216,
0.04464414715766907,
0.019684739410877228,
-0.007706429809331894,
-0.002619785023853183,
0.003244020976126194,
-0.016154922544956207,
-0.06317567825317383,
0.016866903752088547,
-0.02787752076983452,
-0.01138165034353733,
-0.03589982911944389,
-0.022181682288646698,
-0.018040165305137634,
-0.017598938196897507,
0.017408408224582672,
-0.017679162323474884,
0.006372720934450626,
0.013176641426980495,
-0.046529386192560196,
-0.013577756471931934,
0.058322180062532425,
-0.02739618346095085,
0.03449592739343643,
0.000782175047788769,
0.07059631496667862,
0.02420731447637081,
0.041194554418325424,
-0.04235778748989105,
-0.0026674175169318914,
-0.02356553077697754,
-0.01339725498110056,
-0.03275107219815254,
0.04456392303109169,
0.034435756504535675,
0.02318447083234787,
0.013527617789804935,
-0.06317567825317383,
-0.07216066122055054,
0.0027451335918158293,
-0.022281961515545845,
-0.011562151834368706,
-0.016846846789121628,
-0.01787971891462803,
-0.0035924899857491255,
-0.015483055263757706,
-0.013056307099759579,
-0.05595559999346733,
0.046529386192560196,
0.04496503621339798,
0.02145967446267605,
-0.07954118400812149,
0.010459084063768387,
0.06610382348299026,
-0.03245023638010025,
-0.04432325437664986,
-0.027917632833123207,
0.011351565830409527,
-0.00042367816786281765,
-0.04897619038820267,
0.029842987656593323,
0.004214218817651272,
0.04745195433497429,
0.01553319487720728,
-0.020065799355506897,
-0.007811722811311483,
0.027737131342291832,
-0.003971042577177286,
0.0021033489610999823,
0.03489704057574272,
0.04713106155395508,
-0.0448848158121109,
-0.029401760548353195,
-0.0015004223678261042,
-0.015412859618663788,
0.09931617975234985,
0.027596740052103996,
-0.006738739088177681,
-0.05595559999346733,
-0.03571932762861252,
0.013457422144711018,
0.017247963696718216,
0.016505898907780647,
-0.009837355464696884,
-0.01425965316593647,
-0.004710599314421415,
-0.047572288662195206,
-0.09305877238512039,
0.02637333795428276,
0.042237453162670135,
-0.0047206268645823,
0.025952167809009552,
0.011351565830409527,
-0.04660961031913757,
-0.004304469563066959,
0.02139950729906559,
-0.0007815483259037137,
0.02996332198381424,
-0.03989092633128166,
-6.365356597370919e-8,
-0.016977209597826004,
-0.02278335578739643,
0.01638556458055973,
-0.03924914449453354,
0.00738553749397397,
0.0612904354929924,
-0.05070098862051964,
0.0084083816036582,
0.008328158408403397,
-0.018250752240419388,
-0.031848564743995667,
0.01321675255894661,
0.07432668656110764,
0.012574967928230762,
0.011802821420133114,
0.05070098862051964,
-0.0392090305685997,
-0.01393876038491726,
0.013998927548527718,
0.04432325437664986,
0.02067749947309494,
0.016255201771855354,
0.024427928030490875,
0.006728711072355509,
0.04556671157479286,
-0.01641564816236496,
-0.03846696764230728,
-0.0017034870106726885,
0.018391141667962074,
0.004126474726945162,
-0.014319820329546928,
0.021219005808234215,
0.020757723599672318,
-0.025129880756139755,
0.028599528595805168,
0.02178056724369526,
0.006503083743155003,
0.002150981454178691,
0.0024242412764579058,
-0.007465760689228773,
-0.014299764297902584,
-0.018742118030786514,
0.03826640918850899,
-0.005981633439660072,
0.03279118612408638,
-0.005510323215276003,
-0.018621783703565598,
0.032991744577884674,
0.07167932391166687,
-0.09538524597883224,
-0.06281467527151108,
0.022402295842766762,
0.017398381605744362,
-0.0861595943570137,
-0.00766130443662405,
0.034796763211488724,
0.05515336990356445,
-0.021961068734526634,
0.03503743186593056,
0.020918168127536774,
-0.06068876385688782,
-0.011120924726128578,
0.0061119962483644485,
0.03952992334961891,
-0.054431360214948654,
0.0061872052028775215,
0.02139950729906559,
-0.013848509639501572,
0.0683099552989006,
0.0202763844281435,
-0.021680288016796112,
-0.0018714540638029575,
-0.02679450996220112,
0.016235146671533585,
-0.005560462363064289,
-0.0012440845603123307,
0.027616797015070915,
-0.014740991406142712,
-0.10429000854492188,
0.004301962908357382,
-0.0028353845700621605,
-0.09731060266494751,
-0.0023866367992013693,
0.07609159499406815,
-0.0605684258043766,
0.04668983444571495,
-0.0690319612622261,
0.004464915953576565,
-0.02892042137682438,
0.017177768051624298,
-0.031246891245245934,
0.0003719718661159277,
0.01304627861827612,
-0.007195007521659136,
0.0019754935055971146,
0.02994326502084732,
-0.007957126945257187,
0.0013976364862173796,
0.03251040354371071,
-0.00785684771835804,
0.02960231713950634,
-0.053268127143383026,
0.05924474820494652,
-0.04037226736545563,
-0.06024753674864769,
0.07685371488332748,
-0.008623981848359108,
0.01822066679596901,
0.020146021619439125,
0.0003190120914950967,
-0.09634792059659958,
0.028378915041685104,
-0.028780030086636543,
0.04320013150572777,
-0.010398916900157928,
0.0281181912869215,
0.025510940700769424,
0.042558345943689346,
0.01607470028102398,
0.007876903750002384,
0.04845474287867546,
0.0050791241228580475,
-0.012103657238185406,
-0.002302653156220913,
-0.0576803982257843,
0.010559363290667534,
0.0419967845082283,
0.03624077886343002,
-0.020226243883371353,
0.010153234004974365,
-0.03816613182425499,
-0.0771746039390564,
-0.017328185960650444,
-0.05254611745476723,
0.015332636423408985,
-0.005415058229118586,
0.04668983444571495,
0.03457614779472351,
-0.0591244138777256,
-0.013437366113066673,
0.015041828155517578,
0.008187768049538136,
-0.010012843646109104,
-0.034355536103248596,
-0.009777188301086426,
-0.026914844289422035,
0.011161036789417267,
-0.0019052982097491622,
-0.058683186769485474,
0.051463108509778976,
-0.029842987656593323,
0.04540626332163811,
0.006312553770840168,
0.009852397255599499,
0.011732625775039196,
0.02924131415784359,
0.013156585395336151,
0.08463535457849503,
-0.04360124468803406,
0.011632346548140049,
-0.018982786685228348,
-0.02892042137682438,
0.009957689791917801,
0.043320465832948685,
0.017939886078238487,
-0.015793919563293457,
0.0017962449928745627,
0.02535049431025982,
0.020426802337169647,
0.026954956352710724,
-0.0029707609210163355,
0.004229260608553886,
0.11167053133249283,
-0.022021235898137093,
-0.0675879493355751,
0.03160789608955383,
-0.041154440492391586,
-0.00006459368159994483,
0.0228034108877182,
0.004602799192070961,
0.039048586040735245,
0.019524293020367622,
0.022642964497208595,
-0.08094508945941925,
-0.03668200597167015,
0.01298611145466566,
-0.03932936489582062,
0.005896396469324827,
0.025169992819428444,
0.011241259053349495,
-0.00587634090334177,
-0.054752252995967865,
0.021961068734526634,
0.021941013634204865,
0.0044022416695952415,
0.022001180797815323,
0.02747640572488308,
0.04504526033997536,
0.02388642355799675,
0.014570517465472221,
0.0400313176214695,
0.022903690114617348,
0.032971687614917755,
0.0028403985779732466,
0.04243801161646843,
-0.012805609963834286,
-0.023966645821928978,
-0.022983912378549576,
0.0549929216504097,
0.02212151512503624,
-0.04247812181711197,
0.017288073897361755,
0.02278335578739643,
0.030083656311035156,
-0.016174979507923126,
-0.009050166234374046,
0.01889253593981266,
0.014580545015633106,
-0.009752118960022926,
0.060849208384752274,
-0.04111433029174805,
-0.0050440263003110886,
-0.005204472690820694,
-0.023605642840266228,
0.013888620771467686,
-0.00776659743860364,
0.06385757029056549,
-0.04664972424507141,
-0.00944626796990633,
0.009977745823562145,
0.0020481955725699663,
-0.0267744529992342,
0.04023187607526779,
-0.023445196449756622,
0.061170101165771484,
0.04464414715766907,
-0.027897577732801437,
0.0400313176214695,
0.0008849608711898327,
-0.008834566920995712,
0.018421225249767303,
0.02174045518040657,
-0.05106199160218239,
0.01393876038491726,
0.007370495703071356,
-0.05170377716422081,
-0.0021710372529923916,
0.017719272524118423,
-0.0649004727602005,
-0.0007094728644005954,
-0.04183633625507355,
0.0035598992835730314,
0.03700289875268936,
-0.011311454698443413,
-0.010278582572937012,
-0.000339381251251325,
-0.014279709197580814,
0.019073037430644035,
0.0569583885371685,
0.0012071067467331886,
0.06814950704574585,
0.018371086567640305,
-0.00312368618324399,
-0.028739919885993004,
0.027997855097055435,
-0.037604570388793945,
-0.008714232593774796,
0.0013738202396780252,
0.026313170790672302,
0.023685865104198456,
0.016525955870747566,
-0.016185006126761436,
0.015252413228154182,
-0.036200664937496185,
-0.0690319612622261,
-0.014550461433827877,
0.03503743186593056,
0.02715551294386387,
0.05162355303764343,
-0.006568264681845903,
-0.10027885437011719,
0.026914844289422035,
-0.024468040093779564,
-0.012775526382029057,
0.02178056724369526,
0.03072544001042843,
-0.004680515266954899,
0.028278635814785957,
0.03070538491010666,
0.057961177080869675,
-0.005786089692264795,
0.052907124161720276,
-0.07083698362112045,
-0.009701979346573353,
0.044002361595630646,
-0.04520570859313011,
0.0020970816258341074,
-0.08936851471662521,
0.032710961997509,
0.05892385542392731,
0.031908731907606125,
0.020065799355506897,
0.004567701835185289,
0.08335178345441818,
0.009305877611041069,
-0.05278678983449936,
-0.04681016877293587,
-0.05238567292690277,
0.03788534924387932,
0.0033417928498238325,
0.058602962642908096,
-0.0002886150614358485,
0.01709754392504692,
-0.008674120530486107,
-0.01814044453203678,
0.01889253593981266,
-0.027255792170763016,
-0.05033998563885689,
-0.02063738740980625,
0.04448369890451431,
-0.04279901459813118,
-0.04745195433497429,
-0.03537837788462639,
-0.02783741056919098,
0.053308237344026566,
0.04139510914683342,
0.0295622069388628,
0.002792766084894538,
-0.03716334328055382,
-0.00803233589977026,
-0.040532711893320084,
0.021700343117117882,
-0.016255201771855354,
-0.0051743886433541775,
0.07837795466184616,
0.006402804981917143,
0.04785306751728058,
0.02390647865831852,
-0.029060812667012215,
-0.06774839013814926,
-0.03890819475054741,
0.056156158447265625,
-0.010459084063768387,
-0.0962677001953125,
-0.011351565830409527,
0.015232358127832413,
0.021640175953507423,
0.02747640572488308,
-0.01301619503647089,
0.01391870528459549,
-0.011963266879320145,
-0.03999120742082596,
0.001242204336449504,
0.03200900927186012,
-0.02426748163998127,
0.0009582897764630616,
0.013637923635542393,
0.021700343117117882,
0.002473127329722047,
-0.01356772892177105,
-0.04540626332163811,
0.02314435876905918,
-0.0015543221961706877,
0.020446857437491417,
0.024367760866880417,
0.06305534392595291,
0.00267744529992342,
-0.06161132827401161,
-0.04275890439748764,
0.009411170147359371,
0.010328722186386585,
-0.007962141185998917,
0.03293157368898392,
-0.026834622025489807,
0.03846696764230728,
0.017288073897361755,
-0.018621783703565598,
0.011873016133904457,
-0.04881574586033821,
-0.016646290197968483,
-0.03706306591629982,
-0.00999780185520649,
-0.03062516264617443,
0.0011933183996006846,
0.018962731584906578,
0.03034438192844391,
-0.07115787267684937,
-0.001355018001049757,
0.007666318211704493,
0.015372748486697674,
-0.0054702116176486015,
-0.03624077886343002,
-0.06847040355205536,
0.07817739248275757,
-0.010800032876431942,
0.006036786828190088,
-0.029080867767333984,
0.03220956772565842,
0.0017310637049376965,
0.043681468814611435,
0.002034407341852784,
0.026313170790672302,
0.020858000963926315,
0.06229322403669357,
0.07075675576925278,
-0.045125484466552734,
-0.05098176747560501,
-0.016295313835144043,
-0.03277112916111946,
-0.007616179063916206,
-0.03493715077638626,
0.06361690163612366,
0.040151651948690414,
-0.006397790741175413,
-0.03385414183139801,
-0.03182850778102875,
0.01319669745862484,
-0.02960231713950634,
-0.015081939287483692,
0.03668200597167015,
0.04091377183794975,
-0.048494853079319,
-0.022362183779478073,
0.05523359403014183,
-0.02282346785068512,
-0.04396224766969681,
-0.02711540274322033,
0.026152724400162697,
-0.05535392835736275,
-0.02675439789891243,
-0.011331510730087757,
0.0746074691414833,
0.019073037430644035,
0.010870227590203285,
0.05852273851633072,
-0.035799551755189896,
0.042999573051929474,
0.06024753674864769,
0.015553249977529049,
-0.04492492601275444,
0.046168383210897446,
-0.01716773957014084,
0.009501421824097633,
-0.024407872930169106,
0.010253513231873512,
-0.012394466437399387,
0.0034796763211488724,
0.02428753860294819,
-0.05772050842642784,
-0.02847919426858425,
-0.002107109408825636,
-0.035799551755189896,
0.00039077416295185685,
-0.02639339491724968,
-0.0818275436758995,
-0.04424303025007248,
0.07881917804479599,
0.05029987171292305,
-0.007706429809331894,
0.010158248245716095,
-0.01851147599518299,
0.02529032714664936,
-0.07709438353776932,
-0.0014327340759336948,
-0.07436680048704147,
-0.020115938037633896,
0.05254611745476723,
0.08046375215053558,
-0.00187270762398839,
-0.030885886400938034,
0.0021572487894445658,
-0.051864221692085266,
-0.00852871686220169,
0.02386636659502983,
0.002330229850485921,
0.06269434094429016,
-0.08840584009885788,
0.04496503621339798,
0.018772201612591743,
-0.022281961515545845,
0.025069713592529297,
-0.05106199160218239,
-0.01215379685163498,
0.034716539084911346,
-0.009210612624883652,
0.016917042434215546,
-0.005715894512832165,
-0.02994326502084732,
-0.0050791241228580475,
-0.0009764653514139354,
-0.01967471092939377,
0.01264516357332468,
-0.019714822992682457,
0.03989092633128166,
-0.03896836191415787,
0.01995549164712429,
-0.026273058727383614,
0.07404590398073196,
0.04432325437664986,
-0.043641358613967896,
0.024367760866880417,
0.013497533276677132,
-0.026914844289422035,
0.019393930211663246,
0.005710880737751722,
-0.018110360950231552,
-0.008147656917572021,
0.01249474473297596,
0.00009777188097359613,
-0.027897577732801437,
-0.006723697297275066,
0.001235310104675591,
-0.06682582944631577,
-0.07420635223388672,
-0.028278635814785957,
0.02637333795428276,
-0.00444987416267395,
0.015834031626582146,
0.10717803984880447,
-0.0646999180316925,
-0.04981853440403938,
0.00525461183860898,
0.0035924899857491255,
0.09394122660160065,
0.0011099615367129445,
0.09522479772567749,
0.02105855941772461,
-0.07115787267684937,
-0.03098616562783718,
0.09177520871162415,
0.011040701530873775,
-0.04251823574304581,
0.060087088495492935,
-0.03062516264617443,
0.008995013311505318,
-0.018982786685228348,
-0.010183317586779594,
0.03780512884259224,
0.05880352109670639,
0.0072752307169139385,
-0.023064136505126953,
0.08166709542274475,
-0.005901410710066557,
-0.03918897733092308,
0.026894789189100266,
-0.043641358613967896,
0.003301681252196431,
-0.023786144331097603,
0.0006201620562933385,
-0.021219005808234215,
-0.02420731447637081,
-0.06738738715648651,
-0.015272469259798527,
-0.0168167632073164,
0.02252263016998768,
-0.01339725498110056,
0.027576684951782227,
0.025731554254889488,
-0.03918897733092308,
-0.015483055263757706,
0.02244240790605545,
0.026152724400162697,
-0.03433547914028168,
-0.00801228079944849,
0.010233457200229168,
0.002247499767690897,
0.08335178345441818,
0.02282346785068512,
-0.01318666897714138,
0.013718146830797195,
0.010970506817102432,
0.01823069527745247,
0.03736390173435211,
-0.006914226803928614,
-0.03321235626935959,
-0.018641838803887367,
-0.043360576033592224,
-0.08792449533939362,
0.005086645018309355,
0.02063738740980625,
0.08447490632534027,
-0.01962457224726677,
-0.017318157479166985,
-0.00783679261803627,
-0.035057488828897476,
0.06457958370447159,
-0.03200900927186012,
-0.03182850778102875,
0.011100868694484234,
0.005264639854431152,
-0.04468425735831261,
-0.029100922867655754,
-0.021840734407305717,
0.06281467527151108,
0.044042471796274185,
0.02282346785068512,
-0.02954214997589588,
-0.06474002450704575,
-0.019373875111341476,
0.03034438192844391,
0.04235778748989105,
-0.020958280190825462,
-0.04316001757979393,
0.006954338401556015,
-0.01892261952161789,
0.008363256230950356,
-0.013036251068115234,
-0.030424604192376137,
-0.037604570388793945,
-0.03840680047869682,
-0.010609502904117107,
0.0018513983814045787,
0.03850708156824112,
0.004056279547512531,
0.04596782475709915,
-0.00962677039206028,
0.033332690596580505
] |
21,134 | tfields.mesh_3d | remove_faces |
Remove faces where face_delete_mask is True
| def remove_faces(self, face_delete_mask):
"""
Remove faces where face_delete_mask is True
"""
face_delete_mask = np.array(face_delete_mask, dtype=bool)
self.faces = self.faces[~face_delete_mask]
self.faces.fields = self.faces.fields[~face_delete_mask]
| (self, face_delete_mask) | [
0.05921824276447296,
-0.025565968826413155,
-0.05583733320236206,
0.003202281426638365,
-0.09836014360189438,
-0.008304147981107235,
-0.018194187432527542,
0.07960828393697739,
0.0003708764852490276,
0.006740040145814419,
0.006199791096150875,
-0.02099999599158764,
-0.05914853513240814,
-0.010543566197156906,
-0.037294596433639526,
-0.041581735014915466,
-0.008038380183279514,
0.04489293694496155,
0.05217758193612099,
-0.060473017394542694,
-0.02863318845629692,
-0.03475020080804825,
-0.02356182038784027,
0.023230699822306633,
0.04280165210366249,
0.03285061568021774,
0.012425723485648632,
-0.015763066709041595,
0.06591036170721054,
0.07549542188644409,
-0.018734436482191086,
-0.0010211357148364186,
-0.003574791830033064,
0.043533600866794586,
-0.004363380838185549,
0.014290452934801579,
0.04203484579920769,
0.08420910686254501,
-0.008691906929016113,
0.043498747050762177,
-0.030410781502723694,
-0.02284729853272438,
0.042209118604660034,
0.019710369408130646,
0.028912026435136795,
-0.01803733967244625,
0.04179086163640022,
0.01652987115085125,
0.012599997222423553,
0.03241493180394173,
-0.022028211504220963,
-0.05245641991496086,
0.04147716984152794,
0.07974769920110703,
-0.023997504264116287,
-0.033756840974092484,
-0.01862987130880356,
0.0017579871928319335,
0.0019736511167138815,
0.03196181729435921,
-0.010944396257400513,
-0.03851451352238655,
-0.005515766330063343,
-0.06134438514709473,
0.01920497417449951,
-0.05193359777331352,
-0.009227799251675606,
0.012948544695973396,
-0.02600165456533432,
0.03617924451828003,
-0.07305558770895004,
0.01448215451091528,
0.06078670918941498,
0.044997502118349075,
-0.01091825496405363,
-0.029887961223721504,
0.04241824895143509,
0.06535268574953079,
-0.01814190484583378,
-0.035185884684324265,
0.06775765866041183,
0.0009982621995732188,
-0.00999460369348526,
0.04614770784974098,
0.02382323145866394,
0.032362647354602814,
0.06793193519115448,
0.001561929122544825,
0.03813111037015915,
-0.07002322375774384,
0.01506597176194191,
-0.02138339728116989,
-0.006809749640524387,
-0.06730455160140991,
0.013453938998281956,
0.03481990844011307,
-0.017915349453687668,
0.007977384142577648,
-0.040326960384845734,
-0.06441160291433334,
0.018473025411367416,
0.018873855471611023,
0.0026358915492892265,
0.012277591042220592,
0.016547299921512604,
0.008160371333360672,
0.023875514045357704,
-0.10909540951251984,
0.016024477779865265,
0.030253935605287552,
-0.01675642840564251,
0.06172778829932213,
0.003844916122034192,
0.0905526801943779,
-0.0011698129819706082,
-0.06134438514709473,
-0.005424272734671831,
-0.046461399644613266,
-0.013105391524732113,
-0.02743070013821125,
-0.012931117787957191,
0.003857986768707633,
-0.012443150393664837,
-0.021505389362573624,
0.035830698907375336,
0.048378411680459976,
0.05412944778800011,
0.05527965724468231,
0.0323103666305542,
-0.024921156466007233,
-0.04579915851354599,
-0.013645640574395657,
-0.07194023579359055,
-0.04778588190674782,
-0.010299582965672016,
-0.03802654892206192,
0.015876345336437225,
-0.04485808312892914,
0.02626306563615799,
0.0236663855612278,
-0.006565766409039497,
0.03820082172751427,
0.027482980862259865,
0.0409543476998806,
-0.021697090938687325,
0.04918007180094719,
0.044544387608766556,
-0.036771778017282486,
-0.010848545469343662,
-0.0034963686484843493,
-0.02727385237812996,
0.026873022317886353,
-0.03565642237663269,
-0.025897089391946793,
-0.01882157288491726,
0.05496596172451973,
-0.01732281781733036,
-0.06643318384885788,
-0.03572613373398781,
0.04879666864871979,
-0.021819083020091057,
0.021139414981007576,
-0.021958502009510994,
0.002688173670321703,
-0.0019496884196996689,
-0.019814932718873024,
0.0837908536195755,
-0.05099251866340637,
-0.03694605082273483,
0.057092104107141495,
-0.010186305269598961,
0.023840658366680145,
-0.008439210243523121,
0.014856843277812004,
0.043498747050762177,
0.07016263902187347,
0.02138339728116989,
-0.029103728011250496,
-0.01431659422814846,
0.009855184704065323,
-0.0016915452433750033,
-0.004897094331681728,
0.006870745215564966,
0.005306637845933437,
0.048936087638139725,
0.024816591292619705,
-0.017932776361703873,
0.01023858692497015,
0.030863894149661064,
-0.005846886895596981,
-0.02784895710647106,
0.02483402006328106,
0.008909748867154121,
0.022777589038014412,
-0.020494600757956505,
-0.03597011789679527,
-0.019030701369047165,
-0.0360746793448925,
-0.05475683510303497,
-0.02002406120300293,
-0.04402156546711922,
-0.030253935605287552,
-0.054268866777420044,
-0.03746887296438217,
-0.03882820904254913,
0.03851451352238655,
0.030863894149661064,
0.011937757022678852,
0.016878420487046242,
0.0058556003496050835,
-0.0008561201393604279,
-0.04081492871046066,
0.031944390386343,
0.006591907236725092,
0.06172778829932213,
-0.07577425986528397,
-0.029051445424556732,
0.04370787367224693,
-0.02753526344895363,
0.07368297129869461,
-0.04823899269104004,
0.06493442505598068,
-0.02115684188902378,
-0.024206634610891342,
-0.05311866104602814,
0.05573276802897453,
0.017139829695224762,
0.010979251004755497,
-0.00914937537163496,
-0.07793525606393814,
0.030253935605287552,
-0.017915349453687668,
-0.04736762493848801,
-0.04862239584326744,
0.01566721685230732,
0.07995682954788208,
0.03185725584626198,
-0.04137260466814041,
0.0020814829040318727,
0.00888360757380724,
0.03823567554354668,
-0.04977260157465935,
0.030829038470983505,
0.02246389538049698,
0.03386140242218971,
0.03760829195380211,
0.040326960384845734,
-0.008234438486397266,
0.0009998960886150599,
-0.012922403402626514,
-0.04252281412482262,
-0.03987384960055351,
-0.0043829865753650665,
0.04907550662755966,
0.0514804869890213,
-0.02577509731054306,
-0.006234645843505859,
-0.004430911969393492,
0.0003512706607580185,
0.025217421352863312,
-0.028319496661424637,
-0.03666721284389496,
0.06807135790586472,
0.0008588431519456208,
0.057614926248788834,
0.016808709129691124,
0.024886300787329674,
0.07110372185707092,
-0.010343151167035103,
-0.039699576795101166,
0.04008297994732857,
-0.04468380659818649,
0.014647714793682098,
0.003008401719853282,
-0.008404354564845562,
0.009123234078288078,
0.0012144707143306732,
0.040222398936748505,
0.04576430469751358,
0.03288546949625015,
0.06294770538806915,
-0.05831202119588852,
-0.008739831857383251,
0.05392032116651535,
-0.023614102974534035,
0.0072367205284535885,
0.016826137900352478,
0.0510970838367939,
0.00566389923915267,
-0.029975097626447678,
-0.018211614340543747,
-0.0019867215305566788,
0.01856016181409359,
-0.0261062178760767,
-0.03412281349301338,
-0.018281323835253716,
-0.005881741642951965,
-0.02645476534962654,
-0.03600497171282768,
-0.001454097218811512,
0.041268039494752884,
-0.00045855800271965563,
0.033199161291122437,
0.02941742166876793,
0.04008297994732857,
-0.04900579899549484,
0.020529456436634064,
0.009863898158073425,
0.06730455160140991,
0.005145434755831957,
0.030149370431900024,
-0.05405974015593529,
-0.05510538071393967,
-0.010421574115753174,
0.04189542680978775,
0.027082152664661407,
0.048448123037815094,
0.002836306346580386,
-0.014325307682156563,
0.05500081926584244,
0.022603314369916916,
-0.04147716984152794,
-0.050295423716306686,
0.03039335459470749,
-0.042174264788627625,
-0.07528629153966904,
-0.009018669836223125,
0.031735263764858246,
-0.045555178076028824,
0.061867207288742065,
-0.06653774529695511,
0.018612444400787354,
0.026768459007143974,
0.029504558071494102,
-0.007363068871200085,
-0.037852272391319275,
0.03952530398964882,
-0.02535684034228325,
-0.00867883674800396,
0.02802322991192341,
-0.03722488880157471,
0.02356182038784027,
-0.005206430330872536,
0.014569291844964027,
0.022481322288513184,
0.045450612902641296,
-0.041616588830947876,
0.046984221786260605,
0.024712027981877327,
0.03889791667461395,
0.07988712191581726,
0.023387547582387924,
0.03222322836518288,
0.0326937697827816,
0.0246074628084898,
-0.026367628946900368,
-0.04443982616066933,
0.02171451784670353,
-0.010107881389558315,
0.01833360642194748,
0.03565642237663269,
-0.01431659422814846,
0.017035266384482384,
-0.01416846178472042,
0.008478421717882156,
-0.021766800433397293,
-0.05604645982384682,
-0.04764646291732788,
-0.013872195966541767,
-0.04234853759407997,
0.008635267615318298,
-0.02099999599158764,
-0.053258080035448074,
-0.006966596003621817,
0.05200330913066864,
0.010151450522243977,
-0.054652269929647446,
0.07521658390760422,
0.02190621942281723,
0.06835019588470459,
-0.02333526499569416,
-0.010343151167035103,
-0.019867215305566788,
0.0024332981556653976,
-0.024729454889893532,
0.011040246114134789,
-0.06336595863103867,
0.0306199099868536,
0.045450612902641296,
0.030916176736354828,
0.022969288751482964,
-0.030672192573547363,
0.022795015946030617,
-0.08295433968305588,
-0.00980290211737156,
0.02265559695661068,
-0.07047633081674576,
0.024520326405763626,
0.002611928852275014,
0.0014922196278348565,
0.008456637151539326,
0.05402488633990288,
-0.08100247383117676,
0.05360662564635277,
0.007393566891551018,
0.07598338276147842,
-0.05144563317298889,
0.028005803003907204,
0.009253939613699913,
-0.018246468156576157,
0.04775102809071541,
0.011641491204500198,
0.029260573908686638,
0.022237339988350868,
0.004940662998706102,
0.04677509516477585,
0.021575098857283592,
-0.02847634255886078,
-0.000014891561477270443,
0.017610369250178337,
0.016242319718003273,
0.03659750148653984,
-0.04084978252649307,
-0.010874686762690544,
-0.03555186092853546,
-0.017985058948397636,
-0.016503730788826942,
0.029887961223721504,
0.010848545469343662,
0.046043142676353455,
-0.04043152555823326,
-0.06796678900718689,
0.010961823165416718,
-0.014830701984465122,
-0.01807219535112381,
0.05646471679210663,
-0.04827385023236275,
0.0013331947848200798,
-0.03387882933020592,
0.057510361075401306,
0.018769290298223495,
0.0029234434477984905,
-0.0006306534050963819,
-0.0691169947385788,
0.007271575275808573,
0.0360746793448925,
-0.07075516879558563,
0.08274520933628082,
0.02525227703154087,
0.027970949187874794,
0.07500745356082916,
-0.012268876656889915,
-0.01652987115085125,
-0.03408795967698097,
0.027970949187874794,
-0.010369292460381985,
0.004021368455141783,
-0.002659854246303439,
0.009942321106791496,
0.0003112421545665711,
0.04252281412482262,
0.025391696020960808,
-0.1116049513220787,
0.002452904125675559,
-0.0047489614225924015,
0.0111796660348773,
0.06545724719762802,
0.0007188795134425163,
-0.010944396257400513,
-0.00905352458357811,
0.034175097942352295,
-0.09773276001214981,
-0.007742114365100861,
-0.03039335459470749,
-0.03211866691708565,
0.07333442568778992,
0.0077987536787986755,
0.041198331862688065,
-0.030724475160241127,
-0.030968457460403442,
-0.03077675588428974,
-0.03211866691708565,
-0.05123650282621384,
-0.037817418575286865,
-0.00043595684110186994,
-0.014752279035747051,
-0.029208293184638023,
0.03858422487974167,
0.041686296463012695,
-0.012539001181721687,
0.010299582965672016,
-0.04677509516477585,
-0.044997502118349075,
-0.017932776361703873,
0.07744728773832321,
-0.04785558953881264,
-0.034018248319625854,
0.013253523968160152,
0.06549210101366043,
-0.01701783947646618,
-0.01852530799806118,
-0.008042736910283566,
-0.06214604526758194,
-0.060891274362802505,
-0.0012711096787825227,
-0.034018248319625854,
0.06482986360788345,
-0.01829875074326992,
-0.039281319826841354,
-0.003587862243875861,
-0.020146053284406662,
-0.031735263764858246,
-0.03694605082273483,
0.02099999599158764,
0.011031532660126686,
-0.0016686718445271254,
0.0011643669568002224,
0.006770538166165352,
0.01497012097388506,
-0.012582570314407349,
-0.004345953464508057,
0.004454874433577061,
-0.05200330913066864,
0.01619003713130951,
-0.024624891579151154,
-0.001827696687541902,
-0.02859833464026451,
-0.006796678993850946,
0.05667384713888168,
-0.056151024997234344,
0.0036706423852592707,
-0.05789376422762871,
-0.0204771738499403,
-0.00883132591843605,
-0.018473025411367416,
-0.029661403968930244,
-0.0027622401248663664,
-0.09062238782644272,
0.0249908659607172,
0.00698838010430336,
0.020076343789696693,
0.007772612385451794,
-0.01305310893803835,
0.013323233462870121,
-0.0012395225930958986,
0.04179086163640022,
0.010735267773270607,
-0.02201078273355961,
0.08504562824964523,
0.0153099549934268,
-0.02340497449040413,
0.0062956418842077255,
-0.017035266384482384,
-0.020372610539197922,
0.02528713084757328,
0.05015600472688675,
0.0124954329803586,
-0.026019081473350525,
-0.029661403968930244,
-0.05531451106071472,
-0.01852530799806118,
-0.027221571654081345,
0.09592030942440033,
-0.008378214202821255,
-0.02502571977674961,
0.0041629658080637455,
0.007210579235106707,
0.01732281781733036,
0.007018878124654293,
-0.00433070445433259,
-0.03429708629846573,
0.0073282141238451,
-0.025600824505090714,
0.012129457667469978,
0.018838999792933464,
0.03670206665992737,
0.044579245150089264,
0.005559334997087717,
0.018124477937817574,
-0.021853936836123466,
-0.03987384960055351,
-0.059531938284635544,
0.006862031761556864,
-0.04565973952412605,
0.021801654249429703,
0.04241824895143509,
0.03956015780568123,
-0.012721989303827286,
0.053258080035448074,
0.03788712993264198,
0.025147711858153343,
0.013009540736675262,
0.03487219288945198,
-0.020198335871100426,
-0.0466008186340332,
-0.0007128888391889632,
0.020756011828780174,
-0.03858422487974167,
-0.06828048080205917,
0.031944390386343,
0.03422737866640091,
-0.04879666864871979,
0.05454770475625992,
-0.005559334997087717,
-0.045520320534706116,
-0.0012656636536121368,
-0.032746050506830215,
-0.01652987115085125,
0.0054939822293818,
-0.05283982306718826,
-0.0544779971241951,
0.02415435202419758,
-0.014447299763560295,
0.008330288343131542,
0.0499817319214344,
-0.010831117630004883,
0.017897920683026314,
-0.0054329861886799335,
-0.002742634154856205,
0.031020740047097206,
-0.05782405287027359,
-0.06399334967136383,
-0.018612444400787354,
0.009253939613699913,
0.01972779631614685,
-0.04754189774394035,
0.015614934265613556,
0.027378417551517487,
-0.04199999198317528,
0.044160984456539154,
-0.013192527927458286,
-0.023701239377260208,
-0.051410775631666183,
0.000984102487564087,
-0.0007548235007561743,
-0.009881325997412205,
-0.02795352041721344,
-0.011780910193920135,
-0.04994687810540199,
0.03387882933020592,
0.017226967960596085,
-0.045520320534706116,
0.0075242724269628525,
-0.012730702757835388,
-0.04684480279684067,
-0.022777589038014412,
0.01589377224445343,
-0.02152281627058983,
0.020424891263246536,
0.021104559302330017,
0.00046345943701453507,
0.0458340160548687,
-0.018403315916657448,
-0.04276679456233978,
-0.0065396251156926155,
0.045485466718673706,
0.002110891742631793,
0.01693941466510296,
0.01904812827706337,
-0.010421574115753174,
-0.013253523968160152,
0.01908298395574093,
0.006195434369146824,
-0.020825721323490143,
-0.021104559302330017,
-0.005228214431554079,
-0.002017219550907612,
-0.0010118773207068443,
0.03579584136605263,
0.033007461577653885,
-0.043080490082502365,
-0.011859333142638206,
-0.109722800552845,
-0.04137260466814041,
-0.018891282379627228,
0.018647298216819763,
0.02619335614144802,
-0.00039048228063620627,
0.014081324450671673,
0.031386714428663254,
-0.02054688334465027,
0.032101236283779144,
0.007559127174317837,
0.044579245150089264,
0.028790034353733063,
0.023509537801146507,
0.0070580895990133286,
0.04189542680978775,
-0.011136096902191639,
0.01348879374563694,
-0.05548878386616707,
-0.056116171181201935,
0.09257425367832184,
0.019100410863757133,
-0.0072367205284535885,
0.035865552723407745,
-0.001521628350019455,
-0.03295518085360527,
0.008739831857383251,
0.045485466718673706,
-0.005528836976736784,
0.0038514514453709126,
-0.08741574734449387,
-0.0341925248503685,
-0.03481990844011307,
0.014813275076448917,
0.002435476751998067,
0.026855595409870148,
0.0002130769717041403,
-0.019936924800276756,
-0.011022819206118584,
0.058521147817373276,
0.006304355338215828,
-0.0040409741923213005,
-0.00524128507822752,
0.036388374865055084,
-0.03603982552886009,
-0.04189542680978775,
-0.00131032126955688,
-0.03865393251180649,
0.04325476288795471,
0.0687684491276741,
0.02753526344895363,
0.04004812240600586,
-0.05792861804366112,
-0.07828380167484283,
-0.03799169138073921,
-0.027134433388710022,
-0.06482986360788345,
0.00892281997948885,
0.07723815739154816,
0.02859833464026451,
-0.05841658636927605,
-0.005450413562357426,
-0.04764646291732788,
-0.011693773791193962,
0.06608463078737259,
-0.013305806554853916,
0.007637550123035908,
0.003553007496520877,
-0.00029517628718167543,
-0.02753526344895363,
-0.023038998246192932,
0.00691431388258934,
0.025670533999800682,
0.04687965661287308,
0.03422737866640091,
0.008770329877734184,
-0.010857258923351765,
-0.03617924451828003,
0.00608651340007782,
0.03028878942131996,
-0.018926136195659637,
0.01280912570655346,
0.03065476566553116,
0.003069397760555148,
0.01382862776517868,
-0.023126136511564255,
-0.017270535230636597,
-0.04175600782036781,
-0.03893277049064636,
0.02040746435523033,
-0.029469702392816544,
-0.006212861742824316,
0.008909748867154121,
0.021993355825543404,
0.0013212134363129735,
-0.022934434935450554
] |
21,135 | tfields.core | removed |
Return copy of self without vertices where remove_condition is True
Copy because self is immutable
Examples:
>>> 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.keep([False, False, False, True, True, True, True])
>>> c.equal([[0, 0, 0],
... [3, 3, 3],
... [4, 4, 4],
... [5, 5, 5]])
True
>>> assert c.maps[3].equal([[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 removed(self, remove_condition):
"""
Return copy of self without vertices where remove_condition is True
Copy because self is immutable
Examples:
>>> 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.keep([False, False, False, True, True, True, True])
>>> c.equal([[0, 0, 0],
... [3, 3, 3],
... [4, 4, 4],
... [5, 5, 5]])
True
>>> assert c.maps[3].equal([[0, 1, 2], [0, 1, 3]])
>>> assert c.maps[3].fields[0].equal([5, 9])
>>> assert c.maps[3].fields[1].equal([6, 0])
"""
remove_condition = np.array(remove_condition)
return self[~remove_condition]
| (self, remove_condition) | [
0.03712787479162216,
-0.0173665601760149,
-0.03802362456917763,
0.03317926824092865,
-0.06083780154585838,
-0.047566093504428864,
-0.06840596348047256,
0.050673794001340866,
0.04339811950922012,
-0.01288781501352787,
-0.00785608310252428,
-0.015346555039286613,
-0.03180822357535362,
-0.01420401781797409,
-0.024185219779610634,
-0.0015389970503747463,
-0.021571096032857895,
0.0036378372460603714,
0.02833491377532482,
-0.07341484725475311,
0.008930067531764507,
-0.016562214121222496,
0.040253859013319016,
0.08635750412940979,
-0.0030848493333905935,
-0.0048809172585606575,
-0.01481641735881567,
-0.03180822357535362,
0.02253996580839157,
0.01092265173792839,
-0.011279123835265636,
-0.00868328008800745,
-0.03063826821744442,
0.006617573089897633,
0.0011859532678499818,
0.023326031863689423,
0.021315166726708412,
0.05608484894037247,
0.0032288089860230684,
-0.01935914345085621,
-0.00648503890261054,
-0.05049098655581474,
0.02910269796848297,
0.02424006164073944,
0.058826934546232224,
0.004652409814298153,
0.04869949072599411,
-0.005241958890110254,
0.02723807841539383,
0.04869949072599411,
0.03727412223815918,
0.04855324327945709,
0.02021833136677742,
0.07425574958324432,
-0.015017503872513771,
-0.044641200453042984,
0.004867206793278456,
-0.016160041093826294,
0.031442612409591675,
0.03365456312894821,
0.016379408538341522,
0.0003636123437900096,
-0.006745537277311087,
-0.013134603388607502,
0.020328015089035034,
-0.010502198711037636,
-0.018271448090672493,
0.013655600138008595,
-0.008870655670762062,
0.016617055982351303,
-0.06763818114995956,
-0.006105716805905104,
0.054988011717796326,
0.0041885399259626865,
0.024477709084749222,
-0.032539449632167816,
0.012677588500082493,
0.040107611566782,
0.02654341608285904,
-0.09696024656295776,
0.0027306629344820976,
-0.014030352234840393,
-0.008294817060232162,
0.016224022954702377,
0.0003958890156354755,
0.027530567720532417,
0.032137274742126465,
-0.034678276628255844,
0.00022436566359829158,
-0.06968560814857483,
-0.04635957255959511,
0.05816883593797684,
-0.05425678938627243,
-0.0013881822815164924,
0.045884277671575546,
0.04460463672876358,
0.0006478183786384761,
-0.036159005016088486,
-0.004433042835444212,
-0.006092006340622902,
0.09827644377946854,
0.016297144815325737,
-0.04661550372838974,
-0.0026049839798361063,
0.05765697732567787,
0.012211433611810207,
-0.009268258698284626,
-0.0632873997092247,
0.023289470002055168,
0.014185736887156963,
-0.01669931784272194,
0.0733051598072052,
-0.02994360588490963,
0.04515305534005165,
-0.0064667584374547005,
-0.025519702583551407,
-0.03217383846640587,
-0.06650478392839432,
-0.050673794001340866,
-0.028499439358711243,
0.013235146179795265,
0.0046798307448625565,
-0.04252064973115921,
0.0076869879849255085,
0.01753108575940132,
0.007339656352996826,
0.05586548149585724,
0.02438630536198616,
0.02239372208714485,
-0.09301164001226425,
-0.04336155578494072,
-0.04036354273557663,
0.007495041470974684,
0.00392804155126214,
0.012056048959493637,
-0.022265758365392685,
0.012622746638953686,
-0.015127187594771385,
0.0061742691323161125,
0.03696335107088089,
-0.0012190868146717548,
0.0005087145254947245,
0.015447097830474377,
0.0787527784705162,
0.0009825816377997398,
-0.09323100745677948,
-0.011333965696394444,
-0.02870052494108677,
0.012266275472939014,
0.015282572247087955,
-0.0470542348921299,
0.026835905387997627,
-0.013098042458295822,
-0.02285073697566986,
-0.06288522481918335,
0.05586548149585724,
0.004940329119563103,
-0.06244649365544319,
-0.010164007544517517,
-0.0013321979204192758,
0.00953332707285881,
0.023015262559056282,
0.011599034070968628,
0.008669569157063961,
-0.006937483791261911,
-0.009067172184586525,
0.09067172557115555,
-0.021040957421064377,
-0.08050771802663803,
0.022576527670025826,
0.03250288590788841,
-0.013609898276627064,
0.013619039207696915,
0.034842804074287415,
-0.027457445859909058,
0.05773010104894638,
0.022192634642124176,
0.004227386321872473,
-0.03952263295650482,
-0.013436232693493366,
0.03996136784553528,
0.008975769393146038,
-0.02491644397377968,
0.003662972943857312,
0.09045235812664032,
-0.030108129605650902,
-0.02709183283150196,
0.0017035224009305239,
0.04204535484313965,
0.003519013524055481,
-0.03303302451968193,
-0.028206950053572655,
0.04884573444724083,
0.06299491226673126,
0.022046390920877457,
-0.02424006164073944,
-0.0358847975730896,
0.015767008066177368,
-0.046871431171894073,
0.03495248779654503,
-0.05319651588797569,
-0.07012434303760529,
-0.014889540150761604,
-0.00006087579095037654,
-0.08072708547115326,
0.0239110104739666,
0.0331975482404232,
0.0156390443444252,
0.023892730474472046,
0.046798307448625565,
0.005200827494263649,
-0.02732948027551174,
0.09162231534719467,
0.009697852656245232,
0.060545310378074646,
-0.07926463335752487,
-0.05458584055304527,
0.08635750412940979,
-0.008153142407536507,
0.009131154045462608,
-0.05820539593696594,
0.02268621139228344,
-0.0006992325652390718,
-0.03679882735013962,
-0.011242561973631382,
0.0013596188509836793,
-0.028517719358205795,
-0.04306906834244728,
-0.01899353228509426,
-0.08994049578905106,
0.0702705830335617,
0.0012784986756742,
0.007952055893838406,
-0.07341484725475311,
0.020401136949658394,
0.007952055893838406,
-0.037164438515901566,
-0.03343519940972328,
0.04365404695272446,
-0.02460567280650139,
-0.02222919650375843,
0.0005901202675886452,
0.030674828216433525,
0.06113028898835182,
0.039705440402030945,
0.041935671120882034,
0.012211433611810207,
0.05549987033009529,
0.017567645758390427,
0.005945761688053608,
-0.026653099805116653,
-0.04043666273355484,
-0.023051822558045387,
0.04299594461917877,
0.06072811782360077,
0.02670794166624546,
0.027274638414382935,
-0.020565662533044815,
-0.01142536848783493,
0.01595895364880562,
-0.014432525262236595,
-0.03279537707567215,
0.01808864250779152,
-0.03094903752207756,
0.07399982213973999,
-0.05056411027908325,
0.030108129605650902,
0.0802883505821228,
0.009515047073364258,
0.028517719358205795,
0.028609121218323708,
0.0401441752910614,
0.023362593725323677,
-0.039339829236269,
-0.01875588484108448,
0.0065947226248681545,
-0.02029145322740078,
-0.029833922162652016,
0.05198999494314194,
0.0019765887409448624,
0.012220573611557484,
-0.03442234918475151,
-0.0439830981194973,
0.02424006164073944,
-0.023033542558550835,
-0.005219108425080776,
-0.005872639361768961,
-0.026525134220719337,
0.026177803054451942,
-0.01473415456712246,
-0.008226265199482441,
-0.003806932596489787,
0.015821849927306175,
-0.05155126005411148,
0.015373975969851017,
-0.04135069251060486,
-0.038242992013692856,
-0.02076674997806549,
-0.01690954528748989,
0.02113236114382744,
0.08226265013217926,
-0.03657945990562439,
-0.011489350348711014,
-0.009789255447685719,
0.029687676578760147,
-0.006037164479494095,
0.025812191888689995,
0.023600241169333458,
0.004757523536682129,
0.002851771889254451,
0.04200879484415054,
-0.022558247670531273,
-0.014725014567375183,
-0.016726739704608917,
0.028755366802215576,
0.029340345412492752,
0.015520220622420311,
0.008774682879447937,
0.027585409581661224,
0.0625561773777008,
0.039303265511989594,
-0.03334379568696022,
-0.07495041936635971,
0.05465896055102348,
-0.04007105156779289,
-0.08058083802461624,
0.03008984960615635,
-0.03868172690272331,
-0.03295990079641342,
0.035153571516275406,
-0.023106664419174194,
0.05071035400032997,
-0.018847286701202393,
0.003112270263954997,
-0.048114512115716934,
-0.027749935165047646,
0.0571085624396801,
0.002767224097624421,
-0.002197098219767213,
0.0328136570751667,
0.026872465386986732,
-0.044421833008527756,
-0.012184012681245804,
0.036232128739356995,
-0.026872465386986732,
0.02107751928269863,
-0.03173510357737541,
0.019030094146728516,
0.03959575667977333,
0.04434870928525925,
0.08855117112398148,
0.08811243623495102,
-0.0016109768766909838,
0.04339811950922012,
0.034075018018484116,
0.024660514667630196,
-0.016946105286478996,
0.04113132506608963,
-0.04160661995410919,
0.014788996428251266,
0.06390894204378128,
0.00786979403346777,
0.023728204891085625,
-0.02910269796848297,
0.036012761294841766,
-0.027292920276522636,
0.013747002929449081,
-0.045811157673597336,
-0.06986841559410095,
-0.047346726059913635,
-0.031753383576869965,
-0.03897421434521675,
0.03402017802000046,
0.03732896223664284,
0.04127756878733635,
-0.011315684765577316,
-0.06219056621193886,
0.007723548915237188,
-0.020254893228411674,
0.023636801168322563,
-0.03063826821744442,
-0.02531861513853073,
-0.024879882112145424,
-0.005369923077523708,
-0.043251875787973404,
0.04851668328046799,
-0.036305248737335205,
-0.01633370667695999,
0.05209967866539955,
0.010575320571660995,
-0.003169397125020623,
-0.02987048216164112,
-0.010639303363859653,
-0.028462877497076988,
-0.014012071304023266,
0.0008831809391267598,
-0.07743657380342484,
-0.009816676378250122,
-0.004348495043814182,
-0.06156902387738228,
0.019413985311985016,
0.0023810467682778835,
-0.05418366566300392,
0.015291713178157806,
-0.00207484676502645,
-0.018737604841589928,
-0.024185219779610634,
0.05666982755064964,
0.02199154905974865,
-0.018701042979955673,
0.054147105664014816,
0.02639717049896717,
0.0050820037722587585,
-0.015026643872261047,
0.01866448111832142,
-0.025355177000164986,
0.032064154744148254,
-0.0006712403846904635,
0.03325239196419716,
0.00023222061281558126,
0.019651632755994797,
0.04767577722668648,
0.005740105174481869,
-0.04690799117088318,
0.009108303114771843,
-0.006987755186855793,
0.0023879020009189844,
0.026835905387997627,
-0.02292385883629322,
0.08474881201982498,
-0.033380355685949326,
-0.1165570393204689,
0.007129429839551449,
0.005351642612367868,
-0.03948607295751572,
0.06288522481918335,
0.01829886995255947,
-0.00928196869790554,
-0.006558161228895187,
0.0670897588133812,
0.011352245695888996,
0.004940329119563103,
-0.02400241419672966,
-0.05539018660783768,
-0.013180305249989033,
0.04390997439622879,
-0.0895017683506012,
0.031844787299633026,
0.02460567280650139,
0.01847253553569317,
0.07926463335752487,
0.042630333453416824,
0.0033613434061408043,
-0.023600241169333458,
-0.016946105286478996,
0.0102279894053936,
-0.041167885065078735,
-0.06584668159484863,
-0.04676174744963646,
-0.009359661489725113,
0.06372613459825516,
0.06211744248867035,
-0.02654341608285904,
-0.005379063542932272,
0.0183262899518013,
0.00999034196138382,
0.040326979011297226,
-0.009935500100255013,
-0.018847286701202393,
0.0022942139767110348,
0.05074691399931908,
-0.09425471723079681,
-0.05816883593797684,
-0.007947485893964767,
0.023965852335095406,
0.03604932129383087,
-0.04284970089793205,
0.013975510373711586,
0.004803224932402372,
-0.013619039207696915,
-0.06178839132189751,
0.013810984790325165,
-0.05670638754963875,
-0.02060222439467907,
0.017768733203411102,
0.02246684394776821,
-0.02014520950615406,
-0.027512285858392715,
0.05111252889037132,
0.01571216620504856,
-0.035372938960790634,
-0.03535465896129608,
0.015547641552984715,
-0.004821505397558212,
0.028755366802215576,
0.0011533909710124135,
-0.024020694196224213,
0.004028584808111191,
0.09505906701087952,
0.019413985311985016,
0.0065216002985835075,
0.03155229613184929,
-0.04230128228664398,
-0.010291971266269684,
-0.013372250832617283,
-0.06113028898835182,
0.03652461618185043,
0.012211433611810207,
-0.013929808512330055,
0.004638699349015951,
0.025263775140047073,
-0.01690954528748989,
0.00679123867303133,
0.03820643201470375,
0.022265758365392685,
-0.00669069541618228,
-0.01983444020152092,
0.04548210650682449,
-0.0032996463123708963,
-0.025355177000164986,
0.015611623413860798,
0.062007758766412735,
-0.03436750918626785,
-0.023947572335600853,
-0.03791394084692001,
0.004903768189251423,
-0.04453151673078537,
-0.07012434303760529,
0.045884277671575546,
-0.03301474452018738,
-0.03897421434521675,
-0.0486263670027256,
-0.01076726708561182,
0.008509614504873753,
-0.011078037321567535,
0.029925324022769928,
0.014057773165404797,
-0.030583426356315613,
0.0051551260985434055,
0.0022690780460834503,
0.05447615683078766,
0.027987582609057426,
0.07992273569107056,
-0.0010322820162400603,
-0.026890747249126434,
0.04994256794452667,
0.003601276082918048,
0.0223754420876503,
-0.041167885065078735,
0.02222919650375843,
-0.04029041901230812,
-0.01219315268099308,
0.016032077372074127,
-0.05996033176779747,
0.06847908347845078,
0.03696335107088089,
0.01366474013775587,
-0.027347762137651443,
-0.028298351913690567,
0.005676122847944498,
0.00983495730906725,
-0.027530567720532417,
0.06964904814958572,
0.020108647644519806,
-0.012787272222340107,
0.04120444878935814,
0.03593963757157326,
-0.009026041254401207,
0.0393763892352581,
0.04200879484415054,
0.020328015089035034,
0.030912475660443306,
-0.004848926328122616,
0.028810208663344383,
-0.015447097830474377,
0.007216262631118298,
0.06361644715070724,
-0.003272225381806493,
-0.008226265199482441,
-0.055902041494846344,
-0.044860564172267914,
-0.006251961458474398,
0.031058721244335175,
-0.00029163251747377217,
-0.00786979403346777,
0.003608131315559149,
0.012641027569770813,
0.05239216983318329,
0.03542778268456459,
0.05893661826848984,
0.08862429857254028,
0.033599723130464554,
0.011535052210092545,
0.016278864815831184,
-0.016086919233202934,
-0.028206950053572655,
0.03133292868733406,
0.001342480769380927,
-0.0717695951461792,
0.07155022770166397,
-0.0070882984437048435,
-0.04350780323147774,
0.04339811950922012,
0.03191790729761124,
-0.07963024824857712,
-0.04968664050102234,
-0.07304923236370087,
-0.0002367907582083717,
0.002410752698779106,
-0.02838975563645363,
-0.0039874534122645855,
-0.004229671321809292,
-0.009249977767467499,
-0.05348900333046913,
0.04423902556300163,
-0.040692590177059174,
-0.01690954528748989,
0.038864534348249435,
0.022741053253412247,
-0.020200051367282867,
-0.02508096769452095,
-0.02369164302945137,
-0.02910269796848297,
0.014578769914805889,
-0.022192634642124176,
-0.043727170675992966,
0.04990600794553757,
-0.017841855064034462,
-0.03773113712668419,
0.05641390010714531,
-0.02840803563594818,
-0.06581012159585953,
-0.030619986355304718,
0.037383805960416794,
-0.006823230069130659,
-0.038242992013692856,
-0.010438216850161552,
-0.014990082941949368,
-0.006370785180479288,
0.020730188116431236,
-0.001831486471928656,
-0.014140035957098007,
-0.004526731092482805,
0.010218849405646324,
-0.038389235734939575,
-0.049979131668806076,
-0.013701301999390125,
0.00045558655983768404,
0.039851684123277664,
-0.008962058462202549,
-0.026799343526363373,
0.03734724223613739,
0.034349225461483,
-0.03813330829143524,
-0.02215607464313507,
0.02553798258304596,
-0.03564715012907982,
0.011827541515231133,
0.022485123947262764,
-0.015986375510692596,
-0.011635595001280308,
0.008034318685531616,
0.008998620323836803,
-0.02400241419672966,
0.01808864250779152,
-0.02910269796848297,
0.03208243474364281,
-0.002041713334619999,
0.020583942532539368,
0.0026666808407753706,
-0.02014520950615406,
-0.04745640978217125,
-0.06997809559106827,
-0.012449081055819988,
0.026433732360601425,
-0.06741881370544434,
0.017229454591870308,
-0.01727515645325184,
-0.023435715585947037,
-0.022631369531154633,
0.044860564172267914,
0.020328015089035034,
-0.0019765887409448624,
0.00040331549826078117,
-0.004010304342955351,
0.017951538786292076,
-0.055902041494846344,
0.018847286701202393,
0.0030688538681715727,
-0.0148621192201972,
-0.02877364680171013,
-0.04833387956023216,
0.08248201757669449,
0.028042424470186234,
-0.008591877296566963,
0.018271448090672493,
-0.020053805783391,
-0.05041786655783653,
0.05900974199175835,
0.054841767996549606,
0.005168836563825607,
0.016918685287237167,
-0.06336051970720291,
-0.04252064973115921,
-0.046652063727378845,
0.0030574286356568336,
-0.002904328517615795,
-0.03729240223765373,
0.004227386321872473,
-0.019249459728598595,
-0.0030071570072323084,
0.056231092661619186,
0.01810692436993122,
-0.034148141741752625,
0.012449081055819988,
0.006517029833048582,
-0.04153349995613098,
-0.05542674660682678,
-0.0072893849574029446,
-0.011178580112755299,
-0.0025501421187072992,
0.006005173549056053,
0.0072893849574029446,
0.059996895492076874,
-0.026835905387997627,
0.026982149109244347,
0.004380485974252224,
-0.0910373330116272,
-0.04507993161678314,
-0.007207122165709734,
0.020035525783896446,
0.06829628348350525,
-0.04098508134484291,
-0.032758817076683044,
0.01968819461762905,
-0.007129429839551449,
-0.03610416501760483,
-0.04043666273355484,
-0.01297007780522108,
0.030674828216433525,
-0.005735534708946943,
0.029303783550858498,
0.005237388890236616,
0.017064930871129036,
-0.01161731407046318,
0.01667189784348011,
0.0020999826956540346,
0.0386086031794548,
-0.0013344830367714167,
-0.05542674660682678,
0.03041890077292919,
0.046871431171894073,
-0.030967317521572113,
-0.03349003940820694,
0.02592187561094761,
0.014523928053677082,
0.03904733806848526,
-0.01245822198688984,
-0.04252064973115921,
-0.04570147395133972,
-0.05363524705171585,
0.02144313044846058,
-0.0006581012276001275,
0.04573803395032883,
-0.04500681161880493,
0.03420298174023628,
-0.009172285906970501,
0.02352711744606495
] |
21,137 | tfields.core | stale |
Returns:
Mask for all vertices that are stale i.e. are not refered by maps
Examples:
>>> import numpy as np
>>> import tfields
>>> vectors = tfields.Tensors(
... [[0, 0, 0], [0, 0, 1], [0, -1, 0], [4, 4, 4]])
>>> tm = tfields.TensorMaps(
... vectors,
... maps=[[[0, 1, 2], [0, 1, 2]], [[1, 1], [2, 2]]])
>>> assert np.array_equal(tm.stale(), [False, False, False, True])
| def stale(self):
"""
Returns:
Mask for all vertices that are stale i.e. are not refered by maps
Examples:
>>> import numpy as np
>>> import tfields
>>> vectors = tfields.Tensors(
... [[0, 0, 0], [0, 0, 1], [0, -1, 0], [4, 4, 4]])
>>> tm = tfields.TensorMaps(
... vectors,
... maps=[[[0, 1, 2], [0, 1, 2]], [[1, 1], [2, 2]]])
>>> assert np.array_equal(tm.stale(), [False, False, False, True])
"""
stale_mask = np.full(self.shape[0], False, dtype=bool)
used = set(ind for mp in self.maps.values() for ind in mp.flatten())
for i in range(self.shape[0]):
if i not in used:
stale_mask[i] = True
return stale_mask
| (self) | [
0.08277276158332825,
-0.039483971893787384,
-0.03191022947430611,
0.035625308752059937,
-0.04346826300024986,
-0.02566458098590374,
-0.0455501452088356,
-0.018270310014486313,
0.004576551262289286,
0.037617456167936325,
-0.047524344176054,
-0.02257765270769596,
-0.009538968093693256,
0.015515405684709549,
0.0047964053228497505,
-0.04397078603506088,
-0.05997974053025246,
0.05732354894280434,
0.017588313668966293,
-0.06407171487808228,
0.018503624945878983,
-0.0015064481412991881,
0.04881654679775238,
0.07218387722969055,
-0.0034010056406259537,
-0.0145731745287776,
-0.039663445204496384,
-0.02114187180995941,
0.0114772729575634,
0.009870992973446846,
-0.0498574860394001,
-0.01218618918210268,
0.019257409498095512,
-0.02440827339887619,
-0.003344920463860035,
-0.034369003027677536,
0.020065035670995712,
0.04239142686128616,
0.01512056589126587,
-0.04493993893265724,
0.04939085990190506,
-0.03273580223321915,
-0.0331844836473465,
-0.011558035388588905,
0.061810363084077835,
-0.015353880822658539,
0.062205202877521515,
0.028859194368124008,
-0.02501847967505455,
0.038658399134874344,
0.0421401672065258,
0.018754886463284492,
0.035571467131376266,
0.05190347507596016,
-0.01351428683847189,
0.004769484046846628,
-0.02406727522611618,
0.012751528061926365,
0.006268080323934555,
0.007959609851241112,
-0.007205824833363295,
-0.02207512967288494,
0.017893418669700623,
0.008493540808558464,
0.06263593584299088,
-0.04619624838232994,
-0.034979209303855896,
-0.015811536461114883,
0.0007083559175953269,
0.04074028134346008,
-0.06794832646846771,
0.005155350547283888,
0.038084086030721664,
-0.014528307132422924,
-0.03149744123220444,
-0.040812067687511444,
0.007977557368576527,
0.0049265227280557156,
-0.01446549128741026,
-0.06626128405332565,
-0.007896794006228447,
-0.03395621478557587,
0.019993247464299202,
0.010561962611973286,
-0.019095884636044502,
0.02815925143659115,
-0.004417269490659237,
0.013155341148376465,
0.02699267864227295,
-0.09009524434804916,
0.015371828339993954,
0.07024557143449783,
-0.039196815341711044,
0.00554570322856307,
0.02383396029472351,
-0.004509249236434698,
-0.00648344773799181,
0.019921457394957542,
-0.02512616291642189,
0.004684234969317913,
0.035158682614564896,
-0.01069656666368246,
-0.05305210128426552,
0.039483971893787384,
0.03348958492279053,
0.030079606920480728,
-0.01420525647699833,
-0.07803468406200409,
-0.004426242783665657,
0.005653386935591698,
-0.001239482662640512,
0.030528288334608078,
-0.0441143661737442,
0.04379131272435188,
-0.001621983596123755,
0.004280421417206526,
0.017534472048282623,
-0.009449232369661331,
-0.029559137299656868,
-0.02451595664024353,
0.06970715522766113,
0.05097021907567978,
-0.01259000226855278,
-0.008327528834342957,
0.0218777097761631,
-0.0074032447300851345,
0.04569372162222862,
0.060123320668935776,
0.02112392522394657,
-0.02823103964328766,
-0.05412893369793892,
0.02144697494804859,
-0.017355000600218773,
0.07645532488822937,
0.018028022721409798,
-0.037689246237277985,
0.029469400644302368,
-0.014680858701467514,
-0.036576516926288605,
0.019400987774133682,
-0.006797524634748697,
0.019454829394817352,
0.04996516928076744,
0.04228374361991882,
0.015533353202044964,
-0.04278626665472984,
-0.035427890717983246,
0.01372965332120657,
0.041529957205057144,
0.034853577613830566,
0.0319281741976738,
-0.016879398375749588,
-0.037761036306619644,
0.039807021617889404,
-0.07781931757926941,
0.0036208597011864185,
0.01224003080278635,
-0.0842803344130516,
0.014142440631985664,
-0.01481546275317669,
-0.030707761645317078,
0.017220396548509598,
-0.015793588012456894,
-0.02053166553378105,
-0.02345706894993782,
0.013307892717421055,
-0.0004615810757968575,
-0.02568252943456173,
-0.030564183369278908,
0.02202128805220127,
0.01099269650876522,
-0.00025616909260861576,
-0.01194390095770359,
0.00200897129252553,
0.035356100648641586,
0.04436562582850456,
-0.038012295961380005,
-0.002137967385351658,
-0.00012450911162886769,
0.01583845727145672,
-0.019724039360880852,
0.009799203835427761,
-0.0330050103366375,
-0.02124955505132675,
0.04791918396949768,
0.01183621771633625,
-0.002232190454378724,
-0.010229937732219696,
0.017866497859358788,
0.034351054579019547,
-0.0545237734913826,
0.01238360907882452,
0.034745894372463226,
0.0487806536257267,
0.0011934927897527814,
-0.004486815072596073,
-0.05294441804289818,
-0.002954567549750209,
-0.017740866169333458,
0.02893098257482052,
-0.06802011281251907,
-0.046985924243927,
-0.017974181100726128,
0.017624208703637123,
-0.037079039961099625,
0.0014918659580871463,
0.019077936187386513,
-0.02731573022902012,
0.04623214155435562,
0.02419290691614151,
0.006698814686387777,
-0.005832859314978123,
-0.02525179460644722,
0.013137394562363625,
0.006308462005108595,
-0.0487806536257267,
-0.001681433874182403,
0.05323157086968422,
-0.037976402789354324,
0.02245202101767063,
-0.008354449644684792,
-0.02401343360543251,
-0.04630393162369728,
-0.035302259027957916,
-0.0266337338835001,
0.02704652026295662,
-0.00653728935867548,
-0.004002239089459181,
-0.05746712535619736,
-0.0642152950167656,
0.056497972458601,
0.02218281291425228,
-0.015955114737153053,
-0.05516987666487694,
0.030007818713784218,
0.015901271253824234,
-0.001983172260224819,
-0.0441143661737442,
0.060984790325164795,
0.0024453140795230865,
-0.00563992653042078,
-0.004549630451947451,
0.0507548488676548,
0.03278964385390282,
0.07365555316209793,
0.0036993788089603186,
-0.032699909061193466,
0.04163764417171478,
0.018045969307422638,
0.02189565636217594,
-0.06321024894714355,
-0.035786837339401245,
-0.015991007909178734,
0.02193155139684677,
0.06575875729322433,
-0.04784739390015602,
0.034889474511146545,
-0.004531682934612036,
-0.0019540078938007355,
0.02239817939698696,
0.002434096997603774,
-0.008964655920863152,
-0.038012295961380005,
0.004652827046811581,
0.02790798805654049,
-0.00539315165951848,
0.05193936824798584,
0.05427251383662224,
-0.03361521661281586,
0.009610757231712341,
0.02360064722597599,
0.0077307820320129395,
-0.02388780191540718,
-0.03198201581835747,
-0.01574872061610222,
-0.039376288652420044,
0.033471640199422836,
-0.0007016256568022072,
0.061846256256103516,
0.0035558007657527924,
-0.013702732510864735,
-0.019257409498095512,
0.0017756570596247911,
0.04224785044789314,
-0.039483971893787384,
-0.047703817486763,
-0.02241612784564495,
-0.02688499540090561,
-0.0122848991304636,
-0.06604591757059097,
0.04307342320680618,
0.0208906102925539,
0.037186723202466965,
-0.08743905276060104,
0.00008020181849133223,
-0.039842914789915085,
0.004266961012035608,
-0.008381370455026627,
-0.009628704749047756,
0.013900152407586575,
0.07415807992219925,
-0.01178237609565258,
-0.05222652480006218,
-0.02541331946849823,
0.0437554195523262,
-0.010759382508695126,
-0.013146367855370045,
0.019688144326210022,
0.06773295998573303,
-0.000023222772142617032,
0.009332574903964996,
-0.03237685561180115,
-0.02909250743687153,
-0.037796929478645325,
0.028859194368124008,
-0.02282891422510147,
-0.004446433391422033,
0.0012596732703968883,
0.015201329253613949,
0.06504087150096893,
0.02175207808613777,
0.018189547583460808,
-0.03433310613036156,
0.030097555369138718,
-0.08377780765295029,
-0.05836448818445206,
0.08758262544870377,
-0.061020683497190475,
-0.02607736922800541,
0.02239817939698696,
0.01366683840751648,
-0.04432973265647888,
-0.001730788848362863,
0.035822730511426926,
-0.03388442471623421,
0.010804249905049801,
0.066010020673275,
-0.011908006854355335,
0.002851370954886079,
0.011656745336949825,
0.04996516928076744,
-0.007663480006158352,
-0.017399867996573448,
0.004769484046846628,
0.004338750150054693,
0.029559137299656868,
-0.0012473345268517733,
0.05621081590652466,
0.04188890382647514,
0.02087266370654106,
0.02124955505132675,
0.03323832526803017,
0.0033494073431938887,
0.057215865701436996,
0.0665484368801117,
0.013855284079909325,
0.010777329094707966,
0.019652249291539192,
-0.016332006081938744,
0.05122147873044014,
-0.006232185754925013,
-0.014142440631985664,
-0.008260225877165794,
-0.038263559341430664,
-0.0024699915666133165,
-0.02354680560529232,
0.032915275543928146,
-0.05079074576497078,
-0.04350415617227554,
-0.041314590722322464,
-0.037114933133125305,
-0.02512616291642189,
-0.01251821406185627,
0.015380801633000374,
0.02033424563705921,
-0.038909658789634705,
-0.0428580567240715,
0.00015535597049165517,
0.019418934360146523,
0.0013056631432846189,
0.0021390889305621386,
-0.02837461791932583,
0.02794388309121132,
0.02431853674352169,
0.00623667286708951,
0.04852939024567604,
0.02778235822916031,
-0.04422204941511154,
0.02681320533156395,
-0.01174648106098175,
0.038371242582798004,
-0.037617456167936325,
-0.016825556755065918,
-0.00708019407466054,
-0.02799772471189499,
0.0629589855670929,
-0.04389899596571922,
0.036163728684186935,
0.035768888890743256,
-0.061415523290634155,
0.038909658789634705,
-0.004349966999143362,
-0.0507548488676548,
-0.0160538237541914,
0.000270330609055236,
-0.008161515928804874,
-0.005137403029948473,
-0.0012933243997395039,
0.00529892835766077,
0.01628713868558407,
-0.02575431764125824,
0.04946264624595642,
0.03406389802694321,
-0.016789661720395088,
0.029577083885669708,
-0.05043179914355278,
-0.0112977996468544,
-0.013783495873212814,
0.06389224529266357,
0.04677055776119232,
0.04547835513949394,
0.006653946358710527,
-0.039376288652420044,
0.010095333680510521,
0.009112721309065819,
-0.035463783890008926,
-0.02528768964111805,
0.018862569704651833,
-0.0019203567644581199,
0.09332574903964996,
0.039196815341711044,
-0.07817826420068741,
0.02410317026078701,
-0.058328595012426376,
-0.019239462912082672,
-0.0021525495685636997,
0.010095333680510521,
-0.016780687496066093,
-0.02281096763908863,
0.02460569329559803,
0.06913284212350845,
0.01044530514627695,
0.042211953550577164,
-0.037796929478645325,
0.02907456085085869,
-0.00718339066952467,
-0.06626128405332565,
0.04278626665472984,
0.04939085990190506,
-0.0049758777022361755,
0.0220571830868721,
0.01137856300920248,
-0.05430840700864792,
-0.015102619305253029,
0.0035984255373477936,
0.017929311841726303,
-0.05168810859322548,
-0.062348779290914536,
-0.06805600970983505,
0.01174648106098175,
0.036863669753074646,
-0.00027832272462546825,
-0.062276992946863174,
0.02683115378022194,
0.008942222222685814,
-0.08148056268692017,
-0.0032080726232379675,
-0.01173750776797533,
0.004738076590001583,
-0.002160401316359639,
0.0636768788099289,
-0.08722367882728577,
-0.03338190168142319,
-0.06852263957262039,
0.02503642812371254,
0.006447553168982267,
-0.035302259027957916,
0.058005545288324356,
0.006510368548333645,
-0.018431834876537323,
-0.08334707468748093,
0.02114187180995941,
-0.00643857941031456,
-0.036450885236263275,
-0.0028917521703988314,
-0.017642157152295113,
-0.06299488246440887,
-0.003439143532887101,
-0.015488484874367714,
0.009996623732149601,
-0.04569372162222862,
-0.02724394015967846,
-0.01202466432005167,
0.04885243996977806,
-0.017678050324320793,
0.000962982652708888,
0.037366196513175964,
0.015928193926811218,
0.08047550916671753,
0.04066849127411842,
0.037653349339962006,
-0.0020235534757375717,
-0.038658399134874344,
0.060015637427568436,
-0.017902391031384468,
-0.0502164326608181,
0.020065035670995712,
-0.02431853674352169,
0.03187433257699013,
0.0444733090698719,
0.0460885614156723,
-0.047344870865345,
0.04476046562194824,
0.05298031121492386,
0.019849669188261032,
-0.029164297506213188,
-0.02230844460427761,
0.0018014562083408237,
0.019813774153590202,
0.009718441404402256,
-0.040919750928878784,
0.095407634973526,
0.007026351988315582,
-0.03478178754448891,
-0.0654716044664383,
0.009269759990274906,
-0.006308462005108595,
-0.07160956412553787,
0.020711136981844902,
-0.029559137299656868,
0.009076826274394989,
-0.06575875729322433,
0.02363654039800167,
-0.00406281091272831,
-0.0017644399777054787,
-0.009215917438268661,
0.03277169540524483,
-0.06694328039884567,
-0.08851588517427444,
-0.012213109992444515,
0.07200440764427185,
-0.036755986511707306,
0.09490510821342468,
0.0063039748929440975,
0.004859220702201128,
0.036594461649656296,
-0.0201727207750082,
-0.04684234783053398,
-0.007596177514642477,
-0.0028895088471472263,
-0.007492980919778347,
-0.01099269650876522,
0.01233874075114727,
-0.07746037095785141,
-0.02234433777630329,
0.004634879995137453,
0.01134266797453165,
-0.010454278439283371,
-0.012195163406431675,
0.004724616184830666,
0.010526067577302456,
-0.0453706718981266,
0.04924727976322174,
0.04619624838232994,
-0.06827137619256973,
-0.0065283156000077724,
0.02702857367694378,
0.02541331946849823,
0.06590233743190765,
0.07803468406200409,
0.034799735993146896,
0.037545666098594666,
-0.02175207808613777,
-0.04300163313746452,
0.0645742416381836,
0.030797498300671577,
0.012895106337964535,
-0.0326460637152195,
-0.011324720457196236,
-0.08442390710115433,
-0.014761621132493019,
-0.017749840393662453,
0.00175770977512002,
-0.02763877995312214,
0.029612978920340538,
0.0459090918302536,
-0.03295116871595383,
0.08743905276060104,
0.02607736922800541,
0.04235553368926048,
0.030761603266000748,
0.010382489301264286,
0.004320802632719278,
0.02388780191540718,
-0.039735231548547745,
0.02878740429878235,
0.05071895569562912,
0.012293873354792595,
-0.009826124645769596,
0.07064041495323181,
0.033633165061473846,
0.04899602010846138,
-0.0005429045995697379,
-0.01427704468369484,
-0.05639028921723366,
-0.05599544942378998,
-0.018898464739322662,
0.007977557368576527,
0.00817049015313387,
0.008928761817514896,
0.01417833473533392,
-0.005038693081587553,
0.01232079416513443,
-0.039196815341711044,
0.04476046562194824,
-0.00748400716111064,
-0.04946264624595642,
0.05836448818445206,
0.019526619464159012,
-0.005613005254417658,
0.0010157027281820774,
-0.019706090912222862,
0.014402676373720169,
-0.04174532741308212,
-0.003930449951440096,
-0.07275819033384323,
0.05563650652766228,
-0.0011374076129868627,
-0.011109353974461555,
0.02356475219130516,
-0.014627017080783844,
-0.038909658789634705,
-0.040165968239307404,
-0.012554108165204525,
-0.0019293304067105055,
-0.0051015084609389305,
-0.0010532798478379846,
-0.01644866354763508,
-0.015039803460240364,
0.037976402789354324,
-0.1112012192606926,
0.04239142686128616,
0.0038967987056821585,
-0.0047201295383274555,
-0.007519901730120182,
-0.02229049615561962,
-0.02516205795109272,
-0.00005107257311465219,
0.03417158126831055,
-0.01247334573417902,
-0.037114933133125305,
0.01625124365091324,
0.034853577613830566,
0.009547942318022251,
-0.0051015084609389305,
0.05082663893699646,
-0.05599544942378998,
0.011306773871183395,
0.05233420804142952,
-0.030187290161848068,
-0.019131779670715332,
0.012697686441242695,
-0.02261354774236679,
-0.05179579183459282,
0.035230472683906555,
-0.014734700322151184,
0.02690294198691845,
0.02500053308904171,
0.036540620028972626,
0.05262136459350586,
-0.02998987026512623,
-0.019329199567437172,
-0.019903510808944702,
-0.0322871208190918,
0.04497583210468292,
-0.0487806536257267,
-0.016188427805900574,
-0.0011632067617028952,
0.008637119084596634,
-0.02329554222524166,
0.03257427737116814,
0.04228374361991882,
-0.04831402376294136,
0.037222616374492645,
-0.02464158833026886,
0.030312921851873398,
0.004818839021027088,
0.035535573959350586,
0.036432936787605286,
0.02227254956960678,
-0.0005804816610179842,
-0.07117883116006851,
0.09167460352182388,
0.09547942131757736,
-0.017884444445371628,
0.035697098821401596,
0.0020437443163245916,
0.01411551982164383,
0.02727983519434929,
0.02037014067173004,
0.004035890102386475,
0.0015748720616102219,
-0.06827137619256973,
0.03219738230109215,
-0.04461688920855522,
0.038909658789634705,
-0.0074256788939237595,
-0.016116639599204063,
-0.04738076403737068,
-0.031066706404089928,
-0.019185621291399002,
0.037796929478645325,
0.042211953550577164,
-0.003999995533376932,
-0.015102619305253029,
-0.05947721749544144,
0.002483451971784234,
-0.08033193647861481,
0.042606793344020844,
-0.019993247464299202,
-0.009494100697338581,
0.060302793979644775,
-0.042714476585388184,
0.05779017508029938,
-0.0007823883788660169,
0.10057644546031952,
-0.033148590475320816,
-0.04325289651751518,
-0.07932689040899277,
-0.05079074576497078,
0.04562193527817726,
0.018045969307422638,
-0.011970822699368,
0.01159392949193716,
0.04773971065878868,
0.0028648313600569963,
-0.006878287065774202,
0.0038452004082500935,
-0.07239924371242523,
0.0459090918302536,
-0.004621419589966536,
-0.00788333360105753,
-0.018063917756080627,
0.033704955130815506,
-0.019562512636184692,
-0.02200333960354328,
-0.0039977519772946835,
0.015371828339993954,
-0.020136825740337372,
-0.08399317413568497,
0.02507232129573822,
0.039771128445863724,
-0.0114772729575634,
-0.04407846927642822,
0.05071895569562912,
0.012051585130393505,
0.002496912609785795,
-0.0257363710552454,
-0.02412111684679985,
-0.035984255373477936,
-0.038335345685482025,
-0.0127784488722682,
-0.046985924243927,
0.05373409390449524,
-0.033704955130815506,
0.042714476585388184,
-0.03329216688871384,
0.01298484206199646
] |
21,138 | tfields.mesh_3d | template |
'Manual' way to build a template that can be used with self.cut
Returns:
Mesh3D: template (see cut), can be used as template to retrieve
sub_mesh from self instance
Examples:
>>> import tfields
>>> from sympy.abc import y
>>> mp = tfields.TensorFields([[0,1,2],[2,3,0],[3,2,5],[5,4,3]],
... [1, 2, 3, 4])
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [1,1,0], [0,1,0], [0,2,0], [1,2,0]],
... maps=[mp])
>>> m_cut = m.cut(y < 1.5, at_intersection='split')
>>> template = m.template(m_cut)
>>> assert m_cut.equal(m.cut(template))
TODO:
fields template not yet implemented
| def template(self, sub_mesh):
"""
'Manual' way to build a template that can be used with self.cut
Returns:
Mesh3D: template (see cut), can be used as template to retrieve
sub_mesh from self instance
Examples:
>>> import tfields
>>> from sympy.abc import y
>>> mp = tfields.TensorFields([[0,1,2],[2,3,0],[3,2,5],[5,4,3]],
... [1, 2, 3, 4])
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [1,1,0], [0,1,0], [0,2,0], [1,2,0]],
... maps=[mp])
>>> m_cut = m.cut(y < 1.5, at_intersection='split')
>>> template = m.template(m_cut)
>>> assert m_cut.equal(m.cut(template))
TODO:
fields template not yet implemented
"""
cents = tfields.Tensors(sub_mesh.centroids())
face_indices = self.in_faces(cents, delta=None)
inst = sub_mesh.copy()
if inst.maps:
inst.maps[3].fields = [tfields.Tensors(face_indices, dim=1)]
else:
inst.maps = [
tfields.TensorFields([], tfields.Tensors([], dim=1), dim=3, dtype=int)
]
return inst
| (self, sub_mesh) | [
0.059721894562244415,
-0.008737924508750439,
-0.0351855494081974,
0.005059272050857544,
-0.05651993677020073,
0.027288587763905525,
-0.04428774118423462,
0.0037101327907294035,
-0.025093987584114075,
-0.0042115626856684685,
0.06191649287939072,
0.015110358595848083,
-0.11563021689653397,
-0.04338831454515457,
-0.07209799438714981,
-0.013383460231125355,
-0.014561709016561508,
0.013437425717711449,
0.028763646259903908,
-0.024860138073563576,
-0.0014615674735978246,
-0.043963946402072906,
0.029735026881098747,
0.03496968746185303,
0.07476029545068741,
-0.029842957854270935,
-0.02165818028151989,
-0.011917395517230034,
0.08058857917785645,
-0.04058210551738739,
-0.08202765882015228,
0.008755913004279137,
0.012376103550195694,
0.05626809597015381,
0.012277166359126568,
-0.07220593094825745,
0.022665537893772125,
0.006260005757212639,
-0.03935888782143593,
0.08965479582548141,
0.055404648184776306,
-0.060261547565460205,
-0.002266553696244955,
-0.011152883991599083,
0.04831717163324356,
-0.018582142889499664,
0.03932290896773338,
-0.028889566659927368,
-0.018420247361063957,
-0.04126567021012306,
-0.013284523971378803,
-0.05385763570666313,
0.004575830418616533,
-0.019391626119613647,
-0.06234821677207947,
0.0034313106443732977,
0.03047255612909794,
-0.024302493780851364,
-0.028206001967191696,
0.005940709263086319,
-0.06533431261777878,
0.00740677397698164,
-0.010100554674863815,
-0.02763037011027336,
-0.04551096260547638,
-0.03621089458465576,
-0.009515928104519844,
0.03153387829661369,
-0.0065523190423846245,
0.008279217407107353,
-0.07184615731239319,
0.046086594462394714,
0.08267524838447571,
-0.030562499538064003,
0.03989854082465172,
-0.009291071444749832,
0.0528143011033535,
-0.0159648135304451,
0.021136512979865074,
-0.03430411219596863,
-0.025453759357333183,
-0.03272112086415291,
-0.06432695686817169,
0.045474983751773834,
0.024842148646712303,
0.011080930009484291,
0.012295154854655266,
-0.03340468555688858,
0.031731754541397095,
-0.052958209067583084,
0.00921911746263504,
-0.011134895496070385,
-0.014669639989733696,
-0.018510188907384872,
0.003890017978847027,
-0.02745048515498638,
0.01600978523492813,
-0.03881923109292984,
-0.0013884890358895063,
0.020542891696095467,
0.01828533224761486,
0.0015099116135388613,
-0.047597628086805344,
0.013491391204297543,
0.042992569506168365,
-0.027648357674479485,
-0.024320481345057487,
-0.012573977001011372,
-0.004049666225910187,
0.01821337826550007,
0.02804410643875599,
0.059290166944265366,
-0.015065386891365051,
0.07807018607854843,
-0.004063157364726067,
-0.021928008645772934,
-0.017197027802467346,
0.024266516789793968,
0.006134085822850466,
-0.051806945353746414,
0.01588386483490467,
-0.051447171717882156,
-0.004730981308966875,
0.014435788616538048,
-0.024482378736138344,
0.05997373163700104,
0.036660607904195786,
-0.0014593187952414155,
-0.02896152064204216,
-0.057527292519807816,
-0.023924734443426132,
0.01984133943915367,
-0.023888757452368736,
-0.03610296547412872,
-0.003069291589781642,
-0.014120989479124546,
0.023079274222254753,
-0.043532222509384155,
0.010883055627346039,
0.06475868076086044,
-0.006862621288746595,
0.019643466919660568,
-0.0038765266072005033,
0.046698201447725296,
-0.08289110660552979,
0.007181917317211628,
0.039286933839321136,
0.02165818028151989,
-0.005000809207558632,
-0.029339279979467392,
-0.06839235872030258,
0.01897789165377617,
0.005868755280971527,
0.014309869147837162,
-0.03935888782143593,
0.013014695607125759,
0.007964418269693851,
-0.025993414223194122,
0.05008004605770111,
0.004847906529903412,
0.0005863133701495826,
0.017817631363868713,
-0.007838498800992966,
0.04871291667222977,
0.024500366300344467,
-0.02640715055167675,
0.0968502014875412,
-0.10325411707162857,
-0.03237934038043022,
0.013680270873010159,
-0.008297205902636051,
0.0266410019248724,
-0.04166141524910927,
0.041337624192237854,
-0.0032874024473130703,
0.011647568084299564,
-0.006768181454390287,
0.0051896884106099606,
-0.020488927140831947,
0.010388371534645557,
-0.011539637111127377,
0.010055583901703358,
0.00435996800661087,
0.06083718314766884,
-0.024806171655654907,
-0.01764673925936222,
0.0286017507314682,
0.017610762268304825,
0.025273874402046204,
-0.029968878254294395,
0.028817612677812576,
-0.02745048515498638,
-0.008710942231118679,
-0.011377740651369095,
0.01693619415163994,
-0.006745695602148771,
0.01583889313042164,
-0.034537963569164276,
-0.005954200867563486,
0.09130974113941193,
-0.08346674591302872,
-0.0607292503118515,
-0.02852979674935341,
-0.01761975698173046,
0.008499576710164547,
0.036048997193574905,
0.05803097039461136,
-0.00773956160992384,
-0.05270636826753616,
0.034160204231739044,
0.005571944639086723,
-0.024068642407655716,
0.035257503390312195,
0.04252486675977707,
0.02987893484532833,
-0.07047902792692184,
-0.0638592541217804,
-0.005720349960029125,
-0.016810273751616478,
-0.0009612616267986596,
-0.031066177412867546,
0.03144393488764763,
0.01150366012006998,
0.012735873460769653,
-0.05522476136684418,
-0.008814375847578049,
0.004677015822380781,
0.03579716011881828,
-0.045115213841199875,
-0.03853141516447067,
0.036048997193574905,
-0.009596876800060272,
-0.02020110934972763,
-0.02489611506462097,
-0.03284704312682152,
0.02347502112388611,
-0.004730981308966875,
-0.0713065043091774,
0.07127052545547485,
0.02847583033144474,
0.0018067221390083432,
-0.02459030970931053,
0.03201957046985626,
-0.021064558997750282,
0.013248546048998833,
0.03950279578566551,
-0.02505801059305668,
0.013410443440079689,
0.03047255612909794,
0.014264898374676704,
-0.05256246030330658,
0.01678329147398472,
-0.0319296270608902,
0.08073248714208603,
0.004897375125437975,
-0.018456224352121353,
0.05231062322854996,
-0.06029752641916275,
-0.006044143345206976,
0.0055494592525064945,
-0.03910704702138901,
-0.021622203290462494,
0.06421902030706406,
0.01721501536667347,
0.020974617451429367,
-0.042309004813432693,
-0.0383155532181263,
0.06317569315433502,
0.00740677397698164,
0.04399992525577545,
0.027162669226527214,
0.05403751879930496,
0.04281268268823624,
-0.025273874402046204,
0.0016605654964223504,
-0.04047417640686035,
0.04813728481531143,
0.05191487446427345,
0.02415858581662178,
0.000022204581910045817,
-0.02385278046131134,
0.007105466444045305,
-0.030076809227466583,
-0.04328038543462753,
0.0007358429720625281,
-0.04025831073522568,
-0.006143080070614815,
0.008697450160980225,
0.03730819374322891,
-0.01953553408384323,
-0.06975948810577393,
-0.013005701825022697,
-0.00001693450758466497,
-0.016018778085708618,
-0.05432533845305443,
-0.06947167217731476,
-0.0422370508313179,
-0.027180656790733337,
0.024122608825564384,
-0.021568238735198975,
0.03558129817247391,
-0.0314619243144989,
-0.008580525405704975,
0.019499557092785835,
-0.026730943471193314,
-0.006475868169218302,
-0.009767767041921616,
-0.003024320350959897,
0.07936535775661469,
-0.04446762800216675,
0.011521648615598679,
-0.0033750964794307947,
-0.029357267543673515,
-0.011791476048529148,
0.011215843260288239,
0.08951088786125183,
0.010010612197220325,
-0.0363188274204731,
0.005936212372034788,
0.05975786969065666,
-0.004636541474610567,
0.014067023992538452,
-0.022953353822231293,
0.07490420341491699,
0.04453958198428154,
-0.05335395783185959,
-0.007721573114395142,
-0.04637441039085388,
0.003934989217668772,
0.04630245640873909,
-0.03644474595785141,
0.06565810739994049,
0.011782482266426086,
0.011449694633483887,
-0.04515118896961212,
-0.06083718314766884,
0.06040545552968979,
-0.0444316491484642,
-0.052598439157009125,
-0.03608497604727745,
0.04774153605103493,
0.011458688415586948,
0.005670881364494562,
0.0008139806450344622,
0.027054736390709877,
0.004677015822380781,
0.000951143098063767,
-0.012897769920527935,
0.035509344190359116,
0.07857386767864227,
-0.009902681224048138,
-0.03907106816768646,
0.06886006146669388,
0.005828280933201313,
0.007195408921688795,
-0.03820762038230896,
-0.006075623445212841,
-0.000764512165915221,
-0.03277508541941643,
0.042560841888189316,
0.023618929088115692,
-0.010892050340771675,
-0.0018404506845399737,
0.031300026923418045,
0.035977043211460114,
-0.057887062430381775,
0.0066467588767409325,
0.06832040846347809,
-0.03425014764070511,
-0.003667409997433424,
-0.008737924508750439,
-0.04173337295651436,
0.007676601875573397,
0.010091560892760754,
0.004506124649196863,
-0.022251801565289497,
-0.03570721670985222,
0.015587054193019867,
-0.04734579101204872,
-0.030094796791672707,
0.019211741164326668,
0.0004308813076931983,
-0.003934989217668772,
-0.013617311604321003,
-0.015524094924330711,
-0.0016212156042456627,
-0.042129117995500565,
0.00920562632381916,
0.0792214497923851,
0.011845441535115242,
0.05975786969065666,
0.0006751317414455116,
0.05590832605957985,
-0.04328038543462753,
-0.017304958775639534,
-0.002619578503072262,
-0.029105428606271744,
-0.05238257721066475,
0.01897789165377617,
0.024302493780851364,
-0.010802107863128185,
-0.0532820038497448,
-0.02270151488482952,
0.0659819021821022,
0.0011259691091254354,
-0.009920669719576836,
0.038243599236011505,
0.0024014676455408335,
0.029303302988409996,
-0.017817631363868713,
-0.012861792929470539,
0.046518318355083466,
-0.036048997193574905,
-0.015407169237732887,
0.002194599714130163,
0.026209276169538498,
0.023996688425540924,
0.0015132843982428312,
-0.05177096650004387,
0.04630245640873909,
0.006876112427562475,
0.05662786588072777,
0.04921659454703331,
-0.02763037011027336,
0.0021350127644836903,
-0.02298933081328869,
-0.07821409404277802,
-0.006224028766155243,
-0.012942741625010967,
0.05529671534895897,
-0.05133924260735512,
-0.06479465961456299,
0.005684372968971729,
0.007469733711332083,
0.018168406561017036,
0.056376028805971146,
0.01645050384104252,
0.04342429339885712,
0.01046032551676035,
0.009578888304531574,
0.05249050632119179,
-0.015739956870675087,
0.015506106428802013,
-0.07173822820186615,
-0.042992569506168365,
0.04680613428354263,
-0.022035939618945122,
-0.054109472781419754,
-0.050655677914619446,
-0.0034875248093158007,
0.07706283032894135,
0.07555179297924042,
-0.004263279959559441,
0.011017969809472561,
0.03979061171412468,
-0.042129117995500565,
-0.009381013922393322,
-0.03135399520397186,
0.005697864573448896,
0.011719522066414356,
-0.011791476048529148,
0.06429097801446915,
0.0576712004840374,
0.024014677852392197,
-0.005270637106150389,
-0.11850838363170624,
0.028583761304616928,
-0.0012164737563580275,
-0.0024037163238972425,
-0.03135399520397186,
0.023133238777518272,
-0.005045780446380377,
-0.03266715630888939,
0.03579716011881828,
0.013023690320551395,
0.010820096358656883,
0.012421074323356152,
0.0209206510335207,
-0.03311686962842941,
-0.06393120437860489,
-0.015982801094651222,
-0.03619290515780449,
-0.019265707582235336,
0.018690073862671852,
0.00608461769297719,
0.03644474595785141,
-0.00535158533602953,
0.046626247465610504,
-0.0031120143830776215,
-0.01441780012100935,
-0.05493694543838501,
0.01695418171584606,
-0.013932110741734505,
0.006979546509683132,
-0.04727383702993393,
0.0025206415448337793,
-0.011917395517230034,
0.04752567410469055,
-0.0033526108600199223,
0.012996707111597061,
-0.0001432054996257648,
-0.05961396172642708,
-0.012843804433941841,
-0.003273911075666547,
-0.009165151976048946,
-0.014849524945020676,
0.06975948810577393,
0.023151228204369545,
0.05889442190527916,
-0.030274681746959686,
-0.023528987541794777,
-0.05324602499604225,
-0.0015694985631853342,
0.05457717552781105,
0.0301667507737875,
-0.010829090140759945,
-0.03827957436442375,
0.007595653645694256,
-0.06249212473630905,
0.006934575270861387,
0.02336709015071392,
-0.0035482358653098345,
-0.04903671145439148,
-0.02262956090271473,
0.009165151976048946,
0.04364015534520149,
0.009048226289451122,
-0.01736791804432869,
0.017475849017500877,
0.03261319175362587,
-0.0037168783601373434,
-0.035509344190359116,
0.006700724363327026,
0.03603101149201393,
-0.02408663183450699,
0.001409850432537496,
-0.05371372774243355,
-0.03563526272773743,
-0.022431686520576477,
-0.03502365201711655,
-0.038063712418079376,
0.02957312949001789,
0.02439243532717228,
-0.07807018607854843,
0.06429097801446915,
0.0035122588742524385,
0.02270151488482952,
-0.004672518465667963,
-0.005266139749437571,
-0.014165961183607578,
0.03358457237482071,
-0.029177382588386536,
-0.023744849488139153,
-0.014930473640561104,
0.0053875623270869255,
0.0888632982969284,
-0.04993613809347153,
-0.05209476128220558,
-0.0016538196941837668,
0.0040878914296627045,
0.038243599236011505,
0.009722796268761158,
0.08828766644001007,
0.08231547474861145,
-0.013950099237263203,
0.00658379914239049,
0.007582162041217089,
0.014588691294193268,
-0.07943731546401978,
0.012807827442884445,
0.006903095170855522,
0.019175764173269272,
0.02349301055073738,
0.03158784657716751,
0.024302493780851364,
0.012636937201023102,
0.03979061171412468,
-0.016639383509755135,
0.008337680250406265,
-0.025327838957309723,
-0.005149214528501034,
-0.0009365274454466999,
0.021802088245749474,
0.01874404028058052,
0.03356658294796944,
0.0462305024266243,
0.016666365787386894,
0.039394862949848175,
0.03351261839270592,
0.0182583499699831,
0.01695418171584606,
0.027792267501354218,
-0.0475616529583931,
0.00370338698849082,
-0.019823351874947548,
0.03308089077472687,
-0.017565792426466942,
-0.01971542090177536,
-0.01021748036146164,
-0.0668453499674797,
-0.03694842383265495,
0.0037618495989590883,
-0.03308089077472687,
0.07821409404277802,
-0.03047255612909794,
-0.07425662130117416,
0.026551058515906334,
-0.00584177253767848,
0.0435682013630867,
-0.05299418419599533,
0.033854398876428604,
-0.02671295590698719,
-0.00748322531580925,
-0.008369159884750843,
0.03603101149201393,
0.005324602592736483,
-0.057167522609233856,
-0.03219945356249809,
0.08951088786125183,
-0.03138997033238411,
-0.037200264632701874,
0.011035958305001259,
-0.03759600967168808,
0.016153693199157715,
0.011521648615598679,
0.012717884965240955,
0.07047902792692184,
-0.046698201447725296,
0.0053021167404949665,
0.027216633781790733,
0.010577251203358173,
-0.014453777112066746,
-0.02336709015071392,
0.022179847583174706,
-0.019445592537522316,
0.04259682074189186,
-0.02178410068154335,
-0.004371210932731628,
-0.000811732083093375,
0.023331113159656525,
-0.02548973634839058,
-0.017736682668328285,
0.02397869899868965,
0.01520929578691721,
-0.02160421572625637,
-0.06616178154945374,
0.06418304890394211,
-0.055512577295303345,
-0.016873233020305634,
-0.00007335944246733561,
-0.04579877853393555,
0.07778237015008926,
0.0013457663590088487,
0.015137340873479843,
-0.021748123690485954,
-0.00912917498499155,
0.07188213616609573,
-0.028134047985076904,
0.028134047985076904,
0.004973826464265585,
-0.01922973059117794,
-0.0020282058976590633,
0.02604738064110279,
-0.07314132899045944,
0.011026963591575623,
-0.043784063309431076,
0.034591928124427795,
-0.019319672137498856,
-0.01861811988055706,
0.045115213841199875,
-0.019517546519637108,
-0.044755443930625916,
-0.07321328669786453,
-0.04957636818289757,
0.04734579101204872,
-0.004744472913444042,
0.07288949191570282,
-0.02250364050269127,
-0.022863412275910378,
0.003123257076367736,
0.11922792345285416,
0.01104495208710432,
-0.02505801059305668,
0.04716590419411659,
0.04453958198428154,
0.0032806566450744867,
0.00970480777323246,
0.011764493770897388,
-0.02584950625896454,
0.014930473640561104,
0.022197837010025978,
0.021640192717313766,
0.048461079597473145,
-0.032271407544612885,
-0.010631216689944267,
0.02556169033050537,
0.011449694633483887,
0.0268388744443655,
0.009803744964301586,
-0.004843409638851881,
0.02646111510694027,
-0.0033458650577813387,
-0.03335072100162506,
0.03414221480488777,
-0.015110358595848083,
-0.009178643114864826,
0.028619738295674324,
-0.037020377814769745,
0.04666222631931305,
-0.047489698976278305,
0.02592146024107933,
0.051375217735767365,
0.07878972589969635,
0.0034470504615455866,
-0.020309042185544968,
0.016819268465042114,
-0.039394862949848175,
0.09202928096055984,
0.03863934427499771,
0.0042677768506109715,
0.025273874402046204,
-0.00955190509557724,
0.0023542477283626795,
0.0039035093504935503,
-0.01904984563589096,
-0.004973826464265585,
-0.023331113159656525,
-0.031228074803948402,
-0.04774153605103493,
-0.009007752873003483,
-0.009686819277703762,
0.02847583033144474,
-0.030832326039671898,
-0.03371049091219902,
0.01593783125281334,
-0.01807846501469612,
-0.011890413239598274,
-0.022125883027911186,
-0.02298933081328869,
0.05468510836362839,
-0.0003533058043103665,
-0.025597667321562767,
0.002194599714130163,
0.011377740651369095,
-0.004103631712496281,
0.02318720519542694,
0.03243330493569374,
0.05572844296693802,
-0.014651651494204998,
-0.004227302502840757,
0.01432785764336586,
0.05079958587884903,
-0.029339279979467392,
-0.07375293970108032,
0.027396518737077713,
0.00715043768286705,
0.020237088203430176,
-0.08519364148378372,
-0.04338831454515457,
-0.013086649589240551,
-0.000900550396181643,
0.0004935601027682424,
0.035257503390312195,
0.055692464113235474,
-0.01523627806454897,
0.02043496072292328,
0.011548630893230438,
-0.004503876436501741
] |
21,139 | tfields.core | tmp_transform |
Temporarily change the coord_sys to another coord_sys and change it back at exit
This method is for cleaner code only.
No speed improvements go with this.
Args:
see transform
Examples:
>>> import tfields
>>> p = tfields.Tensors([[1,2,3]], coord_sys=tfields.bases.SPHERICAL)
>>> with p.tmp_transform(tfields.bases.CYLINDER):
... assert p.coord_sys == tfields.bases.CYLINDER
>>> assert p.coord_sys == tfields.bases.SPHERICAL
| @classmethod
def _from_dict(cls, content: dict):
type_ = content.get("type")
assert type_ == cls.__name__
return _from_dict(content)
| (self, coord_sys) | [
0.04643936827778816,
-0.03472203016281128,
-0.013267111964523792,
-0.05779838189482689,
-0.030225006863474846,
0.001272066030651331,
0.017611844465136528,
0.05331927537918091,
0.026301309466362,
0.015005004592239857,
0.0361553430557251,
0.10814353078603745,
0.01049006637185812,
0.01985139772295952,
-0.01762976124882698,
0.000470586062874645,
-0.018041837960481644,
0.05443009361624718,
-0.0200663935393095,
-0.0453643836081028,
0.017146017402410507,
0.01788954809308052,
0.02794962003827095,
0.082845538854599,
0.0299204271286726,
-0.007215839345008135,
-0.004237234126776457,
0.011260472238063812,
-0.010409441776573658,
-0.02846919745206833,
0.014055434614419937,
-0.027985453605651855,
0.007072508335113525,
0.10183694958686829,
-0.0361553430557251,
-0.036209091544151306,
-0.030225006863474846,
0.031013328582048416,
-0.08951044827699661,
0.03215998038649559,
-0.010400484316051006,
0.023793010041117668,
-0.051921796053647995,
-0.05174263194203377,
0.008107181638479233,
0.009692785330116749,
-0.0014433918986469507,
-0.009639035910367966,
-0.05926752835512161,
-0.06564577668905258,
-0.005643673241138458,
-0.04439689591526985,
-0.007560730911791325,
0.0024523104075342417,
0.003101780777797103,
0.01502292137593031,
-0.014601885341107845,
0.0881488025188446,
-0.004176766145974398,
0.08370552957057953,
-0.004976286552846432,
0.005065868608653545,
-0.033844124525785446,
-0.000324175285641104,
-0.02090846560895443,
-0.02802128717303276,
-0.049413494765758514,
-0.024097589775919914,
-0.00008776248432695866,
-0.035295356065034866,
0.04045528545975685,
0.0342024527490139,
-0.008604362607002258,
0.05417926609516144,
0.05432259663939476,
-0.0060826255939900875,
-0.07062654197216034,
-0.02945460006594658,
0.024545500054955482,
0.05747588723897934,
0.0217147059738636,
-0.001419876585714519,
-0.0453643836081028,
-0.04414606839418411,
-0.039810292422771454,
-0.0030435523949563503,
0.017146017402410507,
-0.039451964199543,
-0.014754175208508968,
0.050201818346977234,
-0.059410858899354935,
0.01295357383787632,
-0.0927354097366333,
-0.017853716388344765,
-0.012093585915863514,
-0.006633555982261896,
0.051921796053647995,
-0.02952626533806324,
-0.025154659524559975,
0.04962849244475365,
0.01180692296475172,
0.03991779312491417,
-0.025871315971016884,
-0.020926382392644882,
-0.02486799657344818,
-0.07811560481786728,
0.004297702107578516,
-0.017199765890836716,
-0.025602569803595543,
-0.0013515702448785305,
0.0019506505923345685,
-0.028952941298484802,
-0.05045264959335327,
0.08227221667766571,
0.04722769185900688,
-0.0400969572365284,
0.011054432950913906,
0.008389364928007126,
-0.023828843608498573,
-0.005276386626064777,
0.0041924430988729,
0.04095694422721863,
-0.041601937264204025,
0.08986878395080566,
0.04608104005455971,
0.017647678032517433,
-0.0037736466620117426,
-0.06600410491228104,
0.07790061086416245,
-0.008980607613921165,
0.015067712403833866,
-0.020353056490421295,
-0.03516994044184685,
-0.0023806446697562933,
0.037982817739248276,
0.030672917142510414,
-0.03579701483249664,
-0.008595404215157032,
-0.029024606570601463,
0.044361066073179245,
0.031783733516931534,
0.07044737786054611,
0.03525952249765396,
-0.05102597549557686,
-0.05005848780274391,
-0.05890920013189316,
-0.006387204863131046,
0.03260789066553116,
-0.023434681817889214,
0.01401064358651638,
-0.0302429236471653,
0.01472730003297329,
0.01807767152786255,
0.0894387885928154,
-0.010337776504456997,
-0.08141222596168518,
-0.007363650016486645,
-0.0088731087744236,
0.011878589168190956,
-0.03407703712582588,
0.02216261625289917,
0.016205405816435814,
0.016653316095471382,
-0.057834215462207794,
0.005142013542354107,
0.014601885341107845,
0.026552138850092888,
-0.06865573674440384,
0.005930336192250252,
-0.026534223929047585,
-0.0499868206679821,
-0.0292575191706419,
-0.03998945653438568,
-0.010042155161499977,
0.059410858899354935,
0.022341780364513397,
-0.010463191196322441,
0.011260472238063812,
0.055075086653232574,
-0.0020245558116585016,
-0.0065529318526387215,
0.005580965895205736,
-0.011878589168190956,
0.0177462175488472,
0.07026821374893188,
0.014100225642323494,
0.010705063119530678,
0.05686672776937485,
0.02445591799914837,
0.027573375031352043,
-0.019564734771847725,
0.005876586772501469,
-0.037660323083400726,
-0.056257568299770355,
0.01986931450664997,
0.01696685329079628,
-0.06557410955429077,
0.006440954282879829,
-0.06453495472669601,
0.1006186380982399,
-0.041064441204071045,
0.002060388680547476,
0.014601885341107845,
0.0161068644374609,
-0.003849791595712304,
0.003596721915528178,
0.058300040662288666,
0.009916740469634533,
-0.035008691251277924,
-0.04059861600399017,
-0.04260525479912758,
-0.042641088366508484,
-0.019421402364969254,
-0.009737576358020306,
0.039810292422771454,
-0.11918004602193832,
0.007211360614746809,
-0.030296672135591507,
-0.008219159208238125,
-0.03452494740486145,
0.07732728123664856,
0.0815555602312088,
-0.03472203016281128,
0.008416240103542805,
0.026480473577976227,
-0.024832163006067276,
-0.0407777801156044,
-0.045471884310245514,
-0.0703757107257843,
-0.024635082110762596,
0.011287346482276917,
-0.020353056490421295,
0.019510984420776367,
0.013661272823810577,
0.05966169014573097,
-0.039810292422771454,
0.05109763890504837,
-0.009513621218502522,
0.02176845446228981,
0.009253832511603832,
0.07840226590633392,
0.01716393418610096,
-0.049091000109910965,
0.006588764954358339,
-0.04156610369682312,
0.0011981608113273978,
0.02708963304758072,
0.022915106266736984,
-0.03481161221861839,
-0.021410126239061356,
0.043178580701351166,
-0.0017681270837783813,
0.014969171956181526,
0.006360330153256655,
0.010902144014835358,
-0.018901826813817024,
0.0021678872872143984,
-0.031604569405317307,
0.045866042375564575,
-0.05976918712258339,
0.0009299743687734008,
0.006741054356098175,
0.04651103541254997,
0.04565104842185974,
-0.049879323691129684,
-0.03404120355844498,
-0.0010822640033438802,
0.029150020331144333,
-0.009594244882464409,
-0.02708963304758072,
0.08664382249116898,
0.03524160385131836,
0.07220318913459778,
0.018597247079014778,
-0.037445325404405594,
-0.006158770527690649,
0.029705429449677467,
-0.04299941658973694,
-0.0004283144953660667,
-0.006302102003246546,
-0.013965852558612823,
-0.0414227694272995,
0.042175259441137314,
0.0009036596165969968,
0.06937239319086075,
-0.029490433633327484,
0.004631395451724529,
0.06431996077299118,
0.001556489267386496,
0.003930415492504835,
0.010794645175337791,
-0.028254199773073196,
0.0050703478045761585,
-0.01960056647658348,
-0.01114401500672102,
-0.0381619818508625,
-0.07438898831605911,
-0.0029741262551397085,
-0.01052589900791645,
-0.029562098905444145,
0.009854032658040524,
-0.008461031131446362,
0.022180533036589622,
0.021320544183254242,
0.016151655465364456,
0.008143014274537563,
-0.0381261482834816,
-0.025029243901371956,
-0.023309266194701195,
0.03226747736334801,
0.008174368180334568,
0.08900879323482513,
-0.02184011973440647,
0.03393370658159256,
-0.04579437896609306,
0.07489065080881119,
0.005898982286453247,
0.0285946112126112,
0.011036517098546028,
0.05453759431838989,
-0.026140062138438225,
-0.006938134785741568,
-0.022341780364513397,
0.029830845072865486,
0.010758812539279461,
-0.023954257369041443,
-0.00980028323829174,
0.0017804446397349238,
0.005298782140016556,
-0.019421402364969254,
-0.007798123173415661,
0.024115506559610367,
0.021392209455370903,
-0.007950413040816784,
0.00647678691893816,
0.009459871798753738,
-0.01881224475800991,
-0.03241081163287163,
-0.00590346148237586,
-0.0670790895819664,
0.03583284839987755,
-0.05754755064845085,
-0.021069714799523354,
0.0009764450951479375,
0.010507982224225998,
0.012872950173914433,
0.03169415146112442,
-0.01807767152786255,
0.06320913881063461,
-0.04464772716164589,
-0.052244290709495544,
-0.0729915127158165,
0.06962322443723679,
0.001773725962266326,
0.012416081503033638,
-0.04095694422721863,
0.01604415662586689,
-0.0631016418337822,
-0.01933182030916214,
-0.005849712062627077,
0.09359539300203323,
-0.009114980697631836,
-0.05288928374648094,
-0.022108865901827812,
-0.0033503712620586157,
0.011466510593891144,
0.0065036616288125515,
-0.029078355059027672,
0.065753273665905,
-0.013822521083056927,
0.03583284839987755,
0.0161068644374609,
-0.08005058020353317,
-0.008725298568606377,
0.0033705271780490875,
-0.01578436978161335,
-0.019510984420776367,
0.03276913985610008,
-0.04608104005455971,
0.06715075671672821,
0.011914421804249287,
-0.0043828049674630165,
0.002517257584258914,
-0.01233545783907175,
0.017190808430314064,
-0.05636506900191307,
0.0203888900578022,
0.04851767420768738,
0.013750854879617691,
-0.007757811341434717,
0.024957578629255295,
-0.008604362607002258,
-0.03769615665078163,
-0.014458553865551949,
0.013974810019135475,
-0.034166619181632996,
-0.06568160653114319,
0.018579330295324326,
0.0064543914049863815,
0.06385413557291031,
0.008160931058228016,
-0.023130102083086967,
0.026749219745397568,
0.01881224475800991,
-0.011000684462487698,
0.012935657985508442,
0.008299782872200012,
-0.030547501519322395,
0.01039152592420578,
-0.012245875783264637,
0.10692521929740906,
-0.015300625935196877,
-0.012129418551921844,
-0.060199182480573654,
0.042318593710660934,
-0.023954257369041443,
0.060593344271183014,
0.002965168096125126,
-0.07008904963731766,
0.0108573529869318,
0.04686936363577843,
0.04747852310538292,
0.04070611298084259,
-0.007000842597335577,
0.01782684214413166,
0.03740949183702469,
-0.014279389753937721,
-0.023112187162041664,
0.01999472826719284,
-0.007802602369338274,
-0.022198447957634926,
0.01815829612314701,
-0.05930336192250252,
-0.0414227694272995,
0.0618116594851017,
0.005343573167920113,
-0.025423405691981316,
-0.0519576296210289,
-0.011233597993850708,
0.024169255048036575,
-0.07155819237232208,
0.005661590024828911,
0.011466510593891144,
0.010301943868398666,
0.010866310447454453,
-0.0631016418337822,
-0.02511882595717907,
0.020084310322999954,
0.045543547719717026,
-0.051205139607191086,
-0.02117721177637577,
0.05321177840232849,
0.05070347711443901,
0.002653870265930891,
0.016268111765384674,
-0.034220367670059204,
0.02866627834737301,
-0.00675897067412734,
0.021266793832182884,
0.005876586772501469,
-0.007162090390920639,
-0.0545734278857708,
-0.012863991782069206,
-0.055075086653232574,
-0.0038721871096640825,
0.0014310743426904082,
0.004604520741850138,
0.018041837960481644,
0.002517257584258914,
-0.031120827421545982,
0.012648995034396648,
0.01391210313886404,
0.038699474185705185,
-0.025351738557219505,
-0.025960898026823997,
0.03332454711198807,
0.05976918712258339,
-0.010794645175337791,
-0.05758338421583176,
-0.015632079914212227,
0.03610159456729889,
0.011726299300789833,
-0.006597722880542278,
0.025674235075712204,
-0.025674235075712204,
-0.055003419518470764,
0.005988564342260361,
0.0029181374702602625,
0.029615847393870354,
0.03927280008792877,
-0.03282288834452629,
0.06865573674440384,
0.006239394657313824,
0.05529008433222771,
0.049879323691129684,
0.011681508272886276,
-0.01032881811261177,
0.06976655125617981,
-0.009110501036047935,
-0.07610896974802017,
0.031604569405317307,
-0.001591202337294817,
-0.03309163451194763,
0.0002455109788570553,
-0.02103388123214245,
-0.03230331093072891,
-0.010382567532360554,
0.04296358302235603,
0.03823364898562431,
-0.0005120178102515638,
-0.016805605962872505,
0.0335395447909832,
-0.010221319273114204,
-0.03131790831685066,
-0.0036056803073734045,
0.008416240103542805,
-0.037194494158029556,
0.0016908624675124884,
-0.01401064358651638,
0.00021359736274462193,
0.01173525769263506,
0.010884227231144905,
0.04841017723083496,
0.0006354731740429997,
-0.005858670454472303,
0.025602569803595543,
0.03190914914011955,
-0.011367971077561378,
0.044289398938417435,
0.0440744012594223,
0.03137165680527687,
-0.05769088491797447,
0.010006322525441647,
-0.006373767741024494,
0.02578173391520977,
0.006543973460793495,
-0.008496863767504692,
-0.015336458571255207,
-0.029938343912363052,
0.019815564155578613,
0.037051163613796234,
-0.009934657253324986,
-0.00999736413359642,
-0.006037834566086531,
-0.011081308126449585,
-0.001689742668531835,
0.03275122120976448,
0.020747218281030655,
-0.05339094251394272,
0.03090582974255085,
-0.023452598601579666,
-0.031067078933119774,
-0.03414870426058769,
-0.017988089472055435,
-0.041064441204071045,
-0.03414870426058769,
-0.025208408012986183,
-0.07682562619447708,
0.03131790831685066,
-0.02287927269935608,
0.016617482528090477,
-0.006982926279306412,
-0.03138957545161247,
0.06453495472669601,
-0.07195235788822174,
0.018633080646395683,
-0.005348052363842726,
0.07868893444538116,
-0.05453759431838989,
0.01893766038119793,
0.04697686433792114,
0.007560730911791325,
0.04497022181749344,
0.03938029706478119,
0.07195235788822174,
0.04332191124558449,
0.002738973358646035,
0.01920640654861927,
0.02834378182888031,
-0.03434578329324722,
0.00457092747092247,
0.002705379854887724,
0.0015217761974781752,
-0.051061805337667465,
-0.034238286316394806,
-0.0355282686650753,
-0.039451964199543,
-0.031729985028505325,
0.03266163915395737,
-0.001479224767535925,
-0.001507219159975648,
0.060593344271183014,
0.0050703478045761585,
0.0030189172830432653,
0.007789165247231722,
-0.026928383857011795,
0.06263581663370132,
-0.03314538300037384,
-0.06758075207471848,
-0.012012962251901627,
-0.03920113295316696,
0.039810292422771454,
-0.024581333622336388,
0.0032406330574303865,
0.04729935899376869,
-0.046009376645088196,
0.00010329938231734559,
0.05099014192819595,
0.03898613899946213,
-0.02624756097793579,
0.059410858899354935,
-0.056329235434532166,
0.038054484874010086,
0.035546183586120605,
0.04457606002688408,
-0.024438001215457916,
-0.04221109300851822,
-0.018722662702202797,
0.017083309590816498,
-0.0572250559926033,
-0.0026516306679695845,
0.009280707687139511,
0.0008521499112248421,
0.06002001836895943,
-0.04246192425489426,
0.014807923696935177,
0.0030189172830432653,
-0.018776411190629005,
-0.025674235075712204,
-0.08169889450073242,
0.061596665531396866,
-0.004743373021483421,
0.006091583985835314,
-0.05772671476006508,
-0.04550771415233612,
0.02499341033399105,
0.017611844465136528,
0.014637717977166176,
0.023649679496884346,
0.039021968841552734,
-0.018525581806898117,
-0.03920113295316696,
-0.044683560729026794,
0.037982817739248276,
-0.06417662650346756,
-0.01683248020708561,
0.040813613682985306,
-0.03439953178167343,
-0.001048110774718225,
0.01243399828672409,
0.013571690768003464,
0.0440744012594223,
-0.013992726802825928,
0.0305833350867033,
0.021607207134366035,
-0.024491751566529274,
-0.0007071388536132872,
-0.012425039894878864,
0.009262790903449059,
-0.013858353719115257,
-0.0035519308876246214,
0.025405488908290863,
-0.012012962251901627,
-0.016626441851258278,
0.005236074794083834,
-0.025369655340909958,
-0.04299941658973694,
-0.01807767152786255,
0.03649575635790825,
-0.019421402364969254,
0.022861355915665627,
0.057977546006441116,
-0.0037243764381855726,
-0.03194498270750046,
-0.04400273784995079,
-0.016026241704821587,
0.0006360330153256655,
-0.010499023832380772,
0.06675659120082855,
0.03164040297269821,
0.045149385929107666,
-0.0044298358261585236,
-0.04615270718932152,
0.03938029706478119,
-0.017477471381425858,
0.00996153149753809,
-0.00002188813050452154,
-0.02834378182888031,
0.005433155223727226,
-0.08320387452840805,
0.0009170969133265316,
-0.007108340971171856,
-0.027143381536006927,
-0.014754175208508968,
0.00015662873920518905,
-0.020550137385725975,
-0.025692151859402657,
-0.028845442458987236,
0.06869156658649445,
0.025692151859402657,
0.005267428699880838,
-0.030601251870393753,
-0.000015624380466761068,
-0.022520944476127625,
-0.0057601300068199635,
-0.03912946954369545,
-0.05794171243906021,
0.08571217209100723,
0.04117194190621376,
0.010221319273114204,
-0.004490303806960583,
0.04579437896609306,
0.03210623189806938,
-0.00452389707788825,
-0.004922537133097649,
0.037982817739248276,
-0.008434155955910683,
0.033449962735176086,
-0.02979501150548458,
-0.032840803265571594,
0.007659270893782377,
0.0004761849413625896,
-0.006055751349776983,
0.06141750141978264,
0.038376979529857635,
-0.007032196037471294,
-0.037194494158029556,
-0.024348419159650803,
0.017110183835029602,
-0.020406806841492653,
0.029580015689134598,
-0.036728668957948685,
-0.09001211076974869,
-0.031783733516931534,
-0.032177895307540894,
-0.03585076332092285,
-0.02026347443461418,
-0.0024702269583940506,
0.01881224475800991,
0.04855350777506828,
-0.04815934598445892,
0.062492486089468,
-0.005683985538780689,
0.05729672312736511,
-0.04439689591526985,
-0.01391210313886404,
0.07689729332923889,
0.024975493550300598,
-0.008626758120954037,
0.04848184064030647,
0.006790324579924345,
0.028200451284646988,
-0.0355282686650753,
0.061596665531396866,
0.05615007132291794,
-0.020281391218304634,
0.006530536338686943,
-0.03525952249765396,
0.013267111964523792,
-0.0031219366937875748,
-0.0226821918040514,
-0.056400902569293976,
-0.0011276148725301027,
-0.04378774017095566,
-0.002660588826984167,
-0.03690783306956291,
0.02657005563378334,
-0.000674665323458612
] |
21,140 | tfields.core | to_segment |
For circular (close into themself after
<periodicity>) coordinates at index <coordinate> assume
<num_segments> segments and transform all values to
segment number <segment>
Args:
segment (int): segment index (starting at 0)
num_segments (int): number of segments
coordinate (int): coordinate index
periodicity (float): after what lenght, the coordiante repeats
offset (float): offset in the mapping
coord_sys (str or sympy.CoordinateSystem): in which coord sys the
transformation should be done
Examples:
>>> import tfields
>>> import numpy as np
>>> pStart = tfields.Points3D([[6, 2 * np.pi, 1],
... [6, 2 * np.pi / 5 * 3, 1]],
... coord_sys='cylinder')
>>> p = tfields.Points3D(pStart)
>>> p.to_segment(0, 5, 1, offset=-2 * np.pi / 10)
>>> assert np.array_equal(p[:, 1], [0, 0])
>>> p2 = tfields.Points3D(pStart)
>>> p2.to_segment(1, 5, 1, offset=-2 * np.pi / 10)
>>> assert np.array_equal(np.round(p2[:, 1], 4), [1.2566] * 2)
| def to_segment( # pylint: disable=too-many-arguments
self,
segment,
num_segments,
coordinate,
periodicity=2 * np.pi,
offset=0.0,
coord_sys=None,
):
"""
For circular (close into themself after
<periodicity>) coordinates at index <coordinate> assume
<num_segments> segments and transform all values to
segment number <segment>
Args:
segment (int): segment index (starting at 0)
num_segments (int): number of segments
coordinate (int): coordinate index
periodicity (float): after what lenght, the coordiante repeats
offset (float): offset in the mapping
coord_sys (str or sympy.CoordinateSystem): in which coord sys the
transformation should be done
Examples:
>>> import tfields
>>> import numpy as np
>>> pStart = tfields.Points3D([[6, 2 * np.pi, 1],
... [6, 2 * np.pi / 5 * 3, 1]],
... coord_sys='cylinder')
>>> p = tfields.Points3D(pStart)
>>> p.to_segment(0, 5, 1, offset=-2 * np.pi / 10)
>>> assert np.array_equal(p[:, 1], [0, 0])
>>> p2 = tfields.Points3D(pStart)
>>> p2.to_segment(1, 5, 1, offset=-2 * np.pi / 10)
>>> assert np.array_equal(np.round(p2[:, 1], 4), [1.2566] * 2)
"""
if segment > num_segments - 1:
raise ValueError("Segment {0} not existent.".format(segment))
if coord_sys is None:
coord_sys = self.coord_sys
with self.tmp_transform(coord_sys):
# map all values to first segment
self[:, coordinate] = (
(self[:, coordinate] - offset) % (periodicity / num_segments)
+ offset
+ segment * periodicity / num_segments
)
| (self, segment, num_segments, coordinate, periodicity=6.283185307179586, offset=0.0, coord_sys=None) | [
0.01821688376367092,
0.09014852344989777,
-0.06424594670534134,
0.0035663307644426823,
0.008999726735055447,
0.04480956122279167,
-0.05486807972192764,
0.019568733870983124,
-0.10534974187612534,
-0.007728231605142355,
0.01774420775473118,
0.007373725529760122,
0.011741239577531815,
-0.027358412742614746,
0.03879714012145996,
0.05569998919963837,
0.026034923270344734,
-0.02091112919151783,
-0.03616907075047493,
-0.008111097849905491,
0.045187704265117645,
-0.024106409400701523,
0.010550099425017834,
0.006154224742203951,
-0.030421344563364983,
-0.040687840431928635,
-0.04030970111489296,
0.009841087274253368,
-0.05172951892018318,
-0.04825063422322273,
0.08024125546216965,
0.012072112411260605,
-0.05524621903896332,
-0.011221298016607761,
-0.010313762351870537,
0.02934364601969719,
0.01788601092994213,
0.07581702619791031,
0.027547482401132584,
0.08651837706565857,
-0.007373725529760122,
0.008503418415784836,
-0.04847751930356026,
0.01278112456202507,
0.05206984654068947,
0.044733934104442596,
0.02686683088541031,
0.0002401778328930959,
-0.01126856543123722,
0.026904644444584846,
0.030648227781057358,
-0.03552623093128204,
-0.006641079671680927,
-0.06227961927652359,
-0.0016579065704718232,
-0.005544474348425865,
0.051956404000520706,
0.0698046013712883,
0.004516406916081905,
0.021629594266414642,
0.04571709781885147,
0.055737800896167755,
0.0401962585747242,
0.036547210067510605,
-0.0012265908299013972,
0.022007735446095467,
0.05350677669048309,
-0.013234891928732395,
-0.003703406313434243,
0.02081659436225891,
0.04299449175596237,
-0.008144184947013855,
0.02556224912405014,
-0.05683440715074539,
0.024579085409641266,
0.030572600662708282,
0.035885464400053024,
0.07468260079622269,
0.04828844964504242,
0.007761318702250719,
0.006244033109396696,
-0.004485683050006628,
-0.004466775804758072,
0.009363685734570026,
-0.01686503365635872,
0.06473752856254578,
-0.008134732022881508,
-0.04870440065860748,
-0.0819050744175911,
0.024862689897418022,
-0.015588811598718166,
-0.0408012829720974,
-0.009784366935491562,
-0.03675518557429314,
0.01945529133081436,
0.012195007875561714,
0.009784366935491562,
-0.06057799234986305,
-0.07509855926036835,
-0.03425946459174156,
0.00935423281043768,
-0.06250650435686111,
-0.07540106773376465,
-0.034883394837379456,
0.011646704748272896,
-0.022669479250907898,
0.004142994061112404,
0.007194109261035919,
0.005861166398972273,
-0.01683667302131653,
-0.02015485055744648,
0.058876361697912216,
-0.07109027355909348,
-0.04257853701710701,
-0.07528762519359589,
-0.01758349873125553,
0.023425757884979248,
0.0040200985968112946,
-0.024541271850466728,
-0.061750225722789764,
0.016959568485617638,
0.03582874312996864,
-0.03981811925768852,
0.04046095535159111,
-0.04155756160616875,
-0.022953083738684654,
-0.0009293966577388346,
0.05082198604941368,
-0.0039633773267269135,
-0.02514629438519478,
-0.0099734365940094,
-0.006314934231340885,
0.025070667266845703,
-0.039629049599170685,
0.008328528143465519,
0.020476268604397774,
-0.02728278376162052,
-0.04303230717778206,
-0.09839196503162384,
0.003611234715208411,
-0.008933551609516144,
0.010427203960716724,
-0.005133247468620539,
0.0001104877155739814,
0.01854775659739971,
0.03743583709001541,
0.022650571539998055,
0.0065087308175861835,
-0.05380928888916969,
0.012658229097723961,
-0.007491894066333771,
0.050330404192209244,
0.12947505712509155,
-0.020135942846536636,
0.0006333841010928154,
-0.031083088368177414,
0.014180241152644157,
-0.029910854995250702,
0.004454959183931351,
0.010086878202855587,
-0.03584764897823334,
0.020646430552005768,
-0.06394343823194504,
0.03637704625725746,
-0.009793819859623909,
0.04480956122279167,
-0.0036254150327295065,
-0.03511027619242668,
0.00043515616562217474,
-0.05728817358613014,
0.03562076762318611,
0.066476970911026,
0.0002877407241612673,
0.04530114307999611,
0.016666511073708534,
-0.03187718242406845,
-0.014416579157114029,
0.0043816943652927876,
-0.011448181234300137,
-0.09861885011196136,
0.076157346367836,
0.006130591034889221,
0.0800900012254715,
0.0026044377591460943,
-0.008399429731070995,
0.013074182905256748,
0.02196992002427578,
-0.010030156932771206,
0.0701071098446846,
-0.012081565335392952,
0.07638423144817352,
0.03070494905114174,
0.0019521465292200446,
0.026942458003759384,
0.030837297439575195,
0.006050236523151398,
0.012951287440955639,
-0.019077152013778687,
-0.027906715869903564,
0.03000538982450962,
0.009675651788711548,
0.016751591116189957,
0.0002850819437298924,
-0.03546950966119766,
-0.038419000804424286,
0.03720895200967789,
0.00190369738265872,
0.056796591728925705,
0.00465348269790411,
0.05448994040489197,
0.003155103651806712,
-0.048515331000089645,
0.031026368960738182,
-0.006494550500065088,
0.022007735446095467,
-0.019814524799585342,
-0.01580624282360077,
0.010654088109731674,
0.021932106465101242,
-0.042918864637613297,
0.04148193448781967,
0.017148638144135475,
0.033162858337163925,
-0.000987890176475048,
-0.02474924735724926,
-0.02474924735724926,
-0.021837571635842323,
-0.07604391127824783,
-0.04121723398566246,
-0.0196443609893322,
0.04511207342147827,
-0.036036718636751175,
-0.09045103192329407,
-0.030118832364678383,
0.10724043846130371,
-0.04964975267648697,
0.010436657816171646,
-0.03601781278848648,
0.017413336783647537,
-0.019776709377765656,
0.02834157645702362,
0.05021696165204048,
-0.04658681899309158,
-0.061447713524103165,
0.04469612240791321,
0.025373177602887154,
0.0022582034580409527,
0.008635766804218292,
-0.029778506606817245,
-0.011760147288441658,
-0.01626000925898552,
-0.013414508663117886,
-0.04726747050881386,
-0.03514809161424637,
0.014643462374806404,
-0.032463300973176956,
0.004878003150224686,
0.05199421942234039,
-0.0016366362106055021,
0.07971186190843582,
-0.0673845037817955,
-0.07351037114858627,
0.013433415442705154,
-0.058762919157743454,
0.027263877913355827,
-0.016817767173051834,
-0.03550732508301735,
-0.0006641079671680927,
-0.0008189089130610228,
0.020722059532999992,
-0.03390023112297058,
0.0199468731880188,
-0.013036368414759636,
-0.04779686778783798,
0.029570529237389565,
0.032954879105091095,
0.018027814105153084,
-0.039931558072566986,
0.09929950535297394,
0.031385600566864014,
-0.024976132437586784,
-0.034826673567295074,
0.008172545582056046,
0.01007742527872324,
0.027415134012699127,
0.007595882751047611,
0.058157894760370255,
0.016600335016846657,
0.05577561631798744,
0.02888987772166729,
-0.029078947380185127,
0.004332063719630241,
-0.021402711048722267,
-0.005946247838437557,
-0.0018186159431934357,
0.005171061493456364,
-0.07661111652851105,
-0.03221751004457474,
0.010361029766499996,
-0.01282839197665453,
0.014804172329604626,
0.024068595841526985,
-0.02268838696181774,
0.09211485087871552,
-0.005345950834453106,
0.029513809829950333,
0.03259564936161041,
-0.025013945996761322,
0.046851515769958496,
-0.0027556936256587505,
-0.024541271850466728,
-0.003079475834965706,
-0.011448181234300137,
0.01716754585504532,
0.05055728554725647,
0.051200125366449356,
0.009075354784727097,
0.03849462792277336,
0.011259111575782299,
0.03981811925768852,
-0.018141254782676697,
0.014482753351330757,
0.0035994178615510464,
0.04288104921579361,
0.04454486444592476,
0.028965506702661514,
-0.009084807708859444,
0.01576842926442623,
-0.021591780707240105,
0.06575850397348404,
0.007165748625993729,
0.004778741393238306,
-0.053166452795267105,
0.022461501881480217,
-0.043410446494817734,
-0.027812179177999496,
-0.0027840540278702974,
-0.02894659899175167,
0.012147740460932255,
-0.0002014775964198634,
0.04976319521665573,
-0.004849642515182495,
-0.020343920215964317,
-0.044431421905756,
-0.03471323102712631,
-0.022253524512052536,
0.040385328233242035,
-0.022707292810082436,
-0.013121450319886208,
0.04802374914288521,
0.007567522116005421,
0.051653891801834106,
-0.0026517051737755537,
0.02378499135375023,
-0.05853603780269623,
0.0010505195241421461,
0.06424594670534134,
-0.07354818284511566,
-0.015116137452423573,
-0.0317259281873703,
0.06477534025907516,
-0.00010672109056031331,
0.050027891993522644,
-0.03688753396272659,
-0.017592953518033028,
0.01807508058845997,
-0.08961912244558334,
-0.01870846562087536,
0.018831361085176468,
0.016666511073708534,
-0.0035190631169825792,
0.028398295864462852,
0.04541458562016487,
0.04632212221622467,
0.04949849471449852,
0.033465370535850525,
0.011259111575782299,
-0.011382007040083408,
-0.025070667266845703,
-0.02484378218650818,
-0.03161248564720154,
-0.03359771892428398,
0.015324113890528679,
0.058876361697912216,
-0.024427829310297966,
0.031139809638261795,
0.04885565862059593,
-0.020778780803084373,
0.05157826468348503,
-0.01770639419555664,
-0.039629049599170685,
0.04549021273851395,
-0.004882729612290859,
-0.048666588962078094,
-0.03148013725876808,
0.017687488347291946,
-0.03673627972602844,
-0.007543888408690691,
0.03401367366313934,
0.010767529718577862,
0.0048590959049761295,
-0.05297738313674927,
0.030024297535419464,
0.061598967760801315,
-0.014652916230261326,
-0.046549007296562195,
0.02792562171816826,
-0.05135137960314751,
0.01780092902481556,
-0.018245244398713112,
-0.0016342728631570935,
-0.025089573115110397,
0.022839641198515892,
0.015295753255486488,
0.03287925198674202,
-0.0803925171494484,
-0.04151974618434906,
0.009963982738554478,
-0.03529934585094452,
0.05358240380883217,
-0.002300744177773595,
-0.007822766900062561,
-0.013386148028075695,
0.03826774284243584,
0.03843790665268898,
-0.015049963258206844,
0.01589132472872734,
0.02767983078956604,
0.004948904272168875,
0.023917339742183685,
-0.02257494442164898,
0.01270549651235342,
-0.05441431328654289,
-0.02136489748954773,
-0.035223718732595444,
0.009340052492916584,
0.08833345025777817,
0.011476541869342327,
0.014889253303408623,
0.008654673583805561,
0.048515331000089645,
0.06976678967475891,
-0.03584764897823334,
-0.06016203761100769,
0.026337435469031334,
0.009013907052576542,
-0.0392887219786644,
0.004547130782157183,
-0.024125317111611366,
-0.06106957420706749,
0.03463760390877724,
-0.013726473785936832,
0.0009825725574046373,
0.0037388568744063377,
-0.012989101000130177,
-0.018415406346321106,
0.03115871734917164,
-0.07895558327436447,
-0.04677588865160942,
0.030799483880400658,
-0.029230203479528427,
0.03306832164525986,
-0.020797686651349068,
0.000620976381469518,
-0.0029045860283076763,
-0.009037540294229984,
0.022990897297859192,
-0.0098221804946661,
-0.018245244398713112,
-0.04182225838303566,
0.029419273138046265,
-0.006527637597173452,
-0.022348061203956604,
0.0037388568744063377,
0.013272705487906933,
0.032444391399621964,
0.013584671542048454,
-0.04409109801054001,
-0.0010067971888929605,
0.009363685734570026,
-0.043977655470371246,
-0.03070494905114174,
-0.0722246989607811,
0.03100746124982834,
0.00987890176475048,
0.012610961683094501,
-0.009992343373596668,
0.03314395248889923,
0.0014664733316749334,
-0.019927965477108955,
-0.014492206275463104,
0.011684519238770008,
-0.017574045807123184,
-0.015049963258206844,
0.0160142183303833,
0.0803925171494484,
-0.04545240104198456,
-0.019143326207995415,
-0.006064416375011206,
-0.01970108225941658,
-0.021988827735185623,
0.009358959272503853,
0.03121543861925602,
-0.05324207991361618,
-0.04450704902410507,
0.08024125546216965,
-0.037965234369039536,
0.05532184988260269,
-0.021553967148065567,
-0.002138853073120117,
-0.006348021328449249,
0.013386148028075695,
0.01767803356051445,
0.050179146230220795,
-0.03284144029021263,
0.03100746124982834,
-0.04034751281142235,
-0.027642017230391502,
-0.031196530908346176,
0.0018091624369844794,
0.01589132472872734,
0.003301632823422551,
0.012185554020106792,
0.009793819859623909,
-0.023955155164003372,
-0.020740967243909836,
-0.0037010430824011564,
-0.06178803741931915,
-0.003308722982183099,
-0.03849462792277336,
-0.018906988203525543,
-0.0036632290575653315,
0.05169170722365379,
0.06330059468746185,
0.05312863737344742,
0.05414961650967598,
0.014426032081246376,
0.007567522116005421,
0.05343114957213402,
-0.022045549005270004,
-0.025429898872971535,
-0.01833977922797203,
0.02737731859087944,
-0.0010487469844520092,
0.037757255136966705,
-0.024106409400701523,
0.05944357067346573,
-0.05157826468348503,
0.06723324954509735,
0.056040313094854355,
-0.006102230399847031,
-0.00938259344547987,
0.02127036266028881,
-0.014605648815631866,
0.0855352133512497,
0.011098402552306652,
-0.017942732200026512,
-0.04499863088130951,
0.029816320165991783,
0.026091644540429115,
-0.027698738500475883,
0.041897885501384735,
0.04889347404241562,
-0.04401547089219093,
0.0069152312353253365,
0.01916223205626011,
0.008172545582056046,
-0.05554873123764992,
0.03894839808344841,
0.014813625253736973,
0.05169170722365379,
0.0009790274780243635,
-0.04121723398566246,
0.010398843325674534,
0.02060861699283123,
0.04658681899309158,
0.021497245877981186,
-0.05309082195162773,
-0.02268838696181774,
-0.00796456914395094,
-0.02329340949654579,
0.002630434697493911,
-0.041595373302698135,
0.005870619788765907,
0.005771358031779528,
0.010455564595758915,
-0.029438180848956108,
0.004580217879265547,
0.06530474126338959,
-0.02232915349304676,
0.007643150165677071,
0.010720262303948402,
0.006513457745313644,
0.008011836558580399,
-0.011901949532330036,
-0.02979741431772709,
-0.03615016117691994,
-0.011117309331893921,
0.008593225851655006,
-0.047002773731946945,
-0.03703879192471504,
0.02677229605615139,
-0.00424461904913187,
0.0589141771197319,
0.040385328233242035,
0.009065900929272175,
-0.0058848001062870026,
-0.013821008615195751,
-0.04749435558915138,
-0.025543341413140297,
0.017876558005809784,
0.033162858337163925,
-0.019965779036283493,
-0.0020738602615892887,
-0.007647876627743244,
-0.03121543861925602,
-0.04787249490618706,
-0.03388132154941559,
0.014756904914975166,
-0.023501386865973473,
0.01000179722905159,
0.0076620569452643394,
-0.01777256838977337,
-0.020986756309866905,
-0.07241376489400864,
0.0020738602615892887,
0.04390202835202217,
-0.0800900012254715,
0.021043477579951286,
0.0018398863030597568,
0.018141254782676697,
0.005780811887234449,
-0.031744834035634995,
-0.03155576437711716,
-0.039024025201797485,
-0.04272979497909546,
-0.05985952541232109,
0.0309696476906538,
0.06265775859355927,
0.07702706754207611,
0.02308543212711811,
-0.013783195056021214,
-0.036244697868824005,
-0.014898707158863544,
-0.02834157645702362,
-0.08848470449447632,
0.06001077964901924,
-0.02834157645702362,
-0.011495448648929596,
0.04272979497909546,
-0.025694597512483597,
0.032160788774490356,
-0.026053830981254578,
-0.04658681899309158,
0.003923200070858002,
-0.014303136616945267,
-0.009420407004654408,
-0.03713332489132881,
-0.012289542704820633,
0.0033276299946010113,
0.01674213819205761,
0.006763975135982037,
-0.058460406959056854,
0.013924997299909592,
-0.021402711048722267,
-0.017082463949918747,
-0.004374604672193527,
0.015758974477648735,
-0.05146482214331627,
0.005464119836688042,
0.04314574599266052,
-0.05464119836688042,
0.009439313784241676,
0.00612586410716176,
0.04772124066948891,
-0.07150623202323914,
0.021289268508553505,
0.04095253720879555,
-0.0383811853826046,
0.01550373062491417,
0.04318356141448021,
0.015692800283432007,
0.037606000900268555,
0.014028985053300858,
-0.012308449484407902,
-0.04034751281142235,
0.04121723398566246,
-0.08893847465515137,
-0.0163167305290699,
0.017999453470110893,
0.06742232292890549,
0.09589624404907227,
-0.04439361020922661,
0.004639302380383015,
-0.01683667302131653,
-0.0219131987541914,
-0.009869447909295559,
0.00974655244499445,
0.0035970546305179596,
0.04348607361316681,
0.025373177602887154,
-0.05006570369005203,
0.003110199701040983,
0.019833430647850037,
-0.0803925171494484,
-0.03333302214741707,
0.00905172061175108,
-0.036698464304208755,
0.0398937463760376,
0.024768155068159103,
0.01833977922797203,
0.01854775659739971,
0.025978202000260353,
-0.009604750201106071,
-0.04560365527868271,
0.002824231516569853,
-0.013197078369557858,
0.04409109801054001,
0.056342825293540955,
-0.0008992636576294899,
-0.004535313695669174,
-0.06057799234986305,
0.03178264945745468,
0.017035197466611862,
-0.02894659899175167,
-0.010171960107982159,
0.03429727628827095,
0.07029618322849274,
-0.05834696814417839,
-0.04057439789175987,
-0.05630500987172127,
0.010474471375346184,
-0.04208695515990257,
0.028398295864462852,
0.05172951892018318,
0.012147740460932255,
-0.034883394837379456,
-0.019020430743694305,
-0.0592166893184185,
-0.01659088209271431,
-0.012336810119450092,
-0.023671548813581467,
-0.0017536231316626072,
-0.05350677669048309,
-0.020476268604397774,
0.03643376752734184,
0.0043273367919027805,
-0.02181866392493248,
-0.00197932543233037,
-0.0037081330083310604,
0.00020192073134239763,
0.021837571635842323,
-0.022669479250907898,
-0.03365444019436836,
-0.043864212930202484,
-0.014785264618694782,
-0.023274503648281097,
0.038759324699640274,
-0.004948904272168875,
-0.026431970298290253,
-0.05554873123764992,
0.029967576265335083,
0.00244372827000916,
0.02919238992035389,
0.01795218512415886,
0.048364076763391495,
-0.007009766064584255,
0.009765459224581718
] |
21,141 | tfields.core | transform |
Args:
coord_sys (str)
Examples:
>>> import numpy as np
>>> import tfields
CARTESIAN to SPHERICAL
>>> t = tfields.Tensors([[1, 2, 2], [1, 0, 0], [0, 0, -1],
... [0, 0, 1], [0, 0, 0]])
>>> t.transform('spherical')
r
>>> assert t[0, 0] == 3
phi
>>> assert t[1, 1] == 0.
>>> assert t[2, 1] == 0.
theta is 0 at (0, 0, 1) and pi / 2 at (0, 0, -1)
>>> assert round(t[1, 2], 10) == round(0, 10)
>>> assert t[2, 2] == -np.pi / 2
>>> assert t[3, 2] == np.pi / 2
theta is defined 0 for R == 0
>>> assert t[4, 0] == 0.
>>> assert t[4, 2] == 0.
CARTESIAN to CYLINDER
>>> tCart = tfields.Tensors([[3, 4, 42], [1, 0, 0], [0, 1, -1],
... [-1, 0, 1], [0, 0, 0]])
>>> t_cyl = tCart.copy()
>>> t_cyl.transform('cylinder')
>>> assert t_cyl.coord_sys == 'cylinder'
R
>>> assert t_cyl[0, 0] == 5
>>> assert t_cyl[1, 0] == 1
>>> assert t_cyl[2, 0] == 1
>>> assert t_cyl[4, 0] == 0
Phi
>>> assert round(t_cyl[0, 1], 10) == round(np.arctan(4. / 3), 10)
>>> assert t_cyl[1, 1] == 0
>>> assert round(t_cyl[2, 1], 10) == round(np.pi / 2, 10)
>>> assert t_cyl[1, 1] == 0
Z
>>> assert t_cyl[0, 2] == 42
>>> assert t_cyl[2, 2] == -1
>>> t_cyl.transform('cartesian')
>>> assert t_cyl.coord_sys == 'cartesian'
>>> assert round(t_cyl[0, 0], 10) == 3
| def transform(self, coord_sys, **kwargs):
"""
Args:
coord_sys (str)
Examples:
>>> import numpy as np
>>> import tfields
CARTESIAN to SPHERICAL
>>> t = tfields.Tensors([[1, 2, 2], [1, 0, 0], [0, 0, -1],
... [0, 0, 1], [0, 0, 0]])
>>> t.transform('spherical')
r
>>> assert t[0, 0] == 3
phi
>>> assert t[1, 1] == 0.
>>> assert t[2, 1] == 0.
theta is 0 at (0, 0, 1) and pi / 2 at (0, 0, -1)
>>> assert round(t[1, 2], 10) == round(0, 10)
>>> assert t[2, 2] == -np.pi / 2
>>> assert t[3, 2] == np.pi / 2
theta is defined 0 for R == 0
>>> assert t[4, 0] == 0.
>>> assert t[4, 2] == 0.
CARTESIAN to CYLINDER
>>> tCart = tfields.Tensors([[3, 4, 42], [1, 0, 0], [0, 1, -1],
... [-1, 0, 1], [0, 0, 0]])
>>> t_cyl = tCart.copy()
>>> t_cyl.transform('cylinder')
>>> assert t_cyl.coord_sys == 'cylinder'
R
>>> assert t_cyl[0, 0] == 5
>>> assert t_cyl[1, 0] == 1
>>> assert t_cyl[2, 0] == 1
>>> assert t_cyl[4, 0] == 0
Phi
>>> assert round(t_cyl[0, 1], 10) == round(np.arctan(4. / 3), 10)
>>> assert t_cyl[1, 1] == 0
>>> assert round(t_cyl[2, 1], 10) == round(np.pi / 2, 10)
>>> assert t_cyl[1, 1] == 0
Z
>>> assert t_cyl[0, 2] == 42
>>> assert t_cyl[2, 2] == -1
>>> t_cyl.transform('cartesian')
>>> assert t_cyl.coord_sys == 'cartesian'
>>> assert round(t_cyl[0, 0], 10) == 3
"""
if self.rank == 0 or any(s == 0 for s in self.shape):
# scalar or empty
self.coord_sys = coord_sys # pylint: disable=attribute-defined-outside-init
return
if self.coord_sys == coord_sys:
# already correct
return
tfields.bases.transform(self, self.coord_sys, coord_sys, **kwargs)
# self[:] = tfields.bases.transform(self, self.coord_sys, coord_sys)
self.coord_sys = coord_sys # pylint: disable=attribute-defined-outside-init
| (self, coord_sys, **kwargs) | [
0.047175075858831406,
-0.00160879734903574,
0.013095487840473652,
0.02944038063287735,
-0.06581021100282669,
-0.03544981777667999,
-0.08824284374713898,
0.040637120604515076,
0.0062541235238313675,
0.03916901722550392,
0.02994932234287262,
0.03043869137763977,
0.030791036784648895,
0.021121123805642128,
-0.006273698061704636,
-0.014945299364626408,
-0.029362080618739128,
-0.009767785668373108,
0.014260184019804,
-0.056336045265197754,
0.03116295486688614,
-0.03257233649492264,
0.02229560725390911,
-0.015131259337067604,
-0.0030903590377420187,
0.018331725150346756,
0.01542488019913435,
0.014397206716239452,
-0.007962017320096493,
-0.03640897944569588,
-0.03276808187365532,
0.03192637115716934,
0.0023526367731392384,
-0.015199771150946617,
0.014406994916498661,
-0.07117368280887604,
-0.0287356898188591,
-0.0023783284705132246,
-0.009895021095871925,
0.045374203473329544,
0.003234722651541233,
-0.00670434208586812,
0.0014106032904237509,
-0.025192664936184883,
-0.020161962136626244,
0.03515619784593582,
-0.04036307334899902,
0.036937497556209564,
-0.08307511359453201,
0.012038453482091427,
-0.007340520154684782,
-0.05688413977622986,
0.047762319445610046,
-0.03715281933546066,
0.018449174240231514,
0.016638511791825294,
0.03901241719722748,
0.03879709541797638,
0.005505390465259552,
-0.010345240123569965,
0.014152523130178452,
0.07477543503046036,
-0.0927058756351471,
0.0019917278550565243,
0.017059369012713432,
-0.01849811151623726,
0.0466269850730896,
-0.014416782185435295,
0.05398707836866379,
0.05394792929291725,
-0.03443193435668945,
0.005133470520377159,
0.017352990806102753,
-0.05328239127993584,
0.006307953968644142,
0.025564584881067276,
-0.04474781081080437,
0.05727563425898552,
0.027463333681225777,
-0.04603974521160126,
-0.03505832329392433,
0.021923687309026718,
0.011235889978706837,
-0.0359979122877121,
-0.033100854605436325,
0.031202105805277824,
-0.016119781881570816,
0.029812300577759743,
-0.01558147743344307,
-0.04592229425907135,
-0.024899045005440712,
-0.05175556242465973,
0.022667527198791504,
-0.023137319833040237,
-0.02460542321205139,
0.03308127820491791,
-0.01930067501962185,
-0.04631378874182701,
-0.019721530377864838,
0.04353417828679085,
0.060133542865514755,
0.043064385652542114,
-0.08550237864255905,
0.005157939158380032,
0.016325317323207855,
-0.0027380140963941813,
-0.04419972002506256,
-0.03259190917015076,
0.020651331171393394,
0.013193361461162567,
-0.022432630881667137,
0.11658703535795212,
0.007560736034065485,
-0.011314189061522484,
-0.05073767527937889,
-0.06447912752628326,
-0.01756831258535385,
-0.0254275631159544,
-0.0819789320230484,
0.0004190213803667575,
0.0235288143157959,
0.026386722922325134,
0.036624301224946976,
0.014720190316438675,
-0.0050894273445010185,
0.017215967178344727,
0.0036678132601082325,
0.02523181587457657,
-0.010883544571697712,
-0.03404043987393379,
0.018018530681729317,
-0.08291851729154587,
0.03738771751523018,
0.03406001254916191,
0.044356316328048706,
0.03609578683972359,
0.0021813579369336367,
-0.02652374655008316,
-0.07430563867092133,
0.031397853046655655,
0.0588807612657547,
-0.013584855943918228,
0.05445687472820282,
-0.021532192826271057,
0.010286515578627586,
0.06999920308589935,
0.016726598143577576,
-0.020259836688637733,
-0.07348350435495377,
-0.01351634506136179,
-0.006146462168544531,
0.040441371500492096,
0.09709061682224274,
0.0461963415145874,
-0.07219157367944717,
0.005843054037541151,
-0.013966563157737255,
-0.01918322592973709,
0.022824125364422798,
0.09756040573120117,
-0.01090311910957098,
-0.011558872647583485,
-0.009733529761433601,
0.03364894539117813,
0.012987826950848103,
0.0057990108616650105,
-0.0009701721137389541,
-0.08370150625705719,
-0.013839327730238438,
-0.025251390412449837,
0.026778217405080795,
-0.002331838710233569,
0.011333763599395752,
-0.03916901722550392,
0.054613471031188965,
0.003056103363633156,
-0.016325317323207855,
0.011539298109710217,
-0.010834608227014542,
0.006753278896212578,
-0.0063568907789886,
-0.0014546464662998915,
0.01878194510936737,
0.044160570949316025,
0.016354680061340332,
0.0536738857626915,
0.004808040801435709,
-0.010961843654513359,
0.020240262150764465,
-0.02942080609500408,
0.012469097040593624,
0.026073528453707695,
-0.015698926523327827,
-0.01958450861275196,
0.05214705690741539,
0.059624601155519485,
-0.008607983589172363,
0.01109886635094881,
-0.0105997109785676,
0.06181696802377701,
-0.044278018176555634,
-0.011921005323529243,
0.04494355991482735,
0.017245329916477203,
-0.040637120604515076,
0.022569652646780014,
0.06463573127985,
0.007247540168464184,
-0.06377444416284561,
-0.02523181587457657,
0.04921084642410278,
-0.01481806393712759,
-0.031495727598667145,
-0.01869385875761509,
0.01417209766805172,
0.001979493536055088,
0.010345240123569965,
-0.023430941626429558,
0.016599362716078758,
0.024683723226189613,
0.109305240213871,
0.005431985016912222,
-0.03282680734992027,
-0.07594991475343704,
0.023959457874298096,
-0.03359021991491318,
0.030693162232637405,
-0.04008902981877327,
-0.033022552728652954,
-0.058215219527482986,
0.022373905405402184,
-0.02018153667449951,
-0.035528119653463364,
0.021747514605522156,
0.028402920812368393,
-0.04850615933537483,
0.03850347548723221,
-0.03916901722550392,
-0.0012344308197498322,
-0.011588234454393387,
-0.01937897317111492,
0.013438045978546143,
-0.027189286425709724,
-0.014964873902499676,
-0.03699622303247452,
-0.004118031822144985,
0.01880151964724064,
0.05148151516914368,
-0.02433137781918049,
-0.016217656433582306,
-0.013163999654352665,
0.0008667930960655212,
-0.015522753819823265,
-0.009635656140744686,
-0.010932481847703457,
-0.05527901276946068,
0.042946938425302505,
0.003467172384262085,
0.04318183287978172,
-0.015924034640192986,
-0.05316494032740593,
-0.039756257086992264,
-0.06467487663030624,
0.00038170706829987466,
0.015043172985315323,
-0.03449065983295441,
0.018224064260721207,
0.01917343959212303,
-0.05997694283723831,
0.0339425653219223,
-0.06808087974786758,
0.042555443942546844,
-0.04498270899057388,
0.020161962136626244,
0.041537556797266006,
0.010521412827074528,
0.02963612787425518,
-0.006851152516901493,
0.06463573127985,
0.03820985555648804,
0.03566513955593109,
-0.01566956378519535,
-0.02442925237119198,
-0.005167726427316666,
-0.019359398633241653,
-0.05238195136189461,
-0.000489979749545455,
0.0061905053444206715,
0.002696417737752199,
0.0023440727964043617,
-0.03625238314270973,
0.019114714115858078,
-0.004100903868675232,
0.009777572937309742,
0.04584399610757828,
-0.05206875875592232,
-0.10468560457229614,
0.004047073423862457,
0.017000645399093628,
-0.07520607858896255,
-0.015375942923128605,
0.0673370361328125,
-0.020436009392142296,
0.01696149632334709,
0.038053255528211594,
-0.032317865639925,
0.011813344433903694,
-0.03347277268767357,
0.0428294874727726,
0.024292228743433952,
0.020573031157255173,
0.02654332108795643,
0.006146462168544531,
0.0024810959585011005,
0.01462231669574976,
0.03811198100447655,
0.03981498256325722,
0.038738373667001724,
0.023137319833040237,
0.07320945709943771,
0.01547381654381752,
-0.017734697088599205,
-0.020122813060879707,
0.039443060755729675,
0.024977343156933784,
-0.0038048364222049713,
-0.00868628267198801,
-0.02893143706023693,
0.0020590159110724926,
0.045765697956085205,
0.007546054664999247,
0.07555842399597168,
0.015297644771635532,
-0.00321759469807148,
0.005060065537691116,
-0.03128040209412575,
-0.018821094185113907,
0.005275387316942215,
0.00012891789083369076,
-0.030203795060515404,
-0.010374601930379868,
0.005970289930701256,
-0.02372456155717373,
0.0022315182723104954,
0.013721879571676254,
0.01301718968898058,
0.013232511468231678,
0.014583166688680649,
0.024233505129814148,
0.02209986001253128,
-0.00955246388912201,
-0.041341811418533325,
0.013780603185296059,
-0.03263105824589729,
-0.04267289116978645,
0.035528119653463364,
-0.005843054037541151,
-0.048388708382844925,
-0.058332666754722595,
0.002808972494676709,
0.06620170921087265,
-0.010991205461323261,
0.02382243610918522,
-0.0036531323567032814,
-0.009126713499426842,
-0.016736386343836784,
-0.030066771432757378,
-0.009890127927064896,
0.04067626968026161,
0.02683694288134575,
0.03826858103275299,
0.007511799223721027,
0.02540798857808113,
0.03268978372216225,
-0.0466269850730896,
0.056218598037958145,
0.013614218682050705,
0.0021152931731194258,
-0.008138190023601055,
-0.05895905941724777,
0.019369186833500862,
-0.02221730723977089,
0.008113721385598183,
0.015131259337067604,
0.01609042100608349,
0.034608107060194016,
0.045061007142066956,
-0.03640897944569588,
0.04549165070056915,
-0.005060065537691116,
-0.012968252412974834,
0.009527995251119137,
0.027208862826228142,
-0.07320945709943771,
-0.03186764568090439,
0.002301253145560622,
-0.022863274440169334,
0.035723865032196045,
-0.01020821649581194,
-0.03997157886624336,
-0.05997694283723831,
-0.035410668700933456,
0.014749552123248577,
0.021551767364144325,
-0.008676495403051376,
-0.0054662409238517284,
0.04983723908662796,
-0.014269971288740635,
0.011059717275202274,
0.03083018586039543,
-0.007130092009902,
0.021767089143395424,
0.037720486521720886,
-0.024487975984811783,
0.0053194304928183556,
-0.028598668053746223,
-0.04388652369379997,
0.010384389199316502,
0.024076906964182854,
0.03635025769472122,
-0.039443060755729675,
0.05676668882369995,
-0.012185263447463512,
0.025447137653827667,
0.08205723017454147,
0.042046498507261276,
-0.01512147206813097,
-0.02795270085334778,
0.026582470163702965,
-0.004849636927247047,
-0.03116295486688614,
0.0076879714615643024,
-0.03488215431571007,
0.02814844809472561,
0.03846432641148567,
-0.001974599901586771,
0.06565361469984055,
0.07551927119493484,
-0.06858982145786285,
0.008074572309851646,
0.03981498256325722,
-0.02292199805378914,
-0.015199771150946617,
-0.06150377169251442,
-0.050072137266397476,
-0.004756656941026449,
-0.018224064260721207,
-0.026680344715714455,
-0.07841633260250092,
0.004127819091081619,
0.06295230239629745,
0.09873489290475845,
-0.013085700571537018,
-0.015738075599074364,
0.010041831992566586,
0.002889718161895871,
0.046861883252859116,
-0.09192288666963577,
-0.041733305901288986,
-0.01850789785385132,
-0.027659080922603607,
-0.007648822385817766,
0.02863781712949276,
0.0119014298543334,
0.030791036784648895,
-0.014269971288740635,
-0.012195050716400146,
-0.027502482756972313,
0.03147615119814873,
-0.04419972002506256,
0.0626782551407814,
0.01908535324037075,
0.004864318296313286,
0.035214923322200775,
-0.037309419363737106,
0.002777163404971361,
-0.014524443075060844,
-0.011431637220084667,
-0.0574713796377182,
-0.03124125488102436,
-0.04905425012111664,
-0.029088035225868225,
0.004338247701525688,
-0.0016662981361150742,
0.028011426329612732,
0.010736734606325626,
0.005955609027296305,
-0.048075515776872635,
0.06177781894803047,
0.027091413736343384,
-0.01241037342697382,
0.046470388770103455,
0.030908484011888504,
0.03756389021873474,
-0.0884777382016182,
0.02301987260580063,
-0.010237579233944416,
-0.03276808187365532,
-0.0442388691008091,
0.021434320136904716,
0.005153045058250427,
0.0556313581764698,
0.019251737743616104,
-0.012645269744098186,
0.01677553541958332,
0.0010038161417469382,
0.0022657739464193583,
0.015327006578445435,
-0.025838632136583328,
-0.0045266542583703995,
-0.03429491072893143,
-0.024938194081187248,
0.025486286729574203,
-0.041459258645772934,
-0.01788150705397129,
-0.010687797330319881,
-0.08573728054761887,
0.010756309144198895,
-0.031397853046655655,
0.016002334654331207,
-0.005833266768604517,
0.036115359514951706,
-0.006621149368584156,
0.027189286425709724,
0.054730918258428574,
0.003924731630831957,
-0.001806991407647729,
-0.041733305901288986,
0.07747674733400345,
-0.009650337509810925,
-0.05097257345914841,
-0.08730325847864151,
-0.053204089403152466,
0.05715818330645561,
0.020944951102137566,
0.06420508772134781,
-0.02642587386071682,
-0.03766176104545593,
-0.0031050401739776134,
-0.02161049097776413,
-0.03609578683972359,
-0.07943421602249146,
0.03173062205314636,
-0.011284826323390007,
-0.00013878171739634126,
-0.040245626121759415,
0.054496023803949356,
-0.06710214167833328,
0.03474513068795204,
0.021473469212651253,
-0.04553079977631569,
-0.06479232758283615,
-0.009620975703001022,
0.011637171730399132,
0.004406759049743414,
-0.0028358877170830965,
-0.032494038343429565,
0.014113374054431915,
-0.05543560907244682,
0.027502482756972313,
0.00035387426032684743,
0.03374681994318962,
0.06980345398187637,
0.011637171730399132,
0.006229654885828495,
0.021434320136904716,
-0.0211994219571352,
0.040754567831754684,
0.042046498507261276,
-0.017441077157855034,
0.05175556242465973,
0.017245329916477203,
0.006224761251360178,
0.05136406794190407,
0.034999601542949677,
0.03770091384649277,
-0.0022914656437933445,
0.017049582675099373,
-0.02272625081241131,
-0.05668839067220688,
0.02018153667449951,
0.021962836384773254,
-0.05935055390000343,
0.013946988619863987,
0.04936744645237923,
-0.04251629486680031,
0.008901604451239109,
0.033727243542671204,
0.05277344584465027,
0.003415788756683469,
0.0030976994894444942,
0.04431716725230217,
-0.01888960599899292,
0.04553079977631569,
-0.02470329776406288,
-0.04893680289387703,
-0.04071541875600815,
-0.015493391081690788,
-0.009665018878877163,
-0.029166333377361298,
-0.054104529321193695,
0.01024736650288105,
0.022276032716035843,
0.002583863213658333,
-0.01245930977165699,
-0.0438082255423069,
-0.030379965901374817,
0.003442703979089856,
-0.024585848674178123,
0.016824472695589066,
0.0327485091984272,
0.00018794790958054364,
0.006307953968644142,
-0.041341811418533325,
0.05614029988646507,
-0.045569948852062225,
-0.07454054057598114,
0.0056326258927583694,
0.06166037172079086,
-0.06835492700338364,
-0.0016026803059503436,
-0.01728447899222374,
-0.07786823809146881,
-0.008896710351109505,
-0.09497654438018799,
0.030712736770510674,
0.02771780453622341,
-0.07019495218992233,
0.007546054664999247,
0.012645269744098186,
0.030497414991259575,
-0.06287400424480438,
0.03143700212240219,
-0.0329638309776783,
0.018341513350605965,
-0.012195050716400146,
-0.08471938967704773,
-0.0005168949719518423,
0.04549165070056915,
0.048780202865600586,
0.01517040841281414,
0.0024456167593598366,
0.054613471031188965,
-0.015248707495629787,
-0.03454938158392906,
-0.11196739971637726,
0.031808920204639435,
0.02640629932284355,
-0.011500148102641106,
0.013946988619863987,
-0.033903416246175766,
0.06334379315376282,
0.03263105824589729,
-0.02683694288134575,
0.034705981612205505,
-0.036624301224946976,
-0.043064385652542114,
0.012292924337089062,
0.04431716725230217,
-0.0008215265697799623,
0.032905105501413345,
0.02442925237119198,
0.03887539729475975,
0.015806587412953377,
0.003711856435984373,
-0.0438082255423069,
-0.006533063016831875,
0.02875526435673237,
-0.0018644921947270632,
0.02654332108795643,
0.03705494478344917,
-0.07825973629951477,
-0.004595165606588125,
-0.0013261872809380293,
-0.004274629522114992,
-0.041655007749795914,
0.08150913566350937,
-0.0008637345745228231,
0.029166333377361298,
0.020670905709266663,
-0.020944951102137566,
0.034823428839445114,
-0.012752930633723736,
0.06858982145786285,
0.029283782467246056,
-0.0027600356843322515,
0.03268978372216225,
0.014524443075060844,
-0.024996917694807053,
-0.03899284452199936,
0.09333226829767227,
0.02834419533610344,
0.003936965949833393,
-0.016423190012574196,
0.02491861954331398,
0.00838287454098463,
-0.02744375914335251,
-0.03930604085326195,
0.019525783136487007,
0.04353417828679085,
0.016315529122948647,
-0.03218084201216698,
-0.03725069388747215,
0.03965838626027107,
-0.005818585865199566,
-0.04349502921104431,
-0.017352990806102753,
-0.0058039044961333275,
0.025388412177562714,
-0.07039069384336472,
0.02272625081241131,
0.025466712191700935,
0.032807230949401855,
0.01176440715789795,
0.014250396750867367,
-0.03194594383239746,
0.005123683251440525,
0.08683346211910248,
0.053713034838438034,
-0.05754967778921127,
0.03259190917015076,
-0.03605663403868675,
0.044669512659311295,
0.014739764854311943,
0.045061007142066956,
-0.007898399606347084,
0.033609796315431595,
0.009880340658128262,
0.01947684772312641,
-0.03938433900475502,
-0.020573031157255173,
0.02793312631547451,
-0.014837638475000858,
-0.028892287984490395,
0.0011096419766545296,
-0.022530503571033478,
-0.04212480038404465,
-0.04463036358356476,
-0.08628536760807037,
0.01351634506136179,
-0.03981498256325722,
-0.021884538233280182,
-0.014749552123248577,
-0.04008902981877327,
-0.023470090702176094,
0.03335532546043396,
-0.02593650482594967,
0.01818491518497467,
0.009909702464938164,
-0.0050943209789693356,
0.0359979122877121,
-0.001294378424063325,
-0.015043172985315323,
-0.05386963114142418,
0.02180623821914196,
0.006459658034145832,
0.0035405775997787714,
-0.021786663681268692,
-0.023039447143673897,
0.003934518899768591,
0.0067483847960829735,
0.002137314761057496,
0.002193592255935073,
0.05927225574851036,
0.03263105824589729,
0.005378154572099447,
0.008627558127045631,
0.04302523657679558
] |
21,142 | tfields.core | transform_field |
Transform the field to the coordinate system of choice.
NOTE: This is not yet any way generic!!! Have a look at Einsteinpy and actual status of
sympy for further implementation
| def transform_field(self, coord_sys, field_index=0):
"""
Transform the field to the coordinate system of choice.
NOTE: This is not yet any way generic!!! Have a look at Einsteinpy and actual status of
sympy for further implementation
"""
self.fields[field_index].transform(coord_sys, position=self)
| (self, coord_sys, field_index=0) | [
0.07590259611606598,
-0.00344992708414793,
0.03607218712568283,
0.0991901233792305,
-0.04335373640060425,
-0.03754863142967224,
-0.024931753054261208,
-0.04795084148645401,
0.011736043728888035,
0.0406021811068058,
0.02365664392709732,
-0.024025755003094673,
-0.004584523383527994,
0.02424386516213417,
-0.005700244568288326,
0.007084409706294537,
-0.005159161519259214,
0.007482881657779217,
-0.0005562876467593014,
-0.021626533940434456,
-0.002317428356036544,
-0.0683526024222374,
0.05855438858270645,
-0.048454176634550095,
0.025787418708205223,
0.009999546222388744,
0.02560286410152912,
0.005507300142198801,
0.0010999919613823295,
-0.08375458419322968,
0.0031059831380844116,
0.008464381098747253,
-0.008141408674418926,
-0.013136987574398518,
0.041575293987989426,
-0.04389062523841858,
-0.04788373038172722,
0.021576201543211937,
0.019495759159326553,
0.04425973445177078,
0.02806919440627098,
-0.013497709296643734,
-0.007319298572838306,
-0.001276158494874835,
0.009227768518030643,
0.018690425902605057,
-0.015737541019916534,
-0.0018392620841041207,
-0.030619414523243904,
0.03212941437959671,
-0.026089418679475784,
-0.06066838651895523,
0.06147371977567673,
-0.024076087400317192,
0.017549538984894753,
0.015670429915189743,
0.02013331465423107,
0.09080124646425247,
0.04654151201248169,
-0.0370788536965847,
-0.022196978330612183,
0.03207907825708389,
-0.1015390157699585,
0.0021276299376040697,
0.01694553904235363,
-0.0203010905534029,
0.042145736515522,
-0.015712372958660126,
0.025636419653892517,
0.014638597145676613,
-0.052816394716501236,
0.004978800658136606,
0.023522421717643738,
-0.03996462747454643,
0.00882510282099247,
0.035031966865062714,
-0.029612749814987183,
0.046038176864385605,
0.05147417262196541,
-0.028455084189772606,
-0.03236430138349533,
-0.01306148711591959,
-0.030283858999609947,
0.026693418622016907,
-0.027565862983465195,
0.0022041783668100834,
0.05137350410223007,
0.0203010905534029,
0.031626079231500626,
-0.045098621398210526,
-0.00964721292257309,
-0.06003082916140556,
-0.010846822522580624,
0.012398765422403812,
-0.05238017067313194,
0.0064804102294147015,
0.0006690132431685925,
-0.05912483111023903,
-0.05848727747797966,
0.0538901686668396,
0.06654059886932373,
0.05818527564406395,
-0.10328389704227448,
0.012809820473194122,
0.025032419711351395,
0.019982313737273216,
0.0038022601511329412,
-0.06023216247558594,
0.012331654317677021,
0.0105364341288805,
-0.006539132446050644,
0.06335283070802689,
-0.04905817285180092,
-0.01118237804621458,
-0.056037724018096924,
-0.057212166488170624,
-0.005628938786685467,
-0.013380264863371849,
0.02441164292395115,
0.01567881740629673,
0.05305128172039986,
0.016131818294525146,
-0.023639865219593048,
0.037447962909936905,
-0.03179385885596275,
0.03835396096110344,
0.01562848500907421,
0.00011436404020059854,
0.000015196654203464277,
-0.06241327151656151,
0.009353602305054665,
-0.06425882875919342,
-0.000813197111710906,
0.052514392882585526,
0.029344305396080017,
0.017918650060892105,
0.030334193259477615,
-0.038857296109199524,
-0.07489592581987381,
0.02612297423183918,
-0.0007025687373243272,
0.011157210916280746,
0.04831995442509651,
-0.0009720615344122052,
-0.0129775982350111,
0.04788373038172722,
0.0034205662086606026,
0.020082980394363403,
-0.07952658832073212,
-0.03999818488955498,
-0.03543463349342346,
0.03476352244615555,
0.07556703686714172,
-0.01971386931836605,
-0.024562641978263855,
0.012633654288947582,
0.0026404003147035837,
-0.04130684956908226,
0.061574384570121765,
0.06862104684114456,
0.0011387905105948448,
-0.003288441337645054,
-0.02612297423183918,
0.03001541458070278,
-0.011626988649368286,
0.009663990698754787,
0.020972201600670815,
-0.06690971553325653,
0.002810274949297309,
-0.008145603351294994,
0.009672379121184349,
-0.010561601258814335,
-0.04607173427939415,
0.020636646077036858,
0.020049424842000008,
0.04325306788086891,
-0.019797759130597115,
0.02795175090432167,
0.014395318925380707,
-0.012331654317677021,
-0.01046932302415371,
0.02558608539402485,
0.019445424899458885,
0.03234752267599106,
0.012365209870040417,
0.05023261904716492,
-0.002283872803673148,
0.005494717042893171,
0.042749736458063126,
-0.030619414523243904,
0.036810409277677536,
0.0014659569133073092,
-0.036508407443761826,
-0.07395637035369873,
0.006526549346745014,
0.03999818488955498,
-0.010788100771605968,
0.0011345960665494204,
0.005951910745352507,
0.06925860047340393,
-0.02654241770505905,
-0.02488142065703869,
-0.00001219009209307842,
0.05573572218418121,
-0.053621724247932434,
0.050970837473869324,
0.052749283611774445,
-0.012197432108223438,
-0.08932480216026306,
-0.019797759130597115,
0.08751280605792999,
-0.0031038857996463776,
-0.023740531876683235,
-0.036441296339035034,
0.02553575299680233,
-0.011425655335187912,
0.01929442584514618,
-0.011777988635003567,
0.05902416631579399,
0.0468435101211071,
0.04754817485809326,
-0.0009584296494722366,
0.0012855959357693791,
-0.07140615582466125,
0.06261460483074188,
-0.029981859028339386,
0.022079534828662872,
-0.032498523592948914,
-0.02511630952358246,
-0.07610392570495605,
-0.015603317879140377,
-0.0013642417034134269,
-0.08174125105142593,
-0.016224095597863197,
0.07664081454277039,
-0.01288532093167305,
0.036340631544589996,
-0.054460614919662476,
0.014193986542522907,
0.003296830225735903,
-0.014328207820653915,
0.014193986542522907,
-0.05640683323144913,
-0.01306148711591959,
-0.0757012590765953,
-0.018153537064790726,
0.005133994854986668,
0.022264089435338974,
-0.01226454321295023,
0.006765632424503565,
-0.002306942129507661,
0.0382532961666584,
-0.00828401930630207,
0.033270299434661865,
0.022213757038116455,
-0.02717997319996357,
-0.023958643898367882,
0.0026823445223271847,
0.011996099725365639,
-0.039561960846185684,
-0.06224549561738968,
-0.07798303663730621,
-0.048051510006189346,
-0.06462793797254562,
0.05865505337715149,
-0.016786150634288788,
-0.0034268577583134174,
0.02535119839012623,
0.014546318911015987,
0.025216976180672646,
0.071808822453022,
0.023723755031824112,
-0.00882510282099247,
0.02664308436214924,
0.029797304421663284,
-0.019613202661275864,
-0.0035086493007838726,
0.0382532961666584,
0.03879018500447273,
0.04191084951162338,
0.009965990670025349,
0.01624087244272232,
-0.047749508172273636,
0.03206230327486992,
-0.008774769492447376,
-0.006568493787199259,
-0.0019986508414149284,
0.048689063638448715,
-0.008724436163902283,
-0.01976420357823372,
-0.013732598163187504,
0.05513172596693039,
0.029696637764573097,
0.015074818395078182,
-0.03316963464021683,
-0.0328173004090786,
-0.09180790930986404,
0.04459528997540474,
0.004936856217682362,
-0.03189452365040779,
-0.0036512603983283043,
0.0695270448923111,
-0.05395727977156639,
0.05758127570152283,
0.0394277386367321,
-0.0100582679733634,
-0.013397042639553547,
0.0037057881709188223,
0.036508407443761826,
-0.0003067184588871896,
-0.0033031217753887177,
0.02701219543814659,
-0.10120345652103424,
0.014479207806289196,
0.04254840314388275,
0.03613929823040962,
-0.011920599266886711,
0.03513263165950775,
0.003387010656297207,
0.05331972613930702,
0.033085744827985764,
-0.04123973846435547,
0.008502130396664143,
0.023404976353049278,
0.007998798042535782,
0.0343608558177948,
-0.05137350410223007,
-0.040501516312360764,
0.014512763358652592,
0.01924409158527851,
-0.015552984550595284,
0.07435903698205948,
0.024092866107821465,
-0.012583320960402489,
-0.025049198418855667,
-0.055400166660547256,
0.019445424899458885,
-0.017331426963210106,
-0.027146417647600174,
-0.028371194377541542,
-0.029612749814987183,
0.013136987574398518,
-0.07201015204191208,
-0.024898197501897812,
-0.008250463753938675,
-0.014160430990159512,
-0.053621724247932434,
-0.013313153758645058,
0.03165963664650917,
0.029210083186626434,
-0.019428648054599762,
-0.09086835384368896,
0.010486100800335407,
-0.06576882302761078,
-0.04858839884400368,
0.07617104053497314,
0.002506178105250001,
-0.05519883334636688,
-0.07972792536020279,
0.02218020148575306,
0.04546773433685303,
-0.06184282898902893,
0.009865324012935162,
-0.0394277386367321,
-0.021257422864437103,
-0.02058631367981434,
-0.02194531261920929,
-0.005578605458140373,
0.03872307389974594,
0.05959460884332657,
0.014370152726769447,
0.005519883707165718,
0.02176075614988804,
-0.0050291339866817,
-0.05358817055821419,
0.0429510697722435,
0.011383711360394955,
0.014781207777559757,
-0.08073458820581436,
-0.10764611512422562,
0.04570262134075165,
-0.016375094652175903,
-0.032615967094898224,
0.0417766273021698,
0.021324533969163895,
0.027565862983465195,
0.030703304335474968,
0.005213689524680376,
0.018405204638838768,
-0.010477712377905846,
-0.05942682921886444,
0.002468428108841181,
0.01612342894077301,
-0.05311839282512665,
0.013053098693490028,
-0.03754863142967224,
-0.01870720461010933,
-0.007654853630810976,
-0.0032758580055087805,
-0.022566089406609535,
-0.03795129805803299,
-0.026257196441292763,
-0.001069582300260663,
0.0414075143635273,
-0.015947261825203896,
-0.043622180819511414,
-0.0020269632805138826,
0.044796623289585114,
0.022549310699105263,
0.042145736515522,
0.020905090495944023,
0.043756403028964996,
0.023908309638500214,
-0.0220627561211586,
-0.012809820473194122,
-0.01865687035024166,
-0.013866819441318512,
-0.02900874987244606,
-0.006623021326959133,
0.033387746661901474,
-0.02900874987244606,
0.025904864072799683,
-0.06999681890010834,
0.0021244839299470186,
-0.015989206731319427,
-0.024260643869638443,
-0.025284087285399437,
-0.011517933569848537,
-0.012868543155491352,
0.07516437023878098,
-0.03983040526509285,
-0.020015869289636612,
0.02229764498770237,
0.011702488176524639,
0.03717951849102974,
-0.06029927358031273,
0.04248129203915596,
0.0491923950612545,
-0.05717861279845238,
0.018723981454968452,
0.09939146041870117,
0.026492085307836533,
0.03348841145634651,
-0.08623769134283066,
0.007826825603842735,
-0.004907495342195034,
-0.010913933627307415,
0.03848818317055702,
-0.06325215846300125,
-0.0006700618541799486,
0.054930392652750015,
0.07033237814903259,
0.027448417618870735,
-0.019680313766002655,
0.02218020148575306,
0.015401984564960003,
0.05912483111023903,
-0.11368611454963684,
0.003416371764615178,
0.03540107607841492,
-0.03630707412958145,
-0.01129143312573433,
0.02535119839012623,
0.0005028085433878005,
0.015376818366348743,
-0.031743526458740234,
-0.0367097407579422,
-0.03519974276423454,
0.025854529812932014,
-0.022515755146741867,
0.04691062122583389,
0.008455991744995117,
-0.032683078199625015,
-0.03983040526509285,
0.007734547834843397,
0.002615233650431037,
-0.01964675821363926,
0.018338093534111977,
0.004743912257254124,
-0.04607173427939415,
-0.051574837416410446,
-0.028018862009048462,
0.028203416615724564,
0.0009652455919422209,
0.032615967094898224,
0.024730419740080833,
0.041206181049346924,
-0.05224594846367836,
-0.011224322021007538,
-0.0022251505870372057,
0.01403459720313549,
0.05278283730149269,
0.048521287739276886,
0.04305173456668854,
-0.036038633435964584,
-0.009034824557602406,
-0.03711240738630295,
-0.011333378031849861,
-0.034797076135873795,
0.004987189546227455,
-0.01206321083009243,
0.006832743529230356,
-0.017583094537258148,
0.00352332997135818,
0.04637373238801956,
-0.021878201514482498,
-0.007948464713990688,
0.033622633665800095,
0.033689744770526886,
-0.012935654260218143,
-0.04389062523841858,
-0.06372193992137909,
0.018489092588424683,
-0.03216296806931496,
0.012541376985609531,
0.0027788167353719473,
-0.06472860276699066,
0.029847636818885803,
-0.0006580028566531837,
0.02342175506055355,
0.00393648212775588,
-0.027465196326375008,
-0.02494853176176548,
0.0022670950274914503,
0.042749736458063126,
0.012331654317677021,
-0.040098849684000015,
-0.01182832196354866,
0.041508182883262634,
-0.025804197415709496,
-0.017213983461260796,
-0.058755721896886826,
-0.006945993285626173,
0.039159294217824936,
0.018086425960063934,
0.06415815651416779,
-0.003019997151568532,
-0.020082980394363403,
-0.044863734394311905,
0.00004243593866704032,
-0.026760529726743698,
-0.014848318882286549,
-0.0018015120876953006,
-0.02342175506055355,
0.06295016407966614,
-0.025384753942489624,
-0.02642497420310974,
-0.06912437826395035,
0.04617239907383919,
-0.02884097211062908,
-0.035568855702877045,
0.0003035726258531213,
0.024210309609770775,
-0.004974606446921825,
0.0488232858479023,
0.025619640946388245,
-0.046273067593574524,
0.018623314797878265,
-0.04241418093442917,
0.008267241530120373,
0.02072053588926792,
-0.008581824600696564,
0.10912255942821503,
0.030518747866153717,
-0.03657551854848862,
0.0004954682663083076,
0.028387973085045815,
-0.0041483016684651375,
0.03184419125318527,
0.0005762112559750676,
0.0409712940454483,
-0.02082120254635811,
0.016861651092767715,
0.04617239907383919,
-0.0012551862746477127,
0.0012929362710565329,
-0.0029969275929033756,
-0.02664308436214924,
0.014193986542522907,
-0.04040084779262543,
-0.01491542998701334,
-0.003865176811814308,
-0.023220421746373177,
0.021374868229031563,
0.008875436149537563,
0.00816657580435276,
0.0394277386367321,
0.02624041959643364,
0.0530848354101181,
0.012583320960402489,
0.010502878576517105,
-0.017071371898055077,
0.003745635272935033,
0.05130639299750328,
-0.008485352620482445,
-0.03048519231379032,
-0.07590259611606598,
0.024025755003094673,
0.01783476024866104,
-0.0488232858479023,
-0.059863053262233734,
-0.033454857766628265,
0.03449507802724838,
-0.02389153279364109,
0.004987189546227455,
-0.05385661497712135,
-0.0047481064684689045,
-0.006513965781778097,
-0.014898652210831642,
0.010251211933791637,
0.04795084148645401,
0.0063839382492005825,
0.0017826372059062123,
-0.0009306414285674691,
-0.006199382711201906,
-0.012541376985609531,
-0.052514392882585526,
0.0043244678527116776,
-0.0012992279371246696,
-0.039561960846185684,
-0.04855484142899513,
0.03922640532255173,
-0.07160748541355133,
-0.03048519231379032,
-0.03647485375404358,
-0.0009096692665480077,
0.09066702425479889,
-0.04147462546825409,
0.014806374907493591,
0.031156303361058235,
-0.014437263831496239,
-0.013539653271436691,
0.01223937701433897,
-0.04187729209661484,
-0.03530041128396988,
-0.030199971050024033,
-0.06399038434028625,
-0.0033282884396612644,
-0.01805287040770054,
0.06378904730081558,
0.024864641949534416,
0.008892213925719261,
-0.004242676310241222,
-0.016198929399251938,
-0.018791092559695244,
-0.02447875402867794,
0.008502130396664143,
-0.07113771140575409,
-0.032683078199625015,
0.011517933569848537,
-0.02900874987244606,
0.018203871324658394,
-0.02394186519086361,
0.010460934601724148,
0.06818482279777527,
-0.033807188272476196,
-0.02724708430469036,
-0.025200197473168373,
0.024327754974365234,
0.001203804393298924,
0.029092637822031975,
-0.01403459720313549,
0.027733638882637024,
0.0021129492670297623,
-0.004785856232047081,
-0.03311930224299431,
0.00857763085514307,
0.042447734624147415,
0.00486974511295557,
0.01900920458137989,
0.04469595476984978,
-0.0850968062877655,
0.0013202001573517919,
-0.011710877530276775,
-0.0046390509232878685,
-0.020686980336904526,
0.08227813988924026,
0.017281094565987587,
-0.01167732197791338,
0.024025755003094673,
0.021676868200302124,
-0.005570216570049524,
0.020804423838853836,
0.04590395465493202,
0.021962089464068413,
-0.01409331988543272,
0.027448417618870735,
0.02865641564130783,
0.008892213925719261,
-0.01562848500907421,
0.014235930517315865,
-0.01223937701433897,
-0.003890343476086855,
-0.020435312762856483,
0.01485670730471611,
-0.013917152769863605,
0.047279730439186096,
-0.015578151680529118,
0.02929397113621235,
0.06372193992137909,
0.012742709368467331,
-0.015494262799620628,
0.008707658387720585,
0.06526549160480499,
0.009697546251118183,
-0.03206230327486992,
0.0007177736260928214,
-0.009965990670025349,
0.0031479275785386562,
-0.059863053262233734,
0.007575159426778555,
-0.00812043622136116,
0.025518974289298058,
0.03231396898627281,
0.04761528596282005,
0.06724526733160019,
-0.003953259903937578,
0.10838434100151062,
0.029746970161795616,
-0.03543463349342346,
0.06258104741573334,
-0.03731374070048332,
0.025099530816078186,
-0.0033639410976320505,
0.02358953282237053,
0.011450822465121746,
-0.025049198418855667,
-0.02612297423183918,
-0.010754545219242573,
-0.01910986937582493,
-0.01638348400592804,
0.03657551854848862,
-0.014579874463379383,
-0.014344985596835613,
-0.01828775927424431,
0.012843376025557518,
-0.031391192227602005,
0.011257877573370934,
-0.09845190495252609,
-0.005507300142198801,
-0.0021580394823104143,
0.0013202001573517919,
0.002407608786597848,
-0.01929442584514618,
0.018338093534111977,
0.05318550392985344,
-0.003888246137648821,
0.008783157914876938,
-0.0660037100315094,
0.005473744589835405,
0.04536706581711769,
0.05194395035505295,
0.010830044746398926,
-0.01208837702870369,
0.012449098750948906,
-0.040333736687898636,
0.05677594617009163,
0.022918421775102615,
-0.03959551826119423,
-0.006585271563380957,
-0.03107241354882717,
0.022431867197155952,
-0.014168819412589073,
0.047682397067546844,
0.015141929499804974,
-0.007986214011907578,
0.0013998944777995348,
0.029914747923612595
] |
21,143 | tfields.mesh_3d | triangles |
Cached method to retrieve the triangles, belonging to this mesh
Examples:
>>> import tfields
>>> mesh = tfields.Mesh3D.grid((0, 1, 3), (1, 2, 3), (2, 3, 3))
>>> assert mesh.triangles() is mesh.triangles()
| def triangles(self):
"""
Cached method to retrieve the triangles, belonging to this mesh
Examples:
>>> import tfields
>>> mesh = tfields.Mesh3D.grid((0, 1, 3), (1, 2, 3), (2, 3, 3))
>>> assert mesh.triangles() is mesh.triangles()
"""
return self._triangles
| (self) | [
-0.019412973895668983,
-0.01233514305204153,
-0.04113490507006645,
0.020229989662766457,
-0.014581932686269283,
0.01612715609371662,
-0.01831178180873394,
0.029607893899083138,
-0.012770291417837143,
0.018294019624590874,
0.04127699136734009,
-0.026446403935551643,
-0.05530833080410957,
-0.025327449664473534,
-0.03259177505970001,
-0.021366704255342484,
-0.02490118145942688,
-0.010008427314460278,
-0.019555063918232918,
-0.035753265023231506,
-0.014164544641971588,
0.007437495980411768,
0.06184444576501846,
0.03367520496249199,
-0.013747156597673893,
-0.0003593864676076919,
0.03376401215791702,
-0.00824563018977642,
0.11516351997852325,
0.032698340713977814,
-0.10194920003414154,
0.06841608136892319,
-0.028186999261379242,
0.005275072064250708,
-0.00543048232793808,
-0.04152565076947212,
0.033852819353342056,
-0.0038985800929367542,
0.02479461394250393,
0.042129531502723694,
0.029128342866897583,
-0.01061230804771185,
0.02445715107023716,
0.00900048017501831,
0.029181625694036484,
-0.04006923362612724,
0.06820295006036758,
-0.010701113380491734,
-0.035362519323825836,
-0.04941161721944809,
0.053354598581790924,
-0.03351535648107529,
0.023711182177066803,
-0.017770064994692802,
-0.0003679895307868719,
-0.0427689328789711,
0.03488296642899513,
-0.018897900357842445,
-0.07207489013671875,
0.024972226470708847,
-0.0385417714715004,
-0.022325808182358742,
0.04372803494334221,
-0.03154386207461357,
0.02696147747337818,
-0.054526835680007935,
0.023746704682707787,
0.03399490565061569,
0.04085072502493858,
0.024261778220534325,
-0.05743966996669769,
0.018951183184981346,
0.042236097157001495,
-0.019164318218827248,
0.0086852191016078,
0.0034523303620517254,
0.10791695863008499,
0.042022962123155594,
-0.007934809662401676,
-0.03440341353416443,
-0.024439390748739243,
0.01332088839262724,
-0.0023111740592867136,
0.0462501235306263,
0.017050737515091896,
0.014706260524690151,
0.019537303596735,
-0.0310465507209301,
-0.035007294267416,
0.024705808609724045,
-0.03751162067055702,
0.014093499630689621,
-0.03594863787293434,
-0.015985066071152687,
0.00024227365793194622,
-0.06759906560182571,
-0.03555789217352867,
-0.02216595783829689,
-0.009928502142429352,
-0.031970132142305374,
-0.025149837136268616,
0.0630522072315216,
-0.01627812534570694,
0.03351535648107529,
0.045255497097969055,
-0.054384745657444,
-0.025718195363879204,
-0.10947994142770767,
0.055983252823352814,
0.020567452535033226,
-0.016713274642825127,
0.05477549508213997,
0.009413427673280239,
0.0736023485660553,
0.03964296355843544,
-0.049269527196884155,
-0.027316702529788017,
-0.0031703715212643147,
-0.008489846251904964,
-0.008210107684135437,
-0.01308999303728342,
0.02401312254369259,
-0.003936322405934334,
0.03733401000499725,
0.008081339299678802,
0.05221788212656975,
0.025505060330033302,
-0.01658894680440426,
-0.021118048578500748,
0.0097686517983675,
0.06045907363295555,
0.03266282007098198,
0.02841789461672306,
-0.014164544641971588,
-0.009218054823577404,
0.06720831990242004,
0.11729486286640167,
-0.0035722183529287577,
0.006611600983887911,
0.039891619235277176,
0.028879685327410698,
0.04529102146625519,
-0.003765371162444353,
0.0293059553951025,
-0.04831042140722275,
0.044864751398563385,
0.005790146067738533,
0.017024096101522446,
-0.009289099834859371,
0.015576559118926525,
-0.011917755007743835,
-0.02273431606590748,
0.07303398847579956,
-0.014901634305715561,
-0.04777758568525314,
-0.014750664122402668,
-0.05662265792489052,
-0.017414841800928116,
0.03273386508226395,
-0.05651608854532242,
-0.03847072646021843,
0.03829311579465866,
-0.011713501065969467,
0.008996039628982544,
0.010585665702819824,
0.023249391466379166,
0.024084165692329407,
-0.08248294144868851,
-0.07623100280761719,
0.023871032521128654,
-0.018294019624590874,
0.011962157674133778,
-0.0620931014418602,
0.0783623456954956,
-0.023302674293518066,
-0.015594320371747017,
0.0035300354938954115,
0.029838791117072105,
0.03333774209022522,
0.018045363947749138,
-0.019608348608016968,
-0.029803268611431122,
-0.020070139318704605,
0.017388200387358665,
0.03694326430559158,
-0.00018718623323366046,
0.05250206217169762,
-0.0214910339564085,
0.053567733615636826,
0.011882232502102852,
-0.02284088358283043,
-0.005354997236281633,
0.03081565536558628,
0.0008025835268199444,
0.007752757053822279,
0.005257310811430216,
0.01540782768279314,
-0.046925049275159836,
-0.047599975019693375,
-0.016038348898291588,
-0.06358504295349121,
-0.050335198640823364,
-0.008885032497346401,
-0.025647150352597237,
0.002810707548633218,
0.013081112876534462,
-0.02284088358283043,
-0.06521906703710556,
-0.01948401890695095,
0.06074324995279312,
0.035753265023231506,
-0.0620931014418602,
-0.021562078967690468,
0.06035250425338745,
0.014999320730566978,
-0.02607341855764389,
-0.01161581464111805,
0.005252870265394449,
0.01697969250380993,
0.019679391756653786,
0.04738683998584747,
0.00020980399858672172,
-0.011216187849640846,
-0.01222857553511858,
-0.08930323272943497,
-0.01726387068629265,
-0.010345890186727047,
0.04948266223073006,
-0.0896584615111351,
-0.06415339559316635,
0.029749983921647072,
0.041454605758190155,
-0.02490118145942688,
-0.01552327536046505,
-0.0057945866137743,
0.01847163215279579,
-0.04113490507006645,
-0.011651337146759033,
0.0731760784983635,
0.003103767056018114,
-0.010212681256234646,
-0.02792058140039444,
0.08653248846530914,
0.023906555026769638,
-0.006895780097693205,
0.04550415650010109,
-0.020620735362172127,
0.0345277413725853,
0.029803268611431122,
0.006629362236708403,
-0.07246563583612442,
-0.03031834214925766,
-0.01024820376187563,
-0.013658351264894009,
0.0293059553951025,
-0.03401266783475876,
0.04170326143503189,
0.008525368757545948,
-0.008769584819674492,
0.019466258585453033,
-0.008285592310130596,
-0.024865658953785896,
0.07310503721237183,
0.047706540673971176,
0.050796989351511,
0.026712821796536446,
0.04415430501103401,
0.04337281361222267,
-0.06035250425338745,
0.03166819363832474,
0.03644594922661781,
-0.02680162712931633,
-0.042413707822561264,
-0.034581027925014496,
-0.008449883200228214,
-0.05360325425863266,
0.011296113021671772,
0.08262503147125244,
-0.005554810632020235,
0.026108941063284874,
-0.028844164684414864,
-0.016784319654107094,
-0.047209229320287704,
-0.04774206504225731,
-0.0585053414106369,
0.015141409821808338,
-0.03298252075910568,
-0.0315261036157608,
-0.008778465911746025,
-0.016633348539471626,
0.031970132142305374,
-0.013267604634165764,
-0.06571638584136963,
-0.06987249851226807,
0.055130716413259506,
-0.031739238649606705,
-0.0630522072315216,
-0.004915407858788967,
0.025664912536740303,
0.01445760391652584,
0.0125926798209548,
-0.014661857858300209,
-0.016082752496004105,
0.006158690899610519,
-0.040388934314250946,
0.024883419275283813,
0.023373719304800034,
0.031011028215289116,
0.06223519146442413,
-0.0309932678937912,
-0.006997906602919102,
-0.018844617530703545,
-0.011384919285774231,
-0.018613722175359726,
0.04440296068787575,
-0.03502505645155907,
-0.013898126780986786,
-0.004950930364429951,
-0.06095638498663902,
0.05836325138807297,
-0.0033435430377721786,
0.010967531241476536,
0.016011707484722137,
0.050832509994506836,
-0.033533114939928055,
0.03260953351855278,
0.02635759860277176,
-0.043301768600940704,
0.030584760010242462,
-0.0096354428678751,
-0.039110127836465836,
0.0018049803329631686,
-0.025647150352597237,
0.031348489224910736,
0.00763286929577589,
-0.05260862782597542,
0.09100831300020218,
0.006367384921759367,
0.0033901662100106478,
-0.011154023930430412,
0.07509429007768631,
-0.021899539977312088,
-0.017201706767082214,
-0.000929686997551471,
-0.024759091436862946,
0.03133073076605797,
-0.0251320768147707,
0.012166411615908146,
0.0658939927816391,
0.10393845289945602,
0.001478618592955172,
-0.02372894249856472,
-0.0077483169734478,
0.025380732491612434,
0.010310367681086063,
-0.04326624423265457,
-0.024918941780924797,
-0.011429321952164173,
0.012708127498626709,
0.08077786862850189,
-0.005221788305789232,
-0.036090727895498276,
0.002066957764327526,
0.02602013573050499,
-0.008680778555572033,
-0.08660353720188141,
0.006380705628544092,
-0.027192372828722,
-0.0587184764444828,
0.011651337146759033,
-0.015168051235377789,
-0.00481772143393755,
-0.014848350547254086,
0.017130661755800247,
0.03449222072958946,
0.009022681973874569,
0.0660005584359169,
0.07928592711687088,
0.018844617530703545,
0.012068725191056728,
0.007100033573806286,
-0.04021132364869118,
0.029163865372538567,
-0.007872644811868668,
-0.034474458545446396,
0.04610803350806236,
-0.026606254279613495,
-0.03323117643594742,
0.003494512988254428,
0.039216697216033936,
0.03669460862874985,
-0.04006923362612724,
-0.013915888033807278,
-0.057475194334983826,
-0.02964341640472412,
0.038719382137060165,
0.0056924596428871155,
-0.03182804211974144,
0.029128342866897583,
-0.007317608222365379,
0.005670258309692144,
-0.05594773218035698,
-0.00733980955556035,
0.04600146785378456,
-0.06152474507689476,
0.02596685104072094,
0.015461111441254616,
0.03070908784866333,
0.03561117500066757,
-0.08894801139831543,
-0.030851177871227264,
0.026499686762690544,
0.028009388595819473,
-0.028719834983348846,
0.03003416396677494,
0.005590332671999931,
0.02802714891731739,
-0.002437722636386752,
0.0505838543176651,
0.08837965130805969,
0.015194693580269814,
0.016153797507286072,
0.0022467898670583963,
0.021579839289188385,
0.0027996066492050886,
-0.01113626267760992,
-0.06276802718639374,
0.015283499844372272,
0.014803946949541569,
0.030140729621052742,
0.02395983785390854,
-0.04138356074690819,
0.03607296571135521,
-0.05928683280944824,
-0.04600146785378456,
0.015283499844372272,
0.00035217098775319755,
0.02117133140563965,
0.0025953531730920076,
0.026943717151880264,
0.070014588534832,
0.027227895334362984,
0.006580519024282694,
-0.040779680013656616,
0.06813190132379532,
-0.019839243963360786,
-0.015603200532495975,
-0.034136995673179626,
0.07274981588125229,
-0.0015063704922795296,
0.0293592382222414,
0.040779680013656616,
-0.01773454248905182,
-0.05001549422740936,
-0.0007032318972051144,
0.02110028825700283,
-0.06742145866155624,
-0.05793698504567146,
-0.03371072933077812,
0.03589535504579544,
0.02836461178958416,
0.07878861576318741,
-0.0008569771307520568,
-0.031188640743494034,
-0.06628473848104477,
-0.09967576712369919,
-0.022023869678378105,
-0.01161581464111805,
0.015789693221449852,
-0.011580292135477066,
0.05289280787110329,
-0.0135429035872221,
-0.06102742999792099,
-0.028009388595819473,
-0.011544769629836082,
0.019785959273576736,
-0.008552010171115398,
0.024208495393395424,
-0.05324803292751312,
-0.07985428720712662,
-0.02305401675403118,
-0.02602013573050499,
0.007042309734970331,
-0.03651699423789978,
0.03429684787988663,
0.02674834430217743,
-0.057475194334983826,
0.02596685104072094,
0.01847163215279579,
-0.06916205585002899,
0.005821228493005037,
-0.033142369240522385,
-0.0252386424690485,
0.0033923862501978874,
0.022752078250050545,
0.050051018595695496,
0.06024593859910965,
-0.01161581464111805,
-0.029998641461133957,
0.04930504783987999,
0.003558897413313389,
-0.02690819464623928,
0.049553703516721725,
0.025771478191018105,
-0.011544769629836082,
-0.02857774682343006,
0.08198563009500504,
0.010487979277968407,
0.022592226043343544,
-0.021295661106705666,
-0.047102659940719604,
-0.04706713929772377,
0.043408334255218506,
0.011811187490820885,
-0.014581932686269283,
-0.013684992678463459,
-0.070014588534832,
-0.016064992174506187,
-0.05591220781207085,
0.05573459714651108,
-0.0007065621321089566,
0.021313421428203583,
-0.028559984639286995,
0.0051418631337583065,
-0.04355042427778244,
0.033870577812194824,
-0.05498862639069557,
-0.07264324277639389,
0.04170326143503189,
0.012690366245806217,
0.0351138636469841,
-0.008680778555572033,
0.0019825922790914774,
0.026037896052002907,
-0.015674244612455368,
-0.0055192881263792515,
-0.040175799280405045,
-0.07701249420642853,
0.020674018189311028,
-0.0006749249878339469,
0.004759997595101595,
-0.0384352020919323,
0.0033790653105825186,
-0.03996266424655914,
0.016429096460342407,
-0.024830136448144913,
-0.004444736521691084,
-0.010550144128501415,
-0.03443893790245056,
0.02138446643948555,
0.022982973605394363,
-0.039891619235277176,
0.00333022209815681,
-0.09519995003938675,
0.05363877862691879,
0.028293566778302193,
-0.00011961047857766971,
-0.022485660389065742,
-0.018684765323996544,
-0.011233949102461338,
0.009386786259710789,
-0.020958198234438896,
-0.02959013357758522,
0.0346343107521534,
-0.017237229272723198,
-0.029217148199677467,
0.0315261036157608,
0.03415475785732269,
0.008702980354428291,
-0.00677145179361105,
0.012326261959969997,
0.029501328244805336,
0.056089822202920914,
0.009777531959116459,
0.05253758281469345,
-0.004786639474332333,
-0.030051924288272858,
-0.027725208550691605,
-0.00038186548044905066,
-0.04191639646887779,
-0.014919395558536053,
0.032858192920684814,
-0.04749340936541557,
0.02657073177397251,
0.031792521476745605,
0.06827399134635925,
-0.02617998607456684,
0.08518264442682266,
0.031188640743494034,
-0.0021002599969506264,
0.011082978919148445,
-0.023018496111035347,
0.004928728565573692,
-0.030122969299554825,
-0.003729848889634013,
0.012885739095509052,
-0.025753717869520187,
-0.04387012496590614,
-0.030051924288272858,
0.012823575176298618,
0.021526556462049484,
0.03294699639081955,
-0.001547443214803934,
0.04834594577550888,
-0.008765144273638725,
-0.043905649334192276,
-0.004442516248673201,
-0.012024321593344212,
0.009582159109413624,
-0.010781039483845234,
-0.01428887341171503,
-0.05754623934626579,
0.008343316614627838,
-0.048203855752944946,
-0.011820068582892418,
-0.002399980090558529,
-0.024599241092801094,
0.015665365383028984,
0.026375358924269676,
0.023764465004205704,
-0.04376355931162834,
-0.032129984349012375,
0.031401775777339935,
0.019111035391688347,
0.023160584270954132,
0.00550152687355876,
0.04600146785378456,
-0.03513162210583687,
-0.004795519635081291,
-0.01690864749252796,
-0.011828948743641376,
-0.009031562134623528,
0.01689976640045643,
-0.0034279085230082273,
-0.02193506248295307,
-0.0016517902258783579,
-0.01734379678964615,
-0.037937890738248825,
0.005372758489102125,
-0.02568267285823822,
-0.0733892172574997,
0.07630205154418945,
-0.004600146785378456,
0.005989959463477135,
-0.007885965518653393,
-0.026197748258709908,
0.01666887104511261,
-0.015869619324803352,
0.050335198640823364,
-0.040388934314250946,
-0.04724474996328354,
0.04660534858703613,
0.00010379192099208012,
-0.00806357804685831,
-0.03488296642899513,
0.016029469668865204,
0.04031788930296898,
-0.00376093084923923,
-0.03857729211449623,
-0.013809321448206902,
-0.023160584270954132,
0.02143774926662445,
-0.029394760727882385,
-0.04443848505616188,
0.05768832936882973,
0.013418574817478657,
0.020301034674048424,
0.058043550699949265,
0.0076151080429553986,
0.010328128933906555,
-0.02227252535521984,
0.04902086779475212,
0.0030504835303872824,
-0.043692514300346375,
-0.01914655789732933,
0.050441764295101166,
0.01646461896598339,
0.008267831057310104,
-0.01049686037003994,
-0.024972226470708847,
-0.027050284668803215,
0.05118773505091667,
-0.03690773993730545,
0.034971773624420166,
0.028186999261379242,
0.04045997932553291,
-0.02305401675403118,
0.0391811728477478,
0.023799987509846687,
-0.010807680897414684,
-0.02959013357758522,
-0.01619820110499859,
0.05996175855398178,
0.05694235861301422,
0.035309236496686935,
0.029075060039758682,
0.03076237253844738,
0.02435058355331421,
0.029945356771349907,
0.00677145179361105,
-0.014191186986863613,
-0.03076237253844738,
-0.025771478191018105,
0.03957191854715347,
0.021064765751361847,
0.005745743401348591,
0.026979239657521248,
-0.05665817856788635,
-0.05285728722810745,
0.012494993396103382,
0.0008220098097808659,
0.012077605351805687,
0.04997997358441353,
-0.04323072358965874,
-0.029181625694036484,
0.0013043369399383664,
0.05630295351147652,
-0.0009929612278938293,
0.0054882061667740345,
0.030336102470755577,
0.020674018189311028,
0.010265965014696121,
0.018045363947749138,
0.00023880468506831676,
-0.029021775349974632,
0.04227161779999733,
0.02356909215450287,
0.002970558125525713,
-0.08681666851043701,
-0.01599394716322422,
-0.045255497097969055,
-0.017849991098046303,
-0.02864878997206688,
0.017752304673194885,
0.028329089283943176,
-0.006793653126806021,
0.027068044990301132,
0.0028262485284358263,
-0.031241923570632935,
0.029714461416006088,
0.04188087210059166,
-0.04472266137599945,
-0.017432602122426033,
-0.019022228196263313,
0.011606934480369091,
-0.0015330122550949454,
-0.004062870983034372,
0.03264505788683891,
-0.023462524637579918,
-0.05410056933760643,
0.029394760727882385,
0.04209400713443756,
0.036215055733919144,
-0.07168414443731308,
0.03047819249331951,
0.029128342866897583,
-0.006860257592052221,
-0.07129339873790741,
-0.029998641461133957,
-0.02026551216840744,
-0.0464632585644722,
0.0023022936657071114,
-0.01697969250380993,
0.048559077084064484,
0.010363651439547539,
-0.0015585439978167415,
0.019359691068530083,
0.02266327105462551
] |
21,144 | tfields.bounding_box | Node |
This class allows to increase the performance with cuts in
x,y and z direction
An extension to arbitrary cuts might be possible in the future
Args:
parent: Parent node of self
mesh: Mesh corresponding to the node
cut_expr: Cut that determines the seperation in left and right node
cuts: List of cuts for the children nodes
Attrs:
parent (Node)
remaining_cuts (dict): key specifies dimension, value the cuts that
are still not done
cut_expr (dict): part of parents remaining_cuts. The dimension defines
what is meant by left and right
Examples:
>>> import tfields
>>> mesh = tfields.Mesh3D.grid((5.6, 6.2, 3),
... (-0.25, 0.25, 4),
... (-1, 1, 10))
>>> cuts = {'x': [5.7, 6.1],
... 'y': [-0.2, 0, 0.2],
... 'z': [-0.5, 0.5]}
>>> tree = tfields.bounding_box.Node(mesh,
... cuts,
... at_intersection='keep')
>>> leaves = tree.leaves()
>>> leaves = tfields.bounding_box.Node.sort_leaves(leaves)
>>> meshes = [leaf.mesh for leaf in leaves]
>>> templates = [leaf.template for leaf in leaves]
>>> special_leaf = tree.find_leaf([5.65, -0.21, 0])
| class Node(object):
"""
This class allows to increase the performance with cuts in
x,y and z direction
An extension to arbitrary cuts might be possible in the future
Args:
parent: Parent node of self
mesh: Mesh corresponding to the node
cut_expr: Cut that determines the seperation in left and right node
cuts: List of cuts for the children nodes
Attrs:
parent (Node)
remaining_cuts (dict): key specifies dimension, value the cuts that
are still not done
cut_expr (dict): part of parents remaining_cuts. The dimension defines
what is meant by left and right
Examples:
>>> import tfields
>>> mesh = tfields.Mesh3D.grid((5.6, 6.2, 3),
... (-0.25, 0.25, 4),
... (-1, 1, 10))
>>> cuts = {'x': [5.7, 6.1],
... 'y': [-0.2, 0, 0.2],
... 'z': [-0.5, 0.5]}
>>> tree = tfields.bounding_box.Node(mesh,
... cuts,
... at_intersection='keep')
>>> leaves = tree.leaves()
>>> leaves = tfields.bounding_box.Node.sort_leaves(leaves)
>>> meshes = [leaf.mesh for leaf in leaves]
>>> templates = [leaf.template for leaf in leaves]
>>> special_leaf = tree.find_leaf([5.65, -0.21, 0])
"""
def __init__(
self,
mesh,
cuts,
coord_sys=None,
at_intersection="split",
delta=0.0,
parent=None,
box=None,
internal_template=None,
cut_expr=None,
):
self.parent = parent
# initialize
self.mesh = copy.deepcopy(mesh)
if self.is_root():
cuts = copy.deepcopy(cuts) # dicts are mutable
self.remaining_cuts = cuts
logging.debug(cuts)
self.delta = delta
if box is None:
vertices = np.array(self.mesh)
self.box = {
"x": [min(vertices[:, 0]) - delta, max(vertices[:, 0]) + delta],
"y": [min(vertices[:, 1]) - delta, max(vertices[:, 1]) + delta],
"z": [min(vertices[:, 2]) - delta, max(vertices[:, 2]) + delta],
}
else:
self.box = box
self.left = None
self.right = None
self.at_intersection = at_intersection
self._internal_template = internal_template
if self.is_leaf():
self._template = None
if self.is_root():
self._trim_to_box()
self.cut_expr = cut_expr
self.left_template = None
self.right_template = None
self.coord_sys = coord_sys
# start the splitting process
self._build()
def _build(self):
if not self.is_last_cut():
self._choose_next_cut()
self._split()
def is_leaf(self):
if self.left is None and self.right is None:
return True
else:
return False
def is_root(self):
if self.parent is None:
return True
else:
return False
def is_last_cut(self):
for key in self.remaining_cuts:
if len(self.remaining_cuts[key]) != 0:
return False
return True
def in_box(self, point):
x, y, z = point
for key in ["x", "y", "z"]:
value = locals()[key]
if value < self.box[key][0] or self.box[key][1] < value:
return False
return True
@property
def root(self):
if self.is_root:
return self
return self.parent.root
@classmethod
def sort_leaves(cls, leaves_list):
"""
sorting the leaves first in x, then y, then z direction
"""
sorted_leaves = sorted(
leaves_list, key=lambda x: (x.box["x"][1], x.box["y"][1], x.box["z"][1])
)
return sorted_leaves
def _trim_to_box(self):
# 6 cuts to remove outer part of the box
x, y, z = sympy.symbols("x y z")
eps = 0.0000000001
x_cut = (float(self.box["x"][0] - eps) <= x) & (
x <= float(self.box["x"][1] + eps)
)
y_cut = (float(self.box["y"][0] - eps) <= y) & (
y <= float(self.box["y"][1] + eps)
)
z_cut = (float(self.box["z"][0] - eps) <= z) & (
z <= float(self.box["z"][1] + eps)
)
section_cut = x_cut & y_cut & z_cut
self.mesh, self._internal_template = self.mesh.cut(
section_cut, at_intersection=self.at_intersection, return_template=True
)
def leaves(self):
"""
Recursive function to create a list of all leaves
Returns:
list: of all leaves descending from this node
"""
if self.is_leaf():
return [self]
else:
if self.left is not None:
leftLeaves = self.left.leaves()
else:
leftLeaves = []
if self.right is not None:
rightLeaves = self.right.leaves()
else:
rightLeaves = []
return tfields.lib.util.flatten(leftLeaves + rightLeaves)
def find_leaf(self, point, _in_recursion=False):
"""
Returns:
Node / None:
Node: leaf note, containinig point
None: point outside root box
"""
x, y, z = point
if self.is_root():
if not self.in_box(point):
return None
else:
if not _in_recursion:
raise RuntimeError("Only root node can search for all leaves")
if self.is_leaf():
return self
if len(self.cut_expr) > 1:
raise ValueError("cut_expr is too long")
key = list(self.cut_expr)[0]
value = locals()[key]
if value <= self.cut_expr[key]:
return self.left.find_leaf(point, _in_recursion=True)
return self.right.find_leaf(point, _in_recursion=True)
def _split(self):
"""
Split the node in two new nodes, if there is no cut_expr set and
remaing cuts exist.
"""
if self.cut_expr is None and self.remaining_cuts is None:
raise RuntimeError(
"Cannot split the mesh without cut_expr and" "remaining_cuts"
)
else:
# create cut expression
x, y, z = sympy.symbols("x y z")
if "x" in self.cut_expr:
left_cut_expression = x <= self.cut_expr["x"]
right_cut_expression = x >= self.cut_expr["x"]
key = "x"
elif "y" in self.cut_expr:
left_cut_expression = y <= self.cut_expr["y"]
right_cut_expression = y >= self.cut_expr["y"]
key = "y"
elif "z" in self.cut_expr:
left_cut_expression = z <= self.cut_expr["z"]
right_cut_expression = z >= self.cut_expr["z"]
key = "z"
else:
raise KeyError()
# split the cuts into left / right
left_cuts = self.remaining_cuts.copy()
right_cuts = self.remaining_cuts.copy()
left_cuts[key] = [
value
for value in self.remaining_cuts[key]
if value <= self.cut_expr[key]
]
right_cuts[key] = [
value
for value in self.remaining_cuts[key]
if value > self.cut_expr[key]
]
left_box = copy.deepcopy(self.box)
right_box = copy.deepcopy(self.box)
left_box[key][1] = self.cut_expr[key]
right_box[key][0] = self.cut_expr[key]
# actually cut!
left_mesh, self.left_template = self.mesh.cut(
left_cut_expression,
at_intersection=self.at_intersection,
return_template=True,
)
right_mesh, self.right_template = self.mesh.cut(
right_cut_expression, | (mesh, cuts, coord_sys=None, at_intersection='split', delta=0.0, parent=None, box=None, internal_template=None, cut_expr=None) | [
0.033411599695682526,
0.010396904312074184,
-0.03539664298295975,
-0.008559266105294228,
-0.022700235247612,
0.01413114182651043,
-0.044614315032958984,
-0.024213584139943123,
-0.055266719311475754,
-0.03563249111175537,
-0.0023179298732429743,
0.037735454738140106,
-0.060730498284101486,
-0.03836438059806824,
-0.07495991140604019,
0.019889729097485542,
0.001891686231829226,
-0.016499435529112816,
0.021186886355280876,
-0.002319158287718892,
-0.05723210796713829,
-0.07834037393331528,
0.054755717515945435,
0.054284024983644485,
0.04166623204946518,
-0.055817026644945145,
0.028537437319755554,
-0.016931820660829544,
0.005989520810544491,
-0.009935038164258003,
-0.06513296812772751,
-0.004073267336934805,
-0.021265501156449318,
-0.05672110617160797,
0.004284546244889498,
-0.06855273991823196,
0.07287659496068954,
0.017845725640654564,
0.004245238844305277,
0.04119453951716423,
-0.004952778574079275,
-0.022346464917063713,
-0.03160344436764717,
-0.021108269691467285,
0.015978606417775154,
-0.024292198941111565,
0.047208625823259354,
0.033706407994031906,
-0.008387294597923756,
-0.010318288579583168,
-0.01713818497955799,
-0.09205878525972366,
0.03753891587257385,
0.007920514792203903,
-0.03270406275987625,
0.003827593754976988,
0.044692929834127426,
0.03419775515794754,
0.037401340901851654,
-0.010691712610423565,
0.013669275678694248,
0.06808105111122131,
0.013865814544260502,
-0.010809635743498802,
-0.03016871027648449,
-0.02694547362625599,
-0.04595077782869339,
0.0038546177092939615,
-0.015831202268600464,
0.03917018696665764,
-0.03364744782447815,
0.016096530482172966,
0.0834110751748085,
-0.010485346429049969,
0.026120010763406754,
-0.04386746510863304,
0.022090964019298553,
-0.015447951853275299,
0.03193755820393562,
-0.03716549277305603,
0.0165878776460886,
-0.000424708123318851,
-0.0025550047867000103,
0.0012873293599113822,
0.04331715777516365,
0.027908513322472572,
0.06037672981619835,
0.03461048752069473,
0.04803409054875374,
-0.01610635779798031,
0.004311570432037115,
0.01107496302574873,
-0.005930559244006872,
0.00415433943271637,
0.008574006147682667,
0.002739259973168373,
0.027672667056322098,
-0.0953606367111206,
-0.01600808836519718,
-0.01065240427851677,
0.025314200669527054,
0.09300217032432556,
-0.0686313584446907,
0.036045219749212265,
0.02387946844100952,
0.022051656618714333,
-0.020440038293600082,
-0.023152273148298264,
-0.026159318163990974,
-0.015831202268600464,
-0.01120271347463131,
0.031151404604315758,
-0.02665066532790661,
0.043002694845199585,
-0.027476128190755844,
0.000023300599423237145,
-0.06839551031589508,
0.009605835191905499,
-0.01845499686896801,
-0.04819132015109062,
0.04174484685063362,
-0.06646943092346191,
-0.024331506341695786,
0.02325054258108139,
-0.030090095475316048,
0.02482285350561142,
0.03643829748034477,
0.05699625983834267,
-0.04980294033885002,
-0.07551021873950958,
0.022837812080979347,
0.01998799853026867,
-0.008721410296857357,
0.009964518249034882,
-0.014524219557642937,
-0.0165878776460886,
-0.04441777616739273,
-0.006240107584744692,
-0.03449256345629692,
0.006117271259427071,
0.022877119481563568,
-0.04595077782869339,
0.005935472436249256,
-0.020440038293600082,
-0.07959822565317154,
0.0049208407290279865,
0.016892511397600174,
-0.04697278141975403,
0.01728558912873268,
-0.01427854597568512,
-0.03565214201807976,
-0.012932254932820797,
0.004945408087223768,
0.005503087304532528,
0.02757439762353897,
-0.02159961685538292,
-0.014494738541543484,
-0.07004643976688385,
-0.0034590833820402622,
0.020164884626865387,
-0.0412338450551033,
-0.021776502951979637,
-0.015831202268600464,
-0.005041221156716347,
-0.008500304073095322,
-0.006878858897835016,
0.04331715777516365,
-0.08459030836820602,
-0.04740516468882561,
0.03295956179499626,
-0.0034664536360651255,
0.022837812080979347,
-0.11949560791254044,
0.071186363697052,
-0.05459848791360855,
0.018661361187696457,
0.0007800134480930865,
0.01662718504667282,
-0.040840767323970795,
-0.030895903706550598,
-0.037617530673742294,
-0.04740516468882561,
0.03669380024075508,
0.0028768370393663645,
-0.03887537866830826,
-0.004169079940766096,
0.050471171736717224,
-0.047326549887657166,
0.01914288103580475,
0.00346399680711329,
-0.08293938636779785,
-0.06493642926216125,
0.0198799017816782,
0.012440907768905163,
0.03199652209877968,
0.023191582411527634,
0.022700235247612,
0.007517610210925341,
-0.008785285986959934,
0.018209323287010193,
-0.08278215676546097,
-0.004741499200463295,
0.0509035550057888,
-0.031760673969984055,
0.012617792934179306,
0.022385772317647934,
0.004643229767680168,
0.04001530632376671,
0.008053178898990154,
0.04319923371076584,
-0.05597425997257233,
-0.021521002054214478,
0.016381511464715004,
0.07896929979324341,
0.002375663025304675,
-0.02570727840065956,
-0.0691816657781601,
-0.002368292771279812,
0.023958083242177963,
-0.011084790341556072,
-0.035612836480140686,
0.015349682420492172,
-0.03215375170111656,
-0.008210409432649612,
-0.03622210770845413,
0.011310809291899204,
0.05231863632798195,
0.04591146856546402,
0.0592368021607399,
-0.07059674710035324,
0.05703556910157204,
-0.038207147270441055,
-0.028655361384153366,
-0.06128080561757088,
-0.022936081513762474,
-0.031249674037098885,
-0.019742324948310852,
-0.012283677235245705,
0.02855709195137024,
-0.02460666187107563,
-0.03423706442117691,
-0.06289242208003998,
-0.022425079718232155,
-0.013069831766188145,
0.025176623836159706,
0.010308461263775826,
0.026041394099593163,
0.03899330273270607,
0.03541629761457443,
0.04229515418410301,
-0.04268823191523552,
-0.02863570675253868,
-0.03942568972706795,
0.011173232458531857,
0.01124202087521553,
-0.023565005511045456,
-0.022975388914346695,
-0.004336137790232897,
0.013394121080636978,
0.0017160295974463224,
-0.005925645586103201,
-0.041941385716199875,
0.04343508183956146,
0.04858439788222313,
0.04402469843626022,
-0.017334723845124245,
0.024193929508328438,
0.016283242031931877,
-0.02328985184431076,
0.020479345694184303,
-0.008593659847974777,
0.005930559244006872,
-0.00891303550451994,
0.0174624752253294,
-0.024842508137226105,
-0.001493695075623691,
0.006161492317914963,
0.02838020771741867,
0.030266979709267616,
0.011851291172206402,
-0.0014482454862445593,
0.018730150535702705,
-0.06753074377775192,
-0.02146204002201557,
-0.028655361384153366,
-0.032861292362213135,
-0.005149317439645529,
-0.03130863606929779,
0.014062353409826756,
-0.023348812013864517,
-0.06996782124042511,
-0.004058526828885078,
0.017334723845124245,
-0.02757439762353897,
0.09190155565738678,
-0.03571110591292381,
-0.03628106787800789,
-0.05432333052158356,
0.01078015472739935,
-0.016971128061413765,
0.05141455680131912,
-0.05664249137043953,
0.03700826317071915,
-0.03518044948577881,
0.012765197083353996,
0.038718149065971375,
-0.014082007110118866,
-0.0032527176663279533,
0.06988921016454697,
-0.021442385390400887,
0.004608835559338331,
-0.041902076452970505,
0.009836768731474876,
-0.03178032860159874,
0.06238142400979996,
0.020145229995250702,
0.023525698110461235,
-0.035318028181791306,
0.004500739276409149,
0.05400887131690979,
-0.009699190966784954,
0.009596007876098156,
0.006706887390464544,
0.07932306826114655,
0.028026437386870384,
-0.005139490589499474,
0.009571440517902374,
0.0259234718978405,
-0.000553072546608746,
-0.0008094942895695567,
-0.05192555859684944,
0.05970849469304085,
-0.00320358294993639,
-0.007429167628288269,
-0.015202278271317482,
-0.020892078056931496,
0.0911940187215805,
0.0074783023446798325,
-0.004481085110455751,
-0.05129663273692131,
0.06941751390695572,
0.052122097462415695,
0.024213584139943123,
0.03647760674357414,
0.03924880549311638,
0.018700670450925827,
0.05408748611807823,
0.002761370502412319,
-0.00904569961130619,
0.09158709645271301,
-0.011340290307998657,
-0.013413774780929089,
0.024547699838876724,
-0.01166457962244749,
-0.009551786817610264,
-0.05624941363930702,
0.03402087092399597,
-0.051493171602487564,
-0.008195669390261173,
0.009266805835068226,
0.07381998747587204,
-0.03364744782447815,
-0.03535733371973038,
0.04646177962422371,
-0.01896599680185318,
-0.07527437061071396,
0.004198560491204262,
0.013826506212353706,
0.018690843135118484,
-0.060612574219703674,
0.005665231496095657,
-0.06878858804702759,
-0.02596277929842472,
-0.018513957038521767,
-0.019909383729100227,
0.012735716067254543,
-0.013600487262010574,
-0.008406948298215866,
0.005999347660690546,
0.012450735084712505,
0.04764101281762123,
0.016853203997015953,
-0.01614566519856453,
0.005645577795803547,
-0.017403513193130493,
-0.00902604591101408,
0.009659883566200733,
0.004987172782421112,
0.10290773212909698,
0.005301634781062603,
0.03622210770845413,
0.027810243889689445,
0.06698042899370193,
0.009654969908297062,
-0.041469693183898926,
0.04547908529639244,
0.06198834627866745,
-0.024115314707159996,
0.006269588600844145,
0.01607687585055828,
-0.022464388981461525,
0.0025844855699688196,
-0.02503904700279236,
0.06037672981619835,
0.03459083288908005,
-0.06965336203575134,
0.07865484058856964,
0.02537316270172596,
0.0428454652428627,
0.03258613869547844,
-0.030188364908099174,
0.001182303880341351,
0.023565005511045456,
0.005920732393860817,
-0.010878424160182476,
-0.05546325817704201,
0.01124202087521553,
0.0698499009013176,
-0.006549656391143799,
-0.02672928012907505,
0.004891360178589821,
0.007665014360100031,
0.05731072276830673,
0.008971997536718845,
-0.026611357927322388,
-0.016971128061413765,
-0.04524323716759682,
-0.029755977913737297,
-0.034178100526332855,
0.040329769253730774,
-0.02439046837389469,
-0.0412338450551033,
-0.0341191403567791,
-0.02771197445690632,
-0.015939299017190933,
-0.007748543284833431,
-0.033450908958911896,
-0.026493433862924576,
0.03380467742681503,
0.011605617590248585,
0.01677458919584751,
0.0875777006149292,
0.01126167457550764,
-0.05770380049943924,
0.008696842938661575,
0.038973648101091385,
-0.015369336120784283,
-0.009114488027989864,
-0.09009339660406113,
-0.02851778455078602,
0.05035324767231941,
0.028753630816936493,
0.0016189885791391134,
0.0014163078740239143,
-0.026041394099593163,
-0.02786920592188835,
-0.0654081255197525,
0.003429602598771453,
-0.023741889744997025,
0.03064040280878544,
0.016705799847841263,
0.029461169615387917,
-0.020420383661985397,
0.06348203867673874,
-0.036890339106321335,
-0.011694060638546944,
0.029303940013051033,
0.002228258876129985,
-0.0044417777098715305,
-0.017236454412341118,
0.009900643490254879,
-0.03915053606033325,
-0.07378067821264267,
-0.0014912383630871773,
0.05915818735957146,
0.03742099180817604,
-0.016813896596431732,
-0.020970692858099937,
-0.014435776509344578,
-0.0527903288602829,
-0.026748934760689735,
-0.05074632540345192,
-0.02214992605149746,
-0.004051156807690859,
-0.02435116097331047,
0.03404052555561066,
-0.004645686596632004,
0.059040263295173645,
0.008406948298215866,
-0.05129663273692131,
-0.08812800794839859,
-0.026198625564575195,
-0.012224715203046799,
0.023958083242177963,
-0.020813461393117905,
0.030109748244285583,
-0.02651308849453926,
-0.010789982043206692,
0.037735454738140106,
-0.03606487438082695,
-0.005837203003466129,
0.022130271419882774,
-0.014583180658519268,
0.017413340508937836,
0.03974015265703201,
0.00539990421384573,
-0.0014789546839892864,
0.03508218005299568,
0.017148012295365334,
-0.021501347422599792,
0.04233446344733238,
-0.10385111719369888,
0.06096634641289711,
0.015123662538826466,
0.01400339137762785,
0.0357307605445385,
0.0022184320259839296,
0.03276302292943001,
-0.03966153413057327,
-0.007601139135658741,
-0.008230063132941723,
-0.02969701774418354,
-0.0027490868233144283,
-0.041469693183898926,
0.03185894340276718,
0.051060788333415985,
0.016391338780522346,
-0.016243934631347656,
0.04103730618953705,
-0.010396904312074184,
0.007778024300932884,
-0.012627619318664074,
0.03067971020936966,
0.032389599829912186,
0.013315505348145962,
0.05491294711828232,
0.011635098606348038,
-0.022287502884864807,
0.00876563135534525,
-0.033450908958911896,
0.008387294597923756,
0.014966432005167007,
0.04209861531853676,
-0.0008641566382721066,
0.003346073441207409,
0.043553005903959274,
0.07067536562681198,
0.00010433448187541217,
-0.016578050330281258,
-0.004279633052647114,
0.08915001153945923,
0.032310985028743744,
0.028498129919171333,
-0.02944151684641838,
0.05947265028953552,
-0.013600487262010574,
-0.015506913885474205,
-0.06304965913295746,
0.01607687585055828,
0.028242629021406174,
-0.030011478811502457,
0.03830541670322418,
0.049999479204416275,
-0.00034947061794809997,
-0.006127098109573126,
0.005340942647308111,
0.004151882603764534,
-0.0008211638196371496,
0.019614575430750847,
0.018916862085461617,
0.03726376220583916,
0.062302809208631516,
0.02427254617214203,
-0.00918819010257721,
0.015949126332998276,
0.0009532133117318153,
-0.015280894003808498,
-0.005296721588820219,
-0.04819132015109062,
-0.05884372442960739,
0.04500739276409149,
-0.046265240758657455,
-0.00990555714815855,
-0.01444560382515192,
0.020125575363636017,
0.04186277091503143,
-0.037185147404670715,
0.06356065720319748,
0.033922601491212845,
0.017108704894781113,
0.02490147016942501,
0.04441777616739273,
0.026159318163990974,
-0.028792938217520714,
-0.006225367542356253,
0.018405862152576447,
-0.02588416449725628,
0.011163405142724514,
-0.023368466645479202,
-0.04925262928009033,
-0.012863466516137123,
-0.009699190966784954,
-0.013354813680052757,
0.07779006659984589,
-0.045164622366428375,
-0.0288125928491354,
0.021914079785346985,
-0.030384903773665428,
-0.010789982043206692,
-0.04233446344733238,
0.04371023550629616,
-0.01892668940126896,
0.02397773787379265,
-0.020007653161883354,
-0.03675276041030884,
-0.016558395698666573,
-0.025726933032274246,
-0.0036163143813610077,
0.09441725164651871,
-0.012765197083353996,
-0.026866856962442398,
-0.00952230580151081,
0.010622923262417316,
-0.00803352426737547,
0.017885033041238785,
-0.04697278141975403,
0.09284494072198868,
-0.07637498527765274,
0.0057585877366364,
0.030404556542634964,
0.0018867728067561984,
-0.04819132015109062,
-0.006721627898514271,
-0.029303940013051033,
-0.04095869138836861,
0.019535958766937256,
0.033116791397333145,
-0.014268718659877777,
-0.03441394865512848,
0.014907469972968102,
-0.011713714338839054,
-0.037479955703020096,
-0.024980084970593452,
0.00026317776064388454,
-0.04076215252280235,
-0.024174276739358902,
0.06611566245555878,
0.007502869702875614,
0.028164014220237732,
0.02226785011589527,
-0.025235585868358612,
0.06902443617582321,
-0.02350604347884655,
-0.013276197947561741,
-0.03292025253176689,
0.008117053657770157,
0.02431185357272625,
0.004940494894981384,
0.017521437257528305,
-0.0018327245488762856,
0.028675014153122902,
-0.016686147078871727,
-0.005139490589499474,
-0.0174624752253294,
-0.02957909367978573,
-0.05188624933362007,
0.06529019773006439,
0.02702408842742443,
-0.013571006245911121,
0.09198017418384552,
0.01607687585055828,
-0.0879707783460617,
-0.026572050526738167,
-0.040329769253730774,
-0.04162692278623581,
-0.05094286426901817,
0.02944151684641838,
0.014121314510703087,
-0.012804504483938217,
-0.02185511775314808,
0.05876510962843895,
0.038757458329200745,
-0.04646177962422371,
0.01856309175491333,
0.06741281598806381,
0.06536881625652313,
-0.0373423770070076,
-0.008347987197339535,
0.012460561469197273,
0.00876563135534525,
0.010583615861833096,
0.021206539124250412,
0.055895641446113586,
0.03105313517153263,
-0.018258458003401756,
-0.016283242031931877,
0.018504131585359573,
-0.0041887336410582066,
0.04186277091503143,
-0.03757822513580322,
0.04276685044169426,
-0.058018263429403305,
-0.06234211474657059,
0.011045482009649277,
-0.019467171281576157,
-0.0018523784819990396,
-0.034512218087911606,
-0.00020390903227962554,
0.05676041543483734,
-0.010367423295974731,
-0.005901078227907419,
0.033961910754442215,
0.03195721283555031,
-0.01486816257238388,
0.0022221170365810394,
0.021363770589232445,
-0.024429775774478912,
0.039858072996139526,
0.023623967543244362,
-0.02146204002201557,
0.02782989852130413,
0.023781199008226395,
0.03730307146906853,
0.031131749972701073,
0.009571440517902374,
0.036045219749212265,
0.04496808350086212,
-0.07236559689044952,
-0.03913088142871857,
-0.010436211712658405,
0.007866466417908669,
0.09944864362478256,
0.029539786279201508,
0.010681885294616222,
0.020990347489714622,
-0.045125316828489304,
0.03797130286693573,
-0.01943768933415413,
-0.0654081255197525,
0.03993669152259827,
0.022641273215413094,
-0.06108426675200462,
-0.02108861692249775,
-0.02808539941906929,
-0.0014347333926707506,
0.04237377271056175,
0.023270197212696075,
0.043474387377500534,
-0.015212105587124825,
-0.02706339582800865,
0.04803409054875374,
0.026159318163990974,
0.014347334392368793,
-0.022562658414244652,
0.019496651366353035,
0.02262161858379841,
-0.005665231496095657,
-0.020675884559750557,
-0.013286025263369083,
-0.08089537918567657,
-0.012627619318664074,
-0.022896774113178253,
-0.013492390513420105,
0.05432333052158356,
-0.0034983912482857704,
0.013187755830585957,
0.008608400821685791,
0.05868649482727051
] |
21,145 | tfields.bounding_box | __init__ | null | def __init__(
self,
mesh,
cuts,
coord_sys=None,
at_intersection="split",
delta=0.0,
parent=None,
box=None,
internal_template=None,
cut_expr=None,
):
self.parent = parent
# initialize
self.mesh = copy.deepcopy(mesh)
if self.is_root():
cuts = copy.deepcopy(cuts) # dicts are mutable
self.remaining_cuts = cuts
logging.debug(cuts)
self.delta = delta
if box is None:
vertices = np.array(self.mesh)
self.box = {
"x": [min(vertices[:, 0]) - delta, max(vertices[:, 0]) + delta],
"y": [min(vertices[:, 1]) - delta, max(vertices[:, 1]) + delta],
"z": [min(vertices[:, 2]) - delta, max(vertices[:, 2]) + delta],
}
else:
self.box = box
self.left = None
self.right = None
self.at_intersection = at_intersection
self._internal_template = internal_template
if self.is_leaf():
self._template = None
if self.is_root():
self._trim_to_box()
self.cut_expr = cut_expr
self.left_template = None
self.right_template = None
self.coord_sys = coord_sys
# start the splitting process
self._build()
| (self, mesh, cuts, coord_sys=None, at_intersection='split', delta=0.0, parent=None, box=None, internal_template=None, cut_expr=None) | [
0.034579627215862274,
0.011936673894524574,
-0.021541105583310127,
0.00277527654543519,
-0.06162996590137482,
0.025287384167313576,
-0.025636302307248116,
-0.006363165099173784,
-0.08991070091724396,
0.01639915257692337,
0.024240629747509956,
0.05156642943620682,
-0.06959998607635498,
-0.045506272464990616,
-0.08072864264249802,
-0.0052705006673932076,
-0.009870710782706738,
-0.016619522124528885,
-0.007717518601566553,
-0.013561897911131382,
-0.04062141850590706,
-0.06041793152689934,
0.04227418825030327,
0.07132621854543686,
0.0374811552464962,
-0.025140471756458282,
-0.025562845170497894,
-0.027289072051644325,
0.045763369649648666,
-0.03764643147587776,
-0.043339308351278305,
0.01179894246160984,
-0.008295987732708454,
-0.005738785490393639,
0.03184337168931961,
-0.07859840244054794,
0.0407683327794075,
0.012221317738294601,
0.01604105345904827,
0.07408083230257034,
0.018253928050398827,
-0.03790352866053581,
0.00003841399302473292,
-0.020971817895770073,
0.02855619601905346,
0.012285592034459114,
0.07099565863609314,
0.004416569136083126,
-0.039703212678432465,
0.001706714741885662,
-0.05307228863239288,
-0.07970025390386581,
0.033532869070768356,
-0.04433096945285797,
-0.03985012695193291,
0.030043689534068108,
0.08072864264249802,
0.025048650801181793,
-0.01849266141653061,
0.012698784470558167,
-0.04190690815448761,
0.05612073093652725,
0.00048291878192685544,
-0.013249707408249378,
-0.013194615021348,
-0.014333190396428108,
-0.0009589510154910386,
-0.013258890248835087,
0.0006920975283719599,
0.03428579866886139,
-0.0009199273190461099,
0.03742606192827225,
0.03386342525482178,
-0.017069444060325623,
0.057663314044475555,
-0.027968544512987137,
0.011844852939248085,
0.013157887384295464,
0.04120907187461853,
-0.003711846424266696,
-0.007001318037509918,
-0.016086963936686516,
-0.052888646721839905,
0.024240629747509956,
0.014829021878540516,
0.04106215760111809,
0.01728063076734543,
-0.016344061121344566,
0.034506168216466904,
0.010770552791655064,
-0.012258045375347137,
-0.006409075576812029,
-0.025452660396695137,
-0.03981339931488037,
-0.00029196072136983275,
0.025471026077866554,
0.03610384836792946,
-0.06662500649690628,
-0.0038426907267421484,
0.03533255308866501,
-0.009990077465772629,
0.0522642657160759,
-0.07727618515491486,
0.018630392849445343,
0.0004708673513960093,
-0.013993454165756702,
-0.01641751639544964,
-0.04598373919725418,
-0.025471026077866554,
-0.05119914934039116,
0.04488189145922661,
0.07510922104120255,
-0.034230705350637436,
0.0749623104929924,
-0.0598670095205307,
0.017060261219739914,
-0.029988596215844154,
-0.032247383147478104,
-0.011679575778543949,
-0.07397064566612244,
0.01154184527695179,
-0.03659967705607414,
-0.007726700510829687,
0.03494690731167793,
0.00533477496355772,
0.015122847631573677,
0.004226041492074728,
0.0010410157265141606,
-0.03650785610079765,
-0.044294241815805435,
0.04080506041646004,
0.01952105201780796,
-0.004659893922507763,
-0.033698149025440216,
-0.009521792642772198,
-0.0030254877638071775,
-0.0648987740278244,
0.0019729945342987776,
-0.08667861670255661,
0.021504376083612442,
0.023616250604391098,
-0.039960309863090515,
-0.01553604006767273,
-0.01589413918554783,
-0.11966056376695633,
0.036067117005586624,
-0.0035029547289013863,
-0.07602743059396744,
0.0034822949673980474,
0.023579521104693413,
-0.03904210403561592,
-0.0012648282572627068,
-0.005238363519310951,
0.012781422585248947,
-0.016344061121344566,
-0.03999703750014305,
-0.009668705984950066,
-0.05520252510905266,
0.06093212962150574,
0.025654666125774384,
-0.018878309056162834,
0.002708706771954894,
0.029437674209475517,
0.0029153029900044203,
0.0012992609990760684,
0.011899945326149464,
0.0013956725597381592,
-0.13280926644802094,
-0.043008752167224884,
-0.0053806849755346775,
-0.004485434852540493,
0.013938361778855324,
-0.07786384224891663,
0.05017075687646866,
-0.07551323622465134,
-0.01708780787885189,
0.012138678692281246,
0.034138888120651245,
-0.021798202767968178,
-0.047342684119939804,
-0.03424907103180885,
0.003140263259410858,
0.052374452352523804,
0.0372791513800621,
-0.05351302772760391,
-0.0023196169640868902,
0.017390815541148186,
-0.012056040577590466,
0.03233920410275459,
-0.00568369310349226,
-0.036067117005586624,
-0.01734490506350994,
0.0013210683828219771,
0.011955037713050842,
0.023616250604391098,
0.030319150537252426,
0.025287384167313576,
-0.037866801023483276,
-0.02368970587849617,
0.050464581698179245,
-0.049142368137836456,
-0.011009286157786846,
0.01968633010983467,
-0.03775661811232567,
0.03358796238899231,
0.07837803661823273,
0.026866698637604713,
0.06085867062211037,
0.005871925037354231,
0.032669756561517715,
-0.01682152785360813,
-0.0336797833442688,
0.01919049769639969,
0.0769089087843895,
-0.004223746247589588,
-0.032853398472070694,
-0.04436769708991051,
-0.001624076277948916,
0.02394680306315422,
-0.00022295181406661868,
0.028133820742368698,
0.0482608899474144,
-0.03351450711488724,
-0.007951661013066769,
-0.06317254900932312,
0.016766434535384178,
0.03626912459731102,
0.007588970009237528,
0.008879048749804497,
-0.049509648233652115,
-0.00018923645257018507,
-0.034230705350637436,
-0.03009878098964691,
-0.061740148812532425,
-0.04433096945285797,
0.007083956617861986,
-0.00915451068431139,
-0.02170638181269169,
0.01462701614946127,
-0.025489389896392822,
0.01953941583633423,
-0.03217392787337303,
-0.015508493408560753,
-0.048113975673913956,
0.015067755244672298,
-0.014930023811757565,
-0.01587577536702156,
0.025397568941116333,
0.032669756561517715,
0.03312886133790016,
-0.04726922884583473,
-0.017813190817832947,
-0.05656147003173828,
0.02811545692384243,
0.03456126153469086,
0.02301023341715336,
-0.028941841796040535,
-0.048040520399808884,
0.009113191626966,
0.003181582549586892,
-0.012726330198347569,
-0.0120652224868536,
0.046718303114175797,
0.05299882963299751,
0.04433096945285797,
-0.05604727566242218,
-0.004058469086885452,
-0.009067281149327755,
-0.0021153162233531475,
0.03775661811232567,
0.02872147411108017,
0.0168398916721344,
0.019741421565413475,
0.01066954992711544,
-0.016591975465416908,
-0.02604031190276146,
-0.02820727787911892,
0.027656354010105133,
0.043008752167224884,
0.06306236237287521,
0.021908387541770935,
0.013901634141802788,
-0.06126268208026886,
-0.028482738882303238,
-0.005720421206206083,
-0.031971920281648636,
0.00737319141626358,
0.0054633235558867455,
0.01726226694881916,
-0.049803476780653,
-0.07602743059396744,
0.051603157073259354,
-0.0034294980578124523,
-0.02776653878390789,
0.03915229067206383,
-0.02811545692384243,
-0.02576485089957714,
0.013286435976624489,
0.0018329680897295475,
-0.042898569256067276,
0.06412748247385025,
-0.07015091180801392,
-0.041355982422828674,
-0.03687513992190361,
-0.01245086919516325,
0.003339973045513034,
-0.012395776808261871,
0.02455282025039196,
0.09887238591909409,
0.007203323300927877,
0.024075351655483246,
0.004285724833607674,
-0.007285961881279945,
-0.013635354116559029,
0.031035350635647774,
0.0572960339486599,
0.04183344915509224,
-0.05630437284708023,
-0.0064641679637134075,
0.06934288889169693,
0.020420894026756287,
0.03169646114110947,
-0.0024034033995121717,
0.035277463495731354,
0.004508389625698328,
-0.0024837462697178125,
0.002394221257418394,
0.014434193260967731,
-0.01354353316128254,
0.06835123151540756,
-0.055826906114816666,
0.0642743930220604,
-0.017996830865740776,
-0.049509648233652115,
-0.03053952008485794,
-0.032412659376859665,
0.05318247154355049,
-0.026609599590301514,
-0.04032759368419647,
-0.05545962229371071,
0.0880008339881897,
-0.0009623942896723747,
0.02802363783121109,
0.027399256825447083,
0.005798468831926584,
-0.012928335927426815,
0.022698044776916504,
-0.021724745631217957,
-0.022257305681705475,
0.06339292228221893,
-0.04286184161901474,
-0.014250552281737328,
0.014039364643394947,
-0.019925063475966454,
0.007207914255559444,
-0.02958458662033081,
0.0031792870722711086,
-0.03733424097299576,
0.0033239044714719057,
-0.006923270877450705,
0.0825650542974472,
-0.01728063076734543,
0.011551027186214924,
0.031016986817121506,
-0.03312886133790016,
-0.10350014269351959,
0.034304164350032806,
-0.027123795822262764,
-0.016793981194496155,
-0.019319046288728714,
0.03081498295068741,
-0.06350310146808624,
-0.027913453057408333,
0.00020760056213475764,
-0.00023328162205871195,
0.018354931846261024,
-0.030870074406266212,
-0.028501104563474655,
0.004478548187762499,
-0.0407683327794075,
0.016849074512720108,
0.029547858983278275,
0.013249707408249378,
0.0036843002308160067,
-0.054541416466236115,
-0.022238941863179207,
0.00048492735368199646,
0.03390015289187431,
0.09630140662193298,
0.054431233555078506,
0.04870162904262543,
0.01988833397626877,
0.059830281883478165,
-0.03794025629758835,
-0.04991365969181061,
0.014241369441151619,
0.06713920086622238,
-0.03312886133790016,
0.01952105201780796,
0.00976052600890398,
-0.016031870618462563,
-0.016371607780456543,
-0.006188706029206514,
0.06093212962150574,
0.027895087376236916,
-0.06915925443172455,
0.04609392583370209,
0.016086963936686516,
0.038491182029247284,
0.015049390494823456,
0.027876723557710648,
-0.009085644967854023,
0.01700516976416111,
0.007263006642460823,
-0.01693171262741089,
-0.048995453864336014,
0.04462479427456856,
0.04084178805351257,
-0.03125572204589844,
-0.017372451722621918,
-0.025581208989024162,
0.051750071346759796,
0.07705581933259964,
-0.0037393926177173853,
0.03417561575770378,
0.007276779972016811,
-0.06423766911029816,
-0.02550775371491909,
-0.019208863377571106,
-0.043008752167224884,
-0.051419518887996674,
-0.0005480539985001087,
-0.010522636584937572,
0.0007093138992786407,
0.008406172506511211,
0.009278467856347561,
-0.031127171590924263,
0.013414984568953514,
0.031200628727674484,
-0.003213719930499792,
0.009879892691969872,
0.020531078800559044,
0.03217392787337303,
-0.0538068525493145,
-0.03434089198708534,
0.016894984990358353,
-0.010357360355556011,
-0.005513824988156557,
-0.07874532043933868,
-0.017473453655838966,
0.07734964787960052,
0.06306236237287521,
-0.00044705139589495957,
0.005871925037354231,
-0.0162246935069561,
-0.01700516976416111,
-0.006964589934796095,
0.01122965570539236,
-0.008273033425211906,
0.044771708548069,
-0.03720569238066673,
0.017060261219739914,
-0.030319150537252426,
0.010541001334786415,
-0.03933592885732651,
-0.04583682864904404,
0.07319935411214828,
0.0206412635743618,
-0.002166965277865529,
-0.03704041615128517,
0.004591028206050396,
-0.001855923212133348,
-0.02308369055390358,
0.03885846212506294,
0.03053952008485794,
-0.005674511194229126,
0.012166225351393223,
-0.0392257459461689,
-0.015646224841475487,
-0.032926853746175766,
-0.03955629840493202,
-0.028005272150039673,
-0.028335826471447945,
0.007974616251885891,
-0.020861633121967316,
0.013102794997394085,
-0.018685486167669296,
0.03009878098964691,
0.007285961881279945,
0.01128474809229374,
-0.04917909577488899,
-0.005803059786558151,
-0.02734416536986828,
0.02273477241396904,
0.029364217072725296,
0.04400041699409485,
0.0028395510744303465,
0.008823956362903118,
-0.0012820446863770485,
-0.02741762064397335,
-0.009191238321363926,
-0.006298890803009272,
-0.025379205122590065,
0.009778890758752823,
0.0037761207204312086,
-0.0309618953615427,
-0.005596463568508625,
0.01597677916288376,
0.03053952008485794,
-0.031182264909148216,
0.01884157955646515,
-0.08969032764434814,
0.01639915257692337,
0.023267332464456558,
0.008699998259544373,
0.02100854553282261,
-0.044551339000463486,
0.006923270877450705,
-0.04245783016085625,
0.0150953009724617,
0.02550775371491909,
-0.023046962916851044,
0.012643692083656788,
-0.0487750843167305,
0.017730550840497017,
0.024277357384562492,
-0.002929076086729765,
0.0011730077676475048,
0.0463142953813076,
-0.017234720289707184,
-0.008915777318179607,
-0.041943635791540146,
0.0037554611917585135,
0.06802067905664444,
0.009163692593574524,
0.089543417096138,
0.009898257441818714,
-0.001284340163692832,
0.005219999235123396,
-0.008341898210346699,
-0.021816566586494446,
0.03496527299284935,
0.02637086622416973,
-0.005242954473942518,
0.03797698765993118,
0.016004323959350586,
0.02697688154876232,
0.02986004762351513,
0.0020912133622914553,
-0.008934141136705875,
0.08462183177471161,
-0.012441686354577541,
-0.022496039047837257,
-0.00867245253175497,
0.022936778143048286,
0.006684537045657635,
-0.030080417171120644,
-0.07610088586807251,
-0.00863113347440958,
0.042898569256067276,
-0.013249707408249378,
0.0463142953813076,
0.03955629840493202,
0.056451283395290375,
0.0003687169519253075,
0.020769812166690826,
0.05035439878702164,
-0.010100262239575386,
0.015398308634757996,
0.011633666232228279,
0.04304547980427742,
0.029694771394133568,
0.01526976004242897,
0.028996935114264488,
0.028225641697645187,
0.0402541346848011,
0.00985234696418047,
-0.005775513593107462,
-0.051676616072654724,
-0.004086015280336142,
0.03775661811232567,
-0.03434089198708534,
-0.056892022490501404,
0.021100366488099098,
0.021026909351348877,
0.02594849281013012,
-0.05336611345410347,
0.034836724400520325,
0.06647808849811554,
0.007152822334319353,
0.021210551261901855,
0.03940938785672188,
0.0036728226114064455,
0.0392257459461689,
-0.03759133815765381,
0.016867438331246376,
-0.02170638181269169,
-0.03988685458898544,
-0.012616145424544811,
-0.05208062380552292,
-0.05351302772760391,
-0.006395302247256041,
-0.024405905976891518,
0.0734197273850441,
-0.0103206317871809,
-0.033698149025440216,
0.012423322536051273,
0.021155457943677902,
-0.023983532562851906,
-0.031623002141714096,
0.07180368155241013,
-0.07499904185533524,
0.025379205122590065,
-0.012221317738294601,
0.029639678075909615,
-0.031016986817121506,
-0.04201709106564522,
-0.025728123262524605,
0.12142352014780045,
-0.006321846041828394,
0.025930127128958702,
-0.05369666591286659,
-0.023469336330890656,
0.005017993971705437,
-0.027031974866986275,
-0.038748279213905334,
0.10981740057468414,
-0.10702605545520782,
0.011477570980787277,
0.028941841796040535,
0.018079468980431557,
-0.031090443953871727,
-0.022092027589678764,
-0.03131081163883209,
-0.003098944202065468,
0.026425959542393684,
0.019851606339216232,
-0.005601054523140192,
0.034836724400520325,
0.028501104563474655,
0.014324008487164974,
-0.03478163108229637,
0.016031870618462563,
-0.03670986369252205,
-0.03461635485291481,
-0.08197740465402603,
0.06063830107450485,
0.0049032182432711124,
0.018768124282360077,
0.04018067941069603,
0.017813190817832947,
0.09453845769166946,
-0.04752632603049278,
-0.010697095654904842,
-0.05318247154355049,
-0.0009044325561262667,
0.022716408595442772,
-0.028335826471447945,
0.03147609159350395,
0.03808717057108879,
-0.009439154528081417,
0.0047149863094091415,
0.033459413796663284,
-0.0008539312402717769,
0.013286435976624489,
-0.0352223701775074,
0.029878411442041397,
-0.0005497756646946073,
0.024075351655483246,
0.06750647723674774,
0.008075619116425514,
-0.05806732550263405,
-0.06802067905664444,
-0.019043585285544395,
-0.0336797833442688,
-0.03279830515384674,
0.06989381462335587,
-0.001167842885479331,
0.014167913235723972,
-0.006978363264352083,
0.041429441422224045,
0.03733424097299576,
-0.02723398059606552,
-0.02976822853088379,
0.050023846328258514,
0.036764953285455704,
-0.0005506364395841956,
-0.011734668165445328,
0.002853324171155691,
0.008906595408916473,
0.0359385684132576,
0.03412052243947983,
0.050464581698179245,
0.014324008487164974,
-0.02040253020823002,
-0.001876582857221365,
-0.021890023723244667,
-0.08300579339265823,
0.020622899755835533,
0.004226041492074728,
0.05590036138892174,
-0.01561867818236351,
-0.06471513211727142,
0.019814878702163696,
-0.023212239146232605,
-0.026260681450366974,
-0.02550775371491909,
-0.025636302307248116,
0.05395376309752464,
-0.050464581698179245,
0.008020526729524136,
0.04870162904262543,
0.06302563846111298,
-0.03140263259410858,
0.03463471680879593,
0.032412659376859665,
-0.003665936179459095,
0.030686432495713234,
0.028262371197342873,
-0.046644847840070724,
0.009094826877117157,
-0.022606223821640015,
0.04414732754230499,
0.02091672457754612,
0.033808331936597824,
-0.03390015289187431,
0.050538040697574615,
-0.024056987836956978,
0.030759889632463455,
-0.010541001334786415,
-0.0059040626510977745,
0.050795137882232666,
-0.00620707031339407,
-0.016793981194496155,
0.017565274611115456,
-0.047599781304597855,
0.0359385684132576,
-0.007038046605885029,
-0.022624587640166283,
0.048187434673309326,
0.021063638851046562,
-0.06629444658756256,
-0.009723798371851444,
-0.014021000824868679,
-0.05130933225154877,
0.021834930405020714,
0.022679679095745087,
0.031365904957056046,
-0.022330760955810547,
0.023230602964758873,
-0.0007999867084436119,
-0.0011867808643728495,
0.03775661811232567,
-0.02047598548233509,
-0.013736356981098652,
-0.0058443788439035416,
0.012285592034459114,
-0.017592821270227432,
-0.025911763310432434,
-0.04704885929822922,
-0.005146542564034462,
-0.016518520191311836,
0.005881107412278652,
0.028482738882303238,
-0.022532766684889793,
0.0019775854889303446,
0.053843580186367035,
0.026058677583932877
] |
21,146 | tfields.bounding_box | _build | null | def _build(self):
if not self.is_last_cut():
self._choose_next_cut()
self._split()
| (self) | [
-0.02620030753314495,
0.050103507936000824,
-0.09021960943937302,
-0.03154357150197029,
-0.03415694460272789,
0.008152224123477936,
0.000678831827826798,
-0.01812714897096157,
-0.009754370898008347,
-0.02838089130818844,
-0.006803923286497593,
0.06891313195228577,
-0.0002699721953831613,
-0.026100432500243187,
-0.01724492944777012,
0.012650719843804836,
0.0295127984136343,
-0.014515036717057228,
-0.028830325230956078,
0.048505522310733795,
-0.013224995695054531,
-0.014340256340801716,
0.003928381484001875,
0.04580892249941826,
0.03971660137176514,
0.04560917243361473,
0.014515036717057228,
-0.0021223246585577726,
-0.028963489457964897,
-0.05086921155452728,
-0.048438940197229385,
-0.02838089130818844,
0.025268148630857468,
-0.026067141443490982,
0.02696600742638111,
0.01409057155251503,
0.034256815910339355,
0.006217163056135178,
0.03605455160140991,
0.06148915737867355,
0.03260889649391174,
-0.04980388656258583,
-0.01972513645887375,
-0.012858791276812553,
-0.02721569314599037,
-0.04094838351011276,
0.06784781068563461,
0.026383409276604652,
-0.004660791717469692,
-0.031393758952617645,
-0.01787746511399746,
-0.013574555516242981,
-0.028830325230956078,
0.0031668413430452347,
-0.039217229932546616,
0.040482304990291595,
0.06421905010938644,
0.019508741796016693,
0.04357840120792389,
0.03925052285194397,
-0.009163448587059975,
0.06611665338277817,
0.021905720233917236,
-0.01675388030707836,
0.0157135259360075,
-0.011793467216193676,
-0.028514057397842407,
0.014057280495762825,
-0.019259056076407433,
0.059125468134880066,
0.018227024003863335,
0.03340788930654526,
0.013141767121851444,
0.005821827799081802,
-0.05243390426039696,
-0.0586593896150589,
-0.04331206902861595,
-0.0213064756244421,
0.08209651708602905,
-0.05539683625102043,
-0.010045669972896576,
0.06598348915576935,
-0.008289550431072712,
-0.019874947145581245,
0.04357840120792389,
0.013383129611611366,
0.02067393995821476,
0.03435669094324112,
-0.044377394020557404,
-0.0352555587887764,
-0.027432087808847427,
0.04321219399571419,
-0.0009456829284317791,
0.00344357592985034,
0.0426129512488842,
0.019758427515625954,
-0.023903202265501022,
-0.0193922221660614,
-0.04184725135564804,
-0.010295355692505836,
-0.033291369676589966,
0.003293764777481556,
-0.04038242995738983,
-0.01450671348720789,
-0.008085641078650951,
0.010195481590926647,
0.02258819341659546,
0.006404426880180836,
-0.09135151654481888,
-0.015189186669886112,
-0.007590431720018387,
0.014440130442380905,
-0.0258341021835804,
0.012542522512376308,
-0.04667449742555618,
-0.0061256117187440395,
-0.040615469217300415,
-0.006645789369940758,
0.005147677846252918,
0.0050061894580721855,
-0.012659043073654175,
-0.06029066815972328,
-0.05992446094751358,
0.004038658924400806,
-0.031909774988889694,
0.020823750644922256,
-0.0038056194316595793,
0.06019079312682152,
0.0015834206715226173,
-0.09860903024673462,
0.02721569314599037,
-0.0006954774726182222,
0.0014304884243756533,
-0.021040145307779312,
-0.01399069745093584,
-0.048372358083724976,
-0.05389872565865517,
-0.05816001817584038,
-0.049271225929260254,
0.009013637900352478,
0.01011225301772356,
-0.01546384021639824,
0.008996992371976376,
0.018027275800704956,
-0.018909497186541557,
0.03149363398551941,
0.02302098087966442,
0.004049062728881836,
0.008772275410592556,
-0.014664847403764725,
-0.014023988507688046,
-0.00018310252926312387,
-0.013957406394183636,
-0.019808363169431686,
0.05879255756735802,
-0.04324548691511154,
-0.005855119321495295,
-0.005414008628576994,
0.027748355641961098,
-0.028414182364940643,
0.003928381484001875,
-0.05809343606233597,
-0.029179884120821953,
-0.015721848234534264,
-0.05146845430135727,
0.05126870796084404,
-0.019924884662032127,
-0.02791481278836727,
-0.041114840656518936,
0.04377814754843712,
0.06222156807780266,
0.028846969828009605,
-0.01675388030707836,
0.04171408340334892,
-0.13163407146930695,
0.022088821977376938,
-0.026183661073446274,
0.02448580041527748,
-0.014956147409975529,
-0.004710728768259287,
-0.03828507289290428,
-0.03334130346775055,
0.013200027868151665,
-0.021023498848080635,
0.015280737541615963,
-0.02265477553009987,
0.011676947586238384,
-0.03528885170817375,
0.006391942501068115,
0.01731151156127453,
-0.04527626186609268,
-0.017544550821185112,
0.011785143986344337,
-0.026366762816905975,
0.016354383900761604,
-0.013041893020272255,
0.016362708061933517,
0.045209676027297974,
0.001272354507818818,
-0.010719820857048035,
-0.03974989429116249,
0.02658315747976303,
0.06242131441831589,
-0.04617512598633766,
0.0307279322296381,
0.06931262463331223,
-0.0333745963871479,
0.05666190758347511,
0.05040312930941582,
0.004897992592304945,
-0.05030325800180435,
-0.013557909987866879,
0.015430549159646034,
0.03595467656850815,
0.018227024003863335,
-0.04527626186609268,
-0.007927507162094116,
-0.006075674667954445,
-0.005106063559651375,
-0.021988948807120323,
0.006495978217571974,
0.02876374125480652,
0.014556651003658772,
0.01151049043983221,
-0.038018740713596344,
-0.02258819341659546,
0.056262411177158356,
-0.006317037157714367,
0.026866134256124496,
-0.016379352658987045,
-0.033291369676589966,
-0.08788920938968658,
-0.029812419787049294,
-0.05076933652162552,
-0.023753391578793526,
0.024186179041862488,
-0.04567575827240944,
-0.007419813424348831,
0.015572037547826767,
0.024668904021382332,
-0.018659811466932297,
-0.02976248227059841,
-0.026499928906559944,
0.006300391163676977,
-0.009562944993376732,
0.009188417345285416,
-0.023187438026070595,
0.045709047466516495,
0.03825177997350693,
0.04257965832948685,
-0.0027611027471721172,
-0.017078472301363945,
-0.05895901098847389,
-0.03315820172429085,
0.0029754159040749073,
-0.015056021511554718,
-0.014748075976967812,
-0.05582962557673454,
0.03828507289290428,
-0.020024757832288742,
0.02099020779132843,
0.03478948026895523,
0.03267547860741615,
0.04897160083055496,
-0.060090918093919754,
0.009521331638097763,
0.016021471470594406,
-0.022604838013648987,
-0.013691075146198273,
0.029729191213846207,
0.06255447864532471,
0.07277493178844452,
-0.01737809367477894,
0.005971638951450586,
-0.019225765019655228,
0.014931178651750088,
0.03354105353355408,
-0.0020578226540237665,
-0.05126870796084404,
-0.015746816992759705,
0.07244201749563217,
0.04091509059071541,
-0.013466358184814453,
0.0017800477799028158,
-0.032342564314603806,
-0.010153867304325104,
0.024319345131516457,
-0.025517834350466728,
0.020058048889040947,
0.005730276927351952,
-0.06258777529001236,
0.04734032601118088,
0.06019079312682152,
0.05602937191724777,
0.11259140819311142,
-0.07344076037406921,
0.029879001900553703,
-0.013574555516242981,
0.0075155263766646385,
-0.01697859726846218,
-0.023570287972688675,
-0.0935487449169159,
-0.03395719453692436,
-0.014140508137643337,
-0.037386205047369,
-0.006537592504173517,
0.02232186309993267,
-0.041048258543014526,
0.0488717295229435,
-0.06222156807780266,
0.014648201875388622,
0.03941697999835014,
0.06688235700130463,
0.00667908089235425,
0.014323610812425613,
-0.013483003713190556,
-0.008189676329493523,
0.005260036326944828,
0.0009222749504260719,
0.06242131441831589,
-0.03151027858257294,
-0.002228440949693322,
0.016995243728160858,
-0.019625261425971985,
-0.003462302265688777,
0.0029462859965860844,
-0.011602041311562061,
0.009662820026278496,
-0.06951237469911575,
-0.005309973377734423,
-0.01979171857237816,
0.01972513645887375,
0.025218211114406586,
0.010811371728777885,
0.005314134526997805,
0.017977338284254074,
0.0053973631002008915,
-0.018110504373908043,
-0.010486780665814877,
-0.09055252373218536,
0.037952158600091934,
-0.023819973692297935,
-0.00333121744915843,
0.052200865000486374,
0.10599971562623978,
0.023254020139575005,
0.11465547233819962,
-0.021006852388381958,
-0.004698244389146566,
-0.02843082882463932,
0.0003362948482390493,
-0.02099020779132843,
0.011002796702086926,
0.019442159682512283,
0.05579633265733719,
-0.021839138120412827,
0.010395229794085026,
-0.03325807675719261,
-0.006092320196330547,
-0.024852005764842033,
0.09368190914392471,
-0.011377325281500816,
-0.0009696111083030701,
0.04477689042687416,
0.005272520240396261,
-0.023753391578793526,
-0.02295439876616001,
0.035022519528865814,
-0.020440900698304176,
-0.032908517867326736,
0.008788920938968658,
-0.02849741093814373,
0.05070275440812111,
0.03052818402647972,
-0.008289550431072712,
0.029429569840431213,
-0.01688704639673233,
-0.04058217629790306,
-0.0018559937598183751,
-0.01870974898338318,
-0.039916351437568665,
0.0041260491125285625,
-0.00957126822322607,
0.0317932553589344,
-0.03688683733344078,
-0.008418554440140724,
0.010004055686295033,
-0.029346341267228127,
0.06897971779108047,
0.0061256117187440395,
0.032226044684648514,
0.023254020139575005,
-0.012650719843804836,
0.027182402089238167,
-0.0048563783057034016,
0.016645684838294983,
0.06318701803684235,
-0.03595467656850815,
-0.0005245991633273661,
0.05739431828260422,
-0.0096961110830307,
-0.01494782418012619,
-0.012475940398871899,
0.09574597328901291,
0.02874709665775299,
-0.05349922925233841,
0.027964748442173004,
0.03255895897746086,
-0.007382360752671957,
-0.03462302312254906,
-0.04314561188220978,
-0.026633094996213913,
-0.011543781496584415,
0.005663693882524967,
0.005543012637645006,
-0.02067393995821476,
0.0058842492289841175,
0.006949573289602995,
0.030960971489548683,
-0.028064623475074768,
-0.016379352658987045,
0.06019079312682152,
0.04803944379091263,
0.056961528956890106,
-0.022488318383693695,
0.05256706848740578,
-0.011951601132750511,
-0.0010715659009292722,
-0.006500139832496643,
-0.01052839495241642,
-0.04744020104408264,
0.005189292132854462,
-0.09048593789339066,
0.02195565775036812,
-0.018343543633818626,
-0.030112043023109436,
-0.050736043602228165,
-0.0018913658568635583,
0.048572104424238205,
-0.013874177820980549,
-0.028414182364940643,
0.015680234879255295,
0.017477968707680702,
-0.01246761716902256,
0.023703454062342644,
-0.00827290490269661,
0.015771785750985146,
-0.020690584555268288,
-0.08462665975093842,
-0.04457714036107063,
-0.0009368399041704834,
0.04421093687415123,
-0.003510158509016037,
0.05023667588829994,
0.02416953258216381,
-0.024835361167788506,
-0.08202993124723434,
-0.012550845742225647,
0.0206073559820652,
0.010744788683950901,
0.014648201875388622,
0.03568834811449051,
0.03009539656341076,
0.08828870952129364,
0.01011225301772356,
-0.03728633373975754,
0.018743040040135384,
0.007036963012069464,
-0.06312043219804764,
0.026732968166470528,
0.026633094996213913,
-0.024602320045232773,
0.025983912870287895,
-0.02378668263554573,
0.011152608320116997,
-0.044244229793548584,
0.06838046759366989,
0.016079731285572052,
0.031127428635954857,
-0.020690584555268288,
-0.030012167990207672,
-0.027049235999584198,
-0.08149726688861847,
0.034822769463062286,
-0.08669072389602661,
0.008763952180743217,
-0.04527626186609268,
-0.007399006746709347,
-0.02518492005765438,
-0.027132464572787285,
-0.05942509323358536,
-0.008788920938968658,
-0.02327066659927368,
-0.00048246473306789994,
0.025085045024752617,
0.05316631495952606,
0.031393758952617645,
0.02227192558348179,
0.03167673572897911,
-0.03435669094324112,
-0.011552104726433754,
0.0011506328592076898,
-0.06578374654054642,
0.004286263603717089,
-0.00017347923130728304,
-0.017960693687200546,
-0.009554622694849968,
0.019958175718784332,
-0.08123093843460083,
-0.030078750103712082,
0.053465936332941055,
-0.09454748779535294,
-0.03582151234149933,
0.03224268928170204,
0.0193922221660614,
-0.010328646749258041,
-0.027082527056336403,
0.017161700874567032,
-0.025484541431069374,
0.047240450978279114,
0.0009696111083030701,
0.004714889917522669,
0.015921596437692642,
-0.05389872565865517,
-0.0023012657184153795,
0.01767771691083908,
0.03357434645295143,
0.0008785800309851766,
-0.003936704248189926,
0.008664078079164028,
0.0026383409276604652,
-0.03217610716819763,
0.081697016954422,
0.07710281014442444,
0.0234038308262825,
0.0328252874314785,
0.027132464572787285,
-0.005875926464796066,
0.006475171074271202,
-0.021006852388381958,
-0.028131205588579178,
-0.03905077651143074,
0.04171408340334892,
-0.04610854387283325,
-0.04657462239265442,
0.062188275158405304,
0.0677812248468399,
-0.001148552168160677,
0.05692823976278305,
-0.01224290020763874,
0.02125653810799122,
0.08143068850040436,
0.009163448587059975,
0.032975099980831146,
0.04231332987546921,
-0.04441068321466446,
0.02443586476147175,
-0.016654007136821747,
0.03645404800772667,
0.01431528851389885,
-0.0003563216596376151,
0.02295439876616001,
0.029346341267228127,
-0.00795663706958294,
-0.013949083164334297,
0.02982906624674797,
-0.030295144766569138,
0.048572104424238205,
-0.004652468487620354,
0.0057635679841041565,
0.009937473572790623,
0.002407382009550929,
-0.027448732405900955,
-0.03077786974608898,
0.01826031506061554,
-0.020257797092199326,
0.0015688557177782059,
-0.011660302057862282,
-0.05882584676146507,
-0.001997482031583786,
-0.002856815466657281,
0.0011475118808448315,
0.0013597443467006087,
-0.01711176335811615,
-0.00418847007676959,
0.017611132934689522,
-0.07916687428951263,
-0.0176277793943882,
0.01736144907772541,
-0.0336742177605629,
0.038950901478528976,
0.06378626078367233,
0.012559168972074986,
-0.02123989351093769,
-0.02232186309993267,
-0.0005576304392889142,
-0.026499928906559944,
-0.05433151125907898,
-0.06238802522420883,
-0.01384088583290577,
-0.022221988067030907,
0.013607846572995186,
-0.08109777420759201,
0.09820953756570816,
0.0010169472079724073,
0.012559168972074986,
0.013957406394183636,
-0.0010023822542279959,
-0.051035668700933456,
0.0014689816161990166,
0.04014939069747925,
0.0137992724776268,
0.026167014613747597,
-0.012950342148542404,
-0.08788920938968658,
-0.030711287632584572,
0.008418554440140724,
-0.034057069569826126,
0.09268316626548767,
-0.021289829164743423,
0.029562734067440033,
-0.0050353193655610085,
-0.030677994713187218,
0.022288570180535316,
-0.056961528956890106,
-0.04218016192317009,
0.04880514368414879,
-0.06605007499456406,
0.0178108811378479,
0.05806014686822891,
0.042779408395290375,
-0.03532214090228081,
0.010570009239017963,
-0.02728227525949478,
-0.03592138737440109,
0.07969953864812851,
0.04367827624082565,
0.005309973377734423,
0.016204573214054108,
-0.03275870531797409,
-0.0016718509141355753,
-0.01409057155251503,
0.044244229793548584,
-0.05156832933425903,
-0.009196740575134754,
-0.09820953756570816,
-0.005285004619508982,
0.010994474403560162,
-0.03041166439652443,
0.008872149512171745,
-0.013516295701265335,
0.03602125868201256,
0.003081532195210457,
0.016113022342324257,
0.021606096997857094,
-0.028896907344460487,
0.030644703656435013,
0.018809622153639793,
0.0012286595301702619,
-0.013982374221086502,
0.025301439687609673,
0.03275870531797409,
0.0474734902381897,
-0.055063921958208084,
-0.05106895789504051,
0.029945585876703262,
0.02010798640549183,
-0.01864316686987877,
-0.03092768043279648,
0.015380611643195152,
0.00569282379001379,
-0.08535906672477722,
-0.03891760855913162,
-0.01870974898338318,
-0.006262938492000103,
-0.03452314808964729,
0.017344802618026733,
0.05163491144776344,
0.045709047466516495,
-0.01561365183442831,
0.0016302366275340319,
0.004184308927506208,
-0.02207217738032341,
-0.05349922925233841,
0.07423975318670273,
0.039849769324064255,
-0.05196782574057579,
-0.020890332758426666,
0.020723877474665642,
0.008747306652367115,
0.03347447142004967,
0.01612134464085102,
0.035588473081588745,
0.03415694460272789,
-0.020457545295357704,
0.028663868084549904,
-0.015597006306052208,
-0.0893540307879448,
0.022738004103302956,
-0.008922087028622627,
0.08908770233392715,
-0.020640648901462555,
-0.039150647819042206,
-0.03462302312254906,
-0.0185100007802248,
0.015438871458172798,
-0.027199048548936844,
0.023753391578793526,
0.009521331638097763,
0.01774429902434349,
0.06838046759366989,
0.08429374545812607,
-0.06415246427059174,
0.012459294870495796,
-0.006292068399488926,
-0.0021847460884600878,
-0.04993705078959465,
0.043611690402030945,
-0.005950831808149815,
-0.022105468437075615,
0.030561475083231926,
0.04670779034495354,
0.03452314808964729,
-0.007270002271980047,
0.03152692690491676,
0.053432647138834,
0.021739263087511063,
-0.021339766681194305,
0.0017894110642373562,
-0.027948103845119476,
-0.044876765459775925,
-0.016903692856431007,
-0.019442159682512283,
-0.028264371678233147,
0.016395999118685722,
-0.05572975054383278,
0.05965813249349594,
0.003863879479467869,
0.015505454502999783,
-0.03360763564705849,
-0.04094838351011276,
-0.06971212476491928,
0.00858917273581028,
0.06997845321893692,
-0.033308014273643494,
0.0058800880797207355,
0.05106895789504051,
-0.02939627878367901,
0.005959155037999153,
0.005888410843908787,
0.017844174057245255,
0.021472932770848274,
0.009729402139782906,
0.02017456851899624,
-0.015180863440036774,
-0.026050494983792305,
0.03994964063167572,
0.04497663676738739,
0.018726393580436707,
-0.03758595511317253,
0.03210952505469322,
-0.03535543382167816,
0.02137305773794651,
0.049337808042764664,
-0.0020900736562907696,
0.028830325230956078,
0.032292626798152924,
-0.0074239750392735004
] |
21,147 | tfields.bounding_box | _choose_next_cut |
Set self.cut_expr by choosing the dimension with the most remaining
cuts. Remove that cut from remaining cuts
| def _choose_next_cut(self):
"""
Set self.cut_expr by choosing the dimension with the most remaining
cuts. Remove that cut from remaining cuts
"""
largest = 0
for key in self.remaining_cuts:
if len(self.remaining_cuts[key]) > largest:
largest = len(self.remaining_cuts[key])
largest_key = key
median = sorted(self.remaining_cuts[largest_key])[
int(0.5 * (len(self.remaining_cuts[largest_key]) - 1))
]
# pop median cut from remaining cuts
self.remaining_cuts[largest_key] = [
x for x in self.remaining_cuts[largest_key] if x != median
]
self.cut_expr = {largest_key: median}
| (self) | [
-0.018624158576130867,
0.01761721447110176,
-0.044202253222465515,
-0.02442484349012375,
0.014579170383512974,
0.010413693264126778,
0.06940166652202606,
-0.0059814187698066235,
-0.021033938974142075,
-0.008098582737147808,
-0.0460267998278141,
0.0703311562538147,
-0.027041176334023476,
-0.044994037598371506,
-0.015663571655750275,
-0.0006288019940257072,
0.06795579940080643,
0.028452618047595024,
0.014880392700433731,
0.04327276721596718,
0.0020267972722649574,
-0.0110591696575284,
-0.03797125071287155,
-0.008343864232301712,
0.0006815159576945007,
0.04265310987830162,
0.04823002964258194,
-0.01895119994878769,
-0.028676383197307587,
-0.05590689927339554,
-0.056147877126932144,
0.004995990544557571,
0.012513644061982632,
0.0058867488987743855,
0.004040685016661882,
-0.007065819576382637,
0.07367042452096939,
0.01416606456041336,
0.010869829915463924,
0.006424645893275738,
-0.01821105368435383,
-0.00228498806245625,
0.007289585191756487,
-0.03600900247693062,
-0.022049488499760628,
0.0329967737197876,
0.03408117592334747,
0.050984062254428864,
0.00944978091865778,
0.03838435560464859,
-0.020775748416781425,
-0.03418445214629173,
-0.009036676026880741,
0.04354817047715187,
-0.03470083326101303,
0.03428772836923599,
0.047679223120212555,
-0.05074308440089226,
0.017453692853450775,
0.03268694505095482,
0.014191883616149426,
0.04175804927945137,
0.06007237732410431,
-0.015043913386762142,
-0.016326259821653366,
-0.021360980346798897,
-0.046508755534887314,
0.0496070459485054,
-0.06399687379598618,
0.016713546589016914,
0.01833154261112213,
0.0018266994738951325,
0.04513173922896385,
-0.0001883985532913357,
-0.022806847468018532,
-0.08730289340019226,
-0.01466523390263319,
-0.056526556611061096,
0.06984920054674149,
-0.037248317152261734,
0.031981226056814194,
0.02201506309211254,
0.03831550478935242,
-0.026714134961366653,
0.011455061845481396,
0.002046161564067006,
0.027041176334023476,
0.031103376299142838,
0.011171052232384682,
-0.032153353095054626,
0.012642739340662956,
0.03368528559803963,
0.035664744675159454,
0.021808510646224022,
-0.0014243521727621555,
0.049469344317913055,
-0.0352860651910305,
-0.05311844125390053,
-0.013124695047736168,
-0.06082973629236221,
0.010146895423531532,
0.029605871066451073,
-0.015784060582518578,
-0.009475599974393845,
0.024080589413642883,
0.029261616989970207,
0.022565869614481926,
0.01203168835490942,
-0.11422357708215714,
0.01613692007958889,
0.0037545235827565193,
0.013107482343912125,
-0.06155266985297203,
0.04802347719669342,
0.0001258679840248078,
0.02521662786602974,
-0.028728021308779716,
-0.02411501482129097,
0.021137215197086334,
0.024287141859531403,
-0.02521662786602974,
-0.06950494647026062,
-0.04523501545190811,
0.015327922999858856,
-0.015379561111330986,
0.012599707581102848,
0.0608641617000103,
0.03731716796755791,
-0.02495843730866909,
-0.02848704345524311,
0.05291188880801201,
-0.04086298495531082,
-0.017987286671996117,
0.028676383197307587,
-0.021722447127103806,
-0.02017330192029476,
-0.032463181763887405,
-0.021051151677966118,
-0.005275697447359562,
-0.0038384355138987303,
0.01800450123846531,
0.02053476870059967,
-0.019088901579380035,
0.0317058227956295,
-0.0026077264919877052,
-0.0118251359090209,
-0.014544744975864887,
-0.020569194108247757,
0.06224117800593376,
-0.008072763681411743,
-0.06454768031835556,
0.006088998168706894,
-0.011756284162402153,
-0.021309342235326767,
0.08275873214006424,
-0.008434230461716652,
0.0008773105801083148,
-0.011248509399592876,
-0.062413305044174194,
-0.015216040425002575,
0.008206161670386791,
-0.04444323107600212,
-0.010818191803991795,
-0.025767434388399124,
-0.053841374814510345,
-0.007207824382930994,
0.02554366923868656,
-0.02411501482129097,
-0.054047927260398865,
0.04984802380204201,
0.024614183232188225,
0.007883423939347267,
-0.026576433330774307,
0.005327335558831692,
-0.09825018048286438,
0.06382475048303604,
-0.039417117834091187,
-0.018968412652611732,
-0.018469244241714478,
-0.023047825321555138,
-0.017479512840509415,
-0.05883306264877319,
0.00606748228892684,
-0.031516481190919876,
-0.02421829104423523,
-0.00842562410980463,
0.04285966232419014,
-0.01613692007958889,
0.024734672158956528,
0.03344430774450302,
-0.04027775302529335,
-0.018830711022019386,
-0.014785722829401493,
-0.02821164019405842,
0.00960469525307417,
-0.034563131630420685,
-0.022548656910657883,
0.0524299293756485,
0.03518278896808624,
-0.009518631733953953,
-0.06857545673847198,
0.027781322598457336,
0.04058758169412613,
0.0017083620186895132,
0.07277536392211914,
0.041723623871803284,
0.0003703423426486552,
0.062000200152397156,
0.02332322858273983,
0.05897076427936554,
-0.09047003090381622,
0.0018342300318181515,
0.0411728136241436,
0.023787973448634148,
0.01426934078335762,
-0.001520097954198718,
-0.019605282694101334,
-0.005056235007941723,
0.017970073968172073,
-0.03659423440694809,
-0.02385682426393032,
-0.004146112594753504,
0.062103476375341415,
0.04313506558537483,
0.01644674874842167,
-0.033616434782743454,
0.05332499369978905,
-0.017935648560523987,
0.056251153349876404,
-0.023254377767443657,
0.0016179952071979642,
-0.0646853819489479,
0.002971345093101263,
-0.058419957756996155,
0.007100244984030724,
0.06165594607591629,
-0.05150044336915016,
-0.03134435415267944,
0.011119414120912552,
0.014673840254545212,
-0.044890761375427246,
-0.04096626117825508,
-0.03986464813351631,
0.037041764706373215,
-0.06592469662427902,
0.01953643187880516,
-0.03779912367463112,
0.021033938974142075,
0.0036856727674603462,
0.048367731273174286,
0.004227873403578997,
-0.02426992915570736,
-0.03745486959815025,
-0.03597457334399223,
0.05332499369978905,
0.00606748228892684,
-0.04337604343891144,
-0.014312372542917728,
0.011954231187701225,
-0.030707484111189842,
0.0322222039103508,
-0.00031520784250460565,
0.01984626054763794,
-0.0018331542378291488,
-0.06788694858551025,
0.028659170493483543,
0.00238826428540051,
0.002831491641700268,
0.002596968552097678,
-0.010887042619287968,
0.009208803065121174,
0.06606239825487137,
0.007130367215722799,
-0.039933498948812485,
-0.023082250729203224,
0.008046944625675678,
0.011971443891525269,
0.02943374402821064,
-0.020620832219719887,
-0.026283815503120422,
0.03211892768740654,
-0.023099463433027267,
-0.0488496869802475,
0.06038220599293709,
-0.03086239844560623,
0.011016137897968292,
0.00843853410333395,
-0.047059565782547,
0.03845320641994476,
0.057249490171670914,
-0.05143159255385399,
0.010603033006191254,
0.04179247468709946,
0.020035600289702415,
0.045785821974277496,
-0.029554232954978943,
0.006885086186230183,
-0.05287746340036392,
-0.008666601963341236,
0.04492518678307533,
0.003356479573994875,
-0.06919511407613754,
-0.0749097391963005,
0.0008262103656306863,
0.05060538277029991,
0.03645653277635574,
0.012264059856534004,
-0.036938488483428955,
0.06375589966773987,
-0.0004663570143748075,
0.030707484111189842,
0.00671295914798975,
0.04853985831141472,
0.014398436062037945,
0.029089489951729774,
-0.011937018483877182,
-0.0034683621488511562,
-0.00966493971645832,
0.024493694305419922,
0.06644108146429062,
0.010938680730760098,
0.01624019630253315,
-0.05879863724112511,
0.027454281225800514,
0.0009413203806616366,
-0.011343179270625114,
-0.04378914833068848,
0.009682152420282364,
-0.020087238401174545,
-0.0099747683852911,
-0.08627013117074966,
0.03542376682162285,
-0.015568900853395462,
0.010869829915463924,
0.01556029450148344,
0.009157164953649044,
0.041517071425914764,
0.013400099240243435,
-0.004307481925934553,
-0.03483853489160538,
0.009845673106610775,
-0.05738719180226326,
0.02621496468782425,
0.06478866189718246,
0.09191589802503586,
0.04334161803126335,
0.09652891010046005,
-0.03542376682162285,
0.03134435415267944,
0.0020418583881109953,
-0.0006976528675295413,
-0.025939561426639557,
0.041138388216495514,
-0.001509340014308691,
0.056147877126932144,
0.04007120057940483,
0.016076676547527313,
-0.011833742260932922,
-0.03969252109527588,
-0.027505919337272644,
0.09976489841938019,
-0.0099747683852911,
-0.015663571655750275,
0.03205007687211037,
0.004354816861450672,
0.01729017309844494,
-0.06699188798666,
0.026869049295783043,
-0.009406749159097672,
-0.020293790847063065,
-0.02232489176094532,
-0.05814455449581146,
0.030896823853254318,
0.0460267998278141,
-0.01389926765114069,
0.038143377751111984,
-0.06620009988546371,
-0.004436577204614878,
0.019140539690852165,
0.01795286126434803,
-0.007435893174260855,
0.019071688875555992,
-0.04812675341963768,
0.07725066691637039,
-0.08778484910726547,
0.027023963630199432,
-0.05621672794222832,
-0.08351609855890274,
0.07635560631752014,
0.006760294083505869,
0.041895750910043716,
-0.032256629317998886,
0.03048371896147728,
0.03590572252869606,
-0.010594426654279232,
0.02015608921647072,
-0.006536528468132019,
-0.039141714572906494,
-0.030156677588820457,
0.04089741036295891,
-0.003007922088727355,
0.0037652815226465464,
-0.026628071442246437,
0.07064098119735718,
0.03717946633696556,
-0.0347868986427784,
0.009458387270569801,
0.0636870488524437,
0.00418699299916625,
-0.010603033006191254,
-0.032514818012714386,
-0.0406564325094223,
0.028263278305530548,
0.005447824485599995,
0.023151101544499397,
-0.01634347252547741,
-0.024734672158956528,
0.01007804460823536,
0.03096567466855049,
-0.04785135015845299,
0.0015555991558358073,
-0.0056888023391366005,
0.0009472372476011515,
-0.03328939154744148,
-0.07284421473741531,
-0.026025624945759773,
0.013400099240243435,
-0.014088607393205166,
-0.03618112951517105,
0.0037136434111744165,
-0.0644444078207016,
0.007156186271458864,
-0.039726946502923965,
-0.00971657782793045,
0.012109145522117615,
-0.002145134611055255,
-0.062103476375341415,
0.02258308231830597,
0.007986700162291527,
-0.04213672876358032,
-0.02554366923868656,
0.05070865899324417,
-0.005426308605819941,
-0.010671883821487427,
-0.012023082002997398,
0.001042983029037714,
-0.0017062104307115078,
0.020724108442664146,
-0.11002367734909058,
-0.05005457624793053,
0.00907970778644085,
-0.0314476303756237,
-0.019656920805573463,
0.02117164060473442,
0.05084636062383652,
-0.04165477305650711,
-0.10093536227941513,
0.01910611428320408,
0.04358259588479996,
0.018142202869057655,
0.04595794901251793,
0.05032997950911522,
-0.005172420758754015,
0.03418445214629173,
0.017040587961673737,
0.04089741036295891,
0.02390846237540245,
0.026094475761055946,
-0.007207824382930994,
-0.00041391202830709517,
0.04031217843294144,
0.013727140612900257,
-0.02611168846487999,
0.004578582476824522,
0.026077263057231903,
-0.022996187210083008,
0.04378914833068848,
0.042308855801820755,
0.05996910110116005,
0.007156186271458864,
0.009458387270569801,
-0.03344430774450302,
-0.03645653277635574,
-0.008507384918630123,
-0.07656215876340866,
0.03285907208919525,
-0.09646005928516388,
-0.0041288998909294605,
0.00418699299916625,
0.01769467070698738,
-0.029760785400867462,
-0.0006546211079694331,
-0.002659364603459835,
0.022238828241825104,
0.005985721945762634,
0.026232177391648293,
0.06530503928661346,
0.016481174156069756,
0.0856504738330841,
-0.004707677755504847,
0.00488410796970129,
0.014011150225996971,
-0.05387580022215843,
-0.0008095355005934834,
-0.0026980931870639324,
-0.021997850388288498,
-0.041723623871803284,
0.0301738902926445,
-0.040828559547662735,
-0.026507582515478134,
0.07573594897985458,
-0.029020637273788452,
-0.008916186168789864,
0.017884010449051857,
0.03316890075802803,
-0.01858973316848278,
0.010413693264126778,
0.02385682426393032,
0.036628659814596176,
-0.002195697044953704,
-0.047093991190195084,
-0.036525383591651917,
0.007225037086755037,
0.023202739655971527,
-0.00723794661462307,
0.005654376931488514,
0.034150026738643646,
-0.016739366576075554,
-0.004032078664749861,
0.012332910671830177,
-0.04179247468709946,
0.036043427884578705,
0.02316831424832344,
0.06506406515836716,
0.03184352442622185,
0.04334161803126335,
-0.030982887372374535,
-0.02268635854125023,
0.042997363954782486,
-0.0012296333443373442,
-0.02370190992951393,
-0.0490906648337841,
0.059521570801734924,
0.006846357602626085,
-0.011231296695768833,
0.05570034682750702,
0.0060976045206189156,
0.00966493971645832,
0.039038438349962234,
-0.008890367113053799,
0.04110396280884743,
0.08089976012706757,
0.03859090805053711,
-0.0657181441783905,
0.02964029647409916,
0.00043784844456240535,
0.031103376299142838,
-0.05298073962330818,
0.04485633596777916,
-0.0006594621809199452,
-0.02569858357310295,
0.011730465106666088,
0.11773497611284256,
-0.012203815393149853,
0.024338779971003532,
-0.043617021292448044,
-0.028676383197307587,
-0.01389926765114069,
-0.00939814280718565,
0.01810777746140957,
-0.009880098514258862,
0.01805613934993744,
-0.005895355250686407,
0.031103376299142838,
-0.03001897595822811,
-0.03294513747096062,
0.059005189687013626,
-0.020138876512646675,
-0.03174024820327759,
-0.013925086706876755,
-0.002332322997972369,
-0.007762934546917677,
0.04774807393550873,
-0.023994525894522667,
-0.056939661502838135,
0.04144821688532829,
-0.06471981108188629,
-0.0110591696575284,
-0.02984684891998768,
0.015999218448996544,
0.05019227787852287,
0.04557926952838898,
-0.022651933133602142,
-0.02158474549651146,
-0.008154523558914661,
-0.0013436676235869527,
-0.024820735678076744,
-0.017384842038154602,
-0.04513173922896385,
-0.0015512959798797965,
-0.03817780315876007,
-0.03927941620349884,
-0.02984684891998768,
0.07731951773166656,
0.0039675310254096985,
0.02475188486278057,
-0.0068162353709340096,
-0.014467286877334118,
-0.016756579279899597,
-0.0259567741304636,
-0.014708265662193298,
0.06640665233135223,
0.01858973316848278,
0.02600841224193573,
-0.05070865899324417,
-0.026094475761055946,
0.023994525894522667,
-0.044890761375427246,
0.016145527362823486,
-0.013159121386706829,
-0.02516498975455761,
0.02459697052836418,
0.026989538222551346,
-0.039244990795850754,
0.005469340365380049,
-0.06830005347728729,
0.044994037598371506,
-0.07511629164218903,
-0.002213985426351428,
0.04158592224121094,
-0.007044303696602583,
-0.022359317168593407,
0.009071101434528828,
-0.06740499287843704,
-0.033513158559799194,
0.05143159255385399,
0.04058758169412613,
0.0009348656167276204,
-0.019605282694101334,
-0.05790357291698456,
0.04382357373833656,
0.021946212276816368,
0.015938974916934967,
0.013563619926571846,
-0.0027346701826900244,
-0.07869653403759003,
-0.01287511084228754,
0.04313506558537483,
-0.010706309229135513,
0.017075013369321823,
-0.03134435415267944,
0.026765773072838783,
0.01920939050614834,
-0.0027820051182061434,
0.024493694305419922,
-0.04795462638139725,
0.032669734209775925,
0.034993451088666916,
0.017884010449051857,
-0.03979579731822014,
0.05477086082100868,
-0.0051896339282393456,
-0.011515306308865547,
-0.04592352360486984,
0.005387580022215843,
-0.011377604678273201,
-0.005206846632063389,
-0.0020493888296186924,
-0.06926396489143372,
0.00006101773033151403,
0.046612031757831573,
-0.06626895070075989,
-0.002246259246021509,
-0.049779172986745834,
-0.03676636144518852,
-0.03907286375761032,
0.0014103668509051204,
0.0365598089993,
0.01556029450148344,
-0.02649036981165409,
0.016756579279899597,
-0.012883717194199562,
-0.0375925712287426,
0.004531247541308403,
0.06227560341358185,
0.06788694858551025,
-0.03308283910155296,
-0.026920687407255173,
-0.03934826701879501,
0.026232177391648293,
0.02222161553800106,
-0.05208567529916763,
0.02649036981165409,
0.004841076210141182,
-0.05835110694169998,
-0.01400254387408495,
-0.03218777850270271,
0.019174965098500252,
0.03160254657268524,
-0.012040294706821442,
0.07848998159170151,
0.01094728708267212,
-0.025715796276926994,
-0.0649607852101326,
-0.05866093561053276,
0.00019216383225284517,
-0.01905447617173195,
0.02201506309211254,
0.029571445658802986,
0.004057897720485926,
0.01654141955077648,
0.05611345171928406,
-0.06564929336309433,
0.02189457416534424,
-0.030552569776773453,
0.04134494066238403,
-0.0519135482609272,
-0.0022720785345882177,
-0.03483853489160538,
-0.020603619515895844,
0.02470024675130844,
0.0006336430669762194,
0.03363364562392235,
0.04323834180831909,
-0.012539463117718697,
0.05948714539408684,
0.06478866189718246,
-0.008378289639949799,
-0.05032997950911522,
-0.04647433012723923,
-0.02759198285639286,
0.04774807393550873,
0.01466523390263319,
-0.01136899832636118,
0.004483912140130997,
-0.014123032800853252,
0.07959159463644028,
-0.011833742260932922,
0.040828559547662735,
0.003483423264697194,
-0.06224117800593376,
-0.020517555996775627,
0.009647727012634277,
0.026834623888134956,
-0.013770172372460365,
-0.023409292101860046,
-0.008089976385235786,
-0.03817780315876007,
0.04523501545190811,
-0.027247728779911995,
0.012462005950510502,
0.01410582009702921,
0.022548656910657883,
0.004344059154391289,
-0.03879746049642563,
-0.03649095818400383,
0.022617507725954056,
0.01889956183731556,
0.027316579595208168,
-0.015018094331026077,
-0.009277653880417347,
-0.024941224604845047,
0.03058699518442154,
0.027781322598457336,
-0.04812675341963768,
0.011128020472824574,
0.008778484538197517,
-0.04027775302529335
] |
21,148 | tfields.bounding_box | _convert_field_index |
Recursively getting the fields index from root
Args:
index (int): field index on leaf
(index with respect to parent node, not to root)
Returns:
int: field index
| def _convert_field_index(self, index):
"""
Recursively getting the fields index from root
Args:
index (int): field index on leaf
(index with respect to parent node, not to root)
Returns:
int: field index
"""
if self.is_root():
return index
else:
return_value = self.parent._convert_field_index(
self.parent._internal_template.fields[0][int(index)]
)
return return_value
| (self, index) | [
-0.0005274242721498013,
0.0020974765066057444,
0.0435493029654026,
0.06694149971008301,
-0.02364104986190796,
0.0033839584793895483,
0.03603038191795349,
0.02819150686264038,
0.005763616878539324,
-0.05097934603691101,
0.017339732497930527,
-0.02803152985870838,
0.012824825011193752,
-0.042340587824583054,
0.03629700839519501,
0.023232219740748405,
-0.002699612407013774,
0.059404801577329636,
0.04070526361465454,
0.01286926306784153,
-0.02433428354561329,
-0.05250801518559456,
0.053290124982595444,
0.03256421163678169,
0.02973795123398304,
0.0003282862016931176,
0.0025107504334300756,
0.019872700795531273,
0.048277512192726135,
-0.061146773397922516,
-0.02941799722611904,
-0.05101489648222923,
0.0351593941450119,
0.011802749708294868,
-0.001820849603973329,
-0.04639333859086037,
-0.07614906132221222,
0.025009742006659508,
-0.035426024347543716,
0.05965365469455719,
0.05915594846010208,
-0.02504529245197773,
-0.09221787005662918,
-0.043407101184129715,
-0.03647476062178612,
0.02399655431509018,
0.03011123090982437,
-0.023729925975203514,
-0.03811008110642433,
-0.025454122573137283,
-0.06189333274960518,
0.006003582384437323,
0.014291280880570412,
-0.019072815775871277,
-0.04436696320772171,
-0.007638902869075537,
-0.013855787925422192,
-0.01277149934321642,
0.015731073915958405,
-0.015348906628787518,
-0.03775457665324211,
0.01580217480659485,
-0.02346329763531685,
-0.0002980127464979887,
0.012087153270840645,
-0.0032395347952842712,
0.015171154402196407,
0.0014142413856461644,
-0.04831306263804436,
-0.016122128814458847,
-0.04120296984910965,
-0.0002656563010532409,
0.033310770988464355,
-0.0009337547817267478,
0.012780386954545975,
0.00981192383915186,
0.04788645729422569,
0.04415366053581238,
0.051939208060503006,
0.03027120791375637,
-0.010122990235686302,
0.0004977062926627696,
-0.0466066412627697,
0.013944664038717747,
0.028315933421254158,
0.03560377657413483,
0.03899884223937988,
0.017819663509726524,
0.01949942111968994,
-0.031231069937348366,
-0.026218457147479057,
-0.044473614543676376,
-0.007336724083870649,
0.0010631806217133999,
-0.04333600029349327,
-0.01602436602115631,
0.04575343057513237,
-0.04561122879385948,
-0.04561122879385948,
0.002377436263486743,
0.03878553956747055,
0.04781535640358925,
-0.06406190991401672,
-0.03284861519932747,
0.004892630502581596,
-0.014344606548547745,
-0.02175687626004219,
-0.031248845160007477,
0.026751713827252388,
-0.0028929179534316063,
-0.03906994313001633,
-0.06196443364024162,
-0.03581707924604416,
-0.01051404606550932,
-0.008994263596832752,
-0.011962726712226868,
-0.004550457466393709,
0.014495695941150188,
0.0351593941450119,
-0.04084746539592743,
0.14234399795532227,
-0.03704356774687767,
-0.0727362185716629,
0.019517196342349052,
-0.037470173090696335,
0.03595928102731705,
0.017499709501862526,
0.025009742006659508,
0.02420985698699951,
0.029951253905892372,
0.015597759746015072,
0.0078433183953166,
-0.03828783333301544,
0.010069664567708969,
0.0262895580381155,
0.014655672945082188,
0.03009345568716526,
-0.0003710578312166035,
-0.11475685238838196,
-0.02364104986190796,
0.01261152233928442,
-0.040065355598926544,
0.07255847007036209,
0.001813072944059968,
-0.010656247846782207,
0.02051260881125927,
-0.009305329993367195,
0.03857223689556122,
-0.07316282391548157,
-0.023623274639248848,
-0.010834000073373318,
0.0290269423276186,
0.037470173090696335,
-0.010114102624356747,
-0.0038705551996827126,
0.016406532377004623,
-0.010993977077305317,
-0.031177744269371033,
0.053823381662368774,
-0.04415366053581238,
0.025489673018455505,
0.007727778982371092,
0.027196094393730164,
-0.019872700795531273,
-0.01637987047433853,
0.04642888903617859,
-0.029613524675369263,
-0.08780961483716965,
-0.028813639655709267,
0.008154384791851044,
-0.006963444408029318,
0.020992541685700417,
-0.11184171587228775,
0.022734513506293297,
-0.04522017389535904,
0.045504577457904816,
0.022556761279702187,
0.01565108634531498,
0.01653984747827053,
0.06388416141271591,
-0.04315824806690216,
0.022503435611724854,
0.009803036227822304,
-0.007492257282137871,
0.03393290564417839,
0.012042715214192867,
-0.03450171276926994,
0.006727922707796097,
0.06082681939005852,
-0.04276719316840172,
0.023729925975203514,
-0.03179987892508507,
0.017970751971006393,
-0.05552980303764343,
0.0032684195321053267,
0.02106364257633686,
0.02264563739299774,
0.0241920817643404,
0.034892767667770386,
0.03571042791008949,
-0.0035394916776567698,
-0.02852923609316349,
0.010318517684936523,
0.01718864217400551,
-0.07138530164957047,
0.027018342167139053,
0.019161691889166832,
0.02468978799879551,
-0.08887612819671631,
-0.0010792894754558802,
0.045469027012586594,
0.00003978595123044215,
0.006003582384437323,
0.01980159990489483,
-0.0308044645935297,
-0.0577339306473732,
-0.038678888231515884,
-0.023907678201794624,
0.05808943510055542,
0.048633016645908356,
-0.009278667159378529,
0.03722131997346878,
0.021863527595996857,
-0.07255847007036209,
0.03578152880072594,
-0.046713292598724365,
-0.02589850313961506,
-0.00725673558190465,
-0.026005154475569725,
-0.0217746514827013,
-0.004665996413677931,
-0.012780386954545975,
-0.027053892612457275,
0.009616396389901638,
0.07099425047636032,
-0.0035483792889863253,
0.027053892612457275,
-0.05723622441291809,
0.04162957891821861,
-0.005443662870675325,
0.014406819827854633,
-0.015517771244049072,
-0.018397357314825058,
-0.006439075339585543,
-0.01823738031089306,
-0.014735661447048187,
0.00818104762583971,
-0.004481578711420298,
-0.0070256576873362064,
0.007230072747915983,
-0.04500687122344971,
0.00456823268905282,
-0.011100628413259983,
0.044438064098358154,
0.024227632209658623,
-0.026698388159275055,
-0.04066971316933632,
0.04191398248076439,
-0.03023565746843815,
0.01016742829233408,
-0.03272419050335884,
-0.05716512352228165,
-0.027907103300094604,
-0.06086236983537674,
-0.02085033990442753,
-0.03914104402065277,
0.02401432953774929,
0.0121760293841362,
0.04493577033281326,
0.07028324156999588,
0.11511235684156418,
0.017828550189733505,
0.01556220930069685,
0.017259743064641953,
0.020992541685700417,
-0.06000915914773941,
-0.011438357643783092,
0.06359975785017014,
-0.013055902905762196,
-0.00004759733201353811,
-0.025258595123887062,
0.022379009053111076,
-0.0483841635286808,
0.03423508256673813,
0.014904526062309742,
-0.0038505580741912127,
-0.002606292488053441,
0.007430044002830982,
-0.05688071995973587,
-0.029258020222187042,
0.03864333778619766,
0.005763616878539324,
-0.02975572645664215,
-0.003683915361762047,
-0.04500687122344971,
-0.011776086874306202,
-0.06509287655353546,
-0.013535833917558193,
0.0014775656163692474,
-0.038323383778333664,
-0.03126662224531174,
0.03535492345690727,
-0.011278380639851093,
0.004317157901823521,
-0.011589447036385536,
0.05826718732714653,
-0.02815595641732216,
0.01034518051892519,
0.02817373163998127,
-0.024974191561341286,
-0.07252291589975357,
0.0003313413180876523,
0.01374024897813797,
0.010460720397531986,
-0.022130155935883522,
-0.07920639961957932,
-0.0006604607333429158,
0.005337011534720659,
0.033133018761873245,
0.043904807418584824,
-0.028244832530617714,
0.028920290991663933,
0.006590164732187986,
0.0034172870218753815,
0.019268343225121498,
0.03665251284837723,
0.014237955212593079,
-0.01721530593931675,
-0.028920290991663933,
0.02067258581519127,
-0.027444947510957718,
0.01453124638646841,
0.019161691889166832,
-0.036936916410923004,
-0.03585262969136238,
-0.04017200693488121,
0.030537836253643036,
-0.0064612943679094315,
-0.05830273777246475,
0.0034150651190429926,
0.025827402248978615,
0.001263151876628399,
0.007798879873007536,
-0.020068228244781494,
-0.01158055942505598,
0.006754585541784763,
0.05880044400691986,
-0.005763616878539324,
0.012229355052113533,
0.032119832932949066,
-0.006705703679472208,
-0.09662612527608871,
-0.03256421163678169,
-0.028458135202527046,
-0.0424116887152195,
-0.020619260147213936,
0.02346329763531685,
-0.07021214067935944,
-0.03615480661392212,
0.08034401386976242,
0.004932624753564596,
-0.018486233428120613,
-0.010318517684936523,
-0.023712150752544403,
0.012460432946681976,
-0.044118110090494156,
-0.045682329684495926,
0.027391621842980385,
0.03041340969502926,
0.038714438676834106,
0.016966452822089195,
0.0021185846999287605,
0.03304414451122284,
-0.055209849029779434,
-0.0019886032678186893,
-0.010745123960077763,
-0.002107475185766816,
0.029862377792596817,
-0.08162382990121841,
-0.08283255249261856,
-0.04379815608263016,
-0.0038172295317053795,
-0.03110664337873459,
0.051548153162002563,
-0.022325683385133743,
-0.016450971364974976,
0.03771902620792389,
-0.030324533581733704,
-0.012522646225988865,
-0.013269205577671528,
-0.08574768900871277,
0.027782676741480827,
-0.006767916958779097,
-0.021810201928019524,
0.03300859406590462,
-0.022005729377269745,
0.04571788012981415,
-0.05201030895113945,
0.03005790524184704,
-0.044615816324949265,
0.014566796831786633,
-0.01227379310876131,
-0.05293462052941322,
0.03636810928583145,
0.03352407366037369,
0.022005729377269745,
0.05656076595187187,
0.016610948368906975,
-0.00859876535832882,
-0.03512384369969368,
0.025169719010591507,
0.053645629435777664,
-0.009154240600764751,
0.00895871315151453,
0.03595928102731705,
-0.00691900635138154,
0.02572075091302395,
0.052081409841775894,
-0.04571788012981415,
-0.01685980148613453,
-0.04258944094181061,
0.01741083338856697,
-0.01585550047457218,
0.017615247517824173,
0.022698963060975075,
-0.02659173682332039,
-0.002717387629672885,
0.0004163291014265269,
-0.05528094992041588,
0.131252259016037,
-0.027000566944479942,
-0.07458484172821045,
-0.00903870165348053,
0.017508596181869507,
0.013606934808194637,
-0.02573852613568306,
-0.019783824682235718,
0.011713873594999313,
-0.026218457147479057,
0.0637064054608345,
0.10857107490301132,
0.026876140385866165,
0.02420985698699951,
-0.0556364543735981,
0.043229348957538605,
0.026716163381934166,
0.0008782072109170258,
0.03857223689556122,
-0.024778664112091064,
-0.0483841635286808,
0.0014142413856461644,
-0.00391499325633049,
0.04162957891821861,
-0.028067080304026604,
-0.025116393342614174,
-0.02333887107670307,
-0.07678896933794022,
-0.009003151208162308,
0.07387383282184601,
0.03181765228509903,
-0.014913413673639297,
0.03286639228463173,
0.0577339306473732,
-0.03396845608949661,
-0.00184862338937819,
0.006216885056346655,
-0.019748274236917496,
-0.02678726427257061,
0.004794866777956486,
-0.028440359979867935,
0.013695810921490192,
0.026538411155343056,
-0.058373838663101196,
-0.031906530261039734,
0.03606593236327171,
0.004737097304314375,
-0.05716512352228165,
-0.06040021404623985,
-0.001028185710310936,
-0.06985663622617722,
-0.014406819827854633,
-0.0121760293841362,
0.0549965463578701,
0.002755159977823496,
-0.04091856628656387,
-0.020388182252645493,
0.0074789258651435375,
0.019232792779803276,
-0.03252866119146347,
-0.061111222952604294,
0.03581707924604416,
-0.0027840447146445513,
0.007274510804563761,
0.01964162290096283,
0.05233026295900345,
-0.005337011534720659,
0.004897074308246374,
0.047566503286361694,
0.012167141772806644,
0.015908826142549515,
-0.0025285256560891867,
0.009429756551980972,
0.015864389017224312,
-0.02415653131902218,
-0.015864389017224312,
0.00046965476940386,
-0.010202978737652302,
0.037647925317287445,
0.028902515769004822,
-0.03793232887983322,
0.0016330988146364689,
0.008318805135786533,
0.008225485682487488,
0.0399942547082901,
0.014504583552479744,
0.05926259979605675,
-0.003970541059970856,
-0.004670440219342709,
0.023605499416589737,
0.036794714629650116,
-0.005199253559112549,
-0.058196086436510086,
-0.010105215013027191,
-0.024049879983067513,
0.06701260060071945,
0.057982783764600754,
-0.03878553956747055,
0.012984802015125751,
0.015082278288900852,
0.031177744269371033,
-0.04923737421631813,
0.017650797963142395,
0.05403668433427811,
0.02732052095234394,
-0.05183255672454834,
-0.0308044645935297,
0.024760888889431953,
0.02262786217033863,
0.04646443948149681,
-0.0032706414349377155,
-0.045860081911087036,
-0.026645062491297722,
-0.03153324872255325,
-0.04632223770022392,
0.07522474974393845,
-0.01122505497187376,
-0.03432396054267883,
-0.025880727916955948,
0.020245980471372604,
-0.002484087599441409,
0.008469894528388977,
0.007318948861211538,
0.047388751059770584,
0.007532251533120871,
0.027747126296162605,
0.03526604548096657,
-0.042553890496492386,
0.019410545006394386,
0.026751713827252388,
-0.020477058365941048,
0.025080842897295952,
-0.01859288476407528,
0.04731765016913414,
-0.03736352175474167,
-0.04504242166876793,
0.00013588326692115515,
-0.0012742613907903433,
-0.022236807271838188,
0.03284861519932747,
-0.0313732735812664,
-0.01949942111968994,
-0.018148504197597504,
0.017117541283369064,
-0.005999138578772545,
-0.0016830916283652186,
0.005079270340502262,
-0.020956991240382195,
-0.025827402248978615,
0.042198386043310165,
-0.032119832932949066,
0.028440359979867935,
-0.04436696320772171,
0.06765250861644745,
0.03409288078546524,
0.004874855279922485,
0.02852923609316349,
0.07863759249448776,
0.029293570667505264,
0.014620122499763966,
-0.007101202383637428,
-0.02641398459672928,
-0.05009058490395546,
0.0031239958480000496,
0.02867143787443638,
0.038856640458106995,
0.06246213987469673,
-0.0859609916806221,
0.0031417710706591606,
0.04301604628562927,
-0.07700227200984955,
-0.02920469455420971,
0.002375214360654354,
-0.01703755371272564,
0.03195985406637192,
0.008665421977639198,
-0.005701403599232435,
0.05826718732714653,
-0.016095466911792755,
0.03396845608949661,
0.01096731424331665,
0.04639333859086037,
-0.019037265330553055,
0.02053038403391838,
-0.014851200394332409,
-0.038323383778333664,
-0.0041571808978915215,
-0.005808054935187101,
-0.017339732497930527,
-0.017286406829953194,
-0.010078552179038525,
-0.0883784219622612,
0.03546157479286194,
-0.027889328077435493,
-0.04539792612195015,
-0.027338296175003052,
0.009323105216026306,
0.05090824514627457,
-0.029453547671437263,
-0.029986804351210594,
0.02712499350309372,
-0.002274117898195982,
-0.0459667332470417,
-0.025347471237182617,
0.0007465594680979848,
-0.045469027012586594,
0.024938641116023064,
-0.008332137018442154,
-0.028049305081367493,
-0.03446616232395172,
0.08524998277425766,
-0.011216167360544205,
-0.01227379310876131,
-0.04543347656726837,
-0.016122128814458847,
0.04472246766090393,
-0.04728209972381592,
0.022130155935883522,
-0.08183713257312775,
-0.06022246181964874,
-0.0030328978318721056,
-0.054889895021915436,
0.014664560556411743,
-0.05908484756946564,
-0.009714160114526749,
-0.011180616915225983,
0.05115709826350212,
0.03428841009736061,
-0.00478597916662693,
-0.03750572353601456,
0.04468691721558571,
0.0034195089247077703,
-0.012167141772806644,
0.008189935237169266,
-0.03928324580192566,
-0.009660834446549416,
-0.0022952258586883545,
0.012673735618591309,
-0.008469894528388977,
-0.018015190958976746,
-0.009900799952447414,
0.030022354796528816,
-0.008785405196249485,
-0.0028929179534316063,
-0.0017330844420939684,
0.021312495693564415,
0.018681760877370834,
0.06342200189828873,
0.06040021404623985,
0.013589159585535526,
-0.003319523297250271,
0.024120980873703957,
0.013935776427388191,
0.014620122499763966,
0.09044034779071808,
0.0007693339721299708,
-0.021952403709292412,
0.0016253221547231078,
0.023765476420521736,
0.05044608935713768,
0.04020755738019943,
-0.04472246766090393,
-0.036279235035181046,
0.004281607456505299,
0.0017408611020073295,
-0.032119832932949066,
-0.027764901518821716,
0.027604924514889717,
0.051583703607320786,
-0.024778664112091064,
0.05961810424923897,
0.02835148386657238,
-0.03222648426890373,
0.022005729377269745,
0.017695236951112747,
-0.012033827602863312,
-0.05606305971741676,
0.041842881590127945,
0.01875286176800728,
-0.054854344576597214,
-0.009043145924806595,
-0.0120160523802042,
0.016726486384868622,
0.011678323149681091,
0.0341106578707695,
-0.020210430026054382,
0.0991857573390007,
-0.02556077390909195,
0.07198966294527054,
-0.017321957275271416,
0.007630015257745981,
0.037256870418787,
-0.009678609669208527,
0.04216283559799194,
0.04781535640358925,
-0.011749424040317535,
-0.020565934479236603,
0.04465136677026749,
0.0009426423930563033,
-0.04173623025417328,
0.020405957475304604,
0.05421443656086922,
-0.053112372756004333,
0.020779239013791084,
-0.08361466228961945,
0.04091856628656387,
0.023569948971271515,
0.04298049584031105,
0.020992541685700417,
-0.0598314069211483,
-0.029098043218255043,
0.009429756551980972,
0.08034401386976242,
-0.04852636530995369,
0.021454697474837303,
0.010549596510827541,
0.07035434246063232,
0.04717544838786125,
0.044438064098358154,
-0.03914104402065277,
-0.01932166889309883,
0.042696092277765274,
0.025276370346546173,
-0.005616971291601658,
-0.012593747116625309,
-0.03027120791375637,
-0.0011964947916567326,
0.06082681939005852,
0.03526604548096657,
-0.030822239816188812,
0.02436983399093151,
0.0435493029654026,
-0.03601260483264923,
-0.0637064054608345,
0.050019484013319016,
0.00638574967160821,
0.021614674478769302,
0.01999712735414505,
0.011465020477771759
] |
21,149 | tfields.bounding_box | _convert_map_index |
Recursively getting the map fields index from root
Args:
index (int): map field index on leaf
(index with respect to parent node, not to root)
Returns:
int: map field index
| def _convert_map_index(self, index):
"""
Recursively getting the map fields index from root
Args:
index (int): map field index on leaf
(index with respect to parent node, not to root)
Returns:
int: map field index
"""
if self.is_root():
return index
else:
return_value = self.parent._convert_map_index(
self.parent._internal_template.maps[3].fields[0][int(index)]
)
return return_value
| (self, index) | [
0.022571338340640068,
0.008269750513136387,
0.032950859516859055,
0.0773979052901268,
-0.02279101125895977,
-0.0059311543591320515,
0.012063675560057163,
0.03652053698897362,
0.019678985700011253,
-0.043275460600852966,
0.0016761461738497019,
-0.007381907664239407,
-0.010425285436213017,
-0.015367913991212845,
0.053783122450113297,
0.021875709295272827,
0.007505473215132952,
0.0726749524474144,
0.03278610482811928,
0.008407045155763626,
-0.025097571313381195,
-0.05173284932971001,
0.06802521646022797,
0.040492944419384,
-0.0016315251123160124,
-0.019312864169478416,
0.0016429664101451635,
0.005519269034266472,
0.07329735159873962,
-0.0749082863330841,
-0.05792028829455376,
-0.06088586524128914,
0.03428719937801361,
0.020759040489792824,
-0.002165832556784153,
-0.046204425394535065,
-0.07000226527452469,
0.02848418615758419,
-0.04744923487305641,
0.030900582671165466,
0.07168642431497574,
-0.02436533011496067,
-0.10309957712888718,
-0.024438554421067238,
0.002933541778475046,
0.021930627524852753,
0.01492857001721859,
-0.03803993761539459,
-0.00006507222860818729,
-0.023633088916540146,
-0.06985582411289215,
0.007871594280004501,
0.025793200358748436,
0.006059296894818544,
-0.04301917552947998,
-0.0020354019943624735,
-0.02535385452210903,
-0.011203291825950146,
0.033646486699581146,
-0.016530347988009453,
-0.036593757569789886,
0.006901374086737633,
-0.02603117935359478,
-0.0030044775921851397,
0.03685004264116287,
-0.02279101125895977,
0.006484912242740393,
-0.0067869615741074085,
-0.03249320760369301,
-0.006878491956740618,
-0.03016834147274494,
0.0027550579980015755,
0.010617499239742756,
-0.0035216230899095535,
0.0011504197027534246,
0.02436533011496067,
0.05773722752928734,
0.048767272382974625,
0.06978259980678558,
0.039833925664424896,
-0.04155469313263893,
-0.025573527440428734,
-0.03672190010547638,
-0.00011548532347660512,
-0.00021409477631095797,
0.0508541576564312,
0.05656564235687256,
0.0051851836033165455,
-0.001350069884210825,
-0.03410413861274719,
-0.029619161039590836,
-0.012933212332427502,
-0.006498641800135374,
0.01933117024600506,
-0.03946780785918236,
-0.014956029132008553,
0.03866234049201012,
-0.029710691422224045,
-0.04587491974234581,
-0.006759502459317446,
0.04437382146716118,
0.020667510107159615,
-0.06736619770526886,
-0.03298747166991234,
0.00533163221552968,
-0.011477882042527199,
-0.004768721293658018,
-0.03822299465537071,
0.0005062762065790594,
0.023395109921693802,
-0.06473013013601303,
-0.06754925847053528,
-0.04323884844779968,
-0.027770251035690308,
-0.015578433871269226,
0.014919416978955269,
0.007688533514738083,
0.0010091200238093734,
0.023321885615587234,
-0.014306164346635342,
0.10990942269563675,
-0.016063543036580086,
-0.0616547167301178,
-0.011413811706006527,
-0.04803502932190895,
0.015505209565162659,
0.02493281662464142,
0.03309730812907219,
0.01527638453990221,
0.010599193163216114,
0.028630634769797325,
-0.01091039553284645,
-0.031065337359905243,
0.0238527599722147,
0.034140750765800476,
0.0013786731287837029,
0.011706707999110222,
-0.02652544155716896,
-0.08969955891370773,
-0.015972012653946877,
0.024401942268013954,
-0.043165624141693115,
0.06992904841899872,
0.0047595687210559845,
-0.011047691106796265,
-0.01404988020658493,
-0.0061325207352638245,
0.03223692253232002,
-0.0465705469250679,
-0.04733940213918686,
0.013674606569111347,
0.01923963986337185,
0.010974466800689697,
0.006246933713555336,
-0.025372160598635674,
-0.004896863829344511,
0.04576508328318596,
-0.03586151823401451,
0.07465200126171112,
-0.05568695068359375,
0.037673816084861755,
0.008878425695002079,
0.025793200358748436,
-0.05667547881603241,
-0.03273118659853935,
0.01677747815847397,
-0.002088031964376569,
-0.07688533514738083,
0.009857798926532269,
-0.013134578242897987,
-0.02769702672958374,
0.013290179893374443,
-0.07457877695560455,
0.021729260683059692,
0.008956226520240307,
0.023138824850320816,
-0.013033894822001457,
0.013821054250001907,
0.006471182685345411,
0.06912358105182648,
-0.027257682755589485,
0.03408583253622055,
-0.02081395871937275,
0.009592360816895962,
-0.005487233400344849,
0.01885521411895752,
-0.031285010278224945,
0.019495924934744835,
0.0569317601621151,
-0.01826942153275013,
0.029930364340543747,
-0.03538556024432182,
0.01301558967679739,
-0.032365065068006516,
0.023450028151273727,
0.009047756902873516,
0.04448365792632103,
0.031596213579177856,
0.008054654113948345,
0.04598475247621536,
-0.032566431909799576,
-0.02751396782696247,
-0.019404394552111626,
0.031211785972118378,
-0.07040499895811081,
0.012548785656690598,
0.0024209727998822927,
0.023028988391160965,
-0.05561372637748718,
0.0059082722291350365,
0.038845401257276535,
-0.004139451775699854,
0.010040858760476112,
0.013033894822001457,
-0.007496320176869631,
-0.0711006298661232,
-0.03939458355307579,
-0.006201168522238731,
0.054259080439805984,
0.04137163236737251,
-0.02405412681400776,
0.044263988733291626,
0.040419720113277435,
-0.0638880506157875,
0.02592134289443493,
-0.03366479277610779,
-0.020795652642846107,
-0.001035435008816421,
0.0010806280188262463,
0.006773232016712427,
-0.003105160780251026,
-0.02916150912642479,
-0.007921935990452766,
-0.012969824485480785,
0.06260663270950317,
-0.02830112725496292,
0.03130331635475159,
-0.07607987523078918,
0.044739942997694016,
-0.005702329333871603,
0.012667774222791195,
-0.005619951989501715,
-0.029326263815164566,
0.026598665863275528,
-0.03377462923526764,
-0.005359090864658356,
-0.015285537578165531,
0.0018717917846515775,
0.015669964253902435,
0.015569280833005905,
-0.028648940846323967,
-0.0004799612797796726,
-0.02149128168821335,
0.0524284765124321,
0.03721616417169571,
-0.02690986730158329,
-0.036191027611494064,
0.018891826272010803,
-0.04744923487305641,
0.012859988026320934,
-0.023157130926847458,
-0.03663036972284317,
-0.028429267928004265,
-0.07505473494529724,
0.008672483265399933,
-0.03597135469317436,
0.038149770349264145,
0.028758777305483818,
0.042286936193704605,
0.04668038338422775,
0.1394919753074646,
0.027422437444329262,
-0.0014061321271583438,
0.01011408306658268,
0.006635936908423901,
-0.051623012870550156,
0.00611879164353013,
0.0384792797267437,
-0.009157592430710793,
0.013830207288265228,
-0.03093719482421875,
0.03152298927307129,
-0.07208915799856186,
0.033756323158741,
-0.005958613473922014,
-0.011276516132056713,
0.008860119618475437,
0.020759040489792824,
-0.024420248344540596,
-0.03836944326758385,
0.038955237716436386,
0.00318067311309278,
-0.05451536551117897,
-0.009903564117848873,
-0.04733940213918686,
-0.04565524682402611,
-0.04074922949075699,
-0.00479160388931632,
-0.016576113179326057,
-0.02495112270116806,
-0.01589879021048546,
0.009638126008212566,
0.027642108500003815,
0.0038305374328047037,
0.010974466800689697,
0.06762248277664185,
-0.02063089795410633,
0.016127614304423332,
0.023999208584427834,
-0.004130298737436533,
-0.05480826273560524,
0.008512305095791817,
0.001141838845796883,
0.009244546294212341,
-0.02996697463095188,
-0.08215747773647308,
0.004416330251842737,
0.009001991711556911,
0.05414924398064613,
0.06330226361751556,
-0.038442667573690414,
0.022754399105906487,
0.02357817068696022,
-0.018818601965904236,
0.042469996958971024,
0.01826942153275013,
0.0384792797267437,
-0.039541032165288925,
0.018342643976211548,
-0.02357817068696022,
-0.03730769455432892,
0.010745640844106674,
0.017235130071640015,
-0.03447026014328003,
-0.04151808097958565,
-0.026891561225056648,
0.007665651384741068,
0.00741851981729269,
-0.07974107563495636,
0.008178220130503178,
0.023834453895688057,
-0.0029198122210800648,
0.007093587890267372,
-0.012356571853160858,
-0.005633681546896696,
0.026983091607689857,
0.022424889728426933,
-0.0053773969411849976,
-0.029326263815164566,
0.01916641555726528,
-0.00714850565418601,
-0.06626784056425095,
-0.03181588649749756,
-0.014132257550954819,
-0.03595304861664772,
0.013390863314270973,
0.05539405345916748,
-0.08523289114236832,
-0.04565524682402611,
0.08633124828338623,
0.028356045484542847,
-0.03415905684232712,
-0.017610402777791023,
-0.04594814032316208,
0.005143995396792889,
-0.043165624141693115,
-0.016759172081947327,
0.017445649951696396,
0.03399430215358734,
0.03635578230023384,
0.022241828963160515,
-0.012292500585317612,
0.010260531678795815,
-0.028429267928004265,
-0.004764144774526358,
-0.004510148894041777,
0.0035284878686070442,
0.025756588205695152,
-0.09995093941688538,
-0.08245036751031876,
-0.04393447935581207,
-0.005038735456764698,
-0.026983091607689857,
0.06440062075853348,
-0.019093191251158714,
-0.0240724328905344,
0.06707330048084259,
-0.03421397507190704,
-0.040419720113277435,
-0.014699744060635567,
-0.06912358105182648,
0.039138298481702805,
0.018544010818004608,
-0.030973806977272034,
0.03176096826791763,
0.0088875787332654,
0.0418475903570652,
-0.05645580589771271,
0.04957273602485657,
-0.053087495267391205,
0.01739073172211647,
-0.021070243790745735,
-0.04177436605095863,
0.019514231011271477,
0.03917491063475609,
-0.0029495595954358578,
0.023742923513054848,
0.019294558092951775,
0.0032882210798561573,
-0.06267985701560974,
0.009555748663842678,
0.03573337569832802,
0.005143995396792889,
0.0009330356260761619,
0.030021892860531807,
-0.008063807152211666,
0.02495112270116806,
0.042689669877290726,
-0.047009892761707306,
-0.03961425647139549,
-0.0051851836033165455,
0.008425351232290268,
-0.006045567337423563,
0.005821318365633488,
0.0310470312833786,
-0.06139843538403511,
0.0063567697070539,
-0.014443459920585155,
-0.06850117444992065,
0.14095644652843475,
-0.024804674088954926,
-0.10646788775920868,
-0.00532705569639802,
-0.00314406119287014,
0.010077470913529396,
0.0012390896445140243,
-0.015981165692210197,
0.018122972920536995,
-0.010031705722212791,
0.04693666845560074,
0.10060995817184448,
0.041994038969278336,
0.02729429490864277,
-0.03447026014328003,
0.08735638856887817,
0.028154678642749786,
-0.021344834938645363,
0.03399430215358734,
0.015889637172222137,
-0.03672190010547638,
-0.026287462562322617,
-0.027166152372956276,
0.015569280833005905,
-0.036209333688020706,
0.010782252997159958,
-0.017207670956850052,
-0.10039028525352478,
-0.002193291438743472,
0.04902355372905731,
0.043751418590545654,
-0.014031574130058289,
-0.007034093141555786,
0.06754925847053528,
-0.03064429946243763,
0.007610733155161142,
0.04430060088634491,
-0.01739073172211647,
-0.011917226947844028,
-0.015065864659845829,
-0.0318341925740242,
0.028612328693270683,
0.030790746212005615,
-0.03822299465537071,
-0.0553574413061142,
0.0432022362947464,
0.0071896943263709545,
-0.061142150312662125,
-0.03822299465537071,
0.02398090250790119,
-0.032456595450639725,
-0.022644562646746635,
0.0010594616178423166,
0.06264324486255646,
0.0033271214924752712,
-0.05154978856444359,
-0.01611846126616001,
0.012631163001060486,
-0.006260663270950317,
-0.03489129990339279,
-0.05499132350087166,
0.027861781418323517,
0.01124905701726675,
0.030204953625798225,
0.021161774173378944,
0.04096890240907669,
0.009217087179422379,
0.03635578230023384,
0.02011832967400551,
0.02544538490474224,
-0.007432249374687672,
0.0018740800442174077,
0.014791274443268776,
0.006489488761872053,
-0.01689646765589714,
-0.02209538221359253,
0.005986072588711977,
-0.024218881502747536,
0.020191553980112076,
0.030809052288532257,
-0.019587455317378044,
-0.009720503352582455,
-0.006832726765424013,
0.02112516202032566,
0.04107873886823654,
0.021729260683059692,
0.05528421700000763,
-0.009070639498531818,
-0.007839558646082878,
-0.0008466540020890534,
0.02357817068696022,
0.008082113228738308,
-0.04580169543623924,
-0.004228693433105946,
-0.03946780785918236,
0.04382464289665222,
0.02839265577495098,
-0.016255756840109825,
0.02132652886211872,
-0.00636134622618556,
0.01630152203142643,
-0.07113724201917648,
0.01326272077858448,
0.04144485667347908,
0.03408583253622055,
-0.042579833418130875,
-0.03998037427663803,
0.05261153727769852,
-0.007729722186923027,
0.022553032264113426,
0.004727533087134361,
-0.028319433331489563,
-0.054259080439805984,
0.004679479636251926,
-0.05433230474591255,
0.08720993995666504,
0.01517570111900568,
-0.04990224540233612,
-0.032053861767053604,
0.018736224621534348,
-0.006581018678843975,
0.01680493727326393,
0.028118066489696503,
0.03987053781747818,
0.011853156611323357,
0.03289594128727913,
0.04254322126507759,
-0.02573828212916851,
-0.018598929047584534,
-0.004800756927579641,
-0.01589879021048546,
0.03968747705221176,
-0.004329376854002476,
0.0492798388004303,
-0.034140750765800476,
-0.06630445271730423,
0.000445065408712253,
-0.02495112270116806,
-0.011184985749423504,
0.019001662731170654,
-0.015203160233795643,
-0.013198649510741234,
-0.03877217695116997,
0.015331302769482136,
-0.04448365792632103,
-0.01592624932527542,
0.0027802286203950644,
0.00044420731137506664,
-0.034342117607593536,
0.05843285471200943,
-0.019971881061792374,
0.014498378150165081,
-0.0015365625731647015,
0.08215747773647308,
0.05912848562002182,
0.02906998060643673,
0.03994376212358475,
0.056821923702955246,
0.03699649125337601,
0.03055276907980442,
-0.012676927261054516,
-0.020411226898431778,
-0.059274934232234955,
0.013857666403055191,
0.01316203735768795,
0.035312335938215256,
0.03124839812517166,
-0.049353063106536865,
-0.006375075783580542,
0.019569149240851402,
-0.05037820339202881,
0.010535121895372868,
-0.005857930518686771,
-0.007715992629528046,
0.04774213209748268,
0.010571734048426151,
-0.0007648489554412663,
0.05576017498970032,
-0.011807391420006752,
0.005432315170764923,
0.036300864070653915,
0.012255888432264328,
-0.028740471228957176,
0.026580359786748886,
-0.03289594128727913,
-0.028612328693270683,
-0.039431195706129074,
-0.024896204471588135,
0.011285669170320034,
-0.012878294102847576,
-0.024017514660954475,
-0.07186948508024216,
0.004597102291882038,
-0.026287462562322617,
-0.05766400322318077,
-0.0019781957380473614,
-0.0018420445267111063,
0.06059296801686287,
-0.0027275988832116127,
-0.025500303134322166,
0.036392394453287125,
-0.019862044602632523,
-0.037966713309288025,
-0.02465822547674179,
-0.01856231689453125,
-0.02465822547674179,
0.043165624141693115,
0.012878294102847576,
-0.029015062376856804,
-0.0353306420147419,
0.09987771511077881,
-0.029600854963064194,
-0.03289594128727913,
-0.023706313222646713,
-0.014306164346635342,
0.06033668294548988,
-0.036502230912446976,
0.0240724328905344,
-0.030790746212005615,
-0.05001208186149597,
-0.010974466800689697,
-0.041884202510118484,
0.0037985017988830805,
-0.044337209314107895,
0.0254270788282156,
0.014626519754529,
0.0654623731970787,
0.011093455366790295,
-0.02052106335759163,
-0.06707330048084259,
0.03487299382686615,
-0.029692385345697403,
-0.021656036376953125,
-0.0357699878513813,
-0.050817545503377914,
-0.012805069796741009,
-0.008631294593214989,
-0.0029930362943559885,
0.0000748688107705675,
0.0030250719282776117,
-0.010763946920633316,
0.03209047392010689,
-0.03421397507190704,
0.007180541288107634,
-0.002176129724830389,
0.01055342797189951,
0.017500566318631172,
0.06696346402168274,
0.057517554610967636,
0.01945931278169155,
-0.003402633825317025,
0.018983356654644012,
0.04466671869158745,
-0.0017779733752831817,
0.10837171226739883,
0.007528355810791254,
0.0045810844749212265,
-0.0024186845403164625,
0.024676531553268433,
0.06011701002717018,
0.06626784056425095,
-0.01055342797189951,
-0.05517438426613808,
0.02348664030432701,
0.0357699878513813,
-0.04528912529349327,
-0.007468861527740955,
0.013976655900478363,
0.03858911618590355,
-0.007816676050424576,
0.05942138284444809,
0.016722559928894043,
-0.03695987910032272,
0.006635936908423901,
0.0054460447281599045,
-0.021765872836112976,
-0.05327055603265762,
0.030424626544117928,
0.007931089028716087,
-0.02603117935359478,
0.0049014403484761715,
-0.007935665547847748,
0.02319374307990074,
0.046716995537281036,
0.02848418615758419,
-0.0276787206530571,
0.07732468098402023,
-0.03287763521075249,
0.058469466865062714,
-0.017619555816054344,
-0.015303843654692173,
0.020466145128011703,
-0.025811506435275078,
0.03976070135831833,
0.06257002055644989,
-0.011203291825950146,
0.002471314510330558,
0.02938118204474449,
-0.0294727124273777,
-0.05513777211308479,
0.03494621813297272,
0.01601777784526348,
-0.07820337265729904,
-0.024822980165481567,
-0.08969955891370773,
0.021674342453479767,
0.03313392028212547,
0.02308390662074089,
0.02328527346253395,
-0.07527440786361694,
-0.04638748615980148,
-0.001985060516744852,
0.06136182323098183,
-0.05118366703391075,
0.02052106335759163,
0.008800624869763851,
0.04166452959179878,
0.04122518375515938,
0.05762739107012749,
-0.036593757569789886,
-0.007917359471321106,
0.0625334084033966,
0.040016986429691315,
-0.013592229224741459,
-0.02661697193980217,
-0.0318341925740242,
0.008077536709606647,
0.03829621896147728,
0.019093191251158714,
-0.0032973741181194782,
0.03436042368412018,
0.035715069621801376,
-0.012365724891424179,
-0.08852797746658325,
0.027642108500003815,
0.01708868145942688,
0.021729260683059692,
-0.004107416141778231,
-0.003706971649080515
] |
21,150 | tfields.bounding_box | _split |
Split the node in two new nodes, if there is no cut_expr set and
remaing cuts exist.
| def _split(self):
"""
Split the node in two new nodes, if there is no cut_expr set and
remaing cuts exist.
"""
if self.cut_expr is None and self.remaining_cuts is None:
raise RuntimeError(
"Cannot split the mesh without cut_expr and" "remaining_cuts"
)
else:
# create cut expression
x, y, z = sympy.symbols("x y z")
if "x" in self.cut_expr:
left_cut_expression = x <= self.cut_expr["x"]
right_cut_expression = x >= self.cut_expr["x"]
key = "x"
elif "y" in self.cut_expr:
left_cut_expression = y <= self.cut_expr["y"]
right_cut_expression = y >= self.cut_expr["y"]
key = "y"
elif "z" in self.cut_expr:
left_cut_expression = z <= self.cut_expr["z"]
right_cut_expression = z >= self.cut_expr["z"]
key = "z"
else:
raise KeyError()
# split the cuts into left / right
left_cuts = self.remaining_cuts.copy()
right_cuts = self.remaining_cuts.copy()
left_cuts[key] = [
value
for value in self.remaining_cuts[key]
if value <= self.cut_expr[key]
]
right_cuts[key] = [
value
for value in self.remaining_cuts[key]
if value > self.cut_expr[key]
]
left_box = copy.deepcopy(self.box)
right_box = copy.deepcopy(self.box)
left_box[key][1] = self.cut_expr[key]
right_box[key][0] = self.cut_expr[key]
# actually cut!
left_mesh, self.left_template = self.mesh.cut(
left_cut_expression,
at_intersection=self.at_intersection,
return_template=True,
)
right_mesh, self.right_template = self.mesh.cut(
right_cut_expression,
at_intersection=self.at_intersection,
return_template=True,
)
# two new Nodes
self.left = Node(
left_mesh,
left_cuts,
parent=self,
internal_template=self.left_template,
cut_expr=None,
coord_sys=self.coord_sys,
at_intersection=self.at_intersection,
box=left_box,
)
self.right = Node(
right_mesh,
right_cuts,
parent=self,
internal_template=self.right_template,
cut_expr=None,
coord_sys=self.coord_sys,
at_intersection=self.at_intersection,
box=right_box,
)
| (self) | [
0.011704904958605766,
-0.009568369016051292,
-0.04258338361978531,
-0.015637237578630447,
-0.029893094673752785,
0.021623224020004272,
-0.01631871983408928,
0.014053253456950188,
-0.08214614540338516,
-0.020647047087550163,
0.02394394390285015,
0.009163163602352142,
-0.031919121742248535,
-0.016014816239476204,
-0.07072672992944717,
-0.02248889021575451,
0.012165365740656853,
-0.01583063043653965,
0.013482282869517803,
0.0057005006819963455,
-0.07518398761749268,
-0.0868612676858902,
0.055181581526994705,
0.0186670683324337,
0.03563963994383812,
-0.016014816239476204,
0.0029469470027834177,
-0.0026982983108609915,
0.015508309006690979,
0.015941141173243523,
-0.05753914266824722,
0.0002749812265392393,
0.014384785667061806,
-0.014108508825302124,
0.03015095181763172,
-0.02727767825126648,
0.05776016041636467,
0.02394394390285015,
0.0048808809369802475,
0.058754757046699524,
0.016539739444851875,
-0.03401881828904152,
0.028916917741298676,
-0.014697898179292679,
-0.012588988989591599,
-0.03446086123585701,
0.03418458625674248,
0.010157758370041847,
0.004839439410716295,
0.005143343470990658,
-0.005097297485917807,
-0.10446926951408386,
0.019431432709097862,
0.027296096086502075,
-0.01607006974518299,
0.011925926432013512,
0.07853613793849945,
0.03219539672136307,
0.006013613659888506,
0.001276626717299223,
0.0038287288043648005,
0.033300500363111496,
-0.009356556460261345,
-0.0106550557538867,
-0.019099900498986244,
-0.03462662920355797,
-0.036671072244644165,
-0.0005824824911542237,
-0.013546747155487537,
0.05050330609083176,
-0.02410971000790596,
0.026209410279989243,
0.06748508661985397,
0.0013272772775962949,
0.03442402556538582,
-0.038531333208084106,
0.030942944809794426,
0.0025762764271348715,
0.06011771783232689,
-0.0365421436727047,
-0.004761161282658577,
-0.015941141173243523,
-0.031182384118437767,
0.011962763033807278,
0.025509510189294815,
0.02147587575018406,
0.06100180372595787,
0.025141142308712006,
0.031237639486789703,
-0.046267069876194,
-0.0037642642855644226,
0.012487688101828098,
-0.03300580754876137,
-0.009098699316382408,
0.02735135145485401,
-0.0022205705754458904,
0.0007367367506958544,
-0.09039760380983353,
-0.006243844050914049,
-0.013040240854024887,
-0.002728228224441409,
0.10196436941623688,
-0.07301061600446701,
0.04976656660437584,
0.03418458625674248,
0.009011211805045605,
-0.01313233282417059,
-0.007929129526019096,
-0.04575135186314583,
-0.04755635932087898,
-0.026485687121748924,
0.04652492702007294,
-0.03543703630566597,
0.0738946944475174,
-0.03779459744691849,
-0.01024985034018755,
-0.03982062265276909,
0.0035961964167654514,
0.009094093926250935,
-0.03482922911643982,
0.010765565559267998,
-0.040852054953575134,
-0.026761962100863457,
0.019505105912685394,
-0.005843243561685085,
0.05142422765493393,
0.06936376541852951,
0.028603805229067802,
-0.04928768798708916,
-0.0661589577794075,
0.0029400400817394257,
0.04670910909771919,
-0.019449850544333458,
0.012635035440325737,
-0.044498901814222336,
-0.0018878879491239786,
-0.06181221455335617,
0.005760360509157181,
-0.011695696040987968,
0.012892893515527248,
-0.006041241344064474,
-0.056397199630737305,
-0.003220920916646719,
0.020389189943671227,
-0.10690050572156906,
0.01639239303767681,
0.0012213714653626084,
-0.04096256569027901,
0.031016618013381958,
0.005732732824981213,
-0.03934174403548241,
0.016733134165406227,
0.0025808808859437704,
-0.017469869926571846,
0.0054610613733530045,
0.003527127206325531,
-0.018243443220853806,
-0.018132934346795082,
0.014320320449769497,
0.02609889954328537,
-0.04549349471926689,
-0.04026266559958458,
0.020886486396193504,
0.0042454455979168415,
0.006409609690308571,
-0.01721201278269291,
0.08818738907575607,
-0.09194474667310715,
-0.035492293536663055,
0.032526928931474686,
0.006612212397158146,
0.03831031173467636,
-0.08295655995607376,
0.05054014176130295,
-0.09319719672203064,
-0.01619900017976761,
0.005203203298151493,
-0.004148748703300953,
-0.043172772973775864,
-0.04029950127005577,
-0.014034835621714592,
-0.060854457318782806,
0.0324716717004776,
-0.00741801830008626,
-0.03709469735622406,
0.020241841673851013,
0.045972373336553574,
-0.055255256593227386,
0.03149549663066864,
0.018363162875175476,
-0.03429509699344635,
-0.03819980099797249,
-0.0014826827682554722,
0.024091292172670364,
0.025270070880651474,
0.009642042219638824,
0.023115115240216255,
0.0030551552772521973,
-0.04390951246023178,
0.046488091349601746,
-0.0771363377571106,
-0.0008242242620326579,
0.030500901862978935,
-0.015508309006690979,
0.031274475157260895,
0.02374134212732315,
0.01607006974518299,
0.059233635663986206,
0.00261771772056818,
0.03812612593173981,
-0.05101902037858963,
-0.014522923156619072,
0.027738139033317566,
0.08244084566831589,
0.015388589352369308,
-0.01607006974518299,
-0.06719039380550385,
-0.0031679680105298758,
0.008283684030175209,
-0.01611611619591713,
-0.013454655185341835,
-0.009485485963523388,
-0.013325725682079792,
0.00878558587282896,
-0.06022822856903076,
0.024201802909374237,
0.014578178524971008,
0.01335335336625576,
0.029487889260053635,
-0.038862865418195724,
0.02289409562945366,
-0.012690290808677673,
-0.04144144430756569,
-0.06254895031452179,
-0.05415015295147896,
0.007933733984827995,
-0.0013077077455818653,
-0.01272712741047144,
0.021218018606305122,
0.014274274930357933,
-0.07208969444036484,
-0.06523804366588593,
-0.026854055002331734,
-0.02366766892373562,
0.04015215486288071,
0.002502602757886052,
0.022304706275463104,
0.007321321405470371,
0.01548068132251501,
0.06457497924566269,
-0.05407647788524628,
-0.0340924933552742,
-0.028880080208182335,
0.02451491542160511,
0.015499099157750607,
-0.016825225204229355,
-0.05934414640069008,
-0.02934054099023342,
0.0036077077966183424,
-0.02033393457531929,
0.006022823043167591,
-0.025380581617355347,
0.023354554548859596,
0.019634034484624863,
0.055218420922756195,
-0.02219419553875923,
0.006607607938349247,
0.055144745856523514,
0.020481282845139503,
-0.0005934184300713241,
-0.03582382574677467,
0.007929129526019096,
-0.035492293536663055,
0.017119919881224632,
0.0022240241523832083,
0.0007033533765934408,
-0.005562362726777792,
0.01700940914452076,
0.041993994265794754,
0.014826827682554722,
0.011226026341319084,
0.022875675931572914,
-0.08332492411136627,
-0.04693013057112694,
-0.01838158257305622,
-0.005985985975712538,
0.008357357233762741,
-0.06682202219963074,
0.035658057779073715,
-0.040520522743463516,
-0.0917237251996994,
0.02593313343822956,
0.014661061577498913,
-0.0007712712977081537,
0.04575135186314583,
-0.02228628657758236,
-0.031182384118437767,
-0.026356756687164307,
0.019339339807629585,
-0.02451491542160511,
0.03482922911643982,
-0.057207610458135605,
-0.006814815104007721,
-0.04273073375225067,
0.004003704059869051,
-0.0186670683324337,
0.008435635827481747,
0.03737097233533859,
0.0694006010890007,
-0.021586386486887932,
-0.003630730789154768,
-0.04670910909771919,
-0.00444344338029623,
-0.01979980058968067,
0.07544184476137161,
0.029764164239168167,
0.032858461141586304,
0.00390240247361362,
-0.020076077431440353,
0.07275275141000748,
0.002015665639191866,
0.006529329344630241,
-0.018934134393930435,
0.10240641236305237,
0.020278679206967354,
0.007454854901880026,
0.004261561669409275,
0.013712513260543346,
0.0032324325293302536,
0.03510550782084465,
-0.046451251953840256,
0.06369089335203171,
-0.02475435473024845,
-0.01595035009086132,
-0.004811812192201614,
-0.04475675895810127,
0.07216336578130722,
-0.013933533802628517,
0.014053253456950188,
-0.04575135186314583,
0.05470270290970802,
0.012911311350762844,
0.021365366876125336,
0.017957959324121475,
0.04512512683868408,
-0.0032324325293302536,
0.04792472720146179,
0.004010610748082399,
-0.024091292172670364,
0.07743103057146072,
-0.02650410495698452,
0.01765405386686325,
0.009780180640518665,
-0.01827107183635235,
0.005106506869196892,
-0.03766566514968872,
-0.020720722153782845,
-0.015167567878961563,
-0.006391191389411688,
0.008113313466310501,
0.05551311373710632,
-0.02147587575018406,
-0.01664104126393795,
0.050392795354127884,
-0.02755395509302616,
-0.11301542073488235,
-0.0010999249061569571,
0.037555158138275146,
-0.004240841139107943,
-0.055144745856523514,
-0.008306707255542278,
-0.050392795354127884,
-0.019578779116272926,
-0.01087607629597187,
-0.04785105213522911,
0.017709309235215187,
-0.006137938238680363,
-0.0010544544784352183,
0.01560960989445448,
-0.02573053166270256,
0.048882484436035156,
0.006160960998386145,
-0.010820820927619934,
0.009955155663192272,
-0.02994835004210472,
-0.002335685770958662,
0.03359519690275192,
0.0011753253638744354,
0.102259062230587,
0.010010411031544209,
0.053229231387376785,
0.016226626932621002,
0.06103863939642906,
0.014808408915996552,
-0.03915755823254585,
0.03278478607535362,
0.06243843957781792,
-0.04427788034081459,
-0.005373573862016201,
0.013159960508346558,
-0.007901501841843128,
0.003237037220969796,
-0.04055735841393471,
0.0669693723320961,
0.01483603660017252,
-0.054481685161590576,
0.07639960199594498,
0.041662462055683136,
0.0397837832570076,
0.019707707688212395,
-0.03234274312853813,
0.0006642142543569207,
0.028217017650604248,
-0.012248248793184757,
-0.017018619924783707,
-0.03004044108092785,
0.026964565739035606,
0.07964124530553818,
0.0009589089313521981,
0.013362563215196133,
-0.02690931037068367,
0.005313714034855366,
0.061996396631002426,
-0.015020220540463924,
-0.0365421436727047,
-0.04435155168175697,
-0.04420420527458191,
-0.01038798876106739,
-0.044830430299043655,
0.014587387442588806,
-0.017764564603567123,
-0.03521601855754852,
-0.021125925704836845,
-0.036431632936000824,
0.006055055186152458,
-0.015812212601304054,
0.0006843594019301236,
0.0052906908094882965,
0.04457257315516472,
0.03195595741271973,
0.012598198838531971,
0.05742863193154335,
0.016456857323646545,
-0.07275275141000748,
-0.011962763033807278,
0.0031840840820223093,
-0.018418418243527412,
-0.03239800035953522,
-0.08332492411136627,
0.0034327327739447355,
0.03462662920355797,
0.05009809881448746,
0.008210009895265102,
-0.00014518894022330642,
-0.01781981997191906,
0.004420420620590448,
-0.02407287433743477,
-0.018169770017266273,
-0.007348949089646339,
0.022304706275463104,
0.03726046159863472,
0.04818258434534073,
-0.0369473472237587,
0.08074634522199631,
-0.03473713994026184,
-0.02994835004210472,
0.04276756942272186,
-0.009121721610426903,
0.017101502045989037,
-0.0026798800099641085,
-0.006824024021625519,
-0.0414046049118042,
-0.018169770017266273,
-0.014532133005559444,
0.04670910909771919,
0.013095496222376823,
-0.0030321322847157717,
-0.007795596029609442,
-0.010949750430881977,
-0.07334214448928833,
-0.05930731073021889,
-0.05831271409988403,
-0.03403723984956741,
-0.0010055305901914835,
-0.009899900294840336,
0.02771972119808197,
-0.005916917230933905,
0.05831271409988403,
-0.004756556823849678,
-0.02346506528556347,
-0.050797998905181885,
-0.043614815920591354,
-0.03893653675913811,
-0.014357157982885838,
-0.013675675727427006,
0.023999199271202087,
-0.03015095181763172,
-0.022396797314286232,
0.027830231934785843,
-0.0430254265666008,
0.000054823576647322625,
0.013915115967392921,
-0.015425425954163074,
0.012008809484541416,
0.0393785797059536,
-0.001997247338294983,
0.013003404252231121,
0.011870671063661575,
-0.013298098929226398,
-0.016373975202441216,
0.0213101115077734,
-0.08384064584970474,
0.02248889021575451,
0.030795596539974213,
0.018519720062613487,
0.035050250589847565,
-0.015453053638339043,
0.04553033038973808,
-0.04015215486288071,
-0.010866867378354073,
0.006082682870328426,
-0.026448849588632584,
0.0009779029060155153,
-0.038015615195035934,
-0.008744144812226295,
0.03284003958106041,
-0.03311631828546524,
-0.015453053638339043,
0.028806407004594803,
-0.052860863506793976,
-0.026522522792220116,
0.009181581437587738,
0.01818818785250187,
0.024588588625192642,
0.016180580481886864,
0.04976656660437584,
0.015535936690866947,
0.011714114807546139,
-0.006662862841039896,
-0.02825385518372059,
-0.024330731481313705,
0.025030631572008133,
-0.002599299419671297,
-0.02114434540271759,
-0.006326727103441954,
0.042362362146377563,
0.060412414371967316,
0.021033834666013718,
-0.03392672911286354,
-0.010305105708539486,
0.07161081582307816,
0.04136776924133301,
0.012450851500034332,
-0.036505308002233505,
0.04637758061289787,
-0.00007140734669519588,
-0.03661581873893738,
-0.06645365804433823,
0.017258059233427048,
0.046046048402786255,
-0.005548548884689808,
0.013380981050431728,
0.05459219217300415,
0.03871551528573036,
-0.00013856982695870101,
0.007864665240049362,
0.01647527515888214,
-0.02926686778664589,
0.0365421436727047,
0.03357677906751633,
0.0336872898042202,
0.04431471601128578,
0.04015215486288071,
0.006998999044299126,
0.03145866096019745,
-0.02565685845911503,
-0.00130885886028409,
-0.02171531692147255,
-0.06973213702440262,
-0.040483683347702026,
0.03085085190832615,
-0.011622022837400436,
-0.0023736737202852964,
-0.003345245262607932,
0.006280680652707815,
0.027296096086502075,
-0.059196799993515015,
0.05569729954004288,
0.1038798838853836,
0.027830231934785843,
0.02212052047252655,
0.050392795354127884,
0.022949350997805595,
-0.037555158138275146,
-0.010599800385534763,
0.02309669740498066,
-0.02077597752213478,
-0.007942942902445793,
-0.022709909826517105,
-0.04659859836101532,
-0.0038218218833208084,
-0.017847448587417603,
0.024220220744609833,
0.05978618934750557,
-0.032895296812057495,
-0.04711431637406349,
0.024625426158308983,
-0.022875675931572914,
0.00681941956281662,
-0.04575135186314583,
0.047224827110767365,
-0.0381629653275013,
0.03930490463972092,
-0.018326327204704285,
0.00016576577036175877,
-0.005382782779633999,
-0.014071672223508358,
-0.03234274312853813,
0.09312352538108826,
-0.0075837839394807816,
-0.012018018402159214,
-0.005451851990073919,
-0.004213213454931974,
-0.0067641641944646835,
0.023446647450327873,
-0.017258059233427048,
0.10115395486354828,
-0.08516676723957062,
0.021199600771069527,
0.017718518152832985,
-0.022175775840878487,
-0.08369329571723938,
-0.011354954913258553,
-0.0414046049118042,
-0.018611812964081764,
0.026209410279989243,
0.04855095222592354,
-0.011133934371173382,
-0.010203803889453411,
0.01483603660017252,
-0.01485445536673069,
-0.051645245403051376,
-0.02086806856095791,
-0.017239639535546303,
-0.07341581583023071,
-0.0454566590487957,
0.06556957215070724,
0.006579980254173279,
0.025951553136110306,
0.023151952773332596,
-0.030169369652867317,
0.09842803329229355,
-0.029045846313238144,
-0.01741461455821991,
-0.03742622584104538,
0.000722347351256758,
0.01720280386507511,
-0.020665466785430908,
0.039710111916065216,
-0.011023423634469509,
0.03982062265276909,
0.008536937646567822,
0.04700380563735962,
-0.006893093232065439,
-0.017230430617928505,
-0.04593553766608238,
0.08737698197364807,
0.02410971000790596,
-0.007988989353179932,
0.05698658898472786,
0.010010411031544209,
-0.10336416959762573,
-0.051645245403051376,
-0.03263743966817856,
-0.03088768944144249,
-0.014384785667061806,
0.028603805229067802,
-0.022433634847402573,
-0.03982062265276909,
-0.016042442992329597,
0.04457257315516472,
0.027701301500201225,
-0.0499139167368412,
-0.009476276114583015,
0.042436037212610245,
0.05263984203338623,
-0.020241841673851013,
0.0009439439745619893,
-0.00878558587282896,
-0.006616816855967045,
0.030666667968034744,
0.03722362592816353,
0.06483283638954163,
0.017957959324121475,
-0.036431632936000824,
0.02329929918050766,
0.016502903774380684,
-0.04295175150036812,
0.008186987601220608,
-0.009513113647699356,
0.0180684681981802,
-0.04173613712191582,
-0.06243843957781792,
0.0016519019845873117,
-0.013528328388929367,
-0.013113914057612419,
-0.021899500861763954,
-0.008532332256436348,
0.039710111916065216,
0.0021089089568704367,
-0.0018786786822602153,
0.0003217467456124723,
0.04914034157991409,
0.005939939990639687,
0.011612812988460064,
-0.007049649953842163,
-0.022544145584106445,
0.03864184394478798,
0.027388188987970352,
-0.003904704935848713,
0.006667467765510082,
-0.02259940095245838,
0.06254895031452179,
0.03155075013637543,
0.01493733748793602,
0.010406406596302986,
0.04110991209745407,
-0.06914274394512177,
-0.015453053638339043,
0.014126927591860294,
0.00021037287660874426,
0.09842803329229355,
0.04026266559958458,
0.04114674776792526,
0.029211612418293953,
-0.04092572629451752,
0.04077837988734245,
0.0006037788116373122,
-0.017340941354632378,
0.059970371425151825,
0.06516436487436295,
-0.06667467951774597,
0.002218268346041441,
-0.028198599815368652,
-0.03479239344596863,
0.05190310627222061,
0.009918319061398506,
0.054481685161590576,
-0.020647047087550163,
-0.011861462146043777,
0.034681882709264755,
0.017184384167194366,
0.03011411428451538,
-0.030998198315501213,
0.009955155663192272,
-0.01008408423513174,
0.020076077431440353,
-0.017340941354632378,
-0.040520522743463516,
-0.0746682733297348,
0.02178899012506008,
0.03307947888970375,
-0.006160960998386145,
0.06247527897357941,
-0.01736856997013092,
0.012496897019445896,
0.03582382574677467,
0.05090850964188576
] |
21,151 | tfields.bounding_box | _trim_to_box | null | def _trim_to_box(self):
# 6 cuts to remove outer part of the box
x, y, z = sympy.symbols("x y z")
eps = 0.0000000001
x_cut = (float(self.box["x"][0] - eps) <= x) & (
x <= float(self.box["x"][1] + eps)
)
y_cut = (float(self.box["y"][0] - eps) <= y) & (
y <= float(self.box["y"][1] + eps)
)
z_cut = (float(self.box["z"][0] - eps) <= z) & (
z <= float(self.box["z"][1] + eps)
)
section_cut = x_cut & y_cut & z_cut
self.mesh, self._internal_template = self.mesh.cut(
section_cut, at_intersection=self.at_intersection, return_template=True
)
| (self) | [
0.03933701664209366,
0.062765933573246,
-0.030308565124869347,
-0.03218010440468788,
-0.03951030597090721,
-0.0063424441032111645,
-0.029736705124378204,
-0.01721644215285778,
-0.03145228326320648,
0.004169810563325882,
-0.01734641194343567,
0.0136033296585083,
-0.08893284946680069,
-0.056804731488227844,
-0.05049694702029228,
0.01278886292129755,
0.013456032611429691,
-0.025283129885792732,
0.06418692320585251,
-0.023411590605974197,
0.004104826133698225,
-0.069281667470932,
0.018802054226398468,
0.07389120757579803,
0.05268041044473648,
-0.033219851553440094,
0.006047849543392658,
-0.015102295204997063,
0.04158979654312134,
-0.010414778254926205,
-0.038990434259176254,
0.019252609461545944,
0.017103804275393486,
-0.006814661435782909,
0.042178984731435776,
-0.018316838890314102,
0.06515734642744064,
-0.000399381184251979,
0.031382966786623,
0.046788521111011505,
-0.005878891330212355,
0.01999776065349579,
-0.02398344874382019,
0.03462350741028786,
0.024832574650645256,
-0.042941465973854065,
0.08103078603744507,
0.0005068756290711462,
0.0034874777775257826,
0.05742857977747917,
-0.030897753313183784,
-0.005285370163619518,
0.0725741982460022,
0.039960864931344986,
-0.01923528127372265,
-0.06040918081998825,
-0.017459049820899963,
0.02089887298643589,
0.02753591164946556,
0.032058801501989365,
-0.04235227778553963,
0.02819441631436348,
0.015994742512702942,
-0.02289171703159809,
0.031694892793893814,
-0.020586948841810226,
-0.02750125341117382,
0.033583760261535645,
-0.0015704480465501547,
0.012061040848493576,
-0.0282983910292387,
0.03167756274342537,
0.041312530636787415,
0.026062939316034317,
0.027293303981423378,
-0.07181171327829361,
0.024104753509163857,
0.013326063752174377,
0.039059750735759735,
-0.06099836900830269,
0.03294258564710617,
0.008807506412267685,
-0.06189947947859764,
0.04176308959722519,
0.028142429888248444,
0.05583430081605911,
-0.0004952326999045908,
0.02325562760233879,
0.028142429888248444,
-0.02985800802707672,
0.029147516936063766,
0.027414608746767044,
-0.03323717787861824,
-0.010570740327239037,
0.011194586753845215,
0.0024022439029067755,
0.01572614163160324,
-0.06397897005081177,
-0.042976122349500656,
-0.02043098770081997,
0.021799985319375992,
0.061518240720033646,
-0.10168705135583878,
0.006095504853874445,
0.023428918793797493,
0.05947341024875641,
0.031764209270477295,
-0.05625019967556,
-0.03815864026546478,
0.038990434259176254,
0.04110458120703697,
0.016194026917219162,
-0.12428417801856995,
0.04387723654508591,
-0.05112079158425331,
-0.02050030417740345,
-0.060027942061424255,
-0.02100284770131111,
-0.0008361281943507493,
-0.05209122225642204,
0.02859298512339592,
-0.04668454825878143,
-0.007711441721767187,
-0.014487112872302532,
-0.038990434259176254,
0.04474369063973427,
0.013620658777654171,
0.03469282388687134,
-0.03015260212123394,
-0.028800934553146362,
-0.025231143459677696,
-0.0167832151055336,
-0.020379001274704933,
-0.03815864026546478,
-0.09801328927278519,
0.01328274141997099,
-0.037534791976213455,
-0.017900941893458366,
0.017692992463707924,
0.014799036085605621,
-0.00832662358880043,
0.027483923360705376,
-0.012061040848493576,
-0.010007545351982117,
-0.04314941540360451,
0.004986443556845188,
0.003671599319204688,
-0.03853987902402878,
0.023636868223547935,
-0.00006325791764538735,
-0.0711185559630394,
0.0457141175866127,
0.03857453539967537,
-0.009028451517224312,
-0.002896122867241502,
0.006277460139244795,
0.02216389589011669,
-0.07354462146759033,
0.02434736117720604,
0.02209457941353321,
-0.038227956742048264,
0.001905116019770503,
0.010137513279914856,
-0.019616520032286644,
0.00019278604304417968,
-0.039059750735759735,
0.062107428908348083,
-0.06027054786682129,
-0.025491079315543175,
0.011012631468474865,
-0.02361953817307949,
0.02235451526939869,
-0.07645591348409653,
0.046130016446113586,
-0.06325115263462067,
0.011740453541278839,
-0.011593155562877655,
0.001227115630172193,
-0.00742984376847744,
-0.050635576248168945,
-0.023342274129390717,
-0.020725581794977188,
0.03729218617081642,
0.04786292463541031,
-0.005449996329843998,
-0.02507518231868744,
0.04249091073870659,
-0.049110617488622665,
0.004527222830802202,
-0.05316562578082085,
-0.03937167301774025,
0.0014892179751768708,
0.024953877553343773,
0.011783775873482227,
-0.0006807080353610218,
-0.007200233638286591,
0.058329690247774124,
0.0030910749919712543,
-0.04411984235048294,
-0.05583430081605911,
-0.07389120757579803,
-0.04803621396422386,
-0.009461678564548492,
-0.0301179438829422,
0.015769464895129204,
-0.02365419641137123,
-0.005978533532470465,
0.005692603532224894,
0.03618312254548073,
0.056770071387290955,
-0.00047357133007608354,
-0.008166329935193062,
0.026877406984567642,
0.03153892979025841,
0.00708326231688261,
0.00694896187633276,
-0.02862764336168766,
-0.00616915337741375,
0.06682094186544418,
0.024832574650645256,
-0.08865558356046677,
-0.00829196535050869,
-0.034744810312986374,
-0.029147516936063766,
-0.043599970638751984,
0.03951030597090721,
0.01947788894176483,
0.03573256731033325,
0.020015090703964233,
-0.07139582186937332,
0.060755763202905655,
-0.03618312254548073,
-0.07153444737195969,
-0.04224830120801926,
-0.028419693931937218,
-0.001987429102882743,
-0.035871200263500214,
-0.05975067615509033,
0.030325893312692642,
-0.05025433748960495,
0.0384705625474453,
-0.06879645586013794,
-0.033757053315639496,
0.0402727872133255,
0.04093129187822342,
0.014053885824978352,
-0.04796689748764038,
0.02732796221971512,
0.04013415426015854,
0.02895689569413662,
-0.01701715774834156,
0.005618955008685589,
-0.009167084470391273,
0.030048629269003868,
0.05645814910531044,
0.016566602513194084,
-0.009045780636370182,
-0.055175796151161194,
0.006273127626627684,
0.0035481294617056847,
0.01492900401353836,
-0.04401586949825287,
0.06955893337726593,
0.01302280556410551,
0.0838034376502037,
0.008720860816538334,
-0.03704957664012909,
0.03353177383542061,
0.004687516484409571,
-0.012667559087276459,
0.005930878221988678,
-0.03058582916855812,
0.042837489396333694,
0.016540609300136566,
0.008647211827337742,
0.013975904323160648,
0.017138462513685226,
0.046719204634428024,
0.02644417993724346,
0.002880960004404187,
0.005298366770148277,
0.02623623050749302,
-0.020950859412550926,
-0.02173066884279251,
-0.01217368058860302,
-0.03715355321764946,
0.02289171703159809,
-0.07735702395439148,
0.0021195632871240377,
-0.03472748026251793,
-0.08186258375644684,
0.014764377847313881,
0.029806021600961685,
-0.04457039758563042,
0.01406254991889,
-0.005324360448867083,
-0.0457141175866127,
-0.05590361729264259,
0.017129797488451004,
-0.04152048006653786,
0.057567209005355835,
-0.027189329266548157,
-0.03476214036345482,
0.030308565124869347,
0.02391413412988186,
0.06027054786682129,
-0.030464526265859604,
0.014773042872548103,
0.051467373967170715,
-0.03254401683807373,
-0.010960644111037254,
-0.08040694147348404,
-0.00019535832689143717,
-0.054690584540367126,
0.09357704222202301,
0.09697354584932327,
0.03895577788352966,
0.006836323067545891,
-0.03611380606889725,
0.03659902140498161,
0.02093353122472763,
-0.05025433748960495,
0.010137513279914856,
0.04547151178121567,
0.0023805827368050814,
-0.06300853937864304,
-0.03389568626880646,
0.008036362007260323,
-0.04193637892603874,
0.031694892793893814,
-0.04633796587586403,
0.08387275785207748,
-0.03646038845181465,
0.021176138892769814,
0.010943314991891384,
-0.0002140412398148328,
0.06938564777374268,
0.018559446558356285,
-0.005761920008808374,
-0.018819382414221764,
0.045332878828048706,
0.012892836704850197,
0.05177929624915123,
0.02637486346065998,
0.06408294290304184,
0.026825418695807457,
-0.018750065937638283,
-0.02235451526939869,
-0.0170518159866333,
0.031175019219517708,
0.007217562757432461,
0.008967800065875053,
0.07479231804609299,
-0.04339202120900154,
-0.00329252565279603,
-0.026062939316034317,
0.002722832141444087,
-0.005129408091306686,
-0.005484654568135738,
0.010692043229937553,
0.07285146415233612,
0.0067323483526706696,
-0.004817484878003597,
0.020049747079610825,
0.017155790701508522,
-0.04630330577492714,
-0.01273687556385994,
0.018438143655657768,
-0.03895577788352966,
0.017736315727233887,
-0.021176138892769814,
-0.03519536554813385,
-0.027449266985058784,
-0.03269997611641884,
0.013577335514128208,
0.021574707701802254,
-0.037396159023046494,
-0.002757490146905184,
0.01754569634795189,
0.05673541501164436,
0.024122081696987152,
0.019200623035430908,
-0.020656265318393707,
0.010354126803576946,
-0.024243386462330818,
0.003162557492032647,
-0.042837489396333694,
-0.013248083181679249,
0.046026043593883514,
0.014001898467540741,
0.023480907082557678,
0.01871540956199169,
0.05108613520860672,
0.023792829364538193,
0.032492030411958694,
0.026825418695807457,
-0.02209457941353321,
-0.025023194029927254,
0.016436634585261345,
0.05968135967850685,
-0.04103526473045349,
0.008898483589291573,
-0.02228519879281521,
0.05496784672141075,
0.01612471044063568,
-0.07506958395242691,
0.016367318108677864,
-0.006047849543392658,
0.07999104261398315,
-0.01883671246469021,
0.01821286603808403,
-0.005372015293687582,
0.027016039937734604,
0.006780003197491169,
0.04269886016845703,
-0.005419670604169369,
0.051536690443754196,
0.013508019968867302,
-0.03850521892309189,
-0.03618312254548073,
0.031400296837091446,
0.001567198894917965,
0.02115880884230137,
-0.0026058608200401068,
-0.018663421273231506,
-0.024208728224039078,
-0.032630663365125656,
-0.049110617488622665,
0.026080269366502762,
-0.017060481011867523,
-0.011905079707503319,
-0.06851918995380402,
-0.02093353122472763,
-0.005549638532102108,
-0.0083439527079463,
0.03732684254646301,
-0.060721103101968765,
-0.03791603073477745,
0.033427800983190536,
0.016930513083934784,
0.009496336802840233,
0.047516342252492905,
-0.031175019219517708,
-0.04640728235244751,
0.009712950326502323,
0.04782826825976372,
-0.054482635110616684,
0.026652127504348755,
-0.0631125196814537,
0.009678292088210583,
0.04342668130993843,
-0.01444378960877657,
-0.0306551456451416,
-0.046719204634428024,
0.024503322318196297,
-0.04186706244945526,
-0.062211405485868454,
-0.01373329758644104,
-0.02640952169895172,
0.01777963899075985,
0.019824469462037086,
-0.0031408960931003094,
-0.0496998056769371,
0.029771363362669945,
-0.004068002104759216,
-0.0005691520636901259,
-0.03611380606889725,
-0.004009516444057226,
0.004860807675868273,
0.015362231060862541,
-0.020413659512996674,
-0.056007593870162964,
-0.03937167301774025,
0.01987645775079727,
0.11700595915317535,
0.02076024003326893,
0.0011063535930588841,
0.008053691126406193,
0.028714289888739586,
0.02325562760233879,
-0.04179774597287178,
-0.015431547537446022,
-0.07305940985679626,
-0.00012550046085380018,
-0.04966514930129051,
0.08068420737981796,
-0.0464419387280941,
0.052611093968153,
0.028506340458989143,
-0.019963102415204048,
-0.03124433569610119,
0.021505391225218773,
-0.05247246101498604,
0.030412539839744568,
-0.015942756086587906,
0.0008025531424209476,
-0.03777739778161049,
0.009964222088456154,
0.04308009892702103,
-0.028419693931937218,
-0.005333025008440018,
0.004648526199162006,
-0.010423443280160427,
-0.007611799519509077,
-0.006199479103088379,
0.0036889284383505583,
-0.03614846616983414,
-0.025387104600667953,
0.03254401683807373,
-0.02013639360666275,
0.03152159973978996,
-0.04200569540262222,
-0.03498741611838341,
0.02006707713007927,
0.015067636966705322,
0.009141091257333755,
-0.01451310608536005,
-0.016999829560518265,
-0.0293901227414608,
-0.031175019219517708,
-0.03346245735883713,
-0.001498965546488762,
-0.0384705625474453,
0.0037105896044522524,
0.004826149437576532,
0.04342668130993843,
0.03545530140399933,
-0.036044489592313766,
0.02677343226969242,
-0.02129744179546833,
0.02271842584013939,
0.003571957116946578,
0.003795068943873048,
0.022562464699149132,
0.010484094731509686,
0.016341324895620346,
-0.04106992483139038,
-0.045263562351465225,
0.021470732986927032,
-0.03646038845181465,
0.010631391778588295,
-0.033947672694921494,
0.03999552130699158,
0.032821282744407654,
-0.04723907634615898,
0.07389120757579803,
0.037465475499629974,
0.021210797131061554,
-0.05340823158621788,
0.024607297033071518,
0.03614846616983414,
0.003301190212368965,
0.03767342492938042,
-0.031175019219517708,
0.05209122225642204,
0.00005912872438784689,
-0.0029611068312078714,
-0.020448317751288414,
-0.01487701665610075,
0.0024715603794902563,
0.0044297464191913605,
0.03490076959133148,
0.08359549194574356,
0.03559393435716629,
-0.031001728028059006,
-0.00028565910179167986,
-0.021089492365717888,
-0.015795458108186722,
0.033219851553440094,
0.030377881601452827,
0.02169601060450077,
0.0355592779815197,
0.013542677275836468,
0.02351556532084942,
0.03389568626880646,
-0.011021296493709087,
-0.0023004356771707535,
0.03443288430571556,
-0.06505337357521057,
-0.015570180490612984,
0.016505951061844826,
-0.045124929398298264,
0.013871930539608002,
-0.07423778623342514,
-0.009392362087965012,
-0.02895689569413662,
-0.03493542969226837,
-0.005718597210943699,
0.02199060469865799,
0.013248083181679249,
0.09960756450891495,
0.06564256548881531,
0.01471239048987627,
0.0017036653589457273,
-0.022943705320358276,
0.005982865579426289,
0.001478387275710702,
-0.023238299414515495,
-0.08207052946090698,
-0.011168593540787697,
-0.0008810755098238587,
0.03299457207322121,
0.0008507496095262468,
0.12088767439126968,
-0.038262613117694855,
0.006208143662661314,
-0.011506510898470879,
-0.04384257644414902,
-0.034554190933704376,
-0.06650901585817337,
0.044466424733400345,
0.018784724175930023,
-0.04193637892603874,
-0.02315165288746357,
-0.008097013458609581,
-0.0002786191471386701,
-0.011584491468966007,
-0.03341047093272209,
0.043807920068502426,
0.00039883964927867055,
-0.012147686444222927,
-0.056804731488227844,
-0.012433616444468498,
0.02024036832153797,
0.06356307119131088,
-0.016012072563171387,
0.08338754624128342,
-0.02680809050798416,
0.02826373279094696,
0.041485823690891266,
-0.019113978371024132,
-0.05326959863305092,
0.008196655660867691,
-0.012797527015209198,
-0.04588741064071655,
0.06803397834300995,
-0.024555308744311333,
0.0063554407097399235,
-0.03968359902501106,
0.02162669412791729,
0.05798310786485672,
-0.035905856639146805,
0.014218511991202831,
0.021210797131061554,
-0.012217002920806408,
-0.04169377312064171,
0.042768172919750214,
-0.010726701468229294,
-0.018732737749814987,
0.006680360995233059,
-0.011766446754336357,
0.0511554516851902,
-0.0086602084338665,
-0.03725752606987953,
-0.03131365031003952,
-0.00794538389891386,
0.022215884178876877,
0.008053691126406193,
0.008274637162685394,
-0.007590137887746096,
0.014851023443043232,
-0.023498235270380974,
-0.02368885464966297,
-0.01416652463376522,
0.04956117644906044,
-0.019755152985453606,
0.043703943490982056,
0.015362231060862541,
-0.017303088679909706,
0.056076910346746445,
0.04876403883099556,
-0.07853540033102036,
-0.033982329070568085,
-0.051502030342817307,
-0.052611093968153,
-0.02282240055501461,
0.011627813801169395,
0.012892836704850197,
-0.010856670327484608,
-0.017736315727233887,
-0.007724438328295946,
-0.054517291486263275,
-0.01828218251466751,
-0.010951980017125607,
0.021176138892769814,
0.032422713935375214,
-0.04935322701931,
0.01464307401329279,
-0.03576722368597984,
0.05198724567890167,
0.007702777162194252,
-0.007681115530431271,
0.027258645743131638,
0.024243386462330818,
-0.01672256365418434,
-0.010068196803331375,
0.05569567158818245,
-0.00658505130559206,
0.04963049292564392,
-0.005761920008808374,
0.031330980360507965,
-0.041381847113370895,
-0.07319804280996323,
0.004243459086865187,
-0.012424951419234276,
0.01175778266042471,
0.03190283849835396,
0.0037907366640865803,
0.012996811419725418,
0.015830116346478462,
0.027951808646321297,
0.016298001632094383,
0.009236400946974754,
0.017866283655166626,
0.04942254349589348,
0.06744478642940521,
-0.04741236940026283,
0.030932411551475525,
0.029667388647794724,
-0.029407452791929245,
-0.0013754959218204021,
0.040688686072826385,
-0.013508019968867302,
-0.006654367316514254,
0.020275026559829712,
0.05268041044473648,
-0.031660232692956924,
-0.02322096936404705,
-0.053754813969135284,
0.03538598492741585,
0.013066127896308899,
0.06955893337726593,
0.02292637526988983,
0.06782602518796921,
0.033722393214702606,
0.0017946431180462241,
0.012303648516535759,
0.007533818483352661,
-0.05801776796579361,
-0.03297724202275276,
-0.0034506535157561302,
-0.07943651080131531,
0.0486254058778286,
-0.017935600131750107,
-0.026946723461151123,
0.02238917350769043,
0.024260714650154114,
0.01654927432537079,
-0.01416652463376522,
-0.005649280734360218,
0.027622556313872337,
0.05628485977649689,
0.03708423674106598,
0.000638468365650624,
-0.01253759115934372,
0.000164761659107171,
0.011385207064449787,
-0.027951808646321297,
-0.008811837993562222,
-0.024208728224039078,
-0.01937391422688961,
0.010102855041623116,
-0.019460558891296387,
0.07201966643333435,
-0.00048358968342654407,
0.012268990278244019,
0.03299457207322121,
0.0266694575548172
] |
21,152 | tfields.bounding_box | find_leaf |
Returns:
Node / None:
Node: leaf note, containinig point
None: point outside root box
| def find_leaf(self, point, _in_recursion=False):
"""
Returns:
Node / None:
Node: leaf note, containinig point
None: point outside root box
"""
x, y, z = point
if self.is_root():
if not self.in_box(point):
return None
else:
if not _in_recursion:
raise RuntimeError("Only root node can search for all leaves")
if self.is_leaf():
return self
if len(self.cut_expr) > 1:
raise ValueError("cut_expr is too long")
key = list(self.cut_expr)[0]
value = locals()[key]
if value <= self.cut_expr[key]:
return self.left.find_leaf(point, _in_recursion=True)
return self.right.find_leaf(point, _in_recursion=True)
| (self, point, _in_recursion=False) | [
0.007317041978240013,
-0.024153342470526695,
0.025574127212166786,
0.05509093403816223,
-0.011694835498929024,
0.014989280141890049,
-0.01902075670659542,
-0.012414108030498028,
-0.019482512027025223,
-0.05438053980469704,
-0.013737213797867298,
0.018434682860970497,
-0.05075753852725029,
-0.0251301322132349,
-0.02445525862276554,
-0.009687976911664009,
0.0006826427415944636,
-0.010913403704762459,
-0.026124682277441025,
0.016960619017481804,
-0.011623796075582504,
0.011748114600777626,
0.07970602810382843,
0.03147038444876671,
-0.018789879977703094,
-0.016960619017481804,
0.030351515859365463,
0.03486250713467598,
0.0024708337150514126,
-0.00553662097081542,
-0.08773346245288849,
-0.006162654142826796,
-0.05196520686149597,
-0.043120820075273514,
-0.0016383425099775195,
-0.014580804854631424,
0.04510992020368576,
0.04393777251243591,
0.014580804854631424,
-0.018434682860970497,
-0.049834027886390686,
-0.005168105009943247,
-0.048946037888526917,
0.04489680007100105,
-0.03179006278514862,
-0.03743768110871315,
0.06691896915435791,
0.03608793392777443,
-0.010948923416435719,
0.02024618349969387,
-0.043618094176054,
0.013231058605015278,
-0.00995437428355217,
-0.0308487918227911,
-0.023744866251945496,
-0.08332902938127518,
0.01365729421377182,
-0.01962459087371826,
0.023158792406320572,
0.052071765065193176,
0.008680107071995735,
0.06524954736232758,
0.01008757296949625,
0.002905949018895626,
0.010078692808747292,
-0.0011821374064311385,
-0.036869365721940994,
-0.00964357703924179,
-0.031630221754312515,
0.038893986493349075,
-0.012058911845088005,
-0.00971461646258831,
0.007552359718829393,
0.045145437121391296,
0.03225181624293327,
-0.09320348501205444,
0.047454215586185455,
-0.009101903066039085,
0.004772949032485485,
0.03546634316444397,
-0.0013552955351769924,
-0.027083711698651314,
0.014714003540575504,
0.00011821374209830537,
-0.0014840541407465935,
0.05747074633836746,
0.0707906037569046,
0.029037291184067726,
0.0337081216275692,
0.022199762985110283,
-0.00275277066975832,
0.015264557674527168,
-0.0010944483801722527,
0.012920262292027473,
0.03397451713681221,
-0.007312601897865534,
0.048875000327825546,
0.052071765065193176,
-0.0222175233066082,
-0.017493413761258125,
0.004688589833676815,
0.05945984646677971,
-0.03385020047426224,
-0.011419557966291904,
0.018665561452507973,
0.03374364227056503,
0.020743459463119507,
-0.0046308706514537334,
-0.04635310545563698,
0.029925281181931496,
-0.04830668494105339,
-0.023194313049316406,
-0.03070671297609806,
0.021382812410593033,
-0.038965024054050446,
0.06372220069169998,
-0.051325853914022446,
-0.002715031150728464,
-0.07686445862054825,
-0.061662063002586365,
0.07025781273841858,
-0.019127316772937775,
-0.05359910801053047,
-0.018257085233926773,
-0.011961232870817184,
-0.0012143270578235388,
0.04098964482545853,
0.01875435933470726,
-0.03358380123972893,
-0.006508970633149147,
0.0716075599193573,
0.07061300426721573,
-0.0032012059818953276,
-0.0028837493155151606,
-0.034347474575042725,
0.01410129014402628,
-0.0034076636657118797,
-0.007166083436459303,
-0.07004469633102417,
-0.01855900138616562,
0.022998955100774765,
-0.0246683768928051,
0.033530522137880325,
-0.03154142573475838,
-0.04471920430660248,
0.0023953544441610575,
-0.03729560226202011,
-0.03637209162116051,
0.03267805278301239,
0.01359513495117426,
0.007885356433689594,
-0.026888353750109673,
0.0029459085781127214,
0.027154751121997833,
0.013062341138720512,
-0.006722088437527418,
0.036656249314546585,
-0.04599791020154953,
-0.0255386084318161,
-0.014536404982209206,
-0.02473941631615162,
0.01548655517399311,
-0.03184334188699722,
-0.019056277349591255,
-0.026533156633377075,
-0.0029969681054353714,
-0.027012672275304794,
-0.014864961616694927,
0.03157694265246391,
0.032571494579315186,
0.014598564244806767,
0.038290150463581085,
-0.08759138733148575,
0.09171166270971298,
-0.05470021814107895,
-0.016605423763394356,
-0.01969563029706478,
0.0073481216095387936,
0.009190701879560947,
-0.018328124657273293,
-0.020263943821191788,
-0.020707938820123672,
0.038005996495485306,
-0.022306323051452637,
0.006873046979308128,
-0.019962027668952942,
0.01083348412066698,
-0.004657510202378035,
-0.03726008161902428,
0.017564453184604645,
-0.07942187041044235,
-0.012858103029429913,
0.05651171877980232,
0.006562250200659037,
-0.01410129014402628,
0.005643179640173912,
0.02452629804611206,
0.07096820324659348,
-0.05196520686149597,
0.009261741302907467,
-0.005141464993357658,
0.00951037835329771,
0.020672420039772987,
-0.029712162911891937,
-0.008884345181286335,
0.036514170467853546,
0.0003518662415444851,
0.055978924036026,
-0.023460710421204567,
0.02784738317131996,
-0.052355922758579254,
-0.015744071453809738,
-0.04265906661748886,
0.06816215068101883,
-0.026621956378221512,
-0.0015240138163790107,
-0.12353724241256714,
-0.006229253485798836,
-0.00032800150802358985,
0.00704620499163866,
-0.029587844386696815,
-0.0036052416544407606,
0.0566893145442009,
0.041486918926239014,
0.019997546449303627,
-0.004866187926381826,
0.07061300426721573,
0.016463344916701317,
0.056973472237586975,
-0.07927979528903961,
0.0011899073142558336,
-0.03935573995113373,
-0.018257085233926773,
-0.03988853469491005,
-0.010309570468962193,
-0.05651171877980232,
0.01637454517185688,
0.006735408212989569,
0.02630227990448475,
-0.022306323051452637,
0.02880641259253025,
-0.04777389019727707,
-0.01651662401854992,
-0.020494822412729263,
0.01692510023713112,
0.02411782369017601,
0.019393714144825935,
0.04368913546204567,
0.03683384880423546,
0.01678302139043808,
-0.038077034056186676,
-0.03239389508962631,
0.000386830884963274,
-0.00034437383874319494,
0.05196520686149597,
-0.05658275634050369,
-0.004835108295083046,
-0.015273436903953552,
0.015539834275841713,
0.06798455864191055,
-0.008768906816840172,
0.012689384631812572,
0.09249309450387955,
0.010700286366045475,
-0.0321807786822319,
-0.0377928763628006,
-0.03191437944769859,
-0.004826228599995375,
0.02562740631401539,
-0.013852652162313461,
0.03186110034584999,
-0.035910338163375854,
0.02337191067636013,
0.015273436903953552,
-0.014492006041109562,
-0.009044183418154716,
-0.007343681529164314,
0.061591025441884995,
-0.0007747717318125069,
-0.015930550172924995,
-0.02676403522491455,
0.0017104917205870152,
-0.005061545874923468,
0.04812908545136452,
-0.09135646373033524,
-0.03337068483233452,
0.015832871198654175,
0.015308956615626812,
0.007818756625056267,
-0.028096020221710205,
-0.05729315057396889,
-0.004417752847075462,
-0.0300318393856287,
-0.00800523441284895,
0.009217341430485249,
0.012778183445334435,
0.017227016389369965,
-0.060987189412117004,
0.021169694140553474,
0.005803018342703581,
0.019198356196284294,
-0.05857185646891594,
0.001823710510507226,
-0.02445525862276554,
0.02493477426469326,
0.045891351997852325,
0.003327744547277689,
-0.02317655272781849,
0.04546511545777321,
-0.003123506670817733,
-0.02283911593258381,
-0.00552330119535327,
0.08133993297815323,
-0.048413243144750595,
-0.021169694140553474,
-0.039853014051914215,
0.005985056050121784,
-0.05558820813894272,
0.004586471244692802,
-0.007570119109004736,
0.006460131146013737,
0.02358502894639969,
0.004095856565982103,
0.043653614819049835,
0.028824172914028168,
0.006313612684607506,
-0.001367505406960845,
0.027279069647192955,
-0.003887178609147668,
0.005816338118165731,
0.0018115007551386952,
0.013905932195484638,
0.03321084752678871,
-0.010425008833408356,
-0.03253597393631935,
0.010931163094937801,
0.02880641259253025,
0.06880150735378265,
-0.01531783677637577,
-0.023336391896009445,
0.020441541448235512,
0.021826807409524918,
0.015717431902885437,
-0.012716024182736874,
0.03106190823018551,
0.06514298915863037,
0.041948672384023666,
0.00266841147094965,
0.03537754341959953,
0.07878252118825912,
-0.02317655272781849,
0.00964357703924179,
0.008360430598258972,
-0.07125236093997955,
-0.03406331688165665,
-0.016605423763394356,
0.033530522137880325,
-0.013239938765764236,
-0.022714797407388687,
0.03372588008642197,
0.1143021434545517,
-0.056085482239723206,
-0.057648345828056335,
-0.004135815892368555,
-0.05313735455274582,
0.009190701879560947,
-0.04340497776865959,
0.05850081518292427,
0.02955232560634613,
-0.011499477550387383,
0.003929357975721359,
-0.056440677493810654,
-0.025733966380357742,
-0.010389489121735096,
0.018381403759121895,
0.044470567256212234,
0.0015872830990701914,
0.012582825496792793,
0.018985237926244736,
0.056973472237586975,
0.022395120933651924,
-0.002843789756298065,
-0.0071350038051605225,
-0.02010410651564598,
-0.009421579539775848,
-0.0065400502644479275,
-0.0007370321545749903,
-0.009306141175329685,
0.05274663865566254,
0.032038699835538864,
-0.004260134417563677,
0.01512247882783413,
0.036123454570770264,
0.02207544445991516,
-0.04152243584394455,
0.005314623471349478,
0.0783562883734703,
-0.01704941876232624,
0.0003343839489389211,
0.0354485809803009,
-0.001987988827750087,
0.04461264610290527,
-0.04578479379415512,
-0.025911564007401466,
0.056085482239723206,
-0.01586839184165001,
0.014829441905021667,
-0.023656068369746208,
0.00007978040230227634,
-0.0039360178634524345,
-0.04113171994686127,
-0.02310551330447197,
0.0444350466132164,
0.015229037962853909,
0.023336391896009445,
-0.0402437299489975,
0.0774327740073204,
0.049230195581912994,
-0.013905932195484638,
-0.06397084146738052,
0.009070822969079018,
-0.09895766526460648,
-0.014234487898647785,
0.028646575286984444,
0.001186577370390296,
0.04994058609008789,
-0.007685557939112186,
-0.04368913546204567,
-0.02452629804611206,
0.04638862609863281,
-0.06620857119560242,
-0.08503397554159164,
-0.050437863916158676,
-0.009439339861273766,
-0.008360430598258972,
0.003436523489654064,
-0.03186110034584999,
-0.043049782514572144,
-0.015903910622000694,
0.04763181135058403,
0.013905932195484638,
0.06968949735164642,
-0.01596606895327568,
0.0164455845952034,
0.0014685143250972033,
0.017058297991752625,
0.027403388172388077,
-0.0024708337150514126,
-0.03757975995540619,
-0.043049782514572144,
0.03310428559780121,
-0.046033430844545364,
0.011588276363909245,
-0.03106190823018551,
-0.0035985817667096853,
-0.04479024186730385,
-0.1810079962015152,
-0.001006759237498045,
0.05203624442219734,
0.0626210942864418,
-0.0036962605081498623,
0.008555788546800613,
0.021436091512441635,
0.03361932188272476,
-0.030156157910823822,
-0.06286972761154175,
0.004866187926381826,
0.005430062301456928,
-0.007112804334610701,
-0.06844630837440491,
-0.005731978919357061,
-0.04638862609863281,
-0.10222546756267548,
0.0002863769477698952,
0.0501537062227726,
0.009972133673727512,
-0.00048423235421068966,
-0.001993538811802864,
0.011082122102379799,
-0.03711800277233124,
-0.07217586785554886,
-0.027740824967622757,
-0.019127316772937775,
-0.030120639130473137,
-0.03560842201113701,
-0.031026389449834824,
-0.06461019068956375,
0.05022474378347397,
-0.023620547726750374,
-0.0006310282624326646,
-0.03507562726736069,
0.036798328161239624,
0.00025585226831026375,
0.01800844818353653,
0.003127946751192212,
0.010718045756220818,
0.0044399527832865715,
0.023531749844551086,
0.009288380853831768,
-0.017155976966023445,
-0.0025951522402465343,
0.020210664719343185,
-0.027740824967622757,
0.014154569245874882,
0.011925713159143925,
0.027367867529392242,
-0.012778183445334435,
0.02481045573949814,
0.008791106753051281,
0.026479877531528473,
0.048413243144750595,
-0.01863004080951214,
0.04084756597876549,
0.03946229815483093,
-0.02894849143922329,
0.08666787296533585,
0.06546266376972198,
0.020370502024888992,
-0.030724473297595978,
-0.00003453104000072926,
-0.004375573247671127,
-0.021436091512441635,
0.03429419547319412,
-0.03464939072728157,
0.02962336502969265,
0.04180659353733063,
0.049230195581912994,
0.00961693748831749,
-0.024348700419068336,
0.03306876868009567,
-0.012760424055159092,
0.0005882937111891806,
0.001195457298308611,
-0.0006815327215008438,
-0.0070906043983995914,
0.03804151341319084,
-0.007641158532351255,
0.020938817411661148,
0.034951306879520416,
-0.0308487918227911,
-0.0018070607911795378,
-0.05715107172727585,
0.046921420842409134,
0.0426945835351944,
-0.02269703894853592,
-0.002699491335079074,
0.031168468296527863,
-0.002304335357621312,
-0.007765477057546377,
0.003611901542171836,
0.11955904960632324,
0.002985868137329817,
0.09888662397861481,
0.012858103029429913,
0.04539407789707184,
-0.006007255986332893,
0.0141989691182971,
0.025574127212166786,
-0.0071749635972082615,
0.02546756900846958,
-0.06606649607419968,
0.040883082896471024,
0.07643822580575943,
0.009439339861273766,
-0.026177961379289627,
-0.04763181135058403,
-0.06244349479675293,
-0.02012186497449875,
0.02663971669971943,
0.012929142452776432,
0.024473018944263458,
0.07309938222169876,
0.0036385413259267807,
-0.0591401681303978,
-0.0046708304435014725,
0.012556185945868492,
-0.03500458598136902,
0.007703317794948816,
-0.06759384274482727,
-0.00345650315284729,
-0.025396529585123062,
-0.046992458403110504,
-0.040527887642383575,
0.03273133188486099,
-0.035839296877384186,
0.039781976491212845,
-0.020406022667884827,
0.0015340036479756236,
-0.061875179409980774,
0.05594340339303017,
0.03825463354587555,
0.006429051514714956,
0.028024980798363686,
-0.025289971381425858,
0.0057142190635204315,
-0.02214648388326168,
-0.03857430815696716,
0.0053368229418993,
0.05871393531560898,
-0.0486263632774353,
0.003913818392902613,
0.004240154754370451,
-0.03340620547533035,
0.045216478407382965,
-0.03234061598777771,
0.013053460977971554,
-0.025378769263625145,
0.0020912177860736847,
-0.0584297776222229,
-0.03715352341532707,
0.022572718560695648,
-0.0002949793706648052,
0.004022597335278988,
0.013719453476369381,
-0.06699000298976898,
-0.01104660239070654,
0.025911564007401466,
0.012085551396012306,
-0.018043966963887215,
-0.008120673708617687,
-0.03580377995967865,
0.0020512582268565893,
0.040350291877985,
-0.017946287989616394,
0.018257085233926773,
-0.06450363248586655,
0.0783562883734703,
-0.07828524708747864,
0.01103772222995758,
0.05729315057396889,
-0.005962856579571962,
0.049230195581912994,
-0.04464816302061081,
-0.037473201751708984,
-0.03198542073369026,
0.005043786484748125,
0.02974768355488777,
-0.009004224091768265,
-0.038361191749572754,
0.04166451469063759,
-0.02948128618299961,
-0.0020512582268565893,
-0.02481045573949814,
-0.02358502894639969,
0.06112926825881004,
0.01121532078832388,
0.03479146957397461,
0.010265170596539974,
0.010353969410061836,
-0.017635492607951164,
-0.013497455976903439,
0.03797047585248947,
0.010336210019886494,
0.027989462018013,
0.062194857746362686,
-0.008791106753051281,
0.010540448129177094,
0.059957120567560196,
0.004555391613394022,
-0.010629246942698956,
-0.0012664964888244867,
-0.05715107172727585,
-0.06595993787050247,
-0.013781612738966942,
-0.061591025441884995,
0.007823196239769459,
-0.008857705630362034,
-0.013319858349859715,
-0.09064607322216034,
0.05530405044555664,
0.03669176995754242,
-0.04479024186730385,
-0.014261128380894661,
-0.02534325048327446,
0.0016827420331537724,
-0.0944821909070015,
-0.02125849388539791,
0.008324910886585712,
-0.005976176355034113,
-0.02990752086043358,
0.020299464464187622,
0.012494026683270931,
-0.004286774434149265,
0.05562372878193855,
0.05345702916383743,
0.07729069888591766,
-0.016916219145059586,
-0.008045194670557976,
0.0017515612998977304,
0.01121532078832388,
-0.008133993484079838,
-0.024206621572375298,
0.024845974519848824,
0.06933429837226868,
-0.04177107661962509,
-0.001616142806597054,
-0.045429594814777374,
0.005918456707149744,
-0.014083529822528362,
-0.007223803084343672,
0.03793495520949364,
-0.0032966649159789085,
-0.01983770914375782,
0.02582276426255703,
0.0008413710165768862,
-0.008862145245075226,
0.021986646577715874,
0.03924918174743652,
0.029445765540003777,
0.030529115349054337,
-0.009070822969079018,
0.02154264971613884,
0.00211563752964139,
-0.04986954852938652,
-0.02990752086043358,
0.05381222814321518,
-0.015273436903953552,
0.011881313286721706,
-0.022235283628106117,
-0.02846897579729557,
-0.002710591070353985,
-0.04926571622490883,
0.023123273625969887,
0.039320219308137894,
0.014536404982209206,
0.02085001766681671,
0.04205523058772087,
-0.050864096730947495,
-0.06805559247732162,
0.008160633035004139,
-0.04798701032996178,
0.05814561992883682,
0.033264126628637314,
0.04812908545136452,
0.027208030223846436,
-0.014181208796799183,
-0.003156806342303753,
-0.012582825496792793,
-0.03974645584821701,
-0.05963744595646858,
0.03797047585248947,
0.03882294520735741,
-0.032997727394104004,
-0.03416987508535385,
0.047454215586185455,
0.03070671297609806,
-0.02392246574163437,
0.04667278379201889,
-0.0008441460086032748,
-0.030014080926775932,
0.0005749738775193691,
0.04706349968910217,
0.029445765540003777,
-0.010131971910595894,
-0.018718840554356575,
0.03892950341105461,
-0.03722456470131874,
0.03599913790822029,
-0.012103310786187649,
-0.0017293615965172648,
-0.036798328161239624,
-0.024544058367609978,
-0.03560842201113701,
0.05544612929224968,
-0.014740643091499805,
0.006167094223201275,
0.01080684456974268,
0.05402534455060959
] |
21,153 | tfields.bounding_box | in_box | null | def in_box(self, point):
x, y, z = point
for key in ["x", "y", "z"]:
value = locals()[key]
if value < self.box[key][0] or self.box[key][1] < value:
return False
return True
| (self, point) | [
0.06824503093957901,
-0.003727167146280408,
-0.03571702539920807,
0.04517778381705284,
0.0006582890055142343,
0.01794709637761116,
0.00001887598045868799,
-0.00962906889617443,
-0.011719648726284504,
0.0049917022697627544,
-0.02873661369085312,
0.02723068743944168,
-0.05219362676143646,
-0.02351016364991665,
-0.051591258496046066,
-0.020498311147093773,
0.012561195529997349,
0.0069892690517008305,
-0.01615770161151886,
-0.029002364724874496,
0.005886399652808905,
0.011445038951933384,
0.032439421862363815,
0.01101983617991209,
0.06934347003698349,
0.042201366275548935,
0.03940211236476898,
0.01206512562930584,
0.02156131900846958,
0.02189793810248375,
-0.07419786602258682,
0.009655644185841084,
0.018265997990965843,
0.005018277559429407,
0.03911864385008812,
-0.027691323310136795,
0.04755183309316635,
-0.006829817779362202,
-0.002269962104037404,
-0.012880097143352032,
0.015767931938171387,
-0.02172076888382435,
-0.02065776288509369,
0.05913860350847244,
-0.031854767352342606,
-0.043228939175605774,
0.03816194087266922,
0.027549589052796364,
-0.009735369123518467,
-0.01615770161151886,
0.025795629248023033,
-0.05315033346414566,
0.07341832667589188,
-0.003915407694876194,
-0.008220585063099861,
-0.03539812192320824,
-0.010940110310912132,
0.07639474421739578,
-0.028683463111519814,
0.07703255116939545,
-0.014740359038114548,
0.04712662845849991,
-0.013730502687394619,
-0.050386518239974976,
0.006307173054665327,
-0.027620457112789154,
-0.030915778130292892,
-0.01746874302625656,
-0.01977192424237728,
0.01687523163855076,
-0.021189266815781593,
0.038799744099378586,
-0.01332301739603281,
0.014935243874788284,
-0.021029815077781677,
-0.0574023611843586,
0.016405737027525902,
0.015661630779504776,
0.006661508698016405,
-0.025423577055335045,
-0.021153833717107773,
-0.0630008652806282,
0.02014397643506527,
-0.004152369685471058,
-0.036390263587236404,
0.05885513499379158,
0.03582332655787468,
0.05860710144042969,
0.06101658195257187,
0.05874883383512497,
0.0010630066972225904,
0.042059630155563354,
-0.030791759490966797,
0.007250591181218624,
-0.0028745471499860287,
-0.0073568918742239475,
0.06973323971033096,
-0.022712908685207367,
-0.048083335161209106,
0.022571174427866936,
0.019913658499717712,
0.006683654617518187,
0.00442476524040103,
-0.011905674822628498,
0.019860507920384407,
0.04294547066092491,
0.0037537424359470606,
-0.05991814285516739,
-0.014288580976426601,
0.017796503379940987,
-0.03135869652032852,
-0.044150210916996,
-0.04234309867024422,
0.011507047340273857,
-0.03965014964342117,
-0.0017174201784655452,
-0.022269990295171738,
0.021401867270469666,
-0.061725255101919174,
-0.034636300057172775,
0.04485888034105301,
0.010630066506564617,
0.029711036011576653,
-0.012313161045312881,
-0.00533717917278409,
0.024874355643987656,
0.026876352727413177,
0.03816194087266922,
-0.06409930437803268,
0.013526760041713715,
0.03649656102061272,
0.005704802460968494,
0.008822955191135406,
0.0590677373111248,
-0.07462307065725327,
-0.00000583494465900003,
-0.014598624780774117,
-0.023226695135235786,
-0.0010652212658897042,
0.018283715471625328,
0.011374171823263168,
0.0535755380988121,
-0.004650654271245003,
-0.03724066540598869,
-0.020267993211746216,
0.027585024014115334,
-0.04939437657594681,
-0.02987048774957657,
0.013411601074039936,
0.017008107155561447,
-0.014501182362437248,
0.01489980984479189,
0.01598939299583435,
-0.0018425448797643185,
-0.010027696378529072,
-0.05672912299633026,
0.029161816462874413,
-0.08525313436985016,
-0.014740359038114548,
-0.011214720085263252,
-0.01687523163855076,
0.055985018610954285,
-0.04035881906747818,
-0.0015779004897922277,
-0.007542917970567942,
-0.012729505077004433,
-0.021029815077781677,
-0.015147845260798931,
0.006444477941840887,
0.02551216073334217,
-0.012233435176312923,
0.007463192567229271,
-0.07412699609994888,
0.06764265894889832,
0.008964689448475838,
-0.030720893293619156,
-0.04815420135855675,
-0.00589525792747736,
0.05329206958413124,
-0.07483567297458649,
-0.04050055518746376,
-0.03504378721117973,
-0.015254145488142967,
-0.011949966661632061,
-0.006621645763516426,
-0.028098810464143753,
0.033980779349803925,
-0.025016089901328087,
-0.01824828051030636,
-0.007897254079580307,
-0.10948968678712845,
0.030951211228966713,
-0.005089144688099623,
-0.01412913016974926,
-0.0015313939657062292,
0.02763817273080349,
-0.013447034172713757,
0.012118276208639145,
-0.040854889899492264,
-0.036213092505931854,
0.0007457656320184469,
-0.05329206958413124,
-0.0044446964748203754,
0.0006112288101576269,
0.008464191108942032,
0.006595070473849773,
-0.030207106843590736,
-0.030348841100931168,
0.04120922461152077,
0.0019167339196428657,
0.016680346801877022,
-0.04050055518746376,
-0.001304397825151682,
0.054780278354883194,
0.011958825401961803,
0.05534721538424492,
-0.02584877982735634,
-0.02942756749689579,
-0.013163565658032894,
0.03121696226298809,
0.051591258496046066,
-0.004982843995094299,
0.03378589451313019,
0.0036452270578593016,
0.04896917566657066,
0.06239849328994751,
0.03837453946471214,
0.06650878489017487,
-0.039898183196783066,
-0.04184702783823013,
0.012596629559993744,
0.000761821458581835,
-0.04234309867024422,
0.0014372735749930143,
-0.01824828051030636,
-0.04974871128797531,
0.011028693988919258,
0.000796147680375725,
-0.030809476971626282,
-0.014288580976426601,
0.08256018161773682,
0.02262432500720024,
-0.000059205871366430074,
0.003487990703433752,
-0.009992262348532677,
-0.04751639813184738,
0.005248595494776964,
0.04592188820242882,
-0.043512407690286636,
0.041953328996896744,
-0.04376044124364853,
0.003868901403620839,
-0.03004765510559082,
-0.011214720085263252,
-0.002599937142804265,
-0.03940211236476898,
-0.022057387977838516,
-0.04585102200508118,
0.04521321877837181,
0.013730502687394619,
-0.015661630779504776,
-0.007897254079580307,
0.06321346014738083,
0.07313486188650131,
0.041032057255506516,
0.024183401837944984,
0.01904553547501564,
0.012038550339639187,
0.01808883063495159,
-0.04050055518746376,
0.004342825151979923,
-0.0532211996614933,
0.009203866124153137,
0.03571702539920807,
0.03497292101383209,
0.026291698217391968,
0.03121696226298809,
0.0171852745115757,
-0.009416467510163784,
0.0022721767891198397,
0.036390263587236404,
0.023120395839214325,
-0.04468171298503876,
0.023120395839214325,
-0.0674300566315651,
-0.029480718076229095,
0.021596752107143402,
-0.03509693592786789,
0.028488578274846077,
-0.05173299089074135,
-0.059422072023153305,
0.006621645763516426,
0.01870891824364662,
-0.05690629035234451,
-0.020604612305760384,
0.029197249561548233,
0.023846782743930817,
-0.023191262036561966,
0.018992386758327484,
0.013712786138057709,
0.042130496352910995,
-0.041173793375492096,
0.0026730189565569162,
-0.003953055944293737,
0.04358327388763428,
0.05747322738170624,
-0.010647783987224102,
-0.00935445912182331,
0.008167434483766556,
-0.048083335161209106,
0.028240544721484184,
0.009947970509529114,
-0.013420458883047104,
-0.07320572435855865,
0.04957154393196106,
0.04259113594889641,
-0.009292449802160263,
-0.05531178042292595,
-0.045532118529081345,
0.009549343027174473,
0.031411848962306976,
-0.043228939175605774,
-0.005700373090803623,
0.031022077426314354,
-0.025016089901328087,
-0.022606609389185905,
-0.024041667580604553,
-0.0207640640437603,
0.004260885063558817,
0.031163811683654785,
-0.013801369816064835,
0.00831802748143673,
0.02152588590979576,
0.03833910822868347,
0.03249257057905197,
0.03011852316558361,
-0.03431740030646324,
0.07405613362789154,
0.0528668649494648,
0.010089704766869545,
0.00148931669536978,
0.0005154475220479071,
-0.0052663120441138744,
-0.025742478668689728,
0.04376044124364853,
0.04294547066092491,
0.0022965373937040567,
0.009336741641163826,
0.05800472944974899,
0.02551216073334217,
-0.09262331575155258,
-0.005470055155456066,
0.045461252331733704,
-0.04305177181959152,
-0.019204987213015556,
0.035699307918548584,
0.07370179891586304,
-0.06544578075408936,
-0.009575918316841125,
0.05279599875211716,
0.11034009605646133,
-0.05630392208695412,
-0.013544476591050625,
0.012623203918337822,
-0.07320572435855865,
-0.01063892524689436,
0.0282228272408247,
-0.025742478668689728,
0.025565311312675476,
0.00935445912182331,
-0.0223762895911932,
-0.017681343480944633,
-0.027691323310136795,
-0.03950841352343559,
-0.005501059349626303,
-0.001516999094747007,
-0.007587210275232792,
0.025459010154008865,
0.031163811683654785,
0.014563191682100296,
0.10211950540542603,
0.003388333832845092,
0.05641021952033043,
0.013774794526398182,
-0.013703927397727966,
-0.003040642011910677,
-0.044327378273010254,
0.02317354641854763,
0.007697939872741699,
0.03297092393040657,
0.013385025784373283,
-0.008428757078945637,
0.03385676443576813,
0.02120698243379593,
0.028081092983484268,
0.005164440721273422,
0.0061122882179915905,
-0.027939358726143837,
-0.02584877982735634,
0.0021813781931996346,
0.0076226438395679,
0.030968928709626198,
-0.08582007139921188,
-0.006882968358695507,
0.0019455236615613103,
-0.044291943311691284,
-0.017300434410572052,
0.01473150122910738,
0.013305299915373325,
0.012357452884316444,
-0.04025251790881157,
-0.011064128018915653,
0.039685580879449844,
-0.048898305743932724,
-0.01904553547501564,
-0.01063892524689436,
0.019470738247036934,
0.013154707849025726,
-0.01605140045285225,
-0.010603491216897964,
0.07653648406267166,
-0.054922010749578476,
-0.016556328162550926,
-0.021260133013129234,
-0.03481346741318703,
-0.00494298106059432,
-0.024289702996611595,
-0.04166986048221588,
0.006785525940358639,
0.022323140874505043,
-0.05662282183766365,
-0.0277444738894701,
0.02211053855717182,
-0.04485888034105301,
0.03238626942038536,
-0.0011560197453945875,
-0.048331368714571,
-0.06962693482637405,
0.00010450130503159016,
0.04624079167842865,
0.05098888650536537,
0.07047734409570694,
-0.021667620167136192,
0.0006211945437826216,
-0.03352014347910881,
0.037630435079336166,
0.012198001146316528,
0.004289675038307905,
0.0282228272408247,
-0.04372500628232956,
-0.0059218332171440125,
0.02003767527639866,
-0.021614469587802887,
-0.05814646556973457,
0.05772126093506813,
-0.0075650643557310104,
-0.14371849596500397,
-0.024449152871966362,
-0.0005298423930071294,
0.05800472944974899,
-0.03261658921837807,
-0.06597728282213211,
-0.07944203168153763,
-0.006577353924512863,
-0.044398244470357895,
-0.007299312390387058,
-0.04273286834359169,
0.019098686054348946,
0.030968928709626198,
0.021260133013129234,
-0.032333120703697205,
-0.06445363909006119,
-0.05517004802823067,
-0.0092481579631567,
0.05329206958413124,
0.03486661985516548,
0.01901010237634182,
0.06236305832862854,
0.019382154569029808,
0.006621645763516426,
-0.0762530118227005,
-0.027974791824817657,
-0.01063892524689436,
-0.007055706810206175,
-0.008694509044289589,
0.02661059983074665,
-0.09014296531677246,
0.05524091422557831,
-0.004325108602643013,
-0.04035881906747818,
-0.017335867509245872,
0.022907793521881104,
0.03155358135700226,
0.049004606902599335,
-0.001194775220938027,
-0.003813536372035742,
-0.017273858189582825,
0.017070114612579346,
0.013730502687394619,
0.012871239334344864,
-0.0023319709580391645,
0.09347371757030487,
-0.01504154410213232,
-0.027921641245484352,
0.04358327388763428,
0.018850652500987053,
0.014208856038749218,
-0.030029939487576485,
0.0008426542626693845,
0.026079097762703896,
0.042272232472896576,
-0.05208732560276985,
0.0671820193529129,
-0.014855518005788326,
0.011507047340273857,
0.041988763958215714,
0.012268868274986744,
0.0012844663579016924,
-0.023014094680547714,
-0.03812650591135025,
0.05669368803501129,
-0.04549668729305267,
0.006612787488847971,
-0.011046411469578743,
-0.025972796604037285,
0.07483567297458649,
0.029835054650902748,
-0.036425694823265076,
-0.018106546252965927,
-0.004535495303571224,
0.03947298228740692,
0.007994696497917175,
-0.00024374411441385746,
0.0026198686100542545,
-0.015705924481153488,
0.04829593747854233,
0.015564189292490482,
-0.003217809833586216,
-0.04060685634613037,
-0.0015092480462044477,
0.035291820764541626,
-0.044610846787691116,
0.057189758867025375,
0.020569179207086563,
0.021136116236448288,
0.041067492216825485,
-0.003802463412284851,
-0.044504545629024506,
-0.00835346058011055,
0.015404738485813141,
0.07405613362789154,
0.004387116990983486,
0.03516780585050583,
-0.014518899843096733,
0.03483118489384651,
-0.003964128904044628,
-0.023705048486590385,
-0.005642793606966734,
0.004739237949252129,
0.024449152871966362,
0.0033639732282608747,
0.04028795287013054,
0.058536235243082047,
-0.012144851498305798,
-0.10856841504573822,
-0.05630392208695412,
-0.04294547066092491,
-0.037346966564655304,
0.05428420752286911,
0.031642165035009384,
0.05524091422557831,
0.013553335331380367,
0.016582904383540154,
-0.04730379581451416,
0.04939437657594681,
0.005611789412796497,
-0.04397304356098175,
-0.0017384588718414307,
-0.05998900905251503,
-0.009434184059500694,
-0.03727610036730766,
-0.038764309138059616,
-0.007892824709415436,
-0.044433679431676865,
-0.011693073436617851,
0.029073232784867287,
-0.04255570098757744,
0.002743886085227132,
0.041953328996896744,
0.048012468963861465,
-0.01577679067850113,
0.01808883063495159,
-0.005341608542948961,
-0.03773673623800278,
-0.003259887220337987,
0.001871334621682763,
0.043158069252967834,
0.008659075014293194,
0.003359544090926647,
-0.01605140045285225,
-0.041032057255506516,
0.021508168429136276,
-0.05279599875211716,
0.004130223765969276,
-0.06399299949407578,
-0.012986398302018642,
-0.02818739414215088,
-0.007077852729707956,
-0.026380281895399094,
-0.001575685921125114,
0.061725255101919174,
-0.02145501784980297,
-0.02134871669113636,
-0.00861035380512476,
0.0016698063118383288,
0.031854767352342606,
-0.0065330620855093,
0.05694172531366348,
0.0343705490231514,
0.004276387393474579,
-0.049075473099946976,
0.017521893605589867,
0.017238425090909004,
-0.01773449406027794,
0.04609905555844307,
-0.06087484955787659,
0.09552886337041855,
-0.04971328005194664,
0.025122391059994698,
-0.03169531747698784,
0.0035544284619390965,
0.01708783209323883,
0.028382278978824615,
-0.06016617640852928,
-0.06973323971033096,
-0.019346721470355988,
-0.001532501308247447,
0.005664939526468515,
-0.05389443784952164,
0.02265975810587406,
-0.002066219225525856,
0.01473150122910738,
-0.02269519306719303,
-0.00074465834768489,
0.052370794117450714,
0.01683979667723179,
0.04039425402879715,
0.0019344507018104196,
0.06994584202766418,
-0.004353898111730814,
-0.008783092722296715,
0.04393760859966278,
0.005133436527103186,
0.008349031209945679,
0.028860630467534065,
-0.011179286986589432,
0.009602493606507778,
0.042201366275548935,
0.04298090189695358,
-0.04585102200508118,
-0.014518899843096733,
-0.011232437565922737,
-0.060697682201862335,
-0.025352708995342255,
0.025317275896668434,
-0.009788519702851772,
0.014563191682100296,
-0.0002524640876799822,
-0.07320572435855865,
0.06023704633116722,
0.02551216073334217,
0.007737802807241678,
0.009815094992518425,
-0.05892600491642952,
0.030224822461605072,
-0.05407160520553589,
-0.030331123620271683,
0.009345600381493568,
-0.01436830684542656,
-0.017486460506916046,
0.02172076888382435,
-0.016892947256565094,
-0.021401867270469666,
0.06689855456352234,
0.022854642942547798,
0.04142182692885399,
-0.004362756386399269,
0.009044415317475796,
-0.010966685600578785,
0.014970676973462105,
-0.05626848712563515,
-0.04064228758215904,
0.025140108540654182,
0.01831914857029915,
-0.027531873434782028,
-0.04259113594889641,
0.01062120869755745,
0.09000123292207718,
0.017964811995625496,
-0.022766059264540672,
-0.005585214123129845,
-0.06558751314878464,
-0.03011852316558361,
0.09850528836250305,
-0.018832935020327568,
-0.013517901301383972,
0.007387896534055471,
0.0198073573410511,
0.07356005907058716,
-0.013969679363071918,
-0.02211053855717182,
-0.025352708995342255,
-0.002843542955815792,
-0.017521893605589867,
0.003033998189494014,
0.09482019394636154,
-0.019240420311689377,
0.02361646480858326,
0.04170529544353485,
-0.05442594364285469,
-0.018762066960334778,
0.04896917566657066,
-0.03851627558469772,
-0.005452338606119156,
0.011480472050607204,
0.013792512007057667,
0.007467621937394142,
-0.035327255725860596,
-0.036354828625917435,
-0.013951962813735008,
-0.03227996826171875,
0.029232682660222054,
0.019382154569029808,
0.08447359502315521,
-0.011445038951933384,
0.024661755189299583,
-0.02492750622332096,
0.016512036323547363,
-0.07979636639356613,
-0.014580908231437206,
0.04074858874082565,
-0.008667933754622936,
0.04145726189017296,
-0.06962693482637405,
0.030384274199604988,
0.02928583323955536,
-0.010727508924901485,
-0.006041421089321375,
-0.02196880429983139,
-0.025636177510023117,
0.03330754116177559,
0.06803242862224579,
0.01498839445412159,
0.00398627482354641,
0.03777217119932175,
0.013154707849025726,
-0.030827194452285767,
-0.00448677409440279,
0.007073423359543085,
-0.05336293578147888,
-0.1219623014330864,
-0.017451025545597076,
-0.02375819906592369,
0.07058364152908325,
-0.00518215773627162,
0.015316154807806015,
-0.02777990698814392,
0.05754409357905388
] |
21,154 | tfields.bounding_box | is_last_cut | null | def is_last_cut(self):
for key in self.remaining_cuts:
if len(self.remaining_cuts[key]) != 0:
return False
return True
| (self) | [
0.0038887185510247946,
0.07176236063241959,
-0.06232360005378723,
0.030467772856354713,
-0.003051548730581999,
-0.010471127927303314,
-0.019484801217913628,
0.01604069210588932,
0.044383008033037186,
-0.04587516561150551,
-0.019224541261792183,
0.04660389572381973,
0.0032901205122470856,
-0.06041502580046654,
-0.010367024689912796,
0.0164137315005064,
0.01604069210588932,
0.004689018242061138,
0.013299287296831608,
-0.024967610836029053,
0.005239901598542929,
0.018096746876835823,
0.008879204280674458,
0.00345712061971426,
0.028212185949087143,
0.03404201194643974,
0.07641234248876572,
-0.017619604244828224,
-0.013125780038535595,
0.04872067645192146,
-0.08349141478538513,
0.01721186377108097,
0.04073936864733696,
0.00002807622695399914,
0.0339726097881794,
0.013932586647570133,
0.03890019655227661,
-0.029808448627591133,
0.022365011274814606,
-0.012024013325572014,
0.014565885998308659,
0.018825475126504898,
-0.04296025261282921,
-0.028108082711696625,
0.010245569981634617,
-0.025609586387872696,
0.024950260296463966,
0.07904964685440063,
0.012700689025223255,
0.009091749787330627,
-0.0014064885908737779,
-0.009681672789156437,
-0.013967287726700306,
0.03997594118118286,
-0.048477765172719955,
0.0014574561500921845,
0.04799195006489754,
0.043723683804273605,
-0.0580553375184536,
0.009395387023687363,
-0.028385693207383156,
0.048616573214530945,
0.04136399179697037,
-0.05618146434426308,
0.07210937887430191,
0.006680007092654705,
-0.0390390045940876,
0.004311641212552786,
-0.008588580414652824,
0.04660389572381973,
-0.01512110698968172,
0.018495813012123108,
0.005417746026068926,
0.043827787041664124,
-0.06950677931308746,
-0.10882338881492615,
0.013151806779205799,
0.0277610681951046,
0.0047063687816262245,
-0.01853051409125328,
-0.0104884784668684,
-0.02517581917345524,
0.0316302664577961,
-0.005573902279138565,
0.021358672529459,
0.003448445349931717,
0.006866526789963245,
0.012830819003283978,
-0.017064381390810013,
0.0005424795090220869,
-0.009803127497434616,
0.07245638966560364,
0.022920232266187668,
-0.04972701519727707,
0.047020312398672104,
-0.019224541261792183,
-0.02432563714683056,
-0.0054220836609601974,
-0.05795123055577278,
-0.07634294033050537,
0.017012329772114754,
0.041225187480449677,
0.040010642260313034,
-0.02803868055343628,
0.025037014856934547,
0.06509970873594284,
-0.026303613558411598,
-0.006194188725203276,
-0.08564289659261703,
-0.021740388125181198,
0.007955281063914299,
0.0024833143688738346,
0.02009207382798195,
0.02210475131869316,
0.0022751062642782927,
0.01290889736264944,
-0.0054350970312952995,
0.0022664309944957495,
-0.013316637836396694,
-0.010141465812921524,
0.046881504356861115,
-0.04691620543599129,
-0.019727710634469986,
-0.0514620803296566,
0.03848378360271454,
0.003914744593203068,
-0.005461122840642929,
0.06121315807104111,
-0.013438092544674873,
0.002270768629387021,
0.04427890479564667,
0.0064848121255636215,
-0.02704969234764576,
0.01293492317199707,
-0.01609274558722973,
-0.05427289009094238,
0.01693425141274929,
-0.004268264397978783,
-0.0423356294631958,
-0.0013707027537748218,
0.006198526360094547,
0.014904224313795567,
0.035256557166576385,
0.04868597537279129,
0.0029799772892147303,
0.016682667657732964,
-0.04441770911216736,
0.01816614903509617,
0.016682667657732964,
-0.01712510921061039,
-0.029270576313138008,
-0.016569888219237328,
-0.056944891810417175,
0.004788784310221672,
-0.0003809013869613409,
-0.01745477132499218,
-0.028611252084374428,
0.008081073872745037,
-0.021705685183405876,
-0.073011614382267,
0.020543191581964493,
-0.02031763270497322,
-0.017715033143758774,
-0.020543191581964493,
-0.05396057665348053,
0.0007292702794075012,
-0.03470133617520332,
-0.00184350844938308,
-0.022607920691370964,
0.11055845767259598,
0.04167630523443222,
0.053648266941308975,
-0.0065195136703550816,
0.027882523834705353,
-0.042717345058918,
0.018357006832957268,
-0.03695692494511604,
-0.022972283884882927,
-0.0164137315005064,
-0.007703696843236685,
-0.02056054212152958,
-0.07460787147283554,
-0.011191180907189846,
-0.01670869253575802,
0.012292948551476002,
-0.039212509989738464,
-0.033799100667238235,
-0.022365011274814606,
0.0012481636367738247,
0.057604219764471054,
-0.0539952777326107,
0.009499491192400455,
-0.004166329279541969,
-0.031265903264284134,
0.012605260126292706,
-0.060380324721336365,
0.02540137805044651,
0.08814139664173126,
0.03268865868449211,
-0.017715033143758774,
-0.0654120221734047,
-0.03952482342720032,
0.017628278583288193,
-0.04889418184757233,
0.04872067645192146,
0.003248912515118718,
-0.04341137036681175,
0.01929394342005253,
0.0060944221913814545,
-0.008094086311757565,
-0.05076805502176285,
-0.021150464192032814,
0.0027696003671735525,
0.0456322580575943,
0.02944408357143402,
-0.013325313106179237,
0.02567898854613304,
-0.006306967698037624,
-0.04136399179697037,
-0.0036523155868053436,
0.0036436403170228004,
-0.03713043034076691,
0.055765047669410706,
0.03275806084275246,
-0.036471106112003326,
0.012969624251127243,
0.06752879917621613,
0.09376300871372223,
0.048096053302288055,
-0.012639962136745453,
-0.025418728590011597,
0.027153795585036278,
-0.012397052720189095,
-0.0006387214525602758,
0.006246240343898535,
0.033209178596735,
-0.04323786497116089,
0.010913570411503315,
0.06530791521072388,
0.0211678147315979,
0.008323983289301395,
0.014158145524561405,
-0.052954237908124924,
0.009143802337348461,
-0.02564428746700287,
-0.018044695258140564,
-0.012692013755440712,
0.057985931634902954,
0.03404201194643974,
0.04150279983878136,
0.023458102717995644,
0.0002564645546954125,
-0.05326655134558678,
-0.04299495741724968,
0.00827626883983612,
-0.04924119636416435,
-0.07176236063241959,
-0.04434830695390701,
0.029600240290164948,
-0.019970618188381195,
0.05160088837146759,
0.02498496137559414,
0.012501156888902187,
0.06440567970275879,
-0.06825752556324005,
0.028264237567782402,
0.0463956855237484,
-0.030363669618964195,
-0.010635959915816784,
0.031075047329068184,
0.08821079879999161,
-0.0485471710562706,
-0.025054365396499634,
-0.04178040847182274,
-0.03131795674562454,
0.013568222522735596,
0.08217276632785797,
-0.02940938249230385,
-0.02614745683968067,
0.013021676801145077,
0.061178456991910934,
0.0024442754220217466,
-0.016942927613854408,
0.02177508920431137,
-0.004066562745720148,
0.023648960515856743,
-0.0029105746652930975,
-0.04098227992653847,
0.004300796892493963,
0.045562855899333954,
-0.016049368306994438,
0.0013435924192890525,
0.06253180652856827,
0.016066718846559525,
0.07634294033050537,
-0.021133113652467728,
0.050212834030389786,
-0.07252579182386398,
-0.009516841731965542,
0.00027869510813616216,
-0.03147411346435547,
-0.06652246415615082,
-0.08050709962844849,
-0.06686947494745255,
0.0004172293411102146,
0.01472204178571701,
-0.009482139721512794,
-0.013377364724874496,
0.06221949681639671,
0.013906560838222504,
0.01778443530201912,
0.01646578498184681,
0.06353814899921417,
-0.014739392325282097,
0.020196177065372467,
0.0580553375184536,
0.01117383036762476,
-0.05194789916276932,
-0.029131771996617317,
0.038830794394016266,
-0.017099084332585335,
0.031248552724719048,
-0.010731387883424759,
0.005370031576603651,
-0.023701012134552002,
-0.0423356294631958,
-0.0023488467559218407,
-0.004339836072176695,
-0.03199463337659836,
-0.023440752178430557,
-0.025765743106603622,
-0.03005135804414749,
0.03404201194643974,
-0.0003022811724804342,
0.012605260126292706,
0.0071224491111934185,
-0.020577892661094666,
-0.02347545325756073,
0.028437744826078415,
-0.01816614903509617,
-0.0013316638069227338,
-0.01707305759191513,
0.03570767492055893,
0.015685003250837326,
0.09237495809793472,
0.046222180128097534,
0.02531462535262108,
0.03371234983205795,
0.038830794394016266,
-0.008271930739283562,
-0.025765743106603622,
-0.012084740214049816,
0.019172487780451775,
0.016405057162046432,
0.02144542522728443,
-0.003305302234366536,
0.04125988855957985,
0.015745731070637703,
0.007660320028662682,
0.01825290359556675,
0.07939665764570236,
-0.03353884071111679,
-0.02949613519012928,
0.03353884071111679,
-0.05916577950119972,
0.013767755590379238,
-0.0027045353781431913,
-0.00013473878789227456,
-0.03900430351495743,
-0.03470133617520332,
-0.03758154809474945,
-0.05076805502176285,
0.06048442795872688,
0.005539200734347105,
-0.002791288774460554,
0.005933928303420544,
0.008900892920792103,
-0.015320640057325363,
0.005977305117994547,
-0.004467796999961138,
-0.031022993847727776,
-0.03716513141989708,
-0.06454448401927948,
-0.012544533237814903,
-0.02075139991939068,
0.02158423140645027,
-0.04535464569926262,
-0.07655114680528641,
0.022330310195684433,
-0.023388700559735298,
0.05930458381772041,
-0.014999652281403542,
-0.032202839851379395,
0.002053885255008936,
-0.05621616542339325,
0.031595565378665924,
-0.0013999820221215487,
-0.03772035241127014,
0.0029517824295908213,
0.026598574593663216,
0.03442372754216194,
0.007629956118762493,
0.028212185949087143,
0.041745707392692566,
0.04021884873509407,
-0.003580744145438075,
-0.01355087198317051,
-0.030311618000268936,
-0.0034376010298728943,
-0.008172164671123028,
-0.0335908941924572,
-0.04587516561150551,
-0.048338960856199265,
-0.03376439958810806,
-0.01008941326290369,
-0.004387550055980682,
-0.0030558863654732704,
-0.02545342966914177,
0.025939248502254486,
-0.017992643639445305,
0.007734060287475586,
0.006840500980615616,
0.009178503416478634,
0.00886619184166193,
-0.03706102818250656,
0.012457779608666897,
-0.021983295679092407,
-0.0055348630994558334,
-0.004300796892493963,
0.01763695478439331,
-0.06416276842355728,
-0.041225187480449677,
-0.01866931840777397,
0.03485749289393425,
-0.022469114512205124,
0.024152129888534546,
-0.03265395760536194,
-0.041849810630083084,
-0.019693007692694664,
0.014765419065952301,
-0.0419539138674736,
0.029756395146250725,
-0.0026177819818258286,
0.030363669618964195,
0.04858187213540077,
-0.009430088102817535,
-0.0019606254063546658,
-0.04042705520987511,
-0.004185848869383335,
0.028194835409522057,
-0.06607134640216827,
0.0035872505977749825,
-0.0632605329155922,
-0.010262920521199703,
0.03020751290023327,
-0.036436405032873154,
-0.11659649014472961,
0.013490144163370132,
0.01650916039943695,
0.001035618013702333,
-0.020161475986242294,
0.05541803315281868,
-0.015268588438630104,
0.05965159833431244,
0.014487807638943195,
-0.031248552724719048,
-0.022590570151805878,
-0.001881463103927672,
-0.007924918085336685,
0.04643038660287857,
-0.025991300120949745,
-0.006376370787620544,
-0.017246564850211143,
-0.01623154990375042,
0.028489796444773674,
-0.006424084771424532,
0.05371766909956932,
0.06253180652856827,
0.020924905315041542,
0.022555869072675705,
-0.03695692494511604,
0.003600263735279441,
-0.07287281006574631,
-0.010688011534512043,
-0.014123443514108658,
-0.021011659875512123,
-0.1349882036447525,
-0.014158145524561405,
0.0045935893431305885,
-0.009612270630896091,
-0.04167630523443222,
-0.06888215243816376,
-0.01984916441142559,
0.0687086433172226,
0.01839170791208744,
-0.00981180276721716,
0.054307591170072556,
0.04171100631356239,
0.039733029901981354,
-0.004281277302652597,
0.020629944279789925,
0.07932725548744202,
-0.014054041355848312,
0.0035959258675575256,
-0.020543191581964493,
-0.05507102236151695,
-0.0035872505977749825,
-0.014270924963057041,
-0.005578239914029837,
-0.030866838991642,
0.05330125242471695,
-0.05507102236151695,
0.04500763490796089,
0.04379308596253395,
0.012084740214049816,
-0.004459121730178595,
-0.007048708852380514,
-0.06437098234891891,
0.04223152622580528,
0.023648960515856743,
-0.0330183207988739,
-0.01806204579770565,
0.009933257475495338,
-0.011815804988145828,
-0.04844306409358978,
0.04125988855957985,
0.03636699914932251,
-0.02498496137559414,
-0.02888886258006096,
0.011529519222676754,
0.008076735772192478,
0.05066395178437233,
0.05288483574986458,
0.012431753799319267,
-0.013576897792518139,
0.07294221222400665,
-0.009516841731965542,
-0.04105168208479881,
-0.039733029901981354,
-0.033330634236335754,
0.0037564197555184364,
-0.07842501997947693,
0.10965622216463089,
-0.04337666928768158,
-0.003741237800568342,
0.07127654552459717,
0.026095405220985413,
-0.023735713213682175,
0.02809073217213154,
-0.004736732225865126,
0.03142205998301506,
0.06950677931308746,
0.06353814899921417,
-0.048338960856199265,
0.08744736760854721,
0.030328968539834023,
0.05420348793268204,
0.013490144163370132,
0.025522833690047264,
0.009733724407851696,
-0.014106092974543571,
-0.04872067645192146,
0.08113172650337219,
0.003526523243635893,
-0.05677138641476631,
-0.030797436833381653,
-0.009438763372600079,
-0.009048373438417912,
-0.010332322679460049,
0.0802294909954071,
-0.034649282693862915,
0.02809073217213154,
-0.04105168208479881,
-0.01722053810954094,
0.031352657824754715,
-0.0170817319303751,
0.001832664362154901,
-0.0006419747369363904,
-0.034683987498283386,
-0.038969602435827255,
0.02534932643175125,
-0.006818812806159258,
0.02704969234764576,
-0.0335908941924572,
0.020057372748851776,
0.0419539138674736,
-0.04788784310221672,
0.00263947038911283,
-0.0339726097881794,
0.024533845484256744,
0.0345451794564724,
0.09230555593967438,
0.02036968432366848,
-0.07814741134643555,
0.03862258791923523,
0.023544857278466225,
0.02666797675192356,
-0.01013279054313898,
-0.00966432224959135,
0.06506500393152237,
0.023163141682744026,
-0.012154143303632736,
-0.06041502580046654,
0.03761624917387962,
-0.029808448627591133,
0.0072569171898067,
-0.010393050499260426,
0.05864525958895683,
-0.004122952464967966,
-0.02916647307574749,
0.015546198934316635,
0.017099084332585335,
0.019259242340922356,
-0.03232429549098015,
-0.007118111476302147,
-0.02163628302514553,
0.014886872842907906,
0.0013186507858335972,
0.023735713213682175,
0.04785314202308655,
0.013412066735327244,
0.018651967868208885,
0.015398718416690826,
0.03952482342720032,
-0.027414055541157722,
-0.04150279983878136,
0.003760757390409708,
-0.000058965160860680044,
-0.0032901205122470856,
-0.003912575542926788,
0.014071391895413399,
-0.06440567970275879,
0.00144335872028023,
0.010332322679460049,
-0.05566094443202019,
0.03966362774372101,
0.019814463332295418,
0.006051045376807451,
0.03556887060403824,
-0.009048373438417912,
-0.05763892084360123,
0.00827626883983612,
0.013290612027049065,
0.036471106112003326,
-0.024048026651144028,
-0.05062925070524216,
0.025245221331715584,
0.04112108424305916,
-0.004853849299252033,
-0.030970942229032516,
0.010314972139894962,
0.04719381779432297,
0.0674246996641159,
-0.04299495741724968,
0.013490144163370132,
-0.04282144829630852,
0.06332994252443314,
0.03862258791923523,
-0.001435767742805183,
-0.08002128452062607,
0.03761624917387962,
-0.03890019655227661,
-0.012778767384588718,
-0.04695090651512146,
0.02196594513952732,
-0.03015546128153801,
-0.012917572632431984,
0.007721047382801771,
-0.036818116903305054,
0.03204668313264847,
-0.0034723025746643543,
-0.05926988273859024,
-0.01380245666950941,
-0.04681210219860077,
-0.01792323961853981,
-0.019640956073999405,
-0.019450098276138306,
0.02949613519012928,
0.07544070482254028,
-0.04021884873509407,
0.011746401898562908,
-0.0034614582546055317,
-0.04788784310221672,
-0.005218213424086571,
0.046499792486429214,
0.088974229991436,
-0.051253873854875565,
0.03402465954422951,
-0.009525517001748085,
-0.04035765305161476,
0.011859181337058544,
-0.07273399829864502,
0.008818477392196655,
0.061976585537195206,
-0.009091749787330627,
0.005326655227690935,
-0.015685003250837326,
0.07925785332918167,
0.01062728464603424,
-0.05330125242471695,
0.02149747870862484,
0.03548211604356766,
-0.0277610681951046,
-0.01665664091706276,
-0.034649282693862915,
0.005977305117994547,
-0.035360660403966904,
0.0053440057672560215,
0.0093173086643219,
-0.002204619348049164,
-0.0052876160480082035,
0.08744736760854721,
-0.010974297299981117,
-0.04361958056688309,
-0.04986581951379776,
-0.046742700040340424,
-0.02267732284963131,
-0.015468120574951172,
0.0415722019970417,
-0.05076805502176285,
-0.004532861988991499,
0.03541271388530731,
0.009985309094190598,
0.031352657824754715,
0.006007669027894735,
-0.014609262347221375,
-0.021202515810728073,
-0.04958821088075638,
-0.02108106203377247,
-0.02644241787493229,
-0.042925551533699036,
-0.0005115736275911331,
-0.012128117494285107,
0.02125456929206848,
0.021358672529459,
-0.026355665177106857,
0.02625156007707119,
-0.0024052364751696587,
0.009187178686261177,
0.001870618900284171,
0.0065759033896028996,
-0.04511173814535141,
0.07190117239952087,
0.002385716885328293,
-0.0152425616979599,
-0.03917780891060829,
-0.030554527416825294,
0.015069055370986462,
-0.011512168683111668,
-0.040288250893354416,
0.050316937267780304,
0.0268067829310894,
0.0016830147942528129,
-0.009430088102817535,
0.03513510152697563,
0.04604867473244667,
-0.03274071216583252,
0.03232429549098015,
0.008840165100991726,
0.029097070917487144,
-0.010835492052137852,
-0.0493105985224247,
0.03667931258678436,
0.03785915672779083,
-0.04872067645192146,
0.02371836267411709,
-0.029131771996617317,
-0.0016168653964996338
] |
21,155 | tfields.bounding_box | is_leaf | null | def is_leaf(self):
if self.left is None and self.right is None:
return True
else:
return False
| (self) | [
0.01477389968931675,
0.009849266149103642,
0.0679917111992836,
0.051717475056648254,
-0.04035022109746933,
-0.005829247646033764,
-0.019169002771377563,
0.06682674586772919,
-0.013750140555202961,
-0.029918471351265907,
0.027500281110405922,
0.003062451258301735,
0.02841813489794731,
0.00614255340769887,
0.012082120403647423,
-0.022681554779410362,
-0.043456800282001495,
0.0029433066956698895,
0.015444638207554817,
0.024746723473072052,
-0.06050768122076988,
-0.028382832184433937,
0.054859355092048645,
0.005114381667226553,
-0.02541746199131012,
0.014253194443881512,
0.011243696324527264,
-0.011958562768995762,
0.02142833173274994,
0.07406365871429443,
-0.05475344881415367,
-0.02617645636200905,
-0.0205104798078537,
-0.022557998076081276,
0.030430350452661514,
0.030042028054594994,
-0.025558670982718468,
0.01761571317911148,
-0.03147175908088684,
-0.050270091742277145,
-0.0315600149333477,
-0.0058380733244121075,
-0.06417909264564514,
0.007634064182639122,
-0.0284004844725132,
-0.03531968221068382,
0.06319063156843185,
-0.014367926865816116,
-0.022487392649054527,
0.02213437296450138,
-0.008732839487493038,
0.00876372866332531,
-0.01869242452085018,
0.011693798005580902,
-0.07886473834514618,
-0.019080746918916702,
0.023316990584135056,
-0.0304127000272274,
-0.029459545388817787,
0.004315673373639584,
0.02236383594572544,
0.042468342930078506,
0.02160484343767166,
-0.009531548246741295,
0.05069371685385704,
-0.004942284431308508,
-0.0721573531627655,
-0.023316990584135056,
-0.0009868020424619317,
0.0773114487528801,
-0.056024324148893356,
0.004977586213499308,
-0.0055203549563884735,
0.07822930067777634,
-0.016203632578253746,
-0.059766337275505066,
0.0271119587123394,
0.04525720328092575,
0.01593886688351631,
-0.01741272583603859,
-0.0704275518655777,
-0.009240306913852692,
0.004981999285519123,
0.04133867844939232,
-0.008084164932370186,
0.015435812994837761,
0.03890283778309822,
0.06958030164241791,
0.010670038871467113,
0.007047167979180813,
-0.008053275756537914,
-0.030377397313714027,
0.044374652206897736,
-0.031577665358781815,
0.030536256730556488,
0.034578338265419006,
0.026811892166733742,
-0.004743710160255432,
-0.05288244038820267,
-0.03971478343009949,
0.0020089060999453068,
0.05856606736779213,
0.011173092760145664,
0.00043272567563690245,
0.020475177094340324,
0.02640591934323311,
-0.03475484997034073,
-0.04430404677987099,
-0.05281183868646622,
0.0058027710765600204,
-0.05775412172079086,
-0.052635326981544495,
0.015832960605621338,
0.04395102709531784,
-0.0033139782026410103,
-0.008521027863025665,
-0.01087302528321743,
0.0056350864470005035,
-0.07568755000829697,
-0.03583155944943428,
0.08246554434299469,
0.00668090907856822,
-0.02029866725206375,
-0.06216687709093094,
0.05775412172079086,
0.019398465752601624,
0.06548526883125305,
0.0314188078045845,
-0.01976913772523403,
0.0037861426826566458,
0.07183963060379028,
0.06188445910811424,
-0.030342094600200653,
0.005220287945121527,
-0.018939539790153503,
-0.020086854696273804,
0.04066793993115425,
-0.01929255947470665,
-0.03826740011572838,
-0.037102434784173965,
0.008344517089426517,
-0.05196458846330643,
0.05228230729699135,
0.027835650369524956,
-0.028824107721447945,
0.035425588488578796,
-0.07787627726793289,
-0.005061428528279066,
0.013308865949511528,
0.020934104919433594,
0.04878740757703781,
-0.04885800927877426,
-0.01668020896613598,
-0.01516222208738327,
-0.03773787245154381,
0.006495573557913303,
-0.002150114392861724,
-0.034878406673669815,
0.03286619111895561,
-0.0169273242354393,
-0.013811919838190079,
-0.002479967661201954,
-0.014341450296342373,
-0.027888603508472443,
-0.04035022109746933,
-0.00911674927920103,
-0.012320408597588539,
-0.020175110548734665,
0.021569540724158287,
0.03260142356157303,
0.03025384061038494,
-0.004968761000782251,
-0.07604057341814041,
0.03766726702451706,
-0.03553149476647377,
-0.004831965547055006,
-0.002810924081131816,
0.030448000878095627,
-0.05641264468431473,
0.05055250599980354,
-0.01633601449429989,
-0.034719545394182205,
0.028347531333565712,
-0.012293932028114796,
0.06943909078836441,
-0.008529853075742722,
-0.030571557581424713,
-0.020033901557326317,
0.015374034643173218,
0.03186008334159851,
-0.06530875712633133,
-0.04112686589360237,
-0.012699905782938004,
0.020192760974168777,
0.013856046833097935,
-0.050340697169303894,
0.06033116951584816,
0.03551384434103966,
-0.004459087736904621,
0.013626583851873875,
-0.03268967941403389,
-0.053411971777677536,
0.010943629778921604,
0.0011020852252840996,
-0.0035279965959489346,
0.014729772694408894,
-0.0636848658323288,
0.031736526638269424,
-0.001884245895780623,
0.004695170093327761,
-0.039785388857126236,
-0.012258630245923996,
-0.039785388857126236,
0.10054018348455429,
0.0019063096260651946,
-0.042680155485868454,
-0.12059173732995987,
0.0029830215498805046,
-0.032036591321229935,
0.020033901557326317,
-0.02142833173274994,
0.025752831250429153,
0.07141600549221039,
-0.017218565568327904,
0.0012124041095376015,
-0.022681554779410362,
0.06093130633234978,
0.018427660688757896,
0.04324498772621155,
-0.02181665413081646,
-0.00009321942343376577,
-0.02635296620428562,
-0.01578000746667385,
-0.032195452600717545,
0.017006753012537956,
-0.027394374832510948,
0.022769810631871223,
-0.006173442583531141,
0.019469069316983223,
-0.0034044396597892046,
0.021110614761710167,
-0.057683516293764114,
-0.05189398676156998,
-0.056483250111341476,
0.048116669058799744,
-0.009010843001306057,
0.011640844866633415,
0.052776534110307693,
-0.007797336205840111,
0.015718229115009308,
-0.054929960519075394,
-0.041762303560972214,
-0.003925144672393799,
-0.029971424490213394,
0.060154661536216736,
-0.04455116391181946,
-0.02434075064957142,
-0.011367253959178925,
0.027517933398485184,
0.035425588488578796,
-0.0010590609163045883,
0.013864872977137566,
0.049352239817380905,
0.09750420600175858,
-0.001237777411006391,
-0.012796985916793346,
0.030483303591609,
-0.0030359746888279915,
-0.013926651328802109,
-0.03599042072892189,
0.13294744491577148,
-0.016671383753418922,
-0.007669365964829922,
0.02135772816836834,
0.03699652850627899,
-0.048434384167194366,
0.02296397089958191,
-0.016247760504484177,
0.0079606082290411,
-0.025293905287981033,
-0.013511852361261845,
-0.015400511212646961,
-0.030130283907055855,
0.021163567900657654,
-0.08211252093315125,
-0.04702230542898178,
-0.020422223955392838,
-0.019045446068048477,
0.003505932865664363,
0.015021014027297497,
0.013123529963195324,
0.039467670023441315,
-0.017245041206479073,
0.03009498119354248,
0.01608007401227951,
0.001024862052872777,
0.019716184586286545,
-0.027376724407076836,
0.01780104823410511,
-0.00040266377618536353,
0.020333969965577126,
-0.03369578719139099,
-0.00280430493876338,
-0.05281183868646622,
0.009831615723669529,
0.0408797524869442,
-0.03422531858086586,
0.06149613857269287,
0.05327076464891434,
0.030377397313714027,
-0.01582413539290428,
-0.002482173964381218,
0.03539028391242027,
0.023334642872214317,
-0.004465706646442413,
-0.03967948257923126,
0.056165531277656555,
-0.06866244971752167,
0.001984636066481471,
0.03171887621283531,
-0.04638686776161194,
0.02119886875152588,
-0.029441893100738525,
0.036643508821725845,
-0.0364316962659359,
-0.020333969965577126,
0.04684579372406006,
0.005485053174197674,
-0.0007038342300802469,
0.04592794179916382,
0.008675473742187023,
-0.02656477876007557,
0.06647372245788574,
-0.03759666159749031,
-0.08401883393526077,
-0.0049952371045947075,
0.02702370472252369,
0.05270593240857124,
-0.005908677354454994,
-0.017668666318058968,
-0.007051580585539341,
0.028665248304605484,
0.005604197271168232,
-0.004884918686002493,
0.06898016482591629,
0.06947439908981323,
-0.010961280204355717,
0.01626541092991829,
0.04624566063284874,
0.05139975622296333,
-0.04395102709531784,
0.0016448539681732655,
0.0039957487024366856,
-0.034648943692445755,
-0.0076826042495667934,
-0.014403228648006916,
0.004275958519428968,
0.020122157409787178,
-0.005652737803757191,
0.05468284711241722,
0.12115656584501266,
-0.0365729033946991,
-0.0476224385201931,
0.018021686002612114,
-0.050799623131752014,
-0.014156114310026169,
-0.038090892136096954,
0.05344727262854576,
-0.006204331759363413,
-0.0314188078045845,
0.01578000746667385,
-0.04193881154060364,
-0.014756248332560062,
-0.004514247179031372,
0.010061078704893589,
0.04794015735387802,
-0.013476550579071045,
-0.011799703352153301,
0.03429592400789261,
-0.00783263798803091,
-0.02635296620428562,
0.0018048163037747145,
0.008834333159029484,
-0.000646468426566571,
0.017350947484374046,
-0.00664560729637742,
0.0304127000272274,
-0.03392525017261505,
-0.01083772350102663,
-0.009628628380596638,
-0.018410008400678635,
0.034790150821208954,
-0.04049142822623253,
-0.043527401983737946,
-0.0722985565662384,
0.0314188078045845,
0.07378124445676804,
-0.02128712460398674,
-0.016088901087641716,
0.005533593241125345,
0.03826740011572838,
0.02342289686203003,
-0.008216547779738903,
0.011640844866633415,
0.038620419800281525,
0.018498264253139496,
-0.0032566122245043516,
-0.009399165399372578,
-0.00731193320825696,
-0.015453464351594448,
0.029953772202134132,
-0.05260002613067627,
-0.02527625299990177,
0.020810546353459358,
0.0054629892110824585,
-0.056165531277656555,
0.07293399423360825,
0.08712541311979294,
0.031136391684412956,
-0.045680828392505646,
-0.0362904891371727,
0.022787461057305336,
-0.019574975594878197,
0.04133867844939232,
0.02119886875152588,
0.01906309649348259,
0.005564482416957617,
-0.020492829382419586,
0.012885240837931633,
0.018727727234363556,
-0.05065841227769852,
-0.08197131752967834,
0.036325789988040924,
0.020422223955392838,
-0.012064469046890736,
0.018780680373311043,
-0.0296184029430151,
-0.019327862188220024,
-0.042538948357105255,
0.048046063631772995,
0.015135745517909527,
0.018109941855072975,
-0.02672363631427288,
-0.011587891727685928,
0.027659140527248383,
0.010008125565946102,
-0.0007976052584126592,
0.02135772816836834,
0.032054245471954346,
0.00854309182614088,
-0.02993612177670002,
0.010016950778663158,
-0.024764373898506165,
0.0063852546736598015,
-0.04656337946653366,
-0.04158579185605049,
-0.08641937375068665,
-0.010740642435848713,
0.025470415130257607,
0.048187270760536194,
-0.0318424329161644,
0.016556652262806892,
-0.011852656491100788,
0.02640591934323311,
0.020333969965577126,
-0.03667880967259407,
0.04172699898481369,
0.022152023389935493,
0.00915205106139183,
-0.037102434784173965,
0.009505071677267551,
-0.012496918439865112,
-0.03794968128204346,
-0.008132705464959145,
0.06809761375188828,
-0.008503376506268978,
-0.021234171465039253,
-0.00784587673842907,
-0.020192760974168777,
-0.05228230729699135,
-0.0770290270447731,
0.04511599615216255,
-0.02741202712059021,
-0.030571557581424713,
-0.016486048698425293,
-0.05913089960813522,
-0.061602044850587845,
0.01616832986474037,
0.03936176374554634,
-0.0261058509349823,
-0.02885941043496132,
-0.04320968687534332,
-0.017006753012537956,
0.025382159277796745,
-0.005330606829375029,
0.008984366431832314,
0.0026145565789192915,
-0.01294702012091875,
-0.004397309385240078,
0.018727727234363556,
0.002954338677227497,
0.04899922013282776,
0.015426987782120705,
0.022787461057305336,
-0.003274263348430395,
-0.021869607269763947,
-0.01982209086418152,
-0.009602152742445469,
-0.04013840854167938,
0.04702230542898178,
0.03752605989575386,
-0.015682926401495934,
0.01953967474400997,
0.05913089960813522,
0.004862854722887278,
0.0722985565662384,
0.05987224355340004,
-0.002200860995799303,
0.03879693150520325,
0.024940883740782738,
0.028382832184433937,
-0.0017297995509579778,
0.02573518082499504,
-0.03339572250843048,
-0.041621092706918716,
0.04416283965110779,
0.014685644768178463,
0.008768142201006413,
-0.011164267547428608,
-0.014906282536685467,
-0.017862826585769653,
0.006905959919095039,
-0.002466729376465082,
0.022787461057305336,
-0.06777989864349365,
0.03957357630133629,
-0.0034551862627267838,
0.06287291646003723,
0.014835678040981293,
-0.054082710295915604,
0.015400511212646961,
-0.08994957059621811,
0.054329823702573776,
0.02810041606426239,
-0.013644235208630562,
0.0014970267657190561,
0.05009358003735542,
-0.049811165779829025,
0.048363782465457916,
0.03194833919405937,
0.028012162074446678,
0.023564105853438377,
0.04603384807705879,
-0.026917798444628716,
0.04617505520582199,
0.06926258653402328,
0.040844447910785675,
0.04508069157600403,
0.03369578719139099,
0.02206376940011978,
-0.030448000878095627,
-0.009813964366912842,
0.030871625989675522,
-0.01906309649348259,
0.006155791692435741,
-0.06336714327335358,
-0.017995210364460945,
0.0031352615915238857,
0.09609212726354599,
0.06707385927438736,
-0.03996189683675766,
0.028312228620052338,
0.004470119718462229,
-0.03223075345158577,
0.01754510961472988,
0.008291564881801605,
-0.023758266121149063,
0.03572565317153931,
-0.0681329220533371,
-0.08112406730651855,
0.019963297992944717,
-0.03164827078580856,
-0.033413372933864594,
0.04677519202232361,
-0.016530176624655724,
0.01080242171883583,
-0.030200887471437454,
0.026670685037970543,
-0.09736300259828568,
-0.023299340158700943,
0.020175110548734665,
0.01608007401227951,
0.05740110203623772,
-0.0025417462456971407,
0.05514177307486534,
-0.03646699711680412,
0.03210719674825668,
-0.024093635380268097,
0.017968732863664627,
-0.026741288602352142,
0.03290149196982384,
-0.02104000933468342,
-0.00025097536854445934,
-0.014473832212388515,
-0.00495552271604538,
-0.0012223328230902553,
-0.0065705906599760056,
0.034719545394182205,
-0.08804326504468918,
-0.04140928015112877,
0.04423344507813454,
-0.0025549845304340124,
0.019204305484890938,
-0.028153369203209877,
-0.012796985916793346,
-0.034031156450510025,
-0.031101088970899582,
0.011093663051724434,
-0.032124847173690796,
0.00979631394147873,
-0.009337387047708035,
-0.024146588519215584,
-0.011323126032948494,
0.00526441540569067,
-0.05154096335172653,
-0.05037599802017212,
0.06887426227331161,
-0.0501994863152504,
0.002682954305782914,
-0.005833660718053579,
0.01814524456858635,
-0.01867477409541607,
-0.0315600149333477,
-0.07392245531082153,
0.009302085265517235,
-0.04373921453952789,
0.009866917505860329,
-0.0001901621144497767,
0.03766726702451706,
0.02778269723057747,
-0.11218985170125961,
-0.02457021363079548,
-0.017809875309467316,
-0.008878461085259914,
0.01953967474400997,
-0.03477250039577484,
-0.0035412348806858063,
0.017245041206479073,
-0.042680155485868454,
-0.07498151063919067,
-0.03493135794997215,
0.05260002613067627,
0.03376639261841774,
0.002963164122775197,
0.05238821357488632,
0.025664575397968292,
-0.004721646662801504,
0.019963297992944717,
-0.01851591467857361,
-0.016847893595695496,
0.0329897478222847,
-0.0592368058860302,
-0.046139754354953766,
0.010440575890243053,
-0.006204331759363413,
0.028365181758999825,
-0.032424915581941605,
-0.010590609163045883,
-0.01587708853185177,
-0.012461616657674313,
-0.03989129513502121,
-0.0028241623658686876,
-0.010502354241907597,
-0.06040177494287491,
0.009063796140253544,
-0.055847812443971634,
0.012179200537502766,
-0.020845849066972733,
0.03530203178524971,
0.0010893986327573657,
-0.020651688799262047,
0.039855994284152985,
-0.02119886875152588,
0.0387263260781765,
0.01114661619067192,
0.032036591321229935,
-0.023634709417819977,
0.01052883081138134,
0.052635326981544495,
-0.04599854722619057,
0.02541746199131012,
-0.04599854722619057,
0.06608539819717407,
0.08945534378290176,
-0.0015974169364199042,
0.03950297087430954,
-0.03787907958030701,
0.016159504652023315,
-0.03890283778309822,
0.010184635408222675,
0.02167544700205326,
-0.0053482577204704285,
-0.05185868218541145,
0.003949414473026991,
0.04515129700303078,
-0.006226395722478628,
-0.018568867817521095,
0.04578673467040062,
0.008490138687193394,
0.0038942552637308836,
-0.05704808235168457,
0.04945814609527588,
-0.01729799434542656,
-0.04550431668758392,
-0.056624457240104675,
-0.06343775242567062,
0.006769164465367794,
0.011455508880317211,
0.02181665413081646,
-0.04257424920797348,
0.009310910478234291,
-0.03290149196982384,
0.03254847228527069,
0.03720834106206894,
0.012382186949253082,
-0.003126436145976186,
0.003940589260309935,
-0.07476969808340073,
-0.03706713393330574,
0.016327189281582832,
-0.01915135234594345,
0.07279278337955475,
0.034719545394182205,
0.06876835227012634,
0.010546481236815453,
0.00755904708057642,
0.02204611897468567,
-0.0014363513328135014,
-0.05065841227769852,
-0.023175783455371857,
0.06633251905441284,
-0.012876415625214577,
0.023917125537991524,
-0.034101761877536774,
0.015171047300100327,
0.025223301723599434,
-0.01033466961234808,
0.06707385927438736,
-0.017836350947618484,
-0.014217892661690712,
0.03159531578421593,
0.014676819555461407,
0.031895384192466736,
-0.004121512174606323,
0.00047023408114910126,
0.07371064275503159,
-0.03967948257923126,
0.013600107282400131,
-0.026070550084114075,
-0.007069231476634741,
-0.022787461057305336,
-0.01897484064102173,
-0.029035920277237892,
0.018198195844888687,
-0.032513171434402466,
0.02910652384161949,
0.0088210953399539,
0.046210359781980515
] |
21,156 | tfields.bounding_box | is_root | null | def is_root(self):
if self.parent is None:
return True
else:
return False
| (self) | [
0.031002555042505264,
0.014024965465068817,
0.06926509737968445,
0.024246256798505783,
0.005319065880030394,
0.02898782305419445,
0.01763758808374405,
0.0579756461083889,
0.029109401628375053,
0.03855780139565468,
0.011081025935709476,
-0.05537039041519165,
0.029092034325003624,
-0.006504457909613848,
-0.0124878641217947,
-0.015553383156657219,
0.017107853665947914,
-0.007750638760626316,
0.021310999989509583,
-0.0035800570622086525,
-0.04091989994049072,
-0.008514847606420517,
0.048700932413339615,
-0.028414666652679443,
-0.033937811851501465,
0.014077071100473404,
-0.0013254244113340974,
0.0034975572489202023,
-0.000036331119190435857,
0.04328199848532677,
-0.05741985887289047,
-0.02393362484872341,
0.06304721534252167,
0.025757305324077606,
0.049708299338817596,
0.04098937287926674,
-0.03280886635184288,
0.03598728030920029,
-0.02275257557630539,
-0.04560936242341995,
0.0055101183243095875,
0.00856695231050253,
-0.05227882042527199,
0.015926802530884743,
-0.02881414070725441,
-0.014137860387563705,
0.08454926311969757,
0.03800201043486595,
0.007177482359111309,
-0.002592230448499322,
0.018844690173864365,
0.011906023137271404,
-0.0073424819856882095,
0.01736837811768055,
-0.08969030529260635,
0.027494143694639206,
0.004754593595862389,
0.0030915713869035244,
-0.029752032831311226,
-0.007416297681629658,
0.020876791328191757,
0.0583924874663353,
0.04154516011476517,
-0.03004729561507702,
0.008197874762117863,
0.004832751117646694,
-0.03640412166714668,
-0.015327594242990017,
-0.008723268285393715,
0.07940822839736938,
-0.1142144575715065,
-0.005271303001791239,
-0.03141939640045166,
0.083368219435215,
0.03939148411154747,
-0.0825345367193222,
0.01703837886452675,
0.02624361962080002,
0.01611785590648651,
-0.01872311159968376,
-0.07885243743658066,
-0.023047838360071182,
-0.002596572507172823,
0.03136729076504707,
0.01976521499454975,
0.026955723762512207,
0.03452833741903305,
0.08003348857164383,
0.056516703218221664,
-0.002850585151463747,
-0.015136541798710823,
-0.012166549451649189,
0.029422033578157425,
-0.002670388203114271,
-0.0013167401775717735,
0.023534152656793594,
0.034979913383722305,
-0.06606931239366531,
-0.031106766313314438,
-0.05599565431475639,
-0.04025990143418312,
0.07266929745674133,
0.03260044753551483,
-0.006925641093403101,
0.045400939881801605,
0.049221985042095184,
-0.04269147291779518,
-0.02132836915552616,
0.010698921047151089,
0.007707218173891306,
-0.027719931676983833,
-0.07044614106416702,
0.02045994997024536,
0.07676823437213898,
-0.0021949289366602898,
-0.055787231773138046,
-0.010985499247908592,
0.011845233850181103,
-0.040885161608457565,
-0.024089941754937172,
0.044706206768751144,
0.03598728030920029,
-0.011767076328396797,
-0.07343350350856781,
0.08621662855148315,
0.03056834638118744,
0.0284494049847126,
0.020095214247703552,
0.006504457909613848,
-0.004984724801033735,
0.07871349155902863,
0.023829415440559387,
-0.006039853673428297,
-0.03553570434451103,
-0.011497866362333298,
0.022526787593960762,
0.047311462461948395,
-0.010203922167420387,
-0.06304721534252167,
-0.0035800570622086525,
-0.016621537506580353,
-0.026608355343341827,
-0.007659454829990864,
0.03122834488749504,
-0.05780196562409401,
0.04772830381989479,
-0.05592617765069008,
0.021745210513472557,
-0.0129220737144351,
-0.0036213069688528776,
0.012140496633946896,
-0.0573156476020813,
0.015232067555189133,
-0.0007121035014279187,
-0.050055667757987976,
-0.007880901917815208,
0.006608668249100447,
-0.0399472713470459,
0.04804093390703201,
-0.05915669724345207,
0.0030524926260113716,
-0.011263393796980381,
0.02516677975654602,
-0.04998619481921196,
-0.04133674129843712,
-0.04338620975613594,
-0.009787081740796566,
-0.025132043287158012,
0.0015783513663336635,
0.04668620228767395,
0.012131812050938606,
0.015666278079152107,
-0.06228300556540489,
-0.00017490499885752797,
-0.026660460978746414,
-0.011853918433189392,
0.030082032084465027,
-0.007068930193781853,
-0.039808325469493866,
0.08788399398326874,
-0.0036430174950510263,
-0.024940991774201393,
0.0039013719651848078,
0.011549971997737885,
0.061171431094408035,
0.012079707346856594,
-0.0045114364475011826,
-0.009926028549671173,
0.05599565431475639,
0.02132836915552616,
-0.06075458973646164,
0.006139721721410751,
-0.0002685314102564007,
0.009048924781382084,
0.018462587147951126,
-0.009934712201356888,
0.04856198653578758,
-0.002329533686861396,
0.0017314102733507752,
-0.008271690458059311,
-0.014346281066536903,
-0.06728509813547134,
0.0009373496868647635,
-0.003310847096145153,
0.013156547211110592,
0.03883569315075874,
-0.06801456958055496,
0.00894471537321806,
0.000740869902074337,
0.018705744296312332,
-0.04217042401432991,
-0.048145145177841187,
0.0008705899817869067,
0.02796308882534504,
-0.008223927579820156,
-0.03383360058069229,
-0.06297773867845535,
-0.012218654155731201,
-0.03998200595378876,
0.0499514564871788,
0.0031632159370929003,
0.026434672996401787,
0.067076675593853,
-0.006999456789344549,
-0.05783670023083687,
-0.004411567933857441,
0.02483678050339222,
0.005701170302927494,
0.010525237768888474,
-0.027198880910873413,
0.010820499621331692,
-0.01415522862225771,
-0.045053575187921524,
-0.015423119999468327,
-0.016361013054847717,
-0.06613878905773163,
0.017654957249760628,
0.025097306817770004,
0.0005107388715259731,
-0.021380474790930748,
-0.004654725547879934,
-0.06964720040559769,
0.004168410785496235,
-0.029647821560502052,
0.0012678916100412607,
-0.015093120746314526,
0.016821274533867836,
-0.0055188024416565895,
-0.004229200072586536,
0.00791129656136036,
-0.024003099650144577,
-0.055821970105171204,
-0.027198880910873413,
-0.03588306903839111,
0.054085131734609604,
-0.009283398278057575,
-0.01787206158041954,
0.0430041067302227,
0.0025770331267267466,
0.026486776769161224,
-0.0069777462631464005,
0.01682995818555355,
0.04758935794234276,
0.10219553858041763,
-0.015101805329322815,
-0.015666278079152107,
0.03437202051281929,
-0.020268898457288742,
-0.05505776032805443,
-0.023447310552001,
0.12178707122802734,
-0.016873380169272423,
0.020616265013813972,
0.00860603153705597,
0.03661254048347473,
-0.08017243444919586,
-0.00019159492512699217,
0.0258441474288702,
-0.059260908514261246,
-0.0075682708993554115,
0.01858416572213173,
0.02810203656554222,
0.007893928326666355,
0.025600990280508995,
-0.0645061582326889,
-0.039669375866651535,
-0.01754206232726574,
-0.01763758808374405,
-0.005514460150152445,
0.003134992439299822,
-0.0022709155455231667,
0.041058845818042755,
-0.04237884283065796,
0.0013525624526664615,
-0.047971460968256,
0.017125220969319344,
-0.0021580210886895657,
-0.030689924955368042,
-0.021119948476552963,
-0.02935256063938141,
0.03282623365521431,
-0.021814683452248573,
-0.012357600964605808,
-0.024055203422904015,
0.006621694192290306,
0.07089772075414658,
-0.03124571219086647,
0.04873567074537277,
0.060824062675237656,
0.002976505784317851,
-0.024419941008090973,
0.011984181590378284,
0.008996820077300072,
-0.012522600591182709,
-0.006434984039515257,
-0.031019924208521843,
0.06627773493528366,
-0.09747134149074554,
0.000532992125954479,
0.063846156001091,
-0.062387216836214066,
0.03838411718606949,
-0.024558886885643005,
-0.008970767259597778,
-0.050055667757987976,
-0.01033418532460928,
0.03310412913560867,
0.005093276966363192,
-0.03405939042568207,
0.029543612152338028,
-0.008870899677276611,
-0.01491943746805191,
0.04779777675867081,
-0.04116305708885193,
-0.08260400593280792,
-0.034458864480257034,
0.017359694465994835,
-0.023134680464863777,
0.0388704314827919,
-0.01785469241440296,
0.04338620975613594,
-0.013000231236219406,
0.020963633432984352,
-0.023499416187405586,
0.011767076328396797,
0.05884406715631485,
0.032027289271354675,
-0.009066293947398663,
0.08663347363471985,
0.003451965283602476,
-0.06339458376169205,
0.01597890816628933,
0.01371233444660902,
-0.027164144441485405,
-0.046095676720142365,
-0.020043108612298965,
-0.0008743893122300506,
0.05311250314116478,
0.010507868602871895,
0.05519670620560646,
0.09274714440107346,
-0.0041358452290296555,
-0.06245668977499008,
0.01293075829744339,
-0.08406294882297516,
-0.03416360169649124,
0.004103279206901789,
0.019122585654258728,
0.033555708825588226,
-0.037237804383039474,
0.024003099650144577,
-0.057176701724529266,
-0.014988910406827927,
-0.0320446603000164,
0.013521282933652401,
0.058427225798368454,
0.008341163396835327,
-0.016994958743453026,
0.04303884133696556,
-0.06704194098711014,
-0.0021482512820512056,
0.020199423655867577,
-0.009213924407958984,
-0.0430041067302227,
-0.005262618884444237,
-0.041927266865968704,
0.014024965465068817,
-0.019817320629954338,
-0.04439357668161392,
-0.007199192885309458,
0.010447079315781593,
0.009821818210184574,
-0.026104673743247986,
-0.028171509504318237,
-0.055648285895586014,
-0.006443668622523546,
0.08045032620429993,
-0.00996944960206747,
-0.005132355727255344,
0.010646816343069077,
0.05655144155025482,
-0.002244862960651517,
-0.018306270241737366,
-0.002444599289447069,
0.03883569315075874,
-0.008006822317838669,
0.014876016415655613,
-0.06447142362594604,
-0.00867550540715456,
-0.05498828738927841,
0.0341983363032341,
-0.05088935047388077,
-0.02012995071709156,
0.03911358863115311,
0.003161044791340828,
-0.021449947729706764,
0.05241776630282402,
0.050403036177158356,
0.04081568866968155,
-0.020720476284623146,
-0.023742573335766792,
0.045748308300971985,
0.017924167215824127,
0.022526787593960762,
0.026156777516007423,
0.017229432240128517,
-0.017568115144968033,
-0.017229432240128517,
0.040537796914577484,
0.021797314286231995,
-0.0434209480881691,
-0.037758853286504745,
0.050090402364730835,
-0.005948669742792845,
-0.01808048225939274,
0.022908890619874,
-0.03904411569237709,
-0.038106221705675125,
-0.05644723027944565,
0.05227882042527199,
0.03838411718606949,
0.008623399771749973,
-0.044150419533252716,
0.028414666652679443,
0.05366829037666321,
0.029300455003976822,
0.007511823903769255,
0.06787562370300293,
0.018132587894797325,
0.012088391929864883,
-0.027910985052585602,
0.0003397689142730087,
0.014328911900520325,
-0.01649995893239975,
-0.08364611119031906,
-0.03416360169649124,
-0.06891772896051407,
0.038974642753601074,
0.0033238735049962997,
0.024072572588920593,
-0.05429355055093765,
0.017264168709516525,
-0.007594323717057705,
-0.03249623626470566,
0.0246457289904356,
0.011549971997737885,
0.01582259312272072,
-0.007650770712643862,
0.00910971499979496,
-0.007181824650615454,
0.00646103685721755,
-0.00810669083148241,
-0.01511048898100853,
-0.004685120191425085,
0.01703837886452675,
-0.027806773781776428,
-0.023325731977820396,
0.007246955763548613,
-0.0017987126484513283,
0.005149724427610636,
-0.09323345869779587,
0.02726835384964943,
-0.015892066061496735,
-0.021918892860412598,
-0.04738093540072441,
-0.06176195293664932,
-0.052000924944877625,
-0.02049468643963337,
0.024749940261244774,
-0.028258351609110832,
0.005219197832047939,
-0.025635726749897003,
-0.017359694465994835,
0.008875241503119469,
0.027389932423830032,
-0.01804574579000473,
0.01946995221078396,
0.0029895321931689978,
-0.007598665542900562,
0.016013644635677338,
0.004871830344200134,
0.04543567821383476,
0.01808048225939274,
0.031106766313314438,
0.026122041046619415,
-0.0353967547416687,
-0.05707249045372009,
-0.04095463827252388,
-0.04098937287926674,
0.032878339290618896,
0.025479411706328392,
0.0006274326588027179,
0.01630890741944313,
0.0382104329764843,
0.04741567373275757,
0.06249142438173294,
0.036716751754283905,
-0.00395564828068018,
0.06662510335445404,
-0.01979995146393776,
0.03164518624544144,
-0.03491044044494629,
0.026868881657719612,
-0.011471814475953579,
-0.004261766094714403,
0.05279986932873726,
-0.010551289655268192,
0.029265718534588814,
-0.02150205336511135,
-0.0033260444179177284,
0.02186678908765316,
-0.010299448855221272,
-0.024767307564616203,
0.03873148560523987,
-0.06877877563238144,
0.045053575187921524,
-0.002776769455522299,
0.024558886885643005,
-0.010751026682555676,
-0.03371202200651169,
0.016534697264432907,
-0.01570969820022583,
0.06054616719484329,
0.004889198578894138,
0.039148326963186264,
0.025948356837034225,
0.03737675026059151,
-0.014910752885043621,
0.01042971108108759,
0.03831464424729347,
0.03716833144426346,
0.013052336871623993,
0.07475350052118301,
-0.008970767259597778,
0.07232192903757095,
0.043143052607774734,
0.029821505770087242,
0.040885161608457565,
0.03001255728304386,
0.008150111883878708,
0.021310999989509583,
-0.015831276774406433,
-0.0010334185790270567,
-0.010820499621331692,
0.003875319380313158,
-0.05884406715631485,
-0.017073115333914757,
-0.0371335931122303,
0.10038922727108002,
0.08350716531276703,
-0.028744665905833244,
-0.02414204552769661,
0.007160114124417305,
-0.030498873442411423,
0.046755675226449966,
0.02153678983449936,
-0.03074203059077263,
0.030273083597421646,
-0.09712397307157516,
-0.05509249493479729,
0.04981251060962677,
-0.09517871588468552,
0.023343101143836975,
0.012088391929864883,
0.004233542364090681,
-0.02188415639102459,
-0.01431154366582632,
0.04949988052248955,
-0.05821880325675011,
-0.02723361738026142,
-0.004993408918380737,
0.026712566614151,
0.04717251658439636,
-0.013608125038444996,
0.07315561175346375,
-0.0440809465944767,
0.02831045724451542,
-0.07002930343151093,
0.0579756461083889,
-0.040364112704992294,
0.01993889920413494,
-0.016586801037192345,
-0.0112894456833601,
0.010889973491430283,
-0.013338915072381496,
-0.017168642953038216,
-0.013391019776463509,
0.019869424402713776,
-0.05057671666145325,
-0.03869674727320671,
0.036195699125528336,
-0.021658368408679962,
0.003449794137850404,
-0.014181281439960003,
-0.018549427390098572,
-0.027320459485054016,
-0.02223152481019497,
0.02428099326789379,
-0.009908660314977169,
0.016361013054847717,
-0.006712878122925758,
0.005818406585603952,
0.013260756619274616,
-0.016543380916118622,
-0.08496610820293427,
0.0038644641172140837,
0.02947413921356201,
-0.03525780886411667,
-0.002516243839636445,
-0.026990460231900215,
0.06398510932922363,
-0.0412672683596611,
-0.03390307351946831,
-0.08100611716508865,
0.0007690935162827373,
-0.026469409465789795,
0.016378380358219147,
0.0036929515190422535,
0.005718538537621498,
0.02204047329723835,
-0.02726835384964943,
-0.059469327330589294,
-0.025392569601535797,
0.006469720974564552,
0.011636813171207905,
-0.033937811851501465,
0.015857329592108727,
0.045817781239748,
-0.04345568269491196,
-0.05759354308247566,
-0.04793672636151314,
0.011411024257540703,
0.009500502608716488,
-0.04203147441148758,
0.03501465171575546,
0.020077845081686974,
-0.007598665542900562,
0.011054973118007183,
-0.04772830381989479,
0.0040598586201667786,
0.03458044305443764,
-0.053564079105854034,
-0.06606931239366531,
0.03692517429590225,
0.056169334799051285,
0.03327781334519386,
-0.012427074834704399,
-0.0015295027988031507,
-0.028605720028281212,
0.010290764272212982,
-0.03595254197716713,
0.031662553548812866,
-0.02624361962080002,
-0.04064200446009636,
0.01823679730296135,
-0.03900937736034393,
-0.024923622608184814,
-0.025913620367646217,
0.008953399024903774,
-0.022596260532736778,
-0.046269360929727554,
0.0249757282435894,
-0.018792586401104927,
0.02947413921356201,
0.001928975572809577,
0.03004729561507702,
-0.015622856095433235,
-0.01119391992688179,
0.048492513597011566,
-0.08350716531276703,
-0.010716289281845093,
-0.02864045649766922,
0.07357244938611984,
0.08809241652488708,
0.018497323617339134,
0.03900937736034393,
-0.009674186818301678,
0.07919980585575104,
-0.04345568269491196,
0.014598121866583824,
0.0607893243432045,
-0.023985730484128,
-0.02205784060060978,
0.0018182521453127265,
0.013217336498200893,
-0.0029504531994462013,
-0.013399704359471798,
0.03103729337453842,
-0.0014122662832960486,
0.03643885999917984,
-0.050090402364730835,
0.025479411706328392,
-0.009048924781382084,
-0.05894827842712402,
-0.022474681958556175,
-0.02045994997024536,
-0.020095214247703552,
0.027146775275468826,
0.03782832995057106,
-0.03612622618675232,
-0.02381204627454281,
-0.011758392676711082,
-0.021606262773275375,
0.00930076651275158,
0.030603082850575447,
0.0062048533000051975,
-0.001517562079243362,
-0.05898301303386688,
-0.008458400145173073,
0.025809410959482193,
-0.03537938743829727,
0.02693835459649563,
0.004976040683686733,
0.05116724222898483,
0.0043790023773908615,
0.018341008573770523,
0.01517996285110712,
0.028692562133073807,
-0.053911447525024414,
-0.06898719817399979,
0.07190508395433426,
-0.020216792821884155,
-0.007129719480872154,
-0.04185779392719269,
0.009943396784365177,
0.012166549451649189,
0.0031067687086760998,
0.05245250463485718,
-0.013295494019985199,
0.0232388898730278,
0.03477149456739426,
0.0006545707583427429,
0.01651732809841633,
-0.0010269053746014833,
0.003451965283602476,
0.053529344499111176,
-0.04977777227759361,
0.023881521075963974,
0.036195699125528336,
0.006608668249100447,
-0.0111244460567832,
-0.047311462461948395,
0.006456694565713406,
0.01684732735157013,
0.00009539039456285536,
0.028258351609110832,
0.011054973118007183,
0.032583076506853104
] |
21,157 | tfields.bounding_box | leaves |
Recursive function to create a list of all leaves
Returns:
list: of all leaves descending from this node
| def leaves(self):
"""
Recursive function to create a list of all leaves
Returns:
list: of all leaves descending from this node
"""
if self.is_leaf():
return [self]
else:
if self.left is not None:
leftLeaves = self.left.leaves()
else:
leftLeaves = []
if self.right is not None:
rightLeaves = self.right.leaves()
else:
rightLeaves = []
return tfields.lib.util.flatten(leftLeaves + rightLeaves)
| (self) | [
-0.021132685244083405,
-0.003914666827768087,
0.05615522339940071,
0.020350681617856026,
-0.039360787719488144,
-0.0006592327263206244,
-0.023348357528448105,
-0.016198622062802315,
0.0452071875333786,
-0.005017848685383797,
0.011860369704663754,
-0.032304149121046066,
0.013750209473073483,
0.0031955039594322443,
0.0034166057594120502,
0.000473041640361771,
-0.05824056267738342,
-0.032136574387550354,
0.01204656157642603,
0.029622996225953102,
-0.04412727802991867,
-0.04334527626633644,
0.07518395036458969,
0.014792879112064838,
-0.008713740855455399,
-0.03723821043968201,
0.01204656157642603,
-0.0012649354757741094,
-0.022510498762130737,
0.03295581787824631,
-0.057681988924741745,
-0.034147437661886215,
-0.05786817893385887,
-0.06624677777290344,
-0.016543075442314148,
0.006069828290492296,
-0.004512805491685867,
0.04427623376250267,
-0.00634445995092392,
0.017474031075835228,
-0.0010409243404865265,
-0.021430591121315956,
-0.05157492309808731,
-0.022491879761219025,
0.017688149586319923,
-0.05157492309808731,
0.07205593585968018,
-0.025415079668164253,
-0.009165254421532154,
-0.03362610563635826,
0.03068428486585617,
0.0709015503525734,
-0.0022075276356190443,
-0.013722280971705914,
-0.008890623226761818,
-0.031857289373874664,
-0.0112273208796978,
-0.03584177792072296,
0.05097911134362221,
0.0076850359328091145,
0.01653376594185829,
0.0021470156498253345,
0.011497297324240208,
-0.000911754323169589,
0.02509855479001999,
0.02831965871155262,
-0.09279762208461761,
-0.009514362551271915,
-0.001894493936561048,
0.04557957127690315,
-0.06673087179660797,
-0.02167263813316822,
0.013424375094473362,
0.048968248069286346,
0.0035422847140580416,
-0.023292500525712967,
-0.01636619307100773,
0.031093906611204147,
-0.053883690387010574,
-0.027723846957087517,
-0.0630815252661705,
0.0190566536039114,
-0.01631033606827259,
0.07745547592639923,
0.047590434551239014,
-0.020294824615120888,
0.020276205614209175,
0.025191649794578552,
0.0008535695960745215,
0.013433684594929218,
-0.01008224580436945,
-0.02660670131444931,
-0.02766798995435238,
-0.012456181459128857,
-0.03921183571219444,
0.005967423319816589,
-0.054181598126888275,
-0.027574894949793816,
-0.07708309590816498,
-0.013387137092649937,
0.010705985128879547,
0.07537014037370682,
-0.04010555148124695,
0.036083824932575226,
0.0008628791547380388,
-0.00994260236620903,
-0.07201869785785675,
-0.04193022474646568,
0.048595864325761795,
0.021840211004018784,
-0.04435070976614952,
-0.006316531449556351,
0.03712649643421173,
0.008764944039285183,
-0.03520872816443443,
-0.005455398000776768,
0.01026843674480915,
0.0020737028680741787,
-0.02846861258149147,
-0.05168663710355759,
0.07376889884471893,
0.0003438715939410031,
-0.012633062899112701,
-0.02273392677307129,
-0.012176894582808018,
0.03265791013836861,
0.02381383627653122,
0.01809776946902275,
-0.05757027491927147,
-0.04397832602262497,
0.043382514268159866,
0.05336235463619232,
-0.049750249832868576,
-0.0031349919736385345,
0.018358437344431877,
-0.05172387510538101,
0.06244847923517227,
-0.01638481207191944,
0.00531109981238842,
-0.0060791377909481525,
-0.008620645850896835,
-0.034780487418174744,
0.07421575486660004,
0.03820640593767166,
-0.060474853962659836,
0.010584961622953415,
-0.0010525613324716687,
0.004452293738722801,
-0.005981387570500374,
0.04070136323571205,
0.01291234977543354,
-0.03906288370490074,
-0.002271530916914344,
-0.0069123427383601665,
-0.005809160880744457,
0.0027393358759582043,
-0.05354854837059975,
-0.006949581205844879,
-0.005818470381200314,
-0.0075593567453324795,
-0.07514671236276627,
0.023869693279266357,
-0.04181851074099541,
-0.039733171463012695,
-0.0017548507312312722,
-0.010212578810751438,
0.013564018532633781,
-0.023143548518419266,
-0.030777381733059883,
0.03451982140541077,
0.019326630979776382,
-0.02081616036593914,
-0.08870141953229904,
0.01383399497717619,
-0.00933748111128807,
0.0020667207427322865,
-0.01966177485883236,
0.06300704926252365,
-0.021542305126786232,
0.044723089784383774,
-0.04643604904413223,
-0.026364652439951897,
-0.0033630758989602327,
-0.03597211092710495,
0.07335927337408066,
-0.028803756460547447,
-0.043531470000743866,
-0.0038425179664045572,
-0.028263801708817482,
-0.02424207516014576,
-0.051388729363679886,
-0.07052917033433914,
0.02375797927379608,
0.002774246735498309,
0.019214916974306107,
-0.014681164175271988,
-0.001513966009952128,
0.045728523284196854,
-0.014113281853497028,
0.021654019132256508,
-0.04096203297376633,
0.020276205614209175,
0.0360465869307518,
-0.009849506430327892,
0.030870476737618446,
0.04531890153884888,
-0.034501202404499054,
-0.016356883570551872,
-0.007643142715096474,
-0.001484873704612255,
0.018339818343520164,
0.025303363800048828,
-0.01555626280605793,
0.0168409813195467,
-0.017176125198602676,
-0.0542188361287117,
-0.08542445302009583,
0.016477908939123154,
0.0021039589773863554,
0.0010415061842650175,
-0.04692014679312706,
-0.0014278526650741696,
-0.040440697222948074,
-0.04822348430752754,
-0.007680380716919899,
-0.011236630380153656,
0.011692797765135765,
-0.03195038437843323,
0.03824364393949509,
-0.02224983088672161,
-0.010929415002465248,
-0.039435263723134995,
-0.06013971194624901,
-0.05321340262889862,
0.021039588376879692,
0.04360594600439072,
-0.026290176436305046,
-0.04755319654941559,
0.03299305588006973,
-0.02431655116379261,
-0.0545167401432991,
-0.023143548518419266,
-0.015146641992032528,
-0.014941832050681114,
0.05991628021001816,
0.013247493654489517,
0.035283204168081284,
0.04427623376250267,
-0.012819253839552402,
0.027556275948882103,
-0.024428267031908035,
-0.045095473527908325,
0.055112551897764206,
0.008727706037461758,
0.07004507631063461,
-0.021486448124051094,
0.012465490959584713,
0.019345249980688095,
0.01953144185245037,
0.036363113671541214,
0.07968977093696594,
-0.057756464928388596,
0.0031024084892123938,
0.05112806335091591,
-0.0017187761841341853,
-0.0041031851433217525,
0.04561680927872658,
-0.004019399173557758,
-0.029343709349632263,
0.007070605177432299,
0.14709092676639557,
-0.054740168154239655,
-0.03654930368065834,
0.0037028745282441378,
0.022566355764865875,
-0.01132972538471222,
0.021560924127697945,
0.012791325338184834,
-0.021151304244995117,
-0.014029495418071747,
-0.03269514814019203,
-0.022268449887633324,
-0.02001553773880005,
0.018107080832123756,
-0.03392400965094566,
-0.03947250172495842,
-0.01132972538471222,
-0.019550060853362083,
-0.0499364398419857,
0.016859600320458412,
0.09689382463693619,
0.0049061342142522335,
-0.013657113537192345,
0.018572557717561722,
0.10255403071641922,
-0.026960464194417,
0.03046085685491562,
-0.02038791961967945,
0.04803729057312012,
0.03237862512469292,
0.019568679854273796,
-0.04286118224263191,
0.06013971194624901,
-0.02396278828382492,
0.015537643805146217,
0.0062234359793365,
-0.00006916706479387358,
0.013117159716784954,
0.02874789945781231,
0.01960591785609722,
-0.08490312099456787,
-0.006567889358848333,
0.02575022354722023,
-0.012027941644191742,
-0.05068120360374451,
-0.07842367142438889,
0.030442237854003906,
-0.0037959699984639883,
0.02051825448870659,
0.0035446120891720057,
-0.031931765377521515,
0.033421292901039124,
0.007564011495560408,
0.053250640630722046,
0.012791325338184834,
0.026550844311714172,
0.02938094735145569,
0.024782029911875725,
0.06401248276233673,
0.004999229684472084,
-0.0016803742619231343,
-0.04356870800256729,
0.039658695459365845,
0.0025996926706284285,
-0.07332203537225723,
-0.025154411792755127,
0.0985323041677475,
0.04639881104230881,
-0.02811484970152378,
-0.02660670131444931,
-0.012735468335449696,
0.021840211004018784,
-0.007712964434176683,
0.010985272005200386,
0.05634141340851784,
0.07931739091873169,
0.029231995344161987,
0.04829796031117439,
0.03824364393949509,
0.11886436492204666,
-0.0033514390233904123,
0.02252911776304245,
0.010203269310295582,
-0.0038332082331180573,
-0.010314984247088432,
-0.009737792424857616,
-0.0003569631662685424,
0.045095473527908325,
-0.01794881746172905,
0.04263775050640106,
0.06755011528730392,
-0.014560140669345856,
-0.03182005137205124,
0.031578004360198975,
0.029511282220482826,
-0.02416759915649891,
-0.009397993795573711,
0.037163734436035156,
0.03519010916352272,
-0.03680996969342232,
-0.010333603248000145,
-0.033421292901039124,
0.013573328033089638,
-0.018917011097073555,
-0.01908458210527897,
0.05447950214147568,
0.011599702760577202,
-0.02273392677307129,
0.057384081184864044,
0.04073860123753548,
-0.04837243631482124,
-0.044164516031742096,
0.023218024522066116,
-0.02846861258149147,
0.058687418699264526,
0.02746318094432354,
0.020425157621502876,
-0.04204193875193596,
0.038504309952259064,
0.01938248798251152,
-0.027165275067090988,
0.0178743414580822,
-0.037014782428741455,
0.021858830004930496,
-0.06565096229314804,
0.04178127273917198,
0.03969593346118927,
-0.032285530120134354,
0.05135149136185646,
-0.022082258015871048,
0.035432156175374985,
0.0002157197886845097,
-0.014103972353041172,
0.014960451051592827,
0.019214916974306107,
0.004633829928934574,
-0.0001080053552868776,
-0.008252918720245361,
0.03921183571219444,
-0.02846861258149147,
0.04006831347942352,
-0.0059441495686769485,
-0.015025617554783821,
0.03133595362305641,
0.055112551897764206,
-0.0722421258687973,
0.04170679673552513,
0.10925690829753876,
0.06107066571712494,
-0.003288599429652095,
0.006032590288668871,
-0.004724598024040461,
0.012204823084175587,
0.050830159336328506,
0.0201644916087389,
0.025731602683663368,
-0.0009280460071749985,
0.03133595362305641,
-0.04312184825539589,
0.021356113255023956,
0.028375515714287758,
-0.04796281456947327,
-0.013294041156768799,
-0.06926307082176208,
-0.015472476370632648,
-0.01258651539683342,
-0.010659437626600266,
-0.028412755578756332,
-0.028226563706994057,
0.07432746887207031,
0.03798297420144081,
0.05164939910173416,
0.01577969267964363,
-0.057607512921094894,
0.09629800915718079,
0.020220348611474037,
-0.024074502289295197,
0.03137319162487984,
-0.02567574568092823,
-0.030628427863121033,
-0.004259120207279921,
-0.0046943421475589275,
0.00416602473706007,
0.011245939880609512,
-0.06654468178749084,
-0.0019957353360950947,
-0.021114066243171692,
-0.012083799578249454,
-0.014327401295304298,
0.02494960092008114,
0.04900548607110977,
0.0226035937666893,
0.02781694382429123,
0.09257419407367706,
0.0011735855368897319,
-0.04103650897741318,
0.035283204168081284,
-0.039435263723134995,
-0.013517470099031925,
-0.04111098498106003,
0.066470205783844,
-0.04334527626633644,
-0.08825455605983734,
-0.06334219872951508,
0.061256855726242065,
0.026420511305332184,
-0.029585758224129677,
-0.08244539797306061,
-0.006190852727741003,
-0.08311568945646286,
-0.07097602635622025,
-0.028133468702435493,
-0.03435225039720535,
-0.03883945196866989,
-0.029641615226864815,
-0.033495768904685974,
-0.044387947767972946,
-0.0014674182748422027,
0.015798311680555344,
-0.07276346534490585,
-0.06769906729459763,
-0.03641897067427635,
-0.04848415032029152,
0.011143534444272518,
-0.034575678408145905,
0.028803756460547447,
-0.017073718830943108,
-0.016822362318634987,
-0.02897132746875286,
0.02617846243083477,
0.025191649794578552,
0.012567896395921707,
0.0122606810182333,
0.015100094489753246,
-0.02416759915649891,
0.03096357174217701,
0.029660234227776527,
0.007317308336496353,
0.002271530916914344,
-0.00784329790621996,
0.02388831228017807,
-0.049675773829221725,
-0.004356870427727699,
0.06442210078239441,
-0.06889069080352783,
0.007079914677888155,
0.0016093889717012644,
0.04803729057312012,
0.053920928388834,
0.05876189470291138,
-0.05645312741398811,
-0.014671854674816132,
0.009793649427592754,
-0.0014243616024032235,
0.01769745908677578,
0.03137319162487984,
-0.03883945196866989,
0.021151304244995117,
0.001893330249004066,
0.024204837158322334,
-0.0037564043886959553,
-0.027556275948882103,
0.02130025625228882,
-0.007633833214640617,
-0.07030574232339859,
0.013182326219975948,
-0.020201729610562325,
0.027016321197152138,
-0.020685825496912003,
-0.020555492490530014,
0.042526036500930786,
-0.03433363139629364,
0.015491095371544361,
0.036139681935310364,
-0.041446126997470856,
-0.0018351455219089985,
0.03854154795408249,
-0.012642372399568558,
0.03917459771037102,
0.02182159200310707,
0.014336710795760155,
0.0038192439824342728,
0.003975179046392441,
-0.013712971471250057,
0.030647046864032745,
-0.020574111491441727,
0.013601256534457207,
0.0021016316022723913,
0.006786664016544819,
0.007750202436000109,
-0.024353789165616035,
0.03297443687915802,
-0.015006998553872108,
0.005334373563528061,
-0.007894501090049744,
0.0005754466983489692,
-0.021263018250465393,
0.06814592331647873,
0.023441454395651817,
0.05634141340851784,
0.002497287467122078,
0.03690306842327118,
0.0536230243742466,
-0.04907996207475662,
0.03539491817355156,
0.024148980155587196,
-0.01008224580436945,
0.015388690866529942,
-0.02182159200310707,
-0.08430730551481247,
-0.011972084641456604,
-0.0381133072078228,
-0.05552217364311218,
0.018544629216194153,
-0.022436022758483887,
0.033421292901039124,
0.021058207377791405,
0.04241432249546051,
-0.0452071875333786,
0.030647046864032745,
0.035860396921634674,
0.02280840463936329,
0.05824056267738342,
0.031298715621232986,
0.0020667207427322865,
-0.033142007887363434,
-0.009840196929872036,
0.007010092958807945,
-0.01845153421163559,
-0.01570521481335163,
0.03861602395772934,
-0.0031349919736385345,
0.04636157304048538,
0.019438346847891808,
-0.02046239748597145,
-0.026997702196240425,
0.021505067124962807,
0.015276975929737091,
-0.03355162963271141,
0.026494987308979034,
0.02001553773880005,
-0.0010700167622417212,
0.04814900457859039,
-0.04539337754249573,
-0.02172849513590336,
-0.0057114106602966785,
-0.015723833814263344,
-0.006307221949100494,
0.02046239748597145,
0.014653235673904419,
-0.00736851105466485,
-0.023013213649392128,
0.0018677290063351393,
0.0034282428678125143,
-0.07343374937772751,
-0.026401890441775322,
-0.007889846339821815,
-0.048446912318468094,
0.017902269959449768,
0.01544454786926508,
-0.005655553191900253,
-0.01781848445534706,
-0.025005457922816277,
-0.021151304244995117,
-0.01966177485883236,
-0.013098540715873241,
0.026401890441775322,
-0.050308823585510254,
-0.021188542246818542,
-0.02102096937596798,
-0.08818008005619049,
0.019326630979776382,
-0.039360787719488144,
-0.026550844311714172,
-0.02210087887942791,
0.0005405358970165253,
-0.02746318094432354,
0.01380606647580862,
-0.027705227956175804,
-0.04684567078948021,
-0.04260051250457764,
0.009039575234055519,
0.026494987308979034,
0.029734712094068527,
0.010659437626600266,
0.024912362918257713,
0.013163707219064236,
0.023124929517507553,
0.020294824615120888,
-0.013424375094473362,
0.02675565518438816,
-0.06535305827856064,
-0.016422050073742867,
0.013657113537192345,
0.005106289405375719,
-0.01116215344518423,
-0.03824364393949509,
0.07190698385238647,
0.028003133833408356,
0.006442210637032986,
0.015435238368809223,
-0.014467044733464718,
0.03202486038208008,
-0.005567112471908331,
-0.017930198460817337,
-0.01441118773072958,
0.00379131524823606,
0.020723063498735428,
0.07123669981956482,
-0.010035697370767593,
-0.02874789945781231,
0.06851831078529358,
-0.022361544892191887,
-0.01966177485883236,
0.030982190743088722,
0.03720097243785858,
-0.02509855479001999,
0.051165301352739334,
0.01326611265540123,
0.006884414236992598,
-0.0354507751762867,
-0.054107118397951126,
0.04319632425904274,
0.07581699639558792,
0.02416759915649891,
0.050308823585510254,
-0.003386349882930517,
-0.04647328704595566,
-0.04304737225174904,
0.00243212073110044,
-0.0066982232965528965,
0.007200939115136862,
-0.05150044709444046,
0.030274664983153343,
0.03820640593767166,
-0.004910788964480162,
0.025638507679104805,
0.025657126680016518,
-0.04569128528237343,
0.02152368612587452,
-0.051537685096263885,
0.045877475291490555,
0.006214126478880644,
-0.03260205313563347,
-0.00004131114110350609,
-0.055969029664993286,
0.08400940150022507,
-0.01476495061069727,
0.001028123777359724,
-0.002304114168509841,
0.017678840085864067,
0.017855722457170486,
0.06393800675868988,
0.01938248798251152,
0.01509078498929739,
0.017734697088599205,
-0.010910796001553535,
-0.02202640101313591,
-0.07827471941709518,
-0.018861154094338417,
0.0033188555389642715,
0.05373473837971687,
0.0364934466779232,
0.0016966660041362047,
0.025545412674546242,
-0.05615522339940071,
0.004708306398242712,
0.018311889842152596,
-0.06107066571712494,
0.02066720649600029,
0.019047344103455544,
-0.0005262806662358344,
-0.014541521668434143,
0.04006831347942352,
0.0339798666536808,
-0.04576576128602028,
0.04822348430752754,
0.06985888630151749,
-0.02373935841023922,
-0.03327234089374542,
0.03275100514292717,
0.008318085223436356,
0.04989920184016228,
-0.06401248276233673,
-0.0028696695808321238,
0.04397832602262497,
-0.03252757713198662,
-0.04178127273917198,
-0.06982164829969406,
-0.030572570860385895,
0.010007768869400024,
-0.022417401894927025,
-0.05019710958003998,
0.031280096620321274,
0.00822033453732729,
0.028282420709729195,
0.011422821320593357,
-0.006349114701151848
] |
21,158 | tfields.planes_3d | Planes3D |
Point-NormVector representaion of planes
Examples:
>>> import tfields
>>> points = [[0, 1, 0]]
>>> norms = [[0, 0, 1]]
>>> plane = tfields.Planes3D(points, norms)
>>> plane.symbolic()[0]
Plane(Point3D(0, 1, 0), (0, 0, 1))
| class Planes3D(tfields.TensorFields):
"""
Point-NormVector representaion of planes
Examples:
>>> import tfields
>>> points = [[0, 1, 0]]
>>> norms = [[0, 0, 1]]
>>> plane = tfields.Planes3D(points, norms)
>>> plane.symbolic()[0]
Plane(Point3D(0, 1, 0), (0, 0, 1))
"""
def symbolic(self):
"""
Returns:
list: list with sympy.Plane objects
"""
return [
sympy.Plane(point, normal_vector=vector)
for point, vector in zip(self, self.fields[0])
]
def plot(self, **kwargs): # pragma: no cover
"""
forward to Mesh3D plotting
"""
artists = []
centers = np.array(self)
norms = np.array(self.fields[0])
for i in range(len(self)):
artists.append(rna.plotting.plot_plane(centers[i], norms[i], **kwargs))
return artists
| (tensors, *fields, **kwargs) | [
0.0011554431403055787,
0.005784670356661081,
-0.018230197951197624,
0.03967155143618584,
-0.009890364482998848,
0.00650029955431819,
-0.05042434111237526,
-0.045176394283771515,
-0.04304785653948784,
0.05758063495159149,
0.020661503076553345,
0.004394697956740856,
-0.03783660754561424,
0.03049681894481182,
-0.02045965939760208,
-0.006890225689858198,
-0.030808759853243828,
0.040882617235183716,
-0.006564522627741098,
-0.018321944400668144,
-0.004378641955554485,
-0.00711041921749711,
0.027854494750499725,
0.03974495083093643,
0.04836920276284218,
0.004977293778210878,
0.0072939139790833,
-0.017294375225901604,
-0.021964315325021744,
0.02273499220609665,
-0.05369054898619652,
0.009706869721412659,
-0.03636864945292473,
0.03482729196548462,
-0.003963485360145569,
-0.06125053018331528,
0.01269783265888691,
0.0046768211759626865,
-0.06040645390748978,
0.05464471876621246,
0.043708436191082,
-0.032625358551740646,
0.01258773636072874,
-0.032331764698028564,
-0.010312401689589024,
-0.013606132008135319,
0.06818662583827972,
-0.035139232873916626,
-0.054277729243040085,
-0.048075608909130096,
0.02067985199391842,
-0.02895546332001686,
0.04939677193760872,
-0.02778109721839428,
0.007904034107923508,
0.019395388662815094,
0.02512042410671711,
0.07574661076068878,
-0.017358597368001938,
-0.004270839039236307,
-0.037616413086652756,
-0.007977431640028954,
-0.025854403153061867,
-0.021322082728147507,
-0.02642323635518551,
-0.012009727768599987,
0.009275657124817371,
0.014450207352638245,
0.012275795452296734,
0.003637782298028469,
-0.05816781893372536,
0.0016537458868697286,
0.029726140201091766,
-0.047048039734363556,
0.0419468879699707,
-0.0015321807004511356,
0.029157306998968124,
-0.017918257042765617,
-0.01531263254582882,
-0.04726823419332504,
-0.023505670949816704,
-0.034570399671792984,
-0.013881374150514603,
0.03697418048977852,
-0.00019998055358882993,
-0.02245975099503994,
0.023652466014027596,
-0.04510299488902092,
-0.019450437277555466,
-0.03324924036860466,
-0.03699253126978874,
-0.06459013372659683,
-0.021689072251319885,
0.007573743350803852,
-0.059378884732723236,
-0.036717288196086884,
0.018808206543326378,
-0.0873434767127037,
-0.06767284125089645,
0.024019455537199974,
0.04712143912911415,
-0.011890456080436707,
-0.0373411700129509,
0.05310336500406265,
0.022001013159751892,
-0.015083263628184795,
-0.06906740367412567,
-0.023835960775613785,
-0.00463324086740613,
0.022533148527145386,
-0.02073490060865879,
0.10143586993217468,
0.016936561092734337,
0.035139232873916626,
-0.00005325646998244338,
-0.04135970398783684,
-0.005555301904678345,
0.018643060699105263,
-0.018826555460691452,
-0.04506629705429077,
0.0347355455160141,
0.049616966396570206,
-0.012275795452296734,
0.042937759310007095,
-0.0004911349969916046,
0.013385937549173832,
0.04778201878070831,
-0.008151751942932606,
-0.0658745989203453,
-0.04855269566178322,
-0.0007288180058822036,
0.04580027610063553,
-0.038166895508766174,
0.010046334937214851,
0.036350298672914505,
0.019597234204411507,
0.07633379101753235,
-0.013009773567318916,
-0.06477362662553787,
0.04991055652499199,
0.01657874509692192,
0.05365384742617607,
-0.010147256776690483,
0.016193406656384468,
-0.09005919843912125,
0.00507821561768651,
0.008931604214012623,
-0.03568971902132034,
-0.008298547938466072,
-0.016074135899543762,
0.006431489251554012,
-0.04341484606266022,
0.03820359706878662,
0.026955369859933853,
-0.026881972327828407,
0.009009589441120625,
0.0002170398220187053,
-0.062461595982313156,
0.03945136070251465,
0.04301115497946739,
-0.04488280415534973,
0.007848985493183136,
-0.06367266178131104,
0.05585578456521034,
0.0023280889727175236,
0.017633840441703796,
0.056809958070516586,
-0.08815085142850876,
-0.040185339748859406,
0.02732235938310623,
0.038497187197208405,
-0.013899723067879677,
-0.05897519364953041,
0.07361806929111481,
-0.013229967094957829,
0.019321991130709648,
0.004172210581600666,
0.003007019404321909,
0.025799354538321495,
-0.018936652690172195,
0.01857883855700493,
-0.014679575338959694,
-0.001261526020243764,
0.022496448829770088,
0.021138587966561317,
-0.026533333584666252,
0.0008974037482403219,
-0.00609202403575182,
0.004596542101353407,
-0.00006210865103639662,
0.010532595217227936,
0.018688933923840523,
-0.013532733544707298,
-0.009151797741651535,
-0.005752558819949627,
-0.030221575871109962,
0.013046473264694214,
-0.052406083792448044,
0.04146980121731758,
0.03403826430439949,
-0.037653110921382904,
-0.0020918394438922405,
0.02745080552995205,
0.009780267253518105,
-0.0045529622584581375,
0.030368372797966003,
0.05295656993985176,
-0.027799446135759354,
-0.03712097555398941,
0.03820359706878662,
0.07670078426599503,
-0.020533056929707527,
0.022478099912405014,
0.019945872947573662,
-0.020533056929707527,
-0.030515167862176895,
-0.05233268812298775,
0.02167072333395481,
-0.0004988762084394693,
0.005394744221121073,
0.020789949223399162,
0.012073950842022896,
-0.02684527449309826,
0.0073076761327683926,
-0.002454241504892707,
-0.034056615084409714,
0.054938312619924545,
0.05009405314922333,
-0.07365477085113525,
-0.06642507761716843,
-0.014413508586585522,
0.028973812237381935,
-0.07838893681764603,
0.000651979586109519,
0.07380156964063644,
-0.03113904967904091,
0.00438781687989831,
-0.049139879643917084,
0.01370705384761095,
-0.04491950199007988,
0.02829488180577755,
-0.024808483198285103,
-0.009605946950614452,
-0.015211709775030613,
-0.015725495293736458,
0.054241031408309937,
0.0054589672945439816,
0.031909726560115814,
-0.034625448286533356,
-0.02651498280465603,
-0.03706592693924904,
-0.010532595217227936,
-0.009541723877191544,
0.04767192155122757,
-0.014771322719752789,
-0.08859124034643173,
0.046717748045921326,
-0.020808298140764236,
0.05515850707888603,
-0.02003762125968933,
-0.04326804727315903,
-0.07306759059429169,
0.02073490060865879,
0.03741456940770149,
0.12932705879211426,
-0.015019040554761887,
0.006605809088796377,
-0.0052341860719025135,
0.04444241523742676,
0.029689442366361618,
0.089105024933815,
0.05813112109899521,
-0.029542645439505577,
-0.014294236898422241,
0.013734578154981136,
-0.019211893901228905,
0.015303457155823708,
-0.007628791965544224,
0.01300059910863638,
-0.00207234313711524,
-0.00670214369893074,
-0.06888391077518463,
-0.06121382862329483,
0.002672141417860985,
0.011468418873846531,
0.009183909744024277,
0.00749575812369585,
0.016771415248513222,
0.039855048060417175,
-0.01656957156956196,
0.021854218095541,
0.06840682029724121,
0.03860728442668915,
-0.059378884732723236,
0.0022329010535031557,
-0.001427818089723587,
-0.08198542892932892,
0.01389054860919714,
0.005225011613219976,
-0.015808068215847015,
0.003993303515017033,
-0.029634393751621246,
0.09798616915941238,
0.014028169214725494,
-0.042277175933122635,
-0.003279967699199915,
-0.009170147590339184,
0.04014863818883896,
0.0738382637500763,
-0.04822240769863129,
0.02442314475774765,
0.04411212354898453,
-0.10400479286909103,
0.025505762547254562,
0.03735952079296112,
0.0582779161632061,
-0.037139326333999634,
-0.03446030244231224,
0.004172210581600666,
0.03315749019384384,
0.0053718071430921555,
-0.006330566946417093,
-0.01106473058462143,
0.043781835585832596,
0.019230244681239128,
-0.06565440446138382,
0.0223129540681839,
-0.07137943804264069,
0.0033418971579521894,
0.035084184259176254,
0.010569293983280659,
0.04950686916708946,
-0.00570668512955308,
0.0513785146176815,
-0.07736136019229889,
-0.03809349983930588,
0.047561824321746826,
-0.0008326071547344327,
0.011174826882779598,
0.028588473796844482,
0.040699124336242676,
-0.0021090421359986067,
-0.05163540691137314,
0.001783339073881507,
-0.02717556431889534,
-0.013138219714164734,
0.010679391212761402,
-0.006647095549851656,
0.0676361471414566,
0.07611359655857086,
-0.013716228306293488,
-0.025982849299907684,
0.052736375480890274,
0.04341484606266022,
-0.03183633089065552,
0.01634937711060047,
-0.004500207491219044,
0.010890410281717777,
-0.05758063495159149,
0.03974495083093643,
0.023982755839824677,
-0.01134914718568325,
-0.022294605150818825,
0.02932245284318924,
-0.005940640810877085,
-0.05174550414085388,
0.03791000321507454,
-0.0179824810475111,
0.06070004403591156,
0.012275795452296734,
0.0013200149405747652,
-0.04440571740269661,
0.032148271799087524,
0.007069133222103119,
-0.01064269244670868,
0.025285568088293076,
0.02829488180577755,
0.015101613476872444,
-0.011550990864634514,
-0.05501170828938484,
0.036258552223443985,
-0.037983402609825134,
0.05148861184716225,
0.006807653233408928,
-0.021322082728147507,
0.03646039590239525,
-0.020936744287610054,
0.04102941229939461,
0.035230983048677444,
-0.0031538151670247316,
0.01011055801063776,
-0.019725680351257324,
0.028460027649998665,
-0.019175196066498756,
-0.01708335615694523,
-0.0038510949816554785,
-0.05233268812298775,
-0.0037272360641509295,
-0.0006502593168988824,
-0.034863993525505066,
-0.03614845499396324,
-0.05930548533797264,
-0.010899584740400314,
0.05336025729775429,
-0.0006192945875227451,
-0.00127872871235013,
0.05926878750324249,
0.02330382540822029,
0.015514476224780083,
0.007092069834470749,
0.04268086701631546,
0.050461042672395706,
0.019945872947573662,
-0.03904766961932182,
0.01295472588390112,
-0.0026836099568754435,
-0.013367588631808758,
0.010991332121193409,
0.02834993042051792,
0.059085290879011154,
0.037102628499269485,
0.03805679827928543,
-0.017239326611161232,
0.03240516409277916,
0.03390982002019882,
0.006431489251554012,
-0.021267035976052284,
0.03923116624355316,
0.022239556536078453,
0.05156200751662254,
-0.017266850918531418,
-0.03207487240433693,
-0.0003044865152332932,
-0.06525071710348129,
0.006316804792732,
0.009275657124817371,
0.0034359381534159184,
0.021358782425522804,
-0.022202858701348305,
0.05380064621567726,
0.0755264163017273,
-0.010202305391430855,
-0.027047118172049522,
-0.07985689491033554,
-0.030038081109523773,
0.04719483479857445,
0.01961558312177658,
-0.026881972327828407,
-0.0462406650185585,
0.010101382620632648,
0.032056521624326706,
0.07013167440891266,
0.01904674991965294,
-0.030239926651120186,
0.01895500160753727,
-0.01891830377280712,
0.03442360460758209,
-0.070388562977314,
-0.03853388503193855,
0.015037390403449535,
0.002197348978370428,
0.02045965939760208,
0.016505347564816475,
-0.03409331291913986,
-0.0115785151720047,
-0.0643332377076149,
0.011541816405951977,
-0.011954679153859615,
-0.011431719176471233,
-0.05042434111237526,
0.0033717150799930096,
0.01452360488474369,
-0.01454195473343134,
-0.012459290213882923,
0.008945366367697716,
0.06224140152335167,
0.02502867579460144,
0.0033373096957802773,
-0.07317768782377243,
-0.07262720167636871,
-0.050461042672395706,
-0.03570806607604027,
0.032992344349622726,
-0.010046334937214851,
-0.0020941332913935184,
0.11061060428619385,
-0.007215928751975298,
0.06392955034971237,
0.036350298672914505,
-0.024129552766680717,
-0.02106519043445587,
0.006729668006300926,
-0.00008787675324128941,
0.040405530482530594,
-0.022202858701348305,
0.03468049690127373,
0.004922245163470507,
0.03594661131501198,
-0.044992897659540176,
0.04833250120282173,
0.024111203849315643,
-0.04818570613861084,
-0.020936744287610054,
-0.048626095056533813,
0.042093683034181595,
-0.028735268861055374,
0.0205514058470726,
0.006339741870760918,
0.03306574374437332,
0.012716182507574558,
-0.002087252214550972,
-0.054424528032541275,
0.03638699650764465,
-0.02735905908048153,
0.012037252075970173,
0.047892116010189056,
-0.03352447971701622,
0.014248362742364407,
-0.04168999567627907,
0.033597879111766815,
0.002442773198708892,
0.021120239049196243,
-0.014376809820532799,
-0.0197073295712471,
-0.031909726560115814,
0.03236846253275871,
-0.068700410425663,
-0.04007524251937866,
0.05295656993985176,
0.025157121941447258,
0.031175749376416206,
-0.01965228095650673,
-0.02330382540822029,
0.018523789942264557,
0.018239373341202736,
0.07860912382602692,
-0.0394880585372448,
0.0019565122202038765,
0.030386721715331078,
-0.03552457317709923,
-0.005330520682036877,
-0.021597325801849365,
-0.005541539750993252,
-0.05394744127988815,
0.03981835022568703,
-0.04301115497946739,
0.00625716894865036,
-0.02886371500790119,
0.030808759853243828,
0.014330935664474964,
0.02012936770915985,
-0.020844997838139534,
0.047561824321746826,
-0.01745952107012272,
-0.0012443234445527196,
0.08367358148097992,
-0.019303642213344574,
-0.023615768179297447,
-0.0007443003705702722,
-0.002786825643852353,
0.0027776509523391724,
-0.007041608914732933,
0.06103033572435379,
0.05295656993985176,
0.018266897648572922,
-0.04062572494149208,
0.05159870907664299,
0.004747925326228142,
-0.0012707007117569447,
0.01216569822281599,
0.037322819232940674,
0.0012454702518880367,
0.02007431909441948,
0.045396588742733,
0.026625080034136772,
-0.032625358551740646,
-0.01638607680797577,
-0.027157215401530266,
-0.004263957962393761,
-0.07611359655857086,
-0.011101429350674152,
-0.017532918602228165,
-0.007243453059345484,
-0.023046933114528656,
-0.007789349649101496,
0.04146980121731758,
0.025487413629889488,
0.05618607625365257,
0.03141429275274277,
-0.009890364482998848,
-0.02460663951933384,
0.035928260535001755,
-0.02363411709666252,
0.018312770873308182,
-0.011184001341462135,
-0.016698017716407776,
-0.05978257209062576,
0.0057342094369232655,
0.017918257042765617,
0.011899630539119244,
-0.04451581463217735,
0.030423419550061226,
-0.015817243605852127,
0.019065098837018013,
-0.006858114153146744,
-0.08653609454631805,
-0.0024634161964058876,
0.0295609962195158,
-0.019597234204411507,
-0.06011286377906799,
0.02176247164607048,
-0.024202950298786163,
0.01064269244670868,
-0.06928759813308716,
0.014762148261070251,
-0.036258552223443985,
-0.06473692506551743,
0.03699253126978874,
0.06400294601917267,
-0.009743568487465382,
-0.020753249526023865,
0.024478191509842873,
-0.0377265103161335,
0.008555440232157707,
-0.02750585414469242,
-0.0006141337798908353,
0.07860912382602692,
-0.0787559226155281,
0.031084001064300537,
-0.03227671608328819,
0.017578791826963425,
-0.003309785621240735,
-0.04488280415534973,
-0.014725449495017529,
-0.048809587955474854,
-0.03978164866566658,
-0.03647874668240547,
0.006881051231175661,
0.019487136974930763,
-0.000645671971142292,
-0.03337768465280533,
-0.007642554119229317,
-0.0317445807158947,
0.0005811621085740626,
0.059745874255895615,
0.0031239972449839115,
-0.0010940871434286237,
-0.077141173183918,
0.0565897636115551,
0.0014232307439669967,
-0.05148861184716225,
0.03029497340321541,
0.0041790916584432125,
-0.00020428119751159102,
0.024991977959871292,
0.0013200149405747652,
-0.016798939555883408,
-0.008963716216385365,
0.032753802835941315,
-0.02418460138142109,
-0.0057204472832381725,
-0.05159870907664299,
0.027579253539443016,
-0.037983402609825134,
0.00991788785904646,
-0.03422176092863083,
0.023835960775613785,
0.006926924921572208,
-0.03157943859696388,
0.042093683034181595,
-0.043708436191082,
-0.0325886569917202,
0.025377316400408745,
0.00010085040412377566,
0.05141521245241165,
0.013376763090491295,
0.041396401822566986,
-0.0023154737427830696,
-0.0019679805263876915,
-0.04558008164167404,
0.02554246224462986,
-0.011294098570942879,
-0.013954771682620049,
0.006628745701164007,
-0.013376763090491295,
-0.028001289814710617,
-0.04323134943842888,
0.03209322318434715,
-0.017863208428025246,
-0.04502959921956062,
-0.047378331422805786,
0.022569848224520683,
0.06826002895832062,
-0.011404194869101048,
-0.019633932039141655,
-0.0141290919855237,
0.026680128648877144,
0.016358552500605583,
0.04183679074048996,
0.011477593332529068,
-0.020276164636015892,
-0.05798432230949402,
-0.031359244138002396,
0.049800459295511246,
0.008766459301114082,
0.02759760245680809,
0.029524296522140503,
-0.030845457687973976,
-0.017248502001166344,
-0.06323227286338806,
-0.005628699902445078,
0.039855048060417175,
0.04389193281531334,
-0.0480022132396698,
0.025285568088293076,
0.030184878036379814,
0.0023452916648238897,
0.04682784527540207,
0.018688933923840523,
-0.009486676193773746,
0.004885546397417784,
-0.00516078807413578,
0.026606731116771698,
0.06121382862329483,
0.012826278805732727,
0.0033143728505820036,
-0.07824213802814484,
0.030882157385349274,
-0.031487688422203064,
-0.033726323395967484,
0.018661409616470337,
0.06936099380254745,
0.0024863530416041613,
-0.01452360488474369,
-0.025138773024082184,
0.02517547272145748,
0.019780728965997696,
-0.05090142786502838,
-0.023707514628767967,
0.07240700721740723,
-0.010257353074848652,
-0.004034589510411024,
-0.010596818290650845,
-0.055121805518865585,
0.0513785146176815,
0.03745126724243164,
-0.03101060353219509,
0.032845549285411835,
-0.00733061321079731,
-0.041066113859415054,
0.04213038086891174,
0.02754255384206772,
-0.037799905985593796,
-0.029909634962677956,
0.05611267685890198,
-0.04719483479857445,
0.04168999567627907,
-0.02783614583313465,
-0.03581816330552101,
-0.09475666284561157,
-0.09064637869596481,
-0.03159778565168381,
0.0067893038503825665,
0.05673655867576599,
0.007069133222103119,
0.009018763899803162,
-0.00739024905487895,
0.005454379599541426
] |
21,161 | 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]])
>>> scalar_field = tfields.TensorFields(
... vectors,
... [42, 21, 10.5],
... [1, 2, 3],
... [[0, 0], [-1, -1], [-2, -2]])
Slicing
>>> sliced = scalar_field[2:]
>>> assert isinstance(sliced, tfields.TensorFields)
>>> assert isinstance(sliced.fields[0], tfields.Tensors)
>>> assert sliced.fields[0].equal([10.5])
Picking
>>> picked = scalar_field[1]
>>> assert np.array_equal(picked, [0, 0, 1])
>>> assert np.array_equal(picked.fields[0], 21)
Masking
>>> masked = scalar_field[np.array([True, False, True])]
>>> assert masked.equal([[0, 0, 0], [0, -1, 0]])
>>> assert masked.fields[0].equal([42, 10.5])
>>> assert masked.fields[1].equal([1, 3])
Iteration
>>> _ = [point for point in scalar_field]
| 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]])
>>> scalar_field = tfields.TensorFields(
... vectors,
... [42, 21, 10.5],
... [1, 2, 3],
... [[0, 0], [-1, -1], [-2, -2]])
Slicing
>>> sliced = scalar_field[2:]
>>> assert isinstance(sliced, tfields.TensorFields)
>>> assert isinstance(sliced.fields[0], tfields.Tensors)
>>> assert sliced.fields[0].equal([10.5])
Picking
>>> picked = scalar_field[1]
>>> assert np.array_equal(picked, [0, 0, 1])
>>> assert np.array_equal(picked.fields[0], 21)
Masking
>>> masked = scalar_field[np.array([True, False, True])]
>>> assert masked.equal([[0, 0, 0], [0, -1, 0]])
>>> assert masked.fields[0].equal([42, 10.5])
>>> assert masked.fields[1].equal([1, 3])
Iteration
>>> _ = [point for point in scalar_field]
"""
item = super().__getitem__(index)
try:
if issubclass(type(item), TensorFields):
if isinstance(index, tuple):
index = index[0]
if item.fields:
# circumvent the setter here.
with self._bypass_setters("fields", demand_existence=False):
item.fields = [
field.__getitem__(index) for field in item.fields
]
except IndexError as err: # noqa: F841 pylint: disable=possibly-unused-variable
warnings.warn(
"Index error occured for field.__getitem__. Error "
"message: {err}".format(**locals())
)
return item
| (self, index) | [
0.0022551624570041895,
-0.024711228907108307,
-0.061959631741046906,
0.0487726666033268,
-0.020468465983867645,
-0.015690580010414124,
-0.007329277694225311,
-0.007434391416609287,
0.03178250044584274,
-0.020564023405313492,
0.013081853277981281,
0.023449866101145744,
-0.008308744989335537,
-0.003645527409389615,
0.010817134752869606,
0.015814803540706635,
-0.025380132719874382,
0.055232368409633636,
0.03151493892073631,
-0.002295774407684803,
0.006445368751883507,
-0.024845009669661522,
0.059054676443338394,
0.061386287212371826,
0.04976646602153778,
0.028571762144565582,
0.03835687413811684,
0.002529890974983573,
0.05702885240316391,
-0.01794574223458767,
-0.024004101753234863,
0.013244301080703735,
0.004603493493050337,
0.05695240572094917,
-0.005618794355541468,
-0.060316041111946106,
-0.026660606265068054,
-0.012049829587340355,
0.00874831061810255,
0.08821889758110046,
-0.019130658358335495,
-0.049919359385967255,
-0.010406237095594406,
-0.06876334547996521,
-0.01350230723619461,
-0.0026182818692177534,
0.05997203290462494,
0.030712254345417023,
-0.01568102277815342,
0.001401115208864212,
-0.00016185091226361692,
0.04151027649641037,
0.01122803334146738,
-0.018022187054157257,
-0.01808907836675644,
0.0017355672316625714,
0.026316598057746887,
0.024195216596126556,
0.013473640196025372,
0.05320654436945915,
-0.011744044721126556,
-0.009144875220954418,
-0.029833123087882996,
-0.013272969052195549,
0.000536317762453109,
-0.07426746934652328,
0.013903649523854256,
0.0009006315958686173,
-0.026125483214855194,
-0.013081853277981281,
-0.025246351957321167,
0.011849158443510532,
0.04097515344619751,
-0.017439285293221474,
-0.03474479168653488,
-0.004543770104646683,
-0.008093739859759808,
0.011638931930065155,
0.07858667522668839,
-0.0660495012998581,
0.003800808684900403,
0.03562392294406891,
-0.025915255770087242,
0.03382743522524834,
-0.02941267006099224,
0.014954784885048866,
0.0008056710939854383,
-0.009957115165889263,
0.004371766000986099,
-0.02033468522131443,
-0.021271150559186935,
0.02243695594370365,
-0.020220015197992325,
0.013244301080703735,
-0.05725819244980812,
-0.006216030567884445,
0.014085208997130394,
-0.06532326340675354,
-0.06968069821596146,
0.06922201812267303,
0.033101197332143784,
-0.0019422108307480812,
-0.04705262556672096,
0.01135225873440504,
0.032279402017593384,
-0.016818160191178322,
-0.03352165222167969,
-0.005757353268563747,
-0.004538991954177618,
-0.0240805484354496,
0.02895399183034897,
0.05068381875753403,
-0.07377056777477264,
0.026106372475624084,
-0.023392532020807266,
-0.006311587989330292,
0.028285088017582893,
-0.03355987370014191,
-0.004034925252199173,
-0.04770242050290108,
0.06287698447704315,
-0.0016662878915667534,
-0.052365634590387344,
0.061653848737478256,
-0.007893068715929985,
0.022532513365149498,
0.019895119592547417,
0.028495315462350845,
0.026087259873747826,
-0.03474479168653488,
-0.04200717806816101,
-0.026087259873747826,
-0.03778352588415146,
0.0362163782119751,
0.035471029579639435,
0.004185428377240896,
0.07159185409545898,
-0.01842353120446205,
-0.07843378186225891,
0.010520906187593937,
-0.015279681421816349,
-0.004426711704581976,
0.07025404274463654,
0.03873910382390022,
-0.008189297281205654,
-0.011600708588957787,
0.018222859129309654,
0.016292592510581017,
0.007663730066269636,
-0.013225189410150051,
-0.0302535779774189,
0.058519553393125534,
-0.0004371766117401421,
0.0005566237960010767,
-0.03552836552262306,
-0.014782780781388283,
-0.039216890931129456,
-0.07021582126617432,
0.03722929209470749,
0.031132709234952927,
-0.02033468522131443,
-0.011638931930065155,
-0.030559362843632698,
0.002689950168132782,
-0.008681420236825943,
0.06845755875110626,
0.0013461695052683353,
-0.06455880403518677,
-0.04823754355311394,
0.04365077242255211,
0.031151819974184036,
-0.000700557604432106,
-0.03432433679699898,
0.034687455743551254,
-0.03959912434220314,
0.06711974740028381,
-0.026870833709836006,
0.037592411041259766,
-0.011677154339849949,
-0.050186920911073685,
-0.0034615788608789444,
-0.009976226836442947,
-0.016292592510581017,
-0.03994313254952431,
0.04254230111837387,
0.01885353960096836,
-0.03906400129199028,
0.01829930581152439,
0.015279681421816349,
0.05997203290462494,
0.04101337864995003,
-0.0259343683719635,
0.014945228584110737,
-0.0605071559548378,
-0.02197827771306038,
0.02625926397740841,
-0.011715377680957317,
-0.020220015197992325,
0.048581551760435104,
0.09081806987524033,
-0.03856709972023964,
-0.010262900032103062,
0.00014542692224495113,
0.012823847122490406,
-0.09120029956102371,
0.01243206113576889,
0.07235631346702576,
0.01819419115781784,
-0.07851023226976395,
0.0050741154700517654,
-0.016760826110839844,
-0.009264321997761726,
0.028265977278351784,
0.019560666754841805,
0.03898755460977554,
-0.036789726465940475,
-0.03562392294406891,
-0.0358150377869606,
0.04143383353948593,
0.03327320143580437,
0.08913625031709671,
0.012766513042151928,
-0.05068381875753403,
-0.015222346410155296,
0.03516524285078049,
-0.01675127074122429,
-0.02788374572992325,
-0.04907844960689545,
-0.03699995204806328,
-0.05871066823601723,
0.017047498375177383,
0.024577448144555092,
-0.023965878412127495,
-0.008609751239418983,
0.04972824454307556,
0.06146273389458656,
0.029928680509328842,
-0.06226541846990585,
0.04063114523887634,
0.007520393468439579,
-0.021500488743185997,
0.0006348616443574429,
-0.014907006174325943,
0.012632732279598713,
-0.009957115165889263,
0.020525800064206123,
-0.00909709557890892,
0.04544725641608238,
-0.009560550563037395,
0.026087259873747826,
-0.012116719968616962,
0.04414767026901245,
0.0075347269885241985,
0.08600195497274399,
0.0040803151205182076,
-0.01098913885653019,
0.02836153469979763,
-0.02146226540207863,
0.021576935425400734,
-0.025112571194767952,
-0.08454947918653488,
-0.08814244717359543,
-0.0122982794418931,
-0.030463803559541702,
0.012862070463597775,
0.00003684198600240052,
0.07090383768081665,
0.06692863255739212,
0.019990677013993263,
0.08095651119947433,
0.034439004957675934,
0.07247098535299301,
-0.011514706537127495,
-0.0022372454404830933,
0.0027616184670478106,
-0.0438418872654438,
0.013425861485302448,
0.04200717806816101,
0.025819698348641396,
0.00268039433285594,
0.013636087998747826,
0.03638838231563568,
-0.05534703657031059,
0.003831865033134818,
0.01742972992360592,
-0.037343960255384445,
0.03426700085401535,
0.01473500207066536,
-0.034974128007888794,
-0.016799049451947212,
0.02090803161263466,
0.004051647614687681,
0.044300563633441925,
-0.04766419529914856,
-0.01312007661908865,
-0.01218361034989357,
-0.0981568992137909,
0.030865147709846497,
-0.018251527100801468,
-0.041089825332164764,
-0.0030387358274310827,
-0.016942385584115982,
-0.05141006037592888,
0.044606346637010574,
0.05079849064350128,
-0.031744278967380524,
-0.0030793477781116962,
0.03722929209470749,
0.04491213336586952,
-0.03193539381027222,
0.023717429488897324,
0.0029001771472394466,
-0.013741201721131802,
0.009780333377420902,
0.04999580606818199,
0.003153405152261257,
-0.05477369204163551,
0.05603505298495293,
0.014390993863344193,
0.07361767441034317,
-0.01056868489831686,
-0.011237588711082935,
-0.028189530596137047,
0.0491931177675724,
-0.015814803540706635,
-0.04078403860330582,
-0.011973383836448193,
-0.04143383353948593,
-0.09853912889957428,
0.04602060467004776,
-0.006545704323798418,
0.013874982483685017,
0.014362326823174953,
-0.003635971574112773,
-0.020793361589312553,
-0.02465389482676983,
0.023640982806682587,
0.008762643672525883,
-0.011677154339849949,
0.015595021657645702,
0.0034257445950061083,
-0.03420966863632202,
0.000252929370617494,
0.008719642646610737,
0.038070198148489,
-0.020009789615869522,
0.05855777859687805,
0.0237747635692358,
0.045600149780511856,
0.03371276706457138,
0.043994780629873276,
-0.08485526591539383,
0.0015396738890558481,
0.021060923114418983,
-0.031973615288734436,
-0.03101803921163082,
-0.01751573197543621,
-0.028170417994260788,
-0.04659394919872284,
0.0171812791377306,
0.03266163170337677,
-0.02566680684685707,
0.0068228221498429775,
-0.014486552216112614,
0.008733976632356644,
-0.040325362235307693,
-0.0557674914598465,
-0.018404418602585793,
-0.02354542538523674,
-0.00014191816444508731,
-0.010492239147424698,
-0.03514613211154938,
-0.015356127172708511,
-0.006980492267757654,
0.019187992438673973,
-0.048084650188684464,
-0.027119284495711327,
0.04716729745268822,
-0.06578194350004196,
-0.01978044956922531,
0.03180161118507385,
-0.03484034910798073,
-0.00910665187984705,
0.05488836020231247,
-0.014543886296451092,
0.04078403860330582,
-0.008208408951759338,
-0.02518901787698269,
0.04598237946629524,
-0.019684892147779465,
-0.03833775967359543,
-0.00883909035474062,
-0.03906400129199028,
-0.03371276706457138,
-0.04338321089744568,
-0.017276838421821594,
-0.006177807226777077,
-0.02568591758608818,
0.02002890035510063,
-0.07170651853084564,
-0.013788980431854725,
-0.021576935425400734,
-0.03852887824177742,
0.07606395334005356,
0.034171443432569504,
-0.000609777751378715,
0.049116674810647964,
0.0066364845260977745,
-0.00862408522516489,
0.015317903831601143,
0.022417843341827393,
0.04881088808178902,
0.00922132097184658,
0.0007770038209855556,
0.06069827079772949,
-0.0021548268850892782,
-0.011849158443510532,
0.038146644830703735,
-0.00970388762652874,
0.07679019123315811,
0.003991924226284027,
-0.0024247774854302406,
-0.0491931177675724,
-0.024692118167877197,
-0.010043117217719555,
-0.03533724695444107,
-0.03850976377725601,
0.03378921374678612,
0.0237747635692358,
0.03713373467326164,
-0.03405677527189255,
-0.06310632824897766,
-0.024424556642770767,
0.024042325094342232,
-0.01829930581152439,
-0.054429683834314346,
-0.01601547561585903,
-0.004603493493050337,
-0.037363070994615555,
0.027692630887031555,
0.08302055299282074,
-0.018719758838415146,
0.014180767349898815,
-0.07950402796268463,
0.00018260485376231372,
0.0008886869181878865,
0.0023805820383131504,
0.04812287166714668,
-0.01778329350054264,
-0.02815130725502968,
0.04571481794118881,
0.055499929934740067,
0.05806087702512741,
0.05091315880417824,
0.0299477931112051,
-0.029298000037670135,
-0.041128046810626984,
-0.04766419529914856,
0.04066937044262886,
0.002807008335366845,
-0.007185941096395254,
0.06337388604879379,
-0.04491213336586952,
-0.041128046810626984,
0.027501514181494713,
-0.012814291752874851,
-0.010071785189211369,
0.0021392987109720707,
-0.02064047008752823,
0.012479839846491814,
0.00909709557890892,
-0.04051647707819939,
-0.06536148488521576,
-0.06685218960046768,
0.005437234882265329,
0.038414206355810165,
-0.00010130612645298243,
0.0321073979139328,
-0.030578473582863808,
-0.0662788450717926,
-0.009727776981890202,
-0.06520859152078629,
-0.01150515116751194,
-0.019876006990671158,
-0.009852002374827862,
0.003036346985027194,
-0.03315853327512741,
0.08967137336730957,
0.0030865147709846497,
0.0024749452713876963,
0.033368758857250214,
-0.02218850515782833,
-0.010807579383254051,
0.038108423352241516,
-0.02169160544872284,
-0.019465109333395958,
-0.019560666754841805,
0.03348342701792717,
0.050454482436180115,
0.03686617314815521,
0.007649396080523729,
-0.008404302410781384,
0.013014962896704674,
-0.0065027037635445595,
0.024156993255019188,
-0.03963734582066536,
0.03187805786728859,
0.05293898284435272,
0.04846687987446785,
-0.10205565392971039,
0.00709993951022625,
-0.007577728014439344,
-0.04093693196773529,
0.0080794058740139,
0.020831584930419922,
-0.011084696277976036,
-0.027195729315280914,
0.05538526177406311,
-0.008991982787847519,
0.012317391112446785,
0.05167762190103531,
0.008246632292866707,
-0.04540903493762016,
-0.013702978380024433,
0.00392503384500742,
0.030081573873758316,
-0.03743951767683029,
-0.05358877405524254,
0.03933156281709671,
0.013836759142577648,
0.004593937657773495,
-0.013674311339855194,
0.004902111366391182,
0.004065981600433588,
0.004438656382262707,
0.05431501567363739,
0.009144875220954418,
-0.003516524564474821,
0.050722043961286545,
0.017009276896715164,
0.0321073979139328,
0.025322798639535904,
0.030712254345417023,
-0.04946067929267883,
0.006335477344691753,
-0.02975667640566826,
-0.03715284541249275,
-0.0161588117480278,
0.033330537378787994,
-0.013425861485302448,
0.017200391739606857,
-0.008719642646610737,
0.05993380770087242,
-0.04143383353948593,
0.02411877177655697,
0.03214561939239502,
-0.056340835988521576,
-0.0015970085514709353,
-0.008581084199249744,
0.016455041244626045,
0.010807579383254051,
-0.023105859756469727,
0.08240898698568344,
0.03845243155956268,
-0.03260429576039314,
0.021347597241401672,
0.007248053792864084,
-0.003311075270175934,
0.005293898284435272,
-0.04552370309829712,
0.002115409355610609,
0.022092947736382484,
-0.02411877177655697,
0.08638418465852737,
0.01944599859416485,
0.00636414485052228,
-0.005814687814563513,
-0.01536568347364664,
-0.04701440408825874,
-0.08202675729990005,
-0.010463571175932884,
-0.0019266827730461955,
0.04303920269012451,
-0.026182817295193672,
0.007243276108056307,
-0.005700018722563982,
0.0504162572324276,
0.016885051503777504,
0.0007704342133365571,
0.032546963542699814,
0.04732018709182739,
0.0013330302899703383,
-0.025322798639535904,
0.02117559313774109,
0.010396680794656277,
0.04739663377404213,
-0.08049783110618591,
-0.004044481087476015,
-0.0070282709784805775,
0.00957966223359108,
-0.0627623200416565,
0.014390993863344193,
0.015193679369986057,
-0.009030205197632313,
-0.010903136804699898,
-0.052327413111925125,
0.021825386211276054,
0.05217451974749565,
0.0627623200416565,
-0.054200343787670135,
0.014792337082326412,
0.02297207899391651,
-0.01269962266087532,
-0.035738591104745865,
0.004670383874326944,
-0.05706707760691643,
-0.03054025024175644,
0.04716729745268822,
0.08309700340032578,
-0.05007224902510643,
-0.04735841229557991,
0.036827947944402695,
-0.05439145863056183,
-0.00036132766399532557,
-0.026431268081068993,
-0.07793688774108887,
0.057946208864450455,
-0.08034493774175644,
0.0034615788608789444,
-0.003394688479602337,
0.011132475920021534,
-0.017057055607438087,
0.0042045400477945805,
-0.0021631880663335323,
-0.036273714154958725,
-0.024156993255019188,
-0.01296718418598175,
-0.01742972992360592,
-0.03533724695444107,
0.06452058255672455,
0.011094252578914165,
-0.0076589519158005714,
-0.028399758040905,
0.0299477931112051,
-0.019254881888628006,
-0.06784598529338837,
-0.045103248208761215,
-0.06337388604879379,
0.06253297626972198,
0.04311564937233925,
-0.07063627243041992,
0.05106605216860771,
-0.02702372521162033,
-0.031438492238521576,
-0.019321773201227188,
-0.022379620000720024,
0.050492703914642334,
-0.04552370309829712,
0.011629375629127026,
0.01609192229807377,
-0.01742972992360592,
-0.022532513365149498,
0.015432573854923248,
-0.03936978429555893,
0.019350441172719002,
-0.031190043315291405,
-0.014830559492111206,
0.023220527917146683,
0.03503146395087242,
0.05465902015566826,
-0.016388149932026863,
-0.04636460915207863,
-0.06230363994836807,
0.0302535779774189,
0.0790453553199768,
0.005050226114690304,
0.0642147958278656,
-0.047740641981363297,
0.003134293481707573,
-0.01871020346879959,
0.06054537743330002,
-0.013406749814748764,
-0.027941079810261726,
0.053894560784101486,
-0.027979303151369095,
0.005771686788648367,
-0.015690580010414124,
0.0054467907175421715,
0.006134806200861931,
-0.03420966863632202,
0.013225189410150051,
-0.06108050048351288,
0.03394210711121559,
0.024290775880217552,
-0.04647928103804588,
-0.014620332978665829,
0.010950915515422821,
-0.0121931666508317,
0.014094765298068523,
0.04582948610186577,
-0.032508738338947296,
0.008695753291249275,
-0.0020783806685358286,
0.018394863232970238,
-0.03073136694729328,
0.006378478370606899,
-0.017706846818327904,
0.010884025134146214,
0.0055805714800953865,
-0.07357945293188095,
0.042465854436159134,
0.061424508690834045,
-0.005250897258520126,
-0.03829953819513321,
0.03873910382390022,
0.013091408647596836,
-0.00951754953712225,
0.015193679369986057,
-0.005164895206689835,
0.037305738776922226,
0.01607280969619751,
0.008958537131547928,
0.004682328552007675,
0.06830466538667679,
0.014247657731175423,
0.009034983813762665,
-0.022666294127702713,
-0.00990933645516634,
-0.07721064239740372,
0.012690066359937191,
0.0882953405380249,
0.026928167790174484,
0.022876519709825516,
-0.06253297626972198,
0.018901318311691284,
-0.03377010300755501,
-0.00020485187997110188,
-0.012393837794661522,
0.02113736979663372,
0.028265977278351784,
0.006708152592182159,
0.018576422706246376,
0.012145387940108776,
0.013062741607427597,
-0.06883978843688965,
0.05978091433644295,
0.004696662537753582,
0.0310753732919693,
-0.023392532020807266,
-0.01246072817593813,
0.03459189832210541,
0.038395095616579056,
-0.04540903493762016,
-0.0011449010344222188,
0.0374586284160614,
-0.05408567562699318,
0.006005803123116493,
-0.03176338970661163,
-0.04357432574033737,
-0.03956089913845062,
-0.055499929934740067,
-0.00009048122592503205,
-0.008528527803719044,
0.08584906160831451,
-0.03516524285078049,
0.04024891555309296,
-0.0267561636865139,
0.010320235043764114
] |
21,163 | tfields.core | __new__ | null | def __new__(cls, tensors, *fields, **kwargs):
rigid = kwargs.pop("rigid", True)
obj = super(TensorFields, cls).__new__(cls, tensors, **kwargs)
if issubclass(type(tensors), TensorFields):
obj.fields = tensors.fields
elif not fields:
obj.fields = []
if fields:
# (over)write fields
obj.fields = fields
if rigid:
olen = len(obj)
field_lengths = [len(f) for f in obj.fields]
if not all(flen == olen for flen in field_lengths):
raise ValueError(
"Length of base ({olen}) should be the same as"
" the length of all fields ({field_lengths}).".format(**locals())
)
return obj
| (cls, tensors, *fields, **kwargs) | [
-0.04481898620724678,
-0.023677954450249672,
-0.020479224622249603,
0.036803778260946274,
-0.042980633676052094,
0.01113121211528778,
-0.026417097076773643,
-0.003205623710528016,
-0.03731851652264595,
0.029156239703297615,
0.035149261355400085,
0.056106459349393845,
-0.03450584039092064,
0.015386993996798992,
0.02836574800312519,
-0.013686520047485828,
-0.023236751556396484,
-0.014238025061786175,
0.00825419370085001,
-0.09382940828800201,
0.026619315147399902,
0.0627245232462883,
0.0066502331756055355,
0.058937519788742065,
0.04445131495594978,
0.024928033351898193,
0.024725815281271935,
0.010644049383699894,
0.03457937389612198,
0.03123357519507408,
-0.045664627104997635,
0.05518728122115135,
0.03860536217689514,
0.0925057977437973,
-0.0024036432150751352,
-0.0889761671423912,
-0.017547056078910828,
-0.004922183696180582,
-0.08500532805919647,
0.035057343542575836,
0.0076475380919873714,
-0.05195178464055061,
-0.024909649044275284,
-0.039451003074645996,
0.01959681697189808,
0.01621425151824951,
0.08397585153579712,
0.012123921886086464,
-0.06493054330348969,
-0.001413231948390603,
0.012298565357923508,
0.004409743472933769,
0.030865905806422234,
-0.01040506362915039,
-0.0028517411556094885,
0.02711567096412182,
0.04173055663704872,
0.018585724756121635,
-0.07360755652189255,
0.011930895037949085,
-0.06971025466918945,
0.017951492220163345,
-0.010938185267150402,
-0.07926967740058899,
-0.006769726052880287,
-0.010708391666412354,
-0.030461467802524567,
-0.020552758127450943,
0.007826777175068855,
-0.003846748499199748,
-0.04007604345679283,
-0.007831373251974583,
-0.002826463896781206,
0.006664020475000143,
0.015267501585185528,
0.04669410362839699,
0.005101422779262066,
-0.004297144245356321,
0.04033340886235237,
-0.053312163800001144,
-0.005845954641699791,
-0.009439930319786072,
0.02376987226307392,
0.03130710870027542,
0.003584783524274826,
0.021361634135246277,
-0.03606843575835228,
-0.012565125711262226,
0.023052915930747986,
-0.05290772765874863,
-0.05816541239619255,
0.011636759154498577,
-0.0030516618862748146,
-0.020111555233597755,
-0.006328521762043238,
-0.021343249827623367,
-0.013824395835399628,
-0.018236437812447548,
-0.007468299008905888,
0.04445131495594978,
-0.01570870541036129,
0.007380977272987366,
-0.07044558972120285,
-0.004046669229865074,
0.017482712864875793,
-0.04000250622630119,
-0.0370427630841732,
-0.017528671771287918,
-0.008263385854661465,
-0.007734859827905893,
0.010303954593837261,
0.060702335089445114,
-0.0033343082759529352,
0.07349725067615509,
-0.025902358815073967,
0.0000022126630483398912,
0.023181600496172905,
0.006277967244386673,
0.012068770825862885,
-0.032097600400447845,
0.04912072792649269,
-0.005813783500343561,
-0.0007359146839007735,
0.012261797674000263,
0.03020409867167473,
0.044377781450748444,
0.02253817766904831,
-0.036675091832876205,
0.023291900753974915,
-0.021545467898249626,
-0.042465899139642715,
0.029101088643074036,
-0.010662432760000229,
0.05066493898630142,
0.016057992354035378,
0.017473522573709488,
0.019357830286026,
-0.007316634990274906,
-0.04213499277830124,
-0.021324865520000458,
0.045517560094594955,
0.023420585319399834,
0.10456538200378418,
0.01764816604554653,
-0.04614259675145149,
0.03746558353304863,
0.03161963075399399,
-0.01415529940277338,
-0.005809187889099121,
0.005542627070099115,
-0.056069690734148026,
0.007187950424849987,
0.010662432760000229,
0.019063694402575493,
-0.059305187314748764,
0.035020578652620316,
-0.01924753002822399,
-0.08081389218568802,
0.0388994961977005,
0.02691345103085041,
-0.004954354837536812,
0.021582234650850296,
-0.02998349629342556,
-0.04202469438314438,
-0.006558315362781286,
0.0024656876921653748,
0.035186029970645905,
-0.1272873878479004,
-0.04772358015179634,
0.02979966253042221,
0.03307192772626877,
-0.04930455982685089,
0.06470993906259537,
0.04003927484154701,
-0.02531408704817295,
0.006737554911524057,
-0.030259249731898308,
-0.036546409130096436,
-0.03627065569162369,
0.01663707196712494,
0.01043263915926218,
-0.020313773304224014,
0.0357375331223011,
-0.03309030830860138,
0.042465899139642715,
0.032483652234077454,
-0.02700536884367466,
0.05698886513710022,
0.023236751556396484,
0.016701415181159973,
-0.012868453748524189,
0.005073847249150276,
-0.015644362196326256,
-0.01574547216296196,
0.00780839379876852,
0.030259249731898308,
0.027851009741425514,
-0.004271867219358683,
0.0075372373685240746,
0.08919677138328552,
-0.045664627104997635,
0.008704589679837227,
0.010938185267150402,
-0.06404813379049301,
-0.03548016399145126,
0.020038021728396416,
-0.012399674393236637,
0.022832313552498817,
-0.010166078805923462,
-0.045885227620601654,
0.046951472759246826,
-0.01654515415430069,
0.0005917190574109554,
0.008764335885643959,
-0.013263698667287827,
0.006484781391918659,
-0.03279617428779602,
-0.021931521594524384,
-0.014734379947185516,
0.00244960212148726,
0.14699450135231018,
0.04305417090654373,
-0.08074035495519638,
-0.04062754660844803,
0.0029068917501717806,
0.008231214247643948,
-0.01654515415430069,
-0.02713405340909958,
-0.031950533390045166,
-0.02077336050570011,
-0.02693183533847332,
0.05191501975059509,
-0.08390232175588608,
0.050039902329444885,
0.0370427630841732,
0.01728968694806099,
0.042429130524396896,
-0.05198855325579643,
0.017473522573709488,
0.020313773304224014,
-0.024817733094096184,
-0.007642942480742931,
-0.03007541410624981,
0.0033182227052748203,
0.03301677480340004,
-0.03459775820374489,
-0.03338444605469704,
0.04500282183289528,
-0.007946270518004894,
0.015368610620498657,
-0.04676763713359833,
-0.01957843266427517,
-0.017822807654738426,
0.018300779163837433,
0.010046585462987423,
0.057613905519247055,
0.016572730615735054,
-0.05728300288319588,
0.005809187889099121,
-0.048495687544345856,
0.024983184412121773,
-0.020148321986198425,
-0.02110426500439644,
0.05728300288319588,
0.048789821565151215,
-0.030792372301220894,
0.03787001967430115,
0.015497295185923576,
-0.026343563571572304,
0.002826463896781206,
0.03882596269249916,
0.06754099577665329,
0.001368422177620232,
-0.024266226217150688,
0.006834068335592747,
-0.07217364013195038,
0.005492072086781263,
0.01494579017162323,
-0.0018050303915515542,
-0.004798094742000103,
-0.0025323277805000544,
-0.007500470150262117,
0.006916793994605541,
-0.03860536217689514,
0.06456287205219269,
0.0014925107825547457,
-0.04048047959804535,
-0.020442457869648933,
-0.06838663667440414,
-0.03893626481294632,
0.017151810228824615,
0.05481961369514465,
0.024854499846696854,
0.01128747221082449,
0.0017866468988358974,
-0.028696652501821518,
-0.06081263720989227,
0.07875493913888931,
0.00033607345540076494,
-0.05242975801229477,
-0.028898870572447777,
-0.014826296828687191,
0.007187950424849987,
-0.015561637468636036,
-0.002088825684040785,
-0.11611022055149078,
-0.0006388268084265292,
-0.010267187841236591,
0.04684117063879967,
0.004591280594468117,
0.023402202874422073,
0.07162213325500488,
0.025075100362300873,
0.013658944517374039,
0.09434414654970169,
0.056216757744550705,
0.02399047464132309,
0.016765756532549858,
0.0004903225344605744,
0.027832627296447754,
0.05489314720034599,
-0.030792372301220894,
-0.021857988089323044,
0.02542438730597496,
-0.06537174433469772,
-0.07272514700889587,
0.029487142339348793,
-0.05375336855649948,
-0.0601140633225441,
-0.022832313552498817,
-0.010662432760000229,
0.024376528337597847,
0.04753974452614784,
-0.017445946112275124,
-0.04768681153655052,
-0.02413754165172577,
0.030590152367949486,
-0.017262112349271774,
0.006645637098699808,
0.008139297366142273,
0.0026564165018498898,
-0.006011406425386667,
0.011517265811562538,
0.018457040190696716,
-0.01594769023358822,
-0.038311224430799484,
0.04981929808855057,
-0.05390043929219246,
0.07107063382863998,
-0.012822494842112064,
-0.0035595062654465437,
-0.08162276446819305,
0.007812989875674248,
-0.03119680844247341,
0.005308237392455339,
-0.04037017747759819,
-0.04459838569164276,
0.033457979559898376,
-0.011930895037949085,
-0.00489920424297452,
-0.02077336050570011,
0.011471306905150414,
0.0046234517358243465,
0.04066431522369385,
-0.006489377468824387,
0.010570515878498554,
0.012445633299648762,
-0.023236751556396484,
-0.04323800280690193,
0.05856984853744507,
0.024652279913425446,
-0.03581106662750244,
-0.0038145773578435183,
0.027520107105374336,
0.01946813240647316,
-0.000010170171663048677,
-0.04625289887189865,
0.021692536771297455,
-0.024670664221048355,
-0.009899517521262169,
-0.0032906474079936743,
-0.02237272635102272,
0.02233595959842205,
-0.007256888784468174,
-0.032097600400447845,
0.04647350311279297,
0.01706908456981182,
-0.0029804257210344076,
0.022942613810300827,
0.023347051814198494,
-0.03138064220547676,
-0.014421859756112099,
-0.038311224430799484,
-0.027538491412997246,
-0.05375336855649948,
0.029284924268722534,
-0.004189141094684601,
0.004986525978893042,
0.0176849327981472,
-0.06746746599674225,
-0.02854958362877369,
-0.035167645663022995,
-0.05290772765874863,
0.03621550649404526,
-0.00831853598356247,
0.030847521498799324,
0.09368234127759933,
0.04463515058159828,
0.010028202086687088,
0.03338444605469704,
0.06261421740055084,
0.06691595911979675,
0.02235434204339981,
0.009752449579536915,
0.016866866499185562,
-0.029652593657374382,
-0.020056404173374176,
-0.05643736198544502,
0.006861643400043249,
0.03384403511881828,
-0.014872255735099316,
0.0655188113451004,
-0.018061794340610504,
0.02233595959842205,
-0.008240406401455402,
0.0454072579741478,
-0.04305417090654373,
0.0027345463167876005,
0.05235622450709343,
-0.02259332872927189,
-0.01863168179988861,
0.03338444605469704,
-0.010809500701725483,
0.02217050828039646,
-0.0061446866020560265,
-0.045664627104997635,
0.01917399652302265,
-0.023512503132224083,
-0.03253880515694618,
0.011967661790549755,
0.017933109775185585,
-0.0928734689950943,
0.04180409014225006,
-0.022041823714971542,
-0.019688734784722328,
-0.0034652906470000744,
0.01349349319934845,
-0.0020796339958906174,
-0.02862311713397503,
0.02248302660882473,
0.0446719191968441,
0.0370427630841732,
0.03158286213874817,
0.014339134097099304,
0.03750235214829445,
-0.05805511027574539,
-0.009219327941536903,
-0.006130898837000132,
0.0007652133936062455,
-0.0329432412981987,
-0.04033340886235237,
0.03439553827047348,
0.01630616933107376,
-0.028825337067246437,
-0.035277947783470154,
-0.056106459349393845,
0.004752136301249266,
-0.0504443384706974,
-0.027189204469323158,
-0.008332324214279652,
0.07096032798290253,
0.0374104343354702,
0.032207902520895004,
-0.025828825309872627,
-0.024284610524773598,
0.0019762269221246243,
0.08074035495519638,
0.006751342210918665,
-0.06798220425844193,
-0.07529883831739426,
0.009862750768661499,
-0.01119555439800024,
-0.00831853598356247,
-0.014449435286223888,
0.01850299723446369,
0.026674466207623482,
-0.059047818183898926,
0.03601328656077385,
0.006728362757712603,
0.03842152655124664,
-0.010248804464936256,
0.00207044230774045,
0.005055463872849941,
0.08191689848899841,
-0.01630616933107376,
-0.03590298444032669,
0.0023576845414936543,
0.015129624865949154,
0.0019900144543498755,
0.028806952759623528,
-0.011811402626335621,
-0.02250141091644764,
-0.013658944517374039,
0.028972404077649117,
-0.0011644801124930382,
-0.04066431522369385,
0.022997764870524406,
0.029101088643074036,
0.03321899473667145,
-0.03138064220547676,
-0.026453863829374313,
0.007371785584837198,
-0.014679228886961937,
0.006346905138343573,
-0.02825544774532318,
-0.03606843575835228,
-0.016664648428559303,
0.01774008199572563,
-0.013916313648223877,
-0.02092042937874794,
0.014247216284275055,
0.04349537193775177,
-0.042502664029598236,
-0.033788882195949554,
-0.01412772387266159,
0.023273518308997154,
-0.026453863829374313,
-0.03013056516647339,
0.062209781259298325,
0.021766070276498795,
0.02842089906334877,
-0.02834736555814743,
-0.01501013245433569,
-0.02231757529079914,
-0.0392671674489975,
0.04845891892910004,
0.010267187841236591,
0.001064519863575697,
0.026067810133099556,
-0.03698761388659477,
0.015561637468636036,
-0.00297123403288424,
0.01132423896342516,
0.025975892320275307,
-0.05834924429655075,
-0.0015396185917779803,
0.02979966253042221,
-0.01043263915926218,
0.014734379947185516,
-0.004398253746330738,
-0.025902358815073967,
0.004267271142452955,
-0.0013764649629592896,
0.005606969352811575,
-0.01974388398230076,
0.01863168179988861,
-0.006994923576712608,
-0.036748625338077545,
0.011361006647348404,
0.03457937389612198,
0.04312770441174507,
-0.010120119899511337,
0.078534334897995,
0.050039902329444885,
-0.022740395739674568,
0.018457040190696716,
-0.024725815281271935,
0.05209885537624359,
0.0010237314272671938,
0.0185213815420866,
-0.007569408509880304,
0.08809375762939453,
-0.026159727945923805,
0.03612358868122101,
0.04779711365699768,
-0.046988241374492645,
-0.02533246949315071,
0.04459838569164276,
-0.03717144951224327,
-0.0893438383936882,
-0.019026927649974823,
0.006172262132167816,
-0.03332929685711861,
-0.026656081900000572,
0.0010030500125139952,
-0.00556101044639945,
-0.028935637325048447,
0.03417493775486946,
0.036711860448122025,
0.018769558519124985,
0.016168292611837387,
0.04331154003739357,
-0.010671624913811684,
0.005574798211455345,
-0.0283841323107481,
0.0446719191968441,
-0.04845891892910004,
0.003456098958849907,
-0.016012033447623253,
-0.01576385647058487,
-0.06566587835550308,
0.030737221240997314,
-0.041326120495796204,
0.02369633875787258,
-0.02691345103085041,
-0.07713718712329865,
-0.0030953227542340755,
0.062356848269701004,
0.04213499277830124,
-0.011241513304412365,
0.05290772765874863,
0.012574317865073681,
0.018696025013923645,
-0.06261421740055084,
0.004503958858549595,
-0.03682216256856918,
-0.09265286475419998,
0.047172073274850845,
0.08882910013198853,
-0.0681292712688446,
-0.035149261355400085,
-0.0015212350990623236,
-0.027777476236224174,
0.026398712769150734,
-0.05831247940659523,
0.00565752387046814,
0.02406400814652443,
-0.062099482864141464,
-0.02259332872927189,
-0.00793707836419344,
0.013649752363562584,
-0.045444026589393616,
-0.0454072579741478,
0.03468967601656914,
-0.006654828786849976,
-0.005556414369493723,
-0.03000188060104847,
0.010680817067623138,
0.006011406425386667,
0.024983184412121773,
-0.012445633299648762,
-0.017354028299450874,
-0.029615826904773712,
-0.01803421787917614,
0.011066869832575321,
-0.08816729485988617,
0.0011483945418149233,
-0.000408171268645674,
0.026288412511348724,
-0.002959744306281209,
-0.028898870572447777,
0.0714750662446022,
0.0227036289870739,
-0.030535003170371056,
0.031876999884843826,
-0.041031982749700546,
0.009150389581918716,
-0.01774008199572563,
0.04154672101140022,
0.01939459890127182,
-0.0015350227477028966,
-0.03897302970290184,
0.08596126735210419,
-0.024523595348000526,
0.031068123877048492,
0.016205059364438057,
0.029027555137872696,
-0.024652279913425446,
0.0007117863278836012,
0.031049741432070732,
-0.022005055099725723,
-0.004922183696180582,
0.024633897468447685,
0.01634293608367443,
0.05820217728614807,
0.04011280834674835,
0.039377469569444656,
0.01634293608367443,
0.04018634185194969,
0.006011406425386667,
0.05559172108769417,
-0.011756251566112041,
-0.01132423896342516,
-0.003977730870246887,
0.0208468958735466,
-0.013980655930936337,
-0.0208468958735466,
0.06577618420124054,
-0.026159727945923805,
-0.03165639564394951,
0.038274459540843964,
-0.01959681697189808,
0.04967223107814789,
-0.012316948734223843,
-0.04930455982685089,
-0.0181445199996233,
-0.009485888294875622,
-0.005087635014206171,
0.04739267751574516,
0.013135014101862907,
-0.010726775042712688,
0.030792372301220894,
-0.07279868423938751,
0.02967097796499729,
0.011425348930060863,
0.024174310266971588,
-0.0012937391875311732,
0.005740249529480934,
-0.030516618862748146,
-0.04003927484154701,
0.019762268289923668,
0.06996762007474899,
0.01719776913523674,
-0.07478410005569458,
-0.017969876527786255,
0.019799035042524338,
0.09574129432439804,
0.0142839839681983,
0.0007709582569077611,
-0.04812801629304886,
0.0018555850256234407,
0.019118845462799072,
0.0355536974966526,
0.038053855299949646,
-0.016085566952824593,
-0.022041823714971542,
-0.01650838740170002,
0.008267981931567192,
-0.04617936536669731,
-0.04827508330345154,
0.09485888481140137,
0.04639996588230133,
-0.016986358910799026,
-0.06107000634074211,
-0.030939439311623573,
-0.025093484669923782,
0.014807913452386856,
-0.02229919284582138,
0.008222023025155067,
0.052944496273994446,
-0.006999519653618336,
-0.0037088722456246614,
0.08221103250980377,
0.01336480863392353,
-0.016857674345374107,
0.03123357519507408,
-0.007284463848918676,
-0.005441517569124699,
0.007468299008905888,
0.016333743929862976,
0.024431679397821426,
0.022041823714971542,
-0.03141741082072258,
-0.04603229835629463,
0.04691470414400101,
-0.032281436026096344,
-0.036877311766147614,
-0.05265035852789879,
-0.03731851652264595,
-0.06283482164144516,
-0.026233261451125145,
-0.06180534511804581,
0.020534375682473183,
0.07070296257734299,
-0.021324865520000458,
0.0385318286716938,
0.021490316838026047,
0.004182247444987297
] |
21,170 | tfields.core | _cut_sympy | null | def _cut_sympy(self, expression):
if len(self) == 0:
return self.copy()
mask = self.evalf(expression) # coord_sys is handled by tmp_transform
mask.astype(bool)
inst = self[mask].copy()
# template
indices = np.arange(len(self))[mask]
template = tfields.TensorFields(np.empty((len(indices), 0)), indices)
return inst, template
| (self, expression) | [
0.06460241973400116,
-0.0440354198217392,
0.07800769805908203,
-0.02422131597995758,
-0.013634820468723774,
0.004056014586240053,
-0.008731793612241745,
-0.05784469097852707,
-0.0013026532251387835,
0.004925980232656002,
0.052335672080516815,
0.027288002893328667,
0.007193859666585922,
-0.01371745578944683,
-0.06026865914463997,
0.009223015047609806,
0.027416547760367393,
-0.013956179842352867,
-0.027691997587680817,
-0.030134329572319984,
-0.02078736200928688,
-0.034559909254312515,
0.01483762264251709,
0.010715040378272533,
0.0056329709477722645,
-0.0015930244699120522,
-0.0060966466553509235,
-0.010164138861000538,
-0.01736258901655674,
-0.05486982315778732,
-0.01858375407755375,
0.01281764917075634,
0.0158567912876606,
-0.036579880863428116,
0.024808945134282112,
-0.04987498000264168,
0.005476882215589285,
0.04583503305912018,
0.08043166249990463,
0.03915075585246086,
0.017683949321508408,
-0.04300706833600998,
0.009631600230932236,
0.00333066051825881,
-0.051013506948947906,
-0.025286393240094185,
0.01225756574422121,
-0.04047292098402977,
-0.031438130885362625,
0.03411918506026268,
-0.001048434991389513,
-0.03342137858271599,
0.0077860793098807335,
0.02350514382123947,
-0.019024476408958435,
0.009980504401028156,
0.037902045994997025,
0.0813131108880043,
0.008594068698585033,
-0.028628531843423843,
-0.02897743508219719,
0.07124996930360794,
-0.053951650857925415,
-0.005398837849497795,
0.054355647414922714,
-0.038820214569568634,
-0.01876738853752613,
0.029124343767762184,
0.02007118985056877,
0.0011982114519923925,
-0.05762432888150215,
-0.001730749849230051,
0.02715945988893509,
-0.021448444575071335,
0.0017835446633398533,
-0.09306567907333374,
0.028206173330545425,
-0.01160566508769989,
0.06287626177072525,
-0.07033179700374603,
-0.04634920507669449,
0.035790253430604935,
-0.024294771254062653,
0.06588786095380783,
0.00689086364582181,
0.03826931491494179,
0.08087238669395447,
0.022972606122493744,
-0.03079541213810444,
-0.02745327353477478,
-0.013836817815899849,
-0.04054637253284454,
-0.023064423352479935,
0.02543330006301403,
0.011155761778354645,
0.0821210965514183,
0.005591653287410736,
-0.051013506948947906,
-0.0009899017168208957,
0.007648353464901447,
0.05824868753552437,
0.038306038826704025,
-0.06754056364297867,
0.03815913200378418,
0.008878701366484165,
0.08851155638694763,
0.04462304711341858,
-0.006606230977922678,
-0.05725706368684769,
-0.02532312087714672,
0.017408497631549835,
0.1095927357673645,
0.008731793612241745,
0.014213266782462597,
-0.03848967328667641,
-0.019465196877717972,
-0.03775513917207718,
0.018023671582341194,
0.045063767582178116,
-0.027783814817667007,
0.013111463747918606,
-0.04271325469017029,
-0.05501672998070717,
0.031070861965417862,
0.012496289797127247,
0.11054763197898865,
0.06735692918300629,
-0.019153019413352013,
-0.01412145048379898,
-0.0452474020421505,
-0.026884008198976517,
-0.020420094951987267,
-0.0028302581049501896,
0.0775669738650322,
-0.05013206601142883,
0.0017284544883295894,
-0.009204651229083538,
-0.08770357072353363,
-0.03158503770828247,
0.02038336731493473,
-0.01705041155219078,
0.04715719446539879,
0.020107915624976158,
0.05729379132390022,
-0.05622871220111847,
0.028187809512019157,
-0.011431212536990643,
0.056155260652303696,
0.043961964547634125,
-0.02543330006301403,
-0.05200513079762459,
0.03090559132397175,
0.017702311277389526,
-0.013019646517932415,
-0.001162632368505001,
0.035074081271886826,
0.024974215775728226,
0.026296380907297134,
0.02794908545911312,
0.04076673462986946,
0.005968103185296059,
-0.024037683382630348,
-0.06126028299331665,
-0.008488479070365429,
-0.047891732305288315,
-0.0321175754070282,
0.040509648621082306,
-0.03459663316607475,
0.007749352138489485,
0.050315700471401215,
0.0029519156087189913,
-0.0228256992995739,
0.002041779924184084,
0.052115313708782196,
-0.028187809512019157,
0.038085680454969406,
0.006991862319409847,
0.03320101648569107,
-0.029528338462114334,
-0.024258043617010117,
0.02622292749583721,
-0.04502704367041588,
-0.03707569092512131,
0.006023193243891001,
0.0067118206061422825,
0.033127561211586,
0.03747968748211861,
0.005825786851346493,
0.020456820726394653,
0.027269640937447548,
-0.05259276181459427,
-0.02128317393362522,
-0.005802832543849945,
-0.02917943336069584,
0.012459563091397285,
-0.023376600816845894,
-0.0014403787208721042,
0.01756458729505539,
-0.08704248815774918,
0.043337609618902206,
-0.10195356607437134,
-0.036469701677560806,
-0.01744522526860237,
0.0011339396005496383,
0.0171697735786438,
0.04701028764247894,
0.0005047064041718841,
0.043668150901794434,
-0.055971626192331314,
-0.017509495839476585,
0.002019973238930106,
0.022182980552315712,
-0.0008384037064388394,
0.03764495626091957,
0.01534261554479599,
0.040730006992816925,
0.008809838443994522,
0.027783814817667007,
0.001851259614340961,
-0.020860815420746803,
0.013019646517932415,
-0.03489045053720474,
-0.03200739622116089,
0.013864362612366676,
0.015764974057674408,
0.02390913851559162,
0.028444897383451462,
0.023945866152644157,
-0.00016842674813233316,
-0.04682665318250656,
0.016692325472831726,
0.005467700771987438,
0.032539933919906616,
-0.06743038445711136,
0.028499986976385117,
0.028426533564925194,
0.005127977579832077,
-0.019630467519164085,
0.018648026511073112,
0.0432274304330349,
-0.0690830871462822,
-0.0015735133783891797,
-0.005490654613822699,
0.021319899708032608,
0.0033329559955745935,
0.006725593004375696,
-0.0021909824572503567,
0.036194249987602234,
-0.04745101183652878,
-0.023945866152644157,
-0.02260533720254898,
0.011871933937072754,
0.009732598438858986,
0.0018030557548627257,
0.03268684074282646,
-0.024092772975564003,
0.0041730813682079315,
-0.02774708904325962,
0.029326340183615685,
-0.016582144424319267,
0.006491459906101227,
-0.011431212536990643,
0.005408019758760929,
-0.06783437728881836,
0.017702311277389526,
0.007386675104498863,
-0.065851129591465,
0.05755087733268738,
-0.024368224665522575,
0.060305386781692505,
-0.089686818420887,
0.0682751014828682,
-0.018547028303146362,
0.014167358167469501,
0.015278344042599201,
-0.0038012226577848196,
0.03571680188179016,
0.018014488741755486,
0.006496050860732794,
-0.04954443871974945,
-0.011321032419800758,
-0.014451990835368633,
0.0077814883552491665,
0.03108922578394413,
-0.00983359757810831,
-0.008511433377861977,
0.03604734316468239,
0.028995798900723457,
0.057477422058582306,
-0.012266747653484344,
-0.04701028764247894,
0.06401479244232178,
0.05982793867588043,
0.00827270932495594,
0.018400121480226517,
-0.00665673054754734,
-0.05086660012602806,
-0.010017231106758118,
-0.010962946340441704,
0.007203041110187769,
0.021834075450897217,
0.017087137326598167,
-0.04025255888700485,
0.0476713702082634,
-0.004398033022880554,
-0.015333433635532856,
-0.026094382628798485,
0.02684728242456913,
0.06845873594284058,
0.004101923201233149,
0.034963902086019516,
0.01867557130753994,
-0.056155260652303696,
0.024092772975564003,
0.03793877363204956,
0.04631248116493225,
-0.006206827238202095,
0.013561366125941277,
0.035771891474723816,
0.08586723357439041,
0.014139813371002674,
-0.06698966026306152,
0.0014920257963240147,
0.015461977571249008,
-0.016921868547797203,
-0.015599703416228294,
-0.0702950730919838,
-0.07896259427070618,
-0.03782859072089195,
0.016398511826992035,
-0.02734309434890747,
0.07371066510677338,
0.016022061929106712,
0.002653510542586446,
-0.033568285405635834,
-0.042052172124385834,
0.049213897436857224,
0.0034293639473617077,
-0.06507986783981323,
-0.08623449504375458,
0.007405038457363844,
-0.01039368100464344,
-0.01216574851423502,
0.03512917459011078,
-0.0008315174491144717,
-0.05163786560297012,
-0.049691345542669296,
-0.04370487853884697,
0.02541493810713291,
-0.016416873782873154,
0.0347435399889946,
-0.0337335541844368,
0.04311724752187729,
-0.01337773259729147,
0.058285411447286606,
0.04087691381573677,
-0.06834854930639267,
0.04109727591276169,
-0.10261464864015579,
-0.004010105971246958,
0.07429829239845276,
-0.010421225801110268,
-0.01584760844707489,
-0.0379754975438118,
-0.015315070748329163,
-0.03915075585246086,
0.012744195759296417,
0.045173950493335724,
-0.050315700471401215,
-0.006413415540009737,
-0.03533117100596428,
-0.0059038312174379826,
-0.013864362612366676,
-0.0013600388774648309,
-0.05468618869781494,
-0.0011591892689466476,
-0.02796744927763939,
-0.0428234338760376,
-0.058395594358444214,
-0.04704701527953148,
0.044659774750471115,
-0.029399793595075607,
-0.03562498465180397,
0.028683621436357498,
-0.05486982315778732,
0.038012225180864334,
-0.03948129713535309,
0.009879506193101406,
0.06045229360461235,
-0.0047744824551045895,
0.014644807204604149,
-0.042639799416065216,
0.030446507036685944,
-0.038306038826704025,
0.021228084340691566,
-0.0009904755279421806,
0.017537040635943413,
0.04925062134861946,
-0.019557014107704163,
0.04058310016989708,
-0.01694941334426403,
0.012946193106472492,
0.031015772372484207,
0.0432274304330349,
0.005476882215589285,
-0.06195809319615364,
0.014773350208997726,
0.04814881831407547,
-0.00898888148367405,
-0.00560083519667387,
0.006073692813515663,
-0.0054309736005961895,
0.001354300300590694,
-0.01725240796804428,
-0.01683923229575157,
-0.013552185148000717,
-0.007152542006224394,
0.0013233120553195477,
-0.042749982327222824,
0.02229315973818302,
-0.014369355514645576,
-0.027618544176220894,
-0.017830856144428253,
-0.01988755539059639,
-0.03922421112656593,
0.033953916281461716,
-0.009466329589486122,
0.009594873525202274,
-0.031070861965417862,
0.09820742905139923,
-0.09710562974214554,
-0.04550449177622795,
-0.030152693390846252,
0.0033214788418263197,
0.018712298944592476,
-0.06937690079212189,
0.02251352183520794,
0.011633209884166718,
-0.0317135825753212,
0.0424194410443306,
0.04513722285628319,
0.05968103185296059,
0.051527682691812515,
-0.03760823234915733,
-0.018592936918139458,
0.027618544176220894,
-0.023964229971170425,
0.02019973285496235,
-0.07506955415010452,
-0.0008068416500464082,
0.062031544744968414,
0.019208110868930817,
0.05773451179265976,
-0.01155057456344366,
0.056155260652303696,
-0.013772545382380486,
0.0015103891491889954,
-0.06654894351959229,
-0.011624028906226158,
0.011100671254098415,
-0.03948129713535309,
0.03793877363204956,
-0.006762319710105658,
-0.013653183355927467,
-0.009760144166648388,
-0.03922421112656593,
-0.013038009405136108,
-0.0029083024710416794,
-0.01796858198940754,
0.0092413779348135,
-0.0008745566592551768,
-0.012542198412120342,
-0.010779311880469322,
-0.03156667575240135,
0.007887077517807484,
0.0061012376099824905,
0.002205902710556984,
0.043447788804769516,
0.04399869218468666,
-0.05457600578665733,
-0.042052172124385834,
-0.04418232664465904,
-0.05913012847304344,
-0.020218096673488617,
0.003303115488961339,
0.04278670996427536,
0.027122732251882553,
-0.05512690916657448,
-0.010366136208176613,
-0.003516589989885688,
-0.040803462266922,
0.04381505772471428,
-0.009576509706676006,
0.007441765628755093,
-0.02007118985056877,
-0.00673936540260911,
-0.019097929820418358,
0.0021060516592115164,
0.04117073118686676,
0.0008871814934536815,
-0.023798959329724312,
-0.0014047996373847127,
-0.024808945134282112,
0.006748547311872244,
0.029840515926480293,
0.015048801898956299,
0.027104370296001434,
-0.0016022061463445425,
-0.0399954728782177,
-0.03158503770828247,
0.016628053039312363,
-0.04341106489300728,
-0.049728069454431534,
0.005490654613822699,
0.034155912697315216,
0.013019646517932415,
-0.0007867566891945899,
-0.0045449398458004,
-0.007804442662745714,
0.0061058285646140575,
-0.0026007157284766436,
-0.02906925231218338,
-0.05663270875811577,
0.001129922573454678,
0.026406560093164444,
-0.008359935134649277,
0.009291877038776875,
-0.03533117100596428,
0.022935878485441208,
-0.032246120274066925,
0.024441678076982498,
-0.046973563730716705,
0.01023759227246046,
0.0399954728782177,
-0.0363595187664032,
0.03057505190372467,
-0.03470681607723236,
-0.015801699832081795,
0.00134282314684242,
-0.017683949321508408,
-0.048405908048152924,
0.017582949250936508,
0.029638517647981644,
0.006670502945780754,
0.015076346695423126,
0.034357909113168716,
-0.016830051317811012,
-0.03299902006983757,
-0.0166647806763649,
-0.009686690755188465,
0.0029656882397830486,
-0.0035579076502472162,
0.06967071443796158,
-0.025653662160038948,
0.024258043617010117,
0.017197318375110626,
0.017004502937197685,
0.049911703914403915,
-0.05501672998070717,
0.04091364145278931,
0.0058395592495799065,
-0.06581440567970276,
0.13882726430892944,
-0.01499371137470007,
-0.022586975246667862,
0.017720675095915794,
0.02947324700653553,
0.02442331425845623,
0.020052826032042503,
0.03048323467373848,
-0.015461977571249008,
0.031640127301216125,
0.037002239376306534,
0.05325384438037872,
0.022935878485441208,
-0.04348451644182205,
0.04087691381573677,
-0.03127285838127136,
-0.025672024115920067,
-0.015535430982708931,
0.009750962257385254,
-0.02027318626642227,
-0.02130153775215149,
-0.003837949363514781,
0.02715945988893509,
0.04175835847854614,
0.030097603797912598,
0.050536058843135834,
0.009328603744506836,
-0.030740322545170784,
0.044476140290498734,
0.034963902086019516,
0.008001849055290222,
0.03169521689414978,
0.007014816626906395,
0.012129021808505058,
-0.05229894444346428,
0.004124877508729696,
-0.04814881831407547,
0.010109048336744308,
-0.018198123201727867,
0.014002087526023388,
0.027288002893328667,
0.042125627398490906,
0.008731793612241745,
-0.05020551756024361,
0.002375764073804021,
-0.01857457309961319,
-0.03874676302075386,
-0.060305386781692505,
0.0428234338760376,
0.02743491157889366,
0.03343974053859711,
0.016416873782873154,
-0.02321133017539978,
-0.011027217842638493,
-0.026571830734610558,
0.039701659232378006,
-0.021062813699245453,
-0.007896259427070618,
-0.04150126874446869,
0.028518350794911385,
-0.04774482548236847,
0.016398511826992035,
-0.012964555993676186,
0.020530274137854576,
0.1311146318912506,
0.0049810707569122314,
0.0037966317031532526,
0.07448192685842514,
0.018840841948986053,
-0.0031470267567783594,
-0.013038009405136108,
-0.011963751167058945,
-0.04954443871974945,
0.05420874059200287,
-0.05512690916657448,
0.03966493159532547,
-0.0027545092161744833,
0.09189042448997498,
-0.03522098809480667,
-0.05894649401307106,
0.025506753474473953,
0.027912359684705734,
0.0013405277859419584,
-0.050536058843135834,
0.0228256992995739,
-0.05288657546043396,
-0.038012225180864334,
0.023982591927051544,
-0.010999673046171665,
0.03237466514110565,
-0.0042396485805511475,
0.03896712139248848,
0.02745327353477478,
0.026369834318757057,
-0.06934017688035965,
-0.05846904590725899,
0.037002239376306534,
-0.02684728242456913,
0.048883356153964996,
-0.01706877537071705,
-0.033953916281461716,
0.013901089318096638,
-0.017417678609490395,
-0.03266847878694534,
0.01347873080521822,
-0.007326994091272354,
-0.019446834921836853,
0.018446030095219612,
0.02796744927763939,
-0.06845873594284058,
-0.06981762498617172,
-0.036469701677560806,
-0.004384260158985853,
-0.016012879088521004,
0.03018941916525364,
0.0220177099108696,
-0.010026413016021252,
-0.028426533564925194,
0.034963902086019516,
-0.05468618869781494,
0.014663170091807842,
-0.042933616787195206,
-0.00600482989102602,
-0.0666591227054596,
-0.005068296566605568,
0.03237466514110565,
-0.007983485236763954,
-0.04381505772471428,
-0.01663723587989807,
-0.0010553213069215417,
0.016389328986406326,
-0.021558623760938644,
-0.009806052781641483,
0.0021829484030604362,
0.00983359757810831,
0.01786758191883564,
0.10290846228599548,
0.037094056606292725,
0.010430407710373402,
-0.00746931042522192,
-0.014360174536705017,
-0.00026598229305818677,
0.011293487623333931,
0.00041690643411129713,
0.00462068896740675,
-0.03018941916525364,
0.014507081359624863,
-0.019924283027648926,
-0.019630467519164085,
-0.0041638994589447975,
0.02704927884042263,
-0.000029266659112181515,
-0.013396096415817738,
0.014387719333171844,
-0.05479636788368225,
0.0813131108880043,
0.047597918659448624,
0.001092048129066825,
0.056669432669878006,
-0.02027318626642227,
0.05255603417754173,
0.06250899285078049,
0.006592458579689264,
0.06379443407058716,
-0.001272812718525529,
-0.029307976365089417,
-0.03290720283985138,
-0.033054109662771225,
-0.01524161733686924,
0.06662239134311676,
-0.030005786567926407,
0.01685759611427784,
-0.0007299449061974883,
0.01907956600189209,
-0.04701028764247894,
-0.033035747706890106,
-0.05843231827020645,
0.010981309227645397,
0.01757376827299595,
-0.0339355506002903,
0.018712298944592476,
-0.0006955135613679886,
-0.010981309227645397,
0.023633688688278198,
0.0005247913650237024,
-0.006376688368618488,
-0.007152542006224394,
-0.03786531835794449,
0.019648831337690353,
0.06408824771642685,
0.0005991057259961963,
0.0011947683524340391,
0.03371519222855568,
-0.0110088549554348,
0.04146454483270645,
0.035771891474723816,
-0.051344048231840134,
-0.010880311019718647,
-0.026424923911690712,
0.05218876525759697,
0.004202921874821186,
0.07073579728603363,
-0.0638311579823494,
0.00923678744584322,
0.010577314533293247,
0.014617261476814747
] |
21,171 | tfields.core | _cut_template |
In principle, what we do is returning
self[template.fields[0]]
If the templates tensors is given (has no dimension 0), 0))), we switch
to only extruding the field entries according to the indices provided
by template.fields[0]. This allows the template to define additional
points, extending the object it should cut. This becomes relevant for
Mesh3D when adding vertices at the edge of the cut is necessary.
| def _cut_template(self, template):
"""
In principle, what we do is returning
self[template.fields[0]]
If the templates tensors is given (has no dimension 0), 0))), we switch
to only extruding the field entries according to the indices provided
by template.fields[0]. This allows the template to define additional
points, extending the object it should cut. This becomes relevant for
Mesh3D when adding vertices at the edge of the cut is necessary.
"""
# Redirect fields
fields = []
if template.fields and issubclass(type(self), TensorFields):
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)
if dim(template) == 0:
# for speed circumvent __getitem__ of the complexer subclasses
tensors = Tensors(self)[template.fields[0]]
else:
tensors = template
return type(self)(tensors, *fields)
| (self, template) | [
0.006585749331861734,
-0.04338202625513077,
-0.03384089842438698,
-0.013007310219109058,
-0.04692118242383003,
-0.018534962087869644,
-0.02070588804781437,
0.0006641618674620986,
-0.005322416312992573,
0.007265303749591112,
0.01490459032356739,
0.028313247486948967,
-0.06837503612041473,
-0.055933259427547455,
-0.0755992904305458,
0.030976736918091774,
0.009778287261724472,
0.018306924030184746,
0.02539435587823391,
-0.05042385309934616,
-0.006430683191865683,
-0.0817289650440216,
0.013399536721408367,
0.06115077808499336,
0.05757513642311096,
-0.027492310851812363,
0.00513542490079999,
-0.013217105530202389,
0.026434211060404778,
-0.03509967029094696,
-0.06826557964086533,
0.03336657956242561,
0.023113973438739777,
0.020176837220788002,
0.008109046146273613,
-0.07479659467935562,
0.03502669930458069,
0.0004255766689311713,
-0.022986270487308502,
0.05144546553492546,
0.014840739779174328,
-0.046045515686273575,
-0.02037751115858555,
-0.03084903582930565,
0.02035926841199398,
-0.012788393534719944,
0.03904017433524132,
-0.03159699961543083,
-0.0083005977794528,
0.002900648396462202,
-0.029499048367142677,
-0.029955124482512474,
0.00890261959284544,
0.018863337114453316,
-0.051080603152513504,
-0.0071376021951437,
0.025357870385050774,
0.038055047392845154,
-0.035227373242378235,
-0.001516455435194075,
-0.023898424580693245,
0.0473955012857914,
0.01247826125472784,
-0.0023533564526587725,
0.0012165849329903722,
-0.02683555893599987,
-0.0005153667880222201,
0.03230848163366318,
0.0031697337981313467,
0.004487795755267143,
-0.05071574077010155,
0.00333164120092988,
0.06687910109758377,
0.003682820126414299,
0.04611848667263985,
-0.043491486459970474,
0.030356472358107567,
-0.01397419348359108,
0.06735341995954514,
-0.0628291442990303,
0.012003941461443901,
-0.01827043667435646,
-0.030520660802721977,
0.022293034940958023,
0.04378337413072586,
0.004807049408555031,
0.002934854244813323,
-0.01078165601938963,
-0.009253798052668571,
-0.02990039624273777,
-0.019191712141036987,
0.0077441842295229435,
-0.03285577520728111,
-0.026105836033821106,
0.027309879660606384,
0.03613952547311783,
0.012587719596922398,
-0.09486397355794907,
-0.01226846594363451,
0.029334859922528267,
0.06158861145377159,
0.044950932264328,
-0.07392092794179916,
0.005409070756286383,
0.04082799702882767,
0.006385075394064188,
0.006421561352908611,
0.022019388154149055,
-0.021435610949993134,
0.0014434830518439412,
0.0142752043902874,
0.05622515082359314,
-0.022274792194366455,
0.046738751232624054,
-0.02606935054063797,
-0.05578731372952461,
-0.016053903847932816,
0.02318694442510605,
-0.007525267545133829,
-0.027547039091587067,
0.00782171729952097,
-0.08296949416399002,
-0.04615497216582298,
0.020997775718569756,
-0.01801503449678421,
0.05684541538357735,
0.04133880138397217,
-0.010699561797082424,
-0.021088991314172745,
-0.0683385506272316,
-0.05410895124077797,
-0.02444571629166603,
-0.028732839971780777,
-0.006676964461803436,
-0.018088005483150482,
-0.013691426254808903,
-0.007589118089526892,
-0.0257409755140543,
-0.017358282580971718,
0.03714289516210556,
0.010316457599401474,
0.011210368014872074,
0.04644686356186867,
0.049876559525728226,
-0.06943313032388687,
0.005970045458525419,
0.057283248752355576,
0.02845919318497181,
0.02291329950094223,
-0.027109205722808838,
-0.0748695656657219,
0.021508581936359406,
0.004829853307455778,
0.036176010966300964,
-0.042396899312734604,
0.01095496490597725,
0.004471833351999521,
-0.04491444304585457,
0.02335113286972046,
0.03239969536662102,
-0.009162583388388157,
0.007839960046112537,
-0.01048064511269331,
0.008250429295003414,
-0.020395755767822266,
-0.009431668557226658,
0.08953700214624405,
-0.06618586927652359,
-0.051919784396886826,
0.02718217857182026,
0.016683289781212807,
0.027072720229625702,
-0.011082666926085949,
0.06534668803215027,
-0.026780830696225166,
0.06253725290298462,
-0.010699561797082424,
-0.010945843532681465,
-0.03612128272652626,
0.004002073779702187,
0.0016418765299022198,
-0.031487543135881424,
0.01448499970138073,
0.010754290968179703,
-0.010827263817191124,
-0.0022096920292824507,
0.02539435587823391,
-0.0074933418072760105,
0.012770150788128376,
0.02495652250945568,
-0.005513968411833048,
-0.016327550634741783,
0.02325991727411747,
-0.01813361421227455,
0.03015579842031002,
0.00924923736602068,
0.00034234265331178904,
-0.0070418259128928185,
-0.04838062822818756,
0.07337363809347153,
-0.07800737768411636,
-0.0418860949575901,
0.009258359670639038,
-0.03354901075363159,
0.0017570359632372856,
0.056188661605119705,
0.05578731372952461,
0.040244217962026596,
-0.06034808233380318,
0.014503242447972298,
-0.03230848163366318,
0.0024582541082054377,
0.06308454275131226,
0.032746315002441406,
0.03447940573096275,
-0.03092200681567192,
-0.054911646991968155,
-0.010489766485989094,
-0.012824879959225655,
-0.007105676922947168,
0.007329154293984175,
0.013700547628104687,
-0.042032040655612946,
0.012542112730443478,
-0.006084064487367868,
0.0005951802595518529,
-0.017750509083271027,
0.013308321125805378,
0.009687071666121483,
-0.07195067405700684,
0.05633460730314255,
-0.024555174633860588,
-0.029681479558348656,
-0.013910342939198017,
0.015579584054648876,
0.017376527190208435,
-0.015023170039057732,
-0.06698856502771378,
0.04217798262834549,
0.01141104195266962,
-0.04319959506392479,
-0.016163362190127373,
0.002262141089886427,
0.00386525085195899,
0.01218637265264988,
0.02811257541179657,
-0.05129951983690262,
0.009221873246133327,
0.017321797087788582,
0.008556000888347626,
-0.02727339416742325,
0.019903192296624184,
-0.04867251589894295,
0.05221167206764221,
0.0047751241363584995,
-0.044002290815114975,
0.05699135735630989,
-0.048781976103782654,
-0.011648201383650303,
-0.0035893244203180075,
-0.061552125960588455,
-0.055057592689991,
0.03623074293136597,
0.009842137806117535,
0.019793733954429626,
-0.03904017433524132,
-0.03632195666432381,
0.07019934058189392,
-0.00587882986292243,
0.05987376347184181,
0.05221167206764221,
0.06465344876050949,
0.0074705383740365505,
-0.030374715104699135,
0.013107647188007832,
-0.051336005330085754,
0.013481630943715572,
0.07019934058189392,
0.005833222530782223,
-0.013189741410315037,
-0.011857996694743633,
-0.009477276355028152,
-0.043309055268764496,
-0.0166011955589056,
0.01599005237221718,
-0.02648894116282463,
0.022949784994125366,
-0.03108619526028633,
0.027455823495984077,
-0.007178648840636015,
-0.04582659900188446,
0.01993967778980732,
0.03238145262002945,
-0.020815346390008926,
-0.033950358629226685,
-0.049876559525728226,
-0.07176824659109116,
-0.026197051629424095,
0.007543510291725397,
-0.03665033355355263,
0.03747127205133438,
-0.03834693878889084,
-0.00019882098422385752,
0.017048150300979614,
0.017723144963383675,
-0.006635917816311121,
-0.023405861109495163,
0.0016954655293375254,
0.0729358047246933,
-0.007780670188367367,
0.013873856514692307,
-0.025576787069439888,
-0.0022518793120980263,
-0.0077487449161708355,
0.0485265739262104,
0.04345499724149704,
0.013873856514692307,
0.0022758233826607466,
0.02460990473628044,
0.0855964943766594,
0.005422753281891346,
-0.006553823594003916,
-0.04389283061027527,
0.07924790680408478,
-0.0036166890058666468,
-0.06312102824449539,
-0.034461162984371185,
-0.0560792051255703,
-0.06447102129459381,
0.042032040655612946,
-0.03287401795387268,
0.09639639407396317,
0.006225448567420244,
0.0053041731007397175,
-0.03333009406924248,
-0.035063184797763824,
0.035902366042137146,
-0.01843462511897087,
-0.045461736619472504,
-0.04728604480624199,
0.05254004895687103,
-0.006134232971817255,
0.039222605526447296,
0.06297508627176285,
0.0321807786822319,
0.012578598223626614,
0.035902366042137146,
-0.011611715890467167,
0.05151843652129173,
0.05254004895687103,
0.0005957503453828394,
-0.04155771806836128,
0.0658939778804779,
0.01078165601938963,
0.020924804732203484,
-0.039149634540081024,
-0.0032791923731565475,
0.0029166112653911114,
-0.042725276201963425,
-0.0006858254782855511,
0.06775476783514023,
-0.013399536721408367,
0.008232186548411846,
0.009504640474915504,
0.016756262630224228,
-0.011839753948152065,
0.0027615451253950596,
0.036942221224308014,
-0.058231886476278305,
-0.0013591089518740773,
-0.016975179314613342,
-0.04334554076194763,
-0.007944857701659203,
0.010015446692705154,
-0.023497076705098152,
-0.03739829733967781,
-0.04002530127763748,
0.011721174232661724,
-0.06928718835115433,
0.012879609130322933,
0.016628559678792953,
0.013226227834820747,
-0.00888893660157919,
-0.004193626344203949,
-0.027109205722808838,
0.025613274425268173,
-0.04582659900188446,
-0.0074933418072760105,
0.06162509694695473,
-0.022183576598763466,
0.020395755767822266,
-0.049876559525728226,
0.032928746193647385,
-0.05370760336518288,
-0.0007183209527283907,
-0.004446749109774828,
0.013828248716890812,
-0.002304328139871359,
0.02121669240295887,
0.013846492394804955,
-0.03022877126932144,
-0.03841990977525711,
-0.006722572259604931,
0.09318561106920242,
-0.005979166831821203,
-0.04287122189998627,
0.06268319487571716,
0.03918612003326416,
0.034880753606557846,
0.008514953777194023,
0.0050350879319012165,
0.061296723783016205,
-0.01741301268339157,
-0.018507596105337143,
0.03391387313604355,
-0.0004766002530232072,
-0.011876240372657776,
0.03893071785569191,
-0.05684541538357735,
0.02572273276746273,
-0.005454678554087877,
0.052613019943237305,
0.04819819703698158,
-0.03092200681567192,
-0.03520913049578667,
-0.018024155870079994,
-0.03508142754435539,
0.0004726095939986408,
-0.0011322107166051865,
0.04710361361503601,
-0.0647629052400589,
-0.09552072733640671,
-0.036668576300144196,
0.004743198864161968,
-0.008145531639456749,
0.04257933050394058,
0.024044370278716087,
0.04849008470773697,
-0.002118476899340749,
0.0341692753136158,
0.035646963864564896,
0.01792381890118122,
0.013773519545793533,
-0.07924790680408478,
-0.02690853178501129,
0.017303554341197014,
-0.045790113508701324,
-0.04363742843270302,
-0.10055581480264664,
0.002668049419298768,
0.044513095170259476,
0.04462255537509918,
0.021672770380973816,
0.011903604492545128,
0.008072559721767902,
-0.03356725350022316,
-0.046045515686273575,
-0.018115371465682983,
0.012441775761544704,
0.0037352691870182753,
-0.009869501926004887,
0.07454119622707367,
0.016582952812314034,
-0.015360667370259762,
-0.0026612081564962864,
-0.07125744223594666,
-0.011438406072556973,
-0.02351531945168972,
-0.028149060904979706,
-0.01840725913643837,
0.04385634511709213,
-0.02154506929218769,
-0.033019959926605225,
0.012624206021428108,
0.017303554341197014,
0.030794305726885796,
0.013828248716890812,
0.023825451731681824,
0.010453280061483383,
-0.04294419288635254,
0.0005709511460736394,
-0.06957907974720001,
-0.023916667327284813,
0.0007759006693959236,
-0.016984300687909126,
0.03995233029127121,
-0.03661384806036949,
0.0285504087805748,
0.02393491007387638,
-0.0025813947431743145,
-0.038894228637218475,
0.025029495358467102,
-0.004426225554198027,
0.006198083981871605,
-0.03325711935758591,
0.0050214058719575405,
-0.01239616796374321,
0.048599544912576675,
0.03486251085996628,
0.004572169855237007,
0.0052220793440938,
-0.010663075372576714,
-0.027620011940598488,
-0.01926468499004841,
0.00976004358381033,
-0.022019388154149055,
0.08530460298061371,
0.046994153410196304,
0.02052345685660839,
-0.031907133758068085,
-0.0036440538242459297,
-0.023460591211915016,
-0.014877225272357464,
0.0427982471883297,
0.01349987369030714,
0.02121669240295887,
-0.02284032665193081,
0.02163628302514553,
-0.06217239052057266,
-0.010945843532681465,
0.02291329950094223,
-0.005349780898541212,
-0.04589956998825073,
-0.013600210659205914,
0.012414410710334778,
0.023132216185331345,
0.011721174232661724,
-0.05246707797050476,
0.04046313464641571,
0.03300171718001366,
0.009851259179413319,
-0.00007974218169692904,
0.008314279839396477,
0.040098272264003754,
-0.003828764893114567,
0.0377996452152729,
-0.04159420356154442,
-0.05673595517873764,
0.010580982081592083,
-0.015533976256847382,
-0.04849008470773697,
-0.002113915979862213,
0.015260330401360989,
-0.02512071095407009,
0.03447940573096275,
-0.0028367978520691395,
-0.01701166480779648,
0.016373157501220703,
-0.06447102129459381,
-0.02223830483853817,
0.02581394836306572,
-0.009860380552709103,
0.032509155571460724,
0.008323402144014835,
0.046738751232624054,
0.04743198677897453,
-0.047833334654569626,
-0.0388212576508522,
-0.006558384746313095,
0.07096555083990097,
0.01639140024781227,
-0.042032040655612946,
0.1228853389620781,
0.07315471768379211,
-0.05137249082326889,
0.027620011940598488,
0.0016726617468521,
0.015506611205637455,
-0.04692118242383003,
0.02001265063881874,
0.023989640176296234,
0.017878210172057152,
0.008387252688407898,
0.06768179684877396,
0.01078165601938963,
-0.006353150121867657,
0.007374762091785669,
-0.003951905760914087,
-0.01801503449678421,
-0.043819859623909,
0.023296402767300606,
-0.014703916385769844,
0.040244217962026596,
-0.02094304747879505,
0.02690853178501129,
0.009217312559485435,
0.012697177939116955,
0.03893071785569191,
0.029462561011314392,
0.009896866977214813,
0.045279305428266525,
0.061041321605443954,
-0.02844095043838024,
0.014795131981372833,
0.010143148712813854,
0.046483349055051804,
-0.03396860137581825,
-0.008460224606096745,
-0.0372888408601284,
-0.0342240035533905,
-0.05461975932121277,
-0.011520500294864178,
-0.00481161056086421,
0.10267201066017151,
-0.005167350172996521,
-0.07377498596906662,
-0.028988242149353027,
0.004658824764192104,
0.04013475775718689,
-0.051591407507658005,
0.051153574138879776,
0.018416382372379303,
0.027401095256209373,
0.02599637769162655,
0.0029074896592646837,
-0.0013317442499101162,
-0.025449085980653763,
-0.004118373617529869,
0.08712891489267349,
-0.02648894116282463,
-0.030630119144916534,
-0.00044011411955580115,
-0.04155771806836128,
0.006850273814052343,
-0.012122521176934242,
0.008186578750610352,
0.07983168214559555,
-0.08902619034051895,
0.015214722603559494,
0.059764306992292404,
0.029334859922528267,
-0.047067128121852875,
-0.007315472234040499,
0.03391387313604355,
-0.05297788232564926,
0.06465344876050949,
-0.025193683803081512,
-0.011629958637058735,
0.007310911081731319,
0.03017404116690159,
-0.0003260949160903692,
-0.03681451827287674,
0.003267790423706174,
0.022220062091946602,
-0.03955098241567612,
-0.09296669811010361,
0.0463738888502121,
-0.052430588752031326,
0.010334700345993042,
0.06848449259996414,
-0.05246707797050476,
0.07581821084022522,
-0.002592796692624688,
0.006850273814052343,
0.0032016593031585217,
0.017914697527885437,
0.023059243336319923,
-0.027583524584770203,
0.04276176169514656,
-0.012943459674715996,
-0.004816171247512102,
-0.007242499850690365,
0.0052813696675002575,
-0.026726100593805313,
-0.015798499807715416,
-0.04575362429022789,
0.020213324576616287,
-0.026306509971618652,
-0.035829395055770874,
0.04312662407755852,
-0.004957554861903191,
-0.06571155041456223,
-0.04626443237066269,
-0.04294419288635254,
0.027656497433781624,
-0.015661677345633507,
0.05918052792549133,
0.003995232749730349,
-0.045279305428266525,
-0.04148474708199501,
0.0970531478524208,
-0.02189168706536293,
-0.033786170184612274,
0.030028097331523895,
0.038200993090867996,
-0.011438406072556973,
-0.04287122189998627,
0.011994820088148117,
-0.036066554486751556,
0.0029508168809115887,
0.0372341126203537,
-0.00884332973510027,
0.05297788232564926,
0.0022142529487609863,
-0.037361811846494675,
-0.015524854883551598,
-0.008948227390646935,
0.023314647376537323,
0.046045515686273575,
0.023788966238498688,
0.027236906811594963,
-0.004170822445303202,
-0.07417633384466171,
-0.016491737216711044,
-0.04031718894839287,
0.002631563227623701,
0.029681479558348656,
-0.04163069278001785,
0.04589956998825073,
-0.020559942349791527,
0.018680905923247337,
0.06279265880584717,
0.0755992904305458,
-0.04440363869071007,
-0.01000632531940937,
0.04181312024593353,
-0.07111149281263351,
0.06811963021755219,
0.03885774314403534,
-0.008305158466100693,
0.02045048400759697,
-0.01813361421227455,
0.017814360558986664,
0.057721082121133804,
-0.003347603837028146,
0.005650791805237532,
-0.004029438830912113,
-0.03856585547327995,
-0.05980079248547554,
-0.003824203973636031,
0.018936309963464737,
0.055349480360746384,
-0.031213896349072456,
-0.039076659828424454,
0.04002530127763748,
-0.005208397284150124,
0.012067792005836964,
-0.03632195666432381,
-0.03699694946408272,
0.028349734842777252,
-0.025868676602840424,
-0.04549822211265564,
-0.01274278573691845,
0.0047796848230063915,
-0.004184504505246878,
0.004848096519708633,
0.04524281993508339,
0.025759218260645866,
-0.0012416690587997437,
-0.009568491019308567,
0.05272248014807701,
0.0710020363330841,
-0.025595029816031456,
-0.08742080628871918,
0.03243618458509445,
-0.02495652250945568,
0.022530194371938705,
-0.02616056613624096,
-0.05246707797050476,
-0.030630119144916534,
-0.02546732872724533,
-0.00017929519526660442,
0.017440376803278923,
0.06914124637842178,
-0.0226761382073164,
0.033877383917570114,
0.01507789921015501,
0.017495106905698776
] |
21,182 | tfields.core | cut |
Extract a part of the object according to the logic given
by <expression>.
Args:
expression (sympy logical expression|tfields.TensorFields): logical
expression which will be evaluated. use symbols x, y and z.
If tfields.TensorFields or subclass is given, the expression
refers to a template.
coord_sys (str): coord_sys to evaluate the expression in. Only
active for template expression
Examples:
>>> import tfields
>>> 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]])
>>> p.cut(x > 0).equal([[1, 2, 3],
... [4, 5, 6],
... [1, 2, -6],
... [1, 0, -1]])
True
combinations of cuts
>>> cut_expression = (x > 0) & (z < 0)
>>> combi_cut = p.cut(cut_expression)
>>> combi_cut.equal([[1, 2, -6], [1, 0, -1]])
True
Templates can be used to speed up the repeated cuts on the same
underlying tensor with the same expression but new fields.
First let us cut a but request the template on return:
>>> field1 = list(range(len(p)))
>>> tf = tfields.TensorFields(p, field1)
>>> tf_cut, template = tf.cut(cut_expression,
... return_template=True)
Now repeat the cut with a new field:
>>> field2 = p
>>> tf.fields.append(field2)
>>> tf_template_cut = tf.cut(template)
>>> tf_template_cut.equal(combi_cut)
True
>>> tf_template_cut.fields[0].equal([2, 4])
True
>>> tf_template_cut.fields[1].equal(combi_cut)
True
Returns:
copy of self with cut applied
[optional: template - requires <return_template> switch]
| def cut(self, expression, coord_sys=None, return_template=False, **kwargs):
"""
Extract a part of the object according to the logic given
by <expression>.
Args:
expression (sympy logical expression|tfields.TensorFields): logical
expression which will be evaluated. use symbols x, y and z.
If tfields.TensorFields or subclass is given, the expression
refers to a template.
coord_sys (str): coord_sys to evaluate the expression in. Only
active for template expression
Examples:
>>> import tfields
>>> 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]])
>>> p.cut(x > 0).equal([[1, 2, 3],
... [4, 5, 6],
... [1, 2, -6],
... [1, 0, -1]])
True
combinations of cuts
>>> cut_expression = (x > 0) & (z < 0)
>>> combi_cut = p.cut(cut_expression)
>>> combi_cut.equal([[1, 2, -6], [1, 0, -1]])
True
Templates can be used to speed up the repeated cuts on the same
underlying tensor with the same expression but new fields.
First let us cut a but request the template on return:
>>> field1 = list(range(len(p)))
>>> tf = tfields.TensorFields(p, field1)
>>> tf_cut, template = tf.cut(cut_expression,
... return_template=True)
Now repeat the cut with a new field:
>>> field2 = p
>>> tf.fields.append(field2)
>>> tf_template_cut = tf.cut(template)
>>> tf_template_cut.equal(combi_cut)
True
>>> tf_template_cut.fields[0].equal([2, 4])
True
>>> tf_template_cut.fields[1].equal(combi_cut)
True
Returns:
copy of self with cut applied
[optional: template - requires <return_template> switch]
"""
with self.tmp_transform(coord_sys or self.coord_sys):
if issubclass(type(expression), TensorFields):
template = expression
obj = self._cut_template(template)
else:
obj, template = self._cut_sympy(expression, **kwargs)
if return_template:
return obj, template
return obj
| (self, expression, coord_sys=None, return_template=False, **kwargs) | [
0.04880087077617645,
-0.03410515561699867,
0.00023271518875844777,
-0.03119373880326748,
-0.009372975677251816,
-0.008204448036849499,
-0.022815991193056107,
-0.03127295896410942,
-0.03127295896410942,
-0.012556717731058598,
0.042463093996047974,
0.015002702362835407,
-0.012833994813263416,
-0.04281959682703018,
-0.05117753520607948,
0.008625316433608532,
0.001987981842830777,
-0.021528631448745728,
0.02003331109881401,
-0.02766835130751133,
0.017636841163039207,
-0.04567159339785576,
0.022875407710671425,
0.03559057042002678,
0.04432481527328491,
-0.058109477162361145,
0.04769175872206688,
0.001027412828989327,
-0.031748294830322266,
-0.007412226404994726,
-0.0171516053378582,
0.00839755218476057,
0.0020028359722346067,
-0.022142602130770683,
-0.007976684719324112,
-0.049909982830286026,
0.03913576155900955,
0.01930050738155842,
0.049038536846637726,
0.06314008682966232,
-0.027707962319254875,
-0.028361545875668526,
0.0068923309445381165,
-0.017537813633680344,
-0.02321210317313671,
-0.020132340490818024,
0.017686353996396065,
-0.008526288904249668,
-0.06175369769334793,
0.021667269989848137,
-0.00407251575961709,
-0.03770976513624191,
-0.014824452809989452,
-0.013774759136140347,
-0.004887018818408251,
-0.0016203414415940642,
0.04444364830851555,
0.028044655919075012,
0.02083543688058853,
0.006837865337729454,
-0.030104434117674828,
0.08239108324050903,
-0.04610731452703476,
0.019983798265457153,
0.02428160235285759,
-0.019657006487250328,
-0.028559600934386253,
0.025846241042017937,
0.0016450983239337802,
-0.004599838517606258,
-0.03285740315914154,
0.00792717095464468,
0.06218942254781723,
-0.017121896147727966,
-0.0038348492234945297,
-0.054504867643117905,
0.025489740073680878,
-0.0261631291359663,
0.09863162785768509,
-0.10140440613031387,
-0.03897731751203537,
0.044720929116010666,
-0.011071301065385342,
0.009991899132728577,
0.033689238131046295,
0.034481458365917206,
0.029351823031902313,
0.005812928546220064,
0.02083543688058853,
-0.01376485638320446,
-0.035491541028022766,
0.002156329108402133,
-0.02687612920999527,
-0.024598490446805954,
0.0031862175092101097,
0.04689953848719597,
-0.004636974073946476,
-0.04099748656153679,
-0.028143683448433876,
0.039096150547266006,
0.0752214714884758,
0.05129636824131012,
-0.08247030526399612,
0.03305545821785927,
0.03329312801361084,
0.032679155468940735,
-0.014527369290590286,
0.03258012607693672,
-0.051256757229566574,
-0.02299424074590206,
0.03335254266858101,
0.10417718440294266,
-0.005515845026820898,
0.008996670134365559,
-0.010016655549407005,
-0.02212279662489891,
-0.03582823649048805,
-0.0099027743563056,
-0.03679870814085007,
-0.0716564729809761,
0.011586246080696583,
-0.06615053117275238,
-0.007184462621808052,
0.012744870036840439,
0.0005573405069299042,
0.10322652012109756,
0.032184015959501266,
-0.0022268863394856453,
-0.04198776185512543,
-0.05200937017798424,
-0.024043936282396317,
-0.03578862547874451,
-0.010952468030154705,
0.02976773865520954,
0.0055703106336295605,
-0.009952288120985031,
-0.026143323630094528,
-0.04602809250354767,
-0.02168707549571991,
0.007560768164694309,
0.0034733980428427458,
-0.011239648796617985,
0.02103349193930626,
0.027569323778152466,
-0.07015125453472137,
-0.007491448428481817,
0.003267915453761816,
-0.006639809813350439,
0.039096150547266006,
0.012348758988082409,
-0.07118114084005356,
0.03907634690403938,
0.02535110153257847,
0.0005604351172223687,
-0.036362987011671066,
0.03731365129351616,
0.0030847140587866306,
-0.009536371566355228,
0.03315448760986328,
0.03477854281663895,
0.014428341761231422,
-0.0013195446226745844,
-0.01350738387554884,
0.02263774164021015,
-0.013289522379636765,
0.00018706958508118987,
0.062229033559560776,
-0.03626395761966705,
-0.010873246006667614,
0.017745770514011383,
0.03963090106844902,
0.02277638018131256,
0.03640259802341461,
0.02204357460141182,
-0.04337415099143982,
0.06072381138801575,
-0.009536371566355228,
-0.011209940537810326,
-0.058703646063804626,
-0.030579766258597374,
-0.008214350789785385,
-0.053435370326042175,
0.0027826796285808086,
0.044126760214567184,
-0.002626710804179311,
-0.009675010107457638,
0.0030005406588315964,
0.0011982356663793325,
0.001789926434867084,
0.025192657485604286,
-0.03675909712910652,
-0.034837957471609116,
-0.008536191657185555,
-0.030460933223366737,
0.03608570992946625,
0.0021117664873600006,
-0.02089485339820385,
0.036422401666641235,
-0.04042312502861023,
0.1090889573097229,
-0.0659920871257782,
-0.02406374178826809,
0.013784661889076233,
-0.007857851684093475,
0.0002755756431724876,
0.06080303341150284,
0.05533670261502266,
0.06916097551584244,
-0.042779985815286636,
-0.038799069821834564,
-0.01059596799314022,
0.00498852226883173,
0.04856320470571518,
0.04151242971420288,
0.05858481302857399,
0.018924200907349586,
-0.04171048477292061,
0.002121669240295887,
0.004122029524296522,
-0.04270076006650925,
0.019072743132710457,
-0.011972453445196152,
-0.016101909801363945,
0.042463093996047974,
0.019855061545968056,
-0.007823191583156586,
0.014923480339348316,
0.002125382889062166,
0.02039971388876438,
-0.08960030227899551,
0.01801314577460289,
0.0024893097579479218,
0.031530432403087616,
-0.03208498656749725,
0.015438424423336983,
0.015864243730902672,
-0.025687795132398605,
-0.01189323142170906,
0.024440046399831772,
0.006961650215089321,
-0.03883868083357811,
0.012021968141198158,
-0.01809236779808998,
-0.024836156517267227,
-0.009783940389752388,
-0.017983438447117805,
-0.02925279550254345,
0.06551675498485565,
0.021271158009767532,
-0.0156265776604414,
-0.022083185613155365,
0.00947200320661068,
-0.016121715307235718,
0.01932031288743019,
-0.006134768482297659,
0.018646923825144768,
0.040957871824502945,
-0.07236947119235992,
0.01707238331437111,
-0.017894312739372253,
-0.010615773499011993,
-0.04812748357653618,
0.009858211502432823,
0.005798074416816235,
0.007328053005039692,
-0.056960757821798325,
-0.022380270063877106,
0.03198596090078354,
-0.03408534824848175,
0.05672309175133705,
-0.09871084988117218,
0.0633777529001236,
0.009957239031791687,
-0.03331293165683746,
-0.014477855525910854,
-0.045711204409599304,
0.04594887048006058,
0.007347858510911465,
0.012507203966379166,
-0.02911415509879589,
-0.00825396180152893,
-0.0033075264655053616,
-0.04907814785838127,
-0.017250632867217064,
-0.005619824398308992,
-0.01773586869239807,
0.03018365614116192,
0.018330035731196404,
0.02558876760303974,
0.014586785808205605,
-0.0958588495850563,
0.02455887943506241,
0.044126760214567184,
0.013299426063895226,
0.055455535650253296,
-0.0005573405069299042,
-0.0663485899567604,
-0.03784840181469917,
-0.008476774208247662,
-0.041750095784664154,
0.03559057042002678,
0.009056086651980877,
-0.0593770332634449,
0.023687435314059258,
0.01189323142170906,
-0.015745410695672035,
0.022578325122594833,
-0.008452017791569233,
0.05684192478656769,
0.02933201752603054,
0.045869648456573486,
-0.003795238211750984,
0.0008485439466312528,
0.005080122966319323,
0.015438424423336983,
0.03547173738479614,
0.010823732241988182,
0.026341378688812256,
0.008080664090812206,
0.07530069351196289,
0.01909254863858223,
-0.038145486265420914,
-0.009278899058699608,
0.1082175150513649,
0.027054378762841225,
-0.055732812732458115,
-0.06563558429479599,
-0.017745770514011383,
-0.04864242672920227,
0.05426720157265663,
-0.051494427025318146,
0.12429962307214737,
0.02665826864540577,
0.006010984070599079,
0.028579406440258026,
-0.019290603697299957,
0.0323028489947319,
-0.026895934715867043,
-0.07359741628170013,
-0.06246669963002205,
0.014844258315861225,
-0.020419519394636154,
0.0018493430688977242,
0.03899712488055229,
-0.002740592695772648,
0.0032481099478900433,
0.00904618389904499,
0.0007786056376062334,
0.0523262582719326,
0.03537270799279213,
0.047810591757297516,
-0.016686175018548965,
0.062149811536073685,
-0.019983798265457153,
0.013041953556239605,
-0.0003145678201690316,
-0.02261793613433838,
0.017993340268731117,
-0.06195175647735596,
-0.021528631448745728,
0.09015485644340515,
-0.040957871824502945,
0.014052036218345165,
-0.000004603242814482655,
-0.013735148124396801,
-0.02133057452738285,
-0.019904576241970062,
0.04202737286686897,
-0.06527908891439438,
-0.020082825794816017,
-0.010932662524282932,
-0.0263809897005558,
0.0215484369546175,
-0.004112126771360636,
-0.020776020362973213,
0.00370116182602942,
-0.016092007979750633,
-0.07383508235216141,
-0.060050420463085175,
0.030817432329058647,
0.009313559159636497,
0.013596508651971817,
-0.0158444382250309,
-0.009749281220138073,
-0.04804826155304909,
0.03660065308213234,
-0.058545202016830444,
-0.023033851757645607,
0.07617213577032089,
-0.03061937727034092,
0.0259452685713768,
-0.000703096971847117,
0.0259452685713768,
-0.01887468807399273,
-0.042265038937330246,
-0.03972993046045303,
0.021092908456921577,
0.0031094711739569902,
0.004674109164625406,
0.0018790513277053833,
0.0076201846823096275,
-0.020637381821870804,
0.044918984174728394,
0.0638134777545929,
0.02622254565358162,
-0.03790782019495964,
0.033907096832990646,
0.014170870184898376,
-0.0007699406705796719,
-0.002708408748731017,
0.005461379885673523,
0.012091287411749363,
-0.017686353996396065,
0.019706521183252335,
0.0074468860402703285,
0.008343087509274483,
-0.0067190323024988174,
0.0593770332634449,
-0.04705798253417015,
0.017349660396575928,
-0.003844751976430416,
-0.014537272043526173,
0.023390352725982666,
-0.017498202621936798,
-0.014022327959537506,
0.010724704712629318,
0.0004450059204827994,
0.001496556680649519,
0.031669072806835175,
0.04448326304554939,
-0.10306807607412338,
-0.0663485899567604,
-0.07688514143228531,
0.04365142807364464,
0.017537813633680344,
-0.037590932101011276,
0.03297623619437218,
0.049909982830286026,
-0.00998199637979269,
0.02687612920999527,
0.010051315650343895,
0.029015127569437027,
0.04448326304554939,
-0.058545202016830444,
-0.04804826155304909,
0.04432481527328491,
-0.013041953556239605,
-0.037353262305259705,
-0.10195896029472351,
-0.012774578295648098,
0.0717356950044632,
0.062149811536073685,
0.021845519542694092,
0.034045737236738205,
0.02976773865520954,
-0.04448326304554939,
-0.017993340268731117,
-0.06333814561367035,
-0.019290603697299957,
0.004362171981483698,
-0.02695535123348236,
0.04321570694446564,
0.03774937614798546,
-0.0012025681789964437,
-0.006015935447067022,
-0.054504867643117905,
-0.011229746043682098,
0.00039734880556352437,
-0.01398271694779396,
-0.011477314867079258,
0.025767019018530846,
-0.0009556176955811679,
-0.05042492598295212,
0.04321570694446564,
0.04167087376117706,
0.0343032106757164,
0.015973174944519997,
0.03972993046045303,
0.026420600712299347,
-0.06076342239975929,
-0.025984879583120346,
-0.037650346755981445,
-0.06211020052433014,
-0.01909254863858223,
-0.00843221228569746,
0.02162765897810459,
-0.004367123357951641,
-0.008981816470623016,
0.028440767899155617,
0.011932842433452606,
-0.05082103610038757,
0.02657904475927353,
-0.013289522379636765,
-0.024083547294139862,
-0.06123875454068184,
-0.016547534614801407,
-0.003431311110034585,
0.03731365129351616,
0.01336874533444643,
0.001609200844541192,
-0.030896654352545738,
0.0783507451415062,
0.011982356198132038,
0.016309868544340134,
0.030361905694007874,
-0.01350738387554884,
0.05169248208403587,
0.03258012607693672,
-0.008090566843748093,
-0.041037097573280334,
-0.026182934641838074,
-0.04947425797581673,
0.009462100453674793,
0.040324095636606216,
0.0031094711739569902,
-0.02067699283361435,
-0.0006492506363429129,
0.02990637719631195,
-0.03838315233588219,
0.0025375857949256897,
0.0325603224337101,
0.0028866585344076157,
-0.0013368745567277074,
-0.006565539166331291,
0.04495859518647194,
0.0006393478251993656,
0.019756034016609192,
-0.02335074171423912,
0.024519268423318863,
-0.0037581026554107666,
0.009774037636816502,
-0.024341018870472908,
-0.010288982652127743,
0.03596687689423561,
-0.009595788083970547,
0.07177530974149704,
-0.08904574811458588,
-0.013556897640228271,
0.0013962911907583475,
-0.00529798399657011,
-0.021805908530950546,
-0.00596146984025836,
0.05153403803706169,
0.011507023125886917,
-0.007100289221853018,
0.02681671269237995,
0.05153403803706169,
-0.0020808205008506775,
-0.003973488230258226,
0.002985686296597123,
0.04285920783877373,
-0.007912316359579563,
0.04214620590209961,
-0.004726098850369453,
0.021746492013335228,
0.037650346755981445,
-0.011071301065385342,
0.005936712957918644,
-0.040165651589632034,
0.027351461350917816,
0.023647824302315712,
-0.017171410843729973,
0.1214476227760315,
0.052999645471572876,
-0.00002067590867227409,
0.03537270799279213,
0.01170507911592722,
0.016537632793188095,
0.0004948292626067996,
-0.012675550766289234,
0.018825173377990723,
0.060644589364528656,
0.012923120521008968,
0.0854015201330185,
0.03784840181469917,
0.01390349492430687,
0.01538891065865755,
-0.007857851684093475,
-0.0708642527461052,
-0.014943285845220089,
0.001706990646198392,
-0.04872164875268936,
0.007714260835200548,
-0.0173694659024477,
-0.0043993075378239155,
0.005461379885673523,
0.014052036218345165,
0.02111271396279335,
0.03705618157982826,
-0.001387626165524125,
0.0906301885843277,
0.08912497013807297,
-0.008219302631914616,
0.0384821817278862,
-0.003832373535260558,
-0.007293392904102802,
-0.07118114084005356,
0.002708408748731017,
-0.049236591905355453,
-0.026915740221738815,
-0.06694275140762329,
-0.0085758026689291,
0.015250272117555141,
0.0402250699698925,
-0.009684912860393524,
-0.043136484920978546,
-0.02622254565358162,
0.009056086651980877,
0.010160245932638645,
-0.06650703400373459,
0.03503601625561714,
-0.006184282246977091,
0.033411961048841476,
0.01322020310908556,
0.0024051363579928875,
-0.0064863171428442,
0.002156329108402133,
-0.010348399169743061,
0.062149811536073685,
-0.07842996716499329,
-0.014230286702513695,
0.021845519542694092,
-0.043057262897491455,
0.02103349193930626,
-0.029728127643465996,
-0.0028445718344300985,
0.05533670261502266,
-0.0791429728269577,
0.016092007979750633,
0.07332014292478561,
0.020696798339486122,
-0.04808787256479263,
0.007129997480660677,
0.021449409425258636,
-0.035273682326078415,
0.028658628463745117,
-0.0380464568734169,
-0.0010069883428514004,
-0.021706881001591682,
0.029629100114107132,
-0.014982896856963634,
-0.031233349815011024,
0.022736769169569016,
0.0021550911478698254,
-0.02269715815782547,
-0.10243429243564606,
0.024321213364601135,
-0.026935545727610588,
0.004589935764670372,
0.02816348895430565,
-0.04436442628502846,
0.054940592497587204,
0.015190855599939823,
-0.000576527148950845,
0.02895571105182171,
-0.020340297371149063,
0.011318870820105076,
-0.022815991193056107,
0.04012604057788849,
0.01592366024851799,
0.02659885212779045,
-0.020637381821870804,
0.002985686296597123,
0.002330865478143096,
-0.060842644423246384,
-0.06096147745847702,
0.009595788083970547,
-0.03004501573741436,
-0.0363035686314106,
0.03388729318976402,
0.028262516483664513,
-0.06646741926670074,
-0.06175369769334793,
-0.032599933445453644,
-0.0026341378688812256,
-0.04733525961637497,
0.03176809847354889,
0.022875407710671425,
-0.020201658830046654,
-0.0261631291359663,
0.07419158518314362,
-0.01556716114282608,
-0.011823912151157856,
-0.0003165793023072183,
0.05315808951854706,
-0.03349118307232857,
-0.02507382445037365,
0.018330035731196404,
-0.04610731452703476,
-0.020795825868844986,
0.03297623619437218,
0.025549156591296196,
0.00487959198653698,
-0.016824813559651375,
-0.036719486117362976,
-0.0007903651567175984,
0.007961830124258995,
-0.004134408198297024,
0.08825352042913437,
0.04523587226867676,
-0.013705438934266567,
0.015240369364619255,
-0.028519989922642708,
0.01641879975795746,
-0.04357220605015755,
-0.013428161852061749,
-0.028876489028334618,
-0.05672309175133705,
0.04792942479252815,
-0.05692114681005478,
-0.0024298932403326035,
0.04689953848719597,
0.031391795724630356,
-0.026460211724042892,
-0.004362171981483698,
0.023588407784700394,
-0.06939864158630371,
0.1038602963089943,
0.05169248208403587,
-0.014547174796462059,
0.04325531795620918,
-0.025747213512659073,
0.054504867643117905,
0.03602629154920578,
0.02327151969075203,
0.025311490520834923,
0.016755493357777596,
-0.018557798117399216,
-0.038442570716142654,
-0.022083185613155365,
-0.014151063747704029,
0.053514592349529266,
-0.02059777081012726,
-0.043691039085388184,
0.03824451193213463,
-0.054861366748809814,
-0.01517105009406805,
-0.052841201424598694,
-0.027688156813383102,
-0.014705619774758816,
0.007912316359579563,
-0.052128203213214874,
0.024539073929190636,
-0.03133237734436989,
-0.002866853028535843,
0.032322656363248825,
-0.007758823689073324,
0.013784661889076233,
-0.012269536964595318,
-0.045790426433086395,
0.022934824228286743,
0.025767019018530846,
-0.006184282246977091,
-0.06203097850084305,
0.03749190270900726,
0.008343087509274483,
-0.017983438447117805,
-0.005164296831935644,
-0.06282319873571396,
0.004545373376458883,
-0.017844798043370247,
0.05093986913561821,
0.02162765897810459,
0.0747857466340065,
-0.02479654550552368,
0.00958588533103466,
0.013933203183114529,
0.01707238331437111
] |
21,186 | tfields.core | equal |
Test, whether the instance has the same content as other.
Args:
other (iterable)
**kwargs: see Tensors.equal
| def equal(self, other, **kwargs): # pylint: disable=arguments-differ
"""
Test, whether the instance has the same content as other.
Args:
other (iterable)
**kwargs: see Tensors.equal
"""
if not issubclass(type(other), Tensors):
return super(TensorFields, self).equal(other, **kwargs)
with other.tmp_transform(self.coord_sys):
mask = super(TensorFields, self).equal(other, **kwargs)
if issubclass(type(other), TensorFields):
if len(self.fields) != len(other.fields):
mask &= False
else:
for i, field in enumerate(self.fields):
mask &= field.equal(other.fields[i], **kwargs)
return mask
| (self, other, **kwargs) | [
0.04102176055312157,
-0.062032006680965424,
-0.015461764298379421,
0.07497845590114594,
-0.052673570811748505,
-0.033087436109781265,
-0.0308680422604084,
0.015637466683983803,
0.000853656732942909,
0.04649626091122627,
0.01930871047079563,
-0.02274876832962036,
0.05115698277950287,
0.027631429955363274,
0.01867988146841526,
-0.03502940386533737,
-0.04952942952513695,
0.018800098448991776,
0.036767926067113876,
-0.0049566421657800674,
-0.023137161508202553,
0.008572401478886604,
0.02345157414674759,
0.053043466061353683,
0.04616335406899452,
0.043648041784763336,
0.011651807464659214,
-0.0010339823784306645,
0.00854928232729435,
0.07967617362737656,
-0.060700368136167526,
-0.019123760983347893,
0.045608505606651306,
0.06358557939529419,
0.03223666921257973,
-0.07701290398836136,
-0.018263746052980423,
0.03364228457212448,
-0.041539620608091354,
-0.029166508466005325,
-0.011161692440509796,
-0.06887512654066086,
0.01925322599709034,
-0.017829114571213722,
-0.014167118817567825,
-0.012077190913259983,
0.005261808633804321,
-0.005844398867338896,
-0.0407998226583004,
0.039394207298755646,
-0.004556688945740461,
-0.016025859862565994,
0.01068082358688116,
0.06110725924372673,
-0.0033915082458406687,
0.03371626138687134,
0.03682341054081917,
0.02631828933954239,
-0.043167173862457275,
0.024857189506292343,
-0.07290702313184738,
-0.013196134939789772,
-0.009478652849793434,
-0.02317415177822113,
-0.03763718903064728,
-0.061514146625995636,
-0.0634746104478836,
0.014407552778720856,
0.006214297376573086,
0.06654477119445801,
-0.09269660711288452,
-0.007624536287039518,
0.044794727116823196,
0.02049238607287407,
-0.05148989334702492,
0.03928323835134506,
-0.0028620909433811903,
0.08204352110624313,
0.023728998377919197,
-0.09994661808013916,
-0.018189767375588417,
-0.010967494919896126,
0.015803920105099678,
-0.012863226234912872,
-0.07290702313184738,
0.019863557070493698,
-0.03861742094159126,
0.07201927155256271,
0.06521313637495041,
-0.06898610293865204,
-0.0317373052239418,
0.03898731991648674,
0.012058696709573269,
-0.016636192798614502,
-0.014916163869202137,
0.04557151347398758,
-0.06225394457578659,
-0.027742398902773857,
-0.05718633159995079,
0.03969012573361397,
0.03902430832386017,
0.011087711900472641,
-0.00220436486415565,
0.032514091581106186,
0.027261530980467796,
0.0009582687052898109,
-0.05178581178188324,
-0.04017099365592003,
-0.019086770713329315,
-0.012604297138750553,
-0.03976410627365112,
0.10009457916021347,
-0.01118018664419651,
0.045460544526576996,
-0.010042748413980007,
-0.03430810198187828,
0.005691815633326769,
-0.017930837348103523,
-0.033124424517154694,
-0.04239038750529289,
0.054966941475868225,
0.08381903916597366,
0.025763440877199173,
0.018605902791023254,
0.048604682087898254,
0.024450302124023438,
0.05670546367764473,
0.02365501970052719,
-0.03895032778382301,
-0.05522587150335312,
0.0037475358694791794,
-0.009885542094707489,
0.01027393527328968,
0.10394152253866196,
0.05722332373261452,
0.02169455587863922,
0.05108300596475601,
0.0043763634748756886,
-0.028537681326270103,
0.01351979561150074,
0.025264078751206398,
0.04046691209077835,
0.06991084665060043,
0.01504562795162201,
-0.04527559503912926,
0.014971648342907429,
-0.04623733088374138,
-0.008031425066292286,
0.03358679637312889,
-0.007522813975811005,
-0.02942543849349022,
-0.0052987984381616116,
0.030609114095568657,
0.008091533556580544,
-0.08063790947198868,
0.0008796652546152472,
0.005039869341999292,
-0.06488022208213806,
0.04091079160571098,
0.04427687078714371,
-0.021324656903743744,
-0.0016310218488797545,
0.007698515895754099,
0.02924048900604248,
-0.0036226948723196983,
0.03780364245176315,
-0.04031895473599434,
-0.06939298659563065,
-0.010893515311181545,
-0.0009022059384733438,
0.03612060472369194,
-0.042131457477808,
0.024690736085176468,
0.006778392940759659,
-0.029166508466005325,
0.022767262533307076,
-0.012927957810461521,
-0.022619303315877914,
-0.026207320392131805,
-0.008720360696315765,
-0.003791461233049631,
-0.03147837519645691,
0.0007825668435543776,
-0.0015316116623580456,
0.05681643262505531,
0.027261530980467796,
-0.005511490162461996,
-0.021287668496370316,
0.02848219685256481,
0.0018044118769466877,
-0.014065396040678024,
-0.002450578613206744,
-0.037859126925468445,
-0.04161359742283821,
0.0012183537473902106,
0.00029707484645769,
0.002418212592601776,
-0.03817354142665863,
0.0445357970893383,
0.09210476279258728,
-0.05130494385957718,
-0.057445261627435684,
0.007948197424411774,
-0.005178580991923809,
-0.04834575578570366,
0.00283666024915874,
0.037341270595788956,
0.0065472060814499855,
0.006727532017976046,
-0.03158934414386749,
0.016220055520534515,
-0.014083891175687313,
-0.013223877176642418,
0.018994295969605446,
0.05015825852751732,
0.02025195211172104,
-0.05078708752989769,
-0.038913339376449585,
-0.027169056236743927,
0.021195193752646446,
0.13175790011882782,
-0.01567445509135723,
-0.06188404560089111,
-0.016405005007982254,
-0.0029799961484968662,
0.009894789196550846,
0.005747300572693348,
0.0061218226328492165,
-0.035140372812747955,
-0.06254986673593521,
0.01421335618942976,
0.04634830355644226,
-0.004850296303629875,
0.01628478802740574,
-0.006181931123137474,
0.05696439370512962,
0.018097292631864548,
-0.03325388953089714,
-0.01634027250111103,
0.00007311278022825718,
-0.05910980701446533,
-0.026207320392131805,
0.0037960850168019533,
0.00010280581773258746,
0.01997452788054943,
-0.0659899190068245,
-0.040244974195957184,
0.049381472170352936,
-0.000904517830349505,
0.01110620703548193,
-0.049270499497652054,
-0.0187353678047657,
-0.009746829979121685,
-0.011522343382239342,
0.027501964941620827,
-0.03009125590324402,
-0.0053820256143808365,
-0.028223266825079918,
0.061181239783763885,
-0.013630765490233898,
-0.0073332409374415874,
-0.016090592369437218,
-0.03806257247924805,
-0.008137770928442478,
-0.018994295969605446,
-0.007009579800069332,
0.009543385356664658,
0.06968890875577927,
0.004140553064644337,
-0.020677335560321808,
-0.062032006680965424,
0.03983808681368828,
-0.000259507040027529,
0.026151835918426514,
-0.0013258554972708225,
-0.02790885418653488,
0.03887634724378586,
-0.025023644790053368,
0.004739326424896717,
-0.020769810304045677,
-0.00509997783228755,
0.0006571480771526694,
-0.015461764298379421,
-0.04708809778094292,
0.011938478797674179,
-0.02975834719836712,
-0.006644304841756821,
-0.021176697686314583,
-0.04705110937356949,
-0.08381903916597366,
0.009913284331560135,
0.0094324154779315,
0.050047289580106735,
-0.02507912926375866,
-0.04608937352895737,
0.015480258502066135,
-0.03403067588806152,
0.02030743658542633,
0.005867517553269863,
-0.003840010380372405,
-0.04420289024710655,
0.010061243548989296,
0.02112121321260929,
-0.011956973932683468,
0.052821528166532516,
-0.024431806057691574,
0.0010149094741791487,
0.05707536265254021,
0.05322841554880142,
0.0015212082071229815,
0.036083612591028214,
0.04597840458154678,
-0.000556581886485219,
0.018041806295514107,
0.054966941475868225,
0.048123814165592194,
0.018023312091827393,
0.0427972748875618,
-0.010745556093752384,
0.06277180463075638,
0.029295973479747772,
0.02250833250582218,
-0.04209446907043457,
0.03281001001596451,
-0.020769810304045677,
-0.08810985833406448,
0.05163785442709923,
-0.013750982470810413,
-0.009756077080965042,
0.07967617362737656,
0.01567445509135723,
0.004836425185203552,
0.062032006680965424,
0.0067414031364023685,
0.002448266837745905,
-0.012669028714299202,
0.02522708848118782,
0.03047964908182621,
0.008466055616736412,
0.013824962079524994,
-0.008946923539042473,
-0.02661420777440071,
-0.0000575076810491737,
-0.03869140148162842,
0.004489644896239042,
-0.0030216097366064787,
-0.016025859862565994,
0.030683094635605812,
0.047605957835912704,
0.05263657867908478,
-0.021842515096068382,
-0.031848274171352386,
0.039542168378829956,
-0.03171880915760994,
0.004635292571038008,
0.03256957605481148,
-0.019382689148187637,
0.01093975268304348,
-0.058406997472047806,
0.03438207879662514,
0.05126795545220375,
-0.031089982017874718,
0.04993632063269615,
-0.02866714634001255,
0.0023349851835519075,
0.009608117863535881,
-0.00936768390238285,
-0.04298222437500954,
-0.03854344040155411,
0.014684977009892464,
-0.061366189271211624,
0.0006976057775318623,
-0.007569051347672939,
-0.043204162269830704,
0.019179245457053185,
-0.025670966133475304,
-0.09077312797307968,
0.05296948924660683,
-0.03249559551477432,
-0.02236037328839302,
0.056779444217681885,
-0.00048375807818956673,
0.00747657660394907,
0.028741125017404556,
-0.015757683664560318,
0.031311921775341034,
-0.006912481039762497,
-0.01591488905251026,
0.01724652573466301,
0.024635249748826027,
-0.03887634724378586,
-0.018236003816127777,
-0.03883935883641243,
-0.007000332232564688,
-0.04042992368340492,
-0.005964615847915411,
-0.04767993837594986,
0.02565247192978859,
-0.052488621324300766,
-0.0815996453166008,
-0.02030743658542633,
-0.007051193155348301,
-0.038765378296375275,
0.012502574361860752,
-0.007962068542838097,
0.04753197729587555,
0.023137161508202553,
0.002116513904184103,
-0.013935931958258152,
0.048752643167972565,
0.014777451753616333,
0.023858463391661644,
0.05134193226695061,
0.02021496184170246,
-0.008711113594472408,
0.008988537825644016,
0.0022170799784362316,
-0.026262804865837097,
0.04571947455406189,
0.04046691209077835,
-0.00047508860006928444,
0.054005205631256104,
-0.024376321583986282,
-0.02900005504488945,
-0.00398796983063221,
-0.028741125017404556,
-0.025023644790053368,
0.05370928347110748,
0.03669394552707672,
-0.0063160196878015995,
-0.05141591280698776,
-0.05097203701734543,
0.028075307607650757,
0.021232182160019875,
0.010921257548034191,
0.001827530562877655,
0.013566032983362675,
-0.037674177438020706,
-0.00563633069396019,
0.020806798711419106,
0.030738579109311104,
-0.050232239067554474,
0.02483869530260563,
-0.05374627560377121,
-0.07046569138765335,
-0.006232792511582375,
-0.009418544359505177,
0.06443634629249573,
-0.0312009509652853,
0.03715632110834122,
0.04830876365303993,
0.07723484188318253,
-0.026059361174702644,
-0.03329087793827057,
-0.0027996704448014498,
-0.02378448285162449,
-0.018282242119312286,
-0.057445261627435684,
-0.0035094134509563446,
-0.02121368795633316,
0.0025592362508177757,
-0.0026054736226797104,
-0.04993632063269615,
-0.03367927297949791,
0.02193498983979225,
-0.042057476937770844,
-0.013593776151537895,
-0.009400049224495888,
0.04682917147874832,
0.05603964626789093,
0.046755190938711166,
-0.05470801144838333,
-0.010532864369452,
-0.0068801152519881725,
0.015369289554655552,
0.05197076126933098,
0.02269328199326992,
0.05781516060233116,
-0.07020676881074905,
-0.03582468628883362,
-0.04975137114524841,
0.013945179060101509,
0.015794672071933746,
-0.07634708285331726,
0.03702685609459877,
-0.026207320392131805,
-0.03023921512067318,
0.01462024450302124,
0.029832327738404274,
0.008073038421571255,
-0.004223780240863562,
-0.011503848247230053,
-0.03493692725896835,
0.04290824383497238,
0.0016506727552041411,
-0.046755190938711166,
0.0005117894615978003,
0.02169455587863922,
-0.009876294061541557,
0.03998604416847229,
-0.001110273995436728,
0.033087436109781265,
0.0015373913338407874,
0.03186677023768425,
0.016220055520534515,
-0.038913339376449585,
0.01982656866312027,
-0.03114546649158001,
0.009196605533361435,
0.002857467159628868,
-0.007120549213141203,
-0.035528767853975296,
0.017375988885760307,
-0.01964161917567253,
0.0619950145483017,
0.0006513684056699276,
-0.032939475029706955,
-0.007444210350513458,
-0.012030953541398048,
-0.030220720916986465,
0.003650437342002988,
0.042834263294935226,
-0.019660113379359245,
-0.05115698277950287,
-0.04272329434752464,
0.03630555421113968,
-0.04975137114524841,
-0.023562544956803322,
0.047421008348464966,
-0.05703837424516678,
-0.001790540642105043,
-0.057297300547361374,
-0.0024783210828900337,
-0.015544991008937359,
-0.046459272503852844,
0.06321568042039871,
-0.007656902074813843,
0.00021904936875216663,
0.02178703062236309,
0.032606568187475204,
0.002242510672658682,
0.006750650703907013,
-0.0004265393945388496,
-0.04668121039867401,
-0.02809380367398262,
0.05015825852751732,
-0.004919652361422777,
-0.0003797240788117051,
0.036194585263729095,
0.030942022800445557,
0.017033834010362625,
-0.011846004985272884,
0.04031895473599434,
-0.04046691209077835,
-0.03390121087431908,
0.0427972748875618,
-0.061181239783763885,
-0.003569521941244602,
0.025837421417236328,
0.03009125590324402,
0.04664422199130058,
-0.012225151062011719,
0.09898488223552704,
0.031219447031617165,
0.0029846196994185448,
-0.038765378296375275,
0.018420953303575516,
0.004739326424896717,
0.0027626806404441595,
0.042501356452703476,
-0.004434159956872463,
0.04116972163319588,
-0.050084277987480164,
-0.004771692678332329,
0.06525012105703354,
-0.03096051700413227,
-0.0197340939193964,
0.012595049105584621,
-0.03177429363131523,
-0.08122974634170532,
-0.033993687480688095,
0.03976410627365112,
0.0586659274995327,
-0.025023644790053368,
0.05345035716891289,
-0.024709230288863182,
0.020769810304045677,
0.02894457057118416,
0.00567332049831748,
0.029074033722281456,
-0.01447228528559208,
0.07871443778276443,
-0.026910128071904182,
-0.026151835918426514,
0.0047485739924013615,
-0.022156929597258568,
-0.018994295969605446,
0.0060385954566299915,
-0.00009876005060505122,
-0.02761293575167656,
0.005058364011347294,
-0.005909130908548832,
-0.05148989334702492,
-0.06628584116697311,
-0.025726452469825745,
-0.052821528166532516,
-0.026780663058161736,
0.01662694476544857,
0.04668121039867401,
0.030609114095568657,
0.06795038282871246,
0.04483171924948692,
0.044350847601890564,
-0.0910690501332283,
0.023728998377919197,
-0.02679915726184845,
-0.047421008348464966,
0.07634708285331726,
-0.00018711670418269932,
0.007365607190877199,
-0.0005276835290715098,
0.007527437526732683,
-0.03047964908182621,
-0.017903095111250877,
-0.07109452039003372,
-0.035806190222501755,
0.020991748198866844,
-0.02335909940302372,
0.01943817362189293,
0.01335334125906229,
-0.0002788689162116498,
-0.019549144431948662,
0.009326069615781307,
-0.008951547555625439,
-0.014037653803825378,
-0.08056392520666122,
-0.048900604248046875,
-0.01734824664890766,
-0.026022370904684067,
0.0663968101143837,
-0.012743009254336357,
0.004790187813341618,
-0.026540229097008705,
0.04568248614668846,
-0.041391659528017044,
-0.03502940386533737,
-0.009081011638045311,
-0.048900604248046875,
0.03430810198187828,
-0.007393349427729845,
-0.053043466061353683,
0.08500271290540695,
0.015239824540913105,
0.0021153579000383615,
-0.023303614929318428,
0.0045405058190226555,
-0.0008675279677845538,
0.005331164225935936,
0.03723030164837837,
-0.015480258502066135,
0.04438783973455429,
0.0038099561352282763,
0.03724879398941994,
-0.03887634724378586,
0.021805526688694954,
0.0020540934056043625,
0.05211872234940529,
-0.0005421327077783644,
0.005354282911866903,
0.03391970694065094,
-0.05903582647442818,
0.012363862246274948,
-0.008350462652742863,
-0.026873137801885605,
0.029591891914606094,
-0.02550451271235943,
0.04542355611920357,
-0.010579101741313934,
-0.009279832243919373,
-0.002063340973109007,
0.0005392428720369935,
-0.013787972740828991,
-0.04242737591266632,
0.050713106989860535,
0.008965418674051762,
0.040392935276031494,
-0.026780663058161736,
0.053820256143808365,
0.03846945986151695,
-0.04264931380748749,
0.02078830450773239,
-0.0654720589518547,
0.05707536265254021,
0.007226895075291395,
0.010449636727571487,
-0.004466526210308075,
-0.012077190913259983,
0.023044686764478683,
0.0002342209918424487,
0.03329087793827057,
-0.03066459856927395,
-0.019697103649377823,
-0.016922863200306892,
0.03208870813250542,
0.021287668496370316,
-0.00045428177691064775,
-0.04849371314048767,
0.03371626138687134,
0.03650899603962898,
-0.036601472645998,
-0.011217176914215088,
0.03669394552707672,
-0.010458884760737419,
-0.07871443778276443,
-0.01462024450302124,
0.0076337833888828754,
0.028260257095098495,
-0.0026840772479772568,
0.006935599725693464,
0.009275209158658981,
-0.017551692202687263,
-0.002908328315243125,
0.03358679637312889,
0.024690736085176468,
-0.01949365995824337,
0.05126795545220375,
0.012382357381284237,
-0.02742798626422882,
-0.0178661048412323,
-0.024246856570243835,
0.050047289580106735,
0.08877567946910858,
0.013029680587351322,
0.014426047913730145,
-0.032366134226322174,
0.016183067113161087,
-0.03678642213344574,
-0.04287125542759895,
-0.030683094635605812,
0.06950395554304123,
0.05504092201590538,
-0.008248739875853062,
0.06709961593151093,
0.02570795640349388,
-0.015655960887670517,
0.013482806272804737,
-0.019327204674482346,
0.033327870070934296,
-0.0317373052239418,
-0.03347582742571831,
0.02489417977631092,
0.02679915726184845,
-0.03144138678908348,
-0.027354005724191666,
0.06525012105703354,
0.03493692725896835,
0.0063160196878015995,
-0.06717359274625778,
-0.019789578393101692,
-0.05444908142089844,
-0.019845062866806984,
0.017745887860655785,
0.0060293483547866344,
0.06269782036542892,
-0.043832991272211075,
0.04553452506661415,
0.002230951329693198,
0.05256259813904762
] |
21,196 | tfields.planes_3d | plot |
forward to Mesh3D plotting
| def plot(self, **kwargs): # pragma: no cover
"""
forward to Mesh3D plotting
"""
artists = []
centers = np.array(self)
norms = np.array(self.fields[0])
for i in range(len(self)):
artists.append(rna.plotting.plot_plane(centers[i], norms[i], **kwargs))
return artists
| (self, **kwargs) | [
-0.02313876338303089,
0.018048236146569252,
-0.03047197125852108,
0.019151777029037476,
-0.03816116228699684,
0.054251499474048615,
-0.024811873212456703,
-0.0202553179115057,
-0.022266609594225883,
0.08871045708656311,
0.0024050965439528227,
-0.0016219383105635643,
-0.03202049061655998,
-0.008258759044110775,
-0.015004598535597324,
-0.014212540350854397,
-0.042860109359025955,
0.0495525524020195,
-0.030970344319939613,
-0.001843314035795629,
-0.03242986649274826,
-0.033551208674907684,
0.007751485798507929,
0.02116306871175766,
0.05898604914546013,
-0.006554499734193087,
-0.007898327894508839,
-0.010011965408921242,
-0.0006936066783964634,
0.07258452475070953,
-0.05798930302262306,
-0.01515589002519846,
0.00787607952952385,
0.058772459626197815,
0.034174174070358276,
-0.03378259390592575,
0.020451107993721962,
-0.016108138486742973,
-0.053361549973487854,
0.07155217975378036,
0.0570637509226799,
-0.043465279042720795,
0.062083084136247635,
0.012486033141613007,
-0.01801263727247715,
-0.01843981444835663,
0.04303810000419617,
0.020504504442214966,
-0.03346221148967743,
-0.06293743848800659,
-0.021857231855392456,
-0.025310248136520386,
0.04666910693049431,
-0.025488238781690598,
0.060587961226701736,
0.034013982862234116,
0.019934935495257378,
0.08871045708656311,
0.015485172159969807,
-0.01984594017267227,
-0.021358858793973923,
-0.03883752599358559,
0.005028231535106897,
-0.027517329901456833,
-0.0202553179115057,
-0.02342354878783226,
0.02463388442993164,
0.019578954204916954,
-0.00400923565030098,
-0.0010251139756292105,
-0.008218711242079735,
0.024366898462176323,
0.014168042689561844,
-0.03687962889671326,
0.05880805850028992,
0.020362112671136856,
0.03392498567700386,
0.033996183425188065,
-0.022462399676442146,
0.010999811813235283,
-0.03769838437438011,
-0.015298282727599144,
-0.03210948407649994,
0.04627752676606178,
-0.015876751393079758,
-0.031575512140989304,
-0.02192842774093151,
-0.03403178229928017,
-0.014657516963779926,
-0.028549674898386,
-0.011569381691515446,
-0.02641378901898861,
-0.003788972506299615,
0.00886392593383789,
-0.062367867678403854,
-0.013260290957987309,
0.01829742267727852,
-0.09127352386713028,
0.019863737747073174,
0.0012615076266229153,
0.002832273719832301,
0.00013829027011524886,
0.019934935495257378,
0.04755906015634537,
0.0024050965439528227,
-0.035064127296209335,
-0.06500212848186493,
-0.022462399676442146,
-0.026449386030435562,
0.08970720320940018,
0.005348614417016506,
0.10088501125574112,
0.0352599173784256,
0.016998091712594032,
-0.01777235046029091,
-0.05133245512843132,
-0.0027588526718318462,
-0.010474740527570248,
-0.010118759237229824,
-0.03784077614545822,
-0.020771490409970284,
0.060730352997779846,
0.002683206694200635,
0.006278614513576031,
-0.01327809039503336,
0.015645364299416542,
-0.006888231728225946,
-0.0176299586892128,
-0.046562310308218,
-0.09063275903463364,
0.013936655595898628,
0.037484798580408096,
-0.04040383920073509,
-0.0494813546538353,
0.017398569732904434,
0.004529858008027077,
0.05044250562787056,
-0.06485973298549652,
-0.041044607758522034,
0.03794757276773453,
0.007475600577890873,
0.045387573540210724,
0.008547993376851082,
0.041222598403692245,
-0.11028290539979935,
0.021501250565052032,
0.027392735704779625,
-0.033391017466783524,
0.004460886586457491,
-0.05147485062479973,
0.037876375019550323,
0.0056734466925263405,
0.044034846127033234,
0.021999623626470566,
-0.03257225826382637,
-0.04560116305947304,
-0.01050143875181675,
-0.023601539433002472,
0.038054365664720535,
0.054109107702970505,
-0.05514145269989967,
-0.028781061992049217,
-0.0028745464514940977,
0.042112547904253006,
-0.011097706854343414,
0.005010432098060846,
0.057419732213020325,
-0.041792165488004684,
-0.04382125660777092,
0.0344945564866066,
-0.00428067147731781,
0.0003290042805019766,
-0.09504692256450653,
0.03808996453881264,
-0.00899741891771555,
0.022907376289367676,
-0.0090152183547616,
0.01507579442113638,
0.027517329901456833,
0.01523598562926054,
0.0017910292372107506,
-0.037769582122564316,
0.012147851288318634,
-0.010964213870465755,
0.021412255242466927,
-0.016428522765636444,
0.011195601895451546,
-0.009744979441165924,
-0.00960258673876524,
-0.028781061992049217,
0.03780518099665642,
0.04606393724679947,
-0.02580862119793892,
-0.0018711249576881528,
0.013901056721806526,
-0.03433436527848244,
0.022124217823147774,
-0.05724174156785011,
0.021661441773176193,
-0.03631005808711052,
0.0006557836895808578,
-0.030596565455198288,
-0.03259005770087242,
-0.01261952519416809,
0.018582206219434738,
0.041827764362096786,
0.03207388520240784,
-0.007124069146811962,
0.0071374187245965,
0.047381069511175156,
0.07044863700866699,
-0.03134412690997124,
0.03632785752415657,
-0.010038663633167744,
-0.024811873212456703,
0.01306450180709362,
-0.029386229813098907,
-0.0008727096137590706,
0.0277665164321661,
0.006443255580961704,
-0.03392498567700386,
-0.008005122654139996,
-0.02235560491681099,
0.04132939130067825,
-0.047345470637083054,
-0.006986126769334078,
0.08650337904691696,
0.05389551818370819,
-0.037449199706315994,
-0.06347140669822693,
0.030810153111815453,
0.0255416352301836,
-0.06475293636322021,
0.010723927058279514,
0.01261952519416809,
0.004429738502949476,
0.023192159831523895,
0.008423400111496449,
-0.027873311191797256,
0.01373196579515934,
0.010296749882400036,
-0.0032082784455269575,
0.003873517969623208,
0.013812062330543995,
0.011836367659270763,
0.06738720089197159,
0.008734882809221745,
0.03168230876326561,
-0.011275697499513626,
-0.0002502991119399667,
-0.02461608499288559,
0.057277340441942215,
-0.027552926912903786,
0.03107713907957077,
-0.009073065593838692,
-0.10017304867506027,
0.011017611250281334,
-0.03136192262172699,
0.08842567354440689,
-0.012227946892380714,
-0.03346221148967743,
-0.022302208468317986,
0.00817866250872612,
0.007057322654873133,
0.11661937087774277,
0.006932729389518499,
-0.012290243059396744,
0.007827132008969784,
0.013829860836267471,
0.03887312114238739,
0.02356594055891037,
0.037164412438869476,
-0.015556368976831436,
-0.007787083741277456,
0.032358672469854355,
0.04549437016248703,
-0.014150244183838367,
-0.05435829609632492,
-0.0017532063648104668,
0.04424843564629555,
0.04880499094724655,
-0.045138388872146606,
-0.09134472161531448,
-0.019472159445285797,
0.015618665143847466,
-0.0049392362125217915,
0.04111580178141594,
0.03333761915564537,
0.010964213870465755,
-0.025488238781690598,
0.027107952162623405,
0.03830355405807495,
0.005522154737263918,
-0.09319581836462021,
-0.021857231855392456,
-0.030578766018152237,
-0.031575512140989304,
0.02235560491681099,
-0.03554470092058182,
-0.0004338518192525953,
0.0041293795220553875,
-0.06845514476299286,
0.07689189165830612,
-0.023779530078172684,
-0.01073282677680254,
0.028264889493584633,
-0.009736079722642899,
0.03695082664489746,
0.055034659802913666,
-0.06439696252346039,
-0.003143757116049528,
0.06863313168287277,
-0.07340327650308609,
0.01066162995994091,
-0.008739332668483257,
0.05264958739280701,
-0.01583225466310978,
0.00044497623457573354,
-0.014381631277501583,
0.04713188111782074,
-0.006073925644159317,
-0.008890625089406967,
-0.05204441770911217,
0.0135183772072196,
0.061620306223630905,
-0.00023208290804177523,
0.0013493903679773211,
-0.007862729951739311,
0.03433436527848244,
0.04741666465997696,
0.017896942794322968,
0.0058336383663117886,
-0.0510476715862751,
0.04325168952345848,
-0.05720614269375801,
-0.027125749737024307,
0.017656655982136726,
-0.008944022469222546,
0.05133245512843132,
0.011524884030222893,
-0.014621919021010399,
-0.032643456012010574,
-0.03855273872613907,
0.0510832704603672,
-0.04325168952345848,
0.05439389497041702,
0.03271465003490448,
-0.0135183772072196,
0.008187562227249146,
0.054999060928821564,
-0.05435829609632492,
0.021964026615023613,
0.018350819125771523,
0.04293130710721016,
-0.02027311734855175,
0.06016078591346741,
0.005913733970373869,
0.031895894557237625,
-0.05542623996734619,
0.03915790840983391,
0.008939572609961033,
-0.03691522777080536,
-0.030525369569659233,
0.0157521590590477,
-0.03440556302666664,
-0.03965628147125244,
0.04891178756952286,
-0.0054420591332018375,
0.08835447579622269,
-0.010359046049416065,
-0.04310929775238037,
-0.012076654471457005,
-0.026502784341573715,
-0.006416556891053915,
-0.0013571775052696466,
0.011587181128561497,
0.03575829043984413,
-0.002494091633707285,
0.028247090056538582,
-0.04157857969403267,
-0.02733933925628662,
-0.05229360610246658,
0.04278891533613205,
-0.03673723712563515,
-0.008396700955927372,
0.013055602088570595,
-0.013607372529804707,
0.05175963416695595,
0.015138091519474983,
-0.002643158659338951,
0.04097341001033783,
-0.05314796045422554,
0.05752652511000633,
-0.034316565841436386,
-0.0064566051587462425,
-0.009059716016054153,
-0.017131583765149117,
-0.006202968303114176,
-0.04819982498884201,
-0.010252252221107483,
-0.04834221675992012,
-0.05418030545115471,
-0.017763450741767883,
0.046455517411231995,
-0.017229478806257248,
-0.019294168800115585,
0.03196709230542183,
-0.001062380732037127,
0.041649773716926575,
-0.015333880670368671,
0.047381069511175156,
0.029991397634148598,
0.030276183038949966,
-0.04997972771525383,
0.02208861894905567,
0.06361380219459534,
-0.030988143756985664,
-0.005597800947725773,
0.016223832964897156,
0.06090834364295006,
0.033711399883031845,
0.0023316754959523678,
-0.002060239901766181,
0.051688436418771744,
0.06663963943719864,
0.002436244860291481,
-0.05692135915160179,
-0.011720674112439156,
0.03091694787144661,
0.0038223457522690296,
-0.029386229813098907,
-0.051546044647693634,
-0.009691582061350346,
-0.035633694380521774,
0.0116405775770545,
0.022462399676442146,
-0.032963838428258896,
0.019258571788668633,
-0.022907376289367676,
0.04371446371078491,
0.05115446820855141,
-0.01934756524860859,
-0.049944132566452026,
-0.06866873055696487,
-0.031112737953662872,
0.05190202593803406,
0.026200199499726295,
-0.041970156133174896,
-0.018511010333895683,
0.0050682793371379375,
0.02719694748520851,
0.07279811054468155,
-0.007911677472293377,
-0.04634872451424599,
0.03312402963638306,
-0.016553115099668503,
0.021376658231019974,
-0.04848460853099823,
-0.027819912880659103,
0.005272968206554651,
0.008672586642205715,
0.019543355330824852,
-0.04385685548186302,
-0.031290728598833084,
0.0022304432932287455,
-0.0435720719397068,
0.019151777029037476,
-0.0028745464514940977,
-0.048413414508104324,
-0.051439251750707626,
0.008387802168726921,
-0.03127292916178703,
-0.0012926559429615736,
-0.020646896213293076,
0.010305649600923061,
0.06094394251704216,
0.027713119983673096,
-0.00036043074214830995,
-0.04232613742351532,
-0.03470814600586891,
-0.07340327650308609,
-0.036701638251543045,
0.048733796924352646,
0.013625171966850758,
0.008694835007190704,
0.0989627093076706,
-0.004703398793935776,
0.02746393159031868,
0.005566652398556471,
-0.02386852540075779,
0.028870057314634323,
-0.012886511161923409,
-0.04143618419766426,
0.021999623626470566,
0.032821446657180786,
0.05941322445869446,
0.05115446820855141,
0.022889576852321625,
-0.05069169029593468,
-0.004859140142798424,
0.02853187546133995,
-0.04919657111167908,
0.027873311191797256,
-0.06347140669822693,
-0.01698029227554798,
-0.011240099556744099,
0.010198854841291904,
0.022925175726413727,
0.0016219383105635643,
0.055461835116147995,
0.012868712656199932,
-0.045565564185380936,
0.04004786163568497,
-0.01863560453057289,
0.028051301836967468,
0.04755906015634537,
-0.08223160356283188,
0.028158094733953476,
-0.07044863700866699,
0.05122566223144531,
0.030827952548861504,
-0.0076268925331532955,
-0.036701638251543045,
-0.024224504828453064,
-0.02474067732691765,
0.07724787294864655,
-0.029493024572730064,
-0.02221321314573288,
0.02493646740913391,
0.016392923891544342,
-0.010946415364742279,
0.011248999275267124,
-0.020059527829289436,
0.029777808114886284,
0.027570726349949837,
0.037876375019550323,
-0.012263544835150242,
0.020789289847016335,
0.029475225135684013,
-0.03225187584757805,
0.018706800416111946,
-0.02566622756421566,
-0.03075675666332245,
-0.10181055963039398,
0.0479862354695797,
-0.05670776963233948,
0.0169001966714859,
-0.03486833721399307,
0.04905417934060097,
0.013856559991836548,
0.029991397634148598,
-0.03351560980081558,
0.01920517347753048,
0.022266609594225883,
0.008944022469222546,
0.10537037253379822,
-0.021091872826218605,
-0.06226107478141785,
-0.03801876679062843,
0.0038134462665766478,
0.018706800416111946,
0.008503495715558529,
0.037627190351486206,
0.042112547904253006,
-0.0449959971010685,
-0.021056273952126503,
0.031878095120191574,
0.023174362257122993,
-0.02463388442993164,
-0.029546421021223068,
0.005054929759353399,
0.03136192262172699,
-0.027570726349949837,
0.02778431586921215,
0.01995273306965828,
-0.01267292257398367,
0.05528384447097778,
-0.06076595187187195,
0.00645215529948473,
-0.060125187039375305,
-0.0078004333190619946,
-0.04325168952345848,
0.025434840470552444,
-0.031593311578035355,
-0.003606532234698534,
0.05282757803797722,
-0.007751485798507929,
0.034174174070358276,
0.05375312641263008,
-0.02849627658724785,
-0.03883752599358559,
0.01698029227554798,
-0.005117226392030716,
-0.008792730048298836,
-0.018938187509775162,
0.004242848139256239,
-0.015342780388891697,
-0.024705080315470695,
0.009255505166947842,
0.01583225466310978,
-0.023637136444449425,
0.05603140592575073,
-0.00975387915968895,
0.027997903525829315,
-0.011578281410038471,
-0.084011510014534,
0.012112252414226532,
0.02340574935078621,
-0.06126432493329048,
-0.037769582122564316,
0.0026364841032773256,
-0.009789477102458477,
0.03883752599358559,
-0.07219294458627701,
0.017131583765149117,
-0.037164412438869476,
-0.020807087421417236,
0.02673417143523693,
0.0960436686873436,
0.0764647126197815,
0.0195255558937788,
-0.019009383395314217,
-0.034886136651039124,
0.0352599173784256,
-0.004047058522701263,
-0.011676176451146603,
0.07016385346651077,
-0.054999060928821564,
0.04414164274930954,
-0.0056333988904953,
0.00388241745531559,
-0.023797327652573586,
-0.055177051573991776,
-0.04460441693663597,
-0.031112737953662872,
-0.03221627697348595,
-0.03513532131910324,
0.008672586642205715,
-0.00817866250872612,
-0.03531331196427345,
-0.010866319760680199,
-0.025114458054304123,
-0.030881348997354507,
-0.009175409562885761,
0.05229360610246658,
0.030970344319939613,
-0.004233948886394501,
-0.03136192262172699,
0.0766071081161499,
-0.010857420042157173,
-0.005864786449819803,
0.0047078486531972885,
-0.040759820491075516,
0.050976477563381195,
0.01366966962814331,
0.001002308912575245,
-0.01269072201102972,
0.004992633126676083,
0.00989627093076706,
-0.05165284126996994,
-0.0005175629630684853,
-0.012147851288318634,
0.03720001131296158,
-0.049018580466508865,
0.06663963943719864,
-0.037627190351486206,
-0.017781250178813934,
-0.012121152132749557,
-0.047060683369636536,
0.02251579612493515,
-0.05030011385679245,
-0.015939047560095787,
-0.014087947085499763,
0.0465267151594162,
0.007253112271428108,
0.013642971403896809,
0.014799908734858036,
-0.03228747472167015,
0.006398757919669151,
-0.02116306871175766,
0.011364692822098732,
-0.03152211382985115,
-0.033266421407461166,
-0.0108930179849267,
-0.011587181128561497,
-0.00017451410531066358,
0.0027699770871549845,
0.010492539033293724,
0.009949668310582638,
0.009166509844362736,
-0.03915790840983391,
0.028567474335432053,
0.05617379769682884,
-0.01253942959010601,
0.03559809923171997,
0.0150223970413208,
0.005504355765879154,
-0.01750536449253559,
0.022907376289367676,
0.006590097676962614,
0.013126798905432224,
-0.023832926526665688,
-0.059662412852048874,
0.05873686075210571,
-0.02522125281393528,
-0.007115169893950224,
0.0068303849548101425,
0.007760385517030954,
-0.05450068786740303,
-0.03501072898507118,
-0.0390155166387558,
0.029599817469716072,
0.053041163831949234,
-0.010020864196121693,
0.011177802458405495,
-0.0033128480426967144,
0.015351680107414722,
0.03381819278001785,
0.04221934452652931,
-0.011934262700378895,
0.009202108718454838,
0.007702538277953863,
-0.006145121529698372,
0.075111985206604,
0.01938316412270069,
-0.007942825555801392,
-0.08329954743385315,
0.017078187316656113,
-0.028158094733953476,
-0.01968574896454811,
0.004578805528581142,
0.007729236967861652,
-0.014025650918483734,
0.004685599822551012,
-0.03695082664489746,
0.03531331196427345,
0.027517329901456833,
-0.024099912494421005,
-0.056102603673934937,
0.03983427211642265,
-0.021554648876190186,
-0.02956422045826912,
-0.032803647220134735,
-0.04471120983362198,
0.056494180113077164,
0.0030592114198952913,
-0.013634071685373783,
0.042397335171699524,
-0.006403207778930664,
-0.032821446657180786,
0.06336461752653122,
0.06546489894390106,
-0.01140029076486826,
0.004712298046797514,
0.02114526927471161,
-0.033711399883031845,
0.05040690675377846,
0.0034863885957747698,
0.033996183425188065,
-0.06489533185958862,
-0.09205668419599533,
-0.0292616356164217,
-0.0014461727114394307,
0.027802113443613052,
0.010225553996860981,
0.0225335955619812,
0.018777996301651,
-0.008481246419250965
] |
21,199 | tfields.planes_3d | symbolic |
Returns:
list: list with sympy.Plane objects
| def symbolic(self):
"""
Returns:
list: list with sympy.Plane objects
"""
return [
sympy.Plane(point, normal_vector=vector)
for point, vector in zip(self, self.fields[0])
]
| (self) | [
0.057185884565114975,
0.02790839597582817,
0.002911512739956379,
-0.020992731675505638,
-0.005704546347260475,
-0.009987344034016132,
-0.0056869941763579845,
-0.047180987894535065,
0.009179932065308094,
0.10896561294794083,
-0.017122415825724602,
-0.014120946638286114,
-0.016560737043619156,
0.02638133242726326,
-0.022151192650198936,
0.001475502853281796,
-0.009109721519052982,
-0.008745508268475533,
-0.06304839998483658,
0.017964933067560196,
-0.000490920094307512,
0.01281328871846199,
0.022888395935297012,
0.013901541009545326,
0.02625846676528454,
0.018640702590346336,
0.0069025009870529175,
-0.010347169823944569,
-0.030435949563980103,
-0.030348187312483788,
-0.016113149002194405,
0.04240671917796135,
-0.036719728261232376,
-0.006884948816150427,
0.05230630189180374,
0.0031769934576004744,
0.023081472143530846,
0.024257486686110497,
-0.038474973291158676,
0.06683973222970963,
0.0573263019323349,
-0.03319168463349342,
0.02627601847052574,
0.019799163565039635,
-0.012901050969958305,
-0.032682664692401886,
0.05866029113531113,
-0.053254134953022,
0.002545105293393135,
-0.03463098406791687,
0.021571962162852287,
-0.02650419995188713,
0.0643823891878128,
-0.02276552841067314,
0.027013221755623817,
0.014314023777842522,
0.03210343047976494,
0.07484365254640579,
0.05251693353056908,
-0.01848272979259491,
-0.03791329264640808,
-0.024117067456245422,
-0.023379864171147346,
-0.039352595806121826,
0.024731403216719627,
-0.027452033013105392,
-0.006503182929009199,
-0.01983426883816719,
0.01313800923526287,
0.023239444941282272,
-0.05371049791574478,
0.025257976725697517,
-0.006292553618550301,
-0.013962974771857262,
0.032156091183423996,
0.002514388645067811,
0.06009959056973457,
-0.04360028728842735,
0.01105804368853569,
-0.10025959461927414,
-0.05364028736948967,
-0.014823044650256634,
-0.06561105698347092,
0.054026443511247635,
-0.025486158207058907,
0.013015141710639,
0.06620784103870392,
-0.023625599220395088,
-0.03633357211947441,
0.0005671635735780001,
-0.025556368753314018,
-0.03231406211853027,
-0.027750425040721893,
0.043319448828697205,
-0.06473343819379807,
-0.012892275117337704,
-0.010812309570610523,
-0.09745120257139206,
-0.03322678804397583,
0.006775246001780033,
0.036368679255247116,
0.03485916554927826,
-0.068419449031353,
0.07793287932872772,
0.0022401316091418266,
0.041107840836048126,
-0.022783080115914345,
-0.06041553616523743,
-0.015138988383114338,
0.018008815124630928,
-0.036719728261232376,
0.11598659306764603,
0.026363780722022057,
0.009601190686225891,
-0.04784797877073288,
-0.01948321983218193,
-0.0028281386476010084,
0.01354171521961689,
-0.028821123763918877,
-0.022484689950942993,
0.008679687045514584,
0.015569023787975311,
0.011689932085573673,
0.03498203307390213,
0.020202871412038803,
0.02725895494222641,
0.034613434225320816,
-0.020975178107619286,
-0.04802350327372551,
-0.006665543187409639,
0.01855294033885002,
0.01597272977232933,
-0.06501428037881851,
0.059292178601026535,
-0.00968017615377903,
-0.03399909660220146,
0.08670910447835922,
-0.05988896265625954,
-0.015639234334230423,
0.014787939377129078,
0.000028642720280913636,
0.03826434165239334,
-0.017297940328717232,
0.03924727812409401,
-0.11163358390331268,
0.026995668187737465,
0.032156091183423996,
0.027715319767594337,
-0.007336924318224192,
-0.005006836727261543,
-0.00841201189905405,
0.0012034398969262838,
0.04809371381998062,
-0.0172540582716465,
-0.02643399126827717,
-0.019764060154557228,
-0.025731893256306648,
-0.02322189137339592,
0.04844476282596588,
0.052446722984313965,
-0.08046043664216995,
0.027399376034736633,
-0.10257652401924133,
-0.0006637020269408822,
0.0172540582716465,
0.008837658911943436,
0.03006734885275364,
-0.05529021844267845,
-0.0036311631556600332,
0.024590983986854553,
0.03231406211853027,
-0.03650909662246704,
-0.06582169234752655,
0.04433748871088028,
-0.0168240237981081,
-0.02713608928024769,
0.015305737033486366,
0.03766755759716034,
0.037948399782180786,
-0.035771895200014114,
0.026591962203383446,
-0.020395947620272636,
-0.06073147803544998,
-0.024485668167471886,
0.030207768082618713,
-0.0028061980847269297,
0.01813168078660965,
0.004717221017926931,
0.023730913177132607,
-0.033209238201379776,
-0.012822065502405167,
0.027294060215353966,
0.00633204635232687,
-0.014779163524508476,
-0.02680259197950363,
-0.05357008054852486,
-0.01348028238862753,
0.02374846488237381,
-0.04079189524054527,
0.004260857589542866,
-0.04370560124516487,
0.004486845340579748,
-0.03580699861049652,
0.013076575472950935,
0.013453952968120575,
0.07049064338207245,
-0.0014974434161558747,
-0.04008979722857475,
0.006134581286460161,
0.002814974170178175,
0.0637504979968071,
0.01120723970234394,
0.0362633615732193,
-0.02948811650276184,
0.005349109414964914,
-0.004686504136770964,
-0.042792875319719315,
-0.0011507825693115592,
0.054553017020225525,
0.014928359538316727,
-0.004967343527823687,
-0.02790839597582817,
-0.07063106447458267,
-0.010759652592241764,
-0.01913217082619667,
-0.0245734304189682,
0.01491958275437355,
0.017447136342525482,
-0.08909624069929123,
-0.0538158118724823,
-0.021133150905370712,
-0.06357497721910477,
-0.06290798634290695,
-0.0784243494272232,
0.033033713698387146,
0.027118535712361336,
0.003337159752845764,
-0.017570003867149353,
-0.018570492044091225,
-0.019413011148571968,
0.004932238720357418,
-0.02627601847052574,
0.004309126641601324,
0.015639234334230423,
-0.027943501248955727,
0.06136336922645569,
-0.002687718952074647,
0.02861049398779869,
-0.02761000394821167,
-0.012699197977781296,
-0.02871580980718136,
-0.025538815185427666,
0.009943462908267975,
0.024836717173457146,
0.021343780681490898,
-0.09330882877111435,
-0.02153685688972473,
-0.037948399782180786,
0.06996406614780426,
-0.014436890371143818,
-0.025486158207058907,
-0.043038610368967056,
0.011101924814283848,
0.020676786080002785,
0.10229568183422089,
0.001980135915800929,
-0.02211608737707138,
0.03440280258655548,
0.04054616019129753,
0.009355456568300724,
0.09106211364269257,
-0.02374846488237381,
-0.055957213044166565,
0.017087310552597046,
0.01825454831123352,
0.052622247487306595,
0.03710588067770004,
0.002393715549260378,
-0.026521753519773483,
-0.0017673124093562365,
0.0005194428376853466,
-0.029400354251265526,
-0.02878601849079132,
0.013532939366996288,
-0.02948811650276184,
0.016920562833547592,
0.030699236318469048,
-0.004559249151498079,
0.02211608737707138,
-0.040335532277822495,
0.06578658521175385,
0.1082635149359703,
0.030804550275206566,
-0.03240182250738144,
0.06445259600877762,
0.030874760821461678,
-0.023485178127884865,
0.003532430622726679,
0.015051226131618023,
0.01406828872859478,
0.016209688037633896,
-0.021923011168837547,
0.08993875980377197,
0.029277486726641655,
-0.05388602241873741,
-0.01383133139461279,
0.009171155281364918,
0.02989182434976101,
0.036649517714977264,
-0.030348187312483788,
0.02685524895787239,
0.05188504233956337,
-0.07308840751647949,
0.03749203309416771,
-0.005331556778401136,
-0.0029400354251265526,
-0.05750182643532753,
-0.011804022826254368,
0.036649517714977264,
0.0649089589715004,
0.014928359538316727,
0.0003743608540389687,
-0.00968017615377903,
0.0354032926261425,
0.018184339627623558,
0.0242750383913517,
-0.0298391655087471,
-0.07185973227024078,
0.05160420387983322,
0.012014652602374554,
-0.006450525484979153,
0.0004001410270575434,
0.008697239682078362,
0.0550093799829483,
-0.036895252764225006,
-0.004581189714372158,
0.037421826273202896,
0.021607067435979843,
-0.0080477986484766,
-0.03019021451473236,
0.037772875279188156,
-0.0017837678315117955,
-0.018043918535113335,
-0.027241403236985207,
-0.04177483171224594,
-0.0026613902300596237,
-0.030155111104249954,
0.01597272977232933,
0.04089720919728279,
0.05651888996362686,
-0.03199811652302742,
0.007600211072713137,
0.058941129595041275,
0.06076658517122269,
-0.006516347173601389,
0.03498203307390213,
-0.030804550275206566,
0.04833944886922836,
-0.0619952566921711,
0.022677766159176826,
0.06834924221038818,
0.042090777307748795,
-0.04300350323319435,
-0.014050737023353577,
-0.005625560414046049,
-0.08790267258882523,
0.024819165468215942,
-0.02171238139271736,
0.04100252315402031,
-0.011926890350878239,
-0.028417417779564857,
0.02211608737707138,
-0.005375437904149294,
-0.035368189215660095,
-0.05448280647397041,
0.05539553239941597,
0.04553105682134628,
-0.002411267952993512,
-0.0036509097553789616,
-0.04890112578868866,
0.04967343434691429,
-0.03889622911810875,
0.038931336253881454,
0.02883867546916008,
0.012672869488596916,
0.026047836989164352,
-0.023134129121899605,
0.012251610867679119,
0.04289818927645683,
0.022396927699446678,
-0.018096577376127243,
-0.05774756148457527,
0.0019417398143559694,
0.016358884051442146,
0.04072168469429016,
-0.03148909658193588,
-0.005897623486816883,
0.0017519539687782526,
-0.04342476278543472,
-0.006380315870046616,
0.015217974781990051,
-0.02743447944521904,
-0.011452973820269108,
0.007446627132594585,
-0.04746182635426521,
-0.08593679964542389,
0.05107763037085533,
0.044793855398893356,
-0.003503907937556505,
0.02369580790400505,
0.017912276089191437,
0.03456077352166176,
0.003492937656119466,
-0.07463301718235016,
0.0019428369123488665,
0.007420298643410206,
0.01883377879858017,
0.038755811750888824,
0.040862105786800385,
0.016315001994371414,
0.06641847640275955,
0.0018320369999855757,
-0.01602538675069809,
0.039633434265851974,
-0.002575822174549103,
0.013647030107676983,
-0.01454220525920391,
0.03833455219864845,
-0.007582658901810646,
0.01740325428545475,
-0.003223068779334426,
-0.013699688017368317,
0.02678504027426243,
-0.10215526074171066,
0.021800143644213676,
-0.029505670070648193,
0.0011606557527557015,
-0.016104374080896378,
-0.02339741587638855,
0.06427707523107529,
0.06561105698347092,
0.02452077344059944,
-0.02299370989203453,
-0.041739728301763535,
-0.02813657745718956,
0.05167441442608833,
-0.008657746016979218,
-0.009741609916090965,
0.0009977470617741346,
-0.004227946512401104,
0.017570003867149353,
0.013611925765872002,
0.05974854156374931,
-0.0503053218126297,
0.05230630189180374,
0.018851332366466522,
0.036473993211984634,
-0.06557595729827881,
-0.053148820996284485,
0.0070209801197052,
0.06919176131486893,
0.014410561881959438,
0.005669441539794207,
0.00560361985117197,
-0.0327528715133667,
0.0015884967288002372,
0.009566085413098335,
0.022660214453935623,
0.015533918514847755,
-0.021080493927001953,
0.03126091510057449,
0.005537798162549734,
-0.025872312486171722,
-0.05694014951586723,
0.022572452202439308,
0.048585183918476105,
0.009811819531023502,
-0.013006365858018398,
-0.06526000797748566,
-0.07877539843320847,
-0.08102211356163025,
-0.041213154792785645,
-0.02539839595556259,
-0.035420846194028854,
0.0002786451659630984,
0.0485500767827034,
0.01090884767472744,
0.021975668147206306,
-0.03124336153268814,
-0.028856229037046432,
-0.0080477986484766,
0.03889622911810875,
-0.039528120309114456,
0.03924727812409401,
0.010066330432891846,
0.039457909762859344,
0.005305228289216757,
-0.0010142024839296937,
0.003337159752845764,
0.030804550275206566,
0.0263286754488945,
-0.030857209116220474,
-0.03854518011212349,
-0.0014228455256670713,
0.0140419602394104,
0.01988692581653595,
0.026662172749638557,
-0.05978364869952202,
-0.024819165468215942,
0.01439300924539566,
0.009601190686225891,
-0.06487385928630829,
0.004585577640682459,
0.0007317177951335907,
-0.002242325572296977,
0.06701525300741196,
-0.019904479384422302,
-0.012295491993427277,
-0.030453501269221306,
0.03422727808356285,
0.008407623507082462,
-0.051990360021591187,
-0.020220423117280006,
0.00857437215745449,
-0.032436929643154144,
0.01772797480225563,
-0.10152337700128555,
-0.057887982577085495,
0.03991427272558212,
-0.018342310562729836,
0.024713849648833275,
-0.038650497794151306,
-0.05167441442608833,
0.022396927699446678,
-0.019518325105309486,
0.06989385932683945,
0.006108252797275782,
-0.0409674197435379,
-0.006867396179586649,
0.00440127681940794,
0.02176503837108612,
0.015437380410730839,
-0.018886437639594078,
-0.017236506566405296,
0.006231119856238365,
-0.024081962183117867,
-0.015358394011855125,
-0.053499870002269745,
0.00846466887742281,
-0.0034753852523863316,
-0.017991261556744576,
-0.011804022826254368,
0.005853742361068726,
-0.008333025500178337,
0.01632377877831459,
0.04728630185127258,
0.009030736051499844,
-0.012804512865841389,
-0.025205319747328758,
0.039457909762859344,
0.03064657934010029,
-0.017798185348510742,
0.06255693733692169,
0.00682790344581008,
-0.016946891322731972,
0.00430693244561553,
0.0819348394870758,
0.008596312254667282,
0.018763570114970207,
0.034244831651449203,
0.034490566700696945,
-0.034069307148456573,
0.01592007279396057,
0.020255528390407562,
0.030909866094589233,
-0.025907417759299278,
0.0046338471584022045,
-0.03350762650370598,
-0.026188256219029427,
-0.06705036014318466,
-0.020150212571024895,
-0.023730913177132607,
-0.03141888603568077,
-0.01612192578613758,
-0.023906437680125237,
0.047883085906505585,
-0.012971260584890842,
0.03071678802371025,
0.05430728197097778,
-0.0007980879745446146,
0.0016411541728302836,
0.0023498344235122204,
-0.011426645331084728,
0.01737692579627037,
-0.06940238922834396,
-0.039106860756874084,
-0.055079590529203415,
0.014226261526346207,
-0.05202546343207359,
0.03301616013050079,
0.01261143572628498,
0.0301200058311224,
0.042687561362981796,
0.019202381372451782,
0.009539756923913956,
-0.05416686087846756,
0.030681684613227844,
0.004541696514934301,
-0.03222629800438881,
-0.0010783786419779062,
-0.011812799610197544,
-0.017973709851503372,
0.008670910261571407,
-0.057887982577085495,
0.012550001963973045,
-0.0014667266514152288,
-0.026627067476511,
0.03403420001268387,
0.004932238720357418,
0.011268673464655876,
-0.03714098408818245,
0.010408603586256504,
-0.045144904404878616,
0.01108437217772007,
-0.019342800602316856,
0.018236996605992317,
0.07129805535078049,
-0.035017140209674835,
0.06392602622509003,
-0.005928340367972851,
0.03134867548942566,
0.030857209116220474,
-0.02409951388835907,
-0.008319861255586147,
-0.05258714035153389,
-0.04556616023182869,
-0.033033713698387146,
-0.0029970810282975435,
-0.005695770028978586,
0.04791818931698799,
-0.031910356134176254,
-0.012172624468803406,
0.004173095338046551,
0.01527063176035881,
0.009355456568300724,
0.006542676128447056,
-0.0007328148349188268,
-0.07365008443593979,
0.05283287540078163,
0.01456853374838829,
-0.05479875206947327,
0.02269531786441803,
-0.022660214453935623,
0.042160987854003906,
0.04044084623456001,
-0.029997138306498528,
-0.026293570175766945,
-0.001381158479489386,
0.0315944105386734,
-0.01617458276450634,
-0.011479302309453487,
-0.054553017020225525,
-0.016946891322731972,
0.0034424744080752134,
-0.019553430378437042,
-0.014235037378966808,
0.03763245418667793,
0.006876172497868538,
-0.052446722984313965,
0.04626825824379921,
-0.005379826296120882,
0.00861386489123106,
0.021080493927001953,
-0.018868884071707726,
0.009548532776534557,
0.04370560124516487,
0.006775246001780033,
0.021343780681490898,
0.024590983986854553,
0.004774266388267279,
-0.019237486645579338,
-0.032559797167778015,
0.032384272664785385,
-0.04451301321387291,
-0.006687483750283718,
-0.010900071822106838,
-0.028224339708685875,
0.03561392053961754,
-0.01261143572628498,
-0.0602751150727272,
-0.038931336253881454,
-0.015332065522670746,
0.07891581952571869,
-0.010759652592241764,
-0.03317413106560707,
0.04763735085725784,
0.027171192690730095,
-0.028505180031061172,
0.06332924216985703,
0.05795819312334061,
-0.009846924804151058,
-0.020167766138911247,
0.005866906605660915,
0.061398472636938095,
0.03833455219864845,
0.00841201189905405,
0.039528120309114456,
-0.03808881714940071,
0.006511959247291088,
-0.046127840876579285,
0.0033854288049042225,
0.04746182635426521,
0.0020064644049853086,
-0.052446722984313965,
0.05574658140540123,
0.01471772976219654,
-0.007578270509839058,
0.0354032926261425,
0.005783532280474901,
0.029049305245280266,
0.019149724394083023,
-0.020922521129250526,
0.06648868322372437,
0.026539305225014687,
-0.010768428444862366,
0.0392121747136116,
-0.049813855439424515,
0.03271776810288429,
-0.029874270781874657,
-0.035666581243276596,
-0.01281328871846199,
0.07066616415977478,
-0.025468606501817703,
0.033963993191719055,
-0.05553595349192619,
0.004673339892178774,
-0.030049795284867287,
0.0007662741700187325,
-0.043143924325704575,
0.05353497341275215,
0.009364232420921326,
-0.0006011714576743543,
0.01865825429558754,
-0.007060473319143057,
-0.009776715189218521,
0.04030042514204979,
-0.005230630282312632,
0.014120946638286114,
-0.03643888607621193,
-0.06094210967421532,
-0.007951260544359684,
0.020799653604626656,
-0.003328383434563875,
-0.014120946638286114,
-0.011295001953840256,
-0.005932728294283152,
0.012585107237100601,
-0.013954197987914085,
-0.04921707138419151,
-0.09702994674444199,
-0.10152337700128555,
-0.0007969909347593784,
-0.019202381372451782,
0.06985875219106674,
-0.018991751596331596,
0.01085619069635868,
0.021273570135235786,
0.001564362202771008
] |
21,204 | tfields.points_3d | Points3D |
Points3D is a general class for 3D Point operations and storage.
Points are stored in np.arrays of shape (len, 3).
Thus the three coordinates of the Points stay close.
Args:
points3DInstance -> copy constructor
[points3DInstance1, points3DInstance2, ...] -> coord_sys are correctly treated
list of coordinates (see examples)
Kwargs:
coord_sys (str):
Use tfields.bases.CARTESIAN -> x, y, z
Use tfields.bases.CYLINDER -> r, phi, z
Use tfields.bases.SPHERICAL -> r, phi, theta
Examples:
Initializing with 3 vectors
>>> import tfields
>>> import numpy as np
>>> p1 = tfields.Points3D([[1., 2., 3.], [4., 5., 6.], [1, 2, -6]])
>>> assert p1.equal([[1., 2., 3.],
... [4., 5., 6.],
... [1., 2., -6.]])
Initializing with listof coordinates
>>> p2 = tfields.Points3D(np.array([[1., 2., 3., 4, 5,],
... [4., 5., 6., 7, 8],
... [1, 2, -6, -1, 0]]).T)
>>> assert p2.equal(
... [[ 1., 4., 1.],
... [ 2., 5., 2.],
... [ 3., 6., -6.],
... [ 4., 7., -1.],
... [ 5., 8., 0.]], atol=1e-8)
>>> p2.transform(tfields.bases.CYLINDER)
>>> assert p2.equal(
... [[ 4.12310563, 1.32581766, 1.],
... [ 5.38516481, 1.19028995, 2.],
... [ 6.70820393, 1.10714872, -6.],
... [ 8.06225775, 1.05165021, -1.],
... [ 9.43398113, 1.01219701, 0.]], atol=1e-8)
Copy constructor with one instance preserves coord_sys of instance
>>> assert tfields.Points3D(p2).coord_sys == p2.coord_sys
Unless you specify other:
>>> assert tfields.Points3D(p2,
... coord_sys=tfields.bases.CARTESIAN).equal(
... [[ 1., 4., 1.],
... [ 2., 5., 2.],
... [ 3., 6., -6.],
... [ 4., 7., -1.],
... [ 5., 8., 0.]], atol=1e-8)
Copy constructor with many instances chooses majority of coordinates
systems to avoid much transformation
>>> assert tfields.Points3D.merged(p1, p2, p1).equal(
... [[ 1., 2., 3.],
... [ 4., 5., 6.],
... [ 1., 2., -6.],
... [ 1., 4., 1.],
... [ 2., 5., 2.],
... [ 3., 6., -6.],
... [ 4., 7., -1.],
... [ 5., 8., 0.],
... [ 1., 2., 3.],
... [ 4., 5., 6.],
... [ 1., 2., -6.]], atol=1e-8)
>>> p1.transform(tfields.bases.CYLINDER)
unless specified other. Here it is specified
>>> assert tfields.Points3D.merged(
... p1, p2, coord_sys=tfields.bases.CYLINDER).equal(
... [[ 2.23606798, 1.10714872, 3. ],
... [ 6.40312424, 0.89605538, 6. ],
... [ 2.23606798, 1.10714872, -6. ],
... [ 4.12310563, 1.32581766, 1. ],
... [ 5.38516481, 1.19028995, 2. ],
... [ 6.70820393, 1.10714872, -6. ],
... [ 8.06225775, 1.05165021, -1. ],
... [ 9.43398113, 1.01219701, 0. ]], atol=1e-8)
Shape is always (..., 3)
>>> p = tfields.Points3D([[1., 2., 3.], [4., 5., 6.],
... [1, 2, -6], [-5, -5, -5], [1,0,-1], [0,1,-1]])
>>> p.shape
(6, 3)
Empty array will create an ndarray of the form (0, 3)
>>> tfields.Points3D([])
Points3D([], shape=(0, 3), dtype=float64)
Use it as np.ndarrays -> masking etc. is inherited
>>> mask = np.array([True, False, True, False, False, True])
>>> mp = p[mask].copy()
Copy constructor
>>> assert mp.equal(
... [[ 1., 2., 3.],
... [ 1., 2., -6.],
... [ 0., 1., -1.]])
>>> assert tfields.Points3D(mp).equal(
... [[ 1., 2., 3.],
... [ 1., 2., -6.],
... [ 0., 1., -1.]])
Coordinate system is implemented. Default is cartesian
>>> p_cart = p.copy()
>>> p.transform(tfields.bases.CYLINDER)
>>> assert p.equal(
... tfields.Points3D([[2.236, 1.107, 3.],
... [6.403, 0.896, 6.],
... [2.236, 1.107, -6.],
... [7.071, -2.356, -5.],
... [1. , 0. , -1.],
... [1. , 1.571, -1.]],
... coord_sys=tfields.bases.CYLINDER),
... atol=1e-3)
>>> p.transform(tfields.bases.CARTESIAN)
>>> assert p.equal(p_cart, atol=1e-15)
| class Points3D(tfields.Tensors):
# pylint: disable=R0904
"""
Points3D is a general class for 3D Point operations and storage.
Points are stored in np.arrays of shape (len, 3).
Thus the three coordinates of the Points stay close.
Args:
points3DInstance -> copy constructor
[points3DInstance1, points3DInstance2, ...] -> coord_sys are correctly treated
list of coordinates (see examples)
Kwargs:
coord_sys (str):
Use tfields.bases.CARTESIAN -> x, y, z
Use tfields.bases.CYLINDER -> r, phi, z
Use tfields.bases.SPHERICAL -> r, phi, theta
Examples:
Initializing with 3 vectors
>>> import tfields
>>> import numpy as np
>>> p1 = tfields.Points3D([[1., 2., 3.], [4., 5., 6.], [1, 2, -6]])
>>> assert p1.equal([[1., 2., 3.],
... [4., 5., 6.],
... [1., 2., -6.]])
Initializing with listof coordinates
>>> p2 = tfields.Points3D(np.array([[1., 2., 3., 4, 5,],
... [4., 5., 6., 7, 8],
... [1, 2, -6, -1, 0]]).T)
>>> assert p2.equal(
... [[ 1., 4., 1.],
... [ 2., 5., 2.],
... [ 3., 6., -6.],
... [ 4., 7., -1.],
... [ 5., 8., 0.]], atol=1e-8)
>>> p2.transform(tfields.bases.CYLINDER)
>>> assert p2.equal(
... [[ 4.12310563, 1.32581766, 1.],
... [ 5.38516481, 1.19028995, 2.],
... [ 6.70820393, 1.10714872, -6.],
... [ 8.06225775, 1.05165021, -1.],
... [ 9.43398113, 1.01219701, 0.]], atol=1e-8)
Copy constructor with one instance preserves coord_sys of instance
>>> assert tfields.Points3D(p2).coord_sys == p2.coord_sys
Unless you specify other:
>>> assert tfields.Points3D(p2,
... coord_sys=tfields.bases.CARTESIAN).equal(
... [[ 1., 4., 1.],
... [ 2., 5., 2.],
... [ 3., 6., -6.],
... [ 4., 7., -1.],
... [ 5., 8., 0.]], atol=1e-8)
Copy constructor with many instances chooses majority of coordinates
systems to avoid much transformation
>>> assert tfields.Points3D.merged(p1, p2, p1).equal(
... [[ 1., 2., 3.],
... [ 4., 5., 6.],
... [ 1., 2., -6.],
... [ 1., 4., 1.],
... [ 2., 5., 2.],
... [ 3., 6., -6.],
... [ 4., 7., -1.],
... [ 5., 8., 0.],
... [ 1., 2., 3.],
... [ 4., 5., 6.],
... [ 1., 2., -6.]], atol=1e-8)
>>> p1.transform(tfields.bases.CYLINDER)
unless specified other. Here it is specified
>>> assert tfields.Points3D.merged(
... p1, p2, coord_sys=tfields.bases.CYLINDER).equal(
... [[ 2.23606798, 1.10714872, 3. ],
... [ 6.40312424, 0.89605538, 6. ],
... [ 2.23606798, 1.10714872, -6. ],
... [ 4.12310563, 1.32581766, 1. ],
... [ 5.38516481, 1.19028995, 2. ],
... [ 6.70820393, 1.10714872, -6. ],
... [ 8.06225775, 1.05165021, -1. ],
... [ 9.43398113, 1.01219701, 0. ]], atol=1e-8)
Shape is always (..., 3)
>>> p = tfields.Points3D([[1., 2., 3.], [4., 5., 6.],
... [1, 2, -6], [-5, -5, -5], [1,0,-1], [0,1,-1]])
>>> p.shape
(6, 3)
Empty array will create an ndarray of the form (0, 3)
>>> tfields.Points3D([])
Points3D([], shape=(0, 3), dtype=float64)
Use it as np.ndarrays -> masking etc. is inherited
>>> mask = np.array([True, False, True, False, False, True])
>>> mp = p[mask].copy()
Copy constructor
>>> assert mp.equal(
... [[ 1., 2., 3.],
... [ 1., 2., -6.],
... [ 0., 1., -1.]])
>>> assert tfields.Points3D(mp).equal(
... [[ 1., 2., 3.],
... [ 1., 2., -6.],
... [ 0., 1., -1.]])
Coordinate system is implemented. Default is cartesian
>>> p_cart = p.copy()
>>> p.transform(tfields.bases.CYLINDER)
>>> assert p.equal(
... tfields.Points3D([[2.236, 1.107, 3.],
... [6.403, 0.896, 6.],
... [2.236, 1.107, -6.],
... [7.071, -2.356, -5.],
... [1. , 0. , -1.],
... [1. , 1.571, -1.]],
... coord_sys=tfields.bases.CYLINDER),
... atol=1e-3)
>>> p.transform(tfields.bases.CARTESIAN)
>>> assert p.equal(p_cart, atol=1e-15)
"""
def __new__(cls, tensors, **kwargs):
if not issubclass(type(tensors), Points3D):
kwargs["dim"] = 3
return super(Points3D, cls).__new__(cls, tensors, **kwargs)
def balls(self, radius, spacing=(5, 3)):
"""
Args:
radius (float): radius of spheres
spacing (tuple of int): n_phi, n_theta
Returns:
tfields.Mesh3D: Builds a sphere around each point with a resolution
defined by spacing and given radius
"""
sphere = tfields.Mesh3D.grid(
(radius, radius, 1),
(-np.pi, np.pi, spacing[0]),
(-np.pi / 2, np.pi / 2, spacing[1]),
coord_sys="spherical",
)
sphere.transform("cartesian")
balls = []
with self.tmp_transform("cartesian"):
for point in self:
ball = sphere.copy()
ball += point
balls.append(ball)
return tfields.Mesh3D.merged(*balls)
| (tensors, **kwargs) | [
-0.03801378607749939,
-0.04913977161049843,
-0.022694483399391174,
0.017205242067575455,
-0.044546086341142654,
-0.0030159219168126583,
-0.07931479066610336,
-0.028594626113772392,
0.0012333671329542994,
0.04340820387005806,
0.020302817225456238,
-0.009888009168207645,
-0.06405870616436005,
0.05664138123393059,
-0.022399475798010826,
0.009772113524377346,
0.0179954394698143,
0.031650058925151825,
0.01812187023460865,
-0.02872105874121189,
-0.007159192580729723,
-0.02726709470152855,
0.013422827236354351,
0.035211216658353806,
0.0358855202794075,
-0.01535091083496809,
0.008391900919377804,
0.008644764311611652,
-0.009761577472090721,
0.020271209999918938,
-0.048170462250709534,
0.0270563755184412,
-0.02872105874121189,
0.02869998663663864,
-0.020344961434602737,
-0.06397441774606705,
0.023073777556419373,
0.005436561070382595,
-0.013654619455337524,
0.06405870616436005,
0.029500719159841537,
-0.04669542610645294,
-0.01813240721821785,
-0.024717388674616814,
0.030238237231969833,
0.02530740387737751,
0.03917274251580238,
0.01182136032730341,
-0.06178293749690056,
-0.02383236773312092,
0.031860776245594025,
-0.02180946059525013,
0.05971788614988327,
-0.018574917688965797,
-0.04859190061688423,
0.026613863185048103,
0.05053051933646202,
0.07649115473031998,
-0.07906193286180496,
0.0179532952606678,
-0.004227558616548777,
0.035211216658353806,
0.01637290045619011,
-0.030343597754836082,
-0.028194259852170944,
-0.03070182166993618,
-0.031987208873033524,
0.00828654132783413,
0.026550648733973503,
0.02351628802716732,
-0.01645718701183796,
0.013306931592524052,
0.0364123173058033,
-0.0549134835600853,
0.07109673321247101,
0.050024792551994324,
0.051415540277957916,
0.04290247708559036,
0.006110863294452429,
-0.028404979035258293,
-0.053396303206682205,
-0.01437106542289257,
0.00009144894283963367,
0.019259756430983543,
0.029964303597807884,
0.027583172544836998,
-0.028510339558124542,
0.020787471905350685,
-0.0182272307574749,
-0.03837200626730919,
-0.0033636088483035564,
-0.0026590158231556416,
-0.02914249710738659,
-0.013317467644810677,
0.011147057637572289,
-0.0006476329872384667,
0.023895584046840668,
-0.07628042995929718,
-0.0271617341786623,
0.035295505076646805,
0.033736180514097214,
-0.0011029845336452127,
-0.062204375863075256,
-0.00813376996666193,
0.03736055642366409,
-0.006774629466235638,
-0.0536491684615612,
-0.01966012269258499,
0.0028499802574515343,
0.005030926316976547,
-0.02147231064736843,
0.08799643069505692,
0.007833494804799557,
0.02912142500281334,
-0.005436561070382595,
-0.07434181123971939,
-0.033167239278554916,
0.0545341894030571,
-0.05267985910177231,
-0.003916747402399778,
0.04100600257515907,
0.08066339790821075,
-0.007975730113685131,
0.05954930931329727,
-0.004459349904209375,
0.007870370522141457,
0.027562100440263748,
0.026065994054079056,
-0.0363280288875103,
-0.056809958070516586,
0.012569413520395756,
-0.0135281877592206,
-0.02334771305322647,
-0.03242972120642662,
0.007975730113685131,
-0.0028131043072789907,
0.02745674178004265,
-0.020355496555566788,
-0.06009718030691147,
0.015235014259815216,
0.047875452786684036,
0.01991298608481884,
0.05242699384689331,
0.03407333046197891,
-0.06646090745925903,
0.02164088562130928,
0.04117457568645477,
-0.051668405532836914,
-0.053354158997535706,
0.0037165640387684107,
0.026360999792814255,
0.002702476689592004,
0.03925703093409538,
0.011284025385975838,
-0.0271617341786623,
-0.051415540277957916,
0.00682204170152545,
-0.12272299826145172,
0.016994522884488106,
0.012337622232735157,
-0.046442560851573944,
-0.02364272065460682,
-0.014929471537470818,
0.08732213079929352,
-0.02562348172068596,
-0.010694011114537716,
0.033335812389850616,
-0.09330656379461288,
-0.04509395733475685,
0.014097129926085472,
0.02518097124993801,
0.006058183498680592,
0.013212108053267002,
0.03202935308218002,
-0.01974441111087799,
0.021156230941414833,
-0.05550349876284599,
-0.04728544130921364,
0.0035321845207363367,
-0.04125886410474777,
0.008449848741292953,
-0.028341762721538544,
0.03816128894686699,
0.026403144001960754,
-0.012169047258794308,
0.01191618386656046,
0.019080644473433495,
0.006906329188495874,
0.009793185628950596,
0.02551812306046486,
-0.0360540933907032,
0.006147739477455616,
0.0009574564173817635,
0.020260673016309738,
0.024148447439074516,
0.02899499423801899,
-0.012116366997361183,
-0.035590510815382004,
0.01346497144550085,
0.06797809153795242,
-0.09347514063119888,
-0.03072289191186428,
0.055250633507966995,
-0.03063860535621643,
-0.019080644473433495,
-0.01657308265566826,
0.00670614605769515,
-0.015940925106406212,
-0.011252417229115963,
0.031839706003665924,
0.06199365481734276,
-0.05238484963774681,
-0.01008819229900837,
0.008707980625331402,
0.006084523629397154,
-0.026044921949505806,
-0.026866726577281952,
-0.01781632751226425,
-0.012063687667250633,
0.04174352064728737,
0.04047920182347298,
-0.029395360499620438,
-0.03843522444367409,
0.051836978644132614,
-0.029669295996427536,
0.038898807018995285,
0.02355843223631382,
0.039235956966876984,
-0.030512172728776932,
-0.031228618696331978,
0.05107839033007622,
0.002129583153873682,
-0.01639397069811821,
-0.01827991008758545,
0.05942288041114807,
-0.07914621382951736,
0.007275088224560022,
-0.04884476214647293,
0.007491075899451971,
-0.015909316018223763,
0.0070801726542413235,
-0.05293272063136101,
0.049561209976673126,
0.016857555136084557,
-0.005794784519821405,
0.04271283000707626,
0.015508949756622314,
0.01835366152226925,
0.01005131658166647,
0.02895285002887249,
-0.010377932339906693,
0.032050423324108124,
-0.051457684487104416,
0.033694036304950714,
-0.015688061714172363,
-0.06620804220438004,
0.10038673877716064,
-0.015877708792686462,
0.0013137039495632052,
-0.013991770334541798,
-0.023158065974712372,
-0.07644900679588318,
0.05217413231730461,
0.03451584279537201,
0.0008033678168430924,
0.011768680065870285,
0.02372700721025467,
0.003353073028847575,
-0.028447123244404793,
0.025728842243552208,
0.06684020161628723,
0.06030790135264397,
0.00413273461163044,
-0.009766845963895321,
0.004577879793941975,
-0.004778062924742699,
0.0025036102160811424,
-0.001217563170939684,
0.04382964223623276,
-0.0271617341786623,
0.053691308945417404,
-0.001074669067747891,
-0.04119564965367317,
-0.0357380136847496,
0.014982151798903942,
-0.04205959662795067,
-0.01538251806050539,
-0.00910834688693285,
0.04876047745347023,
0.004203852731734514,
-0.022673411294817924,
0.008571012876927853,
0.029901087284088135,
-0.07059101015329361,
0.013180499896407127,
0.0179216880351305,
-0.08576280623674393,
0.017163097858428955,
0.024569885805249214,
-0.022083396092057228,
-0.012348158285021782,
-0.004696409218013287,
0.09811096638441086,
0.03841415047645569,
0.005520849023014307,
0.0135281877592206,
-0.01091526634991169,
-0.009587734006345272,
0.0364755317568779,
-0.006505962461233139,
0.044546086341142654,
-0.011294561438262463,
-0.0725717693567276,
-0.011336705647408962,
0.04728544130921364,
0.04345034807920456,
0.013306931592524052,
-0.021156230941414833,
0.027498885989189148,
-0.00801787432283163,
-0.020871760323643684,
-0.04825475066900253,
-0.017110418528318405,
0.0543234683573246,
-0.007801886647939682,
-0.04039491340517998,
0.0364123173058033,
-0.03757127374410629,
-0.002375861629843712,
0.04132207855582237,
-0.0182588379830122,
0.06650305539369583,
-0.0059844315983355045,
0.05584064871072769,
-0.0058000520803034306,
-0.03082825243473053,
0.03089146874845028,
-0.019481010735034943,
0.06296296417713165,
-0.00726982019841671,
0.0362437404692173,
0.016983985900878906,
-0.05613565444946289,
0.004875520709902048,
-0.007485807873308659,
-0.01655201055109501,
0.031650058925151825,
0.005009854212403297,
0.037149835377931595,
0.0269720871001482,
0.022188756614923477,
-0.02537061832845211,
0.05061480775475502,
0.033377956598997116,
-0.022462690249085426,
-0.006621858105063438,
0.00159751670435071,
-0.044588230550289154,
0.00907673966139555,
0.025855274870991707,
0.07851406186819077,
-0.060729339718818665,
0.014950543642044067,
0.0360119491815567,
0.021082479506731033,
0.013401756063103676,
0.016973450779914856,
-0.05086766928434372,
-0.03249293565750122,
-0.003595400368794799,
0.0005607112543657422,
-0.062499381601810455,
-0.008107430301606655,
0.0023376685567200184,
0.0048254746943712234,
-0.03963632509112358,
-0.014497497119009495,
0.03430512174963951,
-0.038709159940481186,
-0.022399475798010826,
0.01369676273316145,
-0.04867618903517723,
-0.0028394442051649094,
0.0035769622772932053,
-0.01989191398024559,
0.04762259125709534,
0.007754474878311157,
0.003197667421773076,
0.055082060396671295,
0.029395360499620438,
0.04345034807920456,
0.028004612773656845,
0.06991671025753021,
-0.050024792551994324,
-0.06831523776054382,
0.038898807018995285,
-0.05305915325880051,
0.03472656011581421,
0.0015329838497564197,
-0.029521791264414787,
-0.04212281480431557,
-0.062204375863075256,
0.05238484963774681,
0.01617271639406681,
-0.02530740387737751,
-0.01362301129847765,
0.03773985058069229,
-0.014476425014436245,
0.014613392762839794,
0.024822749197483063,
-0.01624646782875061,
0.047875452786684036,
0.049561209976673126,
-0.02012370526790619,
0.013991770334541798,
-0.006901061162352562,
-0.03234543278813362,
-0.00822859350591898,
0.033356886357069016,
0.08285488188266754,
0.03436833992600441,
0.012790669687092304,
-0.009714165702462196,
0.012506198137998581,
0.02202017977833748,
-0.020545143634080887,
-0.04711686447262764,
0.029479648917913437,
0.044251080602407455,
0.024380238726735115,
-0.00764384726062417,
-0.04492538049817085,
-0.038667015731334686,
-0.03127076476812363,
-0.0024008844047784805,
0.03483192250132561,
0.03299866244196892,
0.015371982008218765,
0.0054260254837572575,
0.059001438319683075,
0.0547027625143528,
0.02513882704079151,
-0.00640587043017149,
-0.03784520924091339,
-0.03127076476812363,
0.02332664094865322,
-0.017257921397686005,
-0.024106303229928017,
-0.06359512358903885,
0.007280356250703335,
0.06519658863544464,
0.07661758363246918,
0.01991298608481884,
-0.035169072449207306,
0.03101789951324463,
0.010730886831879616,
-0.013654619455337524,
-0.05676781386137009,
-0.062372952699661255,
-0.004828108940273523,
0.0045410036109387875,
0.004691141191869974,
0.0273935254663229,
-0.026002777740359306,
-0.03803485631942749,
-0.05765283480286598,
0.0029553400818258524,
-0.05554564297199249,
-0.015888245776295662,
-0.012432446703314781,
0.031207546591758728,
-0.02021852880716324,
-0.024422381073236465,
-0.01613057218492031,
-0.03215578570961952,
0.038814518600702286,
-0.003421556670218706,
-0.0032556152436882257,
-0.051541972905397415,
-0.025918489322066307,
-0.0537755973637104,
-0.06658733636140823,
0.027772821485996246,
-0.0024838552344590425,
-0.01974441111087799,
0.04673757031559944,
-0.014971615746617317,
0.05208984389901161,
0.06338440626859665,
-0.006300510838627815,
-0.04842332378029823,
-0.015456270426511765,
0.011136521585285664,
0.0019531056750565767,
-0.04859190061688423,
0.03196613863110542,
-0.008644764311611652,
-0.0016580985393375158,
-0.003289857180789113,
0.015245550312101841,
0.00811269786208868,
0.030238237231969833,
-0.0046068537048995495,
-0.03843522444367409,
0.04146958515048027,
-0.03824557736515999,
0.00814957357943058,
-0.004456716123968363,
0.02193589322268963,
0.014834647998213768,
-0.027498885989189148,
-0.03830879181623459,
0.02185160480439663,
-0.03196613863110542,
0.028552481904625893,
-0.008244398050010204,
-0.04378749802708626,
0.03809807449579239,
-0.054955627769231796,
-0.020903367549180984,
0.03417869284749031,
0.04947692155838013,
-0.01626753993332386,
-0.009408622048795223,
-0.031460411846637726,
-0.009434962645173073,
0.02532847598195076,
-0.05221627280116081,
0.0359487347304821,
-0.004925566725432873,
-0.03453691303730011,
-0.049940504133701324,
-0.03398904576897621,
0.04117457568645477,
0.00317396130412817,
0.07080172747373581,
-0.02174624428153038,
-0.00031854852568358183,
0.009930153377354145,
-0.03297759220004082,
0.017005058005452156,
0.005520849023014307,
0.05019336938858032,
-0.07665973156690598,
0.019670657813549042,
0.006126667372882366,
-0.012084758840501308,
-0.017626680433750153,
-0.015140190720558167,
0.04854975640773773,
0.03759234771132469,
-0.06662948429584503,
0.046484705060720444,
0.011431529186666012,
0.09684664756059647,
0.010651866905391216,
-0.005304861813783646,
-0.04281818866729736,
0.005620940588414669,
0.012348158285021782,
0.007749206852167845,
0.0006344630382955074,
0.01639397069811821,
0.00919263530522585,
-0.03784520924091339,
-0.02912142500281334,
-0.0364966057240963,
0.04146958515048027,
-0.011094378307461739,
-0.018827781081199646,
0.04492538049817085,
0.05069909617304802,
0.011199737899005413,
0.02564455382525921,
0.04123779386281967,
-0.029943231493234634,
-0.024380238726735115,
-0.006137203425168991,
-0.01973387412726879,
-0.05575636029243469,
0.005296959541738033,
-0.0018530139932408929,
-0.011515816673636436,
-0.04513610154390335,
0.047749023884534836,
0.022947344928979874,
-0.012316551059484482,
0.053396303206682205,
0.060560762882232666,
-0.01458178460597992,
-0.01358086708933115,
0.07408895343542099,
0.0017660922603681684,
0.027477813884615898,
-0.0007816373836249113,
-0.008597352541983128,
-0.0024324923288077116,
-0.011420993134379387,
0.02891070581972599,
-0.03453691303730011,
0.004045812878757715,
0.03820343315601349,
-0.031523626297712326,
0.013738906942307949,
-0.027604244649410248,
-0.08095840364694595,
-0.06435371190309525,
-0.009888009168207645,
0.017089346423745155,
-0.0183431264013052,
0.053564880043268204,
-0.0029922157991677523,
0.0007724183960817754,
-0.1091526672244072,
-0.005091508384793997,
-0.04399821534752846,
-0.0900193378329277,
0.05204769968986511,
0.0720660462975502,
-0.008760659955441952,
-0.04762259125709534,
-0.015846101567149162,
-0.0028552482835948467,
0.027941396459937096,
-0.0537755973637104,
-0.046316131949424744,
0.02366379275918007,
-0.04884476214647293,
-0.0029843139927834272,
-0.020439784973859787,
0.07585899531841278,
-0.04669542610645294,
0.03820343315601349,
-0.021124621853232384,
-0.03268258273601532,
-0.015182334929704666,
-0.01630968414247036,
0.007543755695223808,
0.03460013121366501,
0.04593683406710625,
0.022610194981098175,
-0.017047202214598656,
-0.009982832707464695,
-0.011484208516776562,
0.003168693510815501,
-0.08816500753164291,
-0.011652784422039986,
-0.020344961434602737,
0.044335369020700455,
-0.004143270663917065,
-0.02360057644546032,
0.011958327144384384,
-0.008312881924211979,
-0.0016923403600230813,
-0.02532847598195076,
0.02015531249344349,
-0.0090187918394804,
0.004314480349421501,
0.03428405150771141,
-0.02183053269982338,
-0.016889162361621857,
0.02920571342110634,
-0.022863058373332024,
0.0006999836186878383,
0.03266151249408722,
-0.028404979035258293,
0.036854829639196396,
0.003337268950417638,
-0.008333953097462654,
0.12213297933340073,
-0.06481729447841644,
-0.04829689487814903,
-0.017458105459809303,
0.03986811637878418,
0.029374288395047188,
-0.05221627280116081,
0.053269870579242706,
0.018806708976626396,
-0.0536070242524147,
-0.044588230550289154,
0.06313154101371765,
0.022230898961424828,
-0.023115921765565872,
0.035927664488554,
-0.004404035862535238,
0.037234123796224594,
-0.008860751986503601,
0.02326342463493347,
-0.00550504494458437,
-0.0030712357256561518,
-0.006237294990569353,
0.05967574194073677,
0.06169864907860756,
0.011431529186666012,
-0.004683239385485649,
-0.03417869284749031,
-0.007396251894533634,
0.013991770334541798,
-0.015877708792686462,
-0.002651113783940673,
-0.019186003133654594,
-0.057273540645837784,
-0.07050672173500061,
0.03219792991876602,
-0.0357380136847496,
0.05061480775475502,
-0.02191482111811638,
0.009535053744912148,
0.033251527696847916,
-0.035695869475603104,
-0.015277158468961716,
0.015719668939709663,
0.05950716510415077,
-0.03986811637878418,
0.012959244661033154,
0.012063687667250633,
0.03984704241156578,
0.013096212409436703,
0.03215578570961952,
0.007896710187196732,
-0.024759532883763313,
0.02170410193502903,
-0.013770515099167824,
0.017394889146089554,
0.0003618447808548808,
0.013138356618583202,
-0.01346497144550085,
-0.03790842369198799,
-0.025012396275997162,
0.00631104689091444,
-0.010730886831879616,
0.06953740864992142,
0.019523154944181442,
-0.023242352530360222,
0.0026181889697909355,
-0.011484208516776562,
0.04319748282432556,
-0.06532302498817444,
-0.06456443667411804,
0.041090287268161774,
-0.049561209976673126,
-0.05305915325880051,
-0.010156676173210144,
-0.038983095437288284,
0.01629914715886116,
0.0023719104938209057,
-0.01604628376662731,
0.008765928447246552,
-0.027857108041644096,
-0.04222817346453667,
0.033441174775362015,
0.06675591319799423,
-0.017489712685346603,
-0.05133125185966492,
0.07467896491289139,
-0.022125540301203728,
0.0029632418882101774,
-0.03108111582696438,
-0.003821923630312085,
-0.07670187205076218,
-0.09364371746778488,
-0.03394690155982971,
0.013454435393214226,
0.08395062386989594,
0.039067383855581284,
0.02336878515779972,
-0.006384798791259527,
0.03946774825453758
] |
21,208 | tfields.points_3d | __new__ | null | def __new__(cls, tensors, **kwargs):
if not issubclass(type(tensors), Points3D):
kwargs["dim"] = 3
return super(Points3D, cls).__new__(cls, tensors, **kwargs)
| (cls, tensors, **kwargs) | [
-0.054468587040901184,
-0.06585908681154251,
-0.020811613649129868,
0.018327703699469566,
-0.03539571166038513,
0.056065384298563004,
-0.05170080065727234,
0.022905193269252777,
0.02386327274143696,
0.056491199880838394,
0.03470376506447792,
0.0344376303255558,
-0.07707216590642929,
0.03307148069143295,
0.0032889624126255512,
-0.0007479451014660299,
0.020722901448607445,
0.014184897765517235,
0.0058593652211129665,
-0.029948851093649864,
-0.012100188061594963,
0.01231309399008751,
0.008746909908950329,
0.041161928325891495,
0.030818220227956772,
0.023632625117897987,
0.0038833264261484146,
0.00789528340101242,
0.001859605428762734,
-0.005384760908782482,
-0.1023370698094368,
0.07877541333436966,
0.024182632565498352,
0.11078236252069473,
0.011452596634626389,
-0.036247335374355316,
-0.011603405699133873,
-0.009465469047427177,
-0.020527737215161324,
0.03259244188666344,
-0.003264566883444786,
-0.018168024718761444,
-0.023082615807652473,
-0.02359713986515999,
0.05837187170982361,
0.04151677340269089,
0.07295597344636917,
-0.017378496006131172,
-0.07487212866544724,
-0.029256906360387802,
0.014859101735055447,
0.008405372500419617,
0.04889753460884094,
0.0008787938859313726,
-0.030179500579833984,
0.021077746525406837,
0.05776863917708397,
0.05585248023271561,
-0.11305336654186249,
0.03459731116890907,
-0.05560408905148506,
0.010707424022257328,
0.033231161534786224,
-0.06078481301665306,
-0.044781338423490524,
-0.040097396820783615,
-0.016979295760393143,
-0.0026169761549681425,
0.02272777259349823,
0.04208452254533768,
0.0002091640344588086,
-0.006067836191505194,
0.0007623606361448765,
0.0063605825416743755,
0.07998188585042953,
0.011221948079764843,
0.024200376123189926,
0.030285954475402832,
0.01536475494503975,
-0.004542006179690361,
-0.04329099506139755,
-0.03042789176106453,
-0.008423114195466042,
0.047832999378442764,
0.011700987815856934,
0.010219513438642025,
-0.05219758301973343,
-0.0407361164689064,
-0.032397277653217316,
-0.011239690706133842,
-0.04683943837881088,
0.01496555469930172,
-0.015293785370886326,
-0.027252035215497017,
0.054468587040901184,
0.010680810548365116,
0.029505295678973198,
-0.056065384298563004,
0.03255695849657059,
0.019197072833776474,
0.017476078122854233,
-0.012126801535487175,
-0.010006606578826904,
-0.03507634997367859,
-0.008063835091888905,
-0.03889092430472374,
-0.02601008117198944,
-0.0023730206303298473,
-0.04311357066035271,
0.03221985325217247,
0.015338141471147537,
0.09041430801153183,
0.014663937501609325,
0.07487212866544724,
-0.010441291145980358,
-0.061104174703359604,
-0.0020292652770876884,
0.03092467412352562,
0.010769521817564964,
0.03271663561463356,
-0.02421811781823635,
0.06624941527843475,
0.0008122606086544693,
0.06497197598218918,
0.0000016806586700113257,
0.03147468343377113,
0.022106794640421867,
-0.01944546215236187,
-0.013865537941455841,
-0.056455716490745544,
-0.015098621137440205,
-0.0038145752623677254,
-0.04875559359788895,
-0.013466337695717812,
-0.009811442345380783,
0.011062268167734146,
0.027482684701681137,
0.009052962996065617,
-0.025229424238204956,
0.044249072670936584,
0.033231161534786224,
0.06181386113166809,
0.05159435048699379,
0.05070723965764046,
-0.08409807831048965,
0.033923108130693436,
0.025406846776604652,
-0.03786187618970871,
-0.01458409707993269,
-0.014486514963209629,
-0.015426852740347385,
-0.005708556156605482,
0.041623227298259735,
0.043752290308475494,
-0.04336196184158325,
-0.013501822017133236,
-0.0012208858970552683,
-0.07834960520267487,
0.05265888199210167,
0.019800307229161263,
-0.025921370834112167,
-0.0065069557167589664,
-0.011603405699133873,
0.023135842755436897,
-0.013129236176609993,
-0.0047416058368980885,
0.041694194078445435,
-0.10027897357940674,
-0.050884660333395004,
0.020989036187529564,
0.0407361164689064,
-0.011674374341964722,
0.060500938445329666,
0.06827202439308167,
0.011124365963041782,
0.02478586882352829,
-0.008449727669358253,
-0.00504322350025177,
0.018593836575746536,
-0.006019045133143663,
0.07224628329277039,
-0.016331704333424568,
0.012996169738471508,
-0.005766218528151512,
0.02661331556737423,
-0.011239690706133842,
0.0007146784337237477,
0.04453295096755028,
-0.018789000809192657,
0.019693853333592415,
-0.012330836616456509,
0.04669749736785889,
0.013679244555532932,
0.015311527997255325,
0.026205245405435562,
0.008423114195466042,
-0.006533569190651178,
-0.017697855830192566,
0.0021057785488665104,
0.07171401381492615,
-0.0638364776968956,
-0.001230865833349526,
0.04747815430164337,
-0.03237953409552574,
0.025690721347928047,
-0.009332402609288692,
-0.010033220052719116,
-0.0029341180343180895,
-0.023916499689221382,
-0.0029806913807988167,
0.02554878406226635,
-0.042723242193460464,
0.04715879634022713,
0.011958249844610691,
-0.01765350066125393,
-0.011452596634626389,
-0.05532021448016167,
-0.009181594476103783,
-0.024076180532574654,
0.014459901489317417,
0.117595374584198,
-0.015222816728055477,
-0.043149057775735855,
0.06082030013203621,
-0.01506313681602478,
0.010113060474395752,
0.027323003858327866,
-0.030108531937003136,
-0.04801042377948761,
-0.007917461916804314,
-0.013280045241117477,
0.014876843430101871,
-0.03779090940952301,
0.02448425069451332,
0.07416243851184845,
-0.04751364141702652,
0.013812310993671417,
-0.012224383652210236,
0.025211680680513382,
0.0035173932556062937,
0.009296918287873268,
-0.02734074741601944,
0.007300919853150845,
0.02143258973956108,
0.009234820492565632,
0.035289257764816284,
-0.026364924386143684,
0.027500426396727562,
0.02269228734076023,
0.027979467064142227,
-0.01391876395791769,
0.014326835051178932,
-0.0512395054101944,
0.033763427287340164,
0.012951813638210297,
-0.008298919536173344,
0.026950418949127197,
-0.062062252312898636,
0.0023663672618567944,
-0.04428455978631973,
-0.039600614458322525,
0.023401975631713867,
0.061991285532712936,
0.09949831664562225,
0.026719769462943077,
0.007921896874904633,
0.031439196318387985,
-0.005792832002043724,
-0.03255695849657059,
0.01678413152694702,
0.051913708448410034,
0.09992413222789764,
0.03493441268801689,
-0.028227858245372772,
0.020084181800484657,
-0.01572846993803978,
-0.029292389750480652,
-0.011683246120810509,
-0.02585040032863617,
-0.013617146760225296,
0.02508748695254326,
-0.03665540739893913,
-0.038607049733400345,
-0.013404239900410175,
0.03917480260133743,
-0.0033621490001678467,
-0.0026103227864950895,
0.021982599049806595,
0.0052295164205133915,
-0.030232727527618408,
-0.013404239900410175,
0.04311357066035271,
0.00010582951654214412,
-0.04914592579007149,
-0.0015735123306512833,
0.002636936027556658,
-0.07522697746753693,
0.09140787273645401,
-0.01035257987678051,
0.008152545429766178,
-0.004255912732332945,
-0.06511391699314117,
0.04084257036447525,
0.051842741668224335,
0.026790738105773926,
-0.013750213198363781,
-0.008494083769619465,
-0.003415375482290983,
0.020989036187529564,
0.004182726144790649,
0.053971804678440094,
0.06624941527843475,
-0.09325306117534637,
0.00585492979735136,
0.0458458736538887,
0.048365265130996704,
0.047832999378442764,
-0.04055869206786156,
-0.0020847097039222717,
0.030764993280172348,
0.0020980164408683777,
-0.08480776846408844,
-0.04002642631530762,
0.01290745846927166,
-0.039600614458322525,
-0.0343666635453701,
0.022851968184113503,
-0.07380759716033936,
-0.02860044315457344,
0.01113323774188757,
-0.003779090940952301,
0.025868143886327744,
-0.007496084086596966,
0.004630716983228922,
-0.06692361831665039,
-0.05255242809653282,
0.027252035215497017,
0.030782734975218773,
0.056029900908470154,
0.012960685417056084,
0.016580095514655113,
-0.007988430559635162,
-0.02189388871192932,
0.031935978680849075,
-0.03456182777881622,
-0.021290652453899384,
0.01128404587507248,
-0.03917480260133743,
0.07785282284021378,
0.02638266794383526,
-0.010858233086764812,
-0.04435552656650543,
0.04400068148970604,
0.01778656616806984,
0.02909722551703453,
0.024732641875743866,
-0.005730734206736088,
0.02604556456208229,
-0.03138596937060356,
-0.04197807237505913,
0.032965026795864105,
-0.034756992012262344,
0.027234293520450592,
0.0331779345870018,
-0.008693682961165905,
0.024892320856451988,
0.05659765377640724,
-0.06294936686754227,
-0.016597839072346687,
0.04683943837881088,
-0.0008582794689573348,
-0.03592797741293907,
-0.04091353714466095,
0.03259244188666344,
0.0026014517061412334,
-0.04442649707198143,
-0.06241709738969803,
0.03362149000167847,
-0.005189596675336361,
0.013617146760225296,
0.022514864802360535,
-0.0306940246373415,
0.03408278524875641,
-0.0306940246373415,
-0.026364924386143684,
0.029682718217372894,
-0.0038367530796676874,
0.021113231778144836,
0.014087315648794174,
0.03761348873376846,
0.021485816687345505,
-0.026719769462943077,
0.01288971584290266,
-0.04070063307881355,
-0.0536169596016407,
-0.01250825822353363,
-0.03507634997367859,
0.03415375575423241,
0.004291397053748369,
-0.04407165199518204,
-0.07185595482587814,
-0.047265250235795975,
0.03530700132250786,
0.024271344766020775,
-0.012055831961333752,
-0.025903627276420593,
0.00585492979735136,
0.05365244671702385,
0.016713162884116173,
-0.011319530196487904,
0.056384745985269547,
0.035519905388355255,
0.02329552359879017,
0.004843623377382755,
0.03115532174706459,
-0.022514864802360535,
-0.02395198494195938,
-0.04616523161530495,
0.009385629557073116,
0.048862047493457794,
0.018434157595038414,
0.023579398170113564,
0.0014171591028571129,
-0.0019638410303741693,
-0.007686812896281481,
0.007944074459373951,
-0.05152337998151779,
0.01242841873317957,
0.05265888199210167,
0.0019438809249550104,
-0.06479455530643463,
-0.016863971948623657,
0.005712992046028376,
-0.016899455338716507,
0.006085578352212906,
-0.0001505315740359947,
0.015515563078224659,
-0.014397803694009781,
-0.03516506031155586,
0.040061913430690765,
0.03546667844057083,
-0.03928125649690628,
-0.012534871697425842,
-0.02661331556737423,
-0.019427720457315445,
-0.02104226127266884,
-0.0014127235626801848,
-0.023614883422851562,
-0.024572962895035744,
-0.003195815719664097,
0.03789736330509186,
0.054929886013269424,
0.03188275173306465,
-0.050352394580841064,
0.06788169592618942,
-0.023916499689221382,
-0.05202016234397888,
-0.027464943006634712,
-0.009784828871488571,
0.007669070735573769,
-0.05468149483203888,
-0.002341971732676029,
-0.02734074741601944,
-0.0820399820804596,
-0.05173628777265549,
-0.0642622858285904,
-0.005535569973289967,
-0.0816141664981842,
-0.03383439779281616,
-0.029984336346387863,
0.05209112912416458,
0.012871974147856236,
0.004459948278963566,
-0.05840735882520676,
-0.07011722028255463,
0.011292916722595692,
0.03640701621770859,
0.023437460884451866,
-0.03039240650832653,
0.0003914375265594572,
-0.06667523086071014,
-0.020829355344176292,
0.03768445551395416,
0.006781959906220436,
-0.028653670102357864,
0.06781072914600372,
-0.024643931537866592,
0.027447199448943138,
0.03489892929792404,
0.045207154005765915,
-0.013209075666964054,
-0.006249693688005209,
0.01732526905834675,
0.046271685510873795,
-0.017112363129854202,
0.02475038357079029,
0.0407361164689064,
0.005952511914074421,
-0.03461505472660065,
0.012978427112102509,
0.00715011078864336,
-0.020527737215161324,
-0.01871803216636181,
-0.011523566208779812,
0.03686831519007683,
-0.04304260388016701,
0.03889092430472374,
0.0408070832490921,
0.011700987815856934,
-0.019392237067222595,
-0.00601460924372077,
0.010600971058011055,
0.024608446285128593,
-0.03686831519007683,
0.025761689990758896,
0.012596969492733479,
-0.041623227298259735,
0.04556199908256531,
-0.03610539808869362,
-0.02292293682694435,
0.06805912405252457,
0.030445633456110954,
-0.017360752448439598,
0.001767567708157003,
-0.04542005807161331,
0.008622714318335056,
0.028476247563958168,
-0.04126838222146034,
0.0407361164689064,
0.03871350362896919,
0.006067836191505194,
-0.0010334837716072798,
-0.04921689257025719,
0.03938770666718483,
0.007092448882758617,
0.061600957065820694,
-0.018540609627962112,
0.02813914604485035,
0.03410052880644798,
-0.025992339476943016,
0.0043534948490560055,
-0.011177592910826206,
0.024998774752020836,
-0.03147468343377113,
-0.01544459443539381,
-0.02013740874826908,
-0.023579398170113564,
-0.001345081371255219,
-0.0047149923630058765,
0.017644628882408142,
-0.0031115401070564985,
-0.023508429527282715,
0.015932505950331688,
0.0033621490001678467,
0.09318209439516068,
0.040629662573337555,
-0.004759347997605801,
-0.060500938445329666,
-0.017502691596746445,
0.034189239144325256,
0.016402672976255417,
-0.003249042434617877,
0.07316887378692627,
0.04900398477911949,
-0.06181386113166809,
-0.04563296586275101,
-0.05578150972723961,
0.06195579841732979,
-0.03768445551395416,
-0.006356147117912769,
0.01830996200442314,
0.028529474511742592,
0.016367189586162567,
0.05127498880028725,
0.008068270049989223,
-0.03096015751361847,
0.0027389538008719683,
-0.004331317264586687,
-0.014397803694009781,
-0.038536082953214645,
-0.032965026795864105,
0.03252147138118744,
-0.03175855800509453,
-0.01701478101313114,
-0.017999472096562386,
0.010964686051011086,
-0.03921028599143028,
0.02200034074485302,
0.034827958792448044,
-0.016447030007839203,
0.04538457468152046,
0.03046337515115738,
-0.0035284822806715965,
0.006019045133143663,
0.00007575092604383826,
-0.017830921337008476,
-0.0254778154194355,
-0.025637494400143623,
0.001187619287520647,
-0.029682718217372894,
-0.024945547804236412,
0.0407361164689064,
-0.033958591520786285,
0.030445633456110954,
0.013448596000671387,
-0.09488534182310104,
-0.05936543643474579,
0.04041675478219986,
-0.012650196440517902,
-0.0382876917719841,
0.03512957692146301,
-0.0033554956316947937,
0.018540609627962112,
-0.04719427973031998,
-0.01940997876226902,
-0.033195678144693375,
-0.07976897805929184,
0.06944300979375839,
0.0484362356364727,
-0.01639380306005478,
-0.02139710634946823,
-0.039600614458322525,
-0.01262358296662569,
0.025637494400143623,
-0.028050435706973076,
-0.03211340308189392,
0.039600614458322525,
-0.07018818706274033,
-0.002814358100295067,
-0.016101056709885597,
0.034490857273340225,
0.00003191518771927804,
-0.02143258973956108,
-0.039103832095861435,
-0.0356263592839241,
-0.02982465550303459,
-0.0409490242600441,
0.021840661764144897,
0.0638364776968956,
-0.025460071861743927,
0.01702365092933178,
-0.003916592802852392,
-0.0293988436460495,
-0.03154565021395683,
0.0269149336963892,
-0.08814330399036407,
0.01300504058599472,
0.020598705857992172,
0.038571566343307495,
-0.009660634212195873,
-0.007868670858442783,
0.004568619187921286,
0.01626073569059372,
-0.0019427720690146089,
0.004040788393467665,
0.014717163518071175,
-0.04669749736785889,
0.007717861793935299,
0.061636440455913544,
-0.01974708028137684,
-0.007975123822689056,
-0.005757347214967012,
-0.005469036288559437,
0.02783752791583538,
0.03736509755253792,
0.013262302614748478,
0.012996169738471508,
-0.057946059852838516,
-0.03665540739893913,
0.05535569787025452,
-0.08580133318901062,
-0.009571922942996025,
-0.005211774259805679,
0.001864040968939662,
0.023739077150821686,
-0.015311527997255325,
0.024768127128481865,
0.009190465323626995,
-0.031208548694849014,
-0.012304223142564297,
-0.002043680986389518,
-0.003448642324656248,
-0.025140712037682533,
0.04307808727025986,
-0.007349710911512375,
0.019800307229161263,
-0.060642875730991364,
0.007021479774266481,
-0.02482135221362114,
-0.009944508783519268,
0.022372927516698837,
0.008090448565781116,
0.04903947189450264,
0.0030982336029410362,
-0.03507634997367859,
-0.032397277653217316,
-0.03147468343377113,
-0.02216002158820629,
-0.002885326975956559,
-0.009669505059719086,
-0.00014706629735883325,
0.011887281201779842,
-0.11908572167158127,
0.0256197527050972,
0.024413282051682472,
0.03488118574023247,
-0.030498860403895378,
0.014548612758517265,
0.012721165083348751,
0.009563051164150238,
-0.03307148069143295,
0.009119496680796146,
0.06926558911800385,
-0.09162077307701111,
-0.010405806824564934,
0.028263341635465622,
0.07025915384292603,
-0.007371888495981693,
0.04155225679278374,
-0.01523168757557869,
-0.02734074741601944,
0.004539788234978914,
-0.017538174986839294,
0.052375007420778275,
-0.033798910677433014,
-0.003067184705287218,
-0.04243936762213707,
-0.02608104981482029,
-0.03175855800509453,
-0.035360224545001984,
0.009784828871488571,
0.0485781729221344,
-0.013404239900410175,
-0.027323003858327866,
-0.007407372817397118,
0.0077444748021662235,
0.04055869206786156,
-0.016810745000839233,
0.0033599310554564,
0.034295693039894104,
-0.04556199908256531,
-0.023171328008174896,
0.013377627357840538,
-0.03085370548069477,
0.02680847980082035,
-0.033461809158325195,
-0.014380061998963356,
0.02574394829571247,
-0.010769521817564964,
0.010299352928996086,
0.044781338423490524,
0.057484764605760574,
-0.02574394829571247,
-0.014841359108686447,
0.07529794424772263,
-0.06557521224021912,
-0.0058593652211129665,
-0.03262792527675629,
-0.016234122216701508,
-0.09814991056919098,
-0.08452389389276505,
-0.04453295096755028,
0.019268041476607323,
0.022976163774728775,
-0.0035395710729062557,
0.026471378281712532,
0.06781072914600372,
0.017396237701177597
] |
21,212 | tfields.core | _args | null | def _args(self):
return (np.array(self),)
| (self) | [
-0.029484275728464127,
-0.044346269220113754,
0.020940342918038368,
0.015966368839144707,
-0.0030391747131943703,
0.003961628768593073,
0.004338315222412348,
0.020546533167362213,
0.07410449534654617,
-0.0026731896214187145,
0.017370382323861122,
-0.011814257130026817,
-0.014879114925861359,
-0.009434283711016178,
-0.019450718536973,
0.019108276814222336,
0.045613303780555725,
0.0042013381607830524,
-0.014057253487408161,
0.08930893242359161,
-0.01619751751422882,
-0.002424919046461582,
0.019074032083153725,
-0.019056910648941994,
0.005847201216965914,
0.03818230703473091,
0.05359220877289772,
-0.04198341816663742,
0.05064720660448074,
-0.023063484579324722,
-0.09239091724157333,
-0.004032257478684187,
0.03534003719687462,
0.03873021528124809,
0.03835352882742882,
0.007020065560936928,
-0.020615022629499435,
0.062050532549619675,
-0.01664269156754017,
-0.011737207882106304,
0.01300424337387085,
-0.12718304991722107,
0.0027502391021698713,
0.01312409806996584,
-0.019159642979502678,
-0.057256340980529785,
0.030905410647392273,
-0.07581671327352524,
-0.07650159299373627,
-0.016266005113720894,
0.06033832207322121,
-0.007841926999390125,
0.054242849349975586,
0.005320696160197258,
-0.044140804558992386,
0.10992395877838135,
0.04123004525899887,
0.054208606481552124,
-0.006985821295529604,
0.03883294761180878,
0.00035394614678807557,
0.05400313809514046,
0.05253063887357712,
-0.03869597241282463,
0.02302923984825611,
-0.03859324008226395,
-0.052188195288181305,
0.05393465235829353,
0.0005192815442569554,
0.08013147860765457,
-0.04054516181349754,
-0.015692414715886116,
-0.03842201828956604,
0.013680567033588886,
0.024981161579489708,
-0.020358189940452576,
-0.023679880425333977,
0.0515718013048172,
0.0354427695274353,
-0.029227444902062416,
-0.037805620580911636,
0.031727273017168045,
-0.03910690173506737,
0.05150331184267998,
0.051434822380542755,
-0.0373946912586689,
-0.040099985897541046,
0.04732551798224449,
-0.0793096199631691,
0.009956507943570614,
-0.05629750341176987,
0.007139920722693205,
-0.03328538313508034,
0.07006368041038513,
-0.02652215026319027,
0.005710224155336618,
-0.013706250116229057,
-0.0440380722284317,
0.019365107640624046,
0.00860386062413454,
-0.02123141847550869,
-0.017259089276194572,
0.039791788905858994,
0.005406306590884924,
0.005800115410238504,
-0.021402640268206596,
0.004845557734370232,
-0.058489132672548294,
0.017293332144618034,
0.025871509686112404,
0.0056246137246489525,
0.0565372109413147,
0.015161629766225815,
0.059242505580186844,
-0.06280390173196793,
-0.03835352882742882,
-0.059756167232990265,
0.015444144606590271,
0.0022087523248046637,
0.04530510678887367,
-0.0015998473390936852,
0.04544208571314812,
-0.0030006500892341137,
0.01099239569157362,
0.010889663361012936,
0.055646862834692,
-0.02984384074807167,
-0.012327920645475388,
-0.032275181263685226,
-0.05845488980412483,
0.009382917545735836,
-0.030922533944249153,
-0.054208606481552124,
0.023560024797916412,
0.0030263331718742847,
-0.01735326088964939,
0.07109100371599197,
-0.048387087881565094,
0.007362507749348879,
0.005170877557247877,
0.005380623508244753,
0.045339349657297134,
0.04465446621179581,
0.019536329433321953,
-0.03058009035885334,
0.015255801379680634,
0.0838298574090004,
0.06917332857847214,
-0.001808523084037006,
0.00593281164765358,
-0.022053278982639313,
0.044106557965278625,
0.015966368839144707,
-0.00046015673433430493,
-0.003983031027019024,
-0.038319285959005356,
-0.01060714852064848,
-0.052975814789533615,
0.014194230549037457,
-0.03292582184076309,
-0.07574822008609772,
-0.05838640034198761,
-0.024690084159374237,
-0.04355865344405174,
0.02047804556787014,
0.029723985120654106,
0.017858361825346947,
-0.004515957087278366,
-0.03444968909025192,
0.030922533944249153,
0.012755973264575005,
-0.038901437073946,
-0.047394003719091415,
0.026676250621676445,
-0.04431202635169029,
0.05742756277322769,
-0.04198341816663742,
0.05455104634165764,
0.01917676441371441,
0.020940342918038368,
0.018543247133493423,
-0.03862748295068741,
-0.03972329944372177,
-0.042839523404836655,
0.08177520334720612,
-0.005744468420743942,
0.019313741475343704,
-0.0229949951171875,
-0.006429352797567844,
0.01556399930268526,
-0.016077661886811256,
0.03367919474840164,
-0.0015634627779945731,
0.019039787352085114,
-0.030768433585762978,
0.004995375871658325,
-0.077802874147892,
0.005393465049564838,
0.014159985817968845,
0.00031542140641249716,
-0.013106976635754108,
-0.07143344730138779,
-0.011711523868143559,
0.0189199335873127,
-0.00860386062413454,
0.006925893947482109,
0.008475445210933685,
-0.010393121279776096,
-0.021830692887306213,
-0.00300279026851058,
0.04530510678887367,
-0.01821792684495449,
0.01540989987552166,
-0.04927743598818779,
0.03866172954440117,
-0.02222450077533722,
0.024844184517860413,
-0.011899867095053196,
-0.03104238770902157,
0.03004930540919304,
0.07581671327352524,
-0.03206971660256386,
-0.003362354589626193,
-0.027737820520997047,
-0.004430346190929413,
-0.01261899620294571,
0.023457292467355728,
0.009785287082195282,
-0.035237304866313934,
-0.008963425643742085,
-0.020375313237309456,
-0.04982534423470497,
-0.010615709237754345,
-0.0035870822612196207,
-0.0378398671746254,
0.041058823466300964,
0.03770288825035095,
-0.03992876410484314,
-0.008573897182941437,
0.016206078231334686,
-0.031145120039582253,
0.025717411190271378,
0.027652209624648094,
0.021128686144948006,
0.03465515375137329,
0.006968699395656586,
0.04605847969651222,
0.05842064321041107,
-0.008492567576467991,
0.013201148249208927,
-0.027703575789928436,
0.008133002556860447,
0.0022708200849592686,
-0.002315765479579568,
-0.001932658371515572,
-0.025477701798081398,
0.029706863686442375,
-0.01454523392021656,
0.022310111671686172,
-0.027155669406056404,
0.04215463995933533,
-0.009425722062587738,
0.031162243336439133,
0.04013422876596451,
-0.027412500232458115,
0.0328744538128376,
0.025460580363869667,
-0.008231455460190773,
-0.077802874147892,
0.051160868257284164,
0.08828160911798477,
0.04068213701248169,
-0.04194917157292366,
0.01186562329530716,
-0.009528455324470997,
0.003978750668466091,
0.012978560291230679,
0.012036844156682491,
-0.040579404681921005,
0.03712073713541031,
0.06163959950208664,
-0.023149095475673676,
-0.037771377712488174,
-0.006352303549647331,
0.0006024842732585967,
-0.021882059052586555,
0.026111220940947533,
0.004759946838021278,
0.006728990003466606,
-0.011934111826121807,
0.025854388251900673,
0.06475582718849182,
0.012464896775782108,
-0.01198547799140215,
0.05616052448749542,
-0.011454693041741848,
-0.03883294761180878,
0.033713437616825104,
0.047120049595832825,
0.02302923984825611,
0.03660707548260689,
-0.003495051059871912,
-0.004323333036154509,
-0.008321345783770084,
0.003424422349780798,
-0.010838296264410019,
0.018406270071864128,
0.050407495349645615,
-0.015820831060409546,
-0.021094441413879395,
0.013081293553113937,
-0.006587732583284378,
-0.01427127979695797,
0.002546914154663682,
-0.03386753797531128,
0.008663788437843323,
0.035750970244407654,
0.03085404448211193,
-0.0064849997870624065,
0.08554206788539886,
-0.03516881540417671,
-0.04123004525899887,
-0.0024099370930343866,
-0.011951234191656113,
0.0036020642146468163,
0.050955403596162796,
-0.03165878355503082,
-0.03006642684340477,
0.009263061918318272,
0.04016847535967827,
0.009922263212502003,
0.005076705943793058,
-0.014939041808247566,
0.03797684237360954,
0.009956507943570614,
0.009263061918318272,
0.010692758485674858,
0.032480645924806595,
0.021385516971349716,
-0.06794054061174393,
-0.032994307577610016,
-0.02150537259876728,
-0.046606387943029404,
0.0535237193107605,
0.029278811067342758,
-0.010923907160758972,
0.003486489877104759,
0.013261075131595135,
0.09896580129861832,
-0.022344356402754784,
-0.012507702223956585,
-0.0582151785492897,
-0.02196766994893551,
0.026590639725327492,
0.06143413484096527,
0.06239297240972519,
-0.07047460973262787,
0.010307511314749718,
0.00758509524166584,
0.03080267831683159,
0.10307510942220688,
-0.02099170908331871,
0.013201148249208927,
0.0018909231293946505,
0.0541401170194149,
-0.008428359404206276,
-0.009194574318826199,
0.004222740884870291,
-0.011420448310673237,
-0.009579821489751339,
-0.012362164445221424,
0.008860692381858826,
-0.03218957036733627,
0.009648310020565987,
-0.029158955439925194,
0.011026639491319656,
-0.07547426968812943,
0.01634305529296398,
-0.050202030688524246,
-0.059550702571868896,
-0.011300593614578247,
-0.03818230703473091,
0.042599812150001526,
-0.005842920392751694,
-0.02403944544494152,
0.024621596559882164,
-0.023405926302075386,
0.007187006529420614,
-0.011163616552948952,
0.03790835663676262,
-0.029706863686442375,
-0.04390109330415726,
-0.0481131337583065,
-0.02861104905605316,
0.005787273868918419,
-0.03760015591979027,
0.06509827077388763,
0.025135260075330734,
-0.05098964646458626,
-0.0640709400177002,
0.003670552745461464,
-0.04605847969651222,
-0.032240934669971466,
0.009545576758682728,
-0.04314772039651871,
-0.03081979975104332,
-0.015974929556250572,
0.06948152929544449,
0.016111906617879868,
0.014939041808247566,
0.022327233105897903,
0.016283128410577774,
0.027480989694595337,
-0.05451680347323418,
0.012593313120305538,
0.005342098884284496,
-0.023320315405726433,
0.044106557965278625,
0.04718853905797005,
-0.007820524275302887,
0.007991745136678219,
0.05009929835796356,
0.0014842730015516281,
0.045339349657297134,
0.040784869343042374,
0.02350865863263607,
-0.05605779215693474,
-0.01177145168185234,
0.04441475868225098,
0.01113793347030878,
-0.056708432734012604,
-0.02778918668627739,
-0.021676592528820038,
-0.03766864538192749,
-0.03691527247428894,
-0.00026913819601759315,
-0.023919589817523956,
-0.012987121939659119,
0.05078418180346489,
0.08273404091596603,
-0.01678823120892048,
0.033234018832445145,
0.047633714973926544,
-0.013680567033588886,
0.00846688449382782,
-0.09403463453054428,
-0.053420986980199814,
-0.012687484733760357,
0.002416358096525073,
-0.05239365994930267,
0.020563656464219093,
0.045133884996175766,
0.07800833880901337,
-0.06389971822500229,
0.03718922659754753,
-0.010444488376379013,
-0.08129578828811646,
-0.05711936578154564,
-0.0033987390343099833,
-0.03155605122447014,
0.03612765669822693,
-0.008372712880373001,
-0.021043075248599052,
-0.03234366700053215,
0.004434627015143633,
-0.05383192002773285,
0.046914584934711456,
-0.03873021528124809,
-0.0756797343492508,
-0.015581121668219566,
0.04164097458124161,
-0.014690771698951721,
-0.01765289716422558,
-0.07944659888744354,
0.01682247407734394,
0.016394421458244324,
0.0045887259766459465,
0.0030605774372816086,
-0.024827061221003532,
-0.05814668908715248,
-0.04622970148921013,
-0.07615914940834045,
0.016385860741138458,
0.015135946683585644,
-0.038285043090581894,
0.03794259950518608,
0.002484846394509077,
-0.029912328347563744,
-0.009982191026210785,
0.0018952037207782269,
-0.04571603611111641,
0.0395178347826004,
-0.002589719370007515,
-0.015615365467965603,
0.03643585368990898,
0.03968905285000801,
0.03972329944372177,
-0.009656870737671852,
-0.022549821063876152,
0.07732345908880234,
-0.000676323426887393,
-0.01515306904911995,
0.005830078851431608,
-0.023799734190106392,
-0.012944316491484642,
-0.08485718816518784,
0.03914114832878113,
-0.0209574643522501,
-0.06194780021905899,
-0.0034886302892118692,
-0.043866850435733795,
-0.023388804867863655,
-0.031984105706214905,
-0.015820831060409546,
0.005196560639888048,
0.004413224291056395,
-0.025683166459202766,
0.0023029239382594824,
-0.022138889878988266,
0.029484275728464127,
0.028165873140096664,
0.03835352882742882,
-0.04170946404337883,
-0.001012879889458418,
-0.027669332921504974,
0.021933425217866898,
-0.008509689010679722,
-0.03004930540919304,
0.03629887476563454,
0.025203747674822807,
0.010966712608933449,
-0.07068007439374924,
0.009519893676042557,
0.0642421618103981,
-0.042839523404836655,
0.050681449472904205,
0.007983184419572353,
0.010016434825956821,
-0.016334494575858116,
0.04646940901875496,
0.020786242559552193,
0.004567323252558708,
-0.00845832284539938,
-0.019039787352085114,
-0.014125742018222809,
-0.0072041284292936325,
-0.0227724090218544,
0.012079649604856968,
0.02707005850970745,
-0.031453318893909454,
-0.018851444125175476,
-0.04369562864303589,
0.027378255501389503,
0.059790413826704025,
0.011591669172048569,
0.007208408787846565,
-0.019313741475343704,
-0.03280596435070038,
-0.019604817032814026,
-0.009742481634020805,
0.010290388949215412,
-0.03944934532046318,
-0.022395722568035126,
0.002519090659916401,
-0.09992464631795883,
0.053729187697172165,
0.033028554171323776,
0.08821311593055725,
-0.024964038282632828,
0.006767514627426863,
-0.04027120769023895,
-0.029741108417510986,
-0.06824873387813568,
-0.028165873140096664,
0.03381616994738579,
-0.028662415221333504,
0.012122455053031445,
-0.026847470551729202,
-0.032994307577610016,
-0.04581877216696739,
0.047599468380212784,
0.01950208470225334,
-0.026436539366841316,
-0.026624882593750954,
-0.014134302735328674,
0.03534003719687462,
-0.01733613759279251,
-0.0029899487271904945,
0.0015987771330401301,
0.007914695888757706,
0.020820487290620804,
0.030032183974981308,
0.0004120008088648319,
0.00003200363426003605,
0.018046705052256584,
-0.0212656632065773,
-0.03229230269789696,
-0.022156013175845146,
-0.0358879454433918,
-0.047907669097185135,
0.011874184012413025,
0.013612078502774239,
-0.008929180912673473,
0.051982730627059937,
-0.002247277181595564,
-0.0535237193107605,
0.015084580518305302,
0.0059156897477805614,
-0.033456604927778244,
0.057496052235364914,
0.004094325006008148,
-0.05379767343401909,
0.04903772845864296,
-0.0272926464676857,
-0.029432909563183784,
0.021282784640789032,
-0.030152037739753723,
0.07650159299373627,
0.02121429704129696,
0.08341892808675766,
-0.056708432734012604,
-0.0033944586757570505,
-0.02753235585987568,
-0.00265178713016212,
-0.013492223806679249,
-0.04979110136628151,
0.01768714189529419,
-0.06133140251040459,
0.01618039608001709,
-0.02051229029893875,
0.05304430052638054,
-0.02806314080953598,
0.09067869931459427,
-0.07609066367149353,
-0.007927537895739079,
-0.02448461949825287,
-0.048934996128082275,
0.004541640169918537,
-0.04116155579686165,
0.010453049093484879,
0.031162243336439133,
0.018406270071864128,
-0.022327233105897903,
-0.028165873140096664,
-0.003843914018943906,
-0.04112731292843819,
-0.06139989197254181,
-0.025392090901732445,
0.03873021528124809,
-0.01087254099547863,
-0.0001916873879963532,
0.02833709493279457,
-0.041093066334724426,
0.05177726596593857,
-0.025614678859710693,
0.049928076565265656,
-0.017241965979337692,
0.04427777975797653,
-0.025340724736452103,
-0.018252171576023102,
-0.040305450558662415,
0.04499690979719162,
0.01893705502152443,
-0.03035750426352024,
0.0009952227119356394,
0.0031718711834400892,
-0.01921100914478302,
0.0036577109713107347,
0.05037325248122215,
0.008175808005034924,
-0.023063484579324722,
0.03112799860537052,
-0.015983490273356438,
-0.0012713167816400528,
0.01695089042186737,
0.000733575492631644,
0.045613303780555725,
0.009614065289497375,
0.023628514260053635,
-0.016890963539481163,
-0.024330521002411842,
-0.00834702979773283,
-0.028628170490264893,
-0.009014791809022427,
-0.01149749755859375,
-0.0036405890714377165,
-0.0027502391021698713,
0.07444693893194199,
0.015332850627601147,
-0.05081842839717865,
0.000583757006097585,
-0.03534003719687462,
0.06355727463960648,
-0.02220737934112549,
0.011565986089408398,
0.040305450558662415,
-0.038798704743385315,
-0.0625641942024231,
0.04075062647461891,
0.006300936918705702,
0.010495854541659355,
-0.006737550720572472,
-0.06386547535657883,
0.014159985817968845,
0.03284021094441414,
0.011026639491319656,
0.03725771605968475,
-0.001166443806141615,
-0.0028058860916644335,
0.0404081828892231,
-0.019861649721860886,
0.04801040142774582,
0.006211046129465103,
-0.02806314080953598,
-0.0068788081407547,
0.002671049442142248,
0.03444968909025192,
0.04023696109652519,
-0.0184747576713562,
0.03183000534772873,
-0.024210665374994278,
0.04777069017291069,
0.07704950124025345,
0.015495510771870613,
-0.00833846814930439,
0.027926163747906685,
0.019347986206412315,
-0.050441741943359375,
0.0275152325630188,
-0.03407300263643265,
-0.027378255501389503,
-0.024142177775502205,
0.03869597241282463,
0.022635431960225105,
-0.009922263212502003,
-0.003435123711824417,
0.022652553394436836,
-0.020375313237309456,
-0.03480925410985947,
0.010958150960505009,
0.004888362716883421,
0.017858361825346947,
0.007311141584068537,
0.05612628161907196,
0.024964038282632828,
-0.03492910787463188,
0.029912328347563744,
-0.0073154219426214695,
-0.009956507943570614,
-0.09225393831729889,
0.050133541226387024,
0.08369287848472595,
0.007388191297650337,
-0.01895417831838131,
-0.0076064979657530785,
-0.05780424922704697,
0.08335044234991074,
-0.0496198795735836,
-0.016617009416222572,
-0.03917539119720459,
-0.06366001069545746,
0.023560024797916412,
-0.023131972178816795,
0.07040612399578094,
0.008676630444824696,
0.01844051480293274,
0.04581877216696739,
0.00644647516310215
] |
21,216 | tfields.core | _kwargs | null | def _kwargs(self):
return dict((attr, getattr(self, attr)) for attr in self._iter_slots())
| (self) | [
0.030861804261803627,
0.009510364383459091,
0.0542224757373333,
-0.03768426179885864,
-0.03148689866065979,
0.004500679671764374,
0.014270012266933918,
0.0029848257545381784,
0.03159405663609505,
0.01430573221296072,
-0.02487875707447529,
0.06993913650512695,
0.00709482142701745,
0.04343513026833534,
0.010599815286695957,
-0.029790213331580162,
-0.01708293706178665,
0.003516155993565917,
-0.04918599873781204,
-0.016306033357977867,
0.03455879166722298,
0.004246177151799202,
0.0003278955118730664,
0.007934234105050564,
0.027254115790128708,
0.04304221272468567,
-0.022896314039826393,
0.006831388920545578,
0.0888705626130104,
0.03316572308540344,
-0.06986769288778305,
-0.004045253619551659,
0.0234499704092741,
0.046256985515356064,
0.02596820704638958,
-0.035166025161743164,
-0.023235652595758438,
0.05050762742757797,
-0.016966847702860832,
-0.007322534453123808,
-0.005840167868882418,
-0.0358089804649353,
-0.055151186883449554,
-0.008943314664065838,
0.04961463436484337,
-0.03043316677212715,
0.025182373821735382,
-0.0027236256282776594,
0.027825631201267242,
-0.07226091623306274,
0.045649752020835876,
-0.01699363812804222,
0.06443830579519272,
0.010644464753568172,
-0.030558185651898384,
-0.005710683763027191,
-0.0410776324570179,
0.07972632348537445,
-0.013537758961319923,
0.07097500562667847,
-0.06618856638669968,
0.04061327502131462,
0.031058261170983315,
-0.04632842540740967,
-0.044292401522397995,
-0.0870845764875412,
-0.06933189928531647,
0.010974871926009655,
-0.011332068592309952,
0.02459299936890602,
0.012385798618197441,
-0.07336822152137756,
-0.020967451855540276,
-0.00814408715814352,
-0.024342961609363556,
-0.017681241035461426,
-0.02966519445180893,
0.010412286967039108,
0.018699252977967262,
-0.001971279736608267,
-0.04886452108621597,
-0.01074269413948059,
-0.09008502960205078,
0.0060946703888475895,
-0.011055241338908672,
0.009224607609212399,
-0.04122051224112511,
0.016779320314526558,
0.017502643167972565,
-0.018770691007375717,
-0.03521960601210594,
0.05215073376893997,
0.011376718059182167,
0.0740111768245697,
-0.06093777343630791,
-0.036166176199913025,
-0.01871711201965809,
0.020735275000333786,
0.028468584641814232,
-0.007974418811500072,
-0.03186195343732834,
-0.04536399245262146,
-0.020967451855540276,
-0.0021242047660052776,
-0.006393822841346264,
-0.04318509250879288,
-0.033880118280649185,
-0.08365549147129059,
0.011117750778794289,
-0.012734065763652325,
0.010483725927770138,
0.030629625543951988,
-0.011492807418107986,
0.06715299934148788,
-0.015073704533278942,
0.001321628107689321,
-0.049221720546483994,
-0.03630905598402023,
0.007902978919446468,
-0.020931731909513474,
-0.06447402387857437,
0.06447402387857437,
-0.008635232225060463,
0.038863010704517365,
0.005250792950391769,
0.016181014478206635,
-0.030826084315776825,
0.04122051224112511,
0.03221915289759636,
0.01346631906926632,
0.03682699054479599,
-0.023396389558911324,
-0.0031500293407589197,
-0.0010202433913946152,
0.0006083507905714214,
-0.0184849351644516,
0.08044072240591049,
0.023396389558911324,
0.0184849351644516,
0.0854414775967598,
0.022896314039826393,
0.04293505474925041,
-0.031790513545274734,
0.01398425456136465,
-0.04618554562330246,
-0.028039949014782906,
0.027307694777846336,
0.03271922841668129,
-0.02007446065545082,
-0.03595185652375221,
0.035380344837903976,
0.02555743046104908,
0.04450672119855881,
0.03218343108892441,
-0.02414650283753872,
-0.023807166144251823,
-0.057937320321798325,
-0.03295140340924263,
-0.0065992106683552265,
-0.028986521065235138,
-0.024575140327215195,
-0.023467829450964928,
-0.029915232211351395,
-0.053008005023002625,
0.024039344862103462,
0.03373723849654198,
0.054329633712768555,
-0.07268954813480377,
0.026486143469810486,
0.008135156705975533,
-0.014153922908008099,
0.024307241663336754,
-0.002951338654384017,
0.017449064180254936,
-0.04350657016038895,
0.07772602140903473,
-0.01079627312719822,
-0.015118354931473732,
0.01830633543431759,
0.0058937473222613335,
0.03407657518982887,
-0.03359435871243477,
-0.04122051224112511,
0.01798485964536667,
0.05897319316864014,
-0.05397243797779083,
0.0111088203266263,
0.0023284766357392073,
0.004648023284971714,
-0.0008516911184415221,
0.01348417904227972,
0.006876038387417793,
-0.006286663468927145,
-0.0014868316939100623,
-0.05990190431475639,
0.014002114534378052,
-0.005197213497012854,
-0.015073704533278942,
-0.0021219721529632807,
0.08472707867622375,
-0.03750566393136978,
-0.0510077029466629,
-0.07872617244720459,
0.037398505955934525,
0.0021431806962937117,
-0.017966998741030693,
0.014779017306864262,
-0.046935658901929855,
0.01628817431628704,
-0.018913570791482925,
0.0014622743474319577,
-0.02641470357775688,
0.022789156064391136,
-0.025861049070954323,
0.020699555054306984,
-0.04229209944605827,
0.017413344234228134,
0.01916360855102539,
-0.0037126142997294664,
0.02377144619822502,
0.013716356828808784,
-0.028897220268845558,
0.01678824983537197,
0.00018724925757851452,
-0.022646276280283928,
-0.03112970106303692,
0.05897319316864014,
-0.000505098607391119,
-0.0616878867149353,
-0.009822911582887173,
-0.006206294521689415,
-0.012466168031096458,
0.02614680491387844,
0.04472104087471962,
-0.030468886718153954,
0.022467678412795067,
-0.0009532689582556486,
-0.03864869475364685,
-0.005058799870312214,
-0.006965337786823511,
0.07365398108959198,
0.039541684091091156,
0.0345052108168602,
0.0410776324570179,
-0.005299907643347979,
-0.01494868565350771,
0.08086935430765152,
0.0740111768245697,
0.044613879173994064,
-0.014796877279877663,
0.028736483305692673,
0.0111088203266263,
-0.004552026744931936,
0.06693868339061737,
-0.01227863971143961,
0.012734065763652325,
0.01666323095560074,
0.06143784895539284,
0.009438925422728062,
-0.05065050721168518,
0.018324196338653564,
0.014832597225904465,
-0.03354077786207199,
0.021735426038503647,
0.05475826933979988,
0.04336369037628174,
0.0640096664428711,
-0.01250188797712326,
-0.1627388596534729,
0.033201441168785095,
0.11916085332632065,
-0.0402560792863369,
-0.0168418288230896,
0.03463023155927658,
-0.014868317171931267,
0.021199630573391914,
0.02039593644440174,
-0.0443638414144516,
-0.054151035845279694,
-0.03145117685198784,
0.06597425043582916,
0.02250339835882187,
0.03679126873612404,
-0.004286361392587423,
0.024253662675619125,
0.017788400873541832,
0.008188736625015736,
0.0755828395485878,
0.04886452108621597,
-0.0063134534284472466,
0.00757703697308898,
-0.009706823155283928,
0.006751019507646561,
0.008563793264329433,
0.04604266583919525,
0.04343513026833534,
-0.04536399245262146,
0.012823364697396755,
0.029718773439526558,
0.03518388420343399,
0.004947175737470388,
-0.003516155993565917,
-0.0017301719635725021,
0.0854414775967598,
-0.002790600061416626,
0.032147713005542755,
0.028182826936244965,
0.04714997857809067,
-0.010680184699594975,
-0.01704721711575985,
0.0010559629881754518,
0.024610860273241997,
0.01348417904227972,
0.02591462805867195,
-0.09772904217243195,
-0.011555316857993603,
-0.0011586571345105767,
-0.002424473175778985,
0.003254955867305398,
0.08451276272535324,
-0.04557831212878227,
-0.037255626171827316,
-0.013430600054562092,
-0.032701365649700165,
0.03793429955840111,
0.014984405599534512,
-0.017538363113999367,
-0.020413797348737717,
0.04293505474925041,
-0.004241711925715208,
-0.052865125238895416,
0.004616768565028906,
-0.03371937945485115,
0.03761282190680504,
-0.044649600982666016,
0.028897220268845558,
0.013769936747848988,
0.04861448332667351,
-0.0053847418166697025,
-0.06129496917128563,
-0.021521106362342834,
0.001619664253666997,
-0.026075366884469986,
-0.03620189428329468,
-0.04389948770403862,
-0.0234142504632473,
-0.016413193196058273,
0.010153318755328655,
0.0279685091227293,
-0.05157921835780144,
-0.008505748584866524,
-0.057151488959789276,
0.02929013781249523,
0.04811440780758858,
0.03729134425520897,
-0.028504304587841034,
-0.028147106990218163,
-0.037862859666347504,
-0.029683053493499756,
0.02743271365761757,
0.0854414775967598,
0.015332672744989395,
0.00406311359256506,
0.007947628386318684,
0.09751472622156143,
0.02121748961508274,
-0.011073100380599499,
-0.0010715903481468558,
0.05636565387248993,
-0.07658299058675766,
0.015939908102154732,
0.004728392697870731,
-0.013493109494447708,
-0.0028888292144984007,
0.002777205081656575,
-0.021146049723029137,
-0.005049869883805513,
0.007871724665164948,
-0.027897069230675697,
-0.020753134042024612,
-0.013743147253990173,
-0.07358253747224808,
0.06379535049200058,
0.015502341091632843,
0.002980360761284828,
-0.01327879074960947,
0.012457238510251045,
-0.009153167717158794,
0.05954470485448837,
0.048257287591695786,
-0.06143784895539284,
-0.02893294021487236,
-0.048757363110780716,
0.05783016234636307,
0.04054183512926102,
-0.04718569666147232,
0.01467185840010643,
-0.0362197570502758,
-0.058258797973394394,
-0.03975600376725197,
0.003094217274338007,
-0.07458268851041794,
-0.03413015604019165,
-0.017922349274158478,
0.06493838131427765,
-0.035576801747083664,
0.014475400559604168,
0.0673673152923584,
0.08658450096845627,
-0.028361426666378975,
-0.022985614836215973,
-0.010126529261469841,
-0.016055995598435402,
-0.043327972292900085,
0.03743422403931618,
-0.010706974193453789,
0.029950952157378197,
0.012698345817625523,
0.03521960601210594,
0.025896767154335976,
0.0666886419057846,
-0.011251699179410934,
0.0019400251330807805,
-0.012287570163607597,
0.04422096535563469,
0.03661267086863518,
-0.05890175327658653,
-0.0018931430531665683,
0.061723608523607254,
0.004572119098156691,
-0.05082910507917404,
0.02929013781249523,
-0.016181014478206635,
0.0014845991972833872,
-0.016395332291722298,
0.00038984682760201395,
-0.0059919762425124645,
-0.027772050350904465,
0.022932033985853195,
0.045292552560567856,
-0.04289933666586876,
-0.03613045811653137,
-0.018172387033700943,
-0.0004978430224582553,
0.021003171801567078,
-0.014153922908008099,
0.008251246064901352,
0.014698647893965244,
0.06851034611463547,
-0.004817691631615162,
0.04104191064834595,
0.019360067322850227,
0.027593452483415604,
-0.06065201759338379,
0.017038287594914436,
0.011608895845711231,
-0.06283091753721237,
-0.06097349524497986,
-0.022396238520741463,
-0.01857423409819603,
0.05736580491065979,
-0.05493686720728874,
-0.03304070234298706,
0.031040402129292488,
-0.04143482819199562,
0.04915028065443039,
-0.009590733796358109,
-0.0021063447929918766,
-0.037041306495666504,
0.027414854615926743,
0.0013975325273349881,
0.028575744479894638,
-0.02464657835662365,
-0.07965488731861115,
-0.024807317182421684,
0.034880269318819046,
-0.017538363113999367,
-0.016055995598435402,
-0.0551154650747776,
-0.04736429452896118,
0.02678976021707058,
-0.017422273755073547,
0.03318358212709427,
-0.035380344837903976,
-0.012859084643423557,
0.006916223093867302,
-0.021931882947683334,
0.00723323505371809,
-0.04872164502739906,
0.034469492733478546,
-0.02723625674843788,
0.010233688168227673,
0.0035652704536914825,
0.043149374425411224,
0.07011773437261581,
0.021574687212705612,
0.03250490874052048,
0.029504455626010895,
-0.008206596598029137,
0.010546235367655754,
-0.042827896773815155,
-0.016940059140324593,
0.04204206168651581,
0.043149374425411224,
-0.012850155122578144,
-0.04225638136267662,
-0.04636414349079132,
0.013439529575407505,
-0.02993309125304222,
0.006559026427567005,
0.005969651509076357,
-0.01051944587379694,
-0.021110331639647484,
-0.0045408643782138824,
0.00490699103102088,
-0.04207778349518776,
-0.04104191064834595,
0.0007088123820722103,
0.008327150717377663,
-0.0021163909696042538,
0.03982744365930557,
0.08829905092716217,
0.025450272485613823,
-0.024164363741874695,
-0.04779293015599251,
0.01556485053151846,
0.02596820704638958,
-0.03382653743028641,
0.007237700279802084,
-0.004337708465754986,
0.040220361202955246,
-0.05361523851752281,
-0.031504757702350616,
0.05708004906773567,
-0.044935356825590134,
0.024753738194704056,
0.028986521065235138,
0.014832597225904465,
-0.009858631528913975,
0.006384892854839563,
0.06347387284040451,
0.021610407158732414,
-0.011278488673269749,
-0.002830784535035491,
0.015207653865218163,
0.018502794206142426,
-0.004552026744931936,
0.012019672431051731,
-0.019038589671254158,
-0.03236202895641327,
-0.0149933360517025,
-0.023628568276762962,
-0.026486143469810486,
-0.02171756513416767,
-0.06615284830331802,
-0.0275577325373888,
0.028004229068756104,
-0.055472664535045624,
-0.013912815600633621,
0.010206898674368858,
0.03761282190680504,
-0.010287268087267876,
0.010894502513110638,
-0.050543345510959625,
-0.04339941218495369,
0.014555769972503185,
0.016600720584392548,
0.063259556889534,
-0.07794034481048584,
-0.005621384829282761,
-0.03645193204283714,
0.008322685025632381,
-0.003163424087688327,
0.03768426179885864,
0.043470852077007294,
-0.023610709235072136,
-0.013734216801822186,
-0.03071892447769642,
-0.012233990244567394,
-0.04979323223233223,
0.04289933666586876,
0.06272375583648682,
-0.018699252977967262,
0.01994944177567959,
-0.04407808557152748,
0.02591462805867195,
-0.004121158272027969,
0.020610256120562553,
-0.007800285238772631,
-0.020431656390428543,
-0.01649356260895729,
-0.0026053041219711304,
-0.03596971929073334,
-0.025039495900273323,
-0.0004007301467936486,
-0.024539420381188393,
-0.01346631906926632,
-0.008519143797457218,
-0.057294365018606186,
-0.011171329766511917,
-0.020324498414993286,
0.015823818743228912,
-0.002353033982217312,
0.038898732513189316,
-0.032879967242479324,
0.011626755818724632,
0.026111086830496788,
0.04718569666147232,
-0.05940182879567146,
-0.00834947545081377,
-0.05640137568116188,
-0.03997032344341278,
0.02770061232149601,
-0.01361812837421894,
-0.015743449330329895,
-0.016297103837132454,
-0.032612066715955734,
0.008760251104831696,
0.010296197608113289,
-0.012421518564224243,
-0.08329829573631287,
-0.03500528633594513,
0.003833168186247349,
0.03166549652814865,
-0.01930648647248745,
-0.04007748141884804,
0.00960859376937151,
0.02171756513416767,
-0.022467678412795067,
0.0006920687737874687,
0.004105530679225922,
0.0477214939892292,
0.08601298928260803,
-0.07329678535461426,
0.030790364369750023,
0.02770061232149601,
0.018681392073631287,
-0.00435780081897974,
-0.0353982038795948,
0.022253360599279404,
0.02291417494416237,
-0.0010570792946964502,
0.005232932977378368,
-0.016511421650648117,
-0.027736332267522812,
0.03721990808844566,
0.030861804261803627,
-0.01994944177567959,
0.014662928879261017,
-0.031558338552713394,
0.03043316677212715,
-0.03914877027273178,
-0.02761131338775158,
-0.011787494644522667,
-0.006322383414953947,
0.004000604152679443,
-0.04343513026833534,
0.03555894270539284,
0.011975022964179516,
-0.05536550283432007,
-0.0435422882437706,
0.014609348960220814,
-0.055008307099342346,
-0.07572571933269501,
0.06522413343191147,
0.03291568532586098,
-0.06118781119585037,
-0.008295895531773567,
0.04865020513534546,
0.010367637500166893,
0.04489963874220848,
0.02253911830484867,
-0.008970105089247227,
0.0010576373897492886,
-0.07529708743095398,
0.009260326623916626,
-0.009139773435890675,
0.006987662520259619,
0.04311365261673927,
-0.031558338552713394,
-0.01227863971143961,
-0.02564672939479351,
-0.020503096282482147,
0.039541684091091156,
0.001532597467303276,
-0.00023566617164760828,
-0.0034759712871164083,
0.02696835808455944,
0.00217890040948987,
-0.030183129012584686,
0.009715752676129341,
-0.044328123331069946,
-0.0035518757067620754,
0.025664590299129486,
0.0007143936236388981,
-0.05783016234636307,
0.023235652595758438,
-0.06411682814359665,
0.08579867333173752,
-0.0402560792863369,
-0.011144540272653103,
0.0033063029404729605,
0.006657255347818136,
-0.005947326775640249,
0.016966847702860832,
0.008916525170207024,
0.04047039896249771,
-0.01074269413948059,
0.02907581999897957,
0.012582257390022278,
-0.012457238510251045,
0.010894502513110638,
-0.0059919762425124645,
0.009974720887839794,
0.038041457533836365,
-0.018734972923994064,
0.034701667726039886,
-0.03200483322143555,
0.0016687788302078843,
0.021199630573391914,
0.002020394429564476,
0.027950650081038475,
-0.004634628538042307,
0.04754289239645004,
0.0030451028142124414,
0.0034536465536803007,
-0.03947024792432785,
-0.014207502827048302,
0.016484633088111877,
-0.022431958466768265,
-0.013037683442234993,
-0.02432510256767273,
-0.04372088983654976,
0.009465714916586876,
-0.01843135431408882,
-0.008108367212116718,
0.022110482677817345,
-0.01752050220966339,
-0.03084394335746765,
0.053829558193683624,
-0.02673618122935295,
0.0805121585726738,
0.006411682348698378,
0.10751623660326004,
0.007148400880396366,
0.01980656199157238,
0.015689870342612267,
0.011564246378839016,
0.04740001633763313,
-0.09744329005479813,
0.004121158272027969,
0.057937320321798325,
-0.02596820704638958,
-0.009385345503687859,
0.010733763687312603,
-0.05933038890361786,
0.03257634863257408,
-0.04222066327929497,
0.04357801005244255,
0.0001398090535076335,
-0.07011773437261581,
-0.06247372180223465,
0.012850155122578144,
0.026664741337299347,
0.02171756513416767,
0.004634628538042307,
0.04982895404100418,
-0.010751623660326004
] |
21,221 | tfields.core | _weights |
transformer method for weights inputs.
Args:
weights (np.ndarray | None):
If weights is None, use np.ones
Otherwise just pass the weights.
rigid (bool): demand equal weights and tensor length
Returns:
weight array
| def _weights(self, weights, rigid=True):
"""
transformer method for weights inputs.
Args:
weights (np.ndarray | None):
If weights is None, use np.ones
Otherwise just pass the weights.
rigid (bool): demand equal weights and tensor length
Returns:
weight array
"""
# set weights to 1.0 if weights is None
if weights is None:
weights = np.ones(len(self))
if rigid:
if not len(weights) == len(self):
raise ValueError("Equal number of weights as tensors demanded.")
return weights
| (self, weights, rigid=True) | [
-0.01139075681567192,
-0.030890772119164467,
0.022128650918602943,
-0.013950671069324017,
-0.02106345072388649,
-0.019706182181835175,
-0.05380973219871521,
0.031646717339754105,
0.06349960714578629,
0.08191724121570587,
0.008143618702888489,
0.010815205983817577,
0.03989342227578163,
-0.003934364300221205,
-0.02401852048933506,
0.02269561029970646,
0.025616317987442017,
0.03659474104642868,
-0.00020039593800902367,
0.0075981332920491695,
-0.00016241063713096082,
-0.05209166929125786,
0.02762645110487938,
0.07202120125293732,
-0.03549518063664436,
0.00203697825782001,
-0.014105296693742275,
-0.02662997506558895,
-0.006356833036988974,
-0.00388926500454545,
-0.05765819177031517,
-0.006339651998132467,
0.017300894483923912,
0.00811784714460373,
0.038793861865997314,
0.00466024549677968,
-0.03549518063664436,
0.026252001523971558,
-0.03202469274401665,
-0.0066317226737737656,
0.06920357793569565,
-0.038209717720746994,
0.04439474642276764,
0.011253312230110168,
-0.02391543611884117,
0.06525202840566635,
0.04669694975018501,
0.005776986479759216,
-0.008805072866380215,
-0.0055708191357553005,
0.07195247709751129,
0.0027918522246181965,
0.06535511463880539,
-0.008285358548164368,
-0.014337235130369663,
0.050923384726047516,
0.021681953221559525,
-0.00042012007907032967,
-0.0018318846123293042,
-0.08631548285484314,
0.0361136831343174,
-0.012919832952320576,
0.032282400876283646,
-0.04020267352461815,
0.01623569428920746,
0.013521155342459679,
-0.02288459800183773,
0.0276779942214489,
0.04879298806190491,
0.009045600891113281,
-0.0030517091508954763,
-0.025633499026298523,
-0.031011035665869713,
0.015307940542697906,
-0.004776214715093374,
0.05456567928195,
0.009372033178806305,
-0.005871479865163565,
0.005162779241800308,
-0.009930403903126717,
0.011124457232654095,
0.0009443977032788098,
-0.016570717096328735,
-0.011072915978729725,
0.014612125232815742,
-0.03628548979759216,
-0.07367053627967834,
0.010789435356855392,
0.01472379919141531,
-0.05356920138001442,
-0.0632590800523758,
0.04339826852083206,
0.03224804252386093,
0.030203545466065407,
0.07937450706958771,
0.027282839640975,
-0.02628636360168457,
-0.083841472864151,
-0.011115866713225842,
0.03003174066543579,
-0.07580093294382095,
0.03525464981794357,
-0.029069624841213226,
0.02900090254843235,
-0.013409481383860111,
-0.04277976602315903,
-0.04611280933022499,
-0.05164496973156929,
0.033759936690330505,
0.004591523203998804,
-0.036972712725400925,
-0.024293409660458565,
-0.0049351355992257595,
0.010377099737524986,
0.004241467919200659,
-0.050476688891649246,
-0.0092259980738163,
0.039687253534793854,
-0.014277102425694466,
0.07030313462018967,
0.09401240199804306,
0.007636789698153734,
0.012430185452103615,
-0.023554641753435135,
0.0038978552911430597,
0.011579744517803192,
0.0163473691791296,
-0.02130397967994213,
0.040821176022291183,
-0.00934626255184412,
-0.028932180255651474,
-0.018383273854851723,
-0.04013394936919212,
0.057383302599191666,
-0.005441964138299227,
0.041302233934402466,
-0.018829969689249992,
0.05271017178893089,
0.0313718281686306,
-0.0033094186801463366,
0.04803704097867012,
0.017919396981596947,
0.05755510926246643,
0.02027314156293869,
0.03353658691048622,
-0.0023279753513634205,
0.04013394936919212,
0.027351561933755875,
-0.02391543611884117,
0.000616355100646615,
-0.018022479489445686,
0.021029090508818626,
0.008074895478785038,
-0.03546081855893135,
-0.04068373143672943,
0.02999737858772278,
-0.015170495957136154,
-0.04119914770126343,
0.031251564621925354,
-0.0009481559973210096,
-0.031389009207487106,
0.009311901405453682,
-0.018366092815995216,
0.0004802522889804095,
-0.018314551562070847,
0.022351998835802078,
-0.0009937919676303864,
0.03047843649983406,
-0.004767624661326408,
0.026595614850521088,
0.030787687748670578,
-0.05518418177962303,
-0.04363879933953285,
0.00511553231626749,
0.055115457624197006,
-0.009414984844624996,
-0.0016879967879503965,
-0.014234151691198349,
-0.031354647129774094,
0.057039689272642136,
0.040958620607852936,
-0.02831367775797844,
-0.03577006980776787,
-0.027540547773241997,
0.036766547709703445,
0.06260621547698975,
-0.004759034141898155,
0.04913660138845444,
-0.012189656496047974,
0.030409714207053185,
0.057383302599191666,
0.008242406882345676,
-0.01663943938910961,
-0.006197912152856588,
0.013280626386404037,
0.030358171090483665,
0.005532162729650736,
-0.04247051477432251,
-0.029859934002161026,
-0.008474345318973064,
0.027248477563261986,
-0.09442473948001862,
0.0442916639149189,
0.04765906557440758,
-0.03360531106591225,
0.006459916476160288,
-0.028794733807444572,
-0.009569610469043255,
-0.017678868025541306,
-0.06233132258057594,
0.017249351367354393,
-0.006073352415114641,
-0.0040245624259114265,
-0.0003087144286837429,
0.043776243925094604,
0.011055734939873219,
-0.060304008424282074,
-0.018280189484357834,
-0.01078084483742714,
-0.036422934383153915,
0.0241216029971838,
0.02860574796795845,
-0.011184589937329292,
0.0086976932361722,
0.04302029684185982,
-0.02130397967994213,
-0.005278748460114002,
-0.03735068812966347,
-0.04449782893061638,
0.05776127427816391,
0.02599429152905941,
-0.003706720657646656,
0.02644098922610283,
0.003159088082611561,
0.002497633919119835,
-0.04381060600280762,
0.0012208984699100256,
-0.05391281470656395,
0.06940974295139313,
0.00427797669544816,
-0.03508284315466881,
0.009303310886025429,
-0.010334148071706295,
-0.016166971996426582,
0.01853789947926998,
0.011674237437546253,
0.031887248158454895,
0.01023106463253498,
-0.028193412348628044,
-0.03546081855893135,
-0.047074925154447556,
-0.012069392018020153,
-0.01987798884510994,
-0.03259165212512016,
-0.00046199787175282836,
0.012842520140111446,
0.016046708449721336,
-0.012516088783740997,
-0.04844937473535538,
-0.02900090254843235,
0.007318947929888964,
-0.014088115654885769,
0.006210797466337681,
0.036422934383153915,
-0.02145860530436039,
0.0022356293629854918,
0.012112343683838844,
0.021441426128149033,
-0.03985906019806862,
0.008805072866380215,
-0.009483707137405872,
0.06071634218096733,
0.022008385509252548,
-0.03393174335360527,
0.015823358669877052,
-0.03379429876804352,
0.011115866713225842,
0.01629582606256008,
-0.027059491723775864,
0.04277976602315903,
-0.0276779942214489,
-0.04731545224785805,
-0.004711787682026625,
-0.0034146499820053577,
0.008968288078904152,
0.004844937473535538,
-0.028571385890245438,
-0.04147404059767723,
-0.019225124269723892,
-0.032969627529382706,
0.0540502592921257,
0.047418538480997086,
0.03235112503170967,
-0.02377799153327942,
-0.04405113309621811,
-0.09325645864009857,
-0.07202120125293732,
-0.003086070530116558,
0.08473486453294754,
-0.0020144288428127766,
0.005085466429591179,
0.04573483392596245,
0.0010915067978203297,
-0.03058152087032795,
-0.04222998768091202,
-0.012799568474292755,
0.010334148071706295,
0.020788561552762985,
-0.02238635905086994,
0.006700445432215929,
0.0023795170709490776,
-0.012919832952320576,
-0.050476688891649246,
0.023245390504598618,
0.07463265210390091,
-0.04473835974931717,
0.06542383879423141,
0.04948021098971367,
0.009217407554388046,
0.0804053470492363,
-0.0007468204712495208,
0.03195596858859062,
-0.030907951295375824,
-0.0053818318992853165,
-0.08521591871976852,
-0.015780407935380936,
0.04088989645242691,
-0.03485949710011482,
-0.02565068006515503,
0.05346611887216568,
0.023692088201642036,
0.030890772119164467,
0.049789462238550186,
-0.014740980230271816,
-0.059170085936784744,
0.009234588593244553,
0.06171282008290291,
0.017885034903883934,
-0.014852654188871384,
-0.019895168021321297,
-0.013452433049678802,
0.001829736982472241,
0.012241198681294918,
0.06243440508842468,
-0.007297472096979618,
-0.025032177567481995,
-0.007662560790777206,
-0.001335793873295188,
0.07477010041475296,
0.004544276278465986,
-0.043089017271995544,
-0.00023838122433517128,
0.02583966590464115,
0.03738505020737648,
-0.012292739935219288,
-0.008220931515097618,
-0.018469177186489105,
0.012206836603581905,
0.02486037090420723,
-0.020479310303926468,
-0.051026467233896255,
0.018675344064831734,
0.0009454715182073414,
0.02204274758696556,
0.03941236436367035,
0.015892082825303078,
0.055768322199583054,
-0.028485482558608055,
-0.002366631757467985,
0.01879560761153698,
0.01697446219623089,
-0.048655543476343155,
-0.08920183032751083,
0.02742028422653675,
0.006563000380992889,
0.0048363469541072845,
-0.0632590800523758,
0.015067411586642265,
0.05336303263902664,
-0.030272267758846283,
-0.02022160030901432,
0.0257022213190794,
0.050614133477211,
0.004492734558880329,
-0.011700008064508438,
-0.011004192754626274,
0.029310153797268867,
-0.0016826278297230601,
-0.04700620099902153,
0.014861244708299637,
-0.0017180629074573517,
-0.007688331417739391,
-0.050785940140485764,
-0.01858944073319435,
-0.0920194536447525,
0.0028025901410728693,
0.017524242401123047,
0.04102734103798866,
-0.05288197845220566,
-0.02776389755308628,
-0.0037690005265176296,
-0.0709216371178627,
-0.08604059368371964,
0.00887379515916109,
-0.07758772373199463,
0.06844762712717056,
-0.021767856553196907,
0.07971812039613724,
0.017386795952916145,
0.0011757992906495929,
-0.008684808388352394,
0.07030313462018967,
0.020187240093946457,
-0.018520718440413475,
-0.024722926318645477,
-0.0066231326200068,
0.054978013038635254,
-0.006502868141978979,
0.03171544149518013,
0.0264925304800272,
0.04463527351617813,
0.047178007662296295,
0.0709216371178627,
0.049995630979537964,
0.06305290758609772,
-0.024207506328821182,
0.008285358548164368,
-0.04511633142828941,
0.03317579627037048,
0.001249890774488449,
-0.03130310773849487,
-0.03814099729061127,
-0.011579744517803192,
-0.0825357437133789,
0.04357007518410683,
0.018778428435325623,
0.04552866891026497,
0.027248477563261986,
-0.03240266814827919,
0.03264319524168968,
0.036079321056604385,
-0.03893130645155907,
0.006627427879720926,
-0.038450248539447784,
-0.046834394335746765,
-0.075388602912426,
0.0006399784469977021,
0.0022163011599332094,
-0.08164235204458237,
-0.04360443726181984,
0.040511924773454666,
-0.011923356913030148,
0.06676392257213593,
0.0029915771447122097,
-0.0006238715723156929,
0.03327887877821922,
0.023743629455566406,
-0.0395498089492321,
0.011794501915574074,
-0.04927404597401619,
0.036422934383153915,
0.005914431530982256,
0.03382865712046623,
-0.023107945919036865,
-0.03463614732027054,
-0.046731311827898026,
0.0016837016446515918,
-0.0659048929810524,
0.023348474875092506,
0.026853322982788086,
0.1415683776140213,
0.02135552279651165,
0.014225561171770096,
-0.04040883854031563,
0.01571168564260006,
0.027832619845867157,
0.015273579396307468,
-0.006270929705351591,
-0.023159489035606384,
-0.039927780628204346,
-0.029275791719555855,
0.005325994919985533,
0.022901779040694237,
0.020530851557850838,
-0.012146704830229282,
-0.028571385890245438,
-0.05106082931160927,
-0.039000026881694794,
0.04511633142828941,
0.028794733807444572,
-0.022523805499076843,
0.04738417640328407,
0.10885646939277649,
0.03930927813053131,
-0.04882734641432762,
0.006889432203024626,
0.009191636927425861,
0.017077544704079628,
0.0353233739733696,
0.07167758792638779,
0.012696485035121441,
0.006322471424937248,
-0.0482432059943676,
0.005102647002786398,
-0.02589120902121067,
-0.02204274758696556,
-0.012215427123010159,
-0.00407395651564002,
-0.028743192553520203,
-0.012627762742340565,
-0.03087359108030796,
0.03379429876804352,
-0.05037360638380051,
0.02836521901190281,
-0.016407500952482224,
-0.04408549517393112,
-0.046731311827898026,
0.052504003047943115,
-0.001212308183312416,
-0.022867416962981224,
0.055081095546483994,
0.030942313373088837,
-0.031251564621925354,
0.005837118718773127,
0.009045600891113281,
0.009114324115216732,
-0.03975597769021988,
-0.05291633680462837,
0.0725022554397583,
0.08129873871803284,
-0.0052400920540094376,
-0.022953320294618607,
-0.015617191791534424,
0.02594275027513504,
-0.033570948988199234,
-0.010832387022674084,
0.007516525220125914,
-0.034704871475696564,
-0.049548935145139694,
0.013521155342459679,
-0.0030517091508954763,
-0.025925569236278534,
0.0184519961476326,
-0.020599573850631714,
0.01671675220131874,
0.04442910850048065,
-0.04336390644311905,
0.006185026373714209,
-0.09737980365753174,
-0.03157799690961838,
-0.1252124309539795,
-0.07614454627037048,
-0.026063013821840286,
0.05824233219027519,
0.059754230082035065,
-0.030718965455889702,
-0.0229361392557621,
0.011150228790938854,
-0.0022571051958948374,
0.06092251092195511,
0.010643400251865387,
-0.06738242506980896,
0.039584171026945114,
0.0264925304800272,
-0.022369179874658585,
0.011536792851984501,
-0.0036981303710490465,
0.0027188346721231937,
-0.008933926932513714,
0.00825099740177393,
-0.011519611813127995,
0.00912291370332241,
0.03284936398267746,
0.016673801466822624,
-0.014964328147470951,
-0.01018811296671629,
-0.013632829301059246,
-0.015368073247373104,
-0.053053781390190125,
-0.04817448556423187,
-0.00012294888438191265,
-0.010755074210464954,
-0.03339914232492447,
0.005914431530982256,
0.043535713106393814,
-0.06061325967311859,
-0.019173583015799522,
0.03886258229613304,
-0.09098861366510391,
0.06559564173221588,
-0.01265353336930275,
-0.036526016891002655,
0.017043184489011765,
0.052607085555791855,
0.03047843649983406,
-0.03944672644138336,
-0.020152878016233444,
-0.017730409279465675,
0.062125153839588165,
-0.014929967001080513,
0.019500013440847397,
-0.00927753932774067,
0.024688564240932465,
0.013512564823031425,
0.011708598583936691,
-0.025049356743693352,
-0.0498238243162632,
-0.0061506652273237705,
0.014637895859777927,
-0.024602660909295082,
0.005343175493180752,
-0.013014326803386211,
0.03195596858859062,
0.006404079496860504,
-0.022334817796945572,
0.03741941228508949,
-0.08219213038682938,
0.030048919841647148,
0.046731311827898026,
-0.009449345991015434,
0.012662123888731003,
-0.04789959266781807,
-0.0172665324062109,
-0.020977547392249107,
-0.010883928276598454,
0.0011661351891234517,
0.028829095885157585,
-0.06700445711612701,
-0.018417634069919586,
-0.00531310960650444,
0.05350048094987869,
-0.042642321437597275,
0.08659037202596664,
0.0008676217985339463,
-0.013675780966877937,
0.03305552899837494,
-0.03140619024634361,
-0.014457499608397484,
-0.006653198506683111,
-0.025581957772374153,
-0.008242406882345676,
0.028348037973046303,
0.034155089408159256,
-0.036766547709703445,
0.0442916639149189,
-0.06240004673600197,
-0.03372557461261749,
-0.028674470260739326,
-0.017936576157808304,
0.011914766393601894,
-0.09511196613311768,
0.01800530031323433,
-0.04838065057992935,
0.01225837878882885,
0.0580018050968647,
0.04216126352548599,
0.00844857469201088,
-0.021492967382073402,
-0.0361136831343174,
-0.0022699907422065735,
-0.0469374805688858,
0.01356410700827837,
0.05312250554561615,
-0.009432165883481503,
0.03298680856823921,
0.037316326051950455,
-0.025564776733517647,
-0.032333943992853165,
-0.02022160030901432,
-0.056008853018283844,
-0.04284849017858505,
0.03288372606039047,
0.0033674032893031836,
-0.0241216029971838,
0.021321160718798637,
0.040615007281303406,
0.028485482558608055,
0.005270157940685749,
-0.030358171090483665,
-0.04453219100832939,
0.03360531106591225,
-0.007924565114080906,
0.03314143419265747,
0.03793482854962349,
0.049308404326438904,
-0.06824146211147308,
-0.05037360638380051,
0.0477277897298336,
-0.0004971644375473261,
0.003672359511256218,
-0.002963658655062318,
-0.023159489035606384,
0.05604321137070656,
-0.00926894973963499,
0.036319851875305176,
-0.009243178181350231,
-0.04927404597401619,
0.01523921824991703,
-0.0021808661986142397,
-0.0061163040809333324,
0.019448472186923027,
-0.02238635905086994,
-0.04542558267712593,
-0.002738162875175476,
0.024499576538801193,
-0.033072710037231445,
-0.00792026985436678,
0.02185375988483429,
0.01344384253025055,
-0.0010823796037584543,
-0.015067411586642265,
0.024774467572569847,
0.02752336859703064,
-0.0180568415671587,
-0.049308404326438904,
0.016381729394197464,
0.040958620607852936,
0.036182403564453125,
-0.014740980230271816,
0.005411898251622915,
-0.01932820864021778,
-0.03951544687151909,
0.030753325670957565,
-0.028038786724209785,
-0.040374480187892914,
-0.019654639065265656,
0.03379429876804352,
-0.03659474104642868,
-0.013864767737686634,
-0.002381664700806141,
0.0474528968334198,
-0.03862205520272255,
0.0016718900296837091,
-0.008409918285906315,
0.016364550217986107,
0.028537025675177574,
0.030306629836559296,
-0.02456830069422722,
-0.021733496338129044,
0.05343175679445267,
0.006700445432215929,
0.021974025294184685,
-0.0027918522246181965,
-0.012713666073977947,
0.055459070950746536,
-0.021441426128149033,
0.01511895377188921,
0.005716854240745306,
0.03360531106591225,
-0.07023441046476364,
0.03621676564216614,
0.032677557319402695,
0.011665646918118,
-0.07394542545080185,
0.08549080789089203,
0.004243615549057722,
0.03221368044614792,
-0.07030313462018967,
-0.05724585801362991,
-0.052057307213544846,
0.011665646918118,
-0.025066537782549858,
0.012447365559637547,
0.05394717678427696,
0.012035030871629715,
0.0052658626809716225,
0.04948021098971367,
0.04247051477432251
] |
21,222 | tfields.points_3d | balls |
Args:
radius (float): radius of spheres
spacing (tuple of int): n_phi, n_theta
Returns:
tfields.Mesh3D: Builds a sphere around each point with a resolution
defined by spacing and given radius
| def balls(self, radius, spacing=(5, 3)):
"""
Args:
radius (float): radius of spheres
spacing (tuple of int): n_phi, n_theta
Returns:
tfields.Mesh3D: Builds a sphere around each point with a resolution
defined by spacing and given radius
"""
sphere = tfields.Mesh3D.grid(
(radius, radius, 1),
(-np.pi, np.pi, spacing[0]),
(-np.pi / 2, np.pi / 2, spacing[1]),
coord_sys="spherical",
)
sphere.transform("cartesian")
balls = []
with self.tmp_transform("cartesian"):
for point in self:
ball = sphere.copy()
ball += point
balls.append(ball)
return tfields.Mesh3D.merged(*balls)
| (self, radius, spacing=(5, 3)) | [
0.013032026588916779,
-0.03125850856304169,
-0.07841242104768753,
-0.012848476879298687,
-0.06828048080205917,
0.027789421379566193,
-0.08259735256433487,
-0.041298676282167435,
-0.05007235333323479,
0.058442216366529465,
0.0052816420793533325,
-0.012811766937375069,
0.0038545432034879923,
0.029551498591899872,
-0.025513404980301857,
-0.04757607728242874,
0.02498111128807068,
0.023641198873519897,
-0.02665141224861145,
-0.022393060848116875,
0.013619385659694672,
0.03817833214998245,
0.02398994192481041,
0.0406746082007885,
0.028266649693250656,
0.006181035190820694,
-0.015353930182754993,
0.0369485504925251,
-0.010297136381268501,
0.046181097626686096,
0.002147531136870384,
-0.009764842689037323,
0.02013539895415306,
0.01426181010901928,
0.012857655063271523,
-0.014500424265861511,
0.07301606237888336,
0.030450891703367233,
-0.026724832132458687,
0.03825175389647484,
0.053449664264917374,
0.011499387212097645,
0.05774472653865814,
0.012729169800877571,
0.006304931361228228,
-0.028138164430856705,
0.07437432557344437,
0.030047081410884857,
-0.07657692581415176,
0.03483773022890091,
0.00983826257288456,
0.009856618009507656,
0.04434560239315033,
-0.03680171072483063,
0.03366301208734512,
0.007048307452350855,
0.004522205330431461,
0.03263513371348381,
-0.0008781704818829894,
0.01991513930261135,
0.04790646582841873,
-0.01426181010901928,
0.02543998509645462,
-0.04269365593791008,
-0.018712889403104782,
-0.024962756782770157,
-0.010030989535152912,
0.020282238721847534,
0.04412534087896347,
-0.029055913910269737,
0.01823566108942032,
0.041188545525074005,
0.024026652798056602,
-0.0029643273446708918,
-0.007511770352721214,
0.044308893382549286,
0.034745953977108,
0.03571876510977745,
0.015335575677454472,
-0.05829537659883499,
-0.01681314967572689,
-0.0025352798402309418,
0.006947355344891548,
0.02099808305501938,
0.004712637979537249,
0.019162585958838463,
-0.02951478771865368,
0.016317566856741905,
0.014674796722829342,
-0.060975201427936554,
-0.011848131194710732,
-0.035113051533699036,
0.016537826508283615,
-0.03514976426959038,
-0.005524845328181982,
0.02929452806711197,
0.05341295525431633,
-0.0752553641796112,
-0.020869597792625427,
0.023145614191889763,
-0.014968476258218288,
-0.03663651645183563,
-0.00912241917103529,
0.02090630866587162,
0.013481724075973034,
0.019382845610380173,
-0.054477542638778687,
-0.05572568252682686,
0.001640475238673389,
0.09405085444450378,
-0.008709432557225227,
0.13318364322185516,
0.004691988695412874,
0.014876700937747955,
-0.07547562569379807,
-0.04853053390979767,
-0.023090548813343048,
0.01691410318017006,
-0.0522015281021595,
-0.04082144796848297,
0.06449935585260391,
0.009159129112958908,
-0.001970864599570632,
0.046952005475759506,
0.069491907954216,
0.03283703699707985,
0.019988559186458588,
0.0017919037491083145,
-0.05532187223434448,
0.0008242527837865055,
-0.007502593100070953,
0.06310437619686127,
0.04082144796848297,
-0.0687209963798523,
0.013316528871655464,
-0.014124147593975067,
-0.009104063734412193,
-0.08200999349355698,
-0.01934613659977913,
0.024797560647130013,
0.011297482997179031,
0.014564666897058487,
0.01978665590286255,
0.005093503277748823,
-0.09214193373918533,
0.03008379228413105,
0.0033497815020382404,
-0.030138857662677765,
-0.016629600897431374,
0.0043960148468613625,
0.009026055224239826,
0.008177137933671474,
0.11894018948078156,
0.048603955656290054,
-0.02843184396624565,
-0.008590124547481537,
0.040527768433094025,
-0.031001539900898933,
0.020263884216547012,
0.020502498373389244,
-0.023182323202490807,
-0.0014626614283770323,
-0.07899978011846542,
-0.005703805945813656,
-0.04632793739438057,
-0.04328101500868797,
-0.009581292979419231,
-0.03972015157341957,
-0.05106351897120476,
0.000634967174846679,
-0.01383046805858612,
-0.0010944149689748883,
-0.038655560463666916,
0.045079801231622696,
-0.0007015039445832372,
-0.014683973975479603,
-0.022705094888806343,
-0.0032717729918658733,
0.04320759326219559,
-0.037223875522613525,
-0.009361033327877522,
-0.05891944468021393,
0.0763566642999649,
0.001626709010452032,
0.007341986987739801,
0.056680139154195786,
-0.0067133293487131596,
-0.021475311368703842,
-0.005047616083174944,
0.00015702101518400013,
0.03162560984492302,
-0.0013089386047795415,
-0.025458339601755142,
0.019199296832084656,
-0.02797297015786171,
0.04291391372680664,
-0.0010404972126707435,
-0.029147688299417496,
-0.053449664264917374,
-0.003280950477346778,
-0.04133538529276848,
0.022374706342816353,
-0.025605179369449615,
-0.004712637979537249,
0.038985952734947205,
-0.013362416066229343,
0.018547695130109787,
-0.015950467437505722,
-0.0016611245227977633,
0.026394443586468697,
0.06042455509305,
-0.025605179369449615,
0.008920514024794102,
0.059102997183799744,
-0.010783543810248375,
0.02775271050632,
-0.03133193030953407,
-0.032561711966991425,
0.01453713420778513,
-0.006956532597541809,
-0.008980168029665947,
-0.03603080287575722,
-0.01249055564403534,
0.015363107435405254,
-0.054697804152965546,
0.06343476474285126,
0.03138699382543564,
0.03450733795762062,
-0.023622842505574226,
-0.07936687767505646,
0.04100499674677849,
-0.017941981554031372,
0.03188258036971092,
-0.007754973601549864,
-0.013637741096317768,
-0.11027664691209793,
0.02398994192481041,
-0.005194455850869417,
-0.006034195423126221,
-0.003076751483604312,
0.032341454178094864,
-0.04625451937317848,
-0.011811421252787113,
0.018391678109765053,
-0.007695320062339306,
0.04977867379784584,
0.01914423145353794,
0.04390508309006691,
-0.02290700003504753,
-0.03581054136157036,
-0.059102997183799744,
0.020649338141083717,
0.016868215054273605,
0.01277505699545145,
0.03291045501828194,
-0.11930728703737259,
0.004914542660117149,
0.026174183934926987,
0.012674105353653431,
-0.002542163012549281,
0.004845711402595043,
-0.017960336059331894,
0.06255372613668442,
0.03570041060447693,
0.031350284814834595,
0.05752446874976158,
-0.025238079950213432,
0.02663305774331093,
-0.02220951020717621,
0.025366565212607384,
0.07775164395570755,
-0.03795807436108589,
0.002512336242944002,
-0.007676965091377497,
0.027073577046394348,
0.04768620431423187,
-0.006502247415482998,
0.055138323456048965,
-0.01244466844946146,
-0.05201797932386398,
0.02378803864121437,
-0.021640507504343987,
0.019437910988926888,
-0.02896413952112198,
0.00514397956430912,
-0.000060729129472747445,
-0.01870371215045452,
0.037774521857500076,
0.03272690623998642,
-0.003065279684960842,
-0.06314108520746231,
-0.020924663171172142,
-0.03125850856304169,
-0.06358160823583603,
-0.025164660066366196,
0.008617657236754894,
-0.03360794484615326,
-0.01723531447350979,
0.021199988201260567,
-0.09471163153648376,
0.008851682767271996,
0.013812113553285599,
0.08259735256433487,
0.028119809925556183,
-0.0147665711119771,
0.04188603535294533,
0.02578873001039028,
0.0006326728034764528,
0.01000345777720213,
-0.030487600713968277,
0.0026958859525620937,
-0.006387528497725725,
0.009058176539838314,
0.0013743281597271562,
0.020722758024930954,
0.03597573563456535,
-0.05121035873889923,
-0.016280855983495712,
-0.007185969967395067,
-0.016638778150081635,
-0.005749693606048822,
-0.05954351648688316,
-0.030928120017051697,
0.03116673417389393,
0.04966854304075241,
-0.01934613659977913,
-0.010324669070541859,
0.0431341752409935,
-0.060644812881946564,
0.06471961736679077,
-0.006800515577197075,
0.014996008947491646,
-0.007699908688664436,
0.038435302674770355,
0.0004775159468408674,
-0.005217399448156357,
0.032341454178094864,
0.005662507377564907,
0.053045857697725296,
-0.051247067749500275,
0.018217304721474648,
-0.02178734727203846,
-0.05565226078033447,
0.041298676282167435,
-0.01759323664009571,
0.03107495978474617,
0.05715736746788025,
-0.04023408889770508,
0.081349216401577,
-0.019180940464138985,
0.045410189777612686,
-0.002886318601667881,
0.015555835328996181,
0.008218436501920223,
-0.004276707302778959,
-0.010425621643662453,
-0.03858214244246483,
-0.03524153679609299,
-0.009379388764500618,
0.02178734727203846,
-0.02566024474799633,
-0.013261464424431324,
0.045410189777612686,
0.05752446874976158,
-0.024834271520376205,
-0.009489518590271473,
-0.02422855794429779,
0.024907691404223442,
0.009044410660862923,
0.0065848445519804955,
-0.0090031111612916,
-0.03568205609917641,
-0.006818870548158884,
0.007810038514435291,
-0.015344752930104733,
0.05400031432509422,
0.014023195020854473,
-0.012563975527882576,
0.007415406871587038,
-0.026339378207921982,
0.009911682456731796,
-0.02865210361778736,
0.04100499674677849,
0.02907426841557026,
0.047833044081926346,
-0.017189426347613335,
0.004357010591775179,
-0.00669038575142622,
0.011279127560555935,
0.05939667671918869,
0.06123217195272446,
-0.0008081921841949224,
0.05829537659883499,
0.0237696822732687,
-0.10043838620185852,
0.029551498591899872,
-0.010260426439344883,
0.008502938784658909,
-0.05539529398083687,
0.06380186975002289,
0.009264670312404633,
-0.05969035625457764,
0.008406574837863445,
-0.03188258036971092,
-0.06596775352954865,
-0.05671684816479683,
0.011196530424058437,
-0.052605338394641876,
0.006750039290636778,
0.03414024040102959,
0.01121488492935896,
-0.03215790167450905,
0.04966854304075241,
-0.014289341866970062,
0.008167960681021214,
-0.002526102354750037,
-0.009691422805190086,
-0.017611591145396233,
0.012481378391385078,
0.04544689878821373,
0.06082836166024208,
-0.02189747616648674,
-0.013729515485465527,
0.06416896730661392,
0.04309746250510216,
0.05807511880993843,
0.02520137093961239,
0.0008294151048175991,
0.007094195112586021,
-0.0037099977489560843,
-0.008424930274486542,
-0.0683906078338623,
-0.05730420723557472,
-0.039646729826927185,
0.04280378296971321,
-0.006121381651610136,
-0.023512713611125946,
-0.025513404980301857,
-0.00912241917103529,
0.015464060008525848,
0.01845592074096203,
0.029221108183264732,
-0.06530697643756866,
-0.04181261733174324,
-0.025384919717907906,
-0.004955841228365898,
0.03063444048166275,
-0.03531495854258537,
0.03718716278672218,
-0.022943709045648575,
0.061342302709817886,
0.03454405069351196,
0.02788119576871395,
-0.01045315433293581,
0.07044636458158493,
-0.017886916175484657,
0.041629064828157425,
-0.07470472157001495,
-0.05980048328638077,
-0.0024733319878578186,
0.0063645849004387856,
-0.020961372181773186,
0.013858000747859478,
0.033350974321365356,
-0.04320759326219559,
-0.12444668263196945,
0.01945626549422741,
-0.016170727089047432,
0.00580934714525938,
-0.04842040315270424,
0.0002637092547956854,
-0.036104220896959305,
-0.0031203445978462696,
0.02521972544491291,
-0.02843184396624565,
-0.0022806047927588224,
-0.04302404448390007,
0.019639816135168076,
-0.07848583906888962,
-0.02931288257241249,
-0.06266386061906815,
-0.004386837128549814,
-0.03197435289621353,
0.019970204681158066,
-0.030138857662677765,
0.06438922882080078,
0.05455096438527107,
0.0262292493134737,
0.05322940647602081,
-0.02731219120323658,
-0.027348902076482773,
0.001428245916031301,
0.012141810730099678,
0.004368482157588005,
-0.04302404448390007,
0.05121035873889923,
0.0021383536513894796,
0.03705868124961853,
-0.027146996930241585,
0.05201797932386398,
-0.008943458087742329,
-0.015500769950449467,
0.01311462465673685,
-0.038655560463666916,
0.026688123121857643,
-0.015262155793607235,
-0.008571770042181015,
-0.05752446874976158,
-0.027146996930241585,
0.055248454213142395,
0.020098689943552017,
-0.030359115451574326,
-0.05231165885925293,
-0.0025674011558294296,
0.02343929372727871,
-0.0004990256857126951,
-0.04100499674677849,
-0.008824151009321213,
-0.06747286021709442,
-0.03459911420941353,
0.014188390225172043,
0.02832171507179737,
-0.05010906234383583,
0.013362416066229343,
-0.012967784889042377,
0.00891133677214384,
0.019988559186458588,
-0.015555835328996181,
0.002507747383788228,
-0.022136090323328972,
0.000288947339868173,
0.005079737398773432,
-0.05157746002078056,
0.017501462250947952,
0.01232536043971777,
0.022962063550949097,
0.007988999597728252,
-0.015078606083989143,
0.07092359662055969,
-0.018336612731218338,
-0.00983826257288456,
0.02566024474799633,
0.043978501111269,
-0.05653329938650131,
-0.011178174987435341,
0.018400855362415314,
-0.004717226605862379,
-0.08384548872709274,
0.0227968692779541,
0.02644950896501541,
0.05484464392066002,
0.0019375962438061833,
-0.01320639904588461,
-0.005194455850869417,
0.03704032301902771,
-0.02942301332950592,
-0.0027532451786100864,
-0.05998403578996658,
-0.031552188098430634,
0.026486217975616455,
0.021273408085107803,
0.0090031111612916,
0.0329655222594738,
0.047612786293029785,
-0.012453845702111721,
0.02079617790877819,
-0.00580475851893425,
0.04056447744369507,
0.0267798975110054,
-0.018887260928750038,
0.01837332174181938,
0.05781814828515053,
0.020851243287324905,
-0.021475311368703842,
0.0623701810836792,
-0.06137901172041893,
-0.012921896763145924,
-0.027734356001019478,
-0.05528516322374344,
-0.041959457099437714,
0.03094647452235222,
-0.026174183934926987,
-0.056349750608205795,
-0.057120658457279205,
0.03276361897587776,
0.03557192534208298,
-0.09640029072761536,
0.03727893903851509,
0.06369173526763916,
0.019749945029616356,
0.019492976367473602,
0.029698338359594345,
0.008039475418627262,
-0.0219892505556345,
-0.06181953102350235,
-0.024283621460199356,
-0.043831661343574524,
-0.029349593445658684,
0.006598610896617174,
0.00043478328734636307,
-0.018602760508656502,
0.058882735669612885,
-0.04930144175887108,
0.027495741844177246,
-0.04801659658551216,
-0.040748026221990585,
-0.027789421379566193,
-0.0376276820898056,
-0.04027079790830612,
-0.004109218250960112,
0.01011358667165041,
-0.031900934875011444,
0.014968476258218288,
-0.07283250987529755,
0.03164396435022354,
-0.01049904152750969,
-0.03169902786612511,
0.03593902662396431,
0.09265587478876114,
-0.04133538529276848,
-0.043941792100667953,
0.01409661490470171,
0.008920514024794102,
0.009507873095571995,
-0.032671842724084854,
-0.03549850732088089,
0.053376246243715286,
-0.05774472653865814,
0.023531068116426468,
-0.05682697892189026,
-0.002147531136870384,
-0.032561711966991425,
0.026798252016305923,
-0.07224515080451965,
-0.031148379668593407,
0.028138164430856705,
-0.036654870957136154,
0.040307510644197464,
0.003895841771736741,
-0.0015314925694838166,
0.06615130603313446,
-0.04181261733174324,
-0.04045434668660164,
0.0017333972500637174,
-0.0002763282973319292,
-0.06655511260032654,
-0.0025903447531163692,
-0.004531382583081722,
0.04335443302989006,
-0.0054789576679468155,
-0.055248454213142395,
0.026174183934926987,
-0.034250371158123016,
0.03850872069597244,
0.015638431534171104,
-0.04687858745455742,
-0.03751755505800247,
-0.006428827531635761,
0.0129861393943429,
-0.028670459985733032,
0.01006769947707653,
0.008929691277444363,
-0.05007235333323479,
0.006965710315853357,
-0.0006544693023897707,
-0.06255372613668442,
-0.0059378319419920444,
0.0003567746898625046,
0.017730899155139923,
0.07819215953350067,
0.015023540705442429,
-0.010976270772516727,
-0.026926737278699875,
0.0023253450635820627,
0.006892290432006121,
0.010205361992120743,
-0.0005930949118919671,
0.017428042367100716,
-0.01488587912172079,
-0.00978319812566042,
-0.012582330033183098,
-0.047172266989946365,
-0.019272716715931892,
0.04155564680695534,
-0.015005186200141907,
0.05561555176973343,
0.0021406481973826885,
0.03439721092581749,
0.048934344202280045,
0.024742497131228447,
-0.00034645001869648695,
0.04731910675764084,
0.058882735669612885,
0.021952541545033455,
0.01570267416536808,
0.04331772401928902,
-0.0001753759861458093,
0.008475406095385551,
0.020263884216547012,
0.009099475108087063,
0.027348902076482773,
-0.032029420137405396,
-0.05836879834532738,
0.04239997640252113,
-0.017070120200514793,
0.024834271520376205,
0.03320413455367088,
0.03358959034085274,
0.00891133677214384,
0.004044976085424423,
-0.006185624282807112,
0.03463582322001457,
0.026467863470315933,
-0.0295331422239542,
-0.00580934714525938,
0.007374108303338289,
0.0807618573307991,
0.03726058453321457,
0.00845705159008503,
0.0056303865276277065,
-0.04199616611003876,
0.028835654258728027,
0.03735236078500748,
-0.003833893919363618,
-0.009374800138175488,
-0.019437910988926888,
0.03514976426959038,
0.007814627140760422,
-0.05682697892189026,
0.012031680904328823,
-0.012701637111604214,
0.05825866758823395,
0.01824483834207058,
0.014812459237873554,
-0.011572807095944881,
0.018299901857972145,
-0.009581292979419231,
-0.04225313663482666,
-0.05550542101264,
0.012674105353653431,
-0.025146305561065674,
-0.03531495854258537,
-0.03397504612803459,
-0.0681336373090744,
0.023053839802742004,
0.014775749295949936,
0.009865795262157917,
-0.011279127560555935,
-0.025917213410139084,
-0.041629064828157425,
0.02334751933813095,
0.07437432557344437,
0.009700600057840347,
0.0024067950434982777,
0.011471854522824287,
-0.03241487219929695,
0.04357469454407692,
-0.051797717809677124,
0.00109154696110636,
-0.06343476474285126,
-0.05374334380030632,
-0.010159474797546864,
0.005593676585704088,
0.06281069666147232,
0.03041418083012104,
0.03263513371348381,
-0.015262155793607235,
0.021824056282639503
] |
21,231 | tfields.core | equal |
Evaluate, whether the instance has the same content as other.
Args:
optional:
rtol (float)
atol (float)
equal_nan (bool)
see numpy.isclose
| def equal(
self, other, rtol=None, atol=None, equal_nan=False, return_bool=True
): # noqa: E501 pylint: disable=too-many-arguments
"""
Evaluate, whether the instance has the same content as other.
Args:
optional:
rtol (float)
atol (float)
equal_nan (bool)
see numpy.isclose
"""
if issubclass(type(other), Tensors) and self.coord_sys != other.coord_sys:
other = other.copy()
other.transform(self.coord_sys)
self_array, other_array = np.asarray(self), np.asarray(other)
if rtol is None and atol is None:
mask = self_array == other_array
if equal_nan:
both_nan = np.isnan(self_array) & np.isnan(other_array)
mask[both_nan] = both_nan[both_nan]
else:
if rtol is None:
rtol = 0.0
if atol is None:
atol = 0.0
mask = np.isclose(
self_array, other_array, rtol=rtol, atol=atol, equal_nan=equal_nan
)
if return_bool:
return bool(np.all(mask))
return mask
| (self, other, rtol=None, atol=None, equal_nan=False, return_bool=True) | [
0.04263309761881828,
-0.05402707681059837,
-0.009578298777341843,
0.026692846789956093,
-0.041312605142593384,
-0.0115731880068779,
-0.08503982424736023,
0.026956945657730103,
-0.04044485092163086,
0.02158064767718315,
-0.00023182336008176208,
-0.03627585992217064,
0.07609819620847702,
0.015232843346893787,
-0.011195904575288296,
-0.007654150016605854,
-0.017317337915301323,
-0.003886025631800294,
-0.014355658553540707,
0.011846719309687614,
-0.04221808537840843,
0.0017708770465105772,
-0.0029145192820578814,
-0.018788745626807213,
0.023882079869508743,
0.038086824119091034,
0.03642677515745163,
0.012497534044086933,
-0.06081818789243698,
0.07360811531543732,
-0.04406677559018135,
-0.02891882322728634,
0.023391611874103546,
0.036615416407585144,
0.04965057969093323,
-0.029937488958239555,
0.003923754207789898,
0.004140692297369242,
-0.015827065333724022,
-0.05410253256559372,
-0.04301038011908531,
-0.05568712577223778,
0.05542302876710892,
-0.01017723698168993,
-0.002596185775473714,
0.00954057089984417,
-0.03039023093879223,
0.01712869666516781,
-0.0222408939152956,
0.07983330637216568,
0.02020356059074402,
-0.014676349237561226,
0.002688148757442832,
0.0750795230269432,
-0.018741585314273834,
0.03480445221066475,
0.020694030448794365,
0.012893682345747948,
-0.04765097424387932,
-0.01956217736005783,
-0.016628794372081757,
-0.036653146147727966,
0.0044826059602200985,
-0.022731363773345947,
0.01299743540585041,
-0.001820395584218204,
-0.07349493354558945,
-0.012469237670302391,
0.03425739333033562,
0.03844524547457695,
-0.04168988764286041,
0.0020279018208384514,
0.00447317399084568,
-0.02276909165084362,
-0.03540810942649841,
0.050027865916490555,
-0.008404002524912357,
0.048971470445394516,
-0.0187698807567358,
-0.02208998054265976,
-0.047877345234155655,
0.0186001043766737,
0.040935318917036057,
-0.04621729627251625,
-0.07277809083461761,
0.0009219879284501076,
-0.08043695986270905,
0.0750795230269432,
0.060591816902160645,
-0.04644366726279259,
-0.003430926939472556,
0.013638818636536598,
0.018788745626807213,
-0.016562769189476967,
0.033163268119096756,
0.020467659458518028,
-0.017402226105332375,
-0.031654130667448044,
-0.027919020503759384,
-0.005984668154269457,
-0.001852228888310492,
0.0410107746720314,
0.006343088112771511,
0.026617389172315598,
0.024485735222697258,
-0.006776964757591486,
-0.03763408586382866,
-0.025240303948521614,
-0.00964903924614191,
0.021939067170023918,
-0.07247626781463623,
0.06576061248779297,
-0.08624713122844696,
0.04206717014312744,
-0.028088796883821487,
-0.024297092109918594,
-0.017298473045229912,
0.03184277564287186,
-0.014336793683469296,
-0.0338989719748497,
0.021995659917593002,
0.08262521028518677,
0.05504574254155159,
-0.010299854911863804,
0.07462678849697113,
0.006338371895253658,
0.0694579929113388,
0.015949683263897896,
-0.09115182608366013,
-0.034634675830602646,
0.05048060789704323,
-0.011073286645114422,
0.04553818330168724,
0.06334599107503891,
0.019581042230129242,
0.04859418421983719,
0.016194917261600494,
0.024995068088173866,
-0.024674376472830772,
0.004501470364630222,
0.03725679963827133,
0.01640242338180542,
0.015666719526052475,
0.002204753691330552,
-0.02544781006872654,
0.007677730638533831,
-0.0934155285358429,
-0.03512514382600784,
-0.024617783725261688,
0.02516484633088112,
-0.03738885000348091,
-0.03280484676361084,
0.07100486010313034,
-0.015166819095611572,
-0.028428353369235992,
-0.05715853348374367,
0.06734520196914673,
-0.002149339998140931,
-0.012261731550097466,
0.05383843556046486,
-0.03338963910937309,
0.016506176441907883,
0.05112198740243912,
0.010375311598181725,
-0.019288647919893265,
-0.005418742075562477,
-0.0634969025850296,
-0.05259339511394501,
-0.04263309761881828,
0.006805261131376028,
0.009507558308541775,
-0.039577096700668335,
0.007309878710657358,
0.005503631196916103,
-0.04202944412827492,
-0.024014130234718323,
0.003072506980970502,
-0.008635088801383972,
-0.01278049685060978,
-0.030050674453377724,
0.027409685775637627,
-0.05006559193134308,
-0.040633492171764374,
0.03001294657588005,
0.02665511891245842,
0.03325758874416351,
-0.03106934204697609,
-0.02142973430454731,
0.021090177819132805,
0.03499309718608856,
-0.01258242316544056,
0.037426579743623734,
-0.029352698475122452,
-0.010167805477976799,
0.024825289845466614,
-0.049084655940532684,
0.007243853993713856,
-0.00022931795683689415,
0.06798658519983292,
0.06123320013284683,
-0.014968744479119778,
-0.05051833391189575,
0.03657769039273262,
-0.02703240141272545,
0.0380302332341671,
-0.02382548712193966,
-0.032880306243896484,
-0.019882868975400925,
0.010148940607905388,
0.01881704293191433,
-0.039199814200401306,
-0.01104499027132988,
-0.05602668225765228,
0.016100596636533737,
0.04700959101319313,
0.029899761080741882,
-0.035276059061288834,
-0.02582509256899357,
-0.0005376297631300986,
-0.00018230483692605048,
0.08594530820846558,
-0.05613986775279045,
0.023787759244441986,
0.027560599148273468,
-0.0187698807567358,
0.037841591984033585,
-0.020939264446496964,
0.023372747004032135,
0.004501470364630222,
-0.0562153235077858,
-0.0012497534044086933,
0.019250918179750443,
0.024315956979990005,
-0.05210292711853981,
0.0015751608880236745,
0.0017024943372234702,
0.019769683480262756,
0.045085445046424866,
-0.03255961462855339,
0.010931805707514286,
-0.061836857348680496,
-0.0027494574896991253,
-0.017175856977701187,
0.04482134431600571,
-0.002007858594879508,
-0.08458708226680756,
-0.03893571346998215,
0.027277637273073196,
0.022297486662864685,
0.017298473045229912,
-0.04572682827711105,
-0.02261817827820778,
0.010469632223248482,
-0.02986203320324421,
0.050442878156900406,
-0.039162084460258484,
-0.06545878201723099,
-0.02676830254495144,
0.026485340669751167,
-0.0030984452459961176,
0.04648139700293541,
0.03344622999429703,
0.009281187318265438,
0.039841197431087494,
-0.05742263421416283,
0.04429314658045769,
-0.035691071301698685,
0.017732350155711174,
0.04334993660449982,
-0.02880563773214817,
-0.011837286874651909,
0.028711317107081413,
-0.024315956979990005,
-0.00850775558501482,
0.008347409777343273,
0.0018369017634540796,
0.04089759290218353,
-0.06734520196914673,
-0.03344622999429703,
-0.045613642781972885,
-0.03095615655183792,
-0.028975415974855423,
-0.01752484403550625,
-0.04021847993135452,
-0.019203757867217064,
-0.013874621130526066,
-0.06900525093078613,
-0.022863414138555527,
0.020844943821430206,
-0.042670827358961105,
-0.031823910772800446,
-0.016723114997148514,
-0.0020137536339461803,
-0.017138127237558365,
0.03540810942649841,
0.0246366485953331,
-0.06364782154560089,
0.01506306603550911,
0.01888306625187397,
-0.003841223195195198,
-0.01058281771838665,
0.02825857512652874,
-0.0077956318855285645,
0.012969139032065868,
0.0673074722290039,
0.022410672158002853,
-0.013459608890116215,
0.05776218697428703,
0.031031612306833267,
0.03789818286895752,
0.042934924364089966,
-0.011101583018898964,
0.029390428215265274,
0.03238983452320099,
0.0388602577149868,
0.033031217753887177,
0.010969533585011959,
-0.03054114431142807,
0.011497731320559978,
0.01212025061249733,
0.0131860775873065,
0.007611705921590328,
-0.027504008263349533,
-0.04485907405614853,
0.028088796883821487,
-0.07036347687244415,
-0.004812729544937611,
0.013497336767613888,
0.034634675830602646,
0.07330629229545593,
0.015968548133969307,
-0.009186866693198681,
0.04538727179169655,
0.007210841402411461,
0.03210687264800072,
-0.007465508300811052,
0.010733731091022491,
0.011695805937051773,
0.011214768514037132,
-0.01217684242874384,
0.010299854911863804,
0.021467462182044983,
0.011101583018898964,
-0.04368949308991432,
-0.0368795171380043,
0.023636845871806145,
-0.011941039934754372,
-0.0278624277561903,
0.04255764186382294,
0.011554324068129063,
-0.0548948310315609,
-0.031163662672042847,
0.026579661294817924,
-0.005838470533490181,
0.02478756196796894,
0.06496831029653549,
-0.0077956318855285645,
0.009408521465957165,
-0.02920178510248661,
-0.01741165854036808,
0.005102766677737236,
-0.006154445931315422,
0.04953739419579506,
-0.043991319835186005,
-0.06791112571954727,
0.0029098032973706722,
-0.025881685316562653,
-0.03321985900402069,
-0.02037333883345127,
0.054970286786556244,
-0.057649001479148865,
-0.027654921635985374,
0.026956945657730103,
-0.03804909810423851,
0.0002467083977535367,
-0.010280990041792393,
-0.05598895251750946,
-0.0064091128297150135,
-0.030314773321151733,
-0.07315538078546524,
0.060742732137441635,
0.011686373502016068,
-0.004661816172301769,
-0.003077222965657711,
0.035559020936489105,
-0.012959707528352737,
0.027390822768211365,
-0.025881685316562653,
-0.016194917261600494,
0.0039567663334310055,
-0.019241485744714737,
-0.01278049685060978,
-0.03976573795080185,
0.05153699964284897,
-0.0950755774974823,
0.004426013678312302,
-0.02531575970351696,
0.04368949308991432,
-0.09198185056447983,
-0.039199814200401306,
0.031276848167181015,
0.030918428674340248,
-0.006173310335725546,
-0.024617783725261688,
0.012884249910712242,
0.026692846789956093,
-0.0013652966590598226,
0.001842796802520752,
-0.02127882093191147,
0.04716050624847412,
-0.01130908913910389,
-0.0338989719748497,
0.02801334112882614,
0.0158742256462574,
-0.04678322374820709,
0.06210095435380936,
-0.03444603458046913,
-0.017666324973106384,
0.06896752119064331,
-0.01507249753922224,
-0.021769288927316666,
0.0033224576618522406,
0.00596580421552062,
-0.01756257191300392,
0.0272021796554327,
-0.017770078033208847,
0.04776415973901749,
0.02197679691016674,
-0.016515608876943588,
-0.03565334156155586,
-0.021203363314270973,
-0.03188050165772438,
-0.007885236293077469,
0.030446823686361313,
0.01745881885290146,
0.04980149492621422,
0.03763408586382866,
-0.036615416407585144,
-0.017817240208387375,
0.0037280379328876734,
-0.005291408859193325,
-0.03853956609964371,
-0.02891882322728634,
-0.010611114092171192,
-0.07017483562231064,
-0.05798855796456337,
0.025504400953650475,
-0.0008807224803604186,
0.00800313800573349,
0.00824365671724081,
0.007239137776196003,
0.04980149492621422,
-0.048028260469436646,
-0.022580450400710106,
0.012356053106486797,
-0.033804651349782944,
0.025259166955947876,
-0.09213276207447052,
-0.055234383791685104,
-0.01754370890557766,
0.009267039597034454,
-0.013101188465952873,
-0.0127333365380764,
-0.02880563773214817,
0.011167608201503754,
0.0272021796554327,
-0.0008170557557605207,
-0.0059327916242182255,
0.018119066953659058,
0.0037987788673490286,
0.033295318484306335,
-0.04323675110936165,
-0.027900155633687973,
0.028824500739574432,
0.03186163678765297,
0.036653146147727966,
-0.032484155148267746,
0.07028801739215851,
-0.06934481114149094,
-0.028296303004026413,
-0.06289324909448624,
0.029296105727553368,
0.02020356059074402,
-0.046820949763059616,
0.030069539323449135,
-0.024032993242144585,
0.0004795634013134986,
-0.048292357474565506,
0.026409883052110672,
-0.018392598256468773,
-0.00817763153463602,
-0.008116323500871658,
-0.0347289964556694,
0.03533264994621277,
-0.009799953550100327,
0.016166621819138527,
0.04021847993135452,
0.01050736103206873,
0.017090966925024986,
0.013987806625664234,
0.009828249923884869,
0.025523265823721886,
-0.027353093028068542,
0.06138411536812782,
0.023882079869508743,
-0.029258377850055695,
-0.050706975162029266,
-0.016855165362358093,
-0.061950042843818665,
0.06104455888271332,
0.014091559685766697,
0.019241485744714737,
0.014600892551243305,
-0.019241485744714737,
0.06557197123765945,
0.02799447625875473,
-0.032880306243896484,
-0.053649790585041046,
-0.022542722523212433,
-0.029975218698382378,
-0.015798769891262054,
0.06259142607450485,
-0.0021351920440793037,
-0.03399329259991646,
-0.07357039302587509,
0.02559872344136238,
-0.020976994186639786,
0.015421485528349876,
0.01633640006184578,
-0.0562153235077858,
-0.02571190893650055,
-0.04610411077737808,
-0.019486721605062485,
0.02518371120095253,
-0.05266885459423065,
0.05802628770470619,
-0.01890193112194538,
0.04568909853696823,
0.039954379200935364,
0.016062868759036064,
-0.0410107746720314,
0.029032006859779358,
-0.0016128893475979567,
-0.02610805630683899,
-0.012440941296517849,
0.03893571346998215,
0.018722720444202423,
0.013318127021193504,
0.04946193844079971,
0.052178382873535156,
0.04270855337381363,
0.005720569286495447,
0.07764505594968796,
-0.016921190544962883,
-0.011941039934754372,
0.03293689712882042,
0.007899384945631027,
-0.012761632911860943,
0.015383757650852203,
-0.004015717189759016,
0.04584001377224922,
0.009894274175167084,
0.0856434777379036,
0.005498914979398251,
-0.009083113633096218,
-0.010545088909566402,
0.02865472435951233,
0.03652109578251839,
0.015619560144841671,
0.05074470490217209,
0.021486327052116394,
0.006602470763027668,
-0.009531138464808464,
-0.028635859489440918,
0.023353882133960724,
0.01625151000916958,
-0.00820121169090271,
0.02195793204009533,
-0.05949769541621208,
-0.050291962921619415,
0.012695608660578728,
0.024976205080747604,
0.03095615655183792,
-0.011620349250733852,
0.009894274175167084,
-0.029692254960536957,
-0.03684178739786148,
0.027636056765913963,
0.030635464936494827,
-0.014261336997151375,
-0.017619164660573006,
0.08081424236297607,
-0.0023426981642842293,
0.0013063460355624557,
0.03457808494567871,
-0.04791507497429848,
-0.006626051384955645,
0.04821690171957016,
0.06462875753641129,
-0.017449388280510902,
0.024749834090471268,
-0.05278204008936882,
-0.04946193844079971,
-0.06919389218091965,
-0.01782667078077793,
0.025485537946224213,
-0.05945996567606926,
-0.06436465680599213,
0.01752484403550625,
0.02048652432858944,
0.06334599107503891,
-0.00007269349589478225,
0.029541341587901115,
-0.08270066231489182,
0.0051829395815730095,
-0.0002527508477214724,
-0.054970286786556244,
0.03638904541730881,
-0.0418408028781414,
0.024806426838040352,
0.07183488458395004,
-0.022014524787664413,
-0.0038341491017490625,
-0.04380267858505249,
-0.027258772403001785,
-0.05165018513798714,
0.04312356561422348,
-0.048405542969703674,
0.00396855641156435,
-0.010479064658284187,
0.003940260503441095,
-0.025278031826019287,
0.0015185682568699121,
-0.06013907864689827,
-0.03469126671552658,
-0.03280484676361084,
-0.03306894749403,
0.021354276686906815,
0.03082410618662834,
0.0479528047144413,
0.024617783725261688,
0.0729290097951889,
-0.030239317566156387,
0.05957315117120743,
-0.025089388713240623,
-0.045613642781972885,
-0.005956371780484915,
0.005998816341161728,
0.029428156092762947,
-0.010818620212376118,
-0.043991319835186005,
0.11590166389942169,
0.009483978152275085,
0.009922570548951626,
0.008842594921588898,
0.008300249464809895,
-0.010365879163146019,
-0.02878677286207676,
0.023089783266186714,
0.022467264905571938,
0.04406677559018135,
0.019184894859790802,
-0.048292357474565506,
-0.0548948310315609,
0.017798375338315964,
0.00824365671724081,
0.012233435176312923,
0.01507249753922224,
-0.0026268402580171824,
-0.01219570729881525,
-0.034087613224983215,
0.002893297001719475,
-0.009465113282203674,
0.0037516183219850063,
0.0396902821958065,
-0.018449191004037857,
0.015157386660575867,
0.026089191436767578,
-0.04187852889299393,
0.008361557498574257,
0.007597557734698057,
0.05078243464231491,
-0.034766726195812225,
0.024806426838040352,
0.01251639798283577,
0.007823928259313107,
-0.007210841402411461,
0.05595122650265694,
0.030503416433930397,
-0.027881290763616562,
0.05636623874306679,
-0.02490074746310711,
0.022146573290228844,
0.004640593659132719,
0.05342342332005501,
0.011629780754446983,
-0.04082213342189789,
0.028579266741871834,
-0.030295908451080322,
0.012771065346896648,
0.027824698016047478,
-0.03150321915745735,
-0.02288227714598179,
0.029032006859779358,
0.061421845108270645,
0.027107859030365944,
-0.029824303463101387,
0.050556063652038574,
0.01046020071953535,
-0.03210687264800072,
-0.007116520311683416,
0.026296697556972504,
0.0020833152811974287,
-0.09847113490104675,
-0.03942618519067764,
0.002030259696766734,
0.045462727546691895,
0.005093334708362818,
-0.0032352106645703316,
0.020448796451091766,
-0.05761127546429634,
-0.020939264446496964,
0.06323280930519104,
-0.0380302332341671,
-0.0023922165855765343,
0.07394767552614212,
0.03412534296512604,
-0.027560599148273468,
-0.001715463469736278,
0.002314401790499687,
-0.018241683021187782,
0.08503982424736023,
0.026560796424746513,
0.024410277605056763,
-0.062478240579366684,
0.03291803225874901,
-0.05112198740243912,
-0.048820555210113525,
-0.003961482550948858,
0.10375311225652695,
0.048820555210113525,
-0.00007158817606978118,
0.07832416892051697,
-0.027239909395575523,
-0.006413829047232866,
-0.017685189843177795,
-0.019599907100200653,
0.011412842199206352,
0.007871088571846485,
0.0015055991243571043,
0.008121038787066936,
-0.0016977782361209393,
0.048782829195261,
0.010931805707514286,
0.014723510481417179,
0.0639873743057251,
-0.03763408586382866,
0.010648841969668865,
0.021882474422454834,
-0.014034966938197613,
-0.0037704824935644865,
0.05006559193134308,
-0.01789269596338272,
0.07734323292970657,
-0.07164624333381653,
0.0209204014390707,
-0.03227664902806282,
0.08918994665145874
] |
21,241 | tfields.core | plot |
Generic plotting method of Tensors.
Forwarding to rna.plotting.plot_tensor
| def plot(self, *args, **kwargs):
"""
Generic plotting method of Tensors.
Forwarding to rna.plotting.plot_tensor
"""
artist = rna.plotting.plot_tensor(
self, *args, **kwargs
) # pylint: disable=no-member
return artist
| (self, *args, **kwargs) | [
-0.05340714380145073,
-0.07717472314834595,
0.04708077386021614,
0.052847906947135925,
0.019713107496500015,
0.04743029922246933,
-0.08227775990962982,
0.011508051306009293,
0.020569439977407455,
0.002949102083221078,
0.04421468451619148,
0.034008607268333435,
0.05756647139787674,
0.015763496980071068,
-0.031684279441833496,
-0.0026126860175281763,
0.0032396430615335703,
0.05588876083493233,
0.005788978189229965,
0.013220715336501598,
-0.016034375876188278,
0.0054787760600447655,
0.002189981285482645,
-0.025759859010577202,
0.018035396933555603,
0.04508849233388901,
0.030198805034160614,
-0.03586107864975929,
-0.04879343882203102,
0.04215249791741371,
-0.0728406310081482,
-0.06850654631853104,
0.032767798751592636,
0.038901932537555695,
0.019136395305395126,
-0.027140475809574127,
-0.034130942076444626,
0.04155830666422844,
-0.04390011355280876,
0.036105744540691376,
-0.01561494916677475,
-0.04917791485786438,
0.03802812471985817,
-0.03337946534156799,
-0.02404719591140747,
-0.017930539324879646,
-0.027647284790873528,
0.00823563989251852,
-0.0665142610669136,
-0.05452561751008034,
-0.0018765026470646262,
-0.010354625061154366,
-0.034130942076444626,
0.01985291764140129,
0.002050172071903944,
0.07864271849393845,
0.03367656096816063,
0.06661912053823471,
-0.006011798977851868,
0.01328188180923462,
-0.001044746721163392,
0.0172489695250988,
-0.0019398537697270513,
-0.03185904026031494,
0.039915550500154495,
-0.010092481970787048,
0.02617928758263588,
0.007226392161101103,
-0.011621646583080292,
0.014872211962938309,
0.006295786704868078,
0.015405234880745411,
0.0016809881199151278,
-0.03161437436938286,
0.0484788678586483,
-0.039915550500154495,
-0.0028748284094035625,
0.02846866473555565,
0.006885606795549393,
-0.013019738718867302,
-0.010608028620481491,
0.018245110288262367,
0.011534265242516994,
0.009839078411459923,
-0.024641385301947594,
-0.055574189871549606,
-0.032068751752376556,
-0.020674297586083412,
-0.05627323314547539,
-0.005719073116779327,
-0.028014283627271652,
-0.012058550491929054,
0.010223553515970707,
0.010573077015578747,
-0.08227775990962982,
-0.017878111451864243,
0.02586471661925316,
-0.057776182889938354,
0.00002474651591910515,
0.00019100896315649152,
0.026476381346583366,
0.0009540891041979194,
-0.017624707892537117,
0.010590553283691406,
0.00006608173134736717,
-0.02373262494802475,
-0.06116655841469765,
0.04991191253066063,
-0.00805650930851698,
0.07291053980588913,
-0.013701309449970722,
0.08101947605609894,
0.01551883015781641,
0.020691772922873497,
-0.02271900698542595,
-0.014959593303501606,
-0.02789195068180561,
-0.02582976408302784,
-0.03126484900712967,
-0.03988059610128403,
-0.026389000937342644,
0.08821965754032135,
0.01322945300489664,
-0.0030758040957152843,
0.0016252829227596521,
0.030251232907176018,
0.04285154491662979,
0.01501202117651701,
-0.0829768106341362,
-0.07640577107667923,
-0.016838280484080315,
-0.005592371337115765,
0.003230905160307884,
0.05480523779988289,
0.03624555468559265,
0.05103038623929024,
0.03091532737016678,
-0.03736402839422226,
-0.055679045617580414,
0.03376394137740135,
0.001184009830467403,
0.026825904846191406,
0.00465302774682641,
0.010214815847575665,
-0.04110392928123474,
0.0007268990157172084,
-0.03205127641558647,
-0.0217578187584877,
0.03231342136859894,
-0.07423872500658035,
-0.013701309449970722,
0.0023286982905119658,
0.03463774919509888,
0.02326076850295067,
-0.011193480342626572,
0.004880217835307121,
0.019450966268777847,
0.012110978364944458,
0.03238332271575928,
0.0364203155040741,
-0.037468887865543365,
-0.0259870495647192,
0.052812956273555756,
0.003152262419462204,
-0.03656012564897537,
0.024099623784422874,
0.02271900698542595,
-0.001730139832943678,
-0.0302162803709507,
0.004148403648287058,
-0.0021484754979610443,
-0.08877889066934586,
-0.0063394769094884396,
0.014985807240009308,
-0.020412154495716095,
0.0505061037838459,
-0.008100200444459915,
0.05029638856649399,
0.00841040164232254,
0.0404747873544693,
0.02916771173477173,
-0.05158962309360504,
-0.03837764635682106,
-0.020219916477799416,
0.025620050728321075,
-0.011272123083472252,
0.013465381227433681,
-0.027787094935774803,
0.0029993460047990084,
0.022509293630719185,
0.021775295957922935,
0.04533315822482109,
-0.03227846696972847,
-0.007641450967639685,
0.0494924858212471,
-0.047954581677913666,
0.02214229479432106,
-0.0419427827000618,
0.05595866218209267,
-0.0006608173134736717,
0.025392860174179077,
-0.006278310436755419,
0.007086582947522402,
0.022579198703169823,
0.006732690613716841,
0.01774704083800316,
0.06361322104930878,
0.03316975012421608,
-0.019328633323311806,
-0.009393435902893543,
0.03530184179544449,
-0.017231494188308716,
0.020656820386648178,
0.041698116809129715,
-0.007921069860458374,
0.0219850093126297,
-0.03282022848725319,
0.0012342537520453334,
-0.016715947538614273,
-0.000022698528482578695,
0.09066631644964218,
-0.02112867683172226,
-0.04327097162604332,
0.03558146208524704,
0.031404659152030945,
-0.018035396933555603,
0.05029638856649399,
-0.008965269662439823,
0.01794801652431488,
-0.07878252863883972,
-0.0037333446089178324,
0.027839522808790207,
-0.007187070790678263,
0.03656012564897537,
0.009000222198665142,
-0.01868201419711113,
0.02645890600979328,
-0.02315591275691986,
-0.01532659213989973,
0.011883788742125034,
-0.0710231140255928,
0.03173670545220375,
-0.02105877175927162,
0.009498292580246925,
-0.001029454986564815,
0.018751919269561768,
-0.01624409109354019,
0.09681792557239532,
-0.058789800852537155,
-0.045542873442173004,
-0.014347927644848824,
-0.004714194219559431,
0.002920703263953328,
0.023645244538784027,
0.030950279906392097,
-0.020307296887040138,
0.02656376361846924,
-0.038901932537555695,
0.06102675199508667,
-0.002133183879777789,
-0.027332713827490807,
0.03932135924696922,
-0.008419140242040157,
0.04278163984417915,
0.03115999326109886,
-0.05200905352830887,
-0.036175649613142014,
0.018052872270345688,
-0.03318722918629646,
0.02935994789004326,
0.06263455748558044,
0.11639122664928436,
-0.04009031131863594,
-0.015125616453588009,
0.04337582737207413,
0.00658414326608181,
0.004849634598940611,
-0.014557640999555588,
0.011997384019196033,
-0.020412154495716095,
-0.011376979760825634,
-0.07773395627737045,
-0.04288649559020996,
0.02287629246711731,
-0.029377425089478493,
-0.036070793867111206,
0.05816065892577171,
0.02528800256550312,
-0.009297316893935204,
-0.021652963012456894,
0.05484018847346306,
0.037468887865543365,
0.012460501864552498,
0.033344514667987823,
0.011394456028938293,
-0.007506010588258505,
-0.0699046403169632,
0.08073985576629639,
-0.05120514705777168,
-0.012250788509845734,
0.06106170266866684,
-0.04963229224085808,
0.007842427119612694,
-0.01985291764140129,
0.015632424503564835,
-0.01918882317841053,
0.02979685179889202,
0.019241252914071083,
0.03488241508603096,
-0.005404502619057894,
-0.0001237667165696621,
0.07787376642227173,
-0.043445732444524765,
0.03430570289492607,
-0.012285740114748478,
0.017336349934339523,
-0.016488756984472275,
-0.052498385310173035,
0.045892395079135895,
0.05204400420188904,
0.0020326958037912846,
-0.033466845750808716,
-0.025218099355697632,
-0.015125616453588009,
0.014732402749359608,
-0.046206966042518616,
-0.006142870057374239,
-0.02630162052810192,
-0.01031093392521143,
0.05204400420188904,
0.0022052729036659002,
-0.001450521289370954,
-0.03313479945063591,
-0.0036765472032129765,
-0.07326006144285202,
-0.025218099355697632,
0.017816945910453796,
0.060817036777734756,
0.00011161532165715471,
0.030478423461318016,
-0.029272567480802536,
-0.024134576320648193,
-0.008676913566887379,
0.09192460030317307,
0.006278310436755419,
0.04508849233388901,
0.003060512477532029,
-0.032068751752376556,
0.060502465814352036,
0.025899669155478477,
-0.028451187536120415,
0.028713330626487732,
-0.005142359994351864,
-0.008646329864859581,
0.007676403038203716,
0.08661185204982758,
-0.024064671248197556,
0.06113160774111748,
-0.09590916335582733,
0.012775072827935219,
-0.02995413728058338,
-0.030810469761490822,
0.0042772903107106686,
-0.004091606009751558,
-0.009830339811742306,
-0.01038957666605711,
0.014706188812851906,
-0.0033641608897596598,
0.029010426253080368,
0.02163548581302166,
-0.03512708097696304,
-0.03869221732020378,
-0.019520871341228485,
0.011717765592038631,
-0.005719073116779327,
0.032767798751592636,
0.00322872051037848,
-0.009174983948469162,
0.0131071200594306,
-0.047255534678697586,
0.014417831785976887,
-0.02229958027601242,
0.05291781201958656,
-0.023592816665768623,
-0.034428033977746964,
0.029552185907959938,
-0.05508485436439514,
0.038552407175302505,
-0.04152335599064827,
-0.00872060377150774,
0.0020086660515516996,
-0.06522102653980255,
0.005740918684750795,
-0.0357387475669384,
-0.044144779443740845,
-0.06543074548244476,
0.006627833470702171,
0.04526325315237045,
-0.04253697395324707,
-0.036105744540691376,
-0.03358918055891991,
-0.0449836365878582,
0.0019802674651145935,
0.039566025137901306,
0.04596230015158653,
0.004482634831219912,
0.011813883669674397,
-0.0011567033361643553,
0.0059331562370061874,
-0.04089421406388283,
0.045507919043302536,
-0.002691328525543213,
-0.016130495816469193,
0.012084764428436756,
0.06116655841469765,
0.021932581439614296,
-0.049702197313308716,
-0.021740343421697617,
0.01624409109354019,
0.01871696673333645,
-0.021862676367163658,
0.049317725002765656,
0.009035174734890461,
0.055993616580963135,
0.06536083668470383,
0.029657043516635895,
0.006164715625345707,
0.02602200210094452,
0.01559747289866209,
0.025532670319080353,
-0.04334087669849396,
-0.06693369150161743,
-0.018472300842404366,
0.018734443932771683,
0.003069250611588359,
-0.017030518501996994,
-0.018944157287478447,
-0.03904174268245697,
-0.02735019102692604,
0.04176802188158035,
0.05924418196082115,
0.007471058517694473,
0.022946197539567947,
-0.05477028340101242,
-0.03014637529850006,
0.017144113779067993,
-0.012609049677848816,
-0.022002484649419785,
-0.04152335599064827,
-0.0454380139708519,
0.016943136230111122,
0.06298407912254333,
0.029884234070777893,
-0.008087093010544777,
0.0021146154031157494,
-0.05588876083493233,
-0.046871062368154526,
-0.07312025129795074,
-0.009393435902893543,
-0.005382657051086426,
-0.03318722918629646,
0.043725352734327316,
-0.05892961099743843,
-0.07319016009569168,
0.05068086460232735,
-0.028189046308398247,
0.04781477525830269,
-0.011044933460652828,
-0.06046751141548157,
-0.038167934864759445,
0.054910093545913696,
0.006038013380020857,
-0.04110392928123474,
-0.015352806076407433,
-0.01739751733839512,
0.04879343882203102,
0.0028835663106292486,
0.0489332489669323,
-0.04110392928123474,
-0.025270527228713036,
-0.05228867009282112,
-0.030758041888475418,
0.01100998092442751,
0.012373121455311775,
0.024414194747805595,
0.1170203685760498,
0.0172489695250988,
-0.004032623954117298,
0.02983180433511734,
0.01704799383878708,
-0.02935994789004326,
0.0016449434915557504,
-0.036804791539907455,
-0.011158527806401253,
-0.045507919043302536,
0.04844391345977783,
0.039216503500938416,
0.0005532297072932124,
-0.05089057609438896,
0.012862453237175941,
0.016672257333993912,
-0.05927913263440132,
0.01938106119632721,
-0.014033356681466103,
0.04232725873589516,
-0.0259870495647192,
0.010433267802000046,
0.07696501165628433,
-0.05798589810729027,
-0.0050768242217600346,
-0.006859392859041691,
0.0014723665080964565,
0.052113909274339676,
-0.02210734225809574,
0.05550428479909897,
-0.022072389721870422,
-0.05120514705777168,
0.02055196464061737,
-0.007178332656621933,
-0.02081410586833954,
-0.016943136230111122,
0.027402618899941444,
-0.008139521814882755,
-0.012390597723424435,
-0.0029796853195875883,
0.03512708097696304,
-0.009498292580246925,
0.0439700186252594,
0.006055489182472229,
0.03563389182090759,
0.007125904317945242,
0.011604170314967632,
-0.03911164402961731,
0.010599290952086449,
0.0018655800959095359,
0.06183065474033356,
-0.04082430899143219,
0.012399335391819477,
0.06445207446813583,
0.024658862501382828,
-0.02140829525887966,
-0.04753515496850014,
-0.010599290952086449,
-0.02652881108224392,
-0.003626303281635046,
-0.048653628677129745,
0.0010070636635646224,
-0.0051642050966620445,
0.06378798186779022,
0.014627546072006226,
0.018402395769953728,
-0.030268708243966103,
0.04610211029648781,
0.03904174268245697,
-0.03834269568324089,
0.08032043278217316,
-0.027437571436166763,
-0.003591350745409727,
-0.03694460168480873,
0.008100200444459915,
-0.005675382912158966,
0.027909427881240845,
0.05470038205385208,
0.01627904362976551,
0.020639345049858093,
0.019520871341228485,
0.004600598942488432,
0.02567247860133648,
-0.0177557785063982,
-0.05938399210572243,
0.013683833181858063,
0.02214229479432106,
-0.014653760008513927,
0.012495454400777817,
-0.022771436721086502,
0.028486140072345734,
0.07549700886011124,
-0.023959815502166748,
-0.05120514705777168,
-0.040614593774080276,
-0.04036992788314819,
0.03084542229771614,
0.007632712833583355,
-0.009201197884976864,
0.01046821940690279,
0.035756222903728485,
0.01658487506210804,
0.03795821964740753,
-0.01817520707845688,
-0.0294822808355093,
-0.008480306714773178,
0.03729412704706192,
-0.02090148814022541,
-0.026668619364500046,
0.04019516706466675,
-0.012049811892211437,
-0.02388991042971611,
-0.024868575856089592,
0.03289013355970383,
0.0022850078530609608,
-0.042047642171382904,
0.0042772903107106686,
-0.01322945300489664,
-0.039950501173734665,
-0.028066713362932205,
-0.0678774043917656,
0.005723442416638136,
0.05165952816605568,
-0.04390011355280876,
-0.048653628677129745,
0.001049661892466247,
0.03437560796737671,
0.03862231224775314,
-0.03103766031563282,
0.01293235830962658,
-0.05361685901880264,
-0.02913275919854641,
0.07402901351451874,
0.03725917264819145,
0.09758687764406204,
0.029657043516635895,
-0.011621646583080292,
-0.0524284802377224,
-0.004906431771814823,
-0.046241920441389084,
0.008628853596746922,
0.041348595172166824,
-0.0984257310628891,
0.01783442124724388,
-0.006540453061461449,
0.013727523386478424,
-0.015352806076407433,
-0.034130942076444626,
-0.07787376642227173,
0.001793490955606103,
-0.09597907215356827,
-0.04697591811418533,
0.02001020312309265,
-0.011446884833276272,
-0.030408518388867378,
-0.02935994789004326,
-0.007055999711155891,
-0.045193348079919815,
0.015221735462546349,
0.0963984951376915,
0.00040632073068991303,
-0.058020852506160736,
0.018664538860321045,
0.04889829456806183,
0.01081774290651083,
0.014863474294543266,
0.05623828247189522,
0.0012560989707708359,
0.05487514287233353,
0.05718199536204338,
0.06032770499587059,
-0.02042963169515133,
-0.02217724733054638,
0.01985291764140129,
0.014260546304285526,
0.0217578187584877,
-0.012233312241733074,
0.013972190208733082,
0.03932135924696922,
0.03837764635682106,
-0.04334087669849396,
-0.07759415358304977,
-0.003104202914983034,
-0.025375384837388992,
-0.03316975012421608,
-0.004058838356286287,
0.002968762768432498,
-0.017214016988873482,
-0.021583057940006256,
0.03173670545220375,
-0.023208340629935265,
0.03725917264819145,
-0.02986675687134266,
0.019293680787086487,
-0.040300026535987854,
-0.01544018741697073,
-0.03774850443005562,
-0.03774850443005562,
-0.019783012568950653,
-0.025462765246629715,
-0.0038163564167916775,
0.002319960156455636,
0.01783442124724388,
-0.016943136230111122,
-0.029849281534552574,
-0.01483725942671299,
-0.005775870755314827,
0.02874828316271305,
0.002483799122273922,
0.015352806076407433,
-0.0030539589934051037,
-0.06633950024843216,
-0.05337219312787056,
0.0435156375169754,
-0.04257192462682724,
0.024029720574617386,
-0.030128899961709976,
-0.05225371941924095,
0.030443470925092697,
-0.017336349934339523,
0.01497706864029169,
-0.02086653560400009,
-0.03119494579732418,
-0.030705612152814865,
-0.017414992675185204,
-0.025340432301163673,
0.003986748866736889,
0.04292144998908043,
-0.04016021639108658,
-0.01620040088891983,
-0.03771355375647545,
-0.007536593824625015,
-0.0020425261463969946,
0.004345010034739971,
0.008904103189706802,
-0.0173625648021698,
-0.009673054330050945,
0.04424963518977165,
0.09486059844493866,
0.06759778410196304,
0.024658862501382828,
-0.019783012568950653,
-0.018315015360713005,
-0.022981150075793266,
-0.034707654267549515,
0.031684279441833496,
0.013613928109407425,
-0.016960613429546356,
-0.014409094117581844,
-0.03491736575961113,
0.040300026535987854,
0.001928931102156639,
-0.0060598584823310375,
0.0037682969123125076,
-0.00021107924112584442,
-0.009760435670614243,
-0.05403628572821617,
-0.042711734771728516,
-0.044843826442956924,
0.10275982320308685,
-0.027804570272564888,
-0.027874475345015526,
0.03409598767757416,
0.018472300842404366,
0.023138435557484627,
0.08339623361825943,
0.042082592844963074,
-0.053197432309389114,
0.03147456422448158,
0.07983110100030899,
-0.018559681251645088,
0.056028567254543304,
-0.003971457481384277,
-0.004401807673275471,
-0.06165589392185211,
-0.0634734109044075,
0.02423943392932415,
0.010450744070112705,
-0.011036194860935211,
0.00443676020950079,
0.04285154491662979,
-0.013159547932446003,
0.012670216150581837
] |
21,247 | tfields.core | TensorFields |
Discrete Tensor Field
Args:
tensors (array): base tensors
*fields (array): multiple fields assigned to one base tensor. Fields
themself are also of type tensor
**kwargs:
rigid (bool): demand equal field and tensor lenght
... : see tfields.Tensors
Examples:
>>> import tfields
>>> from tfields import Tensors, TensorFields
>>> scalars = Tensors([0, 1, 2])
>>> vectors = Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]])
>>> scalar_field = TensorFields(vectors, scalars)
>>> scalar_field.rank
1
>>> scalar_field.fields[0].rank
0
>>> vectorField = TensorFields(vectors, vectors)
>>> vectorField.fields[0].rank
1
>>> vectorField.fields[0].dim
3
>>> multiField = TensorFields(vectors, scalars, vectors)
>>> multiField.fields[0].dim
1
>>> multiField.fields[1].dim
3
Empty initialization
>>> empty_field = TensorFields([], dim=3)
>>> assert empty_field.shape == (0, 3)
>>> assert empty_field.fields == []
Directly initializing with lists or arrays
>>> vec_field_raw = tfields.TensorFields([[0, 1, 2], [3, 4, 5]],
... [1, 6], [2, 7])
>>> assert len(vec_field_raw.fields) == 2
Copying
>>> cp = TensorFields(vectorField)
>>> assert vectorField.equal(cp)
Copying takes care of coord_sys
>>> cp.transform(tfields.bases.CYLINDER)
>>> cp_cyl = TensorFields(cp)
>>> assert cp_cyl.coord_sys == tfields.bases.CYLINDER
Copying with changing type
>>> tcp = TensorFields(vectorField, dtype=int)
>>> assert vectorField.equal(tcp)
>>> assert tcp.dtype == int
Raises:
TypeError:
>>> import tfields
>>> tfields.TensorFields([1, 2, 3], [3]) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
ValueError: Length of base (3) should be the same as the length of all fields ([1]).
This error can be suppressed by setting rigid=False
>>> loose = tfields.TensorFields([1, 2, 3], [3], rigid=False)
>>> assert len(loose) != 1
| class TensorFields(Tensors):
"""
Discrete Tensor Field
Args:
tensors (array): base tensors
*fields (array): multiple fields assigned to one base tensor. Fields
themself are also of type tensor
**kwargs:
rigid (bool): demand equal field and tensor lenght
... : see tfields.Tensors
Examples:
>>> import tfields
>>> from tfields import Tensors, TensorFields
>>> scalars = Tensors([0, 1, 2])
>>> vectors = Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]])
>>> scalar_field = TensorFields(vectors, scalars)
>>> scalar_field.rank
1
>>> scalar_field.fields[0].rank
0
>>> vectorField = TensorFields(vectors, vectors)
>>> vectorField.fields[0].rank
1
>>> vectorField.fields[0].dim
3
>>> multiField = TensorFields(vectors, scalars, vectors)
>>> multiField.fields[0].dim
1
>>> multiField.fields[1].dim
3
Empty initialization
>>> empty_field = TensorFields([], dim=3)
>>> assert empty_field.shape == (0, 3)
>>> assert empty_field.fields == []
Directly initializing with lists or arrays
>>> vec_field_raw = tfields.TensorFields([[0, 1, 2], [3, 4, 5]],
... [1, 6], [2, 7])
>>> assert len(vec_field_raw.fields) == 2
Copying
>>> cp = TensorFields(vectorField)
>>> assert vectorField.equal(cp)
Copying takes care of coord_sys
>>> cp.transform(tfields.bases.CYLINDER)
>>> cp_cyl = TensorFields(cp)
>>> assert cp_cyl.coord_sys == tfields.bases.CYLINDER
Copying with changing type
>>> tcp = TensorFields(vectorField, dtype=int)
>>> assert vectorField.equal(tcp)
>>> assert tcp.dtype == int
Raises:
TypeError:
>>> import tfields
>>> tfields.TensorFields([1, 2, 3], [3]) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
ValueError: Length of base (3) should be the same as the length of all fields ([1]).
This error can be suppressed by setting rigid=False
>>> loose = tfields.TensorFields([1, 2, 3], [3], rigid=False)
>>> assert len(loose) != 1
"""
__slots__ = ["coord_sys", "name", "fields"]
__slot_setters__ = [tfields.bases.get_coord_system_name, None, as_fields]
def __new__(cls, tensors, *fields, **kwargs):
rigid = kwargs.pop("rigid", True)
obj = super(TensorFields, cls).__new__(cls, tensors, **kwargs)
if issubclass(type(tensors), TensorFields):
obj.fields = tensors.fields
elif not fields:
obj.fields = []
if fields:
# (over)write fields
obj.fields = fields
if rigid:
olen = len(obj)
field_lengths = [len(f) for f in obj.fields]
if not all(flen == olen for flen in field_lengths):
raise ValueError(
"Length of base ({olen}) should be the same as"
" the length of all fields ({field_lengths}).".format(**locals())
)
return obj
def _args(self) -> tuple:
return super()._args() + tuple(self.fields)
def _kwargs(self) -> dict:
content = super()._kwargs()
content.pop("fields") # instantiated via _args
return content
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]])
>>> scalar_field = tfields.TensorFields(
... vectors,
... [42, 21, 10.5],
... [1, 2, 3],
... [[0, 0], [-1, -1], [-2, -2]])
Slicing
>>> sliced = scalar_field[2:]
>>> assert isinstance(sliced, tfields.TensorFields)
>>> assert isinstance(sliced.fields[0], tfields.Tensors)
>>> assert sliced.fields[0].equal([10.5])
Picking
>>> picked = scalar_field[1]
>>> assert np.array_equal(picked, [0, 0, 1])
>>> assert np.array_equal(picked.fields[0], 21)
Masking
>>> masked = scalar_field[np.array([True, False, True])]
>>> assert masked.equal([[0, 0, 0], [0, -1, 0]])
>>> assert masked.fields[0].equal([42, 10.5])
>>> assert masked.fields[1].equal([1, 3])
Iteration
>>> _ = [point for point in scalar_field]
"""
item = super().__getitem__(index)
try:
if issubclass(type(item), TensorFields):
if isinstance(index, tuple):
index = index[0]
if item.fields:
# circumvent the setter here.
with self._bypass_setters("fields", demand_existence=False):
item.fields = [
field.__getitem__(index) for field in item.fields
]
except IndexError as err: # noqa: F841 pylint: disable=possibly-unused-variable
warnings.warn(
"Index error occured for field.__getitem__. Error "
"message: {err}".format(**locals())
)
return item
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)
@classmethod
def merged(cls, *objects, **kwargs):
if not all(isinstance(o, cls) for o in objects):
# Note: could allow if all map_fields are none
raise TypeError(
"Merge constructor only accepts {cls} instances."
"Got objects of types {types} instead.".format(
cls=cls,
types=[type(o) for o in objects],
)
)
return_value = super(TensorFields, cls).merged(*objects, **kwargs)
return_templates = kwargs.get("return_templates", False)
if return_templates:
inst, templates = return_value
else:
inst, templates = (return_value, None)
fields = []
if all(len(obj.fields) == len(objects[0].fields) for obj in objects):
for fld_idx in range(len(objects[0].fields)):
field = tfields.Tensors.merged(
*[obj.fields[fld_idx] for obj in objects]
)
fields.append(field)
inst = cls.__new__(cls, inst, *fields)
if return_templates: # pylint: disable=no-else-return
return inst, templates
else:
return inst
def transform_field(self, coord_sys, field_index=0):
| (tensors, *fields, **kwargs) | [
-0.017839854583144188,
-0.04764265939593315,
-0.0461786612868309,
0.06265908479690552,
-0.029510004445910454,
-0.018739165738224983,
-0.05098893865942955,
-0.026247382164001465,
-0.009651925414800644,
0.00000783263112680288,
0.01931430771946907,
0.016532713547348976,
-0.011889750137925148,
0.01868688128888607,
0.017055569216609,
0.011377351358532906,
-0.019084252417087555,
0.02965640462934971,
0.030660288408398628,
-0.04371077939867973,
0.03187331557273865,
-0.017996711656451225,
0.03473856672644615,
0.060609493404626846,
0.03816850483417511,
-0.007994471117854118,
0.03406931087374687,
-0.007471615448594093,
0.010906780138611794,
0.005866446532309055,
-0.02513892576098442,
-0.01114729419350624,
0.008485956117510796,
0.041284725069999695,
-0.007272929884493351,
-0.10473855584859848,
-0.008412756025791168,
0.02388407103717327,
-0.060442179441452026,
0.05236927792429924,
-0.00583507539704442,
-0.07060649991035461,
-0.04555123299360275,
-0.06633999943733215,
0.020098593086004257,
0.01985807903110981,
0.037771131843328476,
0.005709589924663305,
-0.05082162469625473,
-0.014054374769330025,
0.0178921390324831,
-0.020422764122486115,
0.01671048440039158,
0.017703911289572716,
-0.0004833152052015066,
0.02982371859252453,
0.036516278982162476,
0.01889602281153202,
-0.020935162901878357,
0.03804301843047142,
-0.04180758073925972,
0.0162503719329834,
-0.043794434517621994,
-0.02823423594236374,
-0.02027636393904686,
-0.0293636042624712,
-0.022817445918917656,
-0.006138331722468138,
-0.005069090984761715,
-0.0032077229116111994,
-0.06098594889044762,
-0.00649387389421463,
0.05763966962695122,
-0.024825213477015495,
-0.00692261615768075,
0.029802804812788963,
0.010023153387010098,
0.003751493291929364,
0.06186434626579285,
-0.09787867963314056,
-0.02250373177230358,
0.020966533571481705,
-0.01493277307599783,
0.007874214090406895,
0.00717358710244298,
0.0018143110210075974,
-0.017787568271160126,
0.015298772603273392,
0.003829921828582883,
-0.0679294764995575,
-0.03308634087443352,
0.006028532050549984,
-0.009332983754575253,
0.002507095457985997,
-0.044254548847675323,
-0.016731398180127144,
-0.02002539299428463,
-0.05052882432937622,
-0.07412009686231613,
0.05420973151922226,
0.024155957624316216,
-0.020851505920290947,
-0.09963548183441162,
0.022901102900505066,
0.03664176166057587,
-0.023863157257437706,
-0.04159843921661377,
-0.004865176975727081,
-0.006980130448937416,
-0.026874808594584465,
-0.01141917984932661,
0.05023602396249771,
-0.02735583670437336,
0.04567671939730644,
0.0077696433290839195,
-0.02522258274257183,
0.0010914623271673918,
0.003908350132405758,
-0.009902896359562874,
-0.03613981977105141,
0.05805795267224312,
0.0010796980932354927,
-0.03762473165988922,
0.04810277000069618,
-0.007346129976212978,
0.018990136682987213,
0.05232745036482811,
0.02128024771809578,
-0.005913503933697939,
-0.03293994069099426,
-0.05471167340874672,
-0.01403346098959446,
-0.03402748331427574,
0.05341498926281929,
0.04776814207434654,
-0.0029279948212206364,
0.03329548239707947,
-0.007001044694334269,
-0.06755302101373672,
0.015894828364253044,
0.01998356357216835,
0.0047553773038089275,
0.0648759976029396,
0.017254255712032318,
-0.025327155366539955,
0.0008705555810593069,
0.018341796472668648,
0.00632655993103981,
0.014420374296605587,
-0.01847773790359497,
-0.04881385713815689,
0.017066026106476784,
0.00001796296965039801,
0.037771131843328476,
-0.05605018511414528,
0.008240213617682457,
-0.026080068200826645,
-0.08917835354804993,
0.03496862202882767,
0.039778899401426315,
-0.028631605207920074,
-0.02044367790222168,
-0.03218702971935272,
-0.010064981877803802,
-0.011262322776019573,
0.030053775757551193,
0.0503615103662014,
-0.10172690451145172,
-0.04400357976555824,
0.02697938121855259,
0.040029872208833694,
-0.03193605691194534,
0.018028082326054573,
0.03733193501830101,
-0.02288018725812435,
0.07161038368940353,
-0.020339107140898705,
-0.014545859768986702,
-0.04789362847805023,
-0.015905285254120827,
0.006054674740880728,
-0.009270240552723408,
0.0016692184144631028,
-0.01503734476864338,
0.010906780138611794,
0.01066626701503992,
-0.024281442165374756,
0.004444277845323086,
0.05387510359287262,
0.04113832488656044,
0.02300567366182804,
-0.023026587441563606,
-0.005301761906594038,
-0.03526142239570618,
0.015005973167717457,
0.03409022465348244,
-0.012872720137238503,
-0.015988942235708237,
0.05512996017932892,
0.1028144434094429,
-0.05960560962557793,
-0.017201969400048256,
0.03172691538929939,
-0.006038989406079054,
-0.07976694405078888,
0.014744545333087444,
0.061989832669496536,
0.02530623972415924,
-0.04877202585339546,
-0.020370477810502052,
0.01981624960899353,
-0.024072300642728806,
0.01336420513689518,
0.021855389699339867,
0.03908872976899147,
-0.05500447377562523,
-0.04458917677402496,
-0.017756197601556778,
-0.016867341473698616,
-0.0036965934559702873,
0.11067820340394974,
0.014409917406737804,
-0.0549626462161541,
-0.020684191957116127,
0.014253060333430767,
-0.0143680889159441,
-0.020140420645475388,
-0.018540481105446815,
-0.003228637157008052,
-0.04797728732228279,
0.012308035045862198,
0.012025692500174046,
-0.061613377183675766,
0.0023789957631379366,
0.05149088054895401,
0.017578424885869026,
0.00986629631370306,
-0.07713174819946289,
0.0474335141479969,
-0.0093643544241786,
-0.03795935958623886,
-0.01679414138197899,
-0.014294888824224472,
-0.021060647442936897,
0.0047553773038089275,
0.0028025093488395214,
-0.0035423508379608393,
0.04655511677265167,
-0.019617564976215363,
0.011178665794432163,
-0.01580071449279785,
0.029133547097444534,
-0.0008587913471274078,
0.05968926474452019,
0.002054824959486723,
-0.01175380777567625,
0.05931280925869942,
-0.016062142327427864,
0.01311323419213295,
-0.025452639907598495,
-0.019429337233304977,
-0.08608304709196091,
-0.013186433352530003,
0.02048550546169281,
0.02760680764913559,
-0.04021809995174408,
0.05391693115234375,
0.03670450672507286,
-0.0058403038419783115,
0.04780997335910797,
0.07650431990623474,
0.09469971805810928,
-0.004253435414284468,
-0.02132207714021206,
0.002692709444090724,
-0.06680011004209518,
0.03791753202676773,
0.030053775757551193,
0.043627120554447174,
-0.019345680251717567,
0.010357781313359737,
-0.014085746370255947,
-0.041870325803756714,
-0.03316999971866608,
0.0495249405503273,
-0.024867041036486626,
-0.004452120512723923,
-0.012789063155651093,
-0.03463399410247803,
-0.022775616496801376,
0.01701374165713787,
0.020077679306268692,
0.05500447377562523,
0.00708993012085557,
-0.01696145534515381,
-0.025243498384952545,
-0.09018223732709885,
0.0499432235956192,
-0.009453239850699902,
-0.07077381759881973,
-0.008485956117510796,
0.009489839896559715,
0.0474335141479969,
0.03181057050824165,
0.01747385412454605,
-0.07788465917110443,
0.009259783662855625,
0.0032181800343096256,
0.07403644174337387,
-0.0035475792828947306,
0.02048550546169281,
0.030430231243371964,
-0.008485956117510796,
0.01535105798393488,
0.06391394138336182,
0.03045114502310753,
-0.01256946288049221,
0.03457125276327133,
0.029677318409085274,
0.06019120663404465,
0.021562589332461357,
-0.003882207442075014,
-0.02551538310945034,
0.05776515230536461,
-0.014817745424807072,
-0.07006273418664932,
0.043459806591272354,
-0.04889751225709915,
-0.0620734877884388,
0.042455922812223434,
-0.00574096105992794,
0.007476843893527985,
0.03128771483898163,
0.02948909066617489,
-0.02426052838563919,
-0.026958465576171875,
0.021625332534313202,
-0.03670450672507286,
-0.014650431461632252,
-0.002615588251501322,
0.00971989706158638,
-0.01931430771946907,
-0.015779800713062286,
0.012778605334460735,
0.020799219608306885,
-0.03697638958692551,
0.060609493404626846,
0.004151478409767151,
0.05784881114959717,
0.05429339036345482,
0.041912153363227844,
-0.03841947391629219,
0.011711979284882545,
0.015026887878775597,
-0.015309229493141174,
-0.024574242532253265,
-0.028631605207920074,
-0.016198085620999336,
-0.022190017625689507,
0.025159841403365135,
0.015309229493141174,
-0.02006722055375576,
0.012747234664857388,
0.008093814365565777,
0.031099487096071243,
-0.00675530219450593,
-0.027753207832574844,
-0.014472659677267075,
-0.04109649732708931,
-0.00045978667913004756,
0.016145799309015274,
-0.043919920921325684,
0.028924405574798584,
0.008365699090063572,
0.007665072102099657,
-0.013479232788085938,
-0.03636987879872322,
0.03942335769534111,
-0.0583089254796505,
-0.03559605032205582,
0.03206154331564903,
-0.03507319465279579,
0.004742305725812912,
0.03963249921798706,
-0.01645951345562935,
0.04655511677265167,
0.013636089861392975,
-0.02501344121992588,
0.03680907562375069,
-0.02534806914627552,
-0.03415296599268913,
-0.0006927844951860607,
-0.011272779665887356,
-0.031224973499774933,
-0.05902000889182091,
-0.00726770143955946,
-0.03565879166126251,
0.008747383952140808,
0.02338212914764881,
-0.0877561867237091,
-0.016982369124889374,
-0.06441588699817657,
-0.0304093174636364,
0.07215415686368942,
0.01125186588615179,
0.008648041635751724,
0.07524946331977844,
0.02292201668024063,
0.009411411359906197,
0.05132356658577919,
0.005330519285053015,
0.07190318405628204,
0.011910664848983288,
0.007492529693990946,
0.044254548847675323,
-0.01679414138197899,
-0.024197785183787346,
0.013813860714435577,
0.01198386400938034,
0.05755601078271866,
-0.0031371372751891613,
0.0707319900393486,
-0.025912754237651825,
0.00608604634180665,
-0.01302957721054554,
-0.0362025648355484,
-0.036014337092638016,
0.04542574658989906,
0.03168508782982826,
0.03423662483692169,
-0.020213620737195015,
-0.041326556354761124,
-0.013332833535969257,
-0.0026704880874603987,
-0.020642362534999847,
-0.043083351105451584,
0.03151777386665344,
-0.0013202119152992964,
-0.014399459585547447,
0.03971615806221962,
0.06240811571478844,
-0.016323570162057877,
0.03298176825046539,
-0.0691843330860138,
-0.01755751110613346,
0.024365099146962166,
-0.01902150921523571,
0.026121895760297775,
-0.062491774559020996,
0.005103076808154583,
0.06663279235363007,
0.06378845870494843,
0.038984160870313644,
0.03875410184264183,
0.003071780316531658,
-0.03867044672369957,
-0.018446367233991623,
-0.06449954211711884,
-0.0074193296022713184,
-0.011366893537342548,
-0.0019306465983390808,
0.05107259377837181,
0.01591574214398861,
-0.016731398180127144,
-0.0007980092777870595,
-0.05354047566652298,
0.02321481518447399,
-0.028380634263157845,
-0.028506120666861534,
0.004716163035482168,
0.05358230322599411,
-0.0003480261657387018,
-0.025159841403365135,
-0.03247982636094093,
-0.001513668685220182,
0.022273674607276917,
0.02760680764913559,
0.01055646687746048,
-0.06575439870357513,
-0.08909469842910767,
-0.008031071163713932,
-0.05634298548102379,
-0.011220494285225868,
-0.035010453313589096,
0.01351060438901186,
0.04233044013381004,
-0.0178921390324831,
0.05508812889456749,
0.03185240179300308,
0.016313113272190094,
-0.041535697877407074,
-0.016281742602586746,
-0.002412981353700161,
0.026331039145588875,
-0.06659096479415894,
-0.0143680889159441,
-0.027502236887812614,
0.0382939875125885,
0.03670450672507286,
0.022357331588864326,
0.00963624007999897,
-0.006321331486105919,
-0.007053330074995756,
-0.004896548576653004,
0.030513888224959373,
-0.04588586091995239,
0.017484311014413834,
0.04333432391285896,
0.02334030158817768,
-0.06508514285087585,
-0.02484612725675106,
-0.03350462764501572,
-0.004901777021586895,
0.005171047989279032,
0.0018888181075453758,
-0.020464591681957245,
-0.007027187384665012,
0.03917238861322403,
-0.016532713547348976,
-0.03227068483829498,
0.009991781786084175,
0.042916037142276764,
-0.02886166237294674,
-0.023779500275850296,
-0.008344785310328007,
0.030597545206546783,
-0.03281445428729057,
-0.040448155254125595,
0.05236927792429924,
0.008820584043860435,
0.009714668616652489,
-0.036390792578458786,
-0.012684491463005543,
-0.007393186911940575,
-0.0013215190265327692,
0.05333133414387703,
0.017567967996001244,
-0.011879293248057365,
0.04843739792704582,
-0.010739466175436974,
0.015811171382665634,
0.027293093502521515,
0.034111138433218,
-0.03455033898353577,
-0.005563190206885338,
-0.009432326070964336,
0.018373167142271996,
-0.00524947652593255,
0.014273974113166332,
-0.006342245731502771,
-0.004883476998656988,
-0.010399609804153442,
0.04751717299222946,
-0.020129963755607605,
-0.020809676498174667,
0.017996711656451225,
-0.04990139603614807,
-0.01630265638232231,
0.026205552741885185,
0.01843591034412384,
0.029133547097444534,
0.0007476843893527985,
0.08319687843322754,
0.03461308032274246,
-0.0007006273372098804,
0.02480429783463478,
-0.00810949970036745,
0.02430235594511032,
-0.015988942235708237,
0.00802584271878004,
0.008470270782709122,
0.03306542709469795,
-0.023821329697966576,
0.024783384054899216,
0.03358828276395798,
-0.009657153859734535,
-0.03262622654438019,
0.025368982926011086,
-0.05178367719054222,
-0.09419777244329453,
-0.01709739863872528,
0.02002539299428463,
0.02409321442246437,
-0.04417089372873306,
0.019596651196479797,
-0.0021227961406111717,
0.021939046680927277,
0.04760082811117172,
0.020976990461349487,
0.026163725182414055,
0.0130086624994874,
0.06567074358463287,
-0.03185240179300308,
0.017160139977931976,
-0.00405213562771678,
0.05676126852631569,
-0.07470569759607315,
0.005257319193333387,
-0.0004519438371062279,
-0.014158946461975574,
-0.06592170894145966,
0.014420374296605587,
-0.030513888224959373,
0.003267851425334811,
-0.02986554615199566,
-0.08457721769809723,
0.005955332424491644,
0.05295487865805626,
0.06755302101373672,
-0.04542574658989906,
0.04239318147301674,
0.03649536520242691,
0.013834775425493717,
-0.06098594889044762,
0.007136987056583166,
-0.07039736211299896,
-0.06483417004346848,
0.0511980801820755,
0.09712576866149902,
-0.060442179441452026,
-0.036390792578458786,
0.026372866705060005,
-0.04272780939936638,
-0.014744545333087444,
-0.05918732285499573,
-0.02547355368733406,
0.03624439239501953,
-0.0736599862575531,
0.014106660149991512,
0.0048808627761900425,
0.017327453941106796,
-0.04155661165714264,
-0.016898712143301964,
-0.0010411373805254698,
0.003113608807325363,
-0.03235434368252754,
-0.025494469329714775,
-0.019115623086690903,
-0.007288615684956312,
0.05487898737192154,
-0.007889900356531143,
-0.027795035392045975,
-0.010342095978558064,
0.030890345573425293,
-0.02555721066892147,
-0.07345084100961685,
-0.017494767904281616,
-0.05044516548514366,
0.041221983730793,
0.03636987879872322,
-0.06968627870082855,
0.07529129087924957,
0.029719147831201553,
-0.05216013640165329,
0.010812666267156601,
-0.010132953524589539,
0.02446966990828514,
-0.03511502221226692,
0.04143112525343895,
0.03398565202951431,
0.001828689593821764,
-0.03624439239501953,
0.05822526663541794,
-0.038231246173381805,
0.002860023407265544,
-0.01763071119785309,
0.01580071449279785,
-0.000768598634749651,
0.03168508782982826,
0.07194501161575317,
-0.03779204562306404,
-0.04684791713953018,
-0.002252203179523349,
0.02279653027653694,
0.07374364137649536,
0.001548961503431201,
0.06951896101236343,
-0.006551388185471296,
-0.007398415356874466,
-0.018875109031796455,
0.0877561867237091,
0.02944726124405861,
-0.038440387696027756,
0.030555717647075653,
-0.0172647126019001,
-0.0009881982114166021,
-0.025703610852360725,
0.035888850688934326,
-0.01311323419213295,
-0.03239617124199867,
0.030472060665488243,
-0.029049890115857124,
0.07014638930559158,
-0.0011489765020087361,
-0.0691843330860138,
-0.027042122557759285,
0.002758066402748227,
0.00308485166169703,
0.020767848938703537,
0.038398560136556625,
-0.020516877993941307,
-0.005594561342149973,
-0.04243500903248787,
0.015403344295918941,
-0.007283386774361134,
0.03490588068962097,
-0.019335223361849785,
-0.004326635040342808,
0.021959960460662842,
-0.05646847188472748,
0.04960859566926956,
0.0673857107758522,
0.02225276082754135,
-0.04935762658715248,
0.010122496634721756,
0.008036299608647823,
0.004833805840462446,
0.043961748480796814,
0.0011711978586390615,
0.008543470874428749,
0.006431131158024073,
0.03212428465485573,
0.039025988429784775,
0.05111442133784294,
0.01334329042583704,
0.006535702850669622,
-0.010546009987592697,
-0.019826708361506462,
-0.06818044930696487,
-0.022022703662514687,
0.07570958137512207,
0.07516580820083618,
0.0056677614338696,
-0.05763966962695122,
-0.011523750610649586,
-0.03392291069030762,
0.017337912693619728,
-0.023988643661141396,
-0.021562589332461357,
0.05839258059859276,
-0.004980205558240414,
-0.01779802516102791,
0.02823423594236374,
0.026540180668234825,
-0.0204018484801054,
0.039988044649362564,
0.01608305610716343,
0.0085277846083045,
-0.01713922619819641,
-0.00980355404317379,
0.04981774091720581,
0.02438601292669773,
-0.0719868466258049,
-0.042288608849048615,
0.05613384395837784,
-0.043292492628097534,
-0.004446892067790031,
-0.035345081239938736,
-0.05236927792429924,
-0.07437106966972351,
-0.02501344121992588,
-0.02840154990553856,
0.018216310068964958,
0.07512398064136505,
-0.004852105397731066,
0.05533910170197487,
-0.03729010373353958,
0.022691959515213966
] |
21,285 | tfields.core | plot |
Generic plotting method of TensorFields.
Args:
field_index: index of the field to plot (as quiver by default)
normalize: If True, normalize the field vectors to show only the direction
color: additional str argument 'norm' added. If color="norm", color with the norm.
| def plot(self, *args, **kwargs):
"""
Generic plotting method of TensorFields.
Args:
field_index: index of the field to plot (as quiver by default)
normalize: If True, normalize the field vectors to show only the direction
color: additional str argument 'norm' added. If color="norm", color with the norm.
"""
field_index = kwargs.pop("field_index", None)
field_args = ["normalize"]
if field_index is None:
for field_arg in field_args:
if field_arg in kwargs:
kwargs.pop(field_arg)
LOGGER.warning("Unused option %s", field_arg)
artist = super(TensorFields, self).plot(*args, **kwargs)
else:
normalize_field = kwargs.pop("normalize", False)
color = kwargs.get("color", None)
field = self.fields[field_index].copy()
# this tranfomration is compmlicated. Transforming the field is not yet understood
# if self.dim == field.dim:
# field.transform(self.coord_sys)
# else:
# logging.debug(
# "Careful: Plotting tensors with field of"
# "different dimension. No coord_sys check performed."
# )
if color == "norm":
norm = field.norm()
kwargs["color"] = norm
if normalize_field:
field = field.normalized()
if field.dim <= 3:
artist = (
rna.plotting.plot_tensor( # noqa: E501 pylint: disable=no-member
self, *args, field, **kwargs
)
)
else:
raise NotImplementedError(
"Field of dimension {field.dim}".format(**locals())
)
return artist
| (self, *args, **kwargs) | [
-0.030561678111553192,
-0.02448529750108719,
-0.001282017445191741,
0.08449404686689377,
0.004741554614156485,
0.02869202196598053,
-0.054076191037893295,
-0.03494817763566971,
0.011937031522393227,
-0.0014404437970370054,
0.022939234972000122,
0.030435835942626,
0.012620175257325172,
-0.006346042267978191,
0.0054696411825716496,
0.011496583931148052,
-0.031766168773174286,
0.06917725503444672,
0.05242226645350456,
-0.01431005634367466,
0.001483140280470252,
-0.01187411043792963,
0.011424673721194267,
-0.015496567822992802,
0.061339084059000015,
0.0170785840600729,
0.012116806581616402,
-0.031118977814912796,
-0.04134815186262131,
0.07356375455856323,
-0.030615609139204025,
-0.0202785711735487,
0.014498819597065449,
0.057779546827077866,
0.025222372263669968,
-0.08514124155044556,
-0.04159983620047569,
0.011208944953978062,
-0.060332346707582474,
0.03500210866332054,
-0.008660639636218548,
-0.0576716847717762,
0.0019393182592466474,
-0.03692569583654404,
-0.009213446639478207,
-0.009725804440677166,
-0.006606715731322765,
0.025887537747621536,
-0.07320420444011688,
-0.05724022537469864,
0.007860642857849598,
-0.03435492143034935,
-0.005928066559135914,
0.03248526528477669,
0.028925728052854538,
0.0293571874499321,
0.015523534268140793,
0.060907624661922455,
-0.023586424067616463,
0.01340219471603632,
-0.032143693417310715,
0.002082014223560691,
-0.0569525845348835,
-0.040700964629650116,
-0.008512326516211033,
-0.022166205570101738,
0.03545154631137848,
0.028817864134907722,
-0.0063730087131261826,
-0.010372992604970932,
-0.0530335009098053,
0.002624708693474531,
0.027649329975247383,
-0.03234144672751427,
0.01321343146264553,
-0.02078193984925747,
0.010364004410803318,
0.031999874860048294,
0.017680829390883446,
-0.03782457113265991,
0.010004455223679543,
-0.0031865043565630913,
0.00944715365767479,
-0.006215706001967192,
-0.03252122178673744,
-0.035541433840990067,
-0.021626880392432213,
0.0003558974713087082,
-0.00955501850694418,
-0.02687629871070385,
-0.03645828366279602,
-0.03149650618433952,
0.004665150307118893,
0.033671777695417404,
-0.0939861461520195,
-0.0402335487306118,
0.0068314336240291595,
-0.0576716847717762,
-0.04562678560614586,
0.02644483931362629,
0.04195938631892204,
-0.021051602438092232,
-0.008161765523254871,
0.020008910447359085,
0.021914521232247353,
-0.03144257143139839,
-0.08564461022615433,
0.030453812330961227,
0.0021808904130011797,
0.025599898770451546,
-0.01604488119482994,
0.057635728269815445,
0.025384169071912766,
0.036997608840465546,
-0.03225155919790268,
-0.019433630630373955,
-0.007752778474241495,
-0.023226875811815262,
0.013546014204621315,
-0.05339304730296135,
0.02178867906332016,
0.07392330467700958,
-0.001652802457101643,
-0.008368506096303463,
-0.01340219471603632,
0.0279549453407526,
0.018570713698863983,
0.014022416435182095,
-0.0932670459151268,
-0.024449342861771584,
-0.014166236855089664,
0.017267348244786263,
-0.00724491523578763,
0.05069642886519432,
0.0626334622502327,
0.039190858602523804,
0.03626053035259247,
0.008795470930635929,
-0.07068736106157303,
0.07065140455961227,
0.02622910961508751,
0.009671872481703758,
0.01882239803671837,
-0.002707854611799121,
-0.03108302317559719,
0.025510011240839958,
-0.027361690998077393,
-0.020062843337655067,
0.0002940999693237245,
-0.053572822362184525,
-0.03325829654932022,
0.029608871787786484,
0.025671809911727905,
0.012656129896640778,
-0.008786482736468315,
0.008669628761708736,
-0.013375228270888329,
-0.036350417882204056,
0.025222372263669968,
0.05907392501831055,
-0.012485343962907791,
-0.037069518119096756,
0.05573011934757233,
0.00005607421917375177,
-0.020314527675509453,
0.039262767881155014,
0.058570556342601776,
-0.03937062993645668,
-0.03832793980836868,
0.03568525239825249,
0.004952789284288883,
-0.06108739972114563,
-0.03644030541181564,
0.05263799428939819,
-0.028799885883927345,
0.05267395079135895,
-0.0024449340999126434,
0.018750488758087158,
-0.02773921750485897,
0.015802184119820595,
0.005415709223598242,
-0.05224249139428139,
0.012206693179905415,
-0.013851630501449108,
0.030813362449407578,
-0.01597297005355358,
0.00034129078267142177,
-0.006125818472355604,
0.01800442300736904,
0.008602213114500046,
0.039478495717048645,
0.004512341693043709,
-0.03137066215276718,
-0.0395144522190094,
0.04501555487513542,
-0.027631351724267006,
0.030489766970276833,
-0.07000421732664108,
0.069752536714077,
-0.008921313099563122,
0.022399911656975746,
-0.04764026030898094,
-0.0031325719319283962,
0.008368506096303463,
-0.051163844764232635,
0.027631351724267006,
0.07018399238586426,
0.021015647798776627,
-0.014714549295604229,
0.01467859372496605,
0.04569869488477707,
-0.03973018005490303,
0.03334818407893181,
0.04185152053833008,
-0.03131673112511635,
-0.011613437905907631,
-0.01808532141149044,
-0.002267406787723303,
-0.010579734109342098,
0.04131219536066055,
0.08427832275629044,
-0.002456170041114092,
0.00715502817183733,
0.001569656771607697,
0.03618862107396126,
-0.01918194629251957,
0.02484484575688839,
0.014157247729599476,
-0.0016674092039465904,
-0.09089402109384537,
-0.02854820154607296,
0.05497506633400917,
-0.05547843500971794,
0.04789194464683533,
0.019577451050281525,
0.02063812129199505,
0.04871891066431999,
-0.025581922382116318,
0.0014763986691832542,
0.011613437905907631,
-0.044404320418834686,
0.017608920112252235,
-0.049581825733184814,
-0.014552751556038857,
0.010948271490633488,
-0.039334677159786224,
0.011424673721194267,
0.054076191037893295,
-0.04066500812768936,
-0.03185605630278587,
-0.05598180368542671,
0.006197728216648102,
0.004402230028063059,
0.04177961125969887,
0.02754146419465542,
-0.04336162656545639,
0.002112351357936859,
-0.013716800138354301,
0.042894214391708374,
-0.02353249117732048,
-0.051667213439941406,
-0.05235035717487335,
-0.020062843337655067,
0.026678547263145447,
0.07888508588075638,
-0.06417952477931976,
0.010184229351580143,
0.01575724221765995,
0.008462888188660145,
0.03850771486759186,
0.04257062077522278,
0.09355469048023224,
-0.033887505531311035,
-0.0006421323050744832,
0.01794150285422802,
-0.015676341950893402,
0.010337037965655327,
-0.013492081314325333,
0.026840344071388245,
0.024593161419034004,
-0.005910089239478111,
-0.046381838619709015,
-0.03302459046244621,
0.005253911949694157,
0.011910065077245235,
-0.0011449393350630999,
0.026714501902461052,
-0.017393190413713455,
-0.03029201552271843,
-0.004220208153128624,
0.04799981042742729,
0.04142006114125252,
0.039190858602523804,
0.003487626789137721,
-0.04001782089471817,
-0.04469195753335953,
-0.03875939920544624,
0.053069453686475754,
-0.06000875309109688,
-0.044763870537281036,
0.02586956135928631,
-0.030633587390184402,
0.054723381996154785,
0.005397731438279152,
0.012593208812177181,
-0.034894246608018875,
0.02773921750485897,
0.023730244487524033,
0.07658396661281586,
-0.033078521490097046,
-0.025653831660747528,
0.09873219579458237,
-0.046597570180892944,
0.054651468992233276,
0.03590098395943642,
0.0530335009098053,
-0.01968531496822834,
-0.04134815186262131,
0.01742914505302906,
0.050948113203048706,
-0.004429196007549763,
-0.007829182781279087,
-0.032647062093019485,
0.0019381946185603738,
-0.007865137420594692,
-0.04515937343239784,
-0.013069611974060535,
-0.029447074979543686,
0.0006494356202892959,
0.06209413707256317,
0.01550555694848299,
0.03007628582417965,
-0.011829166673123837,
0.01918194629251957,
-0.07823789119720459,
-0.0775907039642334,
0.03636839613318443,
0.0012292086612433195,
0.015172974206507206,
0.023478560149669647,
-0.03843580558896065,
-0.013123543933033943,
-0.025671809911727905,
0.02752348780632019,
-0.028350450098514557,
0.0075460379011929035,
0.033240318298339844,
-0.01321343146264553,
0.049725648015737534,
0.06137504056096077,
-0.02252575382590294,
-0.021590925753116608,
-0.01598195917904377,
0.005208968184888363,
-0.015550500713288784,
0.043469492346048355,
-0.03370773419737816,
0.012377479113638401,
-0.06547389924526215,
0.04462004825472832,
-0.034534696489572525,
-0.02432350069284439,
0.007510082796216011,
0.003208976238965988,
0.022705528885126114,
-0.026408884674310684,
0.007199971470981836,
-0.0033932451624423265,
0.02752348780632019,
0.026408884674310684,
-0.03282683715224266,
-0.03284481540322304,
0.031766168773174286,
-0.030903249979019165,
-0.007303342223167419,
-0.0008573000086471438,
0.006880871951580048,
0.0028179665096104145,
0.007483116816729307,
-0.0790289044380188,
0.020386436954140663,
-0.022471820935606956,
0.0050921146757900715,
0.0013089836575090885,
-0.05562225356698036,
0.01720442622900009,
-0.009959511458873749,
0.04728071391582489,
-0.01271006278693676,
-0.016323531046509743,
-0.03270099684596062,
-0.0395144522190094,
0.013653879053890705,
-0.033384136855602264,
-0.034966155886650085,
-0.05411214753985405,
-0.011334787122905254,
0.011793212033808231,
-0.032215602695941925,
-0.049078457057476044,
-0.05278181657195091,
-0.04728071391582489,
-0.040053773671388626,
0.05957729369401932,
0.01795049197971821,
0.0072269379161298275,
0.03349200263619423,
0.027487533167004585,
0.025977425277233124,
-0.02788303606212139,
0.05368068814277649,
0.042966123670339584,
-0.0009455019026063383,
0.018193187192082405,
0.021483061835169792,
0.018139254301786423,
-0.056844718754291534,
-0.027002140879631042,
0.016440384089946747,
0.058426737785339355,
-0.028925728052854538,
0.0576716847717762,
-0.027002140879631042,
0.050588566809892654,
0.05281776934862137,
-0.005847168155014515,
-0.0033685259986668825,
0.05810314044356346,
0.03000437654554844,
0.04472791403532028,
-0.029806625097990036,
-0.03796838968992233,
0.015370725654065609,
0.0056808763183653355,
-0.005653910338878632,
0.0032471781596541405,
0.0054651470854878426,
0.0001365163188893348,
-0.04138410836458206,
0.040269505232572556,
0.05583798140287399,
-0.05875033140182495,
0.025617877021431923,
-0.10347824543714523,
-0.007204466033726931,
0.0487908199429512,
-0.010543778538703918,
0.017339257523417473,
-0.05317731946706772,
-0.037500977516174316,
0.027865059673786163,
0.07126264274120331,
0.005244923289865255,
-0.02063812129199505,
-0.0008522438583895564,
-0.02513248473405838,
-0.018858352676033974,
-0.057132359594106674,
0.009932545013725758,
0.010939282365143299,
-0.01742914505302906,
0.05188294127583504,
-0.055011019110679626,
-0.060044705867767334,
0.01844487152993679,
-0.05202675983309746,
0.04131219536066055,
-0.010112320072948933,
-0.04835936054587364,
-0.04030545800924301,
0.03901108354330063,
0.015379714779555798,
-0.021608904004096985,
-0.014777470380067825,
-0.004402230028063059,
0.06381997466087341,
0.04059309884905815,
0.02412574738264084,
-0.054651468992233276,
-0.05724022537469864,
-0.012008941732347012,
-0.04523128271102905,
0.018750488758087158,
-0.0034898738376796246,
0.05260204151272774,
0.10995013266801834,
-0.0073572746478021145,
0.040269505232572556,
0.014804435893893242,
0.01583814062178135,
-0.007640419527888298,
-0.0211954228579998,
-0.015092075802385807,
0.029824601486325264,
-0.028422359377145767,
0.01013928558677435,
0.04037737101316452,
0.007999968715012074,
-0.02259766310453415,
0.0213572196662426,
0.026265066117048264,
-0.05389641597867012,
0.028997639194130898,
0.007478622253984213,
0.044763870537281036,
-0.04577060788869858,
0.011730290949344635,
0.09535243362188339,
-0.0027932473458349705,
-0.03205380588769913,
-0.017015663906931877,
-0.011775234714150429,
0.06353233754634857,
-0.015065109357237816,
0.04264253005385399,
-0.0010522430529817939,
-0.05540652200579643,
0.000070540452725254,
-0.003305604914203286,
-0.003364031668752432,
-0.04285825788974762,
0.034894246608018875,
-0.0347144715487957,
-0.02804483287036419,
-0.026624614372849464,
0.036062780767679214,
-0.05202675983309746,
0.02644483931362629,
0.029806625097990036,
0.004764026030898094,
0.020062843337655067,
-0.00005200119994697161,
-0.004530319478362799,
-0.009833669289946556,
0.018696555867791176,
0.07730306684970856,
-0.04393690451979637,
0.03865153342485428,
0.01347410399466753,
-0.008197720162570477,
-0.009671872481703758,
0.00984265748411417,
-0.006489862222224474,
-0.032143693417310715,
0.03361784666776657,
-0.05184698849916458,
0.018283074721693993,
-0.009429176338016987,
0.08025137335062027,
-0.01756397634744644,
0.015262861736118793,
0.024934733286499977,
0.07219746708869934,
-0.012485343962907791,
-0.043469492346048355,
0.07780643552541733,
-0.053213272243738174,
0.012611186131834984,
-0.008656146004796028,
-0.009195469319820404,
0.02004486508667469,
0.014579718001186848,
0.07946036010980606,
0.013716800138354301,
-0.0015146008227020502,
0.009797714650630951,
0.013267363421618938,
-0.013303318060934544,
0.01550555694848299,
-0.04163579270243645,
0.006912332493811846,
0.03739311173558235,
-0.04052118957042694,
0.05655708163976669,
-0.0003634817257989198,
0.0040741413831710815,
0.04555487632751465,
-0.03261110931634903,
-0.042103204876184464,
-0.08161765336990356,
-0.03101111389696598,
0.004177511669695377,
0.04379308596253395,
-0.02367631159722805,
-0.006692108698189259,
0.043469492346048355,
0.07083117961883545,
0.05810314044356346,
0.021411152556538582,
-0.015334771014750004,
-0.03412121534347534,
0.016026902943849564,
-0.011649392545223236,
-0.022849347442388535,
0.016979709267616272,
0.014355000108480453,
-0.04861104488372803,
-0.0170785840600729,
0.02971673756837845,
0.009680860675871372,
-0.05267395079135895,
-0.010867373086512089,
-0.008651651442050934,
-0.03187403082847595,
-0.0505526103079319,
-0.1103815883398056,
0.044116679579019547,
0.05497506633400917,
-0.007056151982396841,
-0.054148100316524506,
0.011487595736980438,
0.028134720399975777,
0.0028853819239884615,
-0.04469195753335953,
0.031047068536281586,
-0.05673685669898987,
-0.054076191037893295,
0.025474056601524353,
0.06960871815681458,
0.05986493453383446,
-0.0020988681353628635,
0.026049336418509483,
-0.04548296704888344,
0.0027640340849757195,
-0.05069642886519432,
-0.004943800624459982,
0.07341993600130081,
-0.09384232759475708,
-0.016943752765655518,
-0.02862011268734932,
-0.019002173095941544,
-0.031208865344524384,
-0.07960417866706848,
-0.04120433330535889,
-0.01961340568959713,
-0.06115930899977684,
-0.034534696489572525,
-0.008656146004796028,
-0.01642240770161152,
0.0003901669988408685,
0.012098829261958599,
-0.007033680099993944,
-0.04170770198106766,
0.037069518119096756,
0.06044021248817444,
0.01459769532084465,
-0.034175146371126175,
-0.05119979754090309,
0.05360877886414528,
0.014453875832259655,
-0.035541433840990067,
0.0715862363576889,
-0.001604488119482994,
-0.009348277933895588,
0.05731213465332985,
0.011487595736980438,
-0.005716831423342228,
-0.043038032948970795,
0.01256624236702919,
0.028871797025203705,
0.018516780808568,
-0.013725788332521915,
0.06079976260662079,
-0.014939267188310623,
0.006759523879736662,
-0.051235754042863846,
-0.022184181958436966,
0.021698791533708572,
-0.0014426909619942307,
-0.02257968671619892,
-0.026247087866067886,
-0.030741451308131218,
-0.01685386709868908,
0.011685347184538841,
0.060979533940553665,
0.030921226367354393,
0.051595304161310196,
-0.015820162370800972,
0.013357250951230526,
-0.06712782382965088,
0.03361784666776657,
-0.03636839613318443,
-0.039190858602523804,
0.02257968671619892,
-0.004943800624459982,
-0.018256107345223427,
-0.0025168440770357847,
0.029375165700912476,
-0.012656129896640778,
-0.005289867054671049,
-0.02556394413113594,
-0.022399911656975746,
0.015199940651655197,
-0.040197595953941345,
0.008467382751405239,
-0.025599898770451546,
-0.01518196240067482,
-0.0279549453407526,
0.049078457057476044,
0.004069646820425987,
0.01206287369132042,
-0.03850771486759186,
-0.021249353885650635,
0.05368068814277649,
-0.005582000594586134,
0.010579734109342098,
0.016323531046509743,
-0.019990932196378708,
-0.03814816474914551,
-0.016467351466417313,
-0.01511005312204361,
0.017114538699388504,
0.027649329975247383,
-0.03138864040374756,
-0.01837296225130558,
0.008772999048233032,
-0.0217167679220438,
0.04073691740632057,
0.008808953687548637,
-0.035469524562358856,
0.015928028151392937,
-0.010319060645997524,
-0.011056136339902878,
0.08535696566104889,
0.06982444226741791,
0.004804475698620081,
-0.03771670535206795,
0.010435913689434528,
-0.050948113203048706,
-0.04929418861865997,
0.05648517236113548,
0.03440885245800018,
-0.009977488778531551,
-0.019505541771650314,
-0.024539228528738022,
0.046813298016786575,
0.037033561617136,
0.0031797627452760935,
-0.009941534139215946,
0.010543778538703918,
-0.003465154906734824,
-0.025150462985038757,
-0.02658865973353386,
-0.04116837680339813,
0.08204911649227142,
0.04044928029179573,
-0.008759516291320324,
0.019775202497839928,
-0.025438101962208748,
-0.015424658544361591,
0.081905297935009,
0.05217058211565018,
-0.06536603718996048,
0.011496583931148052,
0.05655708163976669,
-0.0566289909183979,
0.049581825733184814,
0.011172989383339882,
-0.009429176338016987,
-0.054076191037893295,
-0.03448076173663139,
0.005186496302485466,
0.010822429321706295,
0.020566212013363838,
0.013743766583502293,
0.0544716976583004,
-0.009716815315186977,
-0.009698837995529175
] |
21,292 | tfields.tensor_grid | TensorGrid |
A Tensor Grid is a TensorField which is aware of it's grid nature, which is order of iteration
(iter-order) over the base vectors (base_vectors).
Args:
*base_vectors (tuple): indices of the axes which should be iterated
**kwargs:
num (np.array): same as np.linspace 'num'
iter_order (np.array): index order of building the grid.
further: see TensorFields class
| class TensorGrid(TensorFields):
"""
A Tensor Grid is a TensorField which is aware of it's grid nature, which is order of iteration
(iter-order) over the base vectors (base_vectors).
Args:
*base_vectors (tuple): indices of the axes which should be iterated
**kwargs:
num (np.array): same as np.linspace 'num'
iter_order (np.array): index order of building the grid.
further: see TensorFields class
"""
__slots__ = ["coord_sys", "name", "fields", "base_vectors", "num", "iter_order"]
__slot_setters__ = TensorFields.__slot_setters__ + [
None,
None,
None,
]
def __new__(cls, tensors, *fields, **kwargs):
if isinstance(tensors, TensorGrid):
default_base_vectors = tensors.base_vectors
default_num = tensors.num
default_iter_order = tensors.iter_order
else:
default_base_vectors = kwargs.pop("base_vectors", None)
default_num = None
default_iter_order = None
base_vectors = kwargs.pop("base_vectors", default_base_vectors)
num = kwargs.pop("num", default_num)
iter_order = kwargs.pop("iter_order", default_iter_order)
obj = super(TensorGrid, cls).__new__(cls, tensors, *fields, **kwargs)
if len(base_vectors) == 3:
base_vectors = tuple(tuple(bv) for bv in base_vectors)
base_vectors = grid.ensure_complex(*base_vectors)
if (
isinstance(base_vectors, (tuple, list))
and base_vectors
and len(base_vectors[0]) == 3
):
if num is None:
num = np.array([int(bv[2].imag) for bv in base_vectors], dtype=int)
base_vectors = np.transpose([[bv[0], bv[1]] for bv in base_vectors])
# base_vectors
base_vectors = Tensors(base_vectors, coord_sys=obj.coord_sys)
if len(base_vectors) != 2:
raise ValueError(
f"base_vectors must be of lenght 2. Lenght is {len(base_vectors)}."
)
obj.base_vectors = base_vectors
# num
if num is None:
num = np.array([1 for _ in range(base_vectors.dim)])
else:
num = np.array(num, dtype=int)
obj.num = num
# iter_order
if iter_order is None:
iter_order = np.arange(base_vectors.dim)
else:
iter_order = np.array(iter_order, dtype=int)
obj.iter_order = iter_order
if isinstance(tensors, TensorGrid):
if (obj.num != tensors.num).all() or (
obj.is_empty() and not obj.base_vectors.equal(tensors.base_vectors)
):
# copy constructor with shape change
return obj.empty(*obj.base_num_tuples(), iter_order=iter_order)
if (obj.iter_order != tensors.iter_order).all():
# iter_order was changed in copy constructor
obj.iter_order = (
tensors.iter_order
) # set to 'default_iter_order' and change later
obj.change_iter_order(iter_order)
return obj
def __getitem__(self, index):
if not self.is_empty():
return super().__getitem__(index)
item = self.explicit()
if not util.is_full_slice(index, item.shape):
# downgrade to TensorFields
item = TensorFields(item)
return item.__getitem__(index)
@classmethod
# pylint:disable=arguments-differ
def grid(cls, *base_vectors, tensors=None, fields=None, **kwargs):
"""
Build the grid (explicitly) from base vectors
Args:
explicit args: see __new__
**kwargs: see TensorFields
"""
iter_order = kwargs.pop("iter_order", np.arange(len(base_vectors)))
if tensors is None:
tensors = TensorFields.grid(*base_vectors, iter_order=iter_order, **kwargs)
obj = cls(tensors, base_vectors=base_vectors, iter_order=iter_order, **kwargs)
if fields:
# pylint:disable=attribute-defined-outside-init
obj.fields = fields
return obj
@classmethod
def empty(cls, *base_vectors, **kwargs):
"""
Build the grid (implicitly) from base vectors
"""
base_vectors = grid.ensure_complex(*base_vectors)
bv_lengths = [int(bv[2].imag) for bv in base_vectors]
tensors = np.empty(shape=(np.prod(bv_lengths), 0))
return cls.grid(*base_vectors, tensors=tensors, **kwargs)
@classmethod
def merged(cls, *objects, **kwargs):
if "base_vectors" not in kwargs:
base_vectors = None
for obj in objects:
if base_vectors is None:
base_vectors = obj.base_vectors
else:
if not all(
((a == b).all() for a, b in zip(base_vectors, obj.base_vectors))
):
raise NotImplementedError("Non-alligned base vectors")
kwargs.setdefault("base_vectors", base_vectors)
merge = super().merged(*objects, **kwargs)
return merge
def base_num_tuples(self):
"""
Returns the grid style base_vectors + num tuples
"""
return tuple(
(bv[0], bv[1], complex(0, n))
for bv, n in zip(self.base_vectors.T, self.num)
)
@property
def rank(self):
if self.is_empty():
return 1
return super().rank
def is_empty(self):
"""
Check if the object is an implicit grid (base points are empty but base_vectors and iter
order can be used to build the explicit grid's base points).
"""
return 0 in self.shape
def explicit(self):
"""
Build the grid explicitly (e.g. after changing base_vector, iter_order or init with empty)
"""
kwargs = {
attr: getattr(self, attr)
for attr in self.__slots__
if attr not in ("base_vectors", "num", "coord_sys")
}
base_num_tuples = self.base_num_tuples()
kwargs["coord_sys"] = self.base_vectors.coord_sys
obj = self.grid(*base_num_tuples, **kwargs)
obj.transform(self.coord_sys)
return obj
def change_iter_order(self, iter_order):
"""
Transform the iter order
"""
field_swap_indices = grid.change_iter_order(
# pylint:disable=access-member-before-definition
self.num,
self.iter_order,
iter_order,
)
for field in self.fields:
field[:] = field[field_swap_indices]
# pylint:disable=attribute-defined-outside-init
self.iter_order = iter_order
self[:] = self.explicit()
| (tensors, *fields, **kwargs) | [
-0.023253751918673515,
-0.02609788067638874,
-0.0887688472867012,
0.05347762256860733,
-0.027059275656938553,
-0.010274914093315601,
-0.06249070540070534,
-0.02353416010737419,
-0.03679340332746506,
-0.004899611696600914,
-0.014080437831580639,
0.006559520959854126,
-0.033588752150535583,
0.018556935712695122,
-0.029202386736869812,
0.03002357855439186,
0.021811658516526222,
-0.02820093370974064,
0.021611368283629417,
-0.02780035138130188,
-0.017895976081490517,
-0.032827649265527725,
0.012387980706989765,
0.0511542484164238,
0.01868712343275547,
0.03230689465999603,
0.0092384098097682,
-0.005558067467063665,
0.0009013082599267364,
-0.0378749743103981,
-0.04482506215572357,
-0.013299304060637951,
-0.0010834475979208946,
0.03352866694331169,
0.05912582203745842,
-0.0839618667960167,
0.018236469477415085,
0.041900817304849625,
-0.04899111017584801,
0.038856398314237595,
0.03917686641216278,
-0.07951541244983673,
-0.0005238854209892452,
-0.04618703946471214,
0.029903404414653778,
0.02521660178899765,
0.04506541043519974,
0.00177006924059242,
-0.052315935492515564,
0.0074758511036634445,
0.02691907249391079,
-0.07338652014732361,
0.0504332035779953,
0.016433853656053543,
-0.03745436295866966,
0.041540294885635376,
0.0678584948182106,
-0.005918590817600489,
-0.015382327139377594,
-0.033248260617256165,
-0.04210110753774643,
-0.01477144006639719,
-0.021931834518909454,
-0.043262794613838196,
-0.009518816135823727,
-0.026358257979154587,
-0.05604134127497673,
-0.018366659060120583,
0.02004910074174404,
0.04442448168992996,
-0.04526570066809654,
0.030764654278755188,
0.0583246573805809,
-0.037955090403556824,
-0.01782587356865406,
0.053317390382289886,
0.015472457744181156,
-0.014210626482963562,
0.06072814762592316,
-0.09694071114063263,
-0.02479599043726921,
0.032847676426172256,
0.013119041919708252,
-0.00597367063164711,
-0.0009282223181799054,
-0.013529637828469276,
0.008742690086364746,
0.03473041206598282,
-0.029783230274915695,
-0.08115779608488083,
-0.021491194143891335,
0.005192536860704422,
0.0046267155557870865,
0.008347115479409695,
0.006839928217232227,
-0.017605554312467575,
-0.00792650505900383,
-0.08500338345766068,
-0.05167500674724579,
-0.024014856666326523,
0.014641251415014267,
-0.0044890157878398895,
-0.02569729834794998,
0.01133645512163639,
-0.0080216433852911,
-0.03559166193008423,
-0.027880467474460602,
-0.030564364045858383,
-0.03292779251933098,
-0.02691907249391079,
-0.04482506215572357,
0.08111774176359177,
0.010034564882516861,
0.026718782261013985,
-0.009043126367032528,
-0.022031979635357857,
-0.014380873180925846,
0.036673229187726974,
0.021431107074022293,
0.0012618314940482378,
0.030263926833868027,
0.0034600221551954746,
-0.002494871150702238,
0.030324013903737068,
0.00509739900007844,
-0.014941687695682049,
0.03292779251933098,
0.03344855085015297,
-0.016413824632763863,
-0.05732320249080658,
-0.00020404616952873766,
-0.04091939330101013,
-0.04875076189637184,
0.055440470576286316,
0.04434436559677124,
0.015983199700713158,
0.007891454733908176,
-0.01992892660200596,
-0.07130349427461624,
0.026378287002444267,
0.05071360990405083,
-0.0066496520303189754,
0.019077690318226814,
0.03569180518388748,
-0.032407037913799286,
0.047989655286073685,
0.02918235771358013,
-0.0026738811284303665,
-0.004914633464068174,
-0.057643670588731766,
-0.04746890068054199,
-0.014941687695682049,
0.023574218153953552,
0.04097948223352432,
-0.035832010209560394,
0.010735582560300827,
-0.020589886233210564,
-0.038856398314237595,
0.024235177785158157,
0.056361809372901917,
-0.06425326317548752,
-0.0030293972231447697,
-0.027199478819966316,
0.003630269318819046,
-0.0161434318870306,
0.05091390013694763,
0.012568242847919464,
-0.10006524622440338,
-0.04650750383734703,
0.011226294562220573,
0.018126310780644417,
-0.021811658516526222,
0.018426746129989624,
0.014280728064477444,
-0.01476142555475235,
0.05792407691478729,
-0.00879776943475008,
0.003978274296969175,
-0.009148278273642063,
0.00708027696236968,
0.0035927146673202515,
-0.038435790687799454,
0.012097559869289398,
-0.04634727165102959,
-0.03088482841849327,
0.06561523675918579,
0.041900817304849625,
-0.05347762256860733,
0.038876429200172424,
0.03258730098605156,
-0.012307864613831043,
0.004791955463588238,
0.01220771949738264,
0.017946047708392143,
0.03473041206598282,
0.046667736023664474,
-0.016403809189796448,
0.02087029255926609,
0.023213693872094154,
0.07631076127290726,
-0.03729413077235222,
0.0037028747610747814,
0.07274559140205383,
-0.032767560333013535,
-0.012387980706989765,
0.018166368827223778,
0.023614276200532913,
-0.030944915488362312,
0.03352866694331169,
0.058444831520318985,
0.005578096490353346,
-0.0238345954567194,
0.024235177785158157,
0.04806977137923241,
0.0033648840617388487,
0.012938780710101128,
-0.05119430646300316,
-0.000664088933262974,
0.027640119194984436,
-0.012237763032317162,
0.10503245145082474,
-0.008952994830906391,
-0.030303984880447388,
-0.02689904347062111,
0.037153929471969604,
-0.03264738619327545,
0.009618962183594704,
-0.00499725341796875,
-0.016073329374194145,
-0.04422419145703316,
-0.0008161846781149507,
-0.06561523675918579,
-0.06717750430107117,
0.0034950729459524155,
0.024555642157793045,
-0.0322868637740612,
-0.01916782185435295,
-0.01388014666736126,
0.006214019376784563,
0.015332254581153393,
-0.038896456360816956,
-0.018066223710775375,
-0.04574640095233917,
-0.016874492168426514,
-0.04386366903781891,
0.004158535972237587,
-0.016604101285338402,
0.06128896027803421,
-0.007951541803777218,
0.017665641382336617,
-0.02784040942788124,
-0.007836374454200268,
-0.037133898586034775,
0.005903569050133228,
-0.008001614362001419,
-0.037534479051828384,
-0.008567435666918755,
-0.01570279151201248,
0.023814566433429718,
-0.04750895872712135,
-0.01868712343275547,
-0.02213212475180626,
-0.01780584454536438,
0.08059698343276978,
0.0667368695139885,
-0.02046971209347248,
0.03382910415530205,
0.040638986974954605,
0.02475593239068985,
0.04943174868822098,
0.06493425369262695,
0.0825197771191597,
-0.014420932158827782,
0.0030168788507580757,
0.017946047708392143,
0.0020329507533460855,
0.018046194687485695,
0.004897108301520348,
-0.04903116822242737,
-0.0032997895032167435,
0.01023485604673624,
-0.01475141104310751,
-0.056281693279743195,
-0.03290776535868645,
-0.005618154536932707,
-0.0063041504472494125,
-0.0217315424233675,
-0.05435889959335327,
-0.007490872871130705,
-0.02135099098086357,
0.019898882135748863,
0.042862214148044586,
0.04570634290575981,
0.009989500045776367,
0.035451456904411316,
-0.04999256506562233,
-0.049271516501903534,
0.032427068799734116,
-0.03553157299757004,
-0.02469584532082081,
0.04302244633436203,
-0.020359551534056664,
0.047108378261327744,
-0.003767969086766243,
0.043623317033052444,
-0.0088278129696846,
0.02129090391099453,
-0.017885960638523102,
0.04506541043519974,
-0.03262735903263092,
0.04502535238862038,
0.058004193007946014,
-0.015342269092798233,
0.01105604786425829,
0.05119430646300316,
-0.011556774377822876,
-0.02299337461590767,
-0.017956063151359558,
0.027139391750097275,
0.059326112270355225,
-0.012448067776858807,
0.0574033185839653,
0.00826199259608984,
0.006003714166581631,
-0.029002096503973007,
-0.03268744423985481,
0.039337098598480225,
-0.026218054816126823,
-0.054999832063913345,
0.03909674659371376,
-0.005022289697080851,
0.005578096490353346,
0.029843317344784737,
0.06409303098917007,
0.012628329917788506,
-0.018146339803934097,
0.04618703946471214,
0.02046971209347248,
0.023714421316981316,
-0.03907671943306923,
0.04314262047410011,
0.028982067480683327,
-0.018907444551587105,
0.022092066705226898,
-0.0369536392390728,
-0.05159489065408707,
0.05507994815707207,
0.011266352608799934,
0.02177160046994686,
0.04470488801598549,
0.016113387420773506,
-0.05656209960579872,
0.004766919184476137,
0.010164753533899784,
-0.007616054732352495,
0.013850103132426739,
-0.030203839763998985,
-0.0221922118216753,
0.025777416303753853,
-0.01992892660200596,
0.013599739409983158,
-0.013559681363403797,
0.01086577121168375,
0.04478500410914421,
0.01010967418551445,
-0.04117977246642113,
-0.01170699205249548,
-0.010645451955497265,
-0.028361165896058083,
-0.011787109076976776,
0.0038781289476901293,
-0.05700273811817169,
0.052355993539094925,
0.054599251598119736,
-0.021951863542199135,
0.03140558302402496,
-0.07314617186784744,
0.005362784024327993,
-0.014481019228696823,
-0.04835017770528793,
0.09349570423364639,
-0.014220640994608402,
0.05243610963225365,
0.032767560333013535,
-0.006704731844365597,
0.0051149241626262665,
0.06757809221744537,
0.027720235288143158,
0.04702826216816902,
-0.03270747512578964,
-0.02309351973235607,
-0.018566949293017387,
0.026318199932575226,
0.023794537410140038,
-0.05640186741948128,
-0.008397188037633896,
0.022773055359721184,
0.016243577003479004,
-0.007250524125993252,
-0.0739072784781456,
-0.045425936579704285,
-0.016704246401786804,
-0.008427231572568417,
0.050673551857471466,
0.007811338175088167,
-0.06521465629339218,
0.06777837872505188,
0.00003010228647326585,
0.007976577617228031,
0.036773376166820526,
-0.04117977246642113,
0.053237274289131165,
0.053317390382289886,
-0.0038781289476901293,
-0.006023743189871311,
0.0016048293327912688,
-0.051995471119880676,
0.01738523505628109,
0.04394378513097763,
0.05652204155921936,
0.027600061148405075,
0.0862051248550415,
0.01416055392473936,
0.028541427105665207,
-0.020990466699004173,
-0.029863346368074417,
-0.020990466699004173,
0.012408009730279446,
0.013509608805179596,
0.009789208881556988,
-0.04570634290575981,
-0.040198348462581635,
-0.00018871140491683036,
-0.010345015674829483,
-0.011516716331243515,
-0.0443844236433506,
0.004827006254345179,
0.010229848325252533,
-0.012568242847919464,
0.04230140149593353,
0.023253751918673515,
0.002395977731794119,
0.00890292227268219,
-0.06545500457286835,
-0.017054755240678787,
0.02221224084496498,
-0.019838795065879822,
0.0221922118216753,
-0.06393279880285263,
0.0036452910862863064,
0.06381262093782425,
0.03270747512578964,
0.025116456672549248,
-0.04382361099123955,
0.0453057624399662,
-0.045385878533124924,
-0.020629944279789925,
-0.019768694415688515,
-0.020750118419528008,
0.011546759866178036,
0.011226294562220573,
0.0608883798122406,
-0.01283863466233015,
-0.029843317344784737,
-0.04134000465273857,
-0.05175512284040451,
0.04746890068054199,
0.0012080033775418997,
-0.034910671412944794,
-0.007505894638597965,
0.07150378823280334,
-0.004043369088321924,
-0.006629623007029295,
-0.02563721127808094,
-0.04198093339800835,
0.011887254193425179,
0.02774026431143284,
0.029222415760159492,
-0.03553157299757004,
-0.07755256444215775,
-0.0022720478009432554,
-0.051434654742479324,
0.02992343343794346,
-0.013679856434464455,
-0.008101759478449821,
0.07302599400281906,
0.026358257979154587,
0.05359779670834541,
0.01960846222937107,
-0.010034564882516861,
-0.024074943736195564,
-0.007701178081333637,
-0.00035144761204719543,
0.061088670045137405,
-0.0027715228497982025,
0.019408170133829117,
0.020770147442817688,
-0.0021280888468027115,
0.042341459542512894,
-0.014320786111056805,
0.05792407691478729,
-0.012678402476012707,
-0.004536584950983524,
0.007420771289616823,
0.041059598326683044,
-0.04746890068054199,
0.0260377936065197,
0.03180616721510887,
-0.027199478819966316,
-0.040699075907468796,
-0.008587464690208435,
-0.06809884309768677,
0.02211209572851658,
-0.023273780941963196,
0.03481052815914154,
0.007005167659372091,
-0.03134549781680107,
-0.01969859190285206,
-0.018697138875722885,
0.006699724588543177,
0.023774508386850357,
0.01948828622698784,
-0.03515101969242096,
-0.013840088620781898,
-0.004095945041626692,
0.040638986974954605,
-0.008101759478449821,
-0.02023937739431858,
0.05696268007159233,
0.028040701523423195,
-0.0017875946359708905,
-0.011196251027286053,
0.0009595177252776921,
0.036633171141147614,
0.021911805495619774,
0.04011823236942291,
0.03252721205353737,
-0.025356804952025414,
0.012237763032317162,
-0.019428199157118797,
0.0006509448285214603,
0.026358257979154587,
0.04081925004720688,
-0.04726861044764519,
0.010695524513721466,
0.004266192205250263,
0.02910224162042141,
-0.020399609580636024,
0.005052333232015371,
-0.019828781485557556,
-0.0057183001190423965,
0.01958843320608139,
0.027139391750097275,
-0.005533031187951565,
-0.03909674659371376,
-0.013349376618862152,
-0.05251622572541237,
-0.03639282286167145,
0.0177858155220747,
0.03819543868303299,
0.014090452343225479,
0.054118551313877106,
0.05119430646300316,
0.02643837407231331,
-0.002355919685214758,
0.016604101285338402,
-0.028781775385141373,
0.011897268705070019,
0.007140364032238722,
0.023794537410140038,
0.009408656507730484,
-0.021911805495619774,
-0.03348860889673233,
-0.014330800622701645,
0.0044139064848423,
-0.008612500503659248,
-0.028060730546712875,
0.016934581100940704,
-0.02651849202811718,
-0.11424582451581955,
-0.009263445623219013,
-0.003337344154715538,
0.022412531077861786,
-0.05868517979979515,
0.034089479595422745,
-0.008862864226102829,
-0.06209012120962143,
0.06385268270969391,
0.07434791326522827,
-0.03224680572748184,
0.01675431802868843,
0.04923145845532417,
0.006339201238006353,
-0.0320865735411644,
-0.018236469477415085,
0.0418207012116909,
-0.08740686625242233,
0.0026688738726079464,
-0.019428199157118797,
-0.0408993661403656,
-0.043663375079631805,
0.04818994551897049,
0.009659020230174065,
0.0381353534758091,
-0.009033111855387688,
-0.11496686935424805,
-0.006118881516158581,
-0.006214019376784563,
0.05592116713523865,
-0.009363590739667416,
0.046267155557870865,
0.006704731844365597,
0.0010897066676989198,
-0.03555160388350487,
-0.025897590443491936,
-0.055039890110492706,
-0.0850834995508194,
0.06473395973443985,
0.09253431111574173,
-0.04750895872712135,
-0.018146339803934097,
-0.020990466699004173,
-0.04402390122413635,
-0.04250169172883034,
-0.056762389838695526,
-0.002066749846562743,
0.07066256552934647,
-0.0887688472867012,
0.036713287234306335,
0.03134549781680107,
0.014531091786921024,
-0.051434654742479324,
0.023734450340270996,
0.005332740489393473,
0.0056732348166406155,
-0.05772378668189049,
-0.011516716331243515,
0.01301889680325985,
0.0033999348524957895,
0.016153447329998016,
0.029783230274915695,
0.003670327365398407,
-0.0013932723086327314,
0.04077919200062752,
-0.021851716563105583,
-0.10647454857826233,
0.017034726217389107,
-0.024555642157793045,
0.08756710588932037,
0.044184133410453796,
-0.032827649265527725,
0.061849772930145264,
-0.0035100949462503195,
-0.03965756297111511,
-0.02471587434411049,
0.003379905829206109,
-0.02135099098086357,
0.007020189892500639,
0.055440470576286316,
0.019878853112459183,
0.015772894024848938,
-0.00705524068325758,
0.006729768123477697,
-0.026177996769547462,
-0.054118551313877106,
-0.0002919863036368042,
0.03507090359926224,
0.010455175302922726,
-0.011005975306034088,
0.05167500674724579,
-0.02559715323150158,
-0.045826517045497894,
-0.00596365612000227,
-0.00413099629804492,
0.0121476324275136,
0.015382327139377594,
0.022813113406300545,
0.0034850584343075752,
-0.018847357481718063,
-0.013960262760519981,
0.03771474212408066,
0.03174607828259468,
-0.04117977246642113,
0.03246712684631348,
0.00705524068325758,
-0.015071876347064972,
-0.051995471119880676,
0.020710060372948647,
0.03553157299757004,
-0.04690808802843094,
0.017435306683182716,
0.0006622112123295665,
0.0678584948182106,
-0.015562589280307293,
-0.07258535921573639,
-0.010495233349502087,
-0.0076711345463991165,
-0.041540294885635376,
0.009884347207844257,
0.0067347753793001175,
0.008407202549278736,
-0.041540294885635376,
-0.055881109088659286,
0.03943724185228348,
0.01606331579387188,
0.05039314553141594,
-0.046747852116823196,
-0.01109610591083765,
0.026818927377462387,
-0.015432399697601795,
0.04814988747239113,
0.044063959270715714,
0.0054479073733091354,
-0.09726117551326752,
0.0016949601704254746,
0.03883637115359306,
0.05167500674724579,
0.0487908199429512,
-0.025997735559940338,
0.008862864226102829,
0.010505247861146927,
0.026258112862706184,
0.027199478819966316,
0.024675816297531128,
0.020439667627215385,
0.031065089628100395,
0.012317879125475883,
-0.016093358397483826,
-0.02519657276570797,
-0.03647293895483017,
0.04093942418694496,
0.06689710170030594,
-0.008131803013384342,
-0.024175088852643967,
-0.02699918858706951,
-0.016343722119927406,
0.028561456128954887,
-0.02253270521759987,
-0.0627310499548912,
0.05524018034338951,
-0.054959774017333984,
-0.029282502830028534,
-0.01799612119793892,
-0.004914633464068174,
-0.04174058511853218,
0.03613244742155075,
0.01566273346543312,
-0.039337098598480225,
0.014871586114168167,
-0.015402356162667274,
0.046227097511291504,
0.015352283604443073,
-0.02784040942788124,
-0.044945236295461655,
0.04774930700659752,
-0.020209332928061485,
-0.012377966195344925,
-0.01969859190285206,
-0.05528023838996887,
-0.12233757227659225,
-0.04558616876602173,
-0.03503084555268288,
-0.003923194482922554,
0.051434654742479324,
-0.028521398082375526,
0.03793506324291229,
0.04810982942581177,
0.0416204109787941
] |
21,295 | tfields.tensor_grid | __getitem__ | null | def __getitem__(self, index):
if not self.is_empty():
return super().__getitem__(index)
item = self.explicit()
if not util.is_full_slice(index, item.shape):
# downgrade to TensorFields
item = TensorFields(item)
return item.__getitem__(index)
| (self, index) | [
-0.0023343556094914675,
-0.0524272620677948,
-0.08006947487592697,
0.028881466016173363,
-0.004776285495609045,
-0.012788396328687668,
0.019019082188606262,
4.4122145936853485e-7,
0.08254798501729965,
-0.02227211929857731,
0.009957049041986465,
0.03105015866458416,
-0.022444238886237144,
-0.041067447513341904,
0.02437196485698223,
0.021308256313204765,
0.004935495089739561,
0.042306702584028244,
0.0252669807523489,
0.03772835060954094,
0.01732371561229229,
-0.017797041684389114,
0.02877819538116455,
0.02967321127653122,
0.027143070474267006,
0.030017448589205742,
0.058279287070035934,
-0.014905452728271484,
0.04031012952327728,
-0.03213450312614441,
-0.0255423691123724,
-0.01829618588089943,
0.0279692392796278,
0.08688536286354065,
0.0027775606140494347,
-0.027280764654278755,
-0.04148053377866745,
-0.010008684359490871,
0.02669556252658367,
0.04881277680397034,
-0.002702258760109544,
-0.07173894345760345,
-0.029742058366537094,
-0.058279287070035934,
-0.010619704611599445,
0.005705724935978651,
0.06554268300533295,
0.02180740050971508,
-0.0040254187770187855,
-0.01055085752159357,
0.006609346251934767,
0.03373520448803902,
-0.004453563597053289,
0.02821020409464836,
-0.0510847382247448,
-0.023717913776636124,
0.0003428921045269817,
0.025955453515052795,
-0.008270288817584515,
0.0518764853477478,
-0.015103388577699661,
-0.04371807351708412,
-0.0031196458730846643,
-0.017504440620541573,
0.017383957281708717,
-0.05803832411766052,
-0.0006739510572515428,
0.010602492839097977,
-0.016902025789022446,
-0.010860670357942581,
-0.028950313106179237,
0.027057010680437088,
0.020344393327832222,
-0.03693660721182823,
-0.05521558225154877,
-0.02845117077231407,
0.02123940922319889,
0.01206549908965826,
0.07869253307580948,
-0.04877835139632225,
-0.03304672986268997,
0.04987991228699684,
-0.03748738765716553,
0.03488839790225029,
-0.021032867953181267,
0.005903660785406828,
0.004449260421097279,
0.006794373504817486,
-0.038416825234889984,
-0.03855451941490173,
-0.0048236181028187275,
0.04691947251558304,
-0.01640288345515728,
0.02086074836552143,
-0.006402804050594568,
-0.016798755154013634,
0.0019847401417791843,
-0.05666137486696243,
-0.0659557655453682,
0.04165264964103699,
-0.025232557207345963,
-0.011411449871957302,
-0.041549380868673325,
0.018175702542066574,
-0.0032874613534659147,
0.001811546040698886,
0.010834853164851665,
-0.001070361235179007,
-0.024733413010835648,
-0.021256621927022934,
0.027762696146965027,
0.05125685781240463,
-0.05483692139387131,
0.030069082975387573,
-0.012349494732916355,
0.010963941924273968,
0.02753894217312336,
-0.012685125693678856,
-0.025903819128870964,
-0.01981082744896412,
0.047848913818597794,
-0.011979440227150917,
-0.04963894560933113,
0.024096574634313583,
0.004251324106007814,
0.035060517489910126,
-0.005662695039063692,
0.015215265564620495,
0.04502617195248604,
-0.02294338122010231,
-0.03807258978486061,
-0.020361606031656265,
-0.060654520988464355,
0.046712931245565414,
0.0014920512912794948,
0.029793694615364075,
0.0659213438630104,
-0.012495795264840126,
-0.09852056950330734,
0.021876247599720955,
0.003969480283558369,
-0.01670408993959427,
0.0786236822605133,
0.05445826053619385,
0.0037306661251932383,
-0.03421713784337044,
-0.008231562562286854,
0.01759050041437149,
0.006338259670883417,
-0.032117292284965515,
-0.04075763374567032,
0.06062009930610657,
-0.002865771297365427,
-0.008154109120368958,
-0.0262136310338974,
-0.020499300211668015,
-0.04612772911787033,
-0.056007325649261475,
0.03931184113025665,
0.01087788213044405,
-0.030327260494232178,
-0.02137710526585579,
-0.019518226385116577,
0.005163551773875952,
-0.014053466729819775,
0.05208302661776543,
-0.009931230917572975,
-0.06898505240678787,
-0.04664408415555954,
0.03361472114920616,
0.02256472222507,
-0.00776253966614604,
-0.01640288345515728,
0.006772858556360006,
-0.055353276431560516,
0.08392492681741714,
-0.03721199557185173,
0.024044940248131752,
0.019982945173978806,
-0.05091262236237526,
-0.006368380505591631,
-0.03099852241575718,
-0.017280686646699905,
-0.07607632875442505,
0.017547469586133957,
0.031686995178461075,
-0.04013800993561745,
0.027418460696935654,
0.016600819304585457,
0.06488863378763199,
0.02664392814040184,
0.018571574240922928,
0.01341662835329771,
-0.047022745013237,
0.0016448063543066382,
-0.01530993077903986,
-0.008773734793066978,
0.01360595878213644,
0.03645467758178711,
0.07084392756223679,
-0.030206777155399323,
-0.03535311669111252,
0.007082671858370304,
0.022100001573562622,
-0.09948442876338959,
0.04110187292098999,
0.04199688881635666,
0.021635282784700394,
-0.06495748460292816,
0.01805521920323372,
-0.0508093498647213,
0.009578388184309006,
0.015387384220957756,
0.01640288345515728,
0.024785049259662628,
-0.035387542098760605,
-0.052633803337812424,
-0.03256480023264885,
0.04237554967403412,
0.029311763122677803,
0.07222087681293488,
-0.0508093498647213,
-0.017521653324365616,
0.010206621140241623,
0.03389011323451996,
-0.020275546237826347,
-0.03604159131646156,
-0.01886417530477047,
-0.042169004678726196,
-0.013287539593875408,
0.01815848983824253,
0.01938053034245968,
0.0059639024548232555,
-0.015301325358450413,
0.029501093551516533,
0.055250003933906555,
-0.004240566864609718,
-0.04175592213869095,
0.059656236320734024,
0.016067251563072205,
-0.03129112347960472,
-0.020791901275515556,
-0.034681856632232666,
0.04034455120563507,
-0.020396029576659203,
0.024148210883140564,
-0.016686879098415375,
0.03559408336877823,
-0.01670408993959427,
0.006867523770779371,
-0.010499222204089165,
0.07772866636514664,
0.0034036412835121155,
0.05693676322698593,
0.02275405079126358,
-0.027693849056959152,
-0.021549222990870476,
-0.054114021360874176,
0.0016211401671171188,
-0.0378316231071949,
-0.05191090703010559,
-0.027607791125774384,
0.0214803759008646,
-0.031893540173769,
-0.013364993035793304,
0.026179207488894463,
0.050258569419384,
0.057143308222293854,
0.030774768441915512,
0.07153240591287613,
0.033012308180332184,
0.09769439697265625,
0.013924377970397472,
-0.02953551709651947,
0.030705921351909637,
-0.03177305683493614,
0.038520097732543945,
0.060413554310798645,
-0.009827960282564163,
0.0008068049792200327,
0.0021880550775676966,
0.0018943781033158302,
-0.049363553524017334,
0.02161807008087635,
0.005258216988295317,
-0.034251559525728226,
0.04850296303629875,
-0.03831355273723602,
-0.011222119443118572,
-0.017814254388213158,
0.041308414191007614,
0.022719627246260643,
0.04034455120563507,
-0.005959599278867245,
-0.05607617273926735,
-0.02678162232041359,
-0.08006947487592697,
0.014578428119421005,
0.005589544773101807,
0.0058563281781971455,
-0.011015577241778374,
-0.010499222204089165,
-0.06960467994213104,
0.023115500807762146,
0.03048216737806797,
-0.01018940843641758,
0.004974221345037222,
0.024148210883140564,
0.03389011323451996,
-0.03277134150266647,
-0.00793035514652729,
0.006962188985198736,
-0.015981193631887436,
0.025852182880043983,
0.025766123086214066,
-0.008390771225094795,
-0.034010592848062515,
0.03494003415107727,
0.04237554967403412,
0.08468224853277206,
-0.03573177754878998,
0.0034187017008662224,
-0.03876106068491936,
0.018743693828582764,
-0.04371807351708412,
-0.04123956710100174,
-0.009130881167948246,
-0.05339112505316734,
-0.08922617882490158,
0.07414860278367996,
0.003924299497157335,
-0.024664565920829773,
0.0010515358299016953,
0.001496354234404862,
-0.055387698113918304,
0.001815849100239575,
0.026471808552742004,
0.022168848663568497,
-0.007667874451726675,
0.01175568625330925,
0.008743613958358765,
-0.03831355273723602,
0.021445952355861664,
0.03769392892718315,
0.041273992508649826,
-0.008812461979687214,
0.07063739001750946,
-0.009767718613147736,
0.050740502774715424,
0.011480296961963177,
-0.011454478837549686,
-0.07476823031902313,
0.003971632104367018,
0.014432127587497234,
-0.007444120477885008,
0.0022698112297803164,
-0.011540538631379604,
-0.001595322391949594,
-0.04767679423093796,
0.022100001573562622,
0.011540538631379604,
0.0062263826839625835,
-0.0013339176075533032,
-0.026626715436577797,
0.01618773490190506,
-0.0004889238043688238,
-0.028089722618460655,
0.02569727599620819,
-0.06058567389845848,
0.007310728542506695,
-0.029828118160367012,
-0.018795328214764595,
-0.018898598849773407,
0.013889954425394535,
0.012642095796763897,
-0.02802087366580963,
-0.04340825974941254,
0.025387462228536606,
-0.030826404690742493,
-0.05063723027706146,
0.023442525416612625,
-0.026385750621557236,
0.005598150659352541,
0.05063723027706146,
-0.015619744546711445,
0.03931184113025665,
-0.03385568782687187,
-0.038279131054878235,
0.023201558738946915,
-0.04736698046326637,
-0.03951838240027428,
-0.015387384220957756,
-0.06017259135842323,
-0.012710943818092346,
-0.039793770760297775,
-0.01190198678523302,
0.026368537917733192,
-0.03559408336877823,
-0.00924275815486908,
-0.05201417952775955,
-0.019036294892430305,
-0.006656678859144449,
-0.049088165163993835,
0.05934642255306244,
0.0004233036597725004,
-0.01891581155359745,
0.024475235491991043,
0.04516386613249779,
-0.016359852626919746,
-0.011084424331784248,
0.06137741729617119,
0.07001776248216629,
-0.005632574204355478,
0.03793489560484886,
0.06736713647842407,
0.030705921351909637,
0.019828038290143013,
0.032358258962631226,
-0.02475062571465969,
0.07903676480054855,
-0.010800429619848728,
0.0375562347471714,
-0.03703987970948219,
-0.011170484125614166,
-0.018760904669761658,
-0.042065735906362534,
-0.04299517348408699,
0.032409895211458206,
0.03043053112924099,
0.037005454301834106,
-0.04020685702562332,
-0.10031060129404068,
-0.01977640390396118,
0.020791901275515556,
-0.021962307393550873,
-0.033253274857997894,
-0.020258335396647453,
-0.004277142230421305,
-0.03710872679948807,
0.05129127949476242,
0.09308163076639175,
-0.006131717935204506,
0.020654207095503807,
-0.03018956631422043,
-0.010137773118913174,
-0.004401927813887596,
-0.025180920958518982,
0.03364914655685425,
-0.023339254781603813,
-0.04051667079329491,
0.03371799364686012,
0.012375312857329845,
0.060138165950775146,
0.020309969782829285,
0.044303275644779205,
-0.0616183839738369,
-0.06626558303833008,
-0.02707422338426113,
0.06802118569612503,
-0.01948380284011364,
-0.023476948961615562,
0.06915716826915741,
-0.03461300954222679,
-0.06499190628528595,
0.027177494019269943,
-0.029088009148836136,
-0.007981990464031696,
-0.0011262997286394238,
-0.04588676244020462,
0.020499300211668015,
0.016385670751333237,
-0.03204844519495964,
-0.03456137329339981,
-0.09156698733568192,
0.03721199557185173,
0.02185903675854206,
0.022771263495087624,
0.03105015866458416,
0.007439817767590284,
-0.047194864600896835,
-0.03731526806950569,
-0.03855451941490173,
-0.017280686646699905,
-0.016247976571321487,
-0.024251481518149376,
0.04244439676403999,
-0.057143308222293854,
0.08550842106342316,
-0.004922586027532816,
0.019036294892430305,
0.021256621927022934,
-0.0037521810736507177,
-0.012117135338485241,
0.07111932337284088,
0.0026678352151066065,
0.00509470421820879,
0.012039681896567345,
0.033253274857997894,
0.0581071712076664,
0.027659425511956215,
0.04926028475165367,
-0.01175568625330925,
0.027039799839258194,
-0.006755646783858538,
-0.03148045390844345,
-0.04778006672859192,
0.011678232811391354,
0.044200003147125244,
0.04044782370328903,
-0.09019003808498383,
0.007177337072789669,
0.022444238886237144,
-0.01956986077129841,
0.011962228454649448,
0.047848913818597794,
0.02426869422197342,
-0.023029441013932228,
0.017797041684389114,
-0.00013392962864600122,
0.009354635141789913,
0.052633803337812424,
0.02024112269282341,
-0.04048224538564682,
-0.017005296424031258,
-0.016101675108075142,
0.03882990777492523,
-0.0005050598992966115,
-0.03796931728720665,
0.029845329001545906,
0.02564563974738121,
-0.011583567596971989,
0.012366706505417824,
0.0051549458876252174,
0.02440638840198517,
-0.012840032577514648,
0.002624805551022291,
0.020258335396647453,
-0.011351208202540874,
0.018382243812084198,
0.011471690610051155,
0.007564603351056576,
-0.011471690610051155,
0.034578584134578705,
-0.08309876173734665,
-0.019552649930119514,
-0.0011349056148901582,
-0.022633569315075874,
-0.008580101653933525,
0.028089722618460655,
-0.015103388577699661,
-0.011420055292546749,
-0.0011929955799132586,
0.04526713863015175,
-0.022788476198911667,
0.025490734726190567,
0.05741869658231735,
-0.06096433475613594,
0.0038705123588442802,
-0.004270687699317932,
-0.017607711255550385,
0.04244439676403999,
-0.027039799839258194,
0.10210063308477402,
0.06481979042291641,
-0.005292640533298254,
0.016962267458438873,
-0.012530218809843063,
0.014784970320761204,
0.01708275079727173,
-0.029088009148836136,
-0.028261840343475342,
-0.011807321570813656,
-0.05383863300085068,
0.04347710683941841,
0.040895331650972366,
-0.02521534450352192,
-0.0011962228454649448,
-0.027848755940794945,
-0.046575237065553665,
-0.055525392293930054,
-0.0035886685363948345,
0.0000329445356328506,
0.07614517956972122,
-0.02488831989467144,
0.0014877483481541276,
0.008330530487000942,
0.03464743122458458,
0.011721262708306313,
-0.02521534450352192,
-0.008270288817584515,
0.04578349366784096,
-0.008244470693171024,
0.014914059080183506,
0.01629961095750332,
0.052255142480134964,
0.05834813416004181,
-0.08771153539419174,
-0.029983025044202805,
-0.009638629853725433,
-0.008390771225094795,
-0.02588660642504692,
0.031359970569610596,
-0.0018545757047832012,
0.023769550025463104,
0.0006379138212651014,
-0.04289190471172333,
0.006239291746169329,
0.07032757252454758,
0.06771137565374374,
-0.05769408494234085,
0.01777983084321022,
0.03855451941490173,
-0.030740344896912575,
-0.0134424464777112,
-0.026609502732753754,
-0.060034897178411484,
-0.03416550159454346,
0.063787080347538,
0.035129364579916,
-0.007706601172685623,
-0.01071436982601881,
0.03433762118220329,
-0.06695405393838882,
0.031600937247276306,
-0.03469906747341156,
-0.04843411594629288,
0.06867524236440659,
-0.059518542140722275,
0.008072352968156338,
0.019397743046283722,
0.03005187213420868,
-0.015843497589230537,
0.003201402025297284,
0.018124066293239594,
-0.044303275644779205,
-0.018898598849773407,
-0.012495795264840126,
0.012934696860611439,
-0.015559502877295017,
0.08041371405124664,
-0.026678351685404778,
-0.006863221060484648,
0.007112792693078518,
0.03223777562379837,
0.025129284709692,
-0.08020716905593872,
-0.03392453491687775,
-0.03409665450453758,
0.029088009148836136,
0.027229130268096924,
-0.056764647364616394,
0.01929447241127491,
-0.014578428119421005,
-0.04048224538564682,
0.025766123086214066,
0.017099961638450623,
0.05277150124311447,
-0.0635116845369339,
-0.02555958181619644,
0.023287618532776833,
-0.029759271070361137,
-0.04137726128101349,
-0.011833139695227146,
-0.027693849056959152,
0.048330843448638916,
-0.02464735321700573,
-0.03831355273723602,
-0.007474241312593222,
-0.002824893221259117,
0.016626637428998947,
-0.03635140508413315,
0.006510378327220678,
-0.05063723027706146,
0.020585360005497932,
0.0635116845369339,
0.009845172055065632,
0.07373552024364471,
-0.03037889674305916,
0.032736919820308685,
-0.019277259707450867,
0.06271994113922119,
-0.01572301611304283,
-0.0235113725066185,
0.058279287070035934,
-0.026058724150061607,
-0.005481970962136984,
-0.04271978512406349,
0.006308139301836491,
0.015077571384608746,
-0.061549536883831024,
0.011704050935804844,
-0.08963926136493683,
0.05163551867008209,
0.00384039175696671,
-0.0610676072537899,
-0.01549926120787859,
-0.005636877380311489,
0.019328895956277847,
-0.00902760960161686,
0.039897043257951736,
-0.025473522022366524,
0.014285827055573463,
-0.02564563974738121,
-0.014087890274822712,
0.009268575347959995,
0.0214803759008646,
-0.02180740050971508,
0.02318434789776802,
-0.03395896032452583,
-0.059518542140722275,
0.026988163590431213,
0.0340450182557106,
-0.011075818911194801,
-0.032203350216150284,
0.0348539762198925,
0.03669564053416252,
-0.018038008362054825,
0.014612851664423943,
-0.041033025830984116,
0.02555958181619644,
-0.007818478159606457,
0.0009219091734848917,
-0.0026678352151066065,
0.08261682838201523,
0.01564556173980236,
0.029604364186525345,
-0.003741423599421978,
-0.013683412224054337,
-0.06826215237379074,
0.03611043840646744,
0.08660997450351715,
-0.010817641392350197,
0.0491914376616478,
-0.05001760646700859,
0.022599145770072937,
-0.002075102413073182,
0.02845117077231407,
-0.01448376290500164,
0.01680736057460308,
0.01654057763516903,
0.00366181880235672,
0.01815848983824253,
0.006290927063673735,
0.02251308597624302,
-0.025903819128870964,
0.013261722400784492,
0.0022719628177583218,
0.004496593028306961,
-0.03053380362689495,
-0.0279692392796278,
0.0675392597913742,
0.0556630901992321,
-0.017229050397872925,
0.03105015866458416,
0.04585234075784683,
-0.04740140587091446,
0.013666200451552868,
-0.012659307569265366,
-0.018382243812084198,
-0.05469922721385956,
-0.0289158895611763,
-0.01549926120787859,
-0.02123940922319889,
0.07669595628976822,
-0.11476854234933853,
0.04247881844639778,
-0.007878719829022884,
-0.0027173191774636507
] |
21,297 | tfields.tensor_grid | __new__ | null | def __new__(cls, tensors, *fields, **kwargs):
if isinstance(tensors, TensorGrid):
default_base_vectors = tensors.base_vectors
default_num = tensors.num
default_iter_order = tensors.iter_order
else:
default_base_vectors = kwargs.pop("base_vectors", None)
default_num = None
default_iter_order = None
base_vectors = kwargs.pop("base_vectors", default_base_vectors)
num = kwargs.pop("num", default_num)
iter_order = kwargs.pop("iter_order", default_iter_order)
obj = super(TensorGrid, cls).__new__(cls, tensors, *fields, **kwargs)
if len(base_vectors) == 3:
base_vectors = tuple(tuple(bv) for bv in base_vectors)
base_vectors = grid.ensure_complex(*base_vectors)
if (
isinstance(base_vectors, (tuple, list))
and base_vectors
and len(base_vectors[0]) == 3
):
if num is None:
num = np.array([int(bv[2].imag) for bv in base_vectors], dtype=int)
base_vectors = np.transpose([[bv[0], bv[1]] for bv in base_vectors])
# base_vectors
base_vectors = Tensors(base_vectors, coord_sys=obj.coord_sys)
if len(base_vectors) != 2:
raise ValueError(
f"base_vectors must be of lenght 2. Lenght is {len(base_vectors)}."
)
obj.base_vectors = base_vectors
# num
if num is None:
num = np.array([1 for _ in range(base_vectors.dim)])
else:
num = np.array(num, dtype=int)
obj.num = num
# iter_order
if iter_order is None:
iter_order = np.arange(base_vectors.dim)
else:
iter_order = np.array(iter_order, dtype=int)
obj.iter_order = iter_order
if isinstance(tensors, TensorGrid):
if (obj.num != tensors.num).all() or (
obj.is_empty() and not obj.base_vectors.equal(tensors.base_vectors)
):
# copy constructor with shape change
return obj.empty(*obj.base_num_tuples(), iter_order=iter_order)
if (obj.iter_order != tensors.iter_order).all():
# iter_order was changed in copy constructor
obj.iter_order = (
tensors.iter_order
) # set to 'default_iter_order' and change later
obj.change_iter_order(iter_order)
return obj
| (cls, tensors, *fields, **kwargs) | [
-0.029445990920066833,
-0.020954223349690437,
-0.03616863861680031,
0.02472834102809429,
-0.057791195809841156,
0.008963532745838165,
-0.051225800067186356,
0.021504614502191544,
-0.028345204889774323,
0.026025695726275444,
-0.001850202796049416,
0.05362394079566002,
-0.0703715905547142,
0.010585224255919456,
0.003032072214409709,
0.015145617537200451,
0.025219762697815895,
-0.04768756404519081,
0.013199587352573872,
-0.03980515897274017,
0.002727390732616186,
0.00805931631475687,
-0.013012847863137722,
0.0702536478638649,
0.02972118742763996,
0.043520309031009674,
0.0024165664799511433,
-0.009607294574379921,
0.0335739329457283,
-0.021367017179727554,
-0.04800207540392876,
0.024413831532001495,
0.009115872904658318,
0.08397414535284042,
0.060346588492393494,
-0.0727304145693779,
-0.010850591585040092,
0.036679718643426895,
-0.05657247081398964,
0.03217829391360283,
0.03559859097003937,
-0.10504630953073502,
-0.015420814044773579,
-0.036247268319129944,
0.0441100150346756,
0.04015898331999779,
0.05185482278466225,
-0.029740843921899796,
-0.06341306120157242,
-0.005253298208117485,
0.0009232586016878486,
-0.030704030767083168,
0.04709785804152489,
0.002213854808360338,
-0.05692629516124725,
0.060071393847465515,
0.0890849307179451,
0.007951203733682632,
-0.07717286795377731,
-0.002997672650963068,
-0.07540374994277954,
0.009400897659361362,
-0.0011462412076070905,
-0.05503923445940018,
-0.01499819103628397,
-0.012737651355564594,
-0.04293060302734375,
-0.035913098603487015,
0.02111147716641426,
0.059835512191057205,
-0.030959568917751312,
0.031785156577825546,
0.028364863246679306,
-0.03182447329163551,
0.010830935090780258,
0.06533943116664886,
-0.007695664186030626,
-0.010015174746513367,
0.03762324899435043,
-0.07001776993274689,
-0.034871287643909454,
0.02352927252650261,
0.018054833635687828,
0.020796967670321465,
0.012010347098112106,
-0.009715408086776733,
-0.008693250827491283,
0.010123287327587605,
-0.023411331698298454,
-0.03455677628517151,
-0.06278403848409653,
-0.0050321584567427635,
-0.006044487468898296,
-0.02172084152698517,
0.024944568052887917,
-0.01295387651771307,
0.0006201128126122057,
-0.03947099298238754,
-0.007882405072450638,
-0.004720105789601803,
0.014752480201423168,
-0.013288043439388275,
-0.033259421586990356,
-0.009258385747671127,
-0.006241056136786938,
-0.04049314931035042,
-0.01815311796963215,
-0.015440470539033413,
-0.04430658370256424,
-0.024118978530168533,
-0.024276234209537506,
0.09042160212993622,
0.022212263196706772,
0.06569325923919678,
-0.01949961483478546,
-0.021563585847616196,
-0.010654022917151451,
0.01759289763867855,
0.029603244736790657,
0.0015406071906909347,
0.010182258673012257,
0.01673782430589199,
-0.0034768087789416313,
0.028541773557662964,
-0.007322183810174465,
0.023411331698298454,
0.03402604162693024,
-0.008349255658686161,
0.001831774483434856,
-0.04108285531401634,
-0.011823606677353382,
-0.04316648468375206,
-0.041200798004865646,
0.07233727723360062,
0.033829472959041595,
0.012295371852815151,
0.0034252095501869917,
0.007617036812007427,
-0.037819817662239075,
0.017278388142585754,
0.04135805368423462,
0.0035013798624277115,
0.05138305574655533,
0.049417369067668915,
-0.040729034692049026,
0.04517148435115814,
0.032256923615932465,
-0.0027544188778847456,
-0.015558412298560143,
-0.025730842724442482,
-0.04560393840074539,
-0.0036463493015617132,
0.038193296641111374,
0.03174584358930588,
-0.047137171030044556,
0.011096302419900894,
-0.012167601846158504,
-0.061447374522686005,
0.0389009453356266,
0.057555314153432846,
-0.014359342865645885,
0.035343050956726074,
-0.007567894645035267,
-0.0070076738484203815,
-0.005833175964653492,
0.0481986440718174,
0.016806622967123985,
-0.1170763149857521,
-0.051697567105293274,
-0.008599880151450634,
0.011853092350065708,
-0.026635058224201202,
0.06372757256031036,
0.03459608927369118,
-0.043048545718193054,
0.03099888376891613,
-0.002658591605722904,
-0.0070912158116698265,
-0.015371671877801418,
0.03911716863512993,
-0.01940133050084114,
-0.010034832172095776,
0.019381674006581306,
-0.028128979727625847,
-0.006275455467402935,
0.06231227517127991,
0.026300890371203423,
-0.014585397206246853,
0.031352706253528595,
0.02795206755399704,
-0.012354342266917229,
0.03314148262143135,
-0.0032016125041991472,
0.0348123162984848,
0.026949567720294,
0.045289427042007446,
0.0012162687489762902,
0.018359515815973282,
0.0013034961884841323,
0.09498199075460434,
-0.03632589429616928,
0.010595052503049374,
0.052405212074518204,
-0.05680835247039795,
0.016521599143743515,
0.018860766664147377,
-0.00350629398599267,
-0.014320028945803642,
0.018860766664147377,
0.025141136720776558,
0.05268041044473648,
-0.009921805001795292,
0.023214763030409813,
0.04131874069571495,
-0.020285889506340027,
0.0067816199734807014,
-0.04194775968790054,
-0.01568618230521679,
0.009808777831494808,
-0.01302267611026764,
0.14129357039928436,
0.0027961896266788244,
-0.06345237791538239,
-0.012698337435722351,
0.01644297130405903,
-0.015224245376884937,
0.006526080425828695,
-0.045997075736522675,
-0.0348123162984848,
-0.017199760302901268,
-0.03583447262644768,
-0.027873441576957703,
-0.07096129655838013,
0.021268732845783234,
0.027794813737273216,
-0.013455127365887165,
-0.0025725928135216236,
-0.025986380875110626,
-0.00872765015810728,
0.02852211706340313,
-0.015125961042940617,
-0.02148495800793171,
-0.015941720455884933,
-0.00853108149021864,
0.001260496792383492,
-0.017042506486177444,
-0.056218646466732025,
0.05614002048969269,
-0.007965946570038795,
0.019607726484537125,
-0.03266971558332443,
-0.010123287327587605,
-0.023922409862279892,
0.008639194071292877,
-0.002641391707584262,
0.011892406269907951,
-0.006088715512305498,
-0.05523580312728882,
0.016344686970114708,
-0.059638943523168564,
-0.009803863242268562,
-0.022742997854948044,
-0.0010233857901766896,
0.0931735634803772,
0.041475992649793625,
-0.04697991907596588,
0.019214589148759842,
0.031175794079899788,
0.012560739181935787,
0.046704720705747604,
0.016659196466207504,
0.08884905278682709,
-0.013779465109109879,
0.0029460731893777847,
0.023096822202205658,
-0.050989918410778046,
0.0011830978328362107,
-0.007710407022386789,
-0.055117860436439514,
-0.008211657404899597,
-0.0028183036483824253,
0.0033981814049184322,
-0.029170794412493706,
-0.035677216947078705,
0.0019558584317564964,
-0.01276713702827692,
-0.030939912423491478,
-0.03371153026819229,
-0.025789812207221985,
-0.034773003309965134,
0.015076818875968456,
0.06494629383087158,
0.026654714718461037,
-0.01169583760201931,
0.03418329730629921,
-0.05657247081398964,
-0.0671478658914566,
0.06632227450609207,
-0.018752653151750565,
-0.01193171925842762,
0.012560739181935787,
-0.041043542325496674,
0.010039745829999447,
-0.004720105789601803,
0.04847383871674538,
-0.0363062359392643,
0.011587724089622498,
-0.024649715051054955,
0.05059678107500076,
0.004624278750270605,
0.06474972516298294,
0.06734443455934525,
-0.008742392994463444,
0.020128633826971054,
0.0604645311832428,
0.006683335639536381,
0.01317010261118412,
-0.0351857952773571,
0.010010261088609695,
0.05845952779054642,
0.011312528513371944,
0.013140616938471794,
-0.010241229087114334,
-0.00340555259026587,
-0.04823795706033707,
-0.05106854811310768,
0.013828607276082039,
-0.04843452572822571,
-0.057555314153432846,
0.020099148154258728,
-0.008717821910977364,
0.02429589070379734,
0.04910286143422127,
0.040532466024160385,
0.0037397195119410753,
-0.011459955014288425,
0.03424226492643356,
0.02191741019487381,
0.004572679288685322,
-0.038193296641111374,
0.03833089396357536,
0.008909475989639759,
-0.022566085681319237,
0.029583588242530823,
-0.05004638805985451,
-0.050282273441553116,
0.040807660669088364,
-0.019794467836618423,
0.032591089606285095,
0.013936720788478851,
0.013759808614850044,
-0.06451384723186493,
0.011469783261418343,
0.015528926625847816,
0.03683697432279587,
0.028541773557662964,
-0.04926011338829994,
-0.01040831208229065,
0.01982395350933075,
-0.041200798004865646,
-0.014890078455209732,
-0.003373610321432352,
0.02828623540699482,
0.053741879761219025,
0.01734718680381775,
-0.01701302081346512,
0.005808604881167412,
-0.029013538733124733,
-0.04697991907596588,
0.01369100995361805,
0.02120976150035858,
-0.035008884966373444,
0.024551430717110634,
0.06372757256031036,
-0.001420208835043013,
-0.0028871027752757072,
-0.09883473813533783,
0.00775954918935895,
-0.018959050998091698,
-0.04112217202782631,
0.05205139145255089,
-0.016649369150400162,
0.05653315782546997,
0.024118978530168533,
-0.027421332895755768,
0.02352927252650261,
0.06474972516298294,
0.029504960402846336,
0.03414398059248924,
-0.009975860826671124,
-0.03899922966957092,
-0.0253377053886652,
0.005548151209950447,
-0.008452453650534153,
-0.0174061581492424,
0.004280283115804195,
0.028777657076716423,
0.023313047364354134,
-0.00009805399167817086,
-0.08460316807031631,
-0.0628233551979065,
-0.005926546175032854,
0.003599664196372032,
0.04776619374752045,
-0.014103803783655167,
-0.044660408049821854,
0.06581120193004608,
0.030645059421658516,
0.008024916984140873,
0.016098976135253906,
-0.0013858092715963721,
0.03994276002049446,
0.04878835007548332,
-0.007499095518141985,
-0.0010227714665234089,
0.004700448829680681,
-0.055078547447919846,
-0.028128979727625847,
0.03813432529568672,
0.023234419524669647,
-0.004054229240864515,
0.09891336411237717,
0.011273214593529701,
0.018624883145093918,
-0.00341783813200891,
0.010899733752012253,
-0.0212490763515234,
-0.0024902797304093838,
0.0297998134046793,
-0.0228609386831522,
-0.05307354778051376,
-0.010654022917151451,
0.0036070356145501137,
-0.004862618166953325,
0.006604708265513182,
-0.024944568052887917,
-0.0007021187921054661,
-0.013425641693174839,
-0.02848280407488346,
0.012246229685842991,
-0.0014754937728866935,
-0.04493560269474983,
0.02158324234187603,
-0.05342737212777138,
-0.04344168305397034,
-0.008491767570376396,
-0.0003691805759444833,
0.004838047083467245,
-0.04639021307229996,
-0.009430383332073689,
0.05177619308233261,
0.04662609472870827,
0.026988882571458817,
-0.04548599570989609,
0.0734773799777031,
-0.05547168478369713,
-0.038861632347106934,
-0.00833942648023367,
0.013858092948794365,
0.00825097132474184,
-0.00908147357404232,
0.03294491395354271,
0.007538409437984228,
-0.06364894658327103,
-0.032728686928749084,
-0.06899560987949371,
0.04796276241540909,
-0.01724890246987343,
-0.022271232679486275,
-0.017946721985936165,
0.07874541729688644,
0.02343098819255829,
0.019322702661156654,
-0.017740324139595032,
-0.05786982178688049,
-0.013042332604527473,
0.04863109439611435,
0.01786809414625168,
-0.03351496160030365,
-0.0760720819234848,
0.0027495045214891434,
-0.017199760302901268,
0.034537117928266525,
-0.00004192441701889038,
-0.012069317512214184,
0.04607570171356201,
-0.012786793522536755,
0.029740843921899796,
0.025947067886590958,
0.030075009912252426,
-0.0023477673530578613,
0.015597726218402386,
-0.009160101413726807,
0.05924580246210098,
0.0025504787918180227,
0.004720105789601803,
0.0228609386831522,
0.0018366887234151363,
0.016285715624690056,
0.009548324160277843,
0.04812001809477806,
-0.043048545718193054,
0.004474394954741001,
0.022841282188892365,
0.024787312373518944,
-0.05134374275803566,
0.029819471761584282,
0.013238901272416115,
-0.023804469034075737,
-0.041908446699380875,
-0.012894906103610992,
-0.04273403435945511,
-0.004435081034898758,
-0.017504442483186722,
-0.005803690757602453,
-0.020000863820314407,
-0.051422368735075,
-0.010260885581374168,
-0.019656868651509285,
0.0035554361529648304,
0.0555109977722168,
0.0401393286883831,
-0.03408501297235489,
-0.019764982163906097,
-0.02272334136068821,
0.024551430717110634,
-0.01712113246321678,
-0.02439417503774166,
0.0759541466832161,
0.05456747114658356,
-0.01810397580265999,
-0.050557468086481094,
-0.0212490763515234,
0.04383482038974762,
-0.0045530223287642,
0.02557358704507351,
0.024689028039574623,
-0.013946549035608768,
0.04186912998557091,
-0.030841628089547157,
-0.007946289144456387,
-0.00018090462253894657,
0.026163293048739433,
-0.013248729519546032,
-0.02600603736937046,
0.007115786895155907,
0.01321924477815628,
0.010860420763492584,
0.008005260489881039,
-0.025514615699648857,
-0.0019079449120908976,
0.004842961207032204,
0.016364343464374542,
-0.007297612726688385,
-0.04116148501634598,
0.012482112273573875,
-0.025042852386832237,
-0.03958893567323685,
0.008830848149955273,
0.029544275254011154,
0.025514615699648857,
0.022369517013430595,
0.050793349742889404,
0.05991413816809654,
-0.014506769366562366,
0.021622557193040848,
-0.02315579168498516,
0.0302322655916214,
-0.005656264256685972,
0.0006351625779643655,
0.017091648653149605,
0.009400897659361362,
-0.0253377053886652,
0.028659716248512268,
-0.007194414269179106,
-0.0017076905351132154,
-0.009882491081953049,
0.026497459039092064,
-0.018408657982945442,
-0.09026434272527695,
-0.018005691468715668,
0.009405812248587608,
-0.007214071229100227,
-0.050282273441553116,
0.023372016847133636,
-0.01271799486130476,
-0.07064678519964218,
0.031352706253528595,
0.07461747527122498,
-0.033259421586990356,
0.04973188042640686,
0.06761962920427322,
-0.03740702196955681,
-0.00044320098822936416,
-0.02838451974093914,
0.023745497688651085,
-0.07410639524459839,
-0.00822640024125576,
-0.030153637751936913,
-0.024924909695982933,
-0.04882766306400299,
0.05582550913095474,
0.009219071827828884,
0.024885596707463264,
0.0005546922911889851,
-0.12431003898382187,
-0.027460645884275436,
-0.003403095528483391,
0.0555109977722168,
0.005946203134953976,
0.058695413172245026,
-0.005415467545390129,
0.011764636263251305,
-0.05385982245206833,
0.009867748245596886,
-0.03056643158197403,
-0.09050022810697556,
0.05610070377588272,
0.0442279577255249,
-0.05496060848236084,
-0.024315547198057175,
-0.02710682339966297,
-0.029269078746438026,
-0.019037678837776184,
-0.06765894591808319,
-0.0151161327958107,
0.04654746502637863,
-0.08877041935920715,
0.009843177162110806,
0.013936720788478851,
0.03709251433610916,
-0.05794845148921013,
0.020895252004265785,
0.0003406166797503829,
0.010260885581374168,
-0.028227264061570168,
-0.011941548436880112,
0.023981381207704544,
0.03947099298238754,
0.010300199501216412,
0.02453177236020565,
0.012570568360388279,
0.014713166281580925,
0.00015863707812968642,
-0.012275715358555317,
-0.12635435163974762,
0.030075009912252426,
-0.017897579818964005,
0.06223364919424057,
0.027323048561811447,
-0.023883096873760223,
0.08358100801706314,
0.008270627819001675,
-0.017091648653149605,
-0.0323355495929718,
-0.003924002405256033,
-0.010260885581374168,
0.018320202827453613,
0.07147237658500671,
0.030782656744122505,
0.004336796700954437,
-0.007243556436151266,
0.043480996042490005,
-0.017583070322871208,
-0.007415554020553827,
0.023902753368020058,
0.028541773557662964,
-0.010585224255919456,
0.004722563084214926,
0.035441335290670395,
-0.03874368965625763,
-0.030153637751936913,
0.0008728878456167877,
-0.005975688342005014,
0.032630402594804764,
0.023037850856781006,
0.024315547198057175,
0.0026856197509914637,
-0.008614622987806797,
0.009921805001795292,
0.02024657465517521,
0.025141136720776558,
-0.0190180204808712,
0.010703165084123611,
0.004597250372171402,
-0.020403830334544182,
-0.04501423239707947,
0.05036089941859245,
0.00793646089732647,
-0.04682266339659691,
0.02808966673910618,
-0.00867850799113512,
0.05087197944521904,
-0.011381327174603939,
-0.07005707919597626,
0.0076022944413125515,
-0.035539619624614716,
-0.06246953085064888,
0.026399174705147743,
0.009587638080120087,
-0.0018993449630215764,
-0.014162774197757244,
-0.07406708598136902,
0.051422368735075,
0.028011038899421692,
0.02634020522236824,
-0.036778002977371216,
-0.018703510984778404,
-0.002894473960623145,
-0.027932411059737206,
0.034871287643909454,
0.0638061985373497,
0.028600744903087616,
-0.08468179404735565,
-0.009853005409240723,
0.03569687530398369,
0.07221933454275131,
0.02177981100976467,
-0.014310200698673725,
-0.013455127365887165,
0.017818951979279518,
-0.011420641094446182,
0.03575584664940834,
0.03428158164024353,
0.0007285327301360667,
0.010654022917151451,
0.006840590387582779,
-0.013514097779989243,
-0.008206742815673351,
-0.06176188215613365,
0.04988913610577583,
0.05040021240711212,
-0.00813302956521511,
-0.054410215467214584,
-0.026654714718461037,
-0.02520010620355606,
0.046665407717227936,
-0.02268402650952339,
-0.024040350690484047,
0.052405212074518204,
-0.061879824846982956,
-0.01787792332470417,
0.02443348802626133,
0.031313393265008926,
-0.07221933454275131,
0.01317010261118412,
0.017229245975613594,
-0.05358462408185005,
0.024551430717110634,
0.00743029685690999,
0.01730787381529808,
0.014428142458200455,
-0.018674025312066078,
-0.04682266339659691,
0.044896289706230164,
-0.05845952779054642,
-0.009666265919804573,
-0.04218364134430885,
-0.06502492725849152,
-0.10850591957569122,
-0.02305750735104084,
-0.026949567720294,
-0.0067963628098368645,
0.04359893500804901,
-0.028679372742772102,
0.04477834701538086,
0.08523218333721161,
0.03266971558332443
] |
21,312 | tfields.tensor_grid | base_num_tuples |
Returns the grid style base_vectors + num tuples
| def base_num_tuples(self):
"""
Returns the grid style base_vectors + num tuples
"""
return tuple(
(bv[0], bv[1], complex(0, n))
for bv, n in zip(self.base_vectors.T, self.num)
)
| (self) | [
-0.008043799549341202,
-0.01237438339740038,
-0.025830285623669624,
0.05050695315003395,
0.028750387951731682,
-0.002663241233676672,
-0.007304761558771133,
-0.02312648855149746,
-0.025902386754751205,
0.03828578442335129,
-0.010770129971206188,
0.029849933460354805,
-0.0069487616419792175,
0.008638635277748108,
-0.041205886751413345,
-0.01627686619758606,
0.043549176305532455,
-0.08270017802715302,
-0.01973772794008255,
-0.00994997750967741,
-0.04091748222708702,
0.051840826869010925,
-0.001009981264360249,
0.04405388608574867,
-0.0013293675146996975,
0.0812581479549408,
-0.0020785448141396046,
-0.024694690480828285,
0.0332026444375515,
-0.0645667016506195,
-0.10930555313825607,
0.012221167795360088,
-0.003913748078048229,
-0.04650533199310303,
0.02287413366138935,
0.008408812806010246,
0.011860662139952183,
0.025343602523207664,
-0.006277318112552166,
0.07069531083106995,
0.09805774688720703,
-0.11738089472055435,
-0.007683293428272009,
0.026929831132292747,
0.0000058485479712544475,
-0.018512004986405373,
0.03893469646573067,
-0.07206523418426514,
-0.04376548156142235,
-0.013383801095187664,
-0.0005275222938507795,
-0.0336713008582592,
0.03222927451133728,
-0.03882654383778572,
-0.06355728209018707,
0.02907484397292137,
0.024514436721801758,
0.028876565396785736,
-0.032193224877119064,
0.003555494826287031,
-0.03136406093835831,
0.047731053084135056,
-0.020026132464408875,
-0.03341894596815109,
0.006804558914154768,
0.0059979259967803955,
-0.05162452161312103,
-0.0016932536382228136,
0.02797529846429825,
0.07859040051698685,
0.00437339348718524,
0.04376548156142235,
-0.019863905385136604,
0.0027578743174672127,
0.03695191070437431,
0.032986339181661606,
0.0328601598739624,
0.006732457783073187,
0.026407096534967422,
-0.06507141143083572,
0.01838582754135132,
-0.009265015833079815,
0.015033118426799774,
0.0032197730615735054,
0.027614792808890343,
-0.01611463725566864,
-0.007615698501467705,
0.004235950764268637,
-0.06864042580127716,
-0.012942180968821049,
-0.050146445631980896,
0.0002467215817887336,
-0.010355547070503235,
0.024027753621339798,
0.00901716761291027,
-0.014744712971150875,
-0.039367303252220154,
-0.05335495248436928,
-0.011536206118762493,
-0.050074342638254166,
0.015096207149326801,
-0.006205216981470585,
-0.06842412054538727,
-0.047911304980516434,
-0.012221167795360088,
-0.0014634308172389865,
0.015186334028840065,
-0.061682652682065964,
0.022513626143336296,
-0.006254786625504494,
-0.04124193638563156,
0.052237384021282196,
0.019196968525648117,
0.026893779635429382,
-0.08298858255147934,
-0.01636699214577675,
-0.00232751970179379,
0.07952772080898285,
-0.01643909327685833,
0.03875444084405899,
0.024784818291664124,
-0.018115447834134102,
0.006912711076438427,
0.05115586146712303,
-0.014879902824759483,
0.030751198530197144,
0.04600062221288681,
0.0072957491502165794,
-0.02062096819281578,
-0.05872649699449539,
0.02303636074066162,
-0.01723220758140087,
0.0050606089644134045,
0.05054300278425217,
-0.03922310099005699,
0.0024198994506150484,
0.05050695315003395,
-0.05544589087367058,
-0.008106888271868229,
0.008931547403335571,
0.01433914341032505,
0.03417601063847542,
0.02449641190469265,
0.052489735186100006,
-0.031147755682468414,
0.05169662460684776,
0.06474695354700089,
0.019467348232865334,
-0.024153931066393852,
-0.04675768315792084,
-0.012680813670158386,
-0.00437339348718524,
0.04167454317212105,
-0.02029651217162609,
-0.02053084224462509,
0.0011502408888190985,
0.04005226492881775,
-0.019467348232865334,
0.020855296403169632,
-0.017060967162251472,
-0.046216923743486404,
0.025037171319127083,
-0.04549591243267059,
0.03044476918876171,
-0.01860213279724121,
0.04344102367758751,
-0.013789371587336063,
-0.07469693571329117,
0.005790634546428919,
-0.044810950756073,
0.02974178083240986,
-0.0016943801892921329,
-0.029525477439165115,
0.00721012894064188,
0.045171454548835754,
-0.04077327623963356,
-0.017124054953455925,
0.021233828738331795,
0.024766791611909866,
0.016547245904803276,
0.03886259347200394,
-0.033563148230314255,
-0.006696407217532396,
-0.015664003789424896,
0.01611463725566864,
0.01611463725566864,
0.07491324096918106,
-0.021305929869413376,
0.00886395201086998,
-0.02811950258910656,
-0.03480689600110054,
-0.01740344800055027,
-0.01837681606411934,
0.0025032665580511093,
0.015213371254503727,
0.04084537923336029,
0.014258029870688915,
0.031796667724847794,
-0.01603352464735508,
0.0010375826386734843,
-0.03781712427735329,
-0.053138647228479385,
-0.0005953988875262439,
-0.02512729912996292,
0.06323283165693283,
-0.025271501392126083,
-0.023306740447878838,
-0.05984406918287277,
0.029867958277463913,
0.06301652640104294,
0.07707627862691879,
0.014970029704272747,
0.029273122549057007,
0.03684375807642937,
0.0055923559702932835,
0.009445268660783768,
-0.02626289427280426,
-0.020044157281517982,
0.007737369276583195,
-0.002987697022035718,
0.09538999944925308,
-0.06921723484992981,
0.03511332720518112,
-0.048307862132787704,
0.02907484397292137,
0.012040914967656136,
0.04892072454094887,
0.01764678955078125,
-0.06604477763175964,
0.012013876810669899,
0.00974268652498722,
-0.09113602340221405,
-0.07098371535539627,
0.01651119440793991,
-0.026767602190375328,
-0.011590281501412392,
0.012608712539076805,
-0.03394168242812157,
0.01885448582470417,
-0.03176061809062958,
-0.012076965533196926,
0.002816456602886319,
-0.008967597968876362,
0.014294080436229706,
-0.02521742507815361,
-0.039367303252220154,
-0.025091247633099556,
0.03599656745791435,
-0.061935003846883774,
0.025523856282234192,
-0.02786714769899845,
-0.04286421462893486,
-0.010229370556771755,
-0.011049522086977959,
0.030823299661278725,
-0.03538370504975319,
-0.03228335082530975,
-0.0030034692026674747,
0.003512684488669038,
-0.02837185561656952,
0.023559095337986946,
0.008548508398234844,
-0.009445268660783768,
0.006286330986768007,
0.06265601515769958,
0.0042291912250220776,
0.017827043309807777,
0.02053084224462509,
-0.021612361073493958,
0.05382361263036728,
0.10901714861392975,
0.03309449180960655,
-0.028948666527867317,
0.015204358845949173,
-0.01709701679646969,
0.005515748634934425,
0.009877876378595829,
0.02853408455848694,
-0.051047712564468384,
-0.001746203051880002,
-0.007620204705744982,
-0.011022483929991722,
-0.04636112600564957,
-0.010121217928826809,
-0.03475281968712807,
0.001191924442537129,
-0.020332563668489456,
-0.009895901195704937,
-0.005632913205772638,
-0.0420350506901741,
0.006574735976755619,
0.04019646719098091,
-0.012861067429184914,
0.014131852425634861,
0.05977196618914604,
-0.02786714769899845,
-0.005177773535251617,
0.05811363831162453,
-0.00047795267892070115,
0.04383758082985878,
0.047010038048028946,
-0.02586633712053299,
-0.0012640256900340319,
-0.00014575161912944168,
-0.00910278782248497,
0.009922939352691174,
0.04326077178120613,
-0.005380558781325817,
-0.002980937482789159,
-0.020044157281517982,
0.012094991281628609,
0.041133783757686615,
0.02208101935684681,
0.0036816720385104418,
0.026389071717858315,
-0.026461172848939896,
-0.012230181135237217,
-0.013005269691348076,
0.0014454055344685912,
0.047082141041755676,
0.013212560676038265,
-0.015213371254503727,
0.0034067858941853046,
0.003285114886239171,
-0.00039092416409403086,
0.035329632461071014,
-0.04874046891927719,
-0.0801045298576355,
-0.0007429812103509903,
0.01652020774781704,
-0.03868234157562256,
0.05613085255026817,
0.008350230753421783,
0.07440853118896484,
-0.0155558530241251,
-0.0030395197682082653,
0.04956963658332825,
0.038718391209840775,
-0.0076021794229745865,
-0.034482441842556,
0.028083451092243195,
0.019863905385136604,
-0.038393937051296234,
0.029849933460354805,
-0.023090437054634094,
-0.054112017154693604,
0.011779547668993473,
-0.019467348232865334,
0.020981473848223686,
0.016952814534306526,
-0.0573565736413002,
-0.06157450005412102,
-0.009697623550891876,
0.019719701260328293,
0.022585727274417877,
0.05616690218448639,
-0.02563200704753399,
-0.013320712372660637,
0.03368932753801346,
0.02683970332145691,
0.05324679985642433,
0.01249154843389988,
0.06373754143714905,
0.025505829602479935,
0.0007029875414445996,
-0.058690447360277176,
0.01458248496055603,
0.009057723917067051,
-0.02619079314172268,
0.03149023652076721,
0.029687704518437386,
0.0021472664084285498,
0.00008118435653159395,
0.04956963658332825,
-0.017664816230535507,
0.010040104389190674,
-0.08479111641645432,
-0.0022418994922190905,
-0.06280022114515305,
-0.09128022938966751,
0.018962638452649117,
-0.039114948362112045,
0.07343515753746033,
0.016655396670103073,
-0.023144513368606567,
0.00658374885097146,
0.025740159675478935,
0.04131403565406799,
-0.031616415828466415,
0.0678112581372261,
-0.018151499330997467,
-0.0046415203250944614,
-0.038141582161188126,
-0.02988598309457302,
0.03244557976722717,
-0.04116983339190483,
0.06759496033191681,
-0.04005226492881775,
-0.02327069081366062,
-0.044810950756073,
-0.040809329599142075,
0.03579828888177872,
-0.03648325055837631,
0.013591093011200428,
-0.02698390744626522,
-0.07354331016540527,
0.008183496072888374,
-0.020422689616680145,
-0.007669774349778891,
-0.07880670577287674,
-0.05951961129903793,
0.05656345933675766,
0.06626108288764954,
-0.054905131459236145,
0.005132710561156273,
-0.011364965699613094,
-0.051047712564468384,
0.0008010002202354372,
0.008629622869193554,
0.005011039320379496,
0.05670766159892082,
0.01373529527336359,
0.0218286644667387,
0.021954841911792755,
-0.02786714769899845,
0.03810552880167961,
-0.03868234157562256,
-0.03269793465733528,
-0.0025595957413315773,
-0.023090437054634094,
-0.016457118093967438,
0.01595241017639637,
0.014348155818879604,
-0.011319901794195175,
0.004988507833331823,
-0.03217519819736481,
-0.011896712705492973,
0.030354641377925873,
-0.012960206717252731,
-0.005042583681643009,
0.035654086619615555,
0.046216923743486404,
0.009436256252229214,
-0.01669144816696644,
0.07671576738357544,
-0.009463293477892876,
-0.04646927863359451,
-0.0019039246253669262,
-0.03345499560236931,
-0.0058852676302194595,
0.007678787223994732,
0.0010572978062555194,
0.060384828597307205,
-0.06983009725809097,
0.07112792134284973,
0.010175294242799282,
-0.057897333055734634,
-0.024135906249284744,
-0.01063494011759758,
-0.020098233595490456,
0.03922310099005699,
0.014249016530811787,
-0.02143210731446743,
-0.020098233595490456,
-0.0102744335308671,
-0.05915910750627518,
0.07044295966625214,
-0.03237347677350044,
-0.05252578854560852,
-0.014979042112827301,
0.04834391176700592,
-0.010301471687853336,
0.02489296905696392,
-0.028894590213894844,
-0.024478387087583542,
0.017060967162251472,
0.021792614832520485,
0.007430939003825188,
0.03889864310622215,
-0.08861248195171356,
-0.006317875348031521,
0.0023477980867028236,
0.007845520973205566,
0.012266231700778008,
-0.02941732481122017,
0.10209542512893677,
-0.006173672620207071,
0.03215717524290085,
-0.014528409577906132,
-0.06611687690019608,
0.005074128042906523,
0.03713216260075569,
-0.011419041082262993,
0.05461672320961952,
0.028263704851269722,
0.021125677973031998,
0.03668152913451195,
-0.022531652823090553,
0.019323144108057022,
0.06925328820943832,
0.046613480895757675,
-0.04769499972462654,
0.04030461981892586,
-0.027128109708428383,
0.014735700562596321,
-0.009008154273033142,
0.03850208595395088,
-0.00914334412664175,
-0.03368932753801346,
-0.01511423196643591,
-0.02505519799888134,
-0.02797529846429825,
-0.007462483365088701,
-0.02546977996826172,
0.017520612105727196,
0.011680408380925655,
-0.025109272450208664,
-0.028065426275134087,
0.012320307083427906,
0.030715148895978928,
0.03778107464313507,
0.0030124818440526724,
-0.05169662460684776,
0.028137527406215668,
-0.0015569371171295643,
0.02071109414100647,
-0.058293890208005905,
-0.027056008577346802,
0.002575367921963334,
0.08133025467395782,
-0.015772156417369843,
-0.03392365574836731,
0.014348155818879604,
0.018304714933037758,
-0.019557474181056023,
0.04913702607154846,
0.007980710826814175,
-0.047370545566082,
0.03140011057257652,
-0.011644357815384865,
0.0008426837739534676,
-0.02400972880423069,
0.02965165488421917,
-0.028299754485487938,
-0.0049434443935751915,
0.04268396273255348,
-0.03037266805768013,
0.010643952526152134,
0.013248611241579056,
-0.028389882296323776,
0.0084178252145648,
-0.007620204705744982,
-0.027650844305753708,
0.013068358413875103,
-0.009283040650188923,
0.01401468738913536,
-0.03648325055837631,
-0.03060699626803398,
-0.03650127723813057,
0.022026943042874336,
0.026893779635429382,
-0.02876841276884079,
0.040881428867578506,
0.02683970332145691,
-0.03987201303243637,
0.016159700229763985,
0.015222384594380856,
0.014681624248623848,
0.009877876378595829,
0.023108461871743202,
-0.04545986279845238,
-0.0289126168936491,
-0.03327474370598793,
-0.021792614832520485,
0.048379965126514435,
-0.032103098928928375,
-0.03979991003870964,
-0.03752871975302696,
0.0028232159093022346,
-0.050470899790525436,
-0.01031048409640789,
0.05742867663502693,
0.03046279400587082,
-0.022513626143336296,
0.03792527690529823,
0.003665899857878685,
-0.07246179133653641,
0.008003243245184422,
0.05205712839961052,
-0.01115767378360033,
-0.023685272783041,
0.024947045370936394,
0.0030688110273331404,
-0.020602943375706673,
-0.019052764400839806,
-0.006773014552891254,
-0.08205126225948334,
-0.011265826411545277,
-0.03302238881587982,
-0.011346939951181412,
0.022765981033444405,
0.01636699214577675,
0.024298133328557014,
0.10894504189491272,
-0.03471677005290985,
-0.06846017390489578,
0.008025774732232094,
-0.035257529467344284,
-0.02698390744626522,
0.020332563668489456,
0.05908700451254845,
-0.03156233951449394,
-0.014158890582621098,
-0.027254287153482437,
-0.06243971362709999,
-0.029182996600866318,
-0.07455272972583771,
0.09921137243509293,
0.016538232564926147,
0.0289126168936491,
-0.07112792134284973,
-0.00407146941870451,
-0.06864042580127716,
-0.012897117994725704,
-0.007318280637264252,
0.0327339842915535,
0.07246179133653641,
-0.010499750263988972,
0.045892469584941864,
0.045243557542562485,
0.04261185973882675,
-0.0076066856272518635,
0.05068720504641533,
-0.041458241641521454,
-0.02442431077361107,
-0.0069577740505337715,
-0.0014825827674940228,
0.0255418810993433,
0.020332563668489456,
0.05133611708879471,
0.06471090763807297,
0.057644978165626526,
0.011491142213344574,
-0.04931728169322014,
0.046865835785865784,
-0.06128609552979469,
0.009328103624284267,
-0.036537326872348785,
0.03680770844221115,
0.04430624097585678,
-0.016952814534306526,
0.02238745056092739,
0.020566891878843307,
-0.01212202850729227,
-0.07065926492214203,
-0.010616914369165897,
-0.055626142770051956,
0.04228740558028221,
-0.009688610211014748,
-0.010743091814219952,
-0.04989409074187279,
-0.0016188991721719503,
0.03442836552858353,
-0.016736511141061783,
-0.023090437054634094,
0.04095353186130524,
0.028822489082813263,
0.015330536291003227,
-0.034842945635318756,
-0.022333374246954918,
0.04408993571996689,
0.006358432117849588,
-0.015925372019410133,
-0.0074805086478590965,
0.0025776210241019726,
0.026479197666049004,
-0.018304714933037758,
0.03060699626803398,
-0.007917623035609722,
-0.02159433625638485,
0.06463880091905594,
-0.025073222815990448,
0.00012751507165376097,
-0.003719975706189871,
-0.003976836800575256,
-0.06719840317964554,
-0.030174389481544495,
0.04102563112974167,
0.008395293727517128,
-0.006362938787788153,
-0.019954031333327293,
0.005403090268373489,
0.023234639316797256,
-0.021954841911792755,
-0.056275054812431335,
0.03471677005290985,
-0.014861878007650375,
-0.03893469646573067,
0.049173079431056976,
-0.013861472718417645,
0.008990129455924034,
-0.08133025467395782,
-0.0457482673227787,
0.07300255447626114,
0.013284661807119846,
0.008881977759301662,
0.04070117697119713,
-0.02754269167780876,
-0.0015197598841041327,
0.012888104654848576,
0.016565270721912384,
0.03287818655371666,
-0.028786439448595047,
-0.0666576400399208,
-0.03933125361800194,
0.01674552448093891,
0.024550488218665123,
0.08385379612445831,
-0.021702487021684647,
0.044270191341638565,
-0.014961017295718193,
0.0199720561504364,
0.08133025467395782,
0.03599656745791435,
-0.007570635061711073,
0.04340497404336929,
0.04261185973882675,
-0.0026452159509062767,
-0.026893779635429382,
-0.0060655209235847,
-0.01551078911870718,
0.03076922334730625,
-0.013266636990010738,
0.001433013123460114,
0.015384611673653126,
0.056455306708812714,
-0.028299754485487938,
-0.03475281968712807,
-0.05566219240427017,
0.0026609881315380335,
-0.009093774482607841,
-0.013681218959391117,
-0.0035915453918278217,
0.005781622137874365,
-0.042251355946063995,
0.02545175515115261,
0.04610877484083176,
0.0008415572228841484,
-0.015321523882448673,
-0.05090351030230522,
0.014258029870688915,
0.051768723875284195,
0.003961064387112856,
-0.0726780965924263,
-0.009409218095242977,
0.011437066830694675,
0.07974402606487274,
-0.05883464962244034,
-0.054833028465509415,
-0.05198502913117409,
0.008566534146666527,
0.0053580268286168575,
-0.004211165942251682,
0.05825784057378769,
-0.04632507637143135,
0.02869631163775921,
0.03304041549563408,
0.051119811832904816
] |
21,313 | tfields.tensor_grid | change_iter_order |
Transform the iter order
| def change_iter_order(self, iter_order):
"""
Transform the iter order
"""
field_swap_indices = grid.change_iter_order(
# pylint:disable=access-member-before-definition
self.num,
self.iter_order,
iter_order,
)
for field in self.fields:
field[:] = field[field_swap_indices]
# pylint:disable=attribute-defined-outside-init
self.iter_order = iter_order
self[:] = self.explicit()
| (self, iter_order) | [
0.00874919444322586,
0.044462405145168304,
-0.07989338785409927,
0.04088457301259041,
-0.07732290029525757,
-0.05398014187812805,
0.018879154697060585,
-0.0027854135259985924,
0.0028440309688448906,
-0.026017455384135246,
-0.01842758245766163,
-0.055265381932258606,
0.005162675864994526,
0.030863162130117416,
-0.025878509506583214,
0.012079533189535141,
-0.003955591004341841,
0.03636885806918144,
-0.036542538553476334,
-0.007720132824033499,
0.014650015160441399,
-0.055855900049209595,
0.02245698869228363,
0.011341387405991554,
0.020477022975683212,
0.03619517758488655,
-0.009239844046533108,
0.004576501436531544,
0.04164877161383629,
-0.00836709514260292,
0.027962684631347656,
-0.04157929867506027,
-0.016221830621361732,
0.014901853166520596,
0.04331611096858978,
-0.05332015082240105,
-0.03310365229845047,
0.04807497560977936,
0.0016868794336915016,
0.046407636255025864,
0.05425802990794182,
-0.05338962376117706,
-0.01816706173121929,
-0.02516641654074192,
-0.005323330871760845,
0.01673419028520584,
0.047727614641189575,
-0.006769227795302868,
0.04394136369228363,
-0.01114165410399437,
0.008714457973837852,
-0.041718240827322006,
0.06676308065652847,
0.029890548437833786,
0.013677400536835194,
0.02441958710551262,
0.03827935457229614,
-0.005670693702995777,
0.015674734488129616,
-0.024454323574900627,
-0.042135078459978104,
-0.06363681703805923,
-0.045018184930086136,
-0.012010060250759125,
0.004645973909646273,
-0.06085791811347008,
-0.020216500386595726,
0.005870427004992962,
-0.023186450824141502,
0.007246851455420256,
-0.03796672821044922,
0.01671682298183441,
0.03470151871442795,
-0.01604815013706684,
-0.07961549609899521,
0.06947250664234161,
-0.027962684631347656,
0.05752323940396309,
0.04970758035778999,
-0.050992824137210846,
-0.009482997469604015,
0.058600060641765594,
-0.009891148656606674,
0.04383715242147446,
-0.0495338998734951,
-0.03626465052366257,
0.07232088595628738,
0.003445402253419161,
0.017941275611519814,
-0.022578565403819084,
-0.04508765786886215,
-0.008323675021529198,
-0.014884484931826591,
-0.016803663223981857,
-0.006148317363113165,
0.04533081129193306,
-0.028032157570123672,
-0.07134826481342316,
-0.06061476469039917,
0.002001676708459854,
-0.0022339753340929747,
0.011297967284917831,
0.005206096451729536,
-0.02322118729352951,
0.028726883232593536,
-0.041891925036907196,
0.00774184288457036,
-0.06783990561962128,
-0.023499077185988426,
-0.028917932882905006,
-0.045608703047037125,
0.059364259243011475,
-0.020077556371688843,
0.005727140232920647,
0.025687459856271744,
-0.04091930761933327,
0.00988246500492096,
-0.014267916791141033,
0.0757945105433464,
0.04797076806426048,
0.005375435575842857,
0.00018236534378957003,
-0.01540552917867899,
0.045643437653779984,
-0.061066336929798126,
0.017281286418437958,
0.041336145251989365,
0.054883282631635666,
0.0144415982067585,
-0.043455056846141815,
0.004059799946844578,
-0.0683956891298294,
-0.041336145251989365,
0.024280643090605736,
0.038626715540885925,
0.007689738646149635,
0.01673419028520584,
-0.0019506578100845218,
-0.024905895814299583,
0.010368771851062775,
0.009213791228830814,
-0.011011392809450626,
0.049082327634096146,
0.0694030374288559,
0.031088948249816895,
0.008605907671153545,
-0.00805012695491314,
0.058947425335645676,
-0.04321189969778061,
-0.02363802120089531,
-0.010881131514906883,
0.04925600811839104,
0.04401083663105965,
0.012175057083368301,
-0.020442286506295204,
0.04553923010826111,
-0.06867357343435287,
-0.034371525049209595,
-0.026833757758140564,
0.03664674982428551,
-0.01955651119351387,
-0.0355699248611927,
-0.007542109582573175,
0.013894502073526382,
0.002511865459382534,
0.041544560343027115,
-0.008823009207844734,
-0.07739237695932388,
-0.022700142115354538,
0.004715446848422289,
0.027146384119987488,
-0.0037450024392455816,
-0.004389794077724218,
-0.005527406465262175,
-0.01633472368121147,
0.081282839179039,
-0.002174272434785962,
0.03664674982428551,
0.015787627547979355,
0.029126349836587906,
0.009448261000216007,
-0.01237479131668806,
0.0033216543961316347,
-0.016247883439064026,
0.02283908799290657,
-0.00928326416760683,
0.031488414853811264,
-0.0327041856944561,
0.03296470642089844,
0.0039664460346102715,
0.06777043640613556,
0.0032782340422272682,
0.009491682052612305,
-0.01917441375553608,
0.01075955480337143,
0.03192261978983879,
-0.05300752446055412,
-0.001717273611575365,
0.06537362933158875,
0.10469507426023483,
-0.04317716509103775,
-0.01761128194630146,
0.031870514154434204,
0.042135078459978104,
-0.013078199699521065,
0.06721465289592743,
0.012843729928135872,
-0.07065354287624359,
0.0019745388999581337,
0.025895878672599792,
0.037480417639017105,
-0.031887881457805634,
0.03075895458459854,
-0.03539624437689781,
0.006100554950535297,
0.03444099798798561,
-0.017177078872919083,
0.01818442903459072,
0.07565556466579437,
0.015414212830364704,
0.04369821026921272,
0.03266944736242294,
-0.032843127846717834,
-0.07725343108177185,
0.06315051019191742,
-0.01596999354660511,
-0.01879231445491314,
-0.06120528280735016,
-0.07058407366275787,
0.040155112743377686,
0.003647306701168418,
-0.02848372980952263,
-0.045191869139671326,
-0.046928681433200836,
0.08163020014762878,
-0.023568548262119293,
-0.06252525746822357,
-0.025878509506583214,
-0.07127879559993744,
0.033954691141843796,
-0.020025450736284256,
0.057627446949481964,
-0.030654745176434517,
-0.00411624601110816,
-0.06544310599565506,
-0.024350114166736603,
0.00017259576998185366,
0.02459326945245266,
-0.009231159463524818,
0.05054125189781189,
-0.025878509506583214,
-0.028188470751047134,
-0.03796672821044922,
0.01288715098053217,
-0.02089385688304901,
-0.013720820657908916,
-0.01896599493920803,
0.014050815254449844,
0.0002555014507379383,
0.011167705990374088,
0.0003318940580356866,
-0.030915267765522003,
-0.042864538729190826,
-0.05616852641105652,
0.05443171039223671,
0.023099610581994057,
0.030064228922128677,
0.029195822775363922,
0.042100340127944946,
0.05293805152177811,
0.06808306276798248,
-0.012279266491532326,
-0.021553846076130867,
0.07266824692487717,
0.01877494528889656,
0.03560466319322586,
0.019869137555360794,
0.01355582382529974,
-0.07468295097351074,
-0.013416878879070282,
0.06912514567375183,
-0.0008352983859367669,
-0.057627446949481964,
0.01017772313207388,
-0.03643833100795746,
0.00960457418113947,
-0.012991359457373619,
0.022005418315529823,
-0.017472336068749428,
-0.037306737154722214,
0.05946847051382065,
0.058565326035022736,
0.05498749017715454,
-0.00722079910337925,
0.006999355275183916,
-0.06509574502706528,
-0.053910668939352036,
0.001276557333767414,
0.014780276454985142,
0.022144362330436707,
-0.008497356437146664,
-0.010967972688376904,
0.01355582382529974,
0.04164877161383629,
0.06203895062208176,
0.029317399486899376,
-0.00031181215308606625,
0.03541361168026924,
-0.013303985819220543,
-0.023394867777824402,
0.03848776966333389,
0.04071089252829552,
-0.09406577795743942,
0.003936051856726408,
0.026607971638441086,
-0.047345515340566635,
-0.002025557914748788,
0.026000086218118668,
-0.017394179478287697,
0.06915988028049469,
-0.055126436054706573,
-0.004997678566724062,
-0.04533081129193306,
-0.02184910513460636,
-0.05728008598089218,
0.029907915741205215,
0.011150337755680084,
0.022526461631059647,
-0.014528438448905945,
0.00489781191572547,
0.007546451408416033,
0.001811712863855064,
-0.011775590479373932,
0.06249052286148071,
0.012531104497611523,
0.0037167794071137905,
0.010872447863221169,
-0.0058487169444561005,
0.02402012050151825,
-0.027372168377041817,
-0.02073754370212555,
-0.0020700637251138687,
-0.049464426934719086,
-0.016299987211823463,
-0.01724654994904995,
0.004919521976262331,
-0.019625984132289886,
0.026590602472424507,
0.018462318927049637,
0.04651184380054474,
0.03814040869474411,
-0.06721465289592743,
-0.004035918507725,
0.035552557557821274,
-0.007316323928534985,
0.030064228922128677,
-0.02325592190027237,
-0.061483170837163925,
-0.004040260799229145,
-0.019834401085972786,
0.04314243048429489,
-0.051583338528871536,
0.01570078730583191,
0.015900520607829094,
0.039425648748874664,
-0.04883917421102524,
-0.06370629370212555,
0.0030654745642095804,
-0.01842758245766163,
0.013303985819220543,
-0.02306487411260605,
-0.009899832308292389,
0.06874305009841919,
-0.0005807467387057841,
-0.03754989057779312,
0.03218314051628113,
-0.05325067788362503,
0.055647481232881546,
-0.022960664704442024,
-0.037480417639017105,
0.06363681703805923,
-0.03841829672455788,
0.04623395577073097,
0.060510557144880295,
-0.028136366978287697,
0.001902895513921976,
0.07110511511564255,
0.0036711879074573517,
0.05773165449500084,
-0.01875757798552513,
-0.05943373218178749,
-0.011905851773917675,
-0.01635209284722805,
-0.010073513723909855,
0.02226593904197216,
0.003721121232956648,
-0.026764284819364548,
-0.006256868131458759,
-0.024888526648283005,
-0.07857340574264526,
-0.015257899649441242,
-0.02224857173860073,
-0.02480168640613556,
0.0592600516974926,
-0.010264563374221325,
0.008961954154074192,
0.008488672785460949,
0.056446414440870285,
0.015535790473222733,
0.020598599687218666,
-0.07919865846633911,
0.0410582534968853,
0.03451047092676163,
-0.060927391052246094,
0.043663471937179565,
0.01730733923614025,
0.0364035964012146,
0.01363398041576147,
0.03619517758488655,
0.05019388720393181,
0.024159066379070282,
0.025843773037195206,
-0.013755557127296925,
0.026000086218118668,
-0.007199089042842388,
-0.08663222193717957,
-0.006013714242726564,
0.019052835181355476,
-0.02959528937935829,
0.05821796506643295,
-0.03814040869474411,
-0.012852414511144161,
0.014016078785061836,
-0.006374103017151356,
0.05960741266608238,
-0.0186186321079731,
-0.0024185117799788713,
0.01199269201606512,
-0.010290615260601044,
0.03372890502214432,
0.052347537130117416,
0.037272002547979355,
0.012192425318062305,
-0.10823816806077957,
0.018479688093066216,
0.04109298810362816,
-0.008180388249456882,
0.0723903551697731,
-0.013416878879070282,
-0.0036885561421513557,
0.06193474307656288,
0.04949916526675224,
0.0034649414010345936,
-0.04685920849442482,
-0.00879695639014244,
-0.02481905370950699,
0.00469373632222414,
-0.0491170659661293,
0.027007438242435455,
0.035517819225788116,
0.01172348577529192,
0.01917441375553608,
-0.00475018285214901,
-0.021223852410912514,
-0.014406861737370491,
0.009951937012374401,
-0.02745901048183441,
-0.0016478011384606361,
-0.019678087905049324,
0.007980654947459698,
0.04317716509103775,
-0.06829147785902023,
-0.0015370793407782912,
-0.05439697578549385,
-0.05873900651931763,
0.018271269276738167,
0.008223808370530605,
-0.009569838643074036,
-0.011957955546677113,
-0.042308758944272995,
0.002223120303824544,
-0.04883917421102524,
0.021206483244895935,
-0.029352135956287384,
0.0144415982067585,
-0.009665362536907196,
-0.008549461141228676,
0.01529263611882925,
-0.0007452012505382299,
-0.021189115941524506,
-0.01692523993551731,
-0.030255278572440147,
0.009239844046533108,
0.019243884831666946,
0.0546053946018219,
0.0186186321079731,
-0.02245698869228363,
0.02650376223027706,
-0.0035648082848638296,
-0.028032157570123672,
0.0024793001357465982,
-0.02148437313735485,
0.025722196325659752,
-0.024489060044288635,
0.04001616686582565,
0.014102919958531857,
0.026451658457517624,
-0.00032510963501408696,
-0.008332359604537487,
-0.010342719964683056,
0.01742023229598999,
-0.06082318350672722,
-0.019070204347372055,
-0.02268277481198311,
0.020772280171513557,
-0.05279910936951637,
-0.08072705566883087,
-0.010412192903459072,
-0.012383474968373775,
0.03527466580271721,
0.05620326101779938,
-0.071973517537117,
-0.05495275557041168,
0.033173125237226486,
0.02577430196106434,
0.014797644689679146,
0.016134990379214287,
-0.025861142203211784,
0.07544714957475662,
-0.06572099775075912,
-0.016074202954769135,
0.00039213974378071725,
0.07537767291069031,
0.030307382345199585,
0.00454610725864768,
-0.0024228538386523724,
0.05561274290084839,
0.014858433045446873,
-0.0012798139359802008,
0.03138420730829239,
0.011280599050223827,
0.056029580533504486,
0.0012027428019791842,
-0.07878182828426361,
0.03675095736980438,
-0.006539099849760532,
-0.06599888205528259,
-0.061066336929798126,
-0.010108250193297863,
-0.027754267677664757,
-0.07641976326704025,
-0.012409526854753494,
-0.006912514567375183,
-0.010820343159139156,
-0.04008563980460167,
-0.025461675599217415,
-0.050437040627002716,
0.0036212545819580555,
0.06846515834331512,
-0.00575753441080451,
-0.0029656076803803444,
0.04043300077319145,
0.025722196325659752,
-0.036090970039367676,
0.04321189969778061,
0.02829268015921116,
0.013026095926761627,
-0.018514424562454224,
-0.006656334735453129,
0.020060187205672264,
0.04595606401562691,
-0.03720252960920334,
0.011080865748226643,
0.015040798112750053,
-0.014467650093138218,
-0.0007484577363356948,
0.01781969889998436,
-0.01451975479722023,
0.0221096258610487,
-0.07982391119003296,
-0.00720777316018939,
0.002581337932497263,
0.008180388249456882,
-0.04102351889014244,
-0.013529771007597446,
-0.05745376646518707,
0.02032070979475975,
0.0732240229845047,
0.07273771613836288,
-0.029699498787522316,
-0.006183053366839886,
-0.03588255122303963,
0.004315979778766632,
-0.05154860392212868,
-0.014762908220291138,
0.005497012287378311,
-0.05491802096366882,
-0.02419380098581314,
-0.05175701901316643,
-0.03761936351656914,
-0.012088216841220856,
0.011063497513532639,
0.020963329821825027,
0.014684751629829407,
0.019886506721377373,
-0.055890634655952454,
-0.010221143253147602,
-0.011167705990374088,
0.0560990534722805,
0.06269893795251846,
0.02745901048183441,
0.01992124319076538,
0.010802974924445152,
-0.025461675599217415,
-0.03431941941380501,
-0.02771953120827675,
0.013269249349832535,
-0.009865096770226955,
0.026382185518741608,
-0.047519195824861526,
-0.07169563323259354,
-0.0010220058029517531,
-0.033398907631635666,
0.008493014611303806,
-0.06672834604978561,
-0.038453035056591034,
0.06311577558517456,
-0.0480402410030365,
0.07232088595628738,
0.027945317327976227,
-0.03075895458459854,
-0.03796672821044922,
0.05755797401070595,
-0.034371525049209595,
-0.03254787251353264,
-0.05630746856331825,
-0.035535190254449844,
-0.012852414511144161,
-0.03852250799536705,
-0.015032114461064339,
0.06082318350672722,
0.006604230497032404,
0.04414977878332138,
0.008935901336371899,
-0.06419260054826736,
-0.02652113139629364,
0.021032802760601044,
-0.07857340574264526,
0.028553200885653496,
-0.009535102173686028,
-0.05134018510580063,
0.06280314922332764,
-0.03987722098827362,
-0.0126961013302207,
-0.09128687530755997,
0.019330725073814392,
-0.012487683445215225,
0.01610025390982628,
0.04279506579041481,
-0.02770216390490532,
0.020285973325371742,
0.020824385806918144,
0.018062852323055267,
-0.06384523957967758,
-0.0024814712814986706,
0.05095808580517769,
0.026191135868430138,
0.030098965391516685,
-0.005214780103415251,
-0.016039466485381126,
-0.034371525049209595,
0.028153734281659126,
0.005913847591727972,
-0.030359486117959023,
-0.006083186715841293,
-0.0010258050169795752,
0.009482997469604015,
0.0010475151939317584,
-0.006725807208567858,
0.000938964425586164,
-0.04414977878332138,
0.013894502073526382,
-0.027545850723981857,
0.011740854009985924,
-0.020407550036907196,
0.009778255596756935,
-0.02924792654812336,
0.0499507337808609,
0.03388521820306778,
-0.03616044297814369,
-0.0020613796077668667,
-0.008644985035061836,
0.01997334696352482,
-0.03796672821044922,
-0.021970681846141815,
0.002815807703882456,
0.008697089739143848,
-0.051618076860904694,
0.047519195824861526,
0.04352452605962753,
0.039599329233169556,
-0.02864004299044609,
0.014858433045446873,
0.00826288666576147,
0.00489781191572547,
0.002572653815150261,
-0.022352779284119606,
-0.010881131514906883,
0.004042431712150574,
-0.01366003230214119,
0.004784919321537018,
0.013712137006223202,
-0.07551661878824234,
-0.012565840035676956,
0.025496412068605423,
0.08288070559501648,
0.04005090147256851,
0.011636645533144474,
-0.0009905260521918535,
0.03313838690519333,
0.04432346299290657,
0.01835811138153076,
-0.016134990379214287,
0.014128971844911575,
-0.02032070979475975,
0.007932892069220543,
-0.03041159175336361,
0.02980370633304119,
-0.06440101563930511,
-0.01751575618982315,
0.037306737154722214,
0.005210438277572393,
-0.00042470498010516167,
0.023116977885365486,
-0.010377456434071064,
-0.022561198100447655,
0.02052912674844265,
0.030272645875811577,
-0.020008083432912827,
0.05575168877840042,
-0.024714846163988113,
-0.01462396327406168,
-0.027354801073670387,
0.06061476469039917,
-0.0624210499227047,
0.021258588880300522,
0.043871890753507614,
0.004902154207229614,
0.011549805290997028,
-0.022161731496453285,
0.016760243102908134,
0.010073513723909855,
0.01974756084382534,
-0.011358755640685558,
-0.0008586368057876825,
0.000010015507541538682,
0.031627360731363297,
0.030741585418581963,
-0.05283384397625923,
-0.04414977878332138,
-0.027372168377041817,
-0.004758866969496012,
-0.017446283251047134,
0.04449714347720146,
0.02207488939166069,
0.008883797563612461,
0.07794815301895142,
0.014762908220291138
] |
21,324 | tfields.tensor_grid | explicit |
Build the grid explicitly (e.g. after changing base_vector, iter_order or init with empty)
| def explicit(self):
"""
Build the grid explicitly (e.g. after changing base_vector, iter_order or init with empty)
"""
kwargs = {
attr: getattr(self, attr)
for attr in self.__slots__
if attr not in ("base_vectors", "num", "coord_sys")
}
base_num_tuples = self.base_num_tuples()
kwargs["coord_sys"] = self.base_vectors.coord_sys
obj = self.grid(*base_num_tuples, **kwargs)
obj.transform(self.coord_sys)
return obj
| (self) | [
0.02850123681128025,
0.0024003859143704176,
-0.021166227757930756,
0.010065559297800064,
-0.04914990812540054,
-0.009137528948485851,
-0.027394739910960197,
-0.02659163624048233,
0.014402315951883793,
0.018096590414643288,
0.0034533434081822634,
0.030553610995411873,
-0.03574701026082039,
0.017132865265011787,
-0.06489072740077972,
0.01597282849252224,
-0.012189320288598537,
-0.006830838043242693,
-0.021612396463751793,
0.007848101668059826,
0.0213625431060791,
-0.03647872805595398,
0.021166227757930756,
0.07567016035318375,
0.030339449644088745,
0.029054485261440277,
-0.022272726520895958,
0.013759832829236984,
0.048221878707408905,
-0.06945949792861938,
-0.038798801600933075,
0.010770505294203758,
-0.006032196804881096,
0.05664553865790367,
0.08587849140167236,
-0.04543779045343399,
0.004849850200116634,
0.043403260409832,
-0.04233245551586151,
0.0101994089782238,
0.04732954129576683,
-0.05432546138763428,
0.03449774160981178,
0.0036585808265954256,
0.015901440754532814,
-0.018649838864803314,
0.08594987541437149,
-0.0014444701373577118,
-0.05807327851653099,
0.013170890510082245,
0.014545089565217495,
0.002462849486619234,
0.06103583425283432,
0.002465080237016082,
-0.06360576301813126,
0.01673131436109543,
0.03601471334695816,
0.07381410151720047,
0.011850232258439064,
-0.018328597769141197,
-0.037728000432252884,
0.021148381754755974,
-0.03410511091351509,
-0.06746066361665726,
0.004011053591966629,
-0.04922129586338997,
-0.060036417096853256,
0.013277971185743809,
0.030357297509908676,
0.0793822780251503,
-0.03074992448091507,
0.06153554469347,
0.019988343119621277,
-0.00014904812269378453,
0.018864000216126442,
0.03815631940960884,
-0.01649930700659752,
0.026056233793497086,
0.06846007704734802,
-0.06945949792861938,
-0.05236232280731201,
0.02123761549592018,
-0.028429849073290825,
0.011154210194945335,
-0.04336756840348244,
-0.010449263267219067,
-0.016133448109030724,
0.018159054219722748,
0.025342363864183426,
-0.049185603857040405,
-0.007910565473139286,
0.0349617563188076,
-0.01656177081167698,
0.030607150867581367,
0.007794561795890331,
0.013081656768918037,
0.013982917182147503,
-0.0586443729698658,
-0.030482225120067596,
-0.006063428241759539,
-0.011466527357697487,
-0.01501802820712328,
-0.036193180829286575,
-0.0017021324019879103,
-0.01012802217155695,
-0.027448279783129692,
0.030785618349909782,
-0.07438519597053528,
-0.008365657180547714,
0.0215588565915823,
-0.04458114504814148,
0.0936596691608429,
-0.028911711648106575,
0.033676788210868835,
-0.04326048865914345,
-0.028519082814455032,
-0.04115457087755203,
-0.0012180396588519216,
0.008071186020970345,
0.018382137641310692,
-0.022201338782906532,
0.004535301588475704,
-0.025342363864183426,
0.013750909827649593,
0.01754334196448326,
-0.0035381154157221317,
0.012733645737171173,
-0.008905520662665367,
0.024628495797514915,
-0.06906686723232269,
0.04761509224772453,
-0.0602862723171711,
-0.04540209472179413,
0.011760998517274857,
0.019881263375282288,
-0.01800735667347908,
0.03876310959458351,
-0.04254661872982979,
-0.03376602381467819,
0.052148159593343735,
0.040369316935539246,
0.015250035561621189,
0.024646341800689697,
0.0667467936873436,
-0.014580783434212208,
0.041654281318187714,
0.024360794574022293,
0.010538497008383274,
-0.04768647626042366,
-0.045009467750787735,
-0.01614237204194069,
0.016847318038344383,
0.05746648833155632,
0.01055634394288063,
-0.06235649436712265,
-0.012706875801086426,
-0.01823936402797699,
-0.04461684077978134,
0.06642554700374603,
0.0042408304288983345,
-0.06010780483484268,
0.014214924536645412,
-0.019827723503112793,
0.010583113878965378,
0.008557509630918503,
0.014446932822465897,
-0.030553610995411873,
-0.0936596691608429,
0.0018917539855465293,
0.014518319629132748,
-0.015134031884372234,
-0.02659163624048233,
-0.03972683474421501,
0.010449263267219067,
0.021416082978248596,
0.03854895010590553,
-0.0033083385787904263,
0.020059730857610703,
0.01769503764808178,
0.02132684923708439,
0.01586574874818325,
-0.036550115793943405,
0.021897943690419197,
-0.03531869128346443,
0.0025364672765135765,
0.03787077218294144,
0.04472392052412033,
-0.03651442006230354,
0.00006323042907752097,
0.004943545907735825,
0.024289406836032867,
0.031874269247055054,
-0.0035180377308279276,
0.028429849073290825,
0.0231472160667181,
0.01798950880765915,
0.0007462166249752045,
0.007111924234777689,
-0.0624992698431015,
0.07331439107656479,
-0.03615748509764671,
-0.014295235276222229,
0.03908435255289078,
-0.0009425307507626712,
0.007415318861603737,
0.03933420404791832,
-0.000770198181271553,
-0.052862029522657394,
0.010725888423621655,
0.053326044231653214,
0.048578813672065735,
-0.011823462322354317,
-0.012644411996006966,
0.021041302010416985,
-0.03099977970123291,
-0.0017389412969350815,
-0.0030450993217527866,
-0.007098539266735315,
0.046794138848781586,
0.014036457985639572,
0.07531322538852692,
-0.05486086383461952,
0.012537331320345402,
-0.052469402551651,
0.02241550013422966,
-0.029732661321759224,
0.008508430793881416,
-0.02694857120513916,
-0.06053612753748894,
-0.052754949778318405,
0.028215689584612846,
-0.08730623126029968,
-0.03638949245214462,
-0.029161566868424416,
0.010038788430392742,
-0.0715654119849205,
-0.005403099115937948,
-0.0001712171215331182,
-0.00014172817463986576,
0.012555178254842758,
-0.014054303988814354,
0.019756335765123367,
-0.021523162722587585,
0.01754334196448326,
-0.045366402715444565,
0.013625982217490673,
-0.034337118268013,
0.06999489665031433,
-0.008508430793881416,
-0.0023736157454550266,
-0.03936989977955818,
0.003915127832442522,
-0.0550750270485878,
0.03779938444495201,
-0.00721454294398427,
-0.034622665494680405,
-0.03612179309129715,
-0.024717729538679123,
0.0019676026422530413,
-0.017516570165753365,
-0.040262237191200256,
0.0157229732722044,
-0.01077942829579115,
0.059322550892829895,
0.08038169890642166,
0.00953907985240221,
-0.03926282003521919,
0.04782925173640251,
-0.029750507324934006,
0.07202942669391632,
-0.015490966849029064,
0.032837994396686554,
0.04422421008348465,
0.019113853573799133,
0.024824809283018112,
0.02955419383943081,
0.00045369748841039836,
-0.0414758138358593,
-0.04604457691311836,
0.019256627187132835,
-0.0019430633401498199,
-0.002886709524318576,
-0.03233828395605087,
-0.0016285146120935678,
-0.042618002742528915,
-0.03312354162335396,
-0.001411007484421134,
0.00718331104144454,
0.002886709524318576,
-0.04254661872982979,
-0.007772253360599279,
0.06567598879337311,
0.014259541407227516,
-0.010038788430392742,
0.037014130502939224,
-0.04743662476539612,
-0.038691721856594086,
0.028322769328951836,
0.007259159814566374,
0.002857708605006337,
0.056467071175575256,
-0.011163133196532726,
-0.00298263574950397,
0.03208842873573303,
0.06874562799930573,
0.025556525215506554,
-0.018881846219301224,
0.00700038205832243,
0.0197741836309433,
-0.012671181932091713,
0.029375726357102394,
0.04818618670105934,
-0.0031432562973350286,
0.015009104274213314,
0.03196350485086441,
-0.016320839524269104,
-0.004604457877576351,
-0.02205856516957283,
0.017846735194325447,
0.0476507842540741,
-0.034158650785684586,
0.024164479225873947,
-0.00308302347548306,
-0.00042609081720001996,
-0.053825754672288895,
0.02457495406270027,
0.0039039733819663525,
-0.015250035561621189,
-0.011912696063518524,
0.04376019537448883,
-0.012439174577593803,
0.055967364460229874,
0.0007635056390427053,
0.04211829602718353,
-0.024289406836032867,
-0.007339470088481903,
0.04729384928941727,
0.049042828381061554,
0.04665136709809303,
-0.059179775416851044,
0.02539590559899807,
0.052862029522657394,
-0.056110136210918427,
0.0030450993217527866,
-0.027983682230114937,
-0.01430415827780962,
-0.007495629135519266,
-0.0021081457380205393,
0.026181161403656006,
-0.04711538180708885,
-0.0498637780547142,
-0.07902534306049347,
0.015999598428606987,
0.01859629899263382,
0.02803722210228443,
0.05296911299228668,
-0.011671764776110649,
-0.012590872123837471,
0.004022208042442799,
-0.0000739663519198075,
0.051327209919691086,
-0.03565777838230133,
-0.0016775930998846889,
0.0000588035982218571,
0.0186141449958086,
-0.057395100593566895,
0.022504733875393867,
-0.0021460698917508125,
-0.0147324800491333,
-0.006125892046838999,
0.00010450099944137037,
-0.0359790176153183,
-0.004961392376571894,
0.02086283452808857,
-0.024735575541853905,
0.04422421008348465,
-0.06342729926109314,
-0.008838595822453499,
-0.022504733875393867,
-0.05425407737493515,
0.08644958585500717,
-0.03769230470061302,
0.08038169890642166,
0.020720060914754868,
0.03430142626166344,
-0.025574371218681335,
0.07078015059232712,
0.052647870033979416,
0.018453525379300117,
-0.022129952907562256,
0.01563373953104019,
-0.03901296481490135,
0.005737725645303726,
0.006531905382871628,
-0.02159455046057701,
-0.005501256324350834,
0.05643137916922569,
0.017659345641732216,
-0.04640151187777519,
-0.047757863998413086,
-0.03255244717001915,
-0.023343529552221298,
0.020131118595600128,
0.01979202963411808,
-0.03265952691435814,
-0.06706803292036057,
0.046687059104442596,
-0.007990876212716103,
0.03883449733257294,
0.0025565449614077806,
-0.01656177081167698,
0.0249318890273571,
0.00036753120366483927,
-0.026555942371487617,
0.019863417372107506,
0.018507065251469612,
0.02157670259475708,
0.019506482407450676,
0.019506482407450676,
0.028786784037947655,
0.036425188183784485,
0.032124124467372894,
-0.0005055645597167313,
0.05500363931059837,
0.04497377201914787,
-0.01698116958141327,
-0.03539007529616356,
-0.04097610339522362,
0.019345860928297043,
0.011216673068702221,
-0.05461101233959198,
-0.039905302226543427,
-0.0022475733421742916,
-0.014750326983630657,
0.03876310959458351,
-0.03865602985024452,
0.008361195214092731,
0.01342074479907751,
-0.008749362081289291,
0.037977851927280426,
0.018542759120464325,
0.00007891603308962658,
-0.0068977633491158485,
-0.06692525744438171,
-0.05639568343758583,
-0.013804449699819088,
-0.04247523099184036,
0.01920308731496334,
-0.014625399373471737,
-0.009717547334730625,
0.08951922506093979,
0.056217215955257416,
0.06067889928817749,
-0.05628860369324684,
0.01817690022289753,
-0.05710955336689949,
-0.03872741758823395,
-0.03287368640303612,
-0.007616094313561916,
0.03519376367330551,
-0.005014932714402676,
-0.01407215092331171,
-0.022112105041742325,
-0.017962738871574402,
-0.04711538180708885,
-0.014054303988814354,
0.03215981647372246,
-0.007772253360599279,
-0.04168997332453728,
-0.05660984665155411,
0.0596080981194973,
-0.028661856427788734,
0.004138211719691753,
-0.05354020744562149,
0.016133448109030724,
-0.00342880398966372,
-0.006192817352712154,
0.037014130502939224,
-0.018453525379300117,
-0.0903758704662323,
-0.04807910695672035,
0.0038749724626541138,
0.04636581987142563,
0.02635962888598442,
-0.029357880353927612,
0.06713941693305969,
0.03358755633234978,
0.008896597661077976,
-0.007758868392556906,
0.0025743916630744934,
-0.035818397998809814,
0.05039918050169945,
-0.02088068053126335,
0.03198134899139404,
0.0017188637284561992,
0.04972100630402565,
0.0215588565915823,
-0.023289989680051804,
0.0026234700344502926,
-0.03123178705573082,
0.04590180516242981,
-0.024717729538679123,
-0.01203762274235487,
0.021790863946080208,
0.025538679212331772,
-0.029607733711600304,
0.0028130917344242334,
0.0320705845952034,
-0.020184658467769623,
0.006710372399538755,
-0.012581948190927505,
-0.06846007704734802,
-0.021059148013591766,
0.0049837008118629456,
0.06303466856479645,
0.018667684867978096,
-0.0763840302824974,
-0.06774620711803436,
-0.0314459465444088,
0.013170890510082245,
0.044902388006448746,
0.044902388006448746,
-0.02432510070502758,
0.014741403982043266,
-0.00396197522059083,
0.0359790176153183,
0.03099977970123291,
-0.020077576860785484,
0.04386727511882782,
0.014348775148391724,
-0.005969732999801636,
-0.058822840452194214,
0.006121430080384016,
0.09458769857883453,
0.0009319342207163572,
0.02528882399201393,
0.0009380690171383321,
-0.041297346353530884,
-0.03287368640303612,
-0.019256627187132835,
0.005684185307472944,
-0.003634041640907526,
0.057395100593566895,
-0.053254660218954086,
0.037728000432252884,
-0.04258231073617935,
-0.0062240492552518845,
-0.009271379560232162,
0.005746648646891117,
-0.03039299137890339,
-0.0395483672618866,
-0.014500472694635391,
-0.012921036221086979,
0.020452359691262245,
-0.015535583719611168,
-0.023182909935712814,
-0.04997085779905319,
-0.03028590977191925,
-0.02004188485443592,
0.04193982854485512,
-0.002561006462201476,
0.01156468503177166,
0.04729384928941727,
0.034265730530023575,
-0.04133303835988045,
0.038334786891937256,
0.013652753084897995,
0.04850742593407631,
0.009672930464148521,
-0.003060715040192008,
-0.012358864769339561,
-0.015508812852203846,
-0.01233209390193224,
0.01664208061993122,
-0.0005094685475341976,
0.020327432081103325,
0.00284432340413332,
-0.012831802479922771,
-0.023789698258042336,
-0.07695512473583221,
0.0016407842049375176,
0.009137528948485851,
-0.009762164205312729,
-0.0265737883746624,
0.019988343119621277,
-0.01798950880765915,
-0.05625291168689728,
0.035122375935316086,
0.056574150919914246,
-0.07053029537200928,
0.04682983458042145,
-0.01721317693591118,
0.027715981006622314,
0.01406322792172432,
-0.0230044424533844,
0.016820548102259636,
-0.04268939048051834,
-0.018988925963640213,
-0.007736559957265854,
-0.048221878707408905,
-0.05261217802762985,
0.08644958585500717,
0.01765042170882225,
0.057859115302562714,
0.004707076586782932,
-0.09665791690349579,
-0.019113853573799133,
-0.017097173258662224,
0.011056052520871162,
0.02432510070502758,
0.035818397998809814,
-0.02312937006354332,
-0.0026591636706143618,
0.0067014493979513645,
-0.020934220403432846,
-0.05086319521069527,
-0.08973338454961777,
0.057038165628910065,
0.039048656821250916,
-0.040476396679878235,
-0.04886436089873314,
-0.02921510674059391,
-0.07831147313117981,
-0.014054303988814354,
-0.036086101084947586,
-0.009079527109861374,
0.10486742109060287,
-0.0865209773182869,
0.045366402715444565,
0.06517627835273743,
0.04193982854485512,
-0.05928685516119003,
0.023896779865026474,
-0.0044527603313326836,
-0.002105914754793048,
-0.04044070467352867,
-0.040583476424217224,
0.057859115302562714,
0.00007452406134689227,
0.045830417424440384,
0.03232043981552124,
0.012358864769339561,
0.020773600786924362,
0.018382137641310692,
-0.022272726520895958,
-0.07931089401245117,
0.008254115469753742,
-0.03028590977191925,
0.053218964487314224,
0.010467110201716423,
-0.025217438116669655,
0.02455710805952549,
-0.005840344354510307,
0.02764459326863289,
-0.020791446790099144,
0.030375143513083458,
-0.07149402052164078,
-0.015232188627123833,
0.0427250862121582,
-0.01173422858119011,
-0.008191651664674282,
0.025949154049158096,
-0.016758084297180176,
-0.0037299676332622766,
0.0014478163793683052,
0.017811041325330734,
-0.020452359691262245,
-0.020648673176765442,
-0.03822770714759827,
0.033926643431186676,
-0.006875454913824797,
0.008365657180547714,
-0.013295818120241165,
-0.038691721856594086,
-0.045616257935762405,
0.003011636668816209,
0.011653918772935867,
-0.005157706793397665,
-0.03028590977191925,
0.015410656109452248,
0.018382137641310692,
-0.00007278122211573645,
-0.04825757443904877,
0.005403099115937948,
-0.01777534931898117,
-0.051934000104665756,
-0.029893282800912857,
0.003471190109848976,
0.06846007704734802,
-0.053825754672288895,
0.013019193895161152,
-0.008722592145204544,
0.042618002742528915,
0.03578270599246025,
-0.00006263786053750664,
-0.036764275282621384,
-0.03621102496981621,
-0.053361739963293076,
0.051434293389320374,
0.025788532570004463,
0.04732954129576683,
-0.02146962285041809,
-0.05735940858721733,
0.07831147313117981,
0.020220352336764336,
0.02921510674059391,
0.0010339953005313873,
0.0035135759972035885,
0.01597282849252224,
-0.01662423461675644,
0.030607150867581367,
0.05653845891356468,
0.016615310683846474,
-0.05022071301937103,
0.03180288150906563,
0.05236232280731201,
0.05004224553704262,
0.06321313977241516,
-0.04208260402083397,
0.009583696722984314,
0.00619727885350585,
-0.0139383003115654,
0.021541010588407516,
-0.017793195322155952,
0.046187352389097214,
0.06906686723232269,
-0.0032793376594781876,
-0.026895031332969666,
0.014750326983630657,
-0.017561187967658043,
0.01895323395729065,
0.01882830634713173,
-0.016535000875592232,
0.023521997034549713,
0.01681162416934967,
0.00884751882404089,
-0.003500191029161215,
0.009226762689650059,
-0.0865209773182869,
0.02910802513360977,
-0.06307036429643631,
-0.04351034015417099,
-0.015098338015377522,
0.0009101835312321782,
-0.05139859765768051,
0.009164298884570599,
0.04711538180708885,
0.0015582430642098188,
0.008347810246050358,
0.0032414132729172707,
0.03779938444495201,
0.03612179309129715,
0.03340908885002136,
0.001399853266775608,
0.06406977772712708,
-0.03135671466588974,
0.003709890181198716,
0.005884961225092411,
-0.014652170240879059,
-0.106866255402565,
-0.06667540222406387,
-0.01932801492512226,
-0.0014355467865243554,
0.055967364460229874,
-0.04575902968645096,
0.014857407659292221,
0.10700902342796326,
0.06710372865200043
] |
21,327 | tfields.tensor_grid | is_empty |
Check if the object is an implicit grid (base points are empty but base_vectors and iter
order can be used to build the explicit grid's base points).
| def is_empty(self):
"""
Check if the object is an implicit grid (base points are empty but base_vectors and iter
order can be used to build the explicit grid's base points).
"""
return 0 in self.shape
| (self) | [
0.00226792530156672,
-0.007682227063924074,
-0.03699631989002228,
0.012129387818276882,
-0.028515886515378952,
-0.010507631115615368,
-0.02138691395521164,
0.0011561349965631962,
0.0016766597982496023,
-0.012847352772951126,
-0.0015087826177477837,
-0.02194439433515072,
-0.004970852751284838,
-0.03370212763547897,
-0.048213470727205276,
0.007893392816185951,
0.04949736222624779,
-0.02713063545525074,
0.03652330860495567,
-0.03713146969676018,
-0.02949569746851921,
-0.03403999283909798,
0.0313708521425724,
0.03523941710591316,
-0.009451800025999546,
0.02332964353263378,
0.014899888075888157,
-0.021268662065267563,
0.027316462248563766,
-0.009620732627809048,
-0.0785200446844101,
-0.00677421223372221,
0.014114350080490112,
0.05230164900422096,
0.09385915845632553,
0.011048216372728348,
0.06612036377191544,
0.05618710815906525,
-0.03817885369062424,
0.01715514436364174,
0.011225596070289612,
-0.026792770251631737,
-0.010575204156339169,
0.01964690536260605,
0.02555955946445465,
-0.026066357269883156,
0.08548008650541306,
0.03353319689631462,
-0.03550971299409866,
0.019596224650740623,
0.010313358157873154,
0.0017347304383292794,
0.05392340570688248,
0.05101775750517845,
-0.06209976226091385,
0.0009169892873615026,
0.03719904273748398,
0.03706389293074608,
-0.029208511114120483,
-0.025120332837104797,
-0.03520563244819641,
0.035780005156993866,
0.020018557086586952,
-0.08081753551959991,
0.06122130900621414,
0.004274004139006138,
-0.0669650286436081,
0.007226108107715845,
0.02844831347465515,
0.06348501145839691,
-0.052740875631570816,
0.04780803248286247,
-0.010093744844198227,
0.04932842776179314,
-0.008172133006155491,
-0.04888920485973358,
0.022451192140579224,
0.05345039442181587,
0.03703010827302933,
-0.07615498453378677,
-0.00874228123575449,
0.023971589282155037,
0.015170181170105934,
-0.0006678131758235395,
0.00677421223372221,
-0.008125675842165947,
0.010440058074891567,
0.06662716716527939,
-0.008615581318736076,
-0.014545129612088203,
0.03197901323437691,
0.010304911062121391,
0.02490072138607502,
-0.019038746133446693,
0.03581378981471062,
0.019410399720072746,
-0.01071035023778677,
-0.04980144277215004,
-0.054734282195568085,
-0.08689912408590317,
-0.01849815994501114,
-0.017771748825907707,
0.016327371820807457,
0.0018772677285596728,
-0.03628680482506752,
0.002375619951635599,
0.026302864775061607,
-0.04990280047059059,
-0.04719987139105797,
0.007872276939451694,
-0.017070677131414413,
0.044767238199710846,
-0.013590658083558083,
-0.002930987160652876,
0.0047639100812375546,
-0.045983556658029556,
-0.02552577294409275,
0.01876845397055149,
-0.051389411091804504,
0.007238777820020914,
0.01208715420216322,
-0.011605695821344852,
-0.02224847301840782,
-0.0671677514910698,
0.10331940650939941,
-0.01849815994501114,
0.0076273237355053425,
0.02451217547059059,
-0.01074413675814867,
-0.08689912408590317,
0.05280844867229462,
-0.02664072997868061,
-0.04652414098381996,
0.01718893088400364,
-0.03638816252350807,
-0.003735530423000455,
0.059430621564388275,
-0.06230248138308525,
-0.04324684292078018,
0.013210558332502842,
0.057133130729198456,
-0.01299094595015049,
-0.001064277719706297,
0.047841817140579224,
0.016606111079454422,
0.05054474622011185,
0.014021436683833599,
-0.006968485191464424,
0.017704175785183907,
-0.004472500644624233,
-0.017045337706804276,
-0.01152967568486929,
0.012357447296380997,
-0.016394944861531258,
-0.04956493526697159,
-0.013556871563196182,
0.03652330860495567,
-0.016580771654844284,
0.03605029731988907,
-0.01761970855295658,
-0.048044536262750626,
0.016251351684331894,
-0.013337258249521255,
0.029090259224176407,
-0.026725197210907936,
0.03147221356630325,
-0.049294643104076385,
-0.06993824988603592,
0.0037038554437458515,
0.036692243069410324,
0.019697584211826324,
-0.02089700847864151,
-0.04757152497768402,
0.00043869781075045466,
0.05510593578219414,
0.02824559435248375,
-0.03235066309571266,
0.022197792306542397,
-0.002502319635823369,
-0.018869813531637192,
0.04429422691464424,
-0.01685951091349125,
-0.029512591660022736,
-0.03255338594317436,
0.0045992000959813595,
0.058214303106069565,
0.040172260254621506,
-0.05510593578219414,
-0.02033952996134758,
0.02414052188396454,
-0.03258717060089111,
0.027282675728201866,
0.006212510168552399,
0.04176023229956627,
0.04517267644405365,
-0.00698115536943078,
0.044632092118263245,
0.041219644248485565,
-0.014739401638507843,
0.01250104047358036,
-0.0450037457048893,
-0.05429505929350853,
0.01912321336567402,
-0.04368606582283974,
-0.007965189404785633,
0.06297821551561356,
-0.0454091839492321,
-0.03469883278012276,
-0.0031738283578306437,
0.04649035632610321,
-0.034597475081682205,
-0.030171429738402367,
0.0018160294275730848,
0.04625384882092476,
0.02434324100613594,
0.05578166991472244,
-0.01443532295525074,
-0.0025339946150779724,
-0.01800825446844101,
0.036894962191581726,
0.03224930539727211,
-0.028127340599894524,
0.036590881645679474,
-0.026488689705729485,
0.05213271453976631,
0.02023817040026188,
0.009536266326904297,
0.035712432116270065,
-0.011875987984240055,
-0.06145781651139259,
0.004844152834266424,
-0.0040269396267831326,
-0.0454091839492321,
0.007965189404785633,
0.0072598946280777454,
-0.01935971900820732,
0.021538954228162766,
-0.038989730179309845,
-0.005355175118893385,
-0.00405861483886838,
-0.02204575389623642,
-0.004991969559341669,
-0.05311252921819687,
-0.044767238199710846,
-0.04618627578020096,
0.00037613982567563653,
-0.04051012918353081,
0.07676314562559128,
0.00480614323168993,
-0.016682131215929985,
-0.04267247021198273,
-0.02490072138607502,
-0.05345039442181587,
-0.05345039442181587,
0.02165720798075199,
-0.08095268160104752,
-0.07662799954414368,
-0.02601567842066288,
0.0062082866206765175,
-0.00483992975205183,
-0.024883827194571495,
0.02263701893389225,
0.017138250172138214,
0.09940016269683838,
0.0455443300306797,
0.035712432116270065,
0.009747432544827461,
0.04665928706526756,
0.0018593185814097524,
0.01824476197361946,
0.06862057745456696,
0.016327371820807457,
0.02417430840432644,
-0.0281442329287529,
0.02420809492468834,
0.05659254640340805,
0.008074996061623096,
-0.009874132461845875,
-0.010651224292814732,
0.022518765181303024,
0.03486776724457741,
-0.04405771940946579,
-0.038111280649900436,
0.0070445048622787,
-0.031742505729198456,
-0.021809246391057968,
0.0011234042467549443,
-0.04277382791042328,
0.003254071343690157,
-0.00826504547148943,
-0.029613951221108437,
0.06500540673732758,
0.019663797691464424,
0.04071284830570221,
0.013142985291779041,
-0.03496912494301796,
0.012399679981172085,
-0.030171429738402367,
-0.013708910904824734,
0.017239609733223915,
0.047976963222026825,
-0.015119501389563084,
-0.05666011944413185,
-0.03730040043592453,
0.0452064648270607,
0.034073781222105026,
0.02660694345831871,
0.040138475596904755,
0.05280844867229462,
-0.03642195090651512,
0.020153703168034554,
-0.003279411466792226,
0.026691410690546036,
0.011394529603421688,
0.06564735621213913,
0.005051095969974995,
0.008467765524983406,
-0.026877235621213913,
-0.0029373220168054104,
0.057065557688474655,
-0.04169265925884247,
0.025441305711865425,
0.011833755299448967,
-0.033837273716926575,
-0.07331690937280655,
-0.02302556484937668,
0.031607359647750854,
-0.0021222205832600594,
-0.057166919112205505,
0.06747183203697205,
-0.0029689969960600138,
-0.030712014064192772,
0.018717773258686066,
0.014266389422118664,
-0.0013166213175281882,
-0.04426043853163719,
-0.005887314211577177,
0.04757152497768402,
0.027485394850373268,
-0.024005375802516937,
0.024022268131375313,
0.03192833065986633,
0.0062082866206765175,
0.01863330788910389,
0.04165887087583542,
-0.009147720411419868,
-0.0020124141592532396,
-0.005063766147941351,
0.04865269735455513,
0.0252554789185524,
-0.03605029731988907,
0.0011128459591418505,
0.023110030218958855,
-0.02702927589416504,
0.03155668079853058,
0.023363430052995682,
0.01604018546640873,
0.03645573556423187,
0.017400097101926804,
0.02841452695429325,
0.08352046459913254,
-0.0013894736766815186,
-0.043719854205846786,
0.025610238313674927,
-0.03723282739520073,
-0.02674208953976631,
0.03403999283909798,
0.02187681943178177,
-0.03534077852964401,
-0.03699631989002228,
-0.05916032940149307,
-0.0564911887049675,
-0.045848410576581955,
-0.0042275479063391685,
-0.011098896153271198,
0.045780837535858154,
-0.04426043853163719,
0.018295440822839737,
0.011065109632909298,
-0.03147221356630325,
0.040070902556180954,
-0.01804204098880291,
0.0038368902169167995,
-0.02490072138607502,
-0.038854584097862244,
0.007074068300426006,
-0.01912321336567402,
0.045848410576581955,
-0.016445625573396683,
-0.032958824187517166,
0.034462325274944305,
-0.038854584097862244,
-0.04669307544827461,
-0.004700560122728348,
-0.021471381187438965,
0.03581378981471062,
0.07095184922218323,
0.006829115562140942,
-0.025711599737405777,
0.00412407610565424,
0.041084498167037964,
-0.004485170356929302,
0.031218813732266426,
0.032367557287216187,
-0.01010219193994999,
-0.0506461076438427,
-0.010929963551461697,
-0.030712014064192772,
0.019579332321882248,
0.013472404330968857,
0.06017392501235008,
0.0008705327636562288,
0.012011134065687656,
0.008007423020899296,
-0.030424829572439194,
0.007935626432299614,
-0.009451800025999546,
0.03187765181064606,
0.026623837649822235,
0.03246891871094704,
0.04405771940946579,
0.022130219265818596,
0.036692243069410324,
0.040172260254621506,
-0.01804204098880291,
0.004043832886964083,
-0.03317843750119209,
-0.06987068057060242,
0.022789059206843376,
-0.006613725796341896,
-0.08771000057458878,
-0.0787903368473053,
0.007323244586586952,
-0.01074413675814867,
-0.032789889723062515,
-0.0010769476648420095,
-0.003260406432673335,
-0.00908859446644783,
-0.008649368770420551,
0.07385749369859695,
0.015727659687399864,
0.039057303220033646,
-0.0010706126922741532,
0.005971780512481928,
0.018971173092722893,
-0.008395968936383724,
-0.015330667607486248,
-0.013050071895122528,
0.012112494558095932,
0.03263784945011139,
0.009722093120217323,
0.022299151867628098,
0.02942812442779541,
-0.03865186497569084,
0.0011962566059082747,
-0.05426127091050148,
-0.06699881702661514,
0.023278964683413506,
-0.0018772677285596728,
-0.005866197403520346,
-0.04483481124043465,
0.06676231324672699,
-0.10338698327541351,
-0.01348085142672062,
0.007648440543562174,
-0.00923218671232462,
0.00337865948677063,
0.03218173235654831,
0.004696336574852467,
0.009992385283112526,
0.007006495259702206,
-0.022907311096787453,
-0.010211998596787453,
-0.039057303220033646,
0.028853751718997955,
-0.011749288067221642,
0.024562854319810867,
0.08919660747051239,
0.04625384882092476,
-0.028127340599894524,
-0.042368389666080475,
0.022924205288290977,
-0.02706306241452694,
-0.015609406866133213,
0.008353735320270061,
0.03057686798274517,
-0.057166919112205505,
0.007939849980175495,
-0.0032118381932377815,
-0.022721484303474426,
0.0025255479849874973,
-0.03218173235654831,
-0.03040793538093567,
-0.0021581186447292566,
0.006943145301192999,
0.019342824816703796,
0.03608408197760582,
-0.02414052188396454,
0.0393613837659359,
-0.00720076821744442,
0.05777507647871971,
0.048145897686481476,
-0.0008847864810377359,
-0.040206048637628555,
-0.044699665158987045,
-0.07183030247688293,
0.029934924095869064,
-0.017822429537773132,
-0.029597057029604912,
0.0009354663779959083,
0.0018741001840680838,
-0.03333047777414322,
0.013320364989340305,
0.007171204779297113,
0.08061481267213821,
0.06027528643608093,
-0.011943561024963856,
-0.07703343778848648,
0.004903279710561037,
0.023110030218958855,
0.03142153471708298,
0.014181923121213913,
-0.009958598762750626,
0.03615165501832962,
-0.034529898315668106,
0.08257443457841873,
0.0029985602013766766,
-0.025373732671141624,
-0.005494545213878155,
0.025694705545902252,
0.0338541679084301,
-0.00288664223626256,
0.0340568870306015,
0.09757568687200546,
-0.022822845727205276,
0.04753774031996727,
0.010448504239320755,
-0.07074912637472153,
-0.029157832264900208,
0.013835610821843147,
-0.008113006129860878,
-0.03652330860495567,
0.08358803391456604,
-0.07534410804510117,
0.004611870273947716,
0.03317843750119209,
0.03642195090651512,
-0.02128555439412594,
-0.011115789413452148,
-0.020052343606948853,
0.006440569646656513,
-0.006622172426432371,
0.023008670657873154,
-0.02506965398788452,
0.07074912637472153,
0.014756295830011368,
-0.007019164972007275,
0.0040058232843875885,
0.004149415995925665,
0.044632092118263245,
-0.02664072997868061,
-0.01807582750916481,
0.04368606582283974,
0.01098909042775631,
-0.06122130900621414,
0.016546985134482384,
-0.044463157653808594,
0.025171013548970222,
0.023701297119259834,
0.043550919741392136,
-0.04301033541560173,
-0.028363846242427826,
-0.08034452050924301,
-0.049260854721069336,
0.033938635140657425,
-0.003963590133935213,
-0.018582627177238464,
0.01794068142771721,
-0.033448729664087296,
-0.06264034658670425,
-0.0024875381495803595,
-0.023431003093719482,
0.00604357710108161,
-0.05422748625278473,
0.021217981353402138,
-0.009823452681303024,
-0.08743970841169357,
0.0048568230122327805,
0.022130219265818596,
-0.02887064591050148,
0.028988897800445557,
0.044598303735256195,
0.06733668595552444,
-0.052673302590847015,
0.007808926980942488,
0.03625301644206047,
-0.000801903719548136,
-0.041321005672216415,
0.012441913597285748,
-0.013413278385996819,
0.0058281878009438515,
0.07703343778848648,
0.0014802751829847693,
0.05889003351330757,
0.016057079657912254,
-0.06939766556024551,
-0.026353543624281883,
0.05061231926083565,
-0.007331691216677427,
-0.029715310782194138,
0.034496113657951355,
-0.0008773956215009093,
-0.007846936583518982,
-0.03986818343400955,
-0.029124045744538307,
-0.04763909801840782,
-0.03189454600214958,
0.07034368813037872,
0.05192999541759491,
0.03197901323437691,
-0.021082835271954536,
-0.004527403507381678,
-0.050443384796381,
0.007196544669568539,
-0.00915616750717163,
-0.022164005786180496,
0.06507298350334167,
-0.08385832607746124,
0.010524524375796318,
0.04311169683933258,
0.02079564891755581,
-0.029191618785262108,
-0.03427650034427643,
0.0011128459591418505,
-0.016183778643608093,
-0.03618544340133667,
-0.058079157024621964,
0.04719987139105797,
0.0252216923981905,
0.05905896797776222,
-0.020542249083518982,
0.002715597627684474,
0.033803489059209824,
0.04368606582283974,
-0.009620732627809048,
-0.05909275636076927,
0.0042191012762486935,
-0.01210404746234417,
0.06132267042994499,
-0.0010484402300789952,
-0.015820574015378952,
0.03120192140340805,
0.03263784945011139,
-0.029698416590690613,
-0.04524024948477745,
0.028566565364599228,
-0.03196211904287338,
-0.0038221084978431463,
0.004801919683814049,
-0.07108699530363083,
-0.0004867381358053535,
-0.049058135598897934,
-0.03179318457841873,
-0.0036215006839483976,
0.016546985134482384,
0.014697168953716755,
0.015237754210829735,
0.004375364165753126,
-0.04395636171102524,
0.025508878752589226,
-0.03486776724457741,
0.02148827351629734,
-0.05422748625278473,
-0.049227070063352585,
-0.038043707609176636,
0.00266491761431098,
-0.024630427360534668,
-0.012416573241353035,
-0.029934924095869064,
0.014815421774983406,
0.053551752120256424,
-0.033769700676202774,
-0.06024149805307388,
0.03618544340133667,
0.021201089024543762,
0.008020092733204365,
-0.032857462763786316,
-0.03821263834834099,
0.06125509738922119,
-0.038854584097862244,
-0.010482290759682655,
-0.04382121190428734,
0.10994157940149307,
0.05054474622011185,
0.010828603990375996,
-0.007678003516048193,
-0.0397668220102787,
0.018582627177238464,
0.012425020337104797,
0.006081587169319391,
0.002153895329684019,
0.0033216446172446012,
-0.07412778586149216,
0.046862006187438965,
-0.008911214768886566,
0.04645656794309616,
-0.030661335214972496,
0.01758592203259468,
0.013142985291779041,
-0.006360326427966356,
-0.02138691395521164,
0.06807998567819595,
-0.014494448900222778,
-0.10608990490436554,
-0.04267247021198273,
0.008222812786698341,
0.029749097302556038,
0.04517267644405365,
-0.009865685366094112,
-0.015389794483780861,
0.012213854119181633,
-0.001117069274187088,
-0.02601567842066288,
0.001590081606991589,
0.007868053391575813,
0.030272789299488068,
-0.03317843750119209,
-0.06034285947680473,
0.0035497040953487158,
-0.022552551701664925,
-0.015964165329933167,
-0.005591681692749262,
-0.02142070047557354,
0.08331774175167084,
-0.0008214365807361901,
-0.005515661556273699,
0.008028539828956127,
-0.008894321508705616,
-0.06612036377191544,
-0.0030048952903598547,
0.005726827774196863,
-0.06666095554828644,
0.04172644391655922,
-0.03706389293074608,
-0.0072598946280777454,
0.009958598762750626,
0.03370212763547897,
0.009021020494401455,
-0.022552551701664925,
0.01679193787276745,
0.05882246047258377,
0.044530730694532394,
0.042334605008363724,
-0.028752392157912254,
0.03189454600214958,
0.02768811397254467,
-0.0393613837659359,
0.0023882898967713118,
-0.032232411205768585,
-0.04145615175366402,
-0.0789254829287529,
-0.030593762174248695,
-0.0047765797935426235,
0.04841618984937668,
-0.06307957321405411,
0.04959871992468834,
0.03635437786579132,
0.04432801157236099
] |
21,341 | tfields.core | TensorMaps |
Args:
tensors: see Tensors class
*fields (Tensors): see TensorFields class
**kwargs:
coord_sys ('str'): see Tensors class
maps (array-like): indices indicating a connection between the
tensors at the respective index positions
Examples:
>>> import tfields
>>> scalars = tfields.Tensors([0, 1, 2])
>>> 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])]
>>> mesh = tfields.TensorMaps(vectors, scalars,
... maps=maps)
>>> assert isinstance(mesh.maps, tfields.Maps)
>>> assert len(mesh.maps) == 2
>>> assert mesh.equal(tfields.TensorFields(vectors, scalars))
Copy constructor
>>> mesh_copy = tfields.TensorMaps(mesh)
Copying takes care of coord_sys
>>> mesh_copy.transform(tfields.bases.CYLINDER)
>>> mesh_cp_cyl = tfields.TensorMaps(mesh_copy)
>>> assert mesh_cp_cyl.coord_sys == tfields.bases.CYLINDER
| class TensorMaps(TensorFields):
"""
Args:
tensors: see Tensors class
*fields (Tensors): see TensorFields class
**kwargs:
coord_sys ('str'): see Tensors class
maps (array-like): indices indicating a connection between the
tensors at the respective index positions
Examples:
>>> import tfields
>>> scalars = tfields.Tensors([0, 1, 2])
>>> 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])]
>>> mesh = tfields.TensorMaps(vectors, scalars,
... maps=maps)
>>> assert isinstance(mesh.maps, tfields.Maps)
>>> assert len(mesh.maps) == 2
>>> assert mesh.equal(tfields.TensorFields(vectors, scalars))
Copy constructor
>>> mesh_copy = tfields.TensorMaps(mesh)
Copying takes care of coord_sys
>>> mesh_copy.transform(tfields.bases.CYLINDER)
>>> mesh_cp_cyl = tfields.TensorMaps(mesh_copy)
>>> assert mesh_cp_cyl.coord_sys == tfields.bases.CYLINDER
"""
__slots__ = ["coord_sys", "name", "fields", "maps"]
__slot_setters__ = [
tfields.bases.get_coord_system_name,
None,
as_fields,
as_maps,
]
def __new__(cls, tensors, *fields, **kwargs):
if issubclass(type(tensors), TensorMaps):
default_maps = tensors.maps
else:
default_maps = {}
maps = Maps(kwargs.pop("maps", default_maps))
obj = super(TensorMaps, cls).__new__(cls, tensors, *fields, **kwargs)
obj.maps = maps
return obj
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
@classmethod
def merged(
cls, *objects, **kwargs
): # pylint: disable=too-many-locals,too-many-branches
if not all(isinstance(o, cls) for o in objects):
# Note: could allow if all face_fields are none
raise TypeError(
"Merge constructor only accepts {cls} instances.".format(**locals())
)
tensor_lengths = [len(o) for o in objects]
cum_tensor_lengths = [sum(tensor_lengths[:i]) for i in range(len(objects))]
return_value = super().merged(*objects, **kwargs)
return_templates = kwargs.get("return_templates", False)
if return_templates:
inst, templates = return_value
else:
inst, templates = (return_value, None)
dim_maps_dict = {} # {dim: {i: map_}
for i, obj in enumerate(objects):
for dimension, map_ in obj.maps.items():
map_ = map_ + cum_tensor_lengths[i]
if dimension not in dim_maps_dict:
dim_maps_dict[dimension] = {}
dim_maps_dict[dimension][i] = map_
maps = []
template_maps_list = [[] for i in range(len(objects))]
for dimension in sorted(dim_maps_dict):
# sort by object index
dim_maps = [
dim_maps_dict[dimension][i]
for i in range(len(objects))
if i in dim_maps_dict[dimension]
]
return_value = TensorFields.merged(
*dim_maps,
return_templates=return_templates,
)
if return_templates:
(
map_, # pylint: disable=invalid-name
dimension_map_templates,
) = return_value
for i in range(len(objects)):
template_maps_list[i].append(
(dimension, dimension_map_templates[i])
)
else:
map_ = return_value # pylint: disable=invalid-name
maps.append(map_)
inst.maps = maps
if return_templates: # pylint: disable=no-else-return
for i, template_maps in enumerate(template_maps_list):
# template maps will not have dimensions according to their
# tensors which are indices
templates[i] = tfields.TensorMaps(
templates[i], maps=Maps(template_maps)
)
return inst, templates
else:
return inst
def _cut_template(self, template):
"""
Args:
template (tfields.TensorMaps)
Examples:
>>> import | (tensors, *fields, **kwargs) | [
0.03188840672373772,
-0.04912888631224632,
-0.052542414516210556,
0.05487571284174919,
-0.0393419973552227,
-0.0047692181542515755,
-0.05712259188294411,
-0.007685840595513582,
-0.017532141879200935,
0.018007444217801094,
0.016667958348989487,
0.019087674096226692,
-0.057641103863716125,
0.014885577373206615,
0.011320816352963448,
-0.0068540628999471664,
-0.02478048950433731,
0.05016590654850006,
0.028366854414343834,
-0.06840019673109055,
0.001357714761979878,
-0.03986050933599472,
0.0518510676920414,
0.04040062427520752,
0.028928574174642563,
-0.0296415276825428,
0.0034486360382288694,
-0.02942548133432865,
0.03026806004345417,
-0.010699683800339699,
-0.06615331768989563,
-0.024089142680168152,
0.0077884625643491745,
0.023894701153039932,
-0.01222821045666933,
-0.08481970429420471,
0.023484213277697563,
0.04515363648533821,
-0.018277501687407494,
0.023829886689782143,
0.04208578169345856,
-0.05522138625383377,
-0.04934493452310562,
-0.058721333742141724,
0.06671503931283951,
0.02534220926463604,
-0.00520671159029007,
-0.023657049983739853,
-0.0022077213507145643,
-0.005330937914550304,
-0.012066175229847431,
-0.07047424465417862,
0.028734132647514343,
0.05608557164669037,
-0.032817404717206955,
0.021788250654935837,
0.011709699407219887,
0.013297638855874538,
-0.022360773757100105,
0.003994152415543795,
-0.042258620262145996,
-0.00647058105096221,
-0.058634914457798004,
-0.015544517897069454,
-0.0011443692492321134,
-0.03685746714472771,
-0.01477755419909954,
-0.014604717493057251,
0.026984160766005516,
0.01296276692301035,
-0.04874000325798988,
-0.005190507974475622,
0.05876454338431358,
-0.04878321290016174,
0.013988985680043697,
0.00492315087467432,
0.0411783903837204,
-0.021528994664549828,
0.06943722069263458,
-0.08749867975711823,
-0.036879073828458786,
-0.03644698113203049,
-0.023224957287311554,
-0.0019795226398855448,
0.018245095387101173,
-0.002275235718116164,
0.028626110404729843,
0.0029382272623479366,
-0.027567485347390175,
-0.09445536136627197,
-0.005430859047919512,
0.003921236842870712,
-0.0021861165296286345,
-0.007712846156209707,
-0.04158887639641762,
-0.011266805231571198,
-0.0020551385823637247,
-0.05189427733421326,
-0.04895605146884918,
0.017024433240294456,
0.07669637352228165,
-0.037397582083940506,
-0.07155447453260422,
0.027783529832959175,
0.03003041073679924,
0.0021132011897861958,
-0.03441614657640457,
-0.048307910561561584,
-0.047486934810876846,
-0.018979651853442192,
-0.015544517897069454,
0.037203140556812286,
-0.01942254602909088,
0.04973381757736206,
0.002676271367818117,
-0.012563081458210945,
0.01981142908334732,
0.013362452387809753,
-0.007113318424671888,
-0.010937334969639778,
0.023678654804825783,
0.0060168844647705555,
-0.03065694309771061,
-0.014032195322215557,
-0.0020038278307765722,
0.02426197938621044,
0.058029986917972565,
0.036684632301330566,
-0.03566921502351761,
-0.03929878771305084,
-0.023095330223441124,
-0.02953350357711315,
-0.04135122522711754,
0.04489438235759735,
0.05090046674013138,
-0.019238905981183052,
0.000016941898138611577,
-0.02447802573442459,
-0.06278300285339355,
0.04078950732946396,
0.024002723395824432,
-0.006033087614923716,
0.03214766085147858,
0.02566627785563469,
-0.06615331768989563,
-0.02059999667108059,
0.03106743097305298,
-0.006881068926304579,
0.032514940947294235,
-0.05211032181978226,
-0.03582044690847397,
-0.0014826165279373527,
-0.032428521662950516,
0.06878907978534698,
-0.07427665591239929,
0.0029868376441299915,
0.02557986043393612,
-0.052974507212638855,
0.04037901759147644,
0.02570948749780655,
-0.01574976183474064,
-0.00193496304564178,
-0.019141685217618942,
-0.024132350459694862,
-0.021734239533543587,
0.01240104716271162,
0.05932626500725746,
-0.0786839947104454,
-0.02028672955930233,
0.005660408176481724,
0.001682459143921733,
-0.009857104159891605,
0.02047036960721016,
0.014421078376471996,
0.03960125148296356,
0.047875817865133286,
-0.04083271697163582,
-0.023981118574738503,
-0.03024645708501339,
0.0005448412848636508,
-0.006670423783361912,
0.003926638048142195,
-0.021637018769979477,
0.011958152987062931,
-0.047702983021736145,
0.04632028564810753,
0.016603143885731697,
-0.009522232227027416,
0.047616563737392426,
0.017618561163544655,
-0.011180386878550053,
-0.01462632231414318,
-0.0044829570688307285,
0.01011635921895504,
0.03089459426701069,
0.018396327272057533,
-0.0049987668171525,
-0.013297638855874538,
0.03458898141980171,
0.09722074866294861,
-0.11554146558046341,
-0.01587938889861107,
-0.0010491739958524704,
0.0028977184556424618,
-0.05094367265701294,
0.016214260831475258,
0.06563480943441391,
0.022598423063755035,
-0.02087005414068699,
0.01958458125591278,
-0.005525379441678524,
-0.03865065053105354,
0.04016297310590744,
0.011342421174049377,
0.05945589020848274,
-0.07790622860193253,
-0.047486934810876846,
0.01033240556716919,
-0.02424037456512451,
0.0020929467864334583,
0.03413528576493263,
0.04011976346373558,
-0.058116406202316284,
-0.017294490709900856,
-0.028626110404729843,
0.005606396589428186,
-0.005133796017616987,
0.00974908098578453,
0.013297638855874538,
-0.05500534176826477,
0.017078446224331856,
-0.01222821045666933,
-0.03389763459563255,
-0.023527422919869423,
0.05072762817144394,
-0.019260510802268982,
0.009073937311768532,
-0.08183827251195908,
0.058462079614400864,
-0.016376296058297157,
-0.0306137353181839,
-0.03020324744284153,
-0.009208966046571732,
-0.006735237780958414,
0.004426244646310806,
0.010780701413750648,
-0.02056759037077427,
0.02588232420384884,
0.01927131414413452,
0.021258937194943428,
0.012098582461476326,
0.016300680115818977,
-0.016171051189303398,
0.057425059378147125,
0.008733664639294147,
-0.0193469300866127,
0.04956097900867462,
-0.04601782187819481,
-0.0074103819206357,
-0.018104664981365204,
-0.028323646634817123,
-0.033011846244335175,
-0.022231144830584526,
0.0012503669131547213,
0.05124614015221596,
-0.03022485226392746,
0.06407927721738815,
0.05941268056631088,
-0.01514483243227005,
0.022684842348098755,
0.08231356739997864,
0.09566522389650345,
-0.028410064056515694,
-0.013686521910130978,
-0.008377187885344028,
-0.02994399145245552,
0.0501227006316185,
0.018871627748012543,
0.04091913625597954,
0.004693601746112108,
0.005876454524695873,
0.001659504254348576,
-0.057511474937200546,
-0.03095940873026848,
0.02024352177977562,
-0.028885366395115852,
-0.002859910484403372,
0.0014488592278212309,
0.0008304272778332233,
-0.03878027945756912,
0.017586153000593185,
0.022187937051057816,
0.04714126139879227,
-0.02061080001294613,
-0.022069111466407776,
-0.057770732790231705,
-0.05444362014532089,
0.03497786447405815,
-0.0494745597243309,
-0.03893151134252548,
0.02938227169215679,
-0.04050864651799202,
0.0821407362818718,
0.027502670884132385,
0.02519097737967968,
-0.022403981536626816,
0.018169477581977844,
-0.000978283816948533,
0.09220848232507706,
0.004985264036804438,
0.032882217317819595,
0.0068540628999471664,
-0.01963859237730503,
0.021258937194943428,
0.03007361851632595,
0.017769793048501015,
-0.008544623851776123,
0.011482850648462772,
0.048178285360336304,
0.08071482926607132,
0.006173517554998398,
0.012541476637125015,
-0.010148766450583935,
0.06356076896190643,
0.000678857380989939,
-0.07617785781621933,
0.06766564399003983,
-0.06567802280187607,
-0.007993706502020359,
-0.0015055714175105095,
-0.01983303390443325,
-0.008987518027424812,
0.01943334750831127,
0.0011929796310141683,
-0.04856716841459274,
-0.019001256674528122,
0.032990243285894394,
-0.022425586357712746,
-0.0386938601732254,
0.0007764157489873469,
0.04688200727105141,
-0.013459673151373863,
-0.01959538273513317,
0.03005201555788517,
0.01994105614721775,
-0.015468901954591274,
0.03348714858293533,
0.013049185276031494,
-0.009230569936335087,
0.058634914457798004,
0.037224747240543365,
0.004631488583981991,
0.031110640615224838,
0.023937908932566643,
0.01528526283800602,
0.0101595688611269,
0.021150914952158928,
-0.017208073288202286,
-0.027718717232346535,
0.032320499420166016,
0.013902567327022552,
-0.026011953130364418,
0.016376296058297157,
-0.013492080383002758,
0.028950178995728493,
-0.022684842348098755,
0.0008304272778332233,
-0.023743467405438423,
-0.04152406379580498,
-0.04033581167459488,
0.01514483243227005,
-0.05176464840769768,
0.004239905159920454,
0.03413528576493263,
-0.0003730171301867813,
-0.026962555944919586,
-0.043338850140571594,
0.03141310438513756,
-0.05388190224766731,
-0.02088085748255253,
0.022382378578186035,
-0.006767644546926022,
-0.006573203019797802,
0.0406382754445076,
-0.018796011805534363,
0.03415689244866371,
0.018623175099492073,
-0.012735918164253235,
0.033292707055807114,
-0.02985757403075695,
0.022112319245934486,
-0.0015501308953389525,
0.04033581167459488,
-0.023095330223441124,
-0.04372773319482803,
0.038175348192453384,
-0.058375660330057144,
0.00738877709954977,
0.03942841663956642,
-0.07915929704904556,
-0.01001913845539093,
-0.05591273307800293,
-0.009306186810135841,
0.0736285150051117,
0.023873096331954002,
-0.018796011805534363,
0.026724904775619507,
0.02925264462828636,
0.022749656811356544,
0.03677104786038399,
-0.02949029579758644,
0.07505442202091217,
0.04683879762887955,
0.014615519903600216,
0.003643077565357089,
-0.03547477349638939,
-0.032709382474422455,
0.028172412887215614,
0.021615413948893547,
0.018029049038887024,
0.019184894859790802,
0.06403607130050659,
0.031218664720654488,
-0.011104770004749298,
-0.0031029623933136463,
-0.07967780530452728,
-0.03962285816669464,
0.042064178735017776,
-0.009857104159891605,
0.05219674110412598,
-0.02034074254333973,
-0.08901099860668182,
0.013535289093852043,
-0.028950178995728493,
-0.01595500484108925,
0.004312820732593536,
0.02491011656820774,
-0.0022306761238723993,
0.016981225460767746,
0.018979651853442192,
0.07311000674962997,
0.02445642091333866,
0.04951776936650276,
-0.0605793297290802,
0.004639590159058571,
0.05517817661166191,
-0.05219674110412598,
0.032579753547906876,
-0.03562600538134575,
0.018450338393449783,
0.04606103152036667,
0.021399367600679398,
0.005709018558263779,
0.007167330011725426,
0.037592023611068726,
-0.012703511863946915,
-0.03960125148296356,
-0.04934493452310562,
-0.0682273656129837,
0.0013097795890644193,
0.010975142940878868,
0.0302896648645401,
0.001372567960061133,
0.0004834031860809773,
0.009214366786181927,
0.017283689230680466,
0.013610905036330223,
-0.001309104380197823,
-0.0012827737955376506,
0.0017769793048501015,
0.05440041050314903,
-0.006875667721033096,
-0.03214766085147858,
-0.04649312421679497,
-0.010526847094297409,
0.02454283833503723,
0.026832927018404007,
0.043382059782743454,
-0.029187830165028572,
-0.026854531839489937,
0.0038186151068657637,
-0.053622644394636154,
-0.0011828524293377995,
-0.03348714858293533,
-0.0063193487003445625,
0.05193748697638512,
-0.001111962366849184,
0.03160754591226578,
0.028971783816814423,
-0.004828630480915308,
-0.05051158368587494,
-0.013978183269500732,
0.021496588364243507,
0.016570737585425377,
-0.06533234566450119,
0.0029058202635496855,
-0.00029503798577934504,
0.01585778407752514,
0.058678124099969864,
-0.03070015273988247,
0.011504455469548702,
-0.012249814346432686,
-0.03545316681265831,
-0.0010586259886622429,
0.018742000684142113,
-0.03016003780066967,
0.02575269713997841,
0.02043796330690384,
0.03011682815849781,
-0.037894487380981445,
-0.0196169875562191,
-0.08222715556621552,
0.026119975373148918,
0.03452416881918907,
0.03627414256334305,
0.002225274918600917,
-0.006346354726701975,
0.0124766631051898,
-0.02575269713997841,
-0.01276832539588213,
0.010737491771578789,
0.032687775790691376,
-0.031585942953825,
-0.037570420652627945,
-0.006114105228334665,
-0.0037078915629535913,
-0.003454037243500352,
-0.027135392650961876,
0.04636349529027939,
-0.008247560821473598,
-0.02072962559759617,
-0.05124614015221596,
-0.018201885744929314,
0.01038641668856144,
0.018137071281671524,
0.04688200727105141,
0.016333086416125298,
-0.07864078879356384,
0.01573896035552025,
0.013610905036330223,
0.008080124855041504,
-0.004728709347546101,
0.07272112369537354,
-0.06157314404845238,
0.04446228966116905,
0.033076658844947815,
0.003961745649576187,
-0.02057839184999466,
-0.0004557222709991038,
-0.00041386333759874105,
0.008852489292621613,
0.0030759565997868776,
0.02445642091333866,
-0.02555825561285019,
0.005703617352992296,
0.032795801758766174,
-0.0588509626686573,
-0.06502988189458847,
-0.01581457629799843,
0.022922493517398834,
0.06105463206768036,
0.027394646778702736,
0.09739358723163605,
0.04033581167459488,
-0.01025138795375824,
0.015123228542506695,
-0.03361677750945091,
0.012779127806425095,
-0.018450338393449783,
0.022447191178798676,
0.00311916577629745,
0.01592259854078293,
0.0009688318241387606,
-0.00969506986439228,
0.02949029579758644,
0.0062545351684093475,
-0.0022144727408885956,
0.0026560169644653797,
0.0012483415193855762,
-0.08417156338691711,
-0.026400836184620857,
0.02972794510424137,
0.036879073828458786,
-0.00129830208607018,
0.06118426099419594,
0.0124766631051898,
-0.0017364706145599484,
0.06766564399003983,
0.058246031403541565,
0.016678759828209877,
0.014982798136770725,
0.07073349505662918,
-0.033314310014247894,
0.03519391268491745,
-0.016678759828209877,
0.03910434618592262,
-0.028431668877601624,
0.011785315349698067,
-0.03990371897816658,
-0.007631829008460045,
-0.010737491771578789,
-0.00009249474533135071,
-0.012563081458210945,
0.03715993091464043,
-0.013610905036330223,
-0.06645578891038895,
0.010829311795532703,
0.028798947110772133,
0.03515070304274559,
-0.01501520536839962,
0.02026512660086155,
-0.008366385474801064,
0.027156997472047806,
-0.058634914457798004,
0.03199642896652222,
-0.09307266771793365,
-0.05539422482252121,
0.04091913625597954,
0.10586259514093399,
-0.03999013453722,
-0.03692227974534035,
-0.018201885744929314,
-0.032320499420166016,
-0.022879283875226974,
-0.02583911642432213,
0.01298437174409628,
0.04614745080471039,
-0.038132138550281525,
0.0075022014789283276,
0.029209434986114502,
-0.0038375190924853086,
-0.023462608456611633,
-0.0156309362500906,
0.004050864838063717,
0.010699683800339699,
0.005471367854624987,
0.0009580294718034565,
-0.029014993458986282,
-0.014734345488250256,
0.052585624158382416,
-0.022641632705926895,
-0.06347434967756271,
0.00495285727083683,
0.03363838046789169,
-0.017035236582159996,
-0.05984477326273918,
0.01999506726861,
-0.008863291703164577,
0.029339062049984932,
0.05167823284864426,
-0.04502401128411293,
0.058678124099969864,
-0.0007203787681646645,
-0.031175455078482628,
0.012444255873560905,
0.023484213277697563,
-0.0028761138673871756,
-0.04400859400629997,
0.032903824001550674,
-0.001421853550709784,
-0.018947243690490723,
-0.03439453989267349,
-0.011569269932806492,
-0.062394119799137115,
-0.03638216480612755,
-0.05357943847775459,
0.02996559627354145,
0.0042534079402685165,
0.058073196560144424,
0.0880603939294815,
-0.02998720109462738,
-0.0880603939294815,
-0.016581539064645767,
-0.016700364649295807,
0.03489144891500473,
-0.006232930347323418,
0.06684467196464539,
-0.0016919111367315054,
-0.014982798136770725,
-0.02944708615541458,
0.07328284531831741,
0.047054845839738846,
-0.052672043442726135,
0.06369039416313171,
-0.01597660966217518,
0.026465648785233498,
-0.02568788267672062,
0.008139537647366524,
0.015620133839547634,
0.03523712232708931,
0.03938520699739456,
-0.03910434618592262,
0.09117145836353302,
0.01589019224047661,
-0.07790622860193253,
0.017402514815330505,
0.0038672254886478186,
-0.032622963190078735,
0.023635445162653923,
0.023289771750569344,
-0.002511536004021764,
-0.037527211010456085,
-0.05958551913499832,
-0.028561295941472054,
-0.03661981597542763,
0.022944098338484764,
-0.0488264225423336,
-0.00762102659791708,
0.03476181998848915,
-0.0248453039675951,
0.03577723726630211,
0.053406599909067154,
0.0832209661602974,
-0.03661981597542763,
0.001737820915877819,
-0.03666302561759949,
-0.008550024591386318,
0.0492585152387619,
0.027048973366618156,
-0.014507496729493141,
0.0124766631051898,
0.03508589044213295,
0.03860744088888168,
0.057468265295028687,
0.02482369914650917,
0.009057733230292797,
-0.022857679054141045,
-0.05470287799835205,
-0.07924571633338928,
-0.004545070230960846,
0.04228022322058678,
0.05509176105260849,
-0.04476475715637207,
-0.058332450687885284,
-0.03000880591571331,
-0.020978078246116638,
0.03983890265226364,
-0.03145631402730942,
-0.038823485374450684,
0.04433266445994377,
-0.013502881862223148,
-0.04493759199976921,
-0.021248135715723038,
0.0392339751124382,
-0.01294116210192442,
0.028431668877601624,
0.038369789719581604,
0.021345356479287148,
-0.022706447169184685,
-0.006308546755462885,
0.07881361991167068,
0.01605222560465336,
-0.07354209572076797,
-0.052801672369241714,
0.03439453989267349,
0.004096774384379387,
0.0037456995341926813,
-0.05595594272017479,
-0.06684467196464539,
-0.06006082147359848,
0.001860697171650827,
-0.019012058153748512,
-0.03139150142669678,
0.037527211010456085,
0.01232543122023344,
0.043382059782743454,
-0.037592023611068726,
0.023224957287311554
] |
21,346 | tfields.core | __new__ | null | def __new__(cls, tensors, *fields, **kwargs):
if issubclass(type(tensors), TensorMaps):
default_maps = tensors.maps
else:
default_maps = {}
maps = Maps(kwargs.pop("maps", default_maps))
obj = super(TensorMaps, cls).__new__(cls, tensors, *fields, **kwargs)
obj.maps = maps
return obj
| (cls, tensors, *fields, **kwargs) | [
-0.026895979419350624,
-0.04506893828511238,
0.012212228029966354,
0.04605027660727501,
-0.0552094504237175,
0.02925846353173256,
-0.04405125230550766,
0.04525066912174225,
-0.015728695318102837,
0.04023493081331253,
0.019772179424762726,
0.0819237008690834,
-0.05786270275712013,
0.03083951026201248,
0.03500111773610115,
-0.018018487840890884,
-0.051756586879491806,
-0.004418300464749336,
-0.005724482238292694,
-0.0830867663025856,
0.022570814937353134,
0.028422508388757706,
0.041507039219141006,
0.061388254165649414,
0.04597758501768112,
0.01645561493933201,
-0.01183968223631382,
-0.014829134568572044,
0.017673201858997345,
-0.0023556698579341173,
-0.08017909526824951,
0.033329207450151443,
0.011203628964722157,
0.08454060554504395,
0.025860119611024857,
-0.07280087471008301,
-0.02998538129031658,
0.033783528953790665,
-0.06938435882329941,
-0.016982629895210266,
0.033256515860557556,
-0.05390099436044693,
-0.06266035884618759,
-0.040671080350875854,
0.07163780182600021,
0.05480964481830597,
0.03914455324411392,
-0.055572908371686935,
0.0004475091118365526,
-0.03398343175649643,
-0.012375785037875175,
-0.007791656069457531,
0.02226187475025654,
0.03022162988781929,
-0.019535930827260017,
0.04241568595170975,
0.03016711212694645,
0.0078052859753370285,
-0.0865032821893692,
0.039471667259931564,
-0.07530874013900757,
-0.0016934926388785243,
-0.02925846353173256,
-0.025224067270755768,
0.009586235508322716,
-0.014592885971069336,
-0.029458366334438324,
-0.030039900913834572,
0.04241568595170975,
0.04016223922371864,
-0.0193542018532753,
-0.023097829893231392,
-0.0016230724286288023,
-0.008604896254837513,
0.039362628012895584,
0.049721214920282364,
-0.015292544849216938,
-0.024860607460141182,
0.03256594389677048,
-0.006306016817688942,
-0.05775366351008415,
-0.05262888967990875,
-0.0028463397175073624,
0.023697538301348686,
-0.015410669147968292,
-0.0027032275684177876,
-0.014838220551609993,
-0.0506662093102932,
-0.02008111961185932,
-0.04136165603995323,
-0.08054255694150925,
0.011966893449425697,
-0.02538762427866459,
-0.022661680355668068,
-0.022752543911337852,
-0.03352911025285721,
0.016746381297707558,
-0.002959920559078455,
-0.017255224287509918,
0.04285183548927307,
0.08134216070175171,
-0.04804930463433266,
-0.04434201866388321,
0.00536556588485837,
0.0016639615641906857,
-0.042997222393751144,
-0.022625334560871124,
-0.017664115875959396,
-0.06876647472381592,
0.014956344850361347,
0.0029939948581159115,
0.06102479621767998,
0.026823287829756737,
0.0830867663025856,
-0.02544214203953743,
0.0003841877041850239,
0.0375453345477581,
-0.013593372888863087,
0.036164186894893646,
0.012130450457334518,
-0.037472642958164215,
0.028095394372940063,
-0.01980852521955967,
0.004145706072449684,
0.007977928966283798,
0.017327915877103806,
0.05891673266887665,
-0.03710918128490448,
-0.018481899052858353,
-0.023206869140267372,
-0.0024329049047082663,
-0.015610571950674057,
-0.027186745777726173,
0.07327336817979813,
0.03322016820311546,
-0.007655358873307705,
0.00017377891344949603,
0.01741878129541874,
-0.031384699046611786,
0.027459340170025826,
0.037254564464092255,
0.006524092052131891,
0.0409981943666935,
0.03834494203329086,
-0.07123799622058868,
-0.021825723350048065,
0.006773970555514097,
-0.025623872876167297,
0.01496543176472187,
-0.039835125207901,
-0.03083951026201248,
-0.031003067269921303,
0.003003081539645791,
0.07003858685493469,
-0.070583775639534,
0.007237380836158991,
0.023025138303637505,
-0.04376048594713211,
0.06291478127241135,
0.03372901305556297,
0.03312930464744568,
0.019445065408945084,
-0.007718964479863644,
-0.04910333454608917,
-0.011012813076376915,
0.019535930827260017,
0.0335836261510849,
-0.09747975319623947,
-0.016146674752235413,
-0.023243214935064316,
0.001164205139502883,
-0.048231031745672226,
0.07887063920497894,
0.04230664670467377,
0.01428394578397274,
-0.005265614949166775,
-0.01740969531238079,
-0.01317539531737566,
-0.009113739244639874,
0.03939897567033768,
0.03236604109406471,
0.021262362599372864,
-0.010158684104681015,
0.0073782214894890785,
0.004207040183246136,
0.005238355603069067,
0.0067875999957323074,
0.03689110651612282,
0.019426893442869186,
0.005801717285066843,
-0.007432740181684494,
0.0253331046551466,
-0.00856400653719902,
0.021044285967946053,
0.035019293427467346,
0.010831083171069622,
-0.0017695918213576078,
0.008868403732776642,
0.0015004049055278301,
0.13338951766490936,
-0.08156023919582367,
0.037072837352752686,
0.02527858503162861,
-0.0304397065192461,
0.008518574759364128,
0.03140287473797798,
0.02965826913714409,
0.01257568784058094,
-0.029803652316331863,
-0.031221143901348114,
0.053864650428295135,
-0.030712300911545753,
0.01855459064245224,
0.01325717382133007,
-0.010458537377417088,
-0.04016223922371864,
-0.02971278689801693,
0.008872946724295616,
-0.0472496934235096,
0.0007888199761509895,
0.1223403587937355,
0.03961705043911934,
-0.08781173825263977,
-0.0029667355120182037,
-0.017545992508530617,
0.009127368219196796,
-0.00408437242731452,
-0.0444147102534771,
-0.018581850454211235,
-0.027404822409152985,
-0.04815834015607834,
0.006401424761861563,
-0.06127921864390373,
0.006828489247709513,
0.05993441864848137,
-0.04539605230093002,
0.036164186894893646,
-0.054955027997493744,
0.039580702781677246,
-0.0034460474271327257,
0.029730960726737976,
0.003770889015868306,
-0.03558265417814255,
-0.008355017751455307,
0.020971594378352165,
-0.0076689887791872025,
-0.07083819061517715,
0.03461948782205582,
0.034292373806238174,
0.021607648581266403,
0.03294757381081581,
0.011730644851922989,
0.0006190164131112397,
0.03200257942080498,
0.012393957935273647,
0.03151191025972366,
0.005965273827314377,
-0.07290991395711899,
-0.00226139766164124,
-0.03972608968615532,
-0.01986304484307766,
0.010976467281579971,
-0.02082621119916439,
0.054155416786670685,
0.046304699033498764,
-0.03503746539354324,
0.02242543175816536,
0.01616484671831131,
-0.008395906537771225,
-0.01249390933662653,
0.10620277374982834,
0.0950082316994667,
0.00950445793569088,
-0.002028556540608406,
0.013829621486365795,
-0.07407297939062119,
0.03174816071987152,
-0.03863571211695671,
-0.014220340177416801,
-0.013057271018624306,
-0.009731619618833065,
-0.006037965416908264,
-0.01871814765036106,
-0.020535442978143692,
0.05026640370488167,
-0.014856393449008465,
-0.01257568784058094,
0.032765842974185944,
-0.01644652709364891,
-0.07181953638792038,
0.03216613829135895,
0.07211030274629593,
-0.004829464014619589,
-0.018000315874814987,
-0.007182862143963575,
-0.04735872894525528,
-0.06978416442871094,
0.09428130835294724,
-0.031293835490942,
-0.004911242052912712,
-0.007678075227886438,
-0.08003371208906174,
0.061388254165649414,
0.028186259791254997,
0.025914639234542847,
-0.055681947618722916,
-0.0030462422873824835,
-0.0013175394851714373,
0.04888525977730751,
0.03769071772694588,
0.046631813049316406,
0.0865032821893692,
-0.020917074754834175,
0.04408759996294975,
0.005633617285639048,
0.03943531960248947,
0.03145739063620567,
-0.03271132707595825,
0.03392891585826874,
0.057390205562114716,
0.027731934562325478,
-0.030367014929652214,
-0.00984974391758442,
0.0375816784799099,
-0.020171985030174255,
-0.06058864668011665,
0.04176145792007446,
-0.09835205227136612,
0.009331814013421535,
-0.05081159248948097,
0.0004898180486634374,
-0.004911242052912712,
0.012730157934129238,
-0.020753519609570503,
-0.07494528591632843,
0.009904262609779835,
-0.003359725698828697,
0.0076235560700297356,
-0.038381289690732956,
-0.006864835042506456,
0.0013595644850283861,
-0.029403846710920334,
-0.037872444838285446,
0.022661680355668068,
-0.03160277381539345,
-0.01832742989063263,
0.029185771942138672,
-0.026496173813939095,
0.0324387326836586,
0.003870840184390545,
0.015174420550465584,
-0.04314260557293892,
0.046704504638910294,
0.01667368970811367,
0.04539605230093002,
0.013802362605929375,
0.008305042050778866,
0.016028549522161484,
-0.053355805575847626,
-0.013965918682515621,
0.014692837372422218,
-0.0207716915756464,
0.034583140164613724,
-0.00962258130311966,
-0.004029853735119104,
0.011685212142765522,
0.057390205562114716,
-0.03307478502392769,
-0.038054175674915314,
0.012766503728926182,
0.03574620932340622,
-0.03238421306014061,
-0.011458050459623337,
0.07025665789842606,
0.01776406727731228,
-0.028440680354833603,
-0.03676389530301094,
0.032765842974185944,
-0.03200257942080498,
-0.021662166342139244,
0.003212070558220148,
-0.03096672147512436,
0.016092155128717422,
0.012784676626324654,
-0.00859580934047699,
0.024442629888653755,
0.05095697566866875,
0.022897928953170776,
0.01234852522611618,
-0.004793117754161358,
-0.026986844837665558,
-0.032693151384592056,
-0.007773483172059059,
-0.018145699054002762,
-0.01098555326461792,
0.009540803730487823,
-0.02424272708594799,
0.02186206914484501,
0.030930375680327415,
-0.07251010835170746,
-0.045723166316747665,
-0.051865626126527786,
-0.00987700279802084,
0.02675059624016285,
0.015955857932567596,
0.00950445793569088,
0.0023113731294870377,
0.025423970073461533,
0.04714065417647362,
-0.00967710092663765,
0.040671080350875854,
0.044996246695518494,
0.010122338309884071,
0.02135322615504265,
0.007896150462329388,
-0.02544214203953743,
-0.026623385027050972,
-0.04975756257772446,
-0.0009148949175141752,
-0.0003333602217026055,
-0.009813398122787476,
0.05371926724910736,
-0.018627282232046127,
-0.022916100919246674,
0.036055151373147964,
-0.016546478495001793,
-0.0202083308249712,
0.006101571023464203,
0.025133201852440834,
0.010522142983973026,
-0.05092063173651695,
-0.028040874749422073,
0.031784504652023315,
-0.02037188597023487,
0.024551667273044586,
0.007573580835014582,
0.020408233627676964,
-0.03950801119208336,
-0.03347459062933922,
-0.02373388409614563,
0.008841144852340221,
-0.04503259062767029,
0.014674664475023746,
-0.03380170464515686,
-0.030585089698433876,
0.0005849421140737832,
-0.02527858503162861,
0.030367014929652214,
0.01690085232257843,
0.010167770087718964,
0.029058560729026794,
0.0409981943666935,
0.022152837365865707,
0.00770987756550312,
0.08163293451070786,
-0.03431054577231407,
-0.0352737121284008,
-0.04216126352548599,
0.001137513667345047,
0.0375816784799099,
-0.032293349504470825,
-0.027005016803741455,
0.012584773823618889,
-0.04648642987012863,
0.000383903767215088,
0.006878464948385954,
0.030948549509048462,
-0.025932813063263893,
-0.0051929228939116,
-0.057390205562114716,
0.07770757377147675,
0.0546279139816761,
0.0003560764016583562,
-0.041906844824552536,
-0.05669962987303734,
-0.002791820792481303,
0.04645008221268654,
0.010231375694274902,
-0.04645008221268654,
-0.03398343175649643,
-0.007160145789384842,
0.009731619618833065,
0.03374718502163887,
-0.03222065791487694,
-0.011403531767427921,
0.025115029886364937,
-0.008323214948177338,
-0.0216258205473423,
0.035491786897182465,
0.04754045978188515,
-0.012884628027677536,
0.027731934562325478,
0.028258951380848885,
0.06077037379145622,
-0.03739994764328003,
0.0043910411186516285,
0.03067595511674881,
0.02725943736732006,
-0.009095566347241402,
-0.030875857919454575,
0.017164358869194984,
-0.04746776819229126,
-0.05088428407907486,
0.019372373819351196,
0.029185771942138672,
-0.03834494203329086,
0.011367185972630978,
0.0073873079381883144,
0.01831834204494953,
-0.0027827343437820673,
0.010821997188031673,
-0.041797805577516556,
0.014156734570860863,
0.008186917752027512,
-0.003232514951378107,
-0.013793275691568851,
-0.036618512123823166,
-0.0072828130796551704,
-0.008954725228250027,
-0.010522142983973026,
0.03487390652298927,
0.06502284854650497,
-0.0059334710240364075,
-0.030003555119037628,
-0.031166624277830124,
-0.01488365326076746,
-0.014056784100830555,
-0.00293038971722126,
0.048412762582302094,
0.044923555105924606,
-0.00970435980707407,
-0.05793539434671402,
-0.07807102799415588,
0.0038344943895936012,
-0.0005307071842253208,
0.06077037379145622,
0.033547282218933105,
-0.02157130278646946,
0.06814859807491302,
-0.028876831755042076,
0.0007490666466765106,
-0.021916588768363,
0.032802190631628036,
-0.010058732703328133,
0.0159285981208086,
0.0015276643680408597,
-0.0147927887737751,
-0.001551516354084015,
0.030476052314043045,
-0.0010199573589488864,
0.009177343919873238,
0.012384871020913124,
-0.0038821983616799116,
-0.008927466347813606,
-0.004068471025675535,
0.0324569046497345,
-0.013802362605929375,
-0.06327824294567108,
-0.03703648969531059,
0.04346971586346626,
0.05401003360748291,
0.0369819700717926,
0.07450912892818451,
0.07105626910924911,
-0.030894029885530472,
-0.0029213030356913805,
-0.03465583175420761,
0.053646575659513474,
-0.02237091213464737,
0.011458050459623337,
0.02357032708823681,
0.033147476613521576,
0.023206869140267372,
0.030294323340058327,
-0.004870352800935507,
-0.0011607977794483304,
0.011285407468676567,
0.02173485793173313,
-0.0023045584093779325,
-0.06974781304597855,
-0.054955027997493744,
0.05884404107928276,
-0.043506063520908356,
0.0021852983627468348,
0.011648866347968578,
-0.020244676619768143,
-0.03431054577231407,
0.02066265419125557,
0.04274279996752739,
-0.0012448476627469063,
0.04728603735566139,
0.04423298314213753,
-0.05208370089530945,
0.055173102766275406,
-0.030930375680327415,
-0.015955857932567596,
-0.014120388776063919,
-0.0038276794366538525,
-0.05077524855732918,
0.0006150410627014935,
-0.039689742028713226,
0.05001198127865791,
-0.02805904857814312,
-0.02140774577856064,
0.02093524858355522,
-0.07109261304140091,
-0.041070885956287384,
0.038272250443696976,
-0.0011801065411418676,
0.001995617989450693,
0.02765924297273159,
-0.012375785037875175,
0.046304699033498764,
-0.018054835498332977,
0.044814515858888626,
-0.0700022354722023,
-0.08468598872423172,
0.02942202053964138,
0.04655912145972252,
-0.05662693828344345,
-0.018182044848799706,
-0.02008111961185932,
-0.0036368633154779673,
0.009668014012277126,
-0.04332433268427849,
-0.00718740513548255,
0.037654370069503784,
-0.062405940145254135,
0.009063763543963432,
0.01141261775046587,
0.0038049633149057627,
-0.020117465406656265,
-0.05139312893152237,
-0.010994640178978443,
0.014438415877521038,
-0.0027054992970079184,
-0.00021466807811520994,
0.007927953265607357,
0.05390099436044693,
0.0318571962416172,
-0.07421836256980896,
-0.01895439624786377,
-0.010376759804785252,
-0.023006966337561607,
0.018645456060767174,
-0.0785071849822998,
0.017791327089071274,
0.01741878129541874,
0.016092155128717422,
0.0012380328262224793,
-0.014174907468259335,
0.05789904668927193,
0.01871814765036106,
0.0069602434523403645,
0.031330179423093796,
0.007691704668104649,
-0.04815834015607834,
-0.014338464476168156,
0.06356900930404663,
0.0024874238297343254,
-0.03151191025972366,
-0.027840973809361458,
0.0035459985956549644,
-0.0233340784907341,
-0.017155272886157036,
0.0013209469616413116,
0.006410511210560799,
-0.03523736819624901,
0.0287314485758543,
0.05077524855732918,
-0.0330202654004097,
-0.035201020538806915,
0.028604237362742424,
-0.02458801306784153,
0.032238829880952835,
0.01541975513100624,
0.0318571962416172,
-0.014174907468259335,
0.023461289703845978,
0.0023022866807878017,
0.0033301946241408587,
0.030257975682616234,
-0.02418820746243,
0.05212004482746124,
-0.04085281118750572,
0.03572803735733032,
-0.03494659811258316,
0.029912689700722694,
-0.021080631762742996,
-0.0017718634335324168,
0.06574976444244385,
-0.043905869126319885,
0.06095210462808609,
0.019445065408945084,
-0.06553168594837189,
0.01431120466440916,
-0.022280046716332436,
-0.0887567326426506,
0.0426701083779335,
0.017218878492712975,
-0.008477685041725636,
0.020571788772940636,
-0.07407297939062119,
-0.012766503728926182,
0.007073824293911457,
0.010576661676168442,
-0.0415433831512928,
0.007073824293911457,
0.011866942048072815,
-0.015383409336209297,
0.0011630693916231394,
0.030766818672418594,
0.06709456443786621,
-0.04372413828969002,
0.0018207032699137926,
-0.012539342045783997,
0.06767609715461731,
-0.006110657472163439,
0.019844871014356613,
-0.053464844822883606,
0.02178937755525112,
-0.01217588223516941,
0.03345641866326332,
0.04866718500852585,
0.014665577560663223,
-0.021716685965657234,
-0.0427064523100853,
-0.05935288220643997,
-0.03899917006492615,
-0.040671080350875854,
0.042888183146715164,
0.026768768206238747,
-0.04016223922371864,
-0.07018397003412247,
-0.047213345766067505,
-0.038272250443696976,
0.03720004856586456,
-0.012884628027677536,
0.01622845232486725,
0.05997076258063316,
-0.042088571935892105,
-0.006978416349738836,
0.04423298314213753,
0.0637507364153862,
-0.030094420537352562,
-0.023134177550673485,
0.027350302785634995,
-0.00836410466581583,
0.006655846256762743,
0.037945136427879333,
0.024260900914669037,
0.016146674752235413,
-0.05673597753047943,
-0.007042021490633488,
0.03478304296731949,
-0.03954435884952545,
-0.00506571214646101,
-0.041579730808734894,
-0.028240777552127838,
-0.07603566348552704,
-0.027059536427259445,
-0.010658440180122852,
-0.015546966344118118,
-0.012702898122370243,
-0.016319317743182182,
0.04917602613568306,
0.024442629888653755,
0.014592885971069336
] |
21,354 | tfields.core | _cut_template |
Args:
template (tfields.TensorMaps)
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.TensorMaps)
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]])
"""
inst = super()._cut_template(template) # this will set maps=Maps({})
# Redirect maps and their fields
if template.fields:
# bulk was cut so we need to correct the map references.
index_lut = np.full(len(self), np.nan) # float type
index_lut[template.fields[0]] = np.arange(len(template.fields[0]))
for map_dim, map_ in self.maps.items():
map_ = map_._cut_template( # pylint: disable=protected-access
template.maps[map_dim]
)
if template.fields:
# correct
map_ = Maps.to_map( # pylint: disable=invalid-name
index_lut[map_], *map_.fields
)
inst.maps[map_dim] = map_
return inst
| (self, template) | [
0.04818711057305336,
-0.010455694049596786,
-0.03593197837471962,
-0.014793291687965393,
-0.07012134045362473,
-0.0004664338193833828,
-0.029624465852975845,
-0.002123812912032008,
-0.019377129152417183,
0.006245951168239117,
0.007098317611962557,
0.02719995751976967,
-0.06292358040809631,
-0.04276984930038452,
-0.04197430983185768,
0.004815869964659214,
-0.007429793477058411,
0.036557044833898544,
0.019225597381591797,
-0.060536954551935196,
-0.0033739502541720867,
-0.06084001809358597,
0.026574889197945595,
0.04008015990257263,
0.06004447489976883,
-0.027635611593723297,
0.010057923384010792,
-0.03545844182372093,
0.04655814543366432,
-0.03625398129224777,
-0.07565224915742874,
0.01799440197646618,
0.01239719521254301,
0.024282971397042274,
0.005213641095906496,
-0.0984199047088623,
0.03148072957992554,
-0.008239541202783585,
-0.028942573815584183,
0.0697803944349289,
0.041406065225601196,
-0.03562891483306885,
-0.034189362078905106,
-0.02831750549376011,
0.04508071020245552,
0.004382583778351545,
0.022256232798099518,
-0.05049797147512436,
-0.015361536294221878,
-0.004107932560145855,
-0.07118206471204758,
-0.039133086800575256,
-0.003253198228776455,
0.015039531514048576,
-0.05053585395216942,
0.020399969071149826,
0.016933677718043327,
0.0022054980508983135,
-0.024282971397042274,
-0.034189362078905106,
-0.04894477128982544,
0.04920995235443115,
-0.01641278713941574,
-0.010597755201160908,
0.0072214375250041485,
-0.033488526940345764,
-0.028563743457198143,
0.04614143446087837,
0.03318546339869499,
-0.006369071081280708,
-0.05504392459988594,
0.022350940853357315,
0.06966674327850342,
-0.0006641354411840439,
0.03525008633732796,
-0.016327550634741783,
0.01751139387488365,
-0.03060942329466343,
0.06731799989938736,
-0.08508510887622833,
0.011042879894375801,
-0.020740915089845657,
-0.04091358557343483,
0.026537006720900536,
0.008675195276737213,
0.00021590321557596326,
0.030268477275967598,
-0.0018515291158109903,
0.0018444261513650417,
-0.04076205566525459,
-0.010181042365729809,
-0.0031419170554727316,
-0.02295706793665886,
-0.02403673157095909,
0.003935091197490692,
0.04280773177742958,
0.00972644705325365,
-0.05974141135811806,
-0.029131988063454628,
0.020703032612800598,
0.08637312799692154,
-0.02326013147830963,
-0.021593281999230385,
0.002241013338789344,
0.03176485374569893,
0.015920309349894524,
-0.0015413624932989478,
0.016886325553059578,
-0.04587625339627266,
0.012075190432369709,
0.006544279400259256,
0.052202705293893814,
-0.034189362078905106,
0.04008015990257263,
-0.0301737692207098,
-0.014338696375489235,
0.01836376078426838,
0.009148732759058475,
-0.012065719813108444,
-0.015361536294221878,
0.006331188138574362,
-0.07300044596195221,
-0.035325851291418076,
-0.02824173867702484,
-0.004006121773272753,
0.06038542091846466,
0.025457343086600304,
0.01679161749780178,
-0.028109148144721985,
-0.0519375242292881,
-0.0291130468249321,
-0.021972110494971275,
-0.02829856425523758,
0.005654030479490757,
0.012340370565652847,
-0.03619715943932533,
-0.026896893978118896,
-0.04330021142959595,
-0.004017960280179977,
0.044133637100458145,
0.004231052007526159,
0.002064620843157172,
0.04917206987738609,
0.03756094351410866,
-0.03871637582778931,
-0.00977380108088255,
0.029700232669711113,
0.02939716912806034,
0.023013891652226448,
-0.0011873936746269464,
-0.05030855908989906,
0.029662350192666054,
-0.015522538684308529,
0.0511040985584259,
-0.048338644206523895,
0.007533971685916185,
0.04125453159213066,
-0.03782612457871437,
0.04000439494848251,
0.010332574136555195,
0.014622818678617477,
0.01678214594721794,
0.003923253156244755,
0.012577139772474766,
-0.03159438073635101,
-0.023525312542915344,
0.071901835501194,
-0.05879433825612068,
-0.029510818421840668,
0.0072972034104168415,
0.0044157314114272594,
0.007775475271046162,
0.003179799998179078,
0.0374283529818058,
0.023847317323088646,
0.04580048471689224,
-0.035363733768463135,
-0.016176018863916397,
-0.04932359978556633,
0.002924090251326561,
-0.03318546339869499,
-0.0007091214647516608,
-0.0013543154345825315,
0.037617769092321396,
-0.04974031448364258,
0.021687988191843033,
0.006856814026832581,
-0.002433979418128729,
-0.010067394003272057,
0.021119745448231697,
0.01264343410730362,
-0.03566679731011391,
-0.009072966873645782,
-0.023184364661574364,
0.04765675216913223,
-0.005384114105254412,
0.0015283402753993869,
-0.013874630443751812,
-0.019737016409635544,
0.09357088804244995,
-0.11205776780843735,
-0.0390952043235302,
-0.00469038262963295,
-0.02452920936048031,
-0.0016194961499422789,
0.04864170774817467,
0.05049797147512436,
0.03335593640804291,
-0.02676430344581604,
0.008040656335651875,
-0.003073254367336631,
-0.0190835352987051,
0.04598990082740784,
0.032996051013469696,
0.058263976126909256,
-0.05799879506230354,
-0.06621939688920975,
-0.012690788134932518,
-0.019329775124788284,
-0.009579651057720184,
0.003835648763924837,
0.05189964175224304,
-0.036954816430807114,
-0.015787718817591667,
-0.033867355436086655,
0.024301912635564804,
0.004569630604237318,
0.027067366987466812,
0.011667948216199875,
-0.04508071020245552,
0.039587683975696564,
-0.011506945826113224,
-0.010465164668858051,
-0.00881252158433199,
0.020892446860671043,
-0.03411359712481499,
-0.010976584628224373,
-0.07353080809116364,
0.0375230610370636,
0.023885199800133705,
-0.021877404302358627,
-0.0036320278886705637,
-0.0020563339348882437,
-0.025514166802167892,
0.023563195019960403,
-0.0005685401847586036,
-0.08690349012613297,
0.028128089383244514,
0.03886790573596954,
0.026480181142687798,
-0.02445344440639019,
-0.003828545566648245,
-0.041898541152477264,
0.05811244621872902,
-0.007377704605460167,
-0.01682949997484684,
0.07390963286161423,
-0.05269518494606018,
-0.010209455154836178,
-0.005829238798469305,
-0.05697595700621605,
-0.06568903475999832,
0.028014441952109337,
-0.00621280400082469,
0.022104701027274132,
-0.03778824210166931,
-0.026972660794854164,
0.05227847024798393,
0.0034899667371064425,
0.06315087527036667,
0.014423932880163193,
0.07678873836994171,
-0.017700808122754097,
-0.01606237143278122,
-0.014594406820833683,
-0.023203305900096893,
0.051407162100076675,
0.038451194763183594,
0.04170912876725197,
0.0005706119118258357,
0.017331449314951897,
-0.00007036462193354964,
-0.04477764666080475,
-0.04849017411470413,
0.0002484588767401874,
-0.03509855270385742,
0.002104871440678835,
0.0038072364404797554,
0.042542554438114166,
-0.005606676451861858,
-0.04754310101270676,
0.017833398655056953,
0.03276875242590904,
-0.02026737853884697,
-0.028942573815584183,
-0.08084221184253693,
-0.05197540670633316,
-0.020475734025239944,
-0.012302488088607788,
-0.031101901084184647,
0.007079376373440027,
-0.06462831050157547,
-0.007912801578640938,
0.025021689012646675,
0.020532559603452682,
-0.007775475271046162,
-0.025703581050038338,
-0.006847343407571316,
0.06421159952878952,
0.011942599900066853,
0.026139235123991966,
-0.0026541741099208593,
-0.016535907983779907,
-0.012368783354759216,
0.0527709499001503,
0.054172616451978683,
0.017662925645709038,
0.020134788006544113,
0.014007220976054668,
0.07451575994491577,
-0.0052183764055371284,
-0.006634251680225134,
-0.008485781028866768,
0.07478094100952148,
0.013685215264558792,
-0.06424948573112488,
0.014158752746880054,
-0.06599210202693939,
-0.016962090507149696,
0.025817230343818665,
-0.03682222589850426,
0.08394861966371536,
0.02935928665101528,
-0.010843994095921516,
-0.021498573943972588,
-0.020040079951286316,
0.021877404302358627,
-0.04394422098994255,
-0.08144833892583847,
-0.059703528881073,
0.03886790573596954,
0.018126990646123886,
0.029757056385278702,
0.036557044833898544,
0.027635611593723297,
0.01610972359776497,
-0.004633558448404074,
0.004749574698507786,
0.016630614176392555,
0.03865955024957657,
0.028052324429154396,
-0.04231525585055351,
0.09311629086732864,
0.01564565859735012,
0.026915835216641426,
-0.021953169256448746,
0.008642047643661499,
-0.012794965878129005,
-0.04216372221708298,
0.005469351075589657,
0.05284671485424042,
-0.02826067991554737,
-0.011667948216199875,
-0.006203332915902138,
0.041481830179691315,
-0.009437589906156063,
0.0032484629191458225,
0.02566569857299328,
-0.045308008790016174,
0.0033052873332053423,
-0.0014857219066470861,
-0.04917206987738609,
-0.01751139387488365,
0.0103041622787714,
-0.01643173024058342,
-0.04428516700863838,
-0.02252141386270523,
0.0072451140731573105,
-0.11220929771661758,
0.023089658468961716,
-0.004645396489650011,
0.013192737475037575,
-0.016744263470172882,
-0.006141773425042629,
-0.03055259957909584,
0.021877404302358627,
-0.03829966112971306,
0.00660110404714942,
0.054778747260570526,
-0.04170912876725197,
0.04322444647550583,
-0.0313291996717453,
0.013798864558339119,
-0.05072527006268501,
0.0025073776487261057,
0.025798289105296135,
-0.020892446860671043,
-0.01874258928000927,
0.04958878085017204,
0.013088558800518513,
-0.009413912892341614,
-0.0475052185356617,
0.0036864846479147673,
0.10698144882917404,
0.02212364226579666,
-0.028961515054106712,
0.01450916938483715,
0.002407934982329607,
0.028412211686372757,
0.0013519477797672153,
0.005796091165393591,
0.07137148082256317,
-0.027218898758292198,
-0.02479439042508602,
-0.0021320998203009367,
-0.01603395864367485,
-0.029321402311325073,
0.023222249001264572,
-0.04905841872096062,
-0.0018053593812510371,
0.031537555158138275,
0.04061052203178406,
0.046823326498270035,
-0.03759882599115372,
0.014158752746880054,
-0.03360217809677124,
-0.026290766894817352,
-0.011506945826113224,
-0.002438714960590005,
0.046444498002529144,
-0.07841770350933075,
-0.049929726868867874,
-0.06307511031627655,
0.031575437635183334,
0.01336321048438549,
0.05038432404398918,
0.021195510402321815,
0.049134187400341034,
0.03555314987897873,
0.017700808122754097,
0.026290766894817352,
0.006766841746866703,
0.04614143446087837,
-0.09228286892175674,
-0.01838270202279091,
0.059021636843681335,
-0.047997698187828064,
-0.05352860689163208,
-0.06481772661209106,
-0.003423671703785658,
0.03901943936944008,
0.026158176362514496,
-0.01915930211544037,
0.023487428203225136,
0.0328066349029541,
-0.05034644156694412,
-0.058263976126909256,
-0.0294350516051054,
-0.010133689269423485,
-0.0049295187927782536,
-0.012188838794827461,
0.03862166777253151,
0.028809983283281326,
0.010645109228789806,
0.018117520958185196,
-0.04636872932314873,
-0.012870731763541698,
0.020854564383625984,
0.017833398655056953,
-0.0018657352775335312,
0.028184914961457253,
-0.006956256460398436,
-0.025400517508387566,
0.034568190574645996,
0.019197184592485428,
0.03466289862990379,
0.02714313380420208,
0.036897994577884674,
-0.0012832849752157927,
-0.025343693792819977,
0.020816680043935776,
-0.05049797147512436,
-0.020797738805413246,
0.011327002197504044,
-0.004635925870388746,
0.004995814058929682,
-0.01597713492810726,
0.01016210112720728,
0.022654004395008087,
0.0016490921843796968,
-0.06807566434144974,
0.004465452861040831,
0.010758757591247559,
-0.005085785873234272,
-0.04598990082740784,
-0.020703032612800598,
0.0006005039322189987,
0.04780828207731247,
0.04974031448364258,
-0.0018988829106092453,
-0.011099704541265965,
0.007046228740364313,
-0.01792810671031475,
-0.002230358775705099,
0.013164324685931206,
-0.0013910145498812199,
0.07834193855524063,
0.025703581050038338,
0.024150380864739418,
-0.01983172446489334,
-0.01318326685577631,
-0.05580158531665802,
-0.010654579848051071,
0.052505768835544586,
0.02373366802930832,
-0.00593341700732708,
-0.041822776198387146,
-0.002999856136739254,
-0.07265949994325638,
0.021631164476275444,
0.0336400605738163,
-0.005848180502653122,
-0.04496706277132034,
-0.04061052203178406,
0.02183951996266842,
-0.0017580055864527822,
0.06629516184329987,
-0.021138686686754227,
0.031878501176834106,
0.02937822788953781,
-0.015418360941112041,
-0.0321626253426075,
0.01716097630560398,
0.03443560004234314,
0.008608900010585785,
0.060915783047676086,
-0.03593197837471962,
-0.07065170258283615,
-0.011923658661544323,
-0.00899720098823309,
-0.06129461154341698,
-0.028904691338539124,
0.07478094100952148,
-0.023525312542915344,
0.05038432404398918,
0.028885750100016594,
-0.013543154112994671,
0.006799989379942417,
-0.04754310101270676,
-0.03174591064453125,
0.018458466976881027,
-0.015257357619702816,
0.019415011629462242,
-0.009508620016276836,
0.0374283529818058,
0.052164822816848755,
-0.02174481377005577,
-0.04170912876725197,
0.0018574483692646027,
0.044095754623413086,
0.02293812669813633,
-0.014404991641640663,
0.09394971281290054,
0.07250796258449554,
-0.027256783097982407,
0.021669046953320503,
-0.010578813962638378,
0.020437851548194885,
-0.06068848446011543,
0.017861811444163322,
0.016242314130067825,
0.02937822788953781,
0.0038995761424303055,
0.043072912842035294,
0.0190835352987051,
0.013192737475037575,
0.031537555158138275,
0.003454451449215412,
-0.008755696937441826,
-0.06337817758321762,
-0.006965727545320988,
0.01869523525238037,
0.05780938267707825,
0.01357156690210104,
0.04163336008787155,
0.010635638609528542,
-0.0007168164593167603,
0.01547518465667963,
0.023942023515701294,
0.0004454206209629774,
0.049929726868867874,
0.04288350045681,
-0.0366896353662014,
0.02487015724182129,
-0.01726515404880047,
0.021612223237752914,
-0.019793841987848282,
-0.007680768147110939,
-0.04401998594403267,
-0.008755696937441826,
-0.03055259957909584,
-0.00526572996750474,
-0.009470737539231777,
0.10107170790433884,
0.004806399345397949,
-0.061673443764448166,
-0.004060578532516956,
0.013581037521362305,
0.03665175288915634,
-0.014423932880163193,
0.038261778652668,
0.0044323052279651165,
0.03220050781965256,
-0.014243989251554012,
0.04216372221708298,
-0.022824477404356003,
-0.0006333555793389678,
-0.023430604487657547,
0.11592182517051697,
-0.054475679993629456,
-0.020362084731459618,
-0.014376579783856869,
-0.037731416523456573,
0.010209455154836178,
0.017132563516497612,
0.010664050467312336,
0.042580436915159225,
-0.0536043755710125,
0.00786544755101204,
0.04970243200659752,
0.0091960858553648,
-0.03165120631456375,
-0.008272688835859299,
0.034984905272722244,
-0.020532559603452682,
0.07894806563854218,
-0.016592731699347496,
-0.02058938331902027,
-0.001182066393084824,
0.04462611675262451,
-0.02172587253153324,
-0.0685681402683258,
0.035287968814373016,
0.02441556192934513,
-0.03852695971727371,
-0.09538926929235458,
0.060915783047676086,
-0.034984905272722244,
-0.0018527130596339703,
0.04640661180019379,
-0.0458383709192276,
0.0781904086470604,
-0.017293566837906837,
0.026252884417772293,
0.005497762933373451,
0.0028222796972841024,
0.025343693792819977,
-0.03566679731011391,
0.020418910309672356,
-0.019329775124788284,
-0.03138602524995804,
0.010550401173532009,
0.007136200554668903,
-0.04773251712322235,
-0.03865955024957657,
-0.06830295920372009,
0.040269576013088226,
-0.02182057872414589,
-0.039246734231710434,
0.05307401344180107,
-0.014632289297878742,
-0.0916767418384552,
-0.04826287925243378,
-0.051823876798152924,
0.030287418514490128,
-0.008732019923627377,
0.040307458490133286,
0.006724223494529724,
-0.03470078110694885,
-0.024623917415738106,
0.0937981829047203,
0.004564895294606686,
-0.03435983508825302,
0.02403673157095909,
0.043338093906641006,
0.012463490478694439,
-0.03257933631539345,
0.02057044208049774,
-0.028412211686372757,
0.052164822816848755,
0.06364335864782333,
0.001923743519000709,
0.04405787214636803,
-0.01322114933282137,
-0.056369829922914505,
0.021915286779403687,
0.014869057573378086,
-0.009735917672514915,
0.06042330339550972,
0.03445454314351082,
0.00837686751037836,
-0.015418360941112041,
-0.059779293835163116,
-0.023998849093914032,
-0.038830023258924484,
0.003738573519513011,
-0.008362661115825176,
-0.01983172446489334,
0.05246788635849953,
-0.014755409210920334,
0.0626583993434906,
0.05496815964579582,
0.09296476095914841,
-0.011393297463655472,
-0.03320440649986267,
0.00593341700732708,
-0.07459152489900589,
0.07300044596195221,
0.03792083263397217,
-0.020968211814761162,
0.03409465402364731,
-0.010048452764749527,
0.01761557161808014,
0.041103001683950424,
0.02098715491592884,
-0.003073254367336631,
-0.03716317191720009,
-0.026196060702204704,
-0.02295706793665886,
0.02185846120119095,
-0.0006126383086666465,
0.036121394485235214,
-0.06523443758487701,
-0.04064840450882912,
0.020911388099193573,
-0.02142280898988247,
-0.025400517508387566,
-0.027332548052072525,
-0.018827825784683228,
0.015484655275940895,
-0.003104034112766385,
-0.06565114855766296,
-0.006738429889082909,
0.00917240884155035,
-0.012652905657887459,
0.016242314130067825,
0.0366896353662014,
0.028582686558365822,
-0.00821112934499979,
-0.01717991754412651,
0.04125453159213066,
0.06315087527036667,
-0.04125453159213066,
-0.08879763633012772,
0.029283519834280014,
-0.004122138489037752,
0.029169870540499687,
-0.0412166491150856,
-0.05777150020003319,
0.0019959579221904278,
0.017681866884231567,
-0.009674358181655407,
0.00840054452419281,
0.05807456374168396,
0.015503597445786,
0.027275724336504936,
0.013723098672926426,
-0.0007943580858409405
] |
21,393 | tfields.core | Tensors |
Set of tensors with the same basis.
Args:
tensors: np.ndarray or AbstractNdarray subclass
**kwargs:
name: optional - custom name, can be anything
Examples:
>>> import numpy as np
>>> import tfields
Initialize a scalar range
>>> scalars = tfields.Tensors([0, 1, 2])
>>> scalars.rank == 0
True
Initialize vectors
>>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]])
>>> vectors.rank == 1
True
>>> vectors.dim == 3
True
>>> assert vectors.coord_sys == 'cartesian'
Initialize the Levi-Zivita Tensor
>>> matrices = tfields.Tensors([[[0, 0, 0], [0, 0, 1], [0, -1, 0]],
... [[0, 0, -1], [0, 0, 0], [1, 0, 0]],
... [[0, 1, 0], [-1, 0, 0], [0, 0, 0]]])
>>> matrices.shape == (3, 3, 3)
True
>>> matrices.rank == 2
True
>>> matrices.dim == 3
True
Initializing in different start coordinate system
>>> cyl = tfields.Tensors([[5, np.arctan(4. / 3.), 42]],
... coord_sys='cylinder')
>>> assert cyl.coord_sys == 'cylinder'
>>> cyl.transform('cartesian')
>>> assert cyl.coord_sys == 'cartesian'
>>> cart = cyl
>>> assert round(cart[0, 0], 10) == 3.
>>> assert round(cart[0, 1], 10) == 4.
>>> assert cart[0, 2] == 42
Initialize with copy constructor keeps the coordinate system
>>> with vectors.tmp_transform('cylinder'):
... vect_cyl = tfields.Tensors(vectors)
... assert vect_cyl.coord_sys == vectors.coord_sys
>>> assert vect_cyl.coord_sys == 'cylinder'
You can demand a special dimension.
>>> _ = tfields.Tensors([[1, 2, 3]], dim=3)
>>> _ = tfields.Tensors([[1, 2, 3]], dim=2) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
ValueError: Incorrect dimension: 3 given, 2 demanded.
The dimension argument (dim) becomes necessary if you want to initialize
an empty array
>>> _ = tfields.Tensors([]) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
ValueError: Empty tensors need dimension parameter 'dim'.
>>> tfields.Tensors([], dim=7)
Tensors([], shape=(0, 7), dtype=float64)
| class Tensors(AbstractNdarray): # pylint: disable=too-many-public-methods
"""
Set of tensors with the same basis.
Args:
tensors: np.ndarray or AbstractNdarray subclass
**kwargs:
name: optional - custom name, can be anything
Examples:
>>> import numpy as np
>>> import tfields
Initialize a scalar range
>>> scalars = tfields.Tensors([0, 1, 2])
>>> scalars.rank == 0
True
Initialize vectors
>>> vectors = tfields.Tensors([[0, 0, 0], [0, 0, 1], [0, -1, 0]])
>>> vectors.rank == 1
True
>>> vectors.dim == 3
True
>>> assert vectors.coord_sys == 'cartesian'
Initialize the Levi-Zivita Tensor
>>> matrices = tfields.Tensors([[[0, 0, 0], [0, 0, 1], [0, -1, 0]],
... [[0, 0, -1], [0, 0, 0], [1, 0, 0]],
... [[0, 1, 0], [-1, 0, 0], [0, 0, 0]]])
>>> matrices.shape == (3, 3, 3)
True
>>> matrices.rank == 2
True
>>> matrices.dim == 3
True
Initializing in different start coordinate system
>>> cyl = tfields.Tensors([[5, np.arctan(4. / 3.), 42]],
... coord_sys='cylinder')
>>> assert cyl.coord_sys == 'cylinder'
>>> cyl.transform('cartesian')
>>> assert cyl.coord_sys == 'cartesian'
>>> cart = cyl
>>> assert round(cart[0, 0], 10) == 3.
>>> assert round(cart[0, 1], 10) == 4.
>>> assert cart[0, 2] == 42
Initialize with copy constructor keeps the coordinate system
>>> with vectors.tmp_transform('cylinder'):
... vect_cyl = tfields.Tensors(vectors)
... assert vect_cyl.coord_sys == vectors.coord_sys
>>> assert vect_cyl.coord_sys == 'cylinder'
You can demand a special dimension.
>>> _ = tfields.Tensors([[1, 2, 3]], dim=3)
>>> _ = tfields.Tensors([[1, 2, 3]], dim=2) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
ValueError: Incorrect dimension: 3 given, 2 demanded.
The dimension argument (dim) becomes necessary if you want to initialize
an empty array
>>> _ = tfields.Tensors([]) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
ValueError: Empty tensors need dimension parameter 'dim'.
>>> tfields.Tensors([], dim=7)
Tensors([], shape=(0, 7), dtype=float64)
"""
__slots__ = ["coord_sys", "name"]
__slot_defaults__ = ["cartesian"]
__slot_setters__ = [tfields.bases.get_coord_system_name]
def __new__(cls, tensors, **kwargs): # pylint: disable=too-many-branches
dtype = kwargs.pop("dtype", None)
order = kwargs.pop("order", None)
dim_ = kwargs.pop("dim", None)
# copy constructor extracts the kwargs from tensors
if issubclass(type(tensors), Tensors):
if dim_ is not None:
dim_ = tensors.dim
coord_sys = kwargs.pop("coord_sys", tensors.coord_sys)
tensors = tensors.copy()
tensors.transform(coord_sys)
kwargs["coord_sys"] = coord_sys
kwargs["name"] = kwargs.pop("name", tensors.name)
if dtype is None:
dtype = tensors.dtype
else:
if dtype is None:
if hasattr(tensors, "dtype"):
dtype = tensors.dtype
else:
dtype = np.float64
# demand iterable structure
try:
len(tensors)
except TypeError as err:
raise TypeError(
"Iterable structure necessary." " Got {tensors}".format(**locals())
) from err
# process empty inputs
if len(tensors) == 0:
if issubclass(type(tensors), tfields.Tensors):
tensors = np.empty(tensors.shape, dtype=tensors.dtype)
elif dim_ is not None:
tensors = np.empty((0, dim_))
if issubclass(type(tensors), np.ndarray):
# np.empty
pass
elif hasattr(tensors, "shape"):
dim_ = dim_(tensors)
else:
raise ValueError("Empty tensors need dimension parameter 'dim'.")
tensors = np.asarray(tensors, dtype=dtype, order=order)
obj = tensors.view(cls)
if dim_ is not None:
if dim_ != obj.dim:
raise ValueError(
"Incorrect dimension: {obj.dim} given,"
" {dim_} demanded.".format(**locals())
)
# update kwargs with defaults from slots
cls._update_slot_kwargs(kwargs)
# set kwargs to slots attributes
# pylint:disable=consider-using-dict-items
for attr in kwargs:
if attr not in cls._iter_slots():
raise AttributeError(
"Keyword argument {attr} not accepted "
"for class {cls}".format(**locals())
)
setattr(obj, attr, kwargs[attr])
return obj
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)
@classmethod
def _load_txt(cls, path, set_header: bool = False, **load_kwargs):
"""
Factory method
Given a path to a txt file, construct the object
Args:
path: see :meth:`Tensors.load`
set_header: if True, set the header to the `name` attribute
(the type of the name attribute will be a list of strings
(header separated by delimiter)
)
**loadkwargs: see :meth:`np.loadtxt`
"""
load_txt_keys = [
k
for k, v in inspect.signature(np.loadtxt).parameters.items()
if v.default is not inspect._empty # pylint:disable=protected-access
]
load_txt_kwargs = {}
for key in load_txt_keys:
if key in load_kwargs:
load_txt_kwargs[key] = load_kwargs.pop(key)
# use the same defaults as np.savetxt
load_txt_kwargs.setdefault("comments", "# ") # default is "#"
comments = load_txt_kwargs.get("comments")
load_txt_kwargs.setdefault("delimiter", " ")
skiprows = 0
header = []
with open(rna.path.resolve(path)) as file_:
while True:
line = file_.readline()
if line.startswith(comments):
header.append(line.lstrip(comments).rstrip("\n"))
else:
file_.seek(0)
break
skiprows += 1
load_txt_kwargs["skiprows"] = max(skiprows, load_txt_kwargs.pop("skiprows", 0))
arr = np.loadtxt(path, **load_txt_kwargs)
obj = cls(arr, **load_kwargs)
i = 0
for key, line in zip(cls._iter_slots(), header):
slot, rest = line.split(": ")
tpe, val_str = rest.split(" = ")
if tpe == "NoneType":
val = None
else:
tpe = __builtins__[tpe]
val = tpe(val_str)
setattr(obj, slot, val)
i += 1
header = header[i:]
if set_header:
obj.name = (
obj.name,
header,
) # pylint:disable=attribute-defined-outside-init
return obj
def _save_txt(self, path, **kwargs):
"""
Save as text file.
Args:
**kwargs passed t | (tensors, **kwargs) | [
-0.0034083635546267033,
-0.052120406180620193,
-0.008226484060287476,
0.008696403354406357,
-0.0210709385573864,
0.011649351567029953,
-0.08994598686695099,
0.016012057662010193,
0.014039557427167892,
0.019748203456401825,
0.011133020743727684,
0.025665702298283577,
-0.028055908158421516,
0.019991865381598473,
-0.014573292806744576,
0.020003467798233032,
0.013795895501971245,
0.0255728792399168,
-0.03921793773770332,
-0.029842760413885117,
-0.0023249390069395304,
-0.004641175735741854,
0.018738748505711555,
0.027243701741099358,
0.04611008241772652,
-0.00007161189569160342,
0.04643496498465538,
-0.021105747669935226,
0.004893539939075708,
-0.013946733437478542,
-0.07286646217107773,
-0.0019855531863868237,
0.004150951746851206,
0.043534230440855026,
-0.0034373709931969643,
-0.09092063456773758,
0.013146130368113518,
0.01584961637854576,
-0.01767127774655819,
0.009978528134524822,
0.03334685042500496,
-0.08377322554588318,
-0.014213601127266884,
-0.05977834761142731,
-0.00021519827714655548,
0.059639111161231995,
0.02798628993332386,
-0.008058241568505764,
-0.08669716864824295,
-0.017102733254432678,
0.008562969975173473,
-0.03710620105266571,
0.014631306752562523,
0.020711246877908707,
-0.023472746834158897,
0.0765329897403717,
0.03835931792855263,
0.04504261165857315,
-0.04230431839823723,
-0.005047278944402933,
-0.018506688997149467,
0.01070371177047491,
0.008539763279259205,
-0.02121017314493656,
-0.035017672926187515,
-0.00782038178294897,
-0.011196836829185486,
-0.007762366905808449,
0.01960896886885166,
0.024482203647494316,
-0.0007280844729393721,
-0.0052996426820755005,
0.04710793495178223,
-0.03724543750286102,
0.04761846363544464,
0.038800232112407684,
-0.017508836463093758,
0.011243248358368874,
0.007785572670400143,
-0.032024115324020386,
-0.04703831672668457,
0.041933026164770126,
-0.004580260254442692,
-0.019365306943655014,
-0.021163761615753174,
-0.024064498022198677,
-0.014851762913167477,
0.01987583562731743,
-0.0389394648373127,
-0.06701858341693878,
-0.043162934482097626,
0.003936297260224819,
0.005702844820916653,
0.012798042967915535,
-0.04998546466231346,
-0.03833611309528351,
0.006955962628126144,
-0.06441952288150787,
-0.02619943767786026,
0.02281137928366661,
-0.005462083965539932,
-0.01670823246240616,
-0.03255784884095192,
0.03508729115128517,
-0.0248302910476923,
-0.009212734177708626,
-0.05244528874754906,
0.013494218699634075,
-0.003469279035925865,
-0.006555661093443632,
-0.015431909821927547,
0.09597951918840408,
0.048500288277864456,
0.05536922812461853,
0.023495953530073166,
-0.05504434555768967,
-0.017021512612700462,
0.01966698281466961,
-0.033230818808078766,
-0.009700058028101921,
0.022915806621313095,
0.042002640664577484,
-0.023124659433960915,
0.060799404978752136,
0.003147297305986285,
-0.003338746028020978,
0.04905723035335541,
0.021523453295230865,
0.04174737632274628,
-0.07941052317619324,
-0.024250144138932228,
-0.05634387582540512,
-0.016174498945474625,
0.05801469832658768,
0.042397141456604004,
0.02835758402943611,
0.057643406093120575,
-0.013958336785435677,
-0.08335551619529724,
0.016371747478842735,
0.06762193143367767,
0.01091256458312273,
0.014306425116956234,
-0.0034054627176374197,
-0.022544512525200844,
0.004348201677203178,
0.009073498658835888,
-0.05439458042383194,
-0.02324068918824196,
-0.02285779081285,
-0.059221405535936356,
-0.008185873739421368,
0.007669543381780386,
0.04901081696152687,
-0.03805764392018318,
-0.04033181816339493,
-0.03135114163160324,
-0.07843587547540665,
-0.011666756123304367,
0.059453465044498444,
-0.04947493597865105,
-0.01863432116806507,
-0.0017694482812657952,
0.013157733716070652,
-0.023333512246608734,
0.05017111077904701,
0.003048672340810299,
-0.07583681493997574,
-0.0600104033946991,
0.012473160400986671,
0.026106614619493484,
-0.05179552361369133,
0.009874101728200912,
0.022706953808665276,
-0.020363159477710724,
0.02798628993332386,
-0.007379469927400351,
-0.0027585988864302635,
-0.019550953060388565,
0.024273350834846497,
0.0005652807303704321,
-0.005897194147109985,
-0.04242034628987312,
-0.018587909638881683,
0.006607874296605587,
0.023971673101186752,
-0.01090676337480545,
0.0015156340086832643,
0.08214881271123886,
0.06130993366241455,
0.008934264071285725,
0.025062350556254387,
-0.005186513997614384,
0.013633454218506813,
0.07059228420257568,
0.02796308510005474,
-0.029494673013687134,
0.021674292162060738,
0.040795937180519104,
0.06841093301773071,
-0.03873061388731003,
-0.008023432455956936,
0.07931769639253616,
-0.012368733994662762,
-0.041352879256010056,
0.004121944308280945,
0.05652952194213867,
-0.016754645854234695,
-0.03367173299193382,
0.018564702942967415,
0.017706086859107018,
-0.03863779082894325,
-0.007681146264076233,
0.03232578933238983,
0.060799404978752136,
-0.011063403449952602,
-0.020096290856599808,
-0.008789227344095707,
-0.010819741524755955,
-0.024296555668115616,
0.13663621246814728,
0.03873061388731003,
-0.06195969879627228,
0.01666182093322277,
-0.02940184995532036,
-0.031838465481996536,
-0.0083483150228858,
-0.019318895414471626,
0.006567263975739479,
-0.011974234133958817,
0.011243248358368874,
0.014538483694195747,
-0.03436790779232979,
-0.005624525249004364,
0.034599967300891876,
0.002056621015071869,
0.006114749237895012,
-0.03330043703317642,
0.02183673344552517,
-0.014039557427167892,
-0.05871087685227394,
-0.006236580200493336,
-0.04081914201378822,
-0.03984449431300163,
-0.0067587122321128845,
0.030237261205911636,
0.014724130742251873,
0.06409464031457901,
-0.04246675968170166,
-0.020281938835978508,
0.0021131853573024273,
0.011440498754382133,
-0.010732719674706459,
0.03116549551486969,
-0.010773329995572567,
-0.03928755596280098,
0.06873581558465958,
-0.04109761118888855,
0.03190808370709419,
-0.03508729115128517,
0.0006628179107792675,
-0.04817540571093559,
0.015327483415603638,
0.06372334808111191,
0.0028992844745516777,
-0.02819514460861683,
0.04026219993829727,
0.008533962070941925,
-0.04557634890079498,
0.014538483694195747,
0.038196876645088196,
0.1335730403661728,
-0.0325346440076828,
-0.00802923459559679,
-0.0043743085116147995,
-0.02935543842613697,
0.043162934482097626,
-0.011260652914643288,
0.03311479091644287,
0.011492711491882801,
-0.013157733716070652,
-0.017787307500839233,
-0.02363518811762333,
-0.03079420141875744,
0.03852175921201706,
-0.04246675968170166,
-0.04035502299666405,
-0.05662234500050545,
-0.031072672456502914,
-0.027870262041687965,
0.043139729648828506,
0.014410851523280144,
0.007721756584942341,
-0.026942025870084763,
0.039589229971170425,
-0.04086555540561676,
-0.12048492580652237,
0.06233099102973938,
-0.0014423904940485954,
-0.04014617204666138,
0.00833671260625124,
-0.00793060939759016,
0.04546031728386879,
-0.011330271139740944,
0.007686947472393513,
-0.07866793125867844,
0.00023912933829706162,
0.003216915065422654,
0.02898414433002472,
0.017613261938095093,
0.040378231555223465,
0.005224223714321852,
-0.013331777416169643,
0.03935717046260834,
0.04854670166969299,
0.034599967300891876,
0.016012057662010193,
-0.008301903493702412,
0.04840746521949768,
0.05458023026585579,
0.0016983803361654282,
-0.0166966300457716,
-0.05736493319272995,
-0.014573292806744576,
0.003100885543972254,
-0.052259642630815506,
0.05411611124873161,
-0.04283805191516876,
-0.04035502299666405,
0.015455115586519241,
0.0421418771147728,
-0.007895800285041332,
0.02956429123878479,
0.015478321351110935,
0.0012930026277899742,
0.00625978596508503,
0.035992320626974106,
0.018959203734993935,
0.010454248636960983,
-0.014051159843802452,
0.022521305829286575,
0.009073498658835888,
-0.031026260927319527,
0.051331404596567154,
0.0047659073024988174,
-0.04701511189341545,
0.03220976144075394,
-0.021326202899217606,
0.08757898956537247,
0.04332537576556206,
0.016023660078644753,
-0.0007810228853486478,
-0.0030399702955037355,
0.02160467393696308,
0.009595631621778011,
0.023902056738734245,
-0.024737467989325523,
0.022521305829286575,
-0.03232578933238983,
-0.03313799574971199,
-0.030492525547742844,
-0.024157321080565453,
-0.0010718215489760041,
-0.000638161669485271,
0.018761953338980675,
-0.02401808463037014,
0.00824968982487917,
-0.030654966831207275,
0.008974873460829258,
-0.009647844359278679,
0.004580260254442692,
-0.05351275950670242,
-0.004040723666548729,
0.02124498225748539,
0.013157733716070652,
-0.012682013213634491,
-0.039960525929927826,
0.03278990834951401,
-0.012426748871803284,
-0.05281658098101616,
0.03019084967672825,
-0.030840614810585976,
0.06010322645306587,
0.005198116879910231,
-0.018796762451529503,
0.0511457584798336,
0.014909777790307999,
0.02914658561348915,
-0.007611528504639864,
-0.030701378360390663,
-0.004240874666720629,
-0.019504541531205177,
-0.02438937872648239,
-0.008626786060631275,
-0.03638681769371033,
0.0024351670872420073,
-0.05402328819036484,
0.04351102560758591,
-0.02775423228740692,
-0.03195449709892273,
-0.07337699085474014,
-0.06780757755041122,
0.002014560392126441,
0.06493005156517029,
-0.007176418323069811,
0.0068283299915492535,
0.08182393014431,
-0.0024351670872420073,
0.004496139008551836,
0.06349128484725952,
0.008684800006449223,
0.07838945835828781,
0.02162788063287735,
-0.008470145985484123,
0.025108762085437775,
0.027939878404140472,
-0.04569237679243088,
-0.015524733811616898,
0.05815393477678299,
0.025456849485635757,
-0.050031878054142,
0.09296275675296783,
0.013041703961789608,
0.02278817445039749,
0.005467885173857212,
0.028125526383519173,
-0.04007655382156372,
-0.009427388198673725,
0.03708299621939659,
0.00670069782063365,
-0.04919646307826042,
-0.009885705076158047,
-0.03227937966585159,
-0.03548178821802139,
0.0004869608674198389,
-0.03455355390906334,
-0.0008992278599180281,
-0.047363199293613434,
-0.019690189510583878,
0.022730158641934395,
0.03815046697854996,
-0.018529895693063736,
0.039426788687705994,
-0.04086555540561676,
-0.06627599149942398,
-0.004095837939530611,
-0.010790733620524406,
0.020351557061076164,
-0.08233445882797241,
-0.011974234133958817,
0.05736493319272995,
0.0807100459933281,
0.03411264345049858,
-0.01387711614370346,
0.022498100996017456,
-0.02596738003194332,
0.03812725841999054,
-0.07546552270650864,
-0.007710153702646494,
-0.020363159477710724,
-0.028844907879829407,
0.0439983494579792,
0.030631760135293007,
-0.058850109577178955,
0.04722396656870842,
-0.06952481716871262,
0.011475307866930962,
-0.02025873214006424,
-0.026501113548874855,
-0.041979435831308365,
0.047896936535835266,
0.020363159477710724,
-0.014654512517154217,
-0.04186340793967247,
-0.04132967069745064,
0.024319762364029884,
0.031095879152417183,
0.022486496716737747,
-0.06493005156517029,
-0.06502287089824677,
0.030330084264278412,
-0.07815740257501602,
0.01746242493391037,
-0.002337992424145341,
0.03993731737136841,
0.058850109577178955,
-0.0011399888899177313,
0.0013241855194792151,
0.05068163946270943,
-0.012693616561591625,
-0.043580640107393265,
0.00014403961540665478,
0.016731439158320427,
0.034646376967430115,
-0.038800232112407684,
0.03905549645423889,
0.014027954079210758,
0.01886638067662716,
-0.015536336228251457,
0.007240234408527613,
0.021952761337161064,
-0.0007132181781344116,
-0.02201077714562416,
-0.008371520787477493,
0.020757658407092094,
-0.04601725935935974,
0.022706953808665276,
0.02740614302456379,
-0.01142309419810772,
-0.061124287545681,
-0.040030140429735184,
-0.03777917101979256,
-0.010558675043284893,
-0.03594590723514557,
-0.003907289821654558,
0.003550499677658081,
-0.0441143773496151,
0.030608555302023888,
-0.04112081974744797,
0.0011610192013904452,
0.0030109628569334745,
0.03826649487018585,
-0.020560409873723984,
0.00882983673363924,
-0.011034395545721054,
0.02935543842613697,
-0.018738748505711555,
-0.036224376410245895,
0.09115269780158997,
0.06966405361890793,
0.012647204101085663,
-0.04840746521949768,
-0.02385564334690571,
0.013134527951478958,
0.023542365059256554,
0.032465025782585144,
0.04012296721339226,
-0.034043025225400925,
0.08252010494470596,
0.02638508565723896,
0.0118930134922266,
0.005731852259486914,
0.027638202533125877,
-0.036224376410245895,
-0.021488644182682037,
-0.02457502670586109,
0.020096290856599808,
-0.01032661646604538,
0.03773276135325432,
-0.0073156533762812614,
0.025433644652366638,
-0.040169376879930496,
0.04327896609902382,
-0.012798042967915535,
-0.025688908994197845,
-0.011457903310656548,
-0.02124498225748539,
-0.04009975865483284,
-0.0024032588116824627,
0.02321748249232769,
0.01122584380209446,
0.03578346595168114,
0.031443968415260315,
0.03494805470108986,
0.018146997317671776,
0.04678305238485336,
-0.034066230058670044,
0.014376042410731316,
-0.024087702855467796,
-0.03118870221078396,
0.03469279035925865,
0.01001333724707365,
-0.01825142465531826,
0.03311479091644287,
-0.018390659242868423,
0.021755512803792953,
0.0026976834051311016,
0.030631760135293007,
-0.05235246568918228,
-0.0850263461470604,
0.014201998710632324,
0.046968698501586914,
-0.04499620199203491,
-0.02441258542239666,
0.04123684763908386,
-0.00297325337305665,
-0.007008175831288099,
0.043371789157390594,
0.009218535386025906,
-0.010842947289347649,
0.026477908715605736,
0.08818234503269196,
-0.02144223265349865,
0.008702204562723637,
-0.004417819436639547,
0.031467173248529434,
-0.04260599613189697,
-0.02385564334690571,
0.01727677695453167,
-0.04724717140197754,
-0.05996399372816086,
0.03227937966585159,
-0.05458023026585579,
0.006770315580070019,
-0.009044491685926914,
-0.06919993460178375,
-0.03374134749174118,
0.034043025225400925,
0.05495152249932289,
-0.019365306943655014,
0.05281658098101616,
-0.00971166044473648,
0.030237261205911636,
-0.06738987565040588,
-0.0005315596936270595,
-0.056065406650304794,
-0.02180192433297634,
0.07091716676950455,
0.04979981854557991,
-0.026477908715605736,
0.0029993599746376276,
-0.006004521157592535,
-0.0017563949804753065,
-0.01211346872150898,
-0.06766834855079651,
-0.009056094102561474,
-0.0036694298032671213,
-0.07927128672599792,
0.010494858957827091,
-0.047200758010149,
0.007159013766795397,
-0.058061111718416214,
0.007414278574287891,
-0.02422693744301796,
0.004400414880365133,
-0.05035675689578056,
-0.04727037623524666,
0.00649764621630311,
0.01060508657246828,
0.018715541809797287,
-0.01162034459412098,
-0.003089282661676407,
0.02284618839621544,
0.03174564242362976,
-0.006143756676465273,
-0.06627599149942398,
0.006660087499767542,
-0.0210709385573864,
0.054487403482198715,
0.03608514368534088,
-0.020699644461274147,
0.04738640785217285,
-0.007524506654590368,
-0.03149037808179855,
0.027939878404140472,
0.03355570137500763,
-0.018390659242868423,
-0.0337645560503006,
0.045158643275499344,
0.04699190706014633,
0.007617330178618431,
-0.024366173893213272,
0.03214014321565628,
-0.02940184995532036,
0.018738748505711555,
-0.0063584111630916595,
-0.0067587122321128845,
0.013807497918605804,
0.03297555446624756,
0.051517054438591,
-0.07212387025356293,
0.02879849635064602,
0.041561730206012726,
-0.017590057104825974,
0.07671863585710526,
0.012345528230071068,
0.06400181353092194,
-0.02201077714562416,
0.03237220272421837,
-0.022556114941835403,
0.029053760692477226,
0.05035675689578056,
0.006166962441056967,
0.005009569227695465,
-0.017810512334108353,
-0.00550269428640604,
-0.023252291604876518,
0.02205718867480755,
0.0020711247343569994,
-0.061217110604047775,
0.002369900466874242,
0.04146890714764595,
0.07022099196910858,
0.018994012847542763,
-0.010198984295129776,
-0.005203918553888798,
0.01062829326838255,
-0.022915806621313095,
0.003614315763115883,
0.013146130368113518,
-0.006770315580070019,
-0.0257585272192955,
-0.061402756720781326,
0.00680512422695756,
-0.010297609493136406,
0.044949788600206375,
-0.04859311133623123,
0.012461557053029537,
0.000900678220205009,
-0.03724543750286102,
0.018761953338980675,
0.03935717046260834,
0.04084234684705734,
-0.03694375976920128,
0.013656659983098507,
0.0037274444475769997,
0.05082087591290474,
0.019342100247740746,
0.004565756767988205,
0.00516330823302269,
0.026060203090310097,
0.03775596618652344,
0.04727037623524666,
0.07124204933643341,
-0.028891319409012794,
0.01220629271119833,
-0.04808258265256882,
-0.021906349807977676,
-0.008737013675272465,
-0.019376909360289574,
0.034066230058670044,
0.02580493874847889,
-0.010819741524755955,
-0.021117350086569786,
-0.051702700555324554,
-0.041933026164770126,
0.0650692880153656,
-0.03214014321565628,
-0.03332364186644554,
0.09551540017127991,
-0.037616729736328125,
-0.001365520991384983,
-0.031119083985686302,
0.026872407644987106,
0.002045018132776022,
-0.008661594241857529,
0.019724996760487556,
0.02422693744301796,
-0.0013241855194792151,
0.044740937650203705,
0.06762193143367767,
-0.004528047051280737,
-0.05499793589115143,
-0.012937277555465698,
0.04738640785217285,
-0.060196053236722946,
0.04761846363544464,
-0.07407316565513611,
-0.025897761806845665,
-0.09184887260198593,
-0.0345071442425251,
-0.03160640969872475,
-0.004449727479368448,
0.04956775903701782,
-0.012937277555465698,
0.009415785782039165,
0.013935131020843983,
0.024667849764227867
] |
21,397 | tfields.core | __new__ | null | def __new__(cls, tensors, **kwargs): # pylint: disable=too-many-branches
dtype = kwargs.pop("dtype", None)
order = kwargs.pop("order", None)
dim_ = kwargs.pop("dim", None)
# copy constructor extracts the kwargs from tensors
if issubclass(type(tensors), Tensors):
if dim_ is not None:
dim_ = tensors.dim
coord_sys = kwargs.pop("coord_sys", tensors.coord_sys)
tensors = tensors.copy()
tensors.transform(coord_sys)
kwargs["coord_sys"] = coord_sys
kwargs["name"] = kwargs.pop("name", tensors.name)
if dtype is None:
dtype = tensors.dtype
else:
if dtype is None:
if hasattr(tensors, "dtype"):
dtype = tensors.dtype
else:
dtype = np.float64
# demand iterable structure
try:
len(tensors)
except TypeError as err:
raise TypeError(
"Iterable structure necessary." " Got {tensors}".format(**locals())
) from err
# process empty inputs
if len(tensors) == 0:
if issubclass(type(tensors), tfields.Tensors):
tensors = np.empty(tensors.shape, dtype=tensors.dtype)
elif dim_ is not None:
tensors = np.empty((0, dim_))
if issubclass(type(tensors), np.ndarray):
# np.empty
pass
elif hasattr(tensors, "shape"):
dim_ = dim_(tensors)
else:
raise ValueError("Empty tensors need dimension parameter 'dim'.")
tensors = np.asarray(tensors, dtype=dtype, order=order)
obj = tensors.view(cls)
if dim_ is not None:
if dim_ != obj.dim:
raise ValueError(
"Incorrect dimension: {obj.dim} given,"
" {dim_} demanded.".format(**locals())
)
# update kwargs with defaults from slots
cls._update_slot_kwargs(kwargs)
# set kwargs to slots attributes
# pylint:disable=consider-using-dict-items
for attr in kwargs:
if attr not in cls._iter_slots():
raise AttributeError(
"Keyword argument {attr} not accepted "
"for class {cls}".format(**locals())
)
setattr(obj, attr, kwargs[attr])
return obj
| (cls, tensors, **kwargs) | [
-0.006876517552882433,
-0.06809280812740326,
-0.014812528155744076,
-0.012866728939116001,
-0.03579864278435707,
0.044946957379579544,
-0.04592495039105415,
0.014720841310918331,
0.0035019302740693092,
0.03539114445447922,
0.009051534347236156,
0.0782802402973175,
-0.06340658664703369,
0.012469418346881866,
0.008435195311903954,
0.047065943479537964,
0.018052132800221443,
0.001955987187102437,
-0.0018884955206885934,
-0.003293087938800454,
0.02636507898569107,
-0.007773011922836304,
0.010004059411585331,
0.03993473947048187,
0.022595727816224098,
0.021760357543826103,
0.030929049476981163,
-0.01371228601783514,
-0.00511409156024456,
-0.016992639750242233,
-0.04861443489789963,
0.05920936539769173,
0.03934386745095253,
0.10065184533596039,
0.015637710690498352,
-0.06711481511592865,
-0.005969835910946131,
0.02628357894718647,
-0.0028728563338518143,
0.010284214280545712,
0.03166254237294197,
-0.0860634371638298,
-0.01257129292935133,
-0.056682880967855453,
0.04694369435310364,
0.05900561437010765,
0.0294620580971241,
-0.00941828265786171,
-0.052078161388635635,
-0.014934777282178402,
0.027139322832226753,
-0.018143819645047188,
0.032396040856838226,
0.010335151106119156,
-0.01679907739162445,
0.0824367105960846,
0.06414008140563965,
0.04311322048306465,
-0.07037479430437088,
0.03335365653038025,
-0.07685399800539017,
0.024918463081121445,
-0.012082296423614025,
-0.043276216834783554,
-0.04217597469687462,
-0.043805964291095734,
-0.015943333506584167,
-0.032681286334991455,
0.01194985955953598,
0.027750568464398384,
0.0026232642121613026,
0.0076762312091887,
0.01001424714922905,
-0.021149111911654472,
0.04796243831515312,
0.04278722032904625,
-0.0002943213330581784,
0.015240401029586792,
0.05012217536568642,
-0.02858593873679638,
-0.057905372232198715,
0.0014198735589161515,
-0.0034255245700478554,
-0.017216762527823448,
-0.033638905733823776,
0.015444149263203144,
-0.03944574296474457,
0.004487564321607351,
-0.04482470825314522,
-0.06035035848617554,
-0.03879374638199806,
0.018235506489872932,
-0.023431098088622093,
0.003170838812366128,
-0.011043177917599678,
-0.007401170674711466,
-0.002117712749168277,
-0.05855736881494522,
-0.0005405707051977515,
0.051996663212776184,
0.009362251497805119,
0.007070078980177641,
-0.030378926545381546,
0.023532971739768982,
-0.01637120544910431,
-0.03105129860341549,
-0.02204560674726963,
-0.013508536852896214,
-0.05162991210818291,
-0.0033975092228502035,
0.03457615152001381,
0.12787266075611115,
0.015515461564064026,
0.08003247529268265,
-0.033374033868312836,
-0.031193921342492104,
-0.0024169685784727335,
-0.002583787776529789,
-0.021943731233477592,
-0.001782800885848701,
-0.009469219483435154,
0.04588419944047928,
0.003430618206039071,
0.031886667013168335,
-0.023084724321961403,
0.03402602672576904,
0.017104700207710266,
-0.025264834985136986,
-0.013691910542547703,
-0.03317028284072876,
-0.01979418285191059,
-0.0400569885969162,
-0.026487328112125397,
0.0691930502653122,
0.027974693104624748,
0.025020336732268333,
0.007192328106611967,
-0.00809391587972641,
-0.06524032354354858,
0.043602216988801956,
0.046862196177244186,
0.020731426775455475,
0.062224846333265305,
0.025346335023641586,
-0.05089641734957695,
0.007915635593235493,
0.032762788236141205,
-0.012204545550048351,
-0.00037088626413606107,
-0.0413813553750515,
-0.07387927174568176,
0.03685813397169113,
0.06886705011129379,
0.061083853244781494,
-0.039893988519907,
-0.002702216850593686,
-0.03579864278435707,
-0.07612050324678421,
0.0038432092405855656,
0.04808468744158745,
-0.0480031855404377,
-0.015933146700263023,
-0.009917466901242733,
-0.03844737634062767,
-0.02591683156788349,
0.002474272856488824,
0.03192741796374321,
-0.08932341635227203,
-0.04779943823814392,
0.015454337000846863,
0.010391182266175747,
-0.024979587644338608,
0.05990210920572281,
0.029421309009194374,
-0.03651176393032074,
0.05150766298174858,
-0.01648326776921749,
-0.011450675316154957,
-0.001351108425296843,
-0.010910741053521633,
0.013355725444853306,
-0.026487328112125397,
-0.021841857582330704,
-0.042379725724458694,
0.013783597387373447,
0.04266497120261192,
-0.016167456284165382,
0.00877138040959835,
0.04103498160839081,
0.04804393649101257,
0.004589438904076815,
0.062306344509124756,
-0.006469020154327154,
-0.00007043655205052346,
0.027648694813251495,
0.03698038309812546,
-0.032681286334991455,
0.03598201647400856,
0.005669306963682175,
0.09812536090612411,
-0.03563564270734787,
0.005368777550756931,
0.04885893315076828,
0.004220144357532263,
-0.014863465912640095,
0.017349200323224068,
0.028158066794276237,
-0.004530861042439938,
-0.010197620838880539,
-0.03504477068781853,
0.014680092222988605,
-0.02016093209385872,
0.0012651518918573856,
0.011572924442589283,
0.006188865751028061,
0.015780335292220116,
-0.027648694813251495,
-0.027628319337964058,
0.0001677742984611541,
-0.02257535234093666,
0.1339036226272583,
-0.007722074631601572,
-0.07905448228120804,
0.041136857122182846,
-0.03993473947048187,
-0.017634447664022446,
0.016299894079566002,
-0.05399340018630028,
-0.026691075414419174,
-0.008170321583747864,
-0.033638905733823776,
-0.019722871482372284,
-0.004826296586543322,
0.007268733810633421,
0.024999963119626045,
0.005200685001909733,
0.01001424714922905,
-0.02014055661857128,
-0.005045326426625252,
0.032151538878679276,
-0.036817386746406555,
-0.01769557222723961,
-0.018245693296194077,
-0.012367544695734978,
-0.006978392135351896,
0.00936734490096569,
-0.004393330775201321,
0.06218409538269043,
-0.008256915025413036,
0.016116520389914513,
-0.010533805936574936,
0.004897608887404203,
-0.018062319606542587,
0.01433371938765049,
0.013763222843408585,
-0.03555414453148842,
0.009148315526545048,
-0.06727781146764755,
0.009464126080274582,
-0.05770162492990494,
-0.03997549042105675,
-0.014394843950867653,
0.005017310846596956,
0.08345545828342438,
0.004793187603354454,
-0.01658514142036438,
0.02744494564831257,
-0.00026948945014737546,
-0.056234635412693024,
0.02082311362028122,
0.010100840590894222,
0.0958433747291565,
0.014934777282178402,
-0.01701301336288452,
0.027200447395443916,
-0.04146285355091095,
0.03685813397169113,
-0.015413586981594563,
-0.0282191913574934,
0.007839229889214039,
0.0127852289006114,
-0.004841577727347612,
-0.016259144991636276,
-0.013702098280191422,
0.017339011654257774,
-0.016941701993346214,
-0.017552947625517845,
-0.03044005110859871,
-0.014741216786205769,
-0.0425427220761776,
0.0388956218957901,
0.04604719951748848,
0.00032695295521989465,
-0.025896456092596054,
0.018480004742741585,
-0.026324328035116196,
-0.1178482323884964,
0.08818242698907852,
0.004199769347906113,
-0.019570060074329376,
-0.007263640407472849,
-0.0319477915763855,
0.02204560674726963,
0.03370003029704094,
0.0537896491587162,
-0.07457201182842255,
-0.009250190109014511,
-0.005022404715418816,
0.009627125225961208,
0.034270524978637695,
0.052078161388635635,
0.05236341059207916,
-0.03722488135099411,
-0.0063162087462842464,
0.04470245912671089,
0.05016292259097099,
0.03942536935210228,
-0.018795814365148544,
0.04743269085884094,
0.08113272488117218,
0.00047849101247265935,
-0.015678459778428078,
-0.06572932004928589,
0.006265271920710802,
-0.03473914787173271,
-0.011308051645755768,
0.005108998157083988,
-0.05696813017129898,
-0.0293805580586195,
-0.0012435036478564143,
0.008435195311903954,
0.010482869111001492,
0.014863465912640095,
0.005440089385956526,
-0.026568826287984848,
-0.027363447472453117,
0.04099423438310623,
0.0038202875293791294,
0.011674799025058746,
-0.02355334721505642,
0.009891998022794724,
0.01833738014101982,
-0.031153172254562378,
0.04824768751859665,
-0.014853278174996376,
-0.018541129305958748,
0.03512627258896828,
-0.039547618478536606,
0.06572932004928589,
-0.02233085408806801,
0.002865215763449669,
-0.04967392608523369,
0.0018502926686778665,
0.011369176208972931,
0.056153133511543274,
0.03439277783036232,
-0.023043975234031677,
0.013467786833643913,
-0.06515882909297943,
-0.039832863956689835,
0.008501413278281689,
-0.027933944016695023,
0.028606314212083817,
-0.0045639704912900925,
0.025468584150075912,
-0.007956385612487793,
0.02583533152937889,
-0.05476764217019081,
-0.04180922731757164,
0.011318238452076912,
-0.002620717277750373,
-0.030317801982164383,
-0.01968212239444256,
0.04999992623925209,
-0.01905050128698349,
-0.017216762527823448,
-0.06226559355854988,
0.02530558593571186,
-0.015118151903152466,
-0.028647063300013542,
0.03500402346253395,
-0.023532971739768982,
0.061328351497650146,
0.0016057941829785705,
0.011847984977066517,
0.022738352417945862,
0.00533821526914835,
0.01618783175945282,
0.013865097425878048,
-0.013865097425878048,
-0.017797445878386497,
-0.026161329820752144,
0.006224521901458502,
-0.024979587644338608,
-0.04694369435310364,
0.0033160096500068903,
-0.015332087874412537,
0.03850850090384483,
-0.026854075491428375,
-0.05933161452412605,
-0.07689475268125534,
-0.06691106408834457,
0.015046839602291584,
0.04649544879794121,
-0.0018617535242810845,
-0.031092047691345215,
0.06882630288600922,
0.04339846596121788,
0.0174612607806921,
0.043276216834783554,
0.027404196560382843,
0.04048486053943634,
0.01701301336288452,
0.005567432381212711,
0.02927868440747261,
0.0021355408243834972,
-0.011145052500069141,
-0.060635603964328766,
0.03149954602122307,
0.06088010221719742,
-0.019651560112833977,
0.07559075951576233,
0.017491823062300682,
0.008312946185469627,
0.010951491072773933,
-0.00683576799929142,
-0.03696000948548317,
0.02188260667026043,
0.04645469784736633,
-0.01918293721973896,
-0.0484921857714653,
0.003970552235841751,
-0.014588405378162861,
-0.020354492589831352,
0.006820486858487129,
-0.008623662404716015,
0.028015442192554474,
-0.020629553124308586,
-0.027567194774746895,
0.038325127214193344,
0.011094115674495697,
-0.03198854252696037,
0.019284812733530998,
-0.03801950067281723,
-0.05651988089084625,
-0.02090461365878582,
0.0016032473649829626,
0.017002826556563377,
-0.04869593307375908,
-0.015902584418654442,
0.08492244780063629,
0.0691930502653122,
0.05493064224720001,
-0.025631582364439964,
0.03975136578083038,
-0.023512596264481544,
0.016911139711737633,
-0.05325990170240402,
-0.027506070211529732,
0.0016032473649829626,
-0.05297465622425079,
0.015678459778428078,
0.012510168366134167,
-0.04633244872093201,
-0.01151179987937212,
-0.04400971159338951,
0.023084724321961403,
-0.054645393043756485,
-0.031519919633865356,
-0.02805619314312935,
0.072493776679039,
0.02053786627948284,
0.027098573744297028,
-0.05635688453912735,
-0.06638132035732269,
-0.011043177917599678,
0.035594891756772995,
0.01132842618972063,
-0.06361033767461777,
-0.03308878466486931,
-0.005137013271450996,
-0.042990971356630325,
0.032334912568330765,
0.002326555084437132,
-0.006005492061376572,
0.07322727143764496,
0.00007294361421372741,
0.030195552855730057,
0.031153172254562378,
0.06430307775735855,
-0.032844286412000656,
0.022982850670814514,
0.020649928599596024,
0.035065148025751114,
-0.0028193723410367966,
0.03716375678777695,
0.018826376646757126,
0.020731426775455475,
-0.0048619527369737625,
-0.011134864762425423,
0.008959847502410412,
-0.026059456169605255,
-0.011664611287415028,
0.010971865616738796,
0.0073553272522985935,
-0.06764455884695053,
0.01645270548760891,
0.040016237646341324,
0.003789725247770548,
-0.028239566832780838,
-0.029156435281038284,
-0.023614471778273582,
-0.013610411435365677,
-0.039017871022224426,
-0.016890764236450195,
0.006494489032775164,
-0.056601382791996,
0.011297863908112049,
-0.021393610164523125,
-0.032334912568330765,
0.05220041051506996,
0.05342290177941322,
-0.02972693182528019,
0.0048644994385540485,
-0.04205372557044029,
-0.005704962648451328,
0.01714545115828514,
-0.046250950545072556,
0.09079040586948395,
0.01958024688065052,
-0.024572089314460754,
-0.04274647310376167,
-0.056845881044864655,
0.034005653113126755,
0.010625493712723255,
0.03561526909470558,
0.013253850862383842,
-0.00002741852222243324,
0.012123046442866325,
0.007645668927580118,
0.013651161454617977,
0.018347568809986115,
0.027118949219584465,
-0.024572089314460754,
-0.029951054602861404,
-0.014802341349422932,
0.009891998022794724,
-0.0007271280628629029,
0.045721203088760376,
-0.012764854356646538,
-0.014680092222988605,
-0.0072942026890814304,
0.03543189540505409,
0.005888336803764105,
-0.0015421228017657995,
0.011837798170745373,
-0.03367965668439865,
-0.04364296421408653,
-0.013722472824156284,
0.02654845267534256,
0.030215928331017494,
0.06556632369756699,
0.0716787800192833,
0.030990174040198326,
-0.022962475195527077,
0.023858970031142235,
-0.020222056657075882,
0.03535039350390434,
-0.0062194280326366425,
-0.020670302212238312,
0.013905846513807774,
0.022290105000138283,
0.0009977318113669753,
0.046699196100234985,
0.007951292209327221,
-0.009963310323655605,
0.026589201763272285,
0.017094513401389122,
-0.029665807262063026,
-0.08129572123289108,
-0.0015803256537765265,
0.02265685237944126,
-0.05497139319777489,
-0.02249385416507721,
0.010645868256688118,
-0.0024768197908997536,
-0.039017871022224426,
0.024714713916182518,
0.0509779192507267,
-0.01706395111978054,
0.05061117187142372,
0.035594891756772995,
-0.03777500241994858,
0.028708187863230705,
-0.0017624259926378727,
0.01610633172094822,
-0.06903005391359329,
-0.0372452586889267,
-0.013518724590539932,
-0.036287639290094376,
-0.03634876385331154,
0.0427057221531868,
-0.01782800815999508,
0.0033516655676066875,
0.009805404581129551,
-0.091360904276371,
-0.0691930502653122,
0.048818182200193405,
0.03335365653038025,
-0.022351229563355446,
0.05073342099785805,
0.00437804963439703,
0.04205372557044029,
-0.017206575721502304,
0.001400772132910788,
-0.05297465622425079,
-0.06678881496191025,
0.06613682210445404,
0.051996663212776184,
-0.027404196560382843,
-0.01001424714922905,
-0.015332087874412537,
-0.014170720241963863,
-0.005266902968287468,
-0.07302352786064148,
-0.02803581766784191,
0.02840256504714489,
-0.06259158998727798,
0.0017789806006476283,
-0.019733058288693428,
0.02485733851790428,
-0.06593307107686996,
0.0018757611978799105,
-0.02628357894718647,
0.009958215989172459,
-0.06475132703781128,
-0.03826400265097618,
0.02620207890868187,
0.027913568541407585,
0.033048033714294434,
0.018510567024350166,
-0.012286044657230377,
0.01623876951634884,
-0.001352381776086986,
-0.01007027830928564,
-0.10309682786464691,
0.038671497255563736,
0.009525250643491745,
0.03486139699816704,
0.04433571174740791,
-0.00395527109503746,
0.04629169777035713,
0.01066624280065298,
-0.01971268467605114,
0.036552511155605316,
0.02893231250345707,
-0.020884238183498383,
-0.03425015136599541,
0.058964867144823074,
0.036104265600442886,
0.0012626050738617778,
0.0029288872610777617,
0.01217398326843977,
-0.0017764337826520205,
0.019213499501347542,
0.005182856693863869,
-0.022371605038642883,
-0.045721203088760376,
0.021638108417391777,
0.06540332734584808,
-0.06263234466314316,
-0.005485932808369398,
0.0012435036478564143,
0.0002803136012516916,
0.013213101774454117,
0.005414620973169804,
0.05387114733457565,
-0.009275658056139946,
0.012021171860396862,
-0.013956784270703793,
0.004502845462411642,
0.016381394118070602,
0.0024437105748802423,
0.03341478109359741,
-0.019488560035824776,
-0.027974693104624748,
-0.02724119834601879,
-0.00132946006488055,
-0.003540133126080036,
-0.09625087678432465,
0.04339846596121788,
0.007681325078010559,
0.051466915756464005,
-0.013834535144269466,
-0.05900561437010765,
-0.02406271919608116,
-0.03934386745095253,
-0.03801950067281723,
0.03274241089820862,
0.003061323892325163,
0.012275857850909233,
0.01005499716848135,
-0.06320283561944962,
0.02151585929095745,
0.032334912568330765,
0.05961686000227928,
-0.06723706424236298,
0.006025867071002722,
0.01573958434164524,
-0.01936631090939045,
-0.00017254965496249497,
0.03086792305111885,
0.06638132035732269,
-0.044580210000276566,
0.021576983854174614,
0.012520356103777885,
0.06414008140563965,
0.03545226901769638,
0.02204560674726963,
-0.0019368858775123954,
-0.0011040631216019392,
-0.017094513401389122,
0.04400971159338951,
0.049633175134658813,
-0.012489793822169304,
0.0011409926228225231,
-0.013039914891123772,
-0.0187856275588274,
-0.001940706162713468,
-0.033638905733823776,
0.03924199566245079,
0.043805964291095734,
0.00030689642881043255,
-0.0456804521381855,
-0.021189862862229347,
-0.0427057221531868,
0.04779943823814392,
-0.017471449449658394,
-0.007839229889214039,
0.08337395638227463,
-0.04983692616224289,
-0.003000199096277356,
0.020089618861675262,
0.0431947186589241,
-0.005867961794137955,
-0.01159329991787672,
0.0046072667464613914,
-0.010686618275940418,
0.0018974095582962036,
0.018663378432393074,
0.0637325868010521,
0.017603885382413864,
-0.047228943556547165,
0.008700068108737469,
0.05920936539769173,
-0.09250190109014511,
0.005822118371725082,
-0.056601382791996,
-0.030664175748825073,
-0.11499574780464172,
-0.057742372155189514,
-0.0317847914993763,
0.009948029182851315,
0.04596570134162903,
-0.038325127214193344,
0.016513830050826073,
0.05998361110687256,
0.004141191951930523
] |
21,435 | tfields.triangles_3d | Triangles3D |
Points3D child restricted to n * 3 Points.
Three Points always group together to one triangle.
Args:
tensors (Iterable | tfields.TensorFields)
*fields (Iterable | tfields.Tensors): Fields with the same length as tensors
**kwargs: passed to base class
Attributes:
see :class:`~tfields.TensorFields`
Examples:
>>> import tfields
>>> t = tfields.Triangles3D([[1,2,3], [3,3,3], [0,0,0]])
You can add fields to each triangle
>>> t = tfields.Triangles3D(t, tfields.Tensors([42]))
>>> assert t.fields[0].equal([42])
| class Triangles3D(tfields.TensorFields):
# pylint: disable=R0904
"""
Points3D child restricted to n * 3 Points.
Three Points always group together to one triangle.
Args:
tensors (Iterable | tfields.TensorFields)
*fields (Iterable | tfields.Tensors): Fields with the same length as tensors
**kwargs: passed to base class
Attributes:
see :class:`~tfields.TensorFields`
Examples:
>>> import tfields
>>> t = tfields.Triangles3D([[1,2,3], [3,3,3], [0,0,0]])
You can add fields to each triangle
>>> t = tfields.Triangles3D(t, tfields.Tensors([42]))
>>> assert t.fields[0].equal([42])
"""
def __new__(cls, tensors, *fields, **kwargs):
kwargs["dim"] = 3
kwargs["rigid"] = False
obj = super(Triangles3D, cls).__new__(cls, tensors, *fields, **kwargs)
if not len(obj) % 3 == 0:
warnings.warn(
"Input object of size({0}) has no divider 3 and"
" does not describe triangles.".format(len(obj))
)
return obj
def ntriangles(self):
"""
Returns:
int: number of triangles
"""
return len(self) // 3
def _to_triangles_mask(self, mask):
mask = np.array(mask)
mask = mask.reshape((self.ntriangles(), 3))
mask = mask.all(axis=1)
return mask
def __getitem__(self, index):
"""
In addition to the usual, also slice fields
Examples:
>>> import numpy as np
>>> import tfields
>>> vectors = tfields.Tensors(np.array([range(30)] * 3).T)
>>> triangles = tfields.Triangles3D(vectors, range(10))
>>> assert np.array_equal(triangles[3:6],
... [[3] * 3,
... [4] * 3,
... [5] * 3])
>>> assert triangles[3:6].fields[0][0] == 1
"""
item = super(tfields.TensorFields, self).__getitem__(index)
try: # __iter__ will try except __getitem__(i) until IndexError
if issubclass(type(item), Triangles3D): # block int, float, ...
if len(item) % 3 != 0:
item = tfields.Tensors(item)
elif item.fields:
# build triangle index / indices / mask when possible
tri_index = None
if isinstance(index, tuple):
index = index[0]
if isinstance(index, int):
pass
elif isinstance(index, slice):
start = index.start or 0
stop = index.stop or len(self)
step = index.step
if start % 3 == 0 and (stop - start) % 3 == 0 and step is None:
tri_index = slice(start // 3, stop // 3)
else:
try:
tri_index = self._to_triangles_mask(index)
except ValueError:
pass
# apply triangle index to fields
if tri_index is not None:
item.fields = [
field.__getitem__(tri_index) for field in item.fields
]
else:
item = tfields.Tensors(item)
except IndexError as err:
logging.warning(
"Index error occured for field.__getitem__. Error message: %s", err
)
return item
def _save_stl(self, path, **kwargs):
"""
Save the object to a stl file
"""
import stl
shape = stl.Mesh(np.zeros(self.ntriangles(), dtype=stl.Mesh.dtype))
shape.vectors = self.bulk.reshape((self.ntriangles(), 3, 3))
shape.save(path, **kwargs)
@classmethod
def _load_stl(cls, path):
"""
Factory method
Given a path to a stl file, construct the object
"""
import stl.mesh
triangles = stl.mesh.Mesh.from_file(path)
obj = cls(triangles.vectors.reshape(-1, 3))
return obj
@classmethod
def merged(cls, *objects, **kwargs):
with warnings.catch_warnings():
warnings.filterwarnings("ignore")
obj = super(Triangles3D, cls).merged(*objects, **kwargs)
if not len(obj) % 3 == 0:
warnings.warn(
"Input object of size({0}) has no divider 3 and"
" does not describe triangles.".format(len(obj))
)
return obj
def evalf(self, expression=None, coord_sys=None):
"""
Triangle3D implementation
Examples:
>>> from sympy.abc import x
>>> import numpy as np
>>> import tfields
>>> t = tfields.Triangles3D([[1., 2., 3.], [-4., 5., 6.], [1, 2, -6],
... [5, -5, -5], [1,0,-1], [0,1,-1],
... [-5, -5, -5], [1,0,-1], [0,1,-1]])
>>> mask = t.evalf(x >= 0)
>>> assert np.array_equal(t[mask],
... tfields.Triangles3D([[ 5., -5., -5.],
... [ 1., 0., -1.],
... [ 0., 1., -1.]]))
Returns:
np.array: mask which is True, where expression evaluates True
"""
mask = super(Triangles3D, self).evalf(expression, coord_sys=coord_sys)
mask = self._to_triangles_mask(mask)
mask = np.array([mask] * 3).T.reshape((len(self)))
return mask
def cut(self, expression, coord_sys=None):
"""
Default cut method for Triangles3D
Examples:
>>> import sympy
>>> import numpy as np
>>> import tfields
>>> x, y, z = sympy.symbols('x y z')
>>> t = tfields.Triangles3D([[1., 2., 3.], [-4., 5., 6.], [1, 2, -6],
... [5, -5, -5], [1, 0, -1], [0, 1, -1],
... [-5, -5, -5], [1, 0, -1], [0, 1, -1]])
>>> tc = t.cut(x >= 0)
>>> assert tc.equal(tfields.Triangles3D([[ 5., -5., -5.],
... [ 1., 0., -1.],
... [ 0., 1., -1.]]))
>>> t.fields.append(tfields.Tensors([1,2,3]))
>>> tc2 = t.cut(x >= 0)
>>> assert np.array_equal(tc2.fields[-1], np.array([2.]))
"""
# mask = self.evalf(expression, coord_sys=coord_sys)
# inst = self[mask].copy()
# return inst
return super().cut(expression, coord_sys)
def mesh(self):
"""
Returns:
tfields.Mesh3D
"""
mp = tfields.TensorFields(np.arange(len(self)).reshape((-1, 3)), *self.fields)
mesh = tfields.Mesh3D(self, maps=[mp])
return mesh.cleaned(stale=False) # stale vertices can not occure here
@cached_property()
def _areas(self):
"""
Cached method to retrieve areas of triangles
"""
transform = np.eye(3)
return self.areas(transform=transform)
def areas(self, transform=None):
"""
Calculate area with "heron's formula"
Args:
transform (np.ndarray): optional transformation matrix
The triangle points are transformed with transform if given
before calclulating the area
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[1,0,0], [0,0,1], [0,0,0]],
... faces=[[0, 1, 2]])
>>> assert np.allclose(m.triangles().areas(), np.array([0.5]))
>>> m = tfields.Mesh3D([[1,0,0], [0,1,0], [0,0,0], [0,0,1]],
... faces=[[0, 1, 2], [1, 2, 3]])
>>> assert np.allclose(m.triangles().areas(), np.array( | (tensors, *fields, **kwargs) | [
-0.03157292678952217,
-0.016502615064382553,
-0.0408102385699749,
0.0241000447422266,
-0.019273808225989342,
-0.014935385435819626,
-0.06165127828717232,
0.0032667911145836115,
-0.04446364939212799,
0.01581760123372078,
0.026341909542679787,
0.0474943183362484,
-0.07443820685148239,
-0.006948742549866438,
-0.027338294312357903,
0.01785188540816307,
-0.03400161489844322,
0.036845460534095764,
0.02663252130150795,
-0.0250133965164423,
-0.025905990973114967,
-0.04861525073647499,
0.019201155751943588,
0.05646177753806114,
0.04599974304437637,
-0.02457747980952263,
0.027981791645288467,
-0.00014027871657162905,
0.04271997511386871,
-0.00782057922333479,
-0.07066025584936142,
0.0335656963288784,
-0.04317665100097656,
0.01828780397772789,
-0.03277689218521118,
-0.09291283786296844,
0.0035158873070031404,
0.004691309295594692,
-0.013586115092039108,
0.08207715302705765,
0.006357139442116022,
-0.02823088876903057,
-0.020394740626215935,
-0.02324896678328514,
0.023103659972548485,
0.004094516858458519,
0.08440205454826355,
0.015703432261943817,
-0.06306282430887222,
-0.04375787824392319,
0.02669479511678219,
-0.055548425763845444,
0.04479577764868736,
-0.0030851587653160095,
-0.0261758454144001,
-0.012776552699506283,
0.01080454234033823,
-0.00016379363660234958,
-0.03570377081632614,
0.004919647239148617,
-0.018640689551830292,
0.03151065483689308,
0.028147855773568153,
-0.011344250291585922,
-0.030451994389295578,
-0.03414691984653473,
-0.003583350917324424,
0.0379248782992363,
0.01390786375850439,
0.008842910639941692,
-0.0638931393623352,
0.019253050908446312,
0.08826304227113724,
-0.04778493195772171,
0.04869828373193741,
-0.0006269566365517676,
0.07576671987771988,
0.01854727789759636,
0.02376791648566723,
-0.03941945359110832,
-0.01789340190589428,
-0.004470755346119404,
0.0010366028873249888,
0.03692849352955818,
0.008957079611718655,
0.028998933732509613,
0.014219233766198158,
-0.01680360548198223,
-0.028023308143019676,
-0.03493572399020195,
-0.03273537755012512,
0.003383554983884096,
-0.04078948125243187,
-0.016658300533890724,
-0.012288739904761314,
-0.01373142097145319,
0.0000033346602776873624,
-0.09183342009782791,
-0.039689306169748306,
-0.005962737370282412,
0.032174911350011826,
0.003492534626275301,
-0.04878131300210953,
0.014821216464042664,
0.05214411020278931,
-0.025947507470846176,
-0.048864345997571945,
-0.040997061878442764,
0.018557658419013023,
-0.0022094303276389837,
-0.025075672194361687,
0.062190987169742584,
0.0018215150339528918,
0.05820544809103012,
-0.004875536542385817,
-0.03524709492921829,
-0.012901101261377335,
0.028459226712584496,
-0.02787800319492817,
-0.03072184883058071,
0.041744351387023926,
-0.002576587488874793,
-0.028106341138482094,
0.07593278586864471,
-0.0037649832665920258,
0.05363868921995163,
0.011354628950357437,
0.024328382685780525,
-0.013627630658447742,
-0.04865676537156105,
-0.0056565566919744015,
0.0175197571516037,
-0.011385766789317131,
-0.01104325894266367,
-0.008749499917030334,
0.042201027274131775,
0.044214554131031036,
-0.017208386212587357,
-0.03339963033795357,
0.020062612369656563,
0.03422995284199715,
0.013627630658447742,
0.031801264733076096,
0.008412182331085205,
-0.06899961084127426,
0.014457951299846172,
0.025075672194361687,
-0.033482663333415985,
-0.00792955793440342,
-0.011385766789317131,
-0.01773771643638611,
-0.003959589637815952,
0.03616044670343399,
0.01330588199198246,
-0.03242400661110878,
0.00003405610550544225,
-0.03476966172456741,
-0.11043259501457214,
0.05268381908535957,
-0.0007557211793027818,
-0.03659636527299881,
-0.00526474928483367,
-0.025905990973114967,
0.0633949488401413,
-0.01621200330555439,
0.002541558351367712,
0.05949244648218155,
-0.09449044615030289,
-0.06368556618690491,
0.03485269099473953,
0.021941212937235832,
0.0020680164452642202,
-0.033877067267894745,
0.08269989490509033,
-0.053929299116134644,
0.026321152225136757,
-0.022958355024456978,
-0.005521629471331835,
-0.006383087020367384,
-0.018381213769316673,
-0.006543961353600025,
-0.017135733738541603,
0.009294397197663784,
0.0237471591681242,
0.01352384127676487,
-0.010731888934969902,
0.02787800319492817,
-0.016658300533890724,
0.055465392768383026,
0.016720574349164963,
-0.04124615713953972,
-0.02958015911281109,
0.029289547353982925,
-0.00028250348987057805,
0.038464587181806564,
0.023622611537575722,
0.018235908821225166,
-0.04462971165776253,
0.011157427914440632,
0.02372640185058117,
-0.09141825884580612,
-0.03084639646112919,
0.04074796661734581,
-0.01102250162512064,
-0.04251239821314812,
-0.002732272492721677,
0.028583774343132973,
-0.006455739960074425,
-0.02158832550048828,
0.039336420595645905,
0.006881278939545155,
-0.036347270011901855,
-0.00875987857580185,
0.06302130967378616,
0.021131649613380432,
-0.053472623229026794,
-0.03917035833001137,
0.02099672332406044,
-0.004491513594985008,
0.023788675665855408,
0.014914627186954021,
0.0159732848405838,
-0.03856837376952171,
0.001451763091608882,
-0.022999871522188187,
-0.006907226517796516,
0.027234503999352455,
0.04612429067492485,
-0.03290143981575966,
-0.02289608120918274,
0.03699076548218727,
0.010970606468617916,
-0.014354160986840725,
-0.01813211850821972,
0.021775148808956146,
0.01937759853899479,
-0.02665328048169613,
-0.06160976365208626,
0.05085711553692818,
-0.01767544262111187,
-0.007509208749979734,
-0.07510246336460114,
0.03157292678952217,
-0.023020628839731216,
0.01813211850821972,
0.06542923301458359,
0.017820747569203377,
0.03070109151303768,
0.008209791034460068,
0.018651068210601807,
-0.040934789925813675,
0.016969669610261917,
-0.03545467555522919,
0.03769654035568237,
0.0011494746431708336,
-0.03296371549367905,
0.10021965205669403,
-0.035952866077423096,
0.020716490224003792,
-0.021422263234853745,
-0.019429493695497513,
-0.08543995022773743,
0.07904648780822754,
0.052227143198251724,
0.032673101872205734,
-0.01244442444294691,
0.05783180519938469,
0.01896243914961815,
0.0013324045576155186,
0.019460631534457207,
0.03917035833001137,
0.07975225895643234,
-0.006927984766662121,
-0.03545467555522919,
-0.008484834805130959,
-0.02827240526676178,
0.04166131839156151,
0.043010588735342026,
0.03325432538986206,
-0.002481879200786352,
-0.0071303751319646835,
-0.00036910330527462065,
-0.05945092812180519,
-0.032174911350011826,
-0.0007278276025317609,
-0.00934110302478075,
-0.02414156123995781,
-0.04168207570910454,
0.0008912968914955854,
-0.01126121822744608,
0.01102250162512064,
-0.001800757017917931,
0.011209323070943356,
-0.07095086574554443,
0.035143304616212845,
-0.03171823173761368,
-0.09266374260187149,
0.011707515455782413,
0.013420050963759422,
-0.03825700655579567,
0.007332765497267246,
-0.016108212992548943,
0.08793091773986816,
-0.018121739849448204,
-0.02665328048169613,
-0.030431237071752548,
0.006626993417739868,
0.002973584458231926,
0.06588590890169144,
-0.025698412209749222,
0.03501875698566437,
-0.01802832819521427,
-0.05662783980369568,
-0.01915963925421238,
0.05413687974214554,
0.049279507249593735,
0.013316260650753975,
-0.03329584002494812,
0.01593177020549774,
0.04396545886993408,
-0.006305244285613298,
-0.023850949481129646,
-0.005355565808713436,
0.06322889029979706,
0.0006422008154913783,
-0.04695460945367813,
0.06148521602153778,
-0.07323424518108368,
-0.044256068766117096,
0.0079866424202919,
-0.020218297839164734,
0.03956475853919983,
-0.00820460170507431,
0.02654949016869068,
-0.01647147722542286,
-0.033025987446308136,
0.08174502849578857,
-0.010742268525063992,
0.014395677484571934,
-0.008266875520348549,
0.05666935816407204,
0.01785188540816307,
0.004294312559068203,
0.038049425929784775,
-0.003230464644730091,
-0.008360287174582481,
0.030078351497650146,
-0.009294397197663784,
0.06252311170101166,
0.11674302816390991,
0.03578680381178856,
-0.04321816936135292,
0.01789340190589428,
0.013679525814950466,
-0.03074260801076889,
-0.06306282430887222,
0.0017060486134141684,
-0.03586983308196068,
-0.007114806678146124,
0.02702692337334156,
0.045584581792354584,
-0.04670551419258118,
0.013710662722587585,
0.056752387434244156,
0.009444892406463623,
-0.04579216241836548,
0.013970138505101204,
-0.0282516460865736,
-0.01668943651020527,
-0.0024792843032628298,
0.017364071682095528,
-0.04707915708422661,
0.015309029258787632,
0.03165595978498459,
0.03838155418634415,
-0.023145176470279694,
0.026362668722867966,
0.033503420650959015,
-0.0205815639346838,
0.0052413963712751865,
-0.0013324045576155186,
-0.024785058572888374,
0.0077790627256035805,
-0.004496702924370766,
-0.04442213475704193,
0.03373175859451294,
-0.011977369897067547,
-0.0026349693071097136,
0.03530936688184738,
-0.00020709354430437088,
0.055548425763845444,
0.0016671273624524474,
0.05870364233851433,
-0.06638410687446594,
-0.04608277231454849,
0.055174779146909714,
-0.03904581069946289,
-0.005594282876700163,
0.03692849352955818,
-0.031448379158973694,
-0.07016205787658691,
-0.07892193645238876,
0.007415797561407089,
0.060115184634923935,
-0.005807052366435528,
0.008536729961633682,
0.053970817476511,
0.018401972949504852,
0.031780507415533066,
-0.02239788882434368,
-0.0011676378780975938,
0.07917103916406631,
0.02376791648566723,
0.011126291006803513,
0.04670551419258118,
-0.007773873396217823,
-0.0118735795840621,
0.027359051629900932,
-0.009055680595338345,
0.07892193645238876,
0.028604531660676003,
0.03825700655579567,
0.008925942704081535,
0.01813211850821972,
-0.005033816676586866,
-0.039668548852205276,
-0.0565032921731472,
0.042636945843696594,
0.025864476338028908,
0.054302945733070374,
-0.023145176470279694,
-0.04907192662358284,
0.00032953335903584957,
-0.05687693506479263,
-0.04957011714577675,
0.005129822064191103,
-0.007856905460357666,
0.02119392342865467,
0.009517545811831951,
0.02993304468691349,
0.09515470266342163,
0.014115444384515285,
0.014042790979146957,
-0.06028125062584877,
0.028583774343132973,
0.02447368949651718,
-0.019657831639051437,
-0.0033627969678491354,
-0.04118388518691063,
0.007446934934705496,
0.04288604110479355,
0.053846269845962524,
0.009413755498826504,
0.0010171423200517893,
0.003030668944120407,
0.0015555530553683639,
-0.04786796122789383,
-0.05608813092112541,
-0.02949712611734867,
0.014001275412738323,
-0.0012571567203849554,
0.052974432706832886,
0.013202091678977013,
-0.03875519707798958,
-0.046747028827667236,
-0.09382618963718414,
0.008287633769214153,
-0.037198346108198166,
-0.02571916952729225,
-0.02791951783001423,
0.034728143364191055,
-0.016897017136216164,
-0.03366948664188385,
-0.0033809603191912174,
0.017799990251660347,
0.056378744542598724,
0.02827240526676178,
-0.002213322324678302,
-0.06493104249238968,
-0.07070177048444748,
0.017187628895044327,
-0.06372708082199097,
-0.0071770804934203625,
-0.027545874938368797,
0.00884809996932745,
0.0655122697353363,
-0.06032276526093483,
0.05405384674668312,
0.050981663167476654,
-0.03831927850842476,
-0.046747028827667236,
-0.035620737820863724,
0.006398655474185944,
0.041806623339653015,
-0.009740694426000118,
0.023477304726839066,
0.007441745139658451,
0.0031188903376460075,
0.0050909011624753475,
0.033067502081394196,
0.009008974768221378,
0.018007570877671242,
-0.008189033716917038,
-0.022252582013607025,
0.0075662932358682156,
-0.011313113383948803,
0.05617116391658783,
0.02740056812763214,
0.03157292678952217,
-0.04446364939212799,
-0.04832463711500168,
-0.04236708953976631,
0.07066025584936142,
0.000738855276722461,
0.004740609787404537,
-0.01688663847744465,
-0.021712874993681908,
0.04367484524846077,
-0.06721442192792892,
0.021162787452340126,
0.01754051446914673,
0.007031774614006281,
-0.03937793895602226,
0.0006681483355350792,
-0.023207450285553932,
0.020270192995667458,
-0.001962929032742977,
-0.0735248550772667,
0.06655016541481018,
-0.0019084392115473747,
0.009626525454223156,
-0.011458419263362885,
0.014260750263929367,
0.02951788529753685,
-0.006876089610159397,
0.04417303577065468,
-0.027213746681809425,
-0.03485269099473953,
0.01690739579498768,
-0.035164061933755875,
0.023560337722301483,
0.007768683601170778,
0.022252582013607025,
-0.060488831251859665,
0.011966990306973457,
-0.030970945954322815,
0.018754858523607254,
-0.013326640240848064,
-0.014416435733437538,
0.031469136476516724,
0.03838155418634415,
-0.02414156123995781,
0.04195193201303482,
-0.02619660459458828,
0.06970538198947906,
0.018277425318956375,
-0.0070629115216434,
-0.03586983308196068,
-0.0070629115216434,
0.019190777093172073,
-0.006165127735584974,
-0.012101917527616024,
0.031801264733076096,
0.007208217866718769,
-0.015827979892492294,
-0.014302265830338001,
-0.002651835326105356,
0.016834743320941925,
-0.02119392342865467,
0.0022950570564717054,
0.017073459923267365,
0.03985537216067314,
0.017550894990563393,
0.04276149347424507,
0.02540780045092106,
-0.021100513637065887,
-0.03148989379405975,
-0.019782379269599915,
-0.027753453701734543,
-0.06796171516180038,
-0.014416435733437538,
0.017291419208049774,
-0.030472753569483757,
-0.019055848941206932,
0.0641007199883461,
0.039772339165210724,
0.013783316127955914,
0.10669615119695663,
0.018588794395327568,
0.005285507533699274,
0.017997192218899727,
0.022667743265628815,
-0.003692330326884985,
0.00570326205343008,
0.008074864745140076,
0.03400161489844322,
-0.03750971704721451,
-0.04608277231454849,
-0.006471308413892984,
0.0009114061831496656,
-0.047162190079689026,
0.007234164979308844,
-0.018785996362566948,
0.0574166439473629,
-0.02064383774995804,
-0.062232501804828644,
-0.007104427553713322,
0.0018591389525681734,
0.005884894635528326,
-0.06920719146728516,
0.028189372271299362,
-0.0038869366981089115,
0.020239055156707764,
-0.04695460945367813,
-0.028355436399579048,
-0.039336420595645905,
-0.066425621509552,
0.04249163717031479,
0.09175039082765579,
-0.034250710159540176,
-0.055963583290576935,
-0.022605469450354576,
-0.014416435733437538,
0.020664595067501068,
-0.0020861795637756586,
-0.032673101872205734,
0.061360664665699005,
-0.06559529900550842,
-0.013170954771339893,
-0.01058658305555582,
0.013503083027899265,
-0.019429493695497513,
-0.01184244267642498,
0.0037260621320456266,
-0.020114507526159286,
-0.008515971712768078,
-0.004623845685273409,
-0.0066944570280611515,
0.0175197571516037,
0.010648856870830059,
-0.07688765227794647,
-0.00008149139466695487,
0.002950231544673443,
0.004120464436709881,
0.014011654071509838,
-0.04462971165776253,
0.002947636879980564,
-0.028978176414966583,
0.04487881064414978,
0.0007933450397104025,
-0.04745280370116234,
0.06119460240006447,
-0.024037770926952362,
-0.035911351442337036,
-0.013617251999676228,
0.02991228736937046,
0.039710067212581635,
-0.020072992891073227,
-0.003653409192338586,
0.015869496390223503,
-0.008469266816973686,
-0.0030462373979389668,
0.004834020510315895,
-0.03192581236362457,
0.016357308253645897,
-0.021297713741660118,
0.0514383390545845,
-0.0012195329181849957,
0.022314855828881264,
0.0599491223692894,
-0.058122418820858,
-0.03232021629810333,
0.0011202836176380515,
0.02030133083462715,
0.04570912942290306,
-0.013243608176708221,
0.06625955551862717,
0.026300393044948578,
-0.030680332332849503,
-0.06679926067590714,
0.05064953491091728,
0.049279507249593735,
-0.045501548796892166,
0.01700080744922161,
0.03288068249821663,
-0.006834573578089476,
-0.03873443976044655,
0.028915902599692345,
-0.02001071721315384,
-0.01728104054927826,
-0.02062307856976986,
0.03205035999417305,
0.05363868921995163,
0.03082563914358616,
-0.026051297783851624,
-0.032631587237119675,
0.011707515455782413,
0.05783180519938469,
0.030970945954322815,
0.038858987390995026,
-0.002248351462185383,
-0.060987021774053574,
-0.06393466144800186,
0.03613968938589096,
-0.0075662932358682156,
0.03941945359110832,
-0.020851416513323784,
-0.02914424054324627,
0.0079866424202919,
-0.04110085219144821,
-0.004265770316123962,
0.04599974304437637,
0.04161980375647545,
-0.036783188581466675,
-0.029393335804343224,
0.006466119084507227,
0.006108043249696493,
0.03148989379405975,
0.02287532202899456,
-0.015101449564099312,
0.009725125506520271,
0.030431237071752548,
-0.004291717894375324,
0.03960627689957619,
-0.03813245892524719,
0.0261758454144001,
-0.006030200980603695,
-0.01811136119067669,
-0.07900497317314148,
-0.025553105399012566,
0.023415030911564827,
0.034250710159540176,
-0.009693988598883152,
-0.02654949016869068,
0.02573992684483528,
-0.01166599988937378,
0.05193652957677841,
-0.0431351363658905,
-0.06356101483106613,
0.044214554131031036,
0.014675910584628582,
-0.04878131300210953,
-0.027670422568917274,
-0.03449980542063713,
-0.0023703048937022686,
0.0363057516515255,
0.004372154828161001,
0.041370704770088196,
-0.021920453757047653,
-0.04753583297133446,
0.0500267930328846,
0.048449184745550156,
-0.008106001652777195,
-0.05783180519938469,
0.07780100405216217,
0.0005137606640346348,
-0.00039407776785083115,
-0.05534084513783455,
-0.03153141215443611,
-0.05749967694282532,
-0.05442749336361885,
-0.03856837376952171,
0.02908196672797203,
0.07418911159038544,
0.010929089970886707,
0.014260750263929367,
-0.015807222574949265,
0.020114507526159286
] |
21,438 | tfields.triangles_3d | __getitem__ |
In addition to the usual, also slice fields
Examples:
>>> import numpy as np
>>> import tfields
>>> vectors = tfields.Tensors(np.array([range(30)] * 3).T)
>>> triangles = tfields.Triangles3D(vectors, range(10))
>>> assert np.array_equal(triangles[3:6],
... [[3] * 3,
... [4] * 3,
... [5] * 3])
>>> assert triangles[3:6].fields[0][0] == 1
| def __getitem__(self, index):
"""
In addition to the usual, also slice fields
Examples:
>>> import numpy as np
>>> import tfields
>>> vectors = tfields.Tensors(np.array([range(30)] * 3).T)
>>> triangles = tfields.Triangles3D(vectors, range(10))
>>> assert np.array_equal(triangles[3:6],
... [[3] * 3,
... [4] * 3,
... [5] * 3])
>>> assert triangles[3:6].fields[0][0] == 1
"""
item = super(tfields.TensorFields, self).__getitem__(index)
try: # __iter__ will try except __getitem__(i) until IndexError
if issubclass(type(item), Triangles3D): # block int, float, ...
if len(item) % 3 != 0:
item = tfields.Tensors(item)
elif item.fields:
# build triangle index / indices / mask when possible
tri_index = None
if isinstance(index, tuple):
index = index[0]
if isinstance(index, int):
pass
elif isinstance(index, slice):
start = index.start or 0
stop = index.stop or len(self)
step = index.step
if start % 3 == 0 and (stop - start) % 3 == 0 and step is None:
tri_index = slice(start // 3, stop // 3)
else:
try:
tri_index = self._to_triangles_mask(index)
except ValueError:
pass
# apply triangle index to fields
if tri_index is not None:
item.fields = [
field.__getitem__(tri_index) for field in item.fields
]
else:
item = tfields.Tensors(item)
except IndexError as err:
logging.warning(
"Index error occured for field.__getitem__. Error message: %s", err
)
return item
| (self, index) | [
-0.002294836100190878,
-0.01765618845820427,
-0.08542410284280777,
0.03551844134926796,
-0.020157091319561005,
-0.019988490268588066,
-0.006074290722608566,
0.012017447501420975,
0.02362276241183281,
-0.00044960054219700396,
0.038778048008680344,
0.03355143964290619,
-0.03763531148433685,
-0.019613822922110558,
0.004992439411580563,
0.015576785430312157,
-0.031191037967801094,
0.05998420715332031,
0.013244482688605785,
-0.007989776320755482,
-0.006884508300572634,
-0.015108451247215271,
0.029842235147953033,
0.05372726544737816,
0.047470323741436005,
0.04083871468901634,
0.04762019217014313,
-0.003952737897634506,
0.07605742663145065,
-0.028324833139777184,
-0.03156570345163345,
0.016925586387515068,
0.0036670544650405645,
0.06541687995195389,
-0.017468854784965515,
-0.060059137642383575,
-0.03100370429456234,
-0.024784229695796967,
0.0053249564953148365,
0.09876225143671036,
0.0036576876882463694,
-0.05676206946372986,
-0.022423826158046722,
-0.06965062022209167,
-0.0013499724445864558,
-0.0023030319716781378,
0.06867647916078568,
0.02410982921719551,
-0.04473525285720825,
-0.031078636646270752,
0.02514016442000866,
-0.002458753064274788,
0.039227645844221115,
-0.027406899258494377,
-0.023978695273399353,
-0.008757843635976315,
-0.006580091081559658,
0.0008260239264927804,
-0.014893017709255219,
0.05084232613444328,
-0.01716911979019642,
-0.01913612335920334,
0.011670880950987339,
0.011989347636699677,
-0.009975511580705643,
-0.05901006981730461,
0.005877590272575617,
-0.00037613065796904266,
-0.017749855294823647,
-0.006580091081559658,
-0.022573694586753845,
0.016682052984833717,
0.038159847259521484,
-0.04203765094280243,
-0.02304202690720558,
0.006135174073278904,
0.016063852235674858,
0.032052770256996155,
0.08160249888896942,
-0.05507606640458107,
-0.027331966906785965,
0.037260644137859344,
-0.013057149015367031,
0.021674493327736855,
-0.004851939156651497,
0.020981358364224434,
0.0003650077269412577,
-0.020644158124923706,
-0.023716429248452187,
-0.014612017199397087,
-0.04634632170200348,
-0.008959227241575718,
-0.032670971006155014,
0.007001591846346855,
-0.054888732731342316,
-0.015511218458414078,
0.015558051876723766,
-0.07942942529916763,
-0.08415023237466812,
0.0359305776655674,
0.03978964686393738,
0.006336557678878307,
-0.0464961901307106,
0.007235758472234011,
0.04477272182703018,
-0.042637117207050323,
-0.05219113081693649,
-0.02924276888370514,
0.014658850617706776,
-0.010649912990629673,
-0.011558480560779572,
0.04949352517724037,
-0.046196456998586655,
0.032165173441171646,
-0.013684716075658798,
-0.011820747517049313,
0.036398909986019135,
-0.004315696656703949,
-0.014490250498056412,
-0.054476600140333176,
0.06032140552997589,
-0.015839051455259323,
-0.04514738917350769,
0.07317248731851578,
-0.02058795839548111,
0.03076017089188099,
0.015810951590538025,
0.03568704426288605,
0.01935155689716339,
-0.032577306032180786,
-0.019126756116747856,
-0.0074699255637824535,
-0.04514738917350769,
0.012729315087199211,
0.023341761901974678,
0.03576197475194931,
0.06155780702829361,
-0.023641495034098625,
-0.09411638230085373,
0.02431589551270008,
-0.002286640228703618,
0.002202340168878436,
0.04038911685347557,
0.032127704471349716,
-0.04387351870536804,
-0.0004747734928969294,
-0.004090896807610989,
0.00428525498136878,
0.0118956808000803,
-0.024184761568903923,
-0.03658624365925789,
0.05282806232571602,
0.05234099552035332,
0.012738682329654694,
-0.028980500996112823,
-0.026844898238778114,
-0.05994673818349838,
-0.07980409264564514,
0.03662370890378952,
0.023978695273399353,
-0.0260393638163805,
-0.007095258682966232,
-0.04342391714453697,
0.029636168852448463,
-0.0021098442375659943,
0.06017154082655907,
0.013628516346216202,
-0.08115290105342865,
-0.054476600140333176,
0.03866564482450485,
0.025908231735229492,
0.011923780664801598,
-0.025158897042274475,
0.04585925489664078,
-0.07122422009706497,
0.07129915058612823,
-0.03220263868570328,
0.011174446903169155,
0.016710152849555016,
-0.03347650542855263,
-0.02272356115281582,
-0.003095687134191394,
-0.01714101992547512,
-0.02176816016435623,
0.039639782160520554,
0.018602222204208374,
-0.018574122339487076,
0.007872693240642548,
0.03403850644826889,
0.03786011040210724,
0.015052251517772675,
-0.006547308061271906,
0.029804769903421402,
-0.036604978144168854,
0.003964446485042572,
0.04327405244112015,
0.0015829685144126415,
0.005512290168553591,
0.044435519725084305,
0.060508739203214645,
-0.047994859516620636,
-0.024128561839461327,
-0.005212556105107069,
0.02514016442000866,
-0.08137769997119904,
0.021168692037463188,
0.06691554933786392,
0.005456089973449707,
-0.06702794879674911,
0.030741436406970024,
-0.02128109149634838,
-0.016429152339696884,
0.010481312870979309,
0.03372003883123398,
0.03458177670836449,
-0.021824359893798828,
-0.048369523137807846,
-0.00894986093044281,
0.039340049028396606,
0.040126848965883255,
0.05462646484375,
0.00699222506955266,
-0.02403489500284195,
-0.025271296501159668,
0.017234686762094498,
-0.023772628977894783,
-0.011839481070637703,
-0.006210107356309891,
-0.0698004812002182,
-0.03197783976793289,
0.017665553838014603,
0.019782423973083496,
-0.01858348958194256,
0.008528360165655613,
0.04821965843439102,
0.04956845939159393,
0.0013288974296301603,
-0.0642179474234581,
0.07013768702745438,
0.006767424754798412,
-0.009413511492311954,
-0.020438091829419136,
0.0019166565034538507,
-0.005498239770531654,
-0.006636291276663542,
0.03383244201540947,
0.004069821443408728,
0.026676299050450325,
-0.019051823765039444,
0.017581254243850708,
-0.04728299006819725,
0.043611250817775726,
0.005442040041089058,
0.06436780840158463,
0.013029049150645733,
-0.02362276241183281,
0.07572022080421448,
-0.037335578352212906,
0.029823502525687218,
-0.0245219636708498,
-0.05346499755978584,
-0.08077823370695114,
0.035162508487701416,
0.0024470447096973658,
0.020063424482941628,
0.0002681211626622826,
0.08662303537130356,
0.05473886430263519,
0.024222228676080704,
0.07688169181346893,
0.05237846449017525,
0.08617343753576279,
-0.013712816871702671,
-0.019089289009571075,
0.021468425169587135,
-0.050954729318618774,
0.03900284692645073,
0.05192886292934418,
0.0005710746627300978,
-0.014715051278471947,
-0.004685680847615004,
0.02214282751083374,
-0.07549542188644409,
0.0011989347403869033,
0.0028966451063752174,
-0.03375750780105591,
0.023547828197479248,
-0.007764976006001234,
-0.005310906562954187,
0.0015525268390774727,
0.03825351223349571,
-0.011165079660713673,
0.010593712329864502,
-0.05990927293896675,
-0.004622455686330795,
-0.003566362662240863,
-0.09936171770095825,
0.032914504408836365,
0.006917291786521673,
-0.0415131151676178,
-0.008945177309215069,
-0.023098228499293327,
-0.0154175516217947,
0.0308351032435894,
0.023978695273399353,
-0.008490893989801407,
0.00018645543605089188,
0.038740579038858414,
0.03525617718696594,
-0.044060852378606796,
0.011371146887540817,
-0.019201690331101418,
-0.029430102556943893,
-0.00041623174911364913,
0.01904245652258396,
-0.0036951543297618628,
-0.04818218946456909,
0.042637117207050323,
0.010078545659780502,
0.07099942117929459,
-0.025645963847637177,
0.01634485274553299,
-0.013553583063185215,
0.05803593620657921,
0.0033883957657963037,
-0.02920530177652836,
0.016906853765249252,
-0.06654088199138641,
-0.08759716898202896,
0.04353632032871246,
0.006884508300572634,
0.021168692037463188,
-0.0031729622278362513,
0.018639689311385155,
-0.03248363733291626,
-0.013338149525225163,
0.04896899312734604,
0.008551777340471745,
-0.002238636137917638,
0.011755180545151234,
0.01952015608549118,
-0.03892791271209717,
-0.002354548778384924,
0.02218029275536537,
0.025271296501159668,
-0.02017582394182682,
0.05563806742429733,
0.017187854275107384,
0.05342753231525421,
0.08587370067834854,
0.02673249877989292,
-0.08152756094932556,
0.0060180905275046825,
0.028774434700608253,
-0.05031779408454895,
-0.0475827232003212,
-0.01125874649733305,
-0.0490439273416996,
-0.03252110630273819,
0.05945967137813568,
0.029617436230182648,
-0.0062663075514137745,
0.012963482178747654,
0.013291316106915474,
0.006299091037362814,
-0.06684061139822006,
-0.046233922243118286,
0.0009366677841171622,
-0.013197649270296097,
0.019876090809702873,
-0.007825859822332859,
-0.02920530177652836,
0.016850654035806656,
0.011549114249646664,
0.03268970549106598,
-0.051778994500637054,
0.00388014642521739,
0.04259965196251869,
-0.034469373524188995,
-0.02349162846803665,
-0.003990205004811287,
-0.030329303815960884,
0.026788698509335518,
0.043985918164253235,
-0.02620796486735344,
0.02317316085100174,
-0.01213921420276165,
-0.022124093025922775,
0.03671737760305405,
-0.0060836574994027615,
-0.03323297202587128,
-0.013553583063185215,
-0.01168961450457573,
-0.03366383910179138,
-0.04975579306483269,
0.0035007959231734276,
-0.014958584681153297,
-0.04634632170200348,
0.02834356762468815,
-0.06657834351062775,
-0.03463797643780708,
-0.04439805448055267,
-0.051778994500637054,
0.08804677426815033,
0.037916313856840134,
0.020232023671269417,
0.04848192632198334,
0.029017968103289604,
0.013797116465866566,
-0.013843949884176254,
0.005278123077005148,
0.05593780055642128,
0.012841715477406979,
-0.0004373067640699446,
0.07002528756856918,
0.009558694437146187,
-0.01751568727195263,
0.05117952823638916,
-0.021543359383940697,
0.10625559091567993,
0.019595090299844742,
0.0071233585476875305,
-0.018752088770270348,
-0.013778382912278175,
-0.013263216242194176,
-0.05147926136851311,
-0.028493434190750122,
0.029579969123005867,
0.02648896537721157,
0.04379858449101448,
-0.033532705157995224,
-0.06695301085710526,
-0.009900578297674656,
-0.015942085534334183,
-0.028755702078342438,
-0.02813750132918358,
-0.020981358364224434,
0.022817227989435196,
-0.015033517964184284,
0.030085770413279533,
0.10483185946941376,
0.00613049091771245,
0.0063459244556725025,
-0.07853022962808609,
0.023716429248452187,
0.014705684036016464,
-0.0060180905275046825,
0.023079494014382362,
-0.006561357993632555,
-0.022161560133099556,
0.024372095242142677,
0.03866564482450485,
0.03237123787403107,
0.025814564898610115,
0.04162551835179329,
-0.010556246154010296,
-0.02579583041369915,
-0.051816463470458984,
0.035199977457523346,
0.025777097791433334,
0.006205424200743437,
0.07583262771368027,
-0.004308671690523624,
-0.05901006981730461,
0.013497383333742619,
-0.06238207593560219,
-0.013534849509596825,
0.0035593376960605383,
-0.02789396606385708,
-0.016813186928629875,
0.016953686252236366,
-0.012888548895716667,
-0.053127795457839966,
-0.037710245698690414,
0.021374758332967758,
0.059234872460365295,
0.015267685055732727,
0.02517762966454029,
-0.04076378047466278,
-0.09568998217582703,
-0.016738252714276314,
-0.08444996923208237,
0.006378707475960255,
-0.029336435720324516,
-0.019463956356048584,
0.0313221700489521,
-0.04687085747718811,
0.0929923802614212,
0.015070985071361065,
-0.02587076462805271,
0.007254492025822401,
-0.029954636469483376,
-0.012616915628314018,
0.05724913626909256,
0.008626710623502731,
-0.0005956621607765555,
0.005807340145111084,
0.03160317242145538,
0.0339261069893837,
0.03210897371172905,
0.024465762078762054,
0.006767424754798412,
0.04679592326283455,
-0.03152823820710182,
0.0010906325187534094,
-0.01429355051368475,
0.02911163493990898,
0.052228596061468124,
0.0475827232003212,
-0.08362570405006409,
-0.018873855471611023,
-0.015745386481285095,
-0.0003860827418975532,
0.0006995737785473466,
-0.0027046282775700092,
-0.018733356148004532,
-0.04597165435552597,
0.0384783111512661,
-0.01248578168451786,
0.02489662915468216,
0.03321424126625061,
0.017468854784965515,
-0.027182098478078842,
-0.005484189838171005,
-0.008228626102209091,
0.031640637665987015,
-0.024297162890434265,
-0.06901368498802185,
0.03268970549106598,
0.006786158308386803,
-0.012214148417115211,
0.00836444366723299,
0.023941228166222572,
-0.004001913126558065,
-0.018358688801527023,
0.018339956179261208,
-0.0019283648580312729,
-0.008120909333229065,
0.052715662866830826,
-0.0051610395312309265,
0.04998059198260307,
0.010209678672254086,
0.014031283557415009,
-0.08467476814985275,
0.010425112210214138,
-0.041400715708732605,
-0.027612967416644096,
-0.026957299560308456,
0.015951452776789665,
0.009090361185371876,
0.009731978178024292,
-0.0019037772435694933,
0.05844806879758835,
-0.020962625741958618,
0.016991153359413147,
0.04353632032871246,
-0.05234099552035332,
-0.028568368405103683,
0.0014506642473861575,
0.00016655123909004033,
0.012616915628314018,
-0.004805105738341808,
0.041925251483917236,
0.023529095575213432,
-0.019295357167720795,
0.007334108930081129,
0.008977960795164108,
-0.0016778061399236321,
-0.0030746120028197765,
-0.021374758332967758,
0.010022344999015331,
0.019295357167720795,
-0.015070985071361065,
0.08130276203155518,
0.031640637665987015,
-0.007273225579410791,
-0.022873427718877792,
-0.02193675935268402,
-0.01215794775635004,
-0.10715479403734207,
-0.0037232544273138046,
0.002178923459723592,
0.041438184678554535,
-0.03152823820710182,
0.029579969123005867,
0.0065332576632499695,
0.04934366047382355,
0.05582540109753609,
0.009577427990734577,
0.012036181055009365,
0.0349002406001091,
-0.01634485274553299,
-0.033401574939489365,
0.004158805124461651,
0.03175303712487221,
0.035780709236860275,
-0.0769566223025322,
-0.025889497250318527,
-0.034750375896692276,
0.002119210781529546,
-0.0616702064871788,
0.017534421756863594,
0.012916648760437965,
0.012364014983177185,
-0.00858924351632595,
-0.05215366184711456,
-0.007956992834806442,
0.027257032692432404,
0.0480697900056839,
-0.06556674838066101,
0.015942085534334183,
0.004615430720150471,
0.007109308615326881,
-0.03310183808207512,
-0.015492484904825687,
-0.059721939265728,
-0.05324019864201546,
0.046233922243118286,
0.07935449481010437,
-0.026264164596796036,
-0.06654088199138641,
0.005235972814261913,
-0.04162551835179329,
0.004334430210292339,
-0.03431950882077217,
-0.06122060865163803,
0.06927595287561417,
-0.084974505007267,
0.009455661289393902,
-0.001527939341031015,
0.010912179946899414,
-0.021749425679445267,
0.006444274447858334,
-0.008266093209385872,
-0.04743285849690437,
-0.017562521621584892,
-0.008814044296741486,
-0.02218029275536537,
-0.027125898748636246,
0.053989533334970474,
-0.04027671366930008,
0.014480884186923504,
-0.028437234461307526,
0.0219742264598608,
0.011839481070637703,
-0.06256940960884094,
-0.011436713859438896,
-0.0506175272166729,
0.05515100061893463,
0.02772536687552929,
-0.07276035100221634,
0.06328127533197403,
-0.027182098478078842,
-0.025046497583389282,
-0.02079402469098568,
0.006790841463953257,
0.06485487520694733,
-0.03870311379432678,
-0.01464011799544096,
0.02776283398270607,
-0.005156356375664473,
-0.017637453973293304,
-0.007338792085647583,
-0.05762380361557007,
0.024091094732284546,
-0.028718234971165657,
0.011464813724160194,
0.022892160341143608,
0.026058098301291466,
0.020925158634781837,
-0.032708439975976944,
-0.0225174929946661,
-0.03347650542855263,
0.03150950372219086,
0.07219835370779037,
0.007933576591312885,
0.059647005051374435,
-0.024709295481443405,
0.005812023766338825,
-0.03767278045415878,
0.059647005051374435,
0.004376580473035574,
-0.032670971006155014,
0.06391821056604385,
-0.01996975764632225,
-0.0027022864669561386,
-0.013338149525225163,
0.020232023671269417,
-0.00017562521679792553,
-0.050954729318618774,
-0.004954972770065069,
-0.03134090453386307,
0.04439805448055267,
0.03555591031908989,
-0.04735792428255081,
-0.022330159321427345,
0.023116961121559143,
0.025121429935097694,
0.02234889380633831,
0.03452557325363159,
-0.022611159831285477,
-0.030816370621323586,
-0.006322507746517658,
0.02928023599088192,
-0.014911751262843609,
0.006289724260568619,
-0.006467691157013178,
-0.01683191955089569,
-0.026807432994246483,
-0.05125446245074272,
0.03072270378470421,
0.04499752074480057,
0.007952309213578701,
-0.03757911175489426,
0.00870632752776146,
0.02776283398270607,
-0.008120909333229065,
0.01369408331811428,
-0.0024376779329031706,
0.029373902827501297,
0.01968875713646412,
0.0092261778190732,
-0.00019040699407923967,
0.06380581110715866,
-0.02583329752087593,
0.012869815342128277,
-0.033570174127817154,
0.018976889550685883,
-0.09583985060453415,
0.008926443755626678,
0.04593418911099434,
-0.008430009707808495,
0.0043625300750136375,
-0.06388074159622192,
0.010387646034359932,
-0.01686001941561699,
0.008921761065721512,
-0.0077977594919502735,
-0.009600845165550709,
0.03177177160978317,
-0.02337922900915146,
0.027987632900476456,
-0.019220422953367233,
0.02669503167271614,
-0.026282899081707,
0.049193792045116425,
0.0060836574994027615,
0.025290030986070633,
-0.01837742142379284,
-0.03572450950741768,
0.058710336685180664,
0.04323658347129822,
-0.03776644542813301,
-0.02903670072555542,
0.05987180396914482,
-0.045297253876924515,
0.015511218458414078,
-0.05069246143102646,
-0.04597165435552597,
-0.034019775688648224,
-0.051816463470458984,
-0.010884080082178116,
0.010996479541063309,
0.09224304556846619,
-0.018733356148004532,
0.01683191955089569,
-0.02313569374382496,
0.017984021455049515
] |
21,440 | tfields.triangles_3d | __new__ | null | def __new__(cls, tensors, *fields, **kwargs):
kwargs["dim"] = 3
kwargs["rigid"] = False
obj = super(Triangles3D, cls).__new__(cls, tensors, *fields, **kwargs)
if not len(obj) % 3 == 0:
warnings.warn(
"Input object of size({0}) has no divider 3 and"
" does not describe triangles.".format(len(obj))
)
return obj
| (cls, tensors, *fields, **kwargs) | [
-0.07245487719774246,
-0.025391552597284317,
-0.017206234857439995,
-0.005413450300693512,
-0.03480781242251396,
0.019299736246466637,
-0.04046834632754326,
0.01908409595489502,
-0.041546545922756195,
0.0330108143389225,
0.049668967723846436,
0.051358141005039215,
-0.09445010125637054,
-0.014070478267967701,
-0.011114419437944889,
-0.003396322252228856,
-0.021635830402374268,
0.01042257621884346,
-0.004040994681417942,
-0.04686565324664116,
-0.01735898107290268,
0.03157321736216545,
0.0005722308997064829,
0.07320961356163025,
0.03985736891627312,
0.002221536124125123,
-0.0032570550683885813,
0.01937161572277546,
0.04887828975915909,
0.00825719628483057,
-0.07123291492462158,
0.11083870381116867,
-0.01259694155305624,
0.09689401835203171,
-0.020503723993897438,
-0.06476373225450516,
-0.006231083068996668,
-0.017296085134148598,
-0.04805167019367218,
0.056892890483140945,
0.00724189355969429,
-0.02542749233543873,
-0.013252845034003258,
-0.005916608963161707,
0.020988911390304565,
0.002169872634112835,
0.10106305032968521,
0.0016060650814324617,
-0.09445010125637054,
-0.04337948188185692,
0.029991861432790756,
-0.025283731520175934,
0.05365829914808273,
-0.011833217926323414,
-0.028428474441170692,
-0.013127055019140244,
0.04115120694041252,
-0.007021761499345303,
-0.09128738939762115,
0.019030187278985977,
-0.05412551760673523,
0.0514659620821476,
0.027565917000174522,
-0.04370294138789177,
-0.031105998903512955,
-0.03712593391537666,
0.0008951285853981972,
0.03239983692765236,
0.0075249201618134975,
0.02726042829453945,
-0.025265762582421303,
0.016559317708015442,
0.027727646753191948,
-0.0013376388233155012,
0.05613815039396286,
0.0020474521443247795,
0.06925622373819351,
0.01797894388437271,
0.022785907611250877,
-0.01739492081105709,
-0.033406153321266174,
-0.01761055923998356,
-0.004160045646131039,
0.07098133862018585,
-0.0022810616064816713,
0.019479434937238693,
-0.03239983692765236,
-0.06163695827126503,
-0.0024416681844741106,
-0.01788909360766411,
-0.07098133862018585,
-0.00483841123059392,
-0.03712593391537666,
-0.025265762582421303,
0.009757687337696552,
-0.009667837992310524,
0.014402922242879868,
-0.05444897711277008,
0.026865089312195778,
0.02717057801783085,
0.0018733682809397578,
-0.014959990978240967,
-0.040073007345199585,
0.0023046473506838083,
0.014133372344076633,
-0.07216735184192657,
-0.026775239035487175,
-0.04452955722808838,
0.000816510000731796,
0.02199522964656353,
0.005611119791865349,
0.09725341945886612,
0.017565634101629257,
0.10048800706863403,
-0.025679070502519608,
-0.0359758585691452,
-0.011392953805625439,
0.016577286645770073,
0.0055033001117408276,
-0.013109085150063038,
0.0161819476634264,
0.012012917548418045,
-0.016703076660633087,
0.05261604115366936,
0.010916749946773052,
0.05624597147107124,
0.0075383977964520454,
-0.031177878379821777,
0.012390286661684513,
-0.004959708545356989,
-0.015535029582679272,
0.02717057801783085,
-0.03063878044486046,
-0.019856804981827736,
-0.01971304416656494,
0.05405363813042641,
0.03766503557562828,
-0.010179981589317322,
-0.03033328987658024,
-0.005727924406528473,
0.05624597147107124,
0.03126772865653038,
0.04999242722988129,
0.04974084720015526,
-0.0730658546090126,
0.06145726144313812,
0.021563950926065445,
-0.04582339525222778,
-0.016424542292952538,
0.03628134727478027,
-0.0196591354906559,
0.008450373075902462,
0.04596715420484543,
0.025409521535038948,
-0.06807020306587219,
0.006010951474308968,
-0.0269369687885046,
-0.13024626672267914,
0.06415275484323502,
0.015130705200135708,
-0.012264496646821499,
-0.004310544114559889,
0.014070478267967701,
0.027134638279676437,
0.0028257761150598526,
0.006747719831764698,
0.05836642533540726,
-0.11328262090682983,
-0.06656073033809662,
0.0251759123057127,
0.023522676900029182,
-0.017772288993000984,
0.035760220140218735,
0.08402752876281738,
-0.047871969640254974,
0.0069049568846821785,
-0.014690441079437733,
-0.015427209436893463,
0.0034457396250218153,
-0.0074665178544819355,
0.033765554428100586,
-0.01645149663090706,
0.02287575788795948,
-0.004640741739422083,
0.042984142899513245,
-0.006356873083859682,
-0.0013342694146558642,
0.04025270789861679,
0.0421934649348259,
0.014366982504725456,
-0.023342976346611977,
0.01883251778781414,
0.003447985975071788,
0.02312733791768551,
0.031663067638874054,
0.02310936711728573,
0.003623192897066474,
-0.03507735952734947,
0.00043184056994505227,
0.042948201298713684,
-0.05132220312952995,
0.004258880391716957,
0.023271096870303154,
-0.05789920687675476,
-0.0073362356051802635,
0.018302403390407562,
0.0007783238543197513,
0.009622912853956223,
-0.008010108955204487,
-0.004604802001267672,
0.03182479739189148,
-0.023342976346611977,
0.012021902948617935,
0.03615555912256241,
-0.008081989362835884,
0.001987926661968231,
-0.008917592465877533,
-0.0025629654992371798,
-0.02404380589723587,
0.01521157007664442,
0.10091929137706757,
0.019569285213947296,
-0.07281427085399628,
-0.00811343640089035,
-0.048447009176015854,
0.001512845978140831,
0.0016442512860521674,
-0.007435070350766182,
-0.07026253640651703,
-0.004824934061616659,
-0.01938958652317524,
0.0208631232380867,
-0.04862670972943306,
0.03664074465632439,
0.014528712257742882,
0.038958869874477386,
0.014519726857542992,
-0.05006430670619011,
0.023522676900029182,
-0.0005958164692856371,
-0.007565352600067854,
-0.03956985101103783,
0.030746599659323692,
-0.0034232772886753082,
0.0543411560356617,
0.0303692314773798,
-0.009245543740689754,
0.03577818721532822,
-0.004276850260794163,
0.017233191058039665,
-0.07022660225629807,
0.0021024851594120264,
-0.03985736891627312,
0.014492771588265896,
0.016316723078489304,
0.011590623296797276,
0.05940868332982063,
-0.06548252701759338,
-0.008266180753707886,
-0.0330108143389225,
-0.018347328528761864,
-0.0013421312905848026,
0.058905526995658875,
0.0930125042796135,
0.03613758832216263,
-0.01434002723544836,
0.03498750925064087,
0.01213870756328106,
-0.029434792697429657,
0.010772990062832832,
0.0497049055993557,
0.08194301277399063,
0.023828165605664253,
-0.025840800255537033,
0.014214237220585346,
-0.06548252701759338,
-0.004640741739422083,
0.02512200176715851,
-0.005435912404209375,
-0.004535168409347534,
0.00006092939293012023,
-0.022138988599181175,
-0.025876741856336594,
-0.042085643857717514,
0.026739299297332764,
-0.004472273401916027,
-0.018904397264122963,
-0.02228274941444397,
-0.008917592465877533,
-0.03737751394510269,
-0.011959007941186428,
0.03845571354031563,
-0.02310936711728573,
-0.03536488115787506,
0.006181665696203709,
-0.015004916116595268,
-0.08251804858446121,
0.06066657975316048,
0.0031761901918798685,
-0.023001547902822495,
-0.019838834181427956,
-0.04927362874150276,
0.032238107174634933,
-0.008023587055504322,
-0.0228577870875597,
-0.07346118986606598,
0.018365297466516495,
-0.0162268728017807,
0.027691707015037537,
-0.02806907519698143,
0.03649698570370674,
0.04690159484744072,
-0.008715430274605751,
0.01592138409614563,
0.03293893486261368,
0.05937274545431137,
0.04514053836464882,
-0.03475390002131462,
-0.014968975447118282,
0.05581469088792801,
0.00037708834861405194,
-0.05477243661880493,
-0.03328036516904831,
0.02348673716187477,
-0.03475390002131462,
-0.05430521443486214,
0.04190594330430031,
-0.07126885652542114,
-0.032309986650943756,
0.0011264918139204383,
-0.028769904747605324,
0.026739299297332764,
-0.011680473573505878,
-0.01994665525853634,
-0.03935420885682106,
-0.03148336708545685,
0.05940868332982063,
-0.0006407413748092949,
0.03766503557562828,
0.0019014462595805526,
0.03446638211607933,
-0.025283731520175934,
-0.008010108955204487,
0.03881511092185974,
-0.04492489621043205,
-0.025876741856336594,
0.04492489621043205,
-0.04230128228664398,
0.08230241388082504,
0.051394082605838776,
-0.0014566897880285978,
-0.04895016923546791,
0.020485753193497658,
0.005943563766777515,
0.01043156161904335,
-0.03859947249293327,
-0.030171561986207962,
0.006109786219894886,
-0.021833499893546104,
-0.019299736246466637,
-0.0062086209654808044,
-0.027080727741122246,
0.02690102905035019,
0.06515907496213913,
-0.006837569177150726,
-0.02864411473274231,
0.029075393453240395,
-0.04057616740465164,
-0.04690159484744072,
0.05818672850728035,
-0.001965464325621724,
-0.02602050080895424,
-0.01646946743130684,
0.026433810591697693,
0.032561566680669785,
-0.008432403206825256,
-0.01199494767934084,
0.03328036516904831,
0.016065143048763275,
0.013127055019140244,
-0.007906781509518623,
-0.023846136406064034,
0.028859755024313927,
-0.028608174994587898,
-0.053730178624391556,
0.04420609772205353,
0.013756003230810165,
0.02835659496486187,
0.020036503672599792,
0.026146290823817253,
0.016271797940135002,
-0.022121019661426544,
0.034574199467897415,
-0.05710852891206741,
-0.05994778499007225,
0.0341249518096447,
-0.018958305940032005,
0.017565634101629257,
0.0020317283924669027,
-0.025822831317782402,
-0.06900463998317719,
-0.04625467583537102,
-0.029632462188601494,
0.01646946743130684,
-0.02487042360007763,
0.01594833843410015,
0.059480562806129456,
0.05998372286558151,
0.03626337647438049,
-0.026703359559178352,
0.04808761179447174,
0.05333483964204788,
0.03387337177991867,
0.0191020667552948,
0.04808761179447174,
-0.011644533835351467,
-0.0151846157386899,
-0.01591239869594574,
-0.013702093623578548,
0.06501530855894089,
0.012605926021933556,
0.04697347432374954,
0.023846136406064034,
0.029937950894236565,
0.01937161572277546,
0.023612525314092636,
-0.05592251196503639,
0.018742667511105537,
0.062068238854408264,
0.0004821002949029207,
-0.052508220076560974,
0.0015072303358465433,
-0.007713604718446732,
-0.036371197551488876,
-0.011258179321885109,
-0.022929668426513672,
-0.005768356844782829,
0.010611261241137981,
-0.011833217926323414,
0.03877917304635048,
0.06397305428981781,
-0.06329019367694855,
0.02400786429643631,
-0.02059357240796089,
-0.021042821928858757,
-0.0016509899869561195,
-0.0006272638565860689,
-0.02835659496486187,
-0.005682999733835459,
0.01761055923998356,
0.06332613527774811,
0.07238299399614334,
0.020341994240880013,
-0.02055763266980648,
0.027889376506209373,
-0.03683841601014137,
-0.03813225403428078,
-0.030854418873786926,
-0.000007023902526270831,
-0.006415275391191244,
-0.043307602405548096,
0.031429458409547806,
0.004020778462290764,
-0.056892890483140945,
-0.05405363813042641,
-0.09056859463453293,
0.00005461182809085585,
-0.055167775601148605,
-0.029147272929549217,
-0.04319978132843971,
0.04826730862259865,
0.02781749702990055,
0.01850905828177929,
-0.02513997256755829,
-0.0223007183521986,
0.0027516500558704138,
0.04945332556962967,
-0.015130705200135708,
-0.060594700276851654,
-0.05207693949341774,
0.0004001123597845435,
-0.030279381200671196,
0.022929668426513672,
-0.007246385794132948,
-0.005040573421865702,
0.05595845356583595,
-0.0676029846072197,
0.05150190368294716,
0.04309196025133133,
0.008746877312660217,
-0.0257329810410738,
-0.019173946231603622,
-0.009362348355352879,
0.05872582644224167,
-0.0026236139237880707,
0.014951005578041077,
0.006100801285356283,
-0.0015341852558776736,
-0.039533909410238266,
0.038311950862407684,
0.004454303532838821,
-0.0101530272513628,
0.0035378357861191034,
-0.016020217910408974,
-0.002313632285222411,
-0.04808761179447174,
0.05624597147107124,
0.014124387875199318,
0.01679292693734169,
-0.030620809644460678,
-0.05002836510539055,
0.023576585575938225,
0.036946237087249756,
0.02289372868835926,
-0.0008339183987118304,
-0.024690723046660423,
-0.05908522382378578,
0.04054022580385208,
-0.031016148626804352,
0.002989751985296607,
0.04194188490509987,
0.03268735483288765,
-0.04686565324664116,
-0.02109673246741295,
-0.017170295119285583,
-0.007484487723559141,
0.0014825216494500637,
-0.07827714085578918,
0.07870841771364212,
0.023558616638183594,
-0.006550049874931574,
-0.03065674938261509,
-0.01490608137100935,
0.029003513976931572,
-0.0382041335105896,
0.025337642058730125,
-0.00841443333774805,
0.017745334655046463,
0.052292581647634506,
-0.043487299233675,
0.01992868445813656,
-0.00592559389770031,
0.021510040387511253,
-0.017152326181530952,
-0.021887410432100296,
-0.04492489621043205,
0.017269130796194077,
-0.007453040685504675,
-0.0382041335105896,
0.025409521535038948,
0.01098863035440445,
-0.05085498467087746,
0.012219572439789772,
-0.0036703641526401043,
0.03870728984475136,
0.04366699978709221,
0.007268848363310099,
-0.0318068265914917,
0.007080163806676865,
0.027871405705809593,
0.007161028683185577,
-0.004465534817427397,
0.032327957451343536,
0.004326267633587122,
-0.02312733791768551,
-0.00535504799336195,
-0.0011461464455351233,
0.043307602405548096,
-0.013818898238241673,
0.0024573919363319874,
0.018023869022727013,
0.06343395262956619,
0.010224906727671623,
0.07648014277219772,
0.017287099733948708,
-0.03899481147527695,
-0.002042959677055478,
0.019443495199084282,
-0.029416823759675026,
-0.07698330283164978,
-0.0208631232380867,
0.036335255950689316,
-0.0693640410900116,
-0.02726042829453945,
0.028787873685359955,
0.0015330620808526874,
-0.01850905828177929,
0.021042821928858757,
0.05010024458169937,
-0.008481821045279503,
0.022408539429306984,
0.013791943900287151,
-0.022678088396787643,
0.01315401028841734,
-0.010799945332109928,
0.023953955620527267,
-0.030459079891443253,
-0.0474766306579113,
-0.015579954721033573,
-0.007129581179469824,
-0.0666685476899147,
0.04956114664673805,
-0.031070059165358543,
0.05556311458349228,
0.0013949180720373988,
-0.0567491315305233,
-0.03687435761094093,
0.010889795608818531,
-0.015840519219636917,
-0.03964173048734665,
0.046721894294023514,
-0.022138988599181175,
0.025337642058730125,
-0.04467331990599632,
-0.0065275877714157104,
-0.03383743390440941,
-0.079930379986763,
0.019892744719982147,
0.09387506544589996,
-0.024834483861923218,
-0.0375572144985199,
-0.02404380589723587,
-0.0107100959867239,
0.027044788002967834,
-0.0313396081328392,
-0.002087884582579136,
0.051933180540800095,
-0.07590510696172714,
-0.0095510333776474,
-0.0329209640622139,
0.021276431158185005,
-0.02806907519698143,
-0.0336577333509922,
0.0036546404007822275,
-0.02310936711728573,
0.0068465545773506165,
-0.044996775686740875,
0.017026536166667938,
0.03363976255059242,
-0.0026595538947731256,
-0.04427797719836235,
-0.007125088945031166,
-0.012237542308866978,
-0.021510040387511253,
0.014825216494500637,
-0.08941851556301117,
0.005768356844782829,
-0.0003697880601976067,
0.04485301673412323,
-0.005781834479421377,
-0.0219772607088089,
0.061205681413412094,
-0.013055175542831421,
-0.028266744688153267,
-0.005611119791865349,
0.008167346008121967,
0.001600449439138174,
-0.02370237559080124,
0.026739299297332764,
0.026236139237880707,
-0.01938958652317524,
0.004025270696729422,
0.03434059023857117,
-0.03346006199717522,
0.06106192246079445,
0.03971360996365547,
0.038060374557971954,
-0.03939015045762062,
-0.00881426502019167,
0.011348028667271137,
-0.07187983393669128,
0.013171980157494545,
0.015130705200135708,
0.01619991846382618,
0.042409103363752365,
0.0185449980199337,
0.04769227281212807,
0.01675698719918728,
0.0049192761071026325,
-0.031950585544109344,
-0.010395620949566364,
0.009919417090713978,
-0.0298121627420187,
0.002803313545882702,
0.021869439631700516,
0.00019935423915740103,
-0.053981758654117584,
0.030279381200671196,
-0.032309986650943756,
-0.01565183512866497,
0.009308438748121262,
0.03216622769832611,
0.054269276559352875,
-0.006374842952936888,
-0.034610141068696976,
-0.024475084617733955,
0.0005079320981167257,
0.001092798076570034,
0.03496953845024109,
0.030477050691843033,
0.013899763114750385,
-0.011536713689565659,
-0.07870841771364212,
0.06307455897331238,
0.005957041401416063,
0.03624540567398071,
-0.01213870756328106,
-0.02864411473274231,
-0.014079462736845016,
-0.034879691898822784,
-0.002670785179361701,
0.05412551760673523,
0.04769227281212807,
-0.0417262464761734,
-0.030890358611941338,
0.015508074313402176,
0.08898723870515823,
0.013522394001483917,
0.03522111847996712,
-0.04391857981681824,
-0.0018273202003911138,
0.00601993640884757,
-0.006949881557375193,
0.03881511092185974,
-0.03960578888654709,
0.003447985975071788,
-0.007214938756078482,
-0.004142075777053833,
-0.05186130106449127,
-0.0421934649348259,
0.04312790185213089,
0.019227856770157814,
-0.04143872484564781,
-0.0474766306579113,
0.0208631232380867,
-0.018706727772951126,
0.04427797719836235,
-0.018311388790607452,
0.006249053403735161,
0.050531525164842606,
-0.012048857286572456,
-0.022480418905615807,
0.02429538406431675,
-0.02929103374481201,
-0.007435070350766182,
0.00840095616877079,
0.007789977360516787,
0.04391857981681824,
0.005386495031416416,
-0.013082129880785942,
0.05416145548224449,
0.023289067670702934,
-0.009236559271812439,
-0.02602050080895424,
0.05347859859466553,
-0.04420609772205353,
0.0061322483234107494,
-0.06311049312353134,
-0.010781975463032722,
-0.07870841771364212,
-0.04190594330430031,
-0.05380205810070038,
0.0545208565890789,
0.07734270393848419,
0.0029201183933764696,
0.03622743859887123,
0.04632655531167984,
0.0021024851594120264
] |
21,447 | tfields.triangles_3d | _baricentric |
Determine baricentric coordinates like
[u,v,w] = [ab, ac, ab x ac]^-1 * ap
where ax is vector from point a to point x
Examples:
empty Meshes return right formatted array
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([], faces=[])
>>> m.triangles()._baricentric(np.array([0.2, 0.2, 0]))
array([], dtype=float64)
>>> m2 = tfields.Mesh3D([[0,0,0], [2,0,0], [0,2,0], [0,0,2]],
... faces=[[0, 1, 2], [0, 2, 3]]);
>>> assert np.array_equal(
... m2.triangles()._baricentric(np.array([0.2, 0.2, 0]),
... delta=2.),
... [[0.1, 0.1, 0.0],
... [0.1, 0.0, 0.1]])
if point lies in the plane, return np.nan, else inf for w if delta
is exactly 0.
>>> baric = m2.triangles()._baricentric(np.array([0.2, 0.2, 0]),
... delta=0.),
>>> baric_expected = np.array([[0.1, 0.1, np.nan],
... [0.1, 0.0, np.inf]])
>>> assert ((baric == baric_expected) | (np.isnan(baric) &
... np.isnan(baric_expected))).all()
Raises:
If you define triangles that have colinear side vectors or in general lead to
not invertable matrices [ab, ac, ab x ac] the values will be nan and
a warning will be triggered:
>>> import warnings
>>> import numpy as np
>>> import tfields
>>> m3 = tfields.Mesh3D([[0,0,0], [2,0,0], [4,0,0], [0,1,0]],
... maps=[[[0, 1, 2], [0, 1, 3]]]);
>>> with warnings.catch_warnings(record=True) as wrn:
... warnings.simplefilter("ignore")
... bc = m3.triangles()._baricentric(np.array([0.2, 0.2, 0]), delta=0.3)
>>> bc_exp = np.array([[ np.nan, np.nan, np.nan], [ 0.1, 0.2, 0. ]])
>>> assert ((bc == bc_exp) | (np.isnan(bc) &
... np.isnan(bc_exp))).all()
The warning would be:
UserWarning('Singular matrix: Could not invert matrix ...
... [[ 2. 4. 0.], [ 0. 0. 0.], [ 0. 0. 0.]]. Return nan matrix.',)
Returns:
np.ndarray: barycentric coordinates u, v, w of point with respect to each triangle
| def _baricentric(self, point, delta=0.0):
"""
Determine baricentric coordinates like
[u,v,w] = [ab, ac, ab x ac]^-1 * ap
where ax is vector from point a to point x
Examples:
empty Meshes return right formatted array
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([], faces=[])
>>> m.triangles()._baricentric(np.array([0.2, 0.2, 0]))
array([], dtype=float64)
>>> m2 = tfields.Mesh3D([[0,0,0], [2,0,0], [0,2,0], [0,0,2]],
... faces=[[0, 1, 2], [0, 2, 3]]);
>>> assert np.array_equal(
... m2.triangles()._baricentric(np.array([0.2, 0.2, 0]),
... delta=2.),
... [[0.1, 0.1, 0.0],
... [0.1, 0.0, 0.1]])
if point lies in the plane, return np.nan, else inf for w if delta
is exactly 0.
>>> baric = m2.triangles()._baricentric(np.array([0.2, 0.2, 0]),
... delta=0.),
>>> baric_expected = np.array([[0.1, 0.1, np.nan],
... [0.1, 0.0, np.inf]])
>>> assert ((baric == baric_expected) | (np.isnan(baric) &
... np.isnan(baric_expected))).all()
Raises:
If you define triangles that have colinear side vectors or in general lead to
not invertable matrices [ab, ac, ab x ac] the values will be nan and
a warning will be triggered:
>>> import warnings
>>> import numpy as np
>>> import tfields
>>> m3 = tfields.Mesh3D([[0,0,0], [2,0,0], [4,0,0], [0,1,0]],
... maps=[[[0, 1, 2], [0, 1, 3]]]);
>>> with warnings.catch_warnings(record=True) as wrn:
... warnings.simplefilter("ignore")
... bc = m3.triangles()._baricentric(np.array([0.2, 0.2, 0]), delta=0.3)
>>> bc_exp = np.array([[ np.nan, np.nan, np.nan], [ 0.1, 0.2, 0. ]])
>>> assert ((bc == bc_exp) | (np.isnan(bc) &
... np.isnan(bc_exp))).all()
The warning would be:
UserWarning('Singular matrix: Could not invert matrix ...
... [[ 2. 4. 0.], [ 0. 0. 0.], [ 0. 0. 0.]]. Return nan matrix.',)
Returns:
np.ndarray: barycentric coordinates u, v, w of point with respect to each triangle
"""
if self.ntriangles() == 0:
return np.array([])
a, _, _ = self.corners()
ap = point - a
# matrix vector product for matrices and vectors
barCoords = np.einsum("...ji,...i", self._baricentric_matrix, ap)
with warnings.catch_warnings():
# python2.7
warnings.filterwarnings(
"ignore", message="invalid value encountered in divide"
)
warnings.filterwarnings(
"ignore", message="divide by zero encountered in divide"
)
# python3.x
warnings.filterwarnings(
"ignore", message="invalid value encountered in true_divide"
)
warnings.filterwarnings(
"ignore", message="divide by zero encountered in true_divide"
)
barCoords[:, 2] /= delta # allow devide by 0.
return barCoords
| (self, point, delta=0.0) | [
-0.01578470692038536,
0.03100169263780117,
-0.047364261001348495,
0.0671534389257431,
-0.0021847172174602747,
-0.039294492453336716,
-0.04562054201960564,
-0.0032263861503452063,
-0.04979735612869263,
0.004876329097896814,
0.02069145068526268,
0.05223045125603676,
-0.07489879429340363,
-0.0504867322742939,
-0.07514210045337677,
-0.0014699952444061637,
-0.023965992033481598,
0.06427427381277084,
0.009377555921673775,
0.006908977869898081,
-0.039010632783174515,
-0.017781874164938927,
0.013817955739796162,
0.10656958818435669,
0.008100180886685848,
-0.006087807938456535,
-0.03286706656217575,
-0.016058431938290596,
0.006782254204154015,
0.016362568363547325,
-0.006143566220998764,
0.009124108590185642,
-0.005071483552455902,
0.011638307012617588,
-0.003163024317473173,
-0.053690310567617416,
0.07781850546598434,
0.015298089012503624,
-0.08150870352983475,
0.04610716179013252,
0.013077888637781143,
-0.012155340053141117,
0.0697081908583641,
-0.008774351328611374,
0.030474523082375526,
-0.05064893886446953,
0.041889797896146774,
0.0032770757097750902,
-0.11322005093097687,
0.021837033331394196,
0.036719467490911484,
-0.06897825747728348,
0.06086794286966324,
-0.03154914081096649,
0.02392544038593769,
0.03763188049197197,
0.02392544038593769,
0.007355045061558485,
-0.018795663490891457,
0.03185327723622322,
-0.032684583216905594,
0.024290405213832855,
0.001548563945107162,
-0.04113959148526192,
0.028365839272737503,
-0.03098141774535179,
0.06330103427171707,
0.0015092795947566628,
0.045377232134342194,
0.06358490139245987,
-0.04270082712173462,
0.04902687668800354,
0.03676002100110054,
-0.03923366591334343,
0.00792783685028553,
-0.02710874006152153,
0.10186560451984406,
0.020225107669830322,
0.00811538752168417,
-0.010360931977629662,
-0.04306579381227493,
-0.016575463116168976,
0.06893771141767502,
-0.0007014158181846142,
-0.006954598240554333,
0.0370844304561615,
0.00847021397203207,
0.004308606963604689,
-0.027027636766433716,
0.020427865907549858,
-0.0400649756193161,
-0.058597054332494736,
-0.008632420562207699,
0.03503657504916191,
-0.05340644717216492,
-0.002863956382498145,
0.011739686131477356,
-0.032238516956567764,
0.00048028293531388044,
-0.002785387681797147,
0.004982776939868927,
0.010573827661573887,
-0.017944080755114555,
0.014841883443295956,
0.03542181849479675,
-0.015632638707756996,
-0.0375102236866951,
-0.07384445518255234,
0.027047913521528244,
-0.012976509518921375,
-0.04022718220949173,
0.00590532599017024,
0.0008135663229040802,
-0.00081166549352929,
-0.058637604117393494,
-0.021715378388762474,
-0.07262790203094482,
-0.002623181091621518,
-0.016392981633543968,
-0.009245763532817364,
0.04610716179013252,
-0.032806240022182465,
0.019870281219482422,
-0.010077071376144886,
-0.009965553879737854,
0.009205211885273457,
0.028730804100632668,
0.046512678265571594,
-0.046918194741010666,
0.03029203973710537,
0.00823197327554226,
0.030393419787287712,
0.014233609661459923,
-0.03659781441092491,
-0.016362568363547325,
0.03645588085055351,
0.016575463116168976,
-0.015389329753816128,
-0.017133047804236412,
0.0070661152713000774,
0.06889715790748596,
0.011628169566392899,
0.03258320689201355,
-0.008845316246151924,
-0.03532043844461441,
0.09375528246164322,
0.03345506638288498,
-0.015460294671356678,
0.004017142113298178,
-0.016261188313364983,
-0.02236420474946499,
0.029947351664304733,
0.03341451287269592,
0.0005445952410809696,
-0.0007958250353112817,
-0.027372324839234352,
0.007694664876908064,
-0.05121666193008423,
0.030170384794473648,
0.01861318200826645,
-0.015298089012503624,
-0.017994768917560577,
0.000010890320481848903,
0.013513818383216858,
0.0001411385601386428,
0.03345506638288498,
0.025060884654521942,
-0.043755169957876205,
-0.03444857895374298,
0.01110099907964468,
-0.026764051988720894,
0.02925797551870346,
-0.0965127944946289,
0.04582330211997032,
-0.015399467200040817,
-0.010827275924384594,
-0.04947294294834137,
-0.008789557963609695,
0.019758764654397964,
-0.022688616067171097,
0.0030160248279571533,
-0.0002331716677872464,
0.021837033331394196,
-0.017356082797050476,
0.02812252938747406,
0.03158969059586525,
0.06009746342897415,
-0.04574219882488251,
0.02191813662648201,
-0.011030033230781555,
-0.020225107669830322,
0.028365839272737503,
0.07887285202741623,
0.04209255427122116,
0.05291983112692833,
-0.00000921222090255469,
0.08872688561677933,
-0.01901869662106037,
0.01710263453423977,
-0.02998790331184864,
-0.0007261269493028522,
-0.04257917404174805,
-0.005413637962192297,
0.015683328732848167,
0.0053426725789904594,
0.011638307012617588,
0.0034443510230630636,
-0.009382625110447407,
0.0011525523150339723,
0.0375102236866951,
0.0399230420589447,
-0.05612340569496155,
-0.07461493462324142,
0.0026155777741223574,
-0.03678029403090477,
0.016686981543898582,
0.040004145354032516,
-0.011445687152445316,
-0.005061345640569925,
0.03465133532881737,
0.056731678545475006,
-0.009975692257285118,
0.0055657061748206615,
-0.031772173941135406,
-0.04789143055677414,
0.0370844304561615,
0.028365839272737503,
0.05016232281923294,
-0.021370690315961838,
-0.018491527065634727,
-0.009909795597195625,
-0.016626153141260147,
-0.054582443088293076,
-0.021411241963505745,
-0.018268492072820663,
-0.03590843454003334,
0.025709711015224457,
-0.054744649678468704,
0.07854843884706497,
-0.01104017160832882,
0.004039952531456947,
-0.05482575297355652,
0.019008560106158257,
0.04732371121644974,
0.00952962413430214,
0.0032187828328460455,
-0.004990380257368088,
0.03057590126991272,
0.008120456710457802,
0.007192838937044144,
-0.06974874436855316,
-0.025060884654521942,
0.012003271840512753,
0.0015726415440440178,
0.04983790963888168,
-0.09910809248685837,
0.07469603419303894,
-0.0032086449209600687,
0.07850788533687592,
0.008211697451770306,
-0.014304574579000473,
-0.054136376827955246,
0.06609909981489182,
-0.003398730419576168,
-0.005981360096484423,
-0.015450157225131989,
0.03313065320253372,
0.034387752413749695,
0.02078269235789776,
0.04322800040245056,
-0.053852517157793045,
0.02177620492875576,
-0.025770537555217743,
-0.014243747107684612,
-0.018957870081067085,
0.02307385765016079,
0.05705609172582626,
0.04870246350765228,
0.013716576620936394,
0.013797679916024208,
-0.05202769488096237,
-0.03450940549373627,
0.007284080144017935,
0.013878783211112022,
-0.07380390167236328,
-0.04229531064629555,
0.004909277427941561,
-0.06285496801137924,
0.036841124296188354,
-0.020275797694921494,
-0.003872677218168974,
0.010492724366486073,
-0.044485099613666534,
-0.019860142841935158,
0.03909173607826233,
-0.030352868139743805,
-0.041322074830532074,
-0.050121769309043884,
0.005509947892278433,
-0.049391839653253555,
-0.012033685110509396,
-0.011121274903416634,
0.036273401230573654,
-0.013280646875500679,
0.0018412957433611155,
0.022404754534363747,
0.08361738920211792,
-0.030231213197112083,
0.017944080755114555,
-0.03905118629336357,
-0.030231213197112083,
0.008617213927209377,
0.012996785342693329,
-0.0017677959986031055,
0.0504867322742939,
0.030819211155176163,
0.020073039457201958,
-0.0024825178552418947,
0.02392544038593769,
0.05705609172582626,
0.03146803751587868,
0.01585567370057106,
-0.031204450875520706,
0.0804138109087944,
-0.045498888939619064,
-0.016028016805648804,
0.014740504324436188,
-0.040429938584566116,
0.028305012732744217,
0.02840639092028141,
0.02550695277750492,
0.015156158246099949,
-0.05888091400265694,
0.02035689912736416,
0.01649435982108116,
-0.03574622794985771,
0.050243426114320755,
-0.03400251269340515,
0.03542181849479675,
-0.050081219524145126,
0.04618826508522034,
0.0016182620311155915,
0.013250233605504036,
0.007953180931508541,
0.007218183483928442,
0.017923804000020027,
0.03233989700675011,
0.016433533281087875,
0.03970000892877579,
0.1235201507806778,
-0.007050908170640469,
-0.005368017125874758,
0.0005845131818205118,
0.04343075677752495,
-0.041301798075437546,
-0.0007837862940505147,
-0.006067532114684582,
0.015531260520219803,
0.015166295692324638,
0.06654516607522964,
0.019241731613874435,
-0.019971659407019615,
-0.003563471371307969,
0.04582330211997032,
0.03781436011195183,
-0.05620450899004936,
-0.030352868139743805,
-0.010553551837801933,
-0.043755169957876205,
-0.019292419776320457,
0.03617202118039131,
-0.01564277708530426,
0.0022936994209885597,
0.0043187448754906654,
0.02798059955239296,
0.0490674264729023,
0.009656348265707493,
0.007258735131472349,
0.01927214488387108,
-0.0029805421363562346,
0.026196328923106194,
-0.01399029977619648,
-0.0040298146195709705,
0.020650899037718773,
-0.01528795063495636,
0.03592871129512787,
-0.011131412349641323,
0.025000058114528656,
-0.017345944419503212,
0.0024926557671278715,
0.01649435982108116,
-0.030069006606936455,
0.028487494215369225,
-0.030900314450263977,
-0.043471306562423706,
0.0022556823678314686,
0.01944448985159397,
-0.0377940833568573,
0.005357879213988781,
-0.01983986794948578,
-0.028872733935713768,
-0.04553943872451782,
-0.048094190657138824,
0.00494222529232502,
-0.057745467871427536,
0.00824717991054058,
-0.02028593420982361,
-0.021715378388762474,
0.013229957781732082,
-0.0013838231097906828,
-0.022019514814019203,
0.04184924438595772,
0.07789961248636246,
-0.01204382348805666,
-0.03704388067126274,
0.037145260721445084,
-0.022972477599978447,
-0.04184924438595772,
-0.01270278636366129,
0.03678029403090477,
0.03315092623233795,
-0.04407958313822746,
0.038848426192998886,
0.040855731815099716,
0.02147206850349903,
-0.012449339032173157,
-0.03361726924777031,
-0.012864992953836918,
0.024452611804008484,
-0.01140513550490141,
0.048094190657138824,
-0.044931165874004364,
-0.030819211155176163,
-0.0736011415719986,
-0.03359699621796608,
0.009195073507726192,
0.002765111858025193,
0.04180869460105896,
0.03503657504916191,
0.05567733943462372,
0.017994768917560577,
0.013828093186020851,
0.002561086555942893,
-0.06865384429693222,
-0.04557999223470688,
0.019353248178958893,
-0.013209681957960129,
-0.029197147116065025,
-0.019718213006854057,
-0.017041807994246483,
0.01615981012582779,
0.027189843356609344,
0.013949748128652573,
-0.028507770970463753,
0.012368235737085342,
0.0017031669849529862,
-0.02654101885855198,
-0.06909991800785065,
-0.027068188413977623,
0.057299401611089706,
0.015470433048903942,
0.06508530676364899,
-0.030170384794473648,
0.007851802743971348,
-0.024695919826626778,
-0.013503680936992168,
0.022303376346826553,
-0.017325667664408684,
-0.002810732228681445,
0.005175397265702486,
0.06958653777837753,
-0.015592087991535664,
0.007324631791561842,
0.01023927703499794,
-0.0032415930181741714,
0.031630244106054306,
0.001826088991947472,
0.016271326690912247,
-0.03306982293725014,
-0.05121666193008423,
-0.052554864436388016,
-0.0027296291664242744,
-0.03444857895374298,
-0.0126926489174366,
0.00117536261677742,
0.04306579381227493,
-0.06269276142120361,
0.08029215782880783,
0.1077861338853836,
-0.04776977747678757,
-0.05223045125603676,
0.023013029247522354,
0.01901869662106037,
0.04480950906872749,
-0.022384479641914368,
0.0269465334713459,
0.01996152102947235,
-0.024716196581721306,
0.009083556942641735,
0.005033466499298811,
0.02800087444484234,
0.002602905500680208,
-0.03012983314692974,
-0.026561293751001358,
-0.023601027205586433,
-0.07765629887580872,
-0.004582330118864775,
0.01665656641125679,
0.013483405113220215,
-0.04343075677752495,
-0.054582443088293076,
-0.06776171177625656,
0.05770491808652878,
-0.004686243366450071,
-0.033373963087797165,
0.009255900979042053,
-0.09051115810871124,
-0.04351186007261276,
-0.015744155272841454,
0.007740285247564316,
0.009154521860182285,
0.02540557272732258,
-0.02465536817908287,
0.0018641060451045632,
-0.007973456755280495,
0.02856859751045704,
-0.038422636687755585,
-0.0925387367606163,
0.013645610772073269,
-0.029622938483953476,
-0.0665857195854187,
-0.009179866872727871,
0.0020212435629218817,
0.005091759376227856,
-0.008972040377557278,
0.03534071519970894,
-0.019353248178958893,
-0.04732371121644974,
0.01039134617894888,
-0.021573448553681374,
0.030758384615182877,
-0.05397417023777962,
0.05940808355808258,
-0.05567733943462372,
0.005758326500654221,
-0.013321198523044586,
-0.012206030078232288,
-0.00616891123354435,
0.00467103673145175,
0.02293192595243454,
0.05713719502091408,
-0.02321578748524189,
0.00040298147359862924,
-0.008003870956599712,
0.0355231948196888,
0.022425031289458275,
-0.04586385190486908,
0.012976509518921375,
-0.0044049168936908245,
0.004374503158032894,
-0.024858126416802406,
0.007735216524451971,
0.019951384514570236,
-0.024756748229265213,
-0.01182078942656517,
0.03536098822951317,
0.004559519700706005,
0.026865430176258087,
0.013229957781732082,
-0.03465133532881737,
-0.011354446411132812,
0.00847021397203207,
-0.03657753765583038,
-0.010203794576227665,
0.02337799407541752,
0.011435549706220627,
0.008429662324488163,
-0.10113567113876343,
-0.05036507919430733,
-0.07465548068284988,
0.005783671047538519,
0.0026409225538372993,
-0.004224969074130058,
-0.003223851788789034,
0.04943239316344261,
0.02161400020122528,
-0.04197089746594429,
0.0516221784055233,
0.09351197630167007,
-0.004962501116096973,
-0.03114362433552742,
-0.007426010444760323,
-0.003596419468522072,
-0.08353628218173981,
-0.010665069334208965,
0.016950566321611404,
-0.04047049209475517,
-0.04659378156065941,
0.004326348192989826,
-0.0044074514880776405,
0.03231962025165558,
0.014578297734260559,
-0.00965127907693386,
0.052271004766225815,
-0.029197147116065025,
-0.015967190265655518,
0.018369872123003006,
-0.040916558355093,
0.0008490490145049989,
-0.04489061236381531,
-0.04874301701784134,
-0.025121713057160378,
-0.008495558984577656,
-0.0022075274027884007,
0.008713523857295513,
-0.030636729672551155,
-0.07145190984010696,
0.0012203495716676116,
0.08645600080490112,
0.059326980262994766,
-0.05539347603917122,
-0.017112772911787033,
-0.0022670875769108534,
0.020488692447543144,
-0.024310680106282234,
-0.02753453142940998,
0.07599368691444397,
-0.060502976179122925,
0.017325667664408684,
0.009560038335621357,
0.005570775363594294,
0.03098141774535179,
0.009073419496417046,
-0.001949010998941958,
-0.06881605088710785,
0.006092877127230167,
0.020681312307715416,
-0.008424593135714531,
0.0023786043748259544,
0.07542596757411957,
-0.006868426222354174,
0.01743718609213829,
-0.023844337090849876,
0.04061242192983627,
0.012206030078232288,
-0.01736621931195259,
0.004785087890923023,
-0.007243528496474028,
0.06508530676364899,
0.007618630770593882,
-0.0617600753903389,
0.06419317424297333,
-0.04095710813999176,
-0.023033306002616882,
-0.015450157225131989,
-0.014111954718828201,
0.02104627713561058,
0.05592064931988716,
-0.043187446892261505,
0.019191041588783264,
-0.006908977869898081,
-0.021309861913323402,
-0.02869025245308876,
-0.004007004201412201,
-0.017629805952310562,
0.0006196790491230786,
0.0530414842069149,
-0.01406126469373703,
-0.033698372542858124,
-0.020326485857367516,
0.051987141370773315,
0.0035406609531491995,
-0.03256293013691902,
-0.06974874436855316,
0.01045217365026474,
0.04914852976799011,
0.02495950646698475,
0.055150166153907776,
0.0012647028779610991,
-0.01710263453423977,
0.06115180253982544,
0.04314689710736275,
-0.032644033432006836,
0.047485917806625366,
0.048094190657138824,
0.02104627713561058,
0.011597755365073681,
0.038584839552640915,
-0.0524737611413002,
-0.03803739324212074,
0.020042624324560165,
0.009544831700623035,
0.05381196364760399,
0.04310634359717369,
0.023965992033481598,
0.046228814870119095,
-0.0376521535217762,
0.03919311612844467,
0.048540256917476654,
0.018886905163526535,
0.03615174442529678,
-0.06480144709348679,
-0.05855650082230568,
0.09164660423994064,
0.0009485271293669939,
-0.012165478430688381,
0.03286706656217575,
-0.042335864156484604,
-0.023965992033481598,
-0.025344746187329292,
0.010315312072634697,
0.03621257469058037,
0.030596178025007248,
-0.08613158762454987,
-0.029156595468521118,
0.011070584878325462,
-0.028872733935713768,
0.005702567752450705,
0.022465582937002182,
-0.02307385765016079,
-0.03544209152460098,
0.021107103675603867,
0.002302570268511772,
0.033678099513053894,
0.013067751191556454,
0.02652074210345745,
0.0188260767608881,
-0.019971659407019615,
-0.0885646790266037,
-0.013371887616813183,
0.02052924409508705,
0.013726714067161083,
0.00003267096326453611,
0.07437162101268768,
0.010056795552372932,
-0.004513899330049753,
0.02637881226837635,
-0.019900694489479065,
0.00414640037342906,
0.0066910129971802235,
-0.011770100332796574,
-0.0394972525537014,
-0.00637673819437623,
-0.035239335149526596,
-0.01356450840830803,
0.08621268719434738,
-0.026743775233626366,
0.03819959983229637,
-0.00317316222935915,
-0.02333744242787361,
0.04833750054240227,
-0.0065541514195501804,
-0.019738487899303436,
-0.008150869980454445,
0.017558839172124863,
-0.0036876604426652193,
0.03276568651199341,
-0.05973249673843384,
-0.022100618109107018,
-0.02899438887834549,
-0.04975680634379387,
-0.01499395165592432,
-0.019353248178958893,
0.08171146363019943,
0.021573448553681374,
0.03592871129512787,
-0.010513000190258026,
0.06723453849554062
] |
21,450 | tfields.triangles_3d | _in_triangles |
Barycentric method to optain, wheter a point is in any of the triangles
Args:
point (list of len 3)
delta (float / None):
float: acceptance in +- norm vector direction
None: accept the face with the minimum distance to the point
Returns:
np.array: boolean mask, True where point in a triangle within delta
Examples:
see tests/test_triangles_3d.py
| def _in_triangles(self, point, delta=0.0):
"""
Barycentric method to optain, wheter a point is in any of the triangles
Args:
point (list of len 3)
delta (float / None):
float: acceptance in +- norm vector direction
None: accept the face with the minimum distance to the point
Returns:
np.array: boolean mask, True where point in a triangle within delta
Examples:
see tests/test_triangles_3d.py
"""
if self.ntriangles() == 0:
return np.array([], dtype=bool)
try:
point = np.reshape(point, 3)
except ValueError:
raise ValueError(
"point must be castable to shape 3 but is of shape {0}".format(
point.shape
)
)
# min_dist_method switch if delta is None
if delta is None:
delta = 1.0
min_dist_method = True
else:
min_dist_method = False
u, v, w = self._baricentric(point, delta=delta).T
if delta == 0.0:
w[np.isnan(w)] = 0.0 # division by 0 in baricentric makes w = 0 nan.
with warnings.catch_warnings():
warnings.filterwarnings(
"ignore", message="invalid value encountered in less_equal"
)
barycentric_bools = (
((v <= 1.0) & (v >= 0.0)) & ((u <= 1.0) & (u >= 0.0)) & ((v + u <= 1.0))
)
if all(~barycentric_bools):
return barycentric_bools
if min_dist_method:
orthogonal_acceptance = np.full(
barycentric_bools.shape, False, dtype=bool
)
closest_indices = np.argmin(abs(w)[barycentric_bools])
# transform the indices to the whole array, not only the
# barycentric_bools selection
closest_indices = np.arange(len(barycentric_bools))[barycentric_bools][
closest_indices
]
orthogonal_acceptance[closest_indices] = True
else:
orthogonal_acceptance = abs(w) <= 1
return np.array(barycentric_bools & orthogonal_acceptance)
| (self, point, delta=0.0) | [
-0.0207169521600008,
-0.013175674714148045,
-0.048218175768852234,
0.016673216596245766,
-0.01000392995774746,
0.010655527003109455,
-0.011987468227744102,
0.003923955373466015,
-0.08217787742614746,
0.0006180588970892131,
0.00009949131344910711,
0.04001571983098984,
-0.05553906038403511,
-0.035071250051259995,
-0.08003143966197968,
-0.059525299817323685,
-0.03436215966939926,
0.053967561572790146,
-0.035301223397254944,
-0.015063389204442501,
-0.02152186445891857,
0.020563634112477303,
-0.0020206694025546312,
0.0655813217163086,
0.01915503479540348,
0.038425058126449585,
-0.033020634204149246,
-0.016769040375947952,
-0.0015726963756605983,
0.021981816738843918,
-0.03449631109833717,
0.054695818573236465,
-0.011642505414783955,
-0.0055577391758561134,
0.009730834513902664,
-0.04269876703619957,
0.08976706862449646,
0.05611399933695793,
-0.017631448805332184,
0.01547542866319418,
-0.047988202422857285,
-0.020237835124135017,
0.05109287053346634,
0.020563634112477303,
-0.0069375913590192795,
-0.022959211841225624,
0.02955183945596218,
0.015542504377663136,
-0.08056805282831192,
0.022135132923722267,
0.037485990673303604,
-0.0906103104352951,
0.08731399476528168,
-0.019423339515924454,
-0.013664372265338898,
-0.03028009459376335,
-0.001110350014641881,
0.00844680517911911,
-0.04626338556408882,
0.014862161129713058,
-0.018100980669260025,
0.0008869624580256641,
0.059870265424251556,
-0.017794346436858177,
-0.02575724571943283,
-0.06485306471586227,
0.0012433045776560903,
-0.0124474186450243,
0.01970122568309307,
0.042430464178323746,
-0.03888500854372978,
0.01951916329562664,
0.03079753927886486,
-0.04296707361936569,
-0.019969530403614044,
-0.021004419773817062,
0.07972481101751328,
-0.01456510927528143,
-0.01342481467872858,
-0.017756018787622452,
-0.020927762612700462,
-0.04921473562717438,
0.06991252303123474,
-0.008259950205683708,
0.017008597031235695,
0.03524373099207878,
-0.012754052877426147,
-0.007416706997901201,
0.02154102921485901,
-0.011661669239401817,
-0.011125060729682446,
-0.004249753896147013,
0.0124474186450243,
0.03846338763833046,
0.005222358275204897,
0.050172969698905945,
0.02788451872766018,
-0.026696311309933662,
-0.02144520729780197,
-0.0010905865347012877,
-0.020851103588938713,
0.027482060715556145,
-0.01415306981652975,
0.004944471176713705,
0.018560931086540222,
0.003063943237066269,
-0.02957100421190262,
-0.05354594066739082,
-0.008183291181921959,
-0.016596559435129166,
-0.02407076023519039,
-0.02650466561317444,
-0.016107860952615738,
0.014977148734033108,
-0.06328156590461731,
-0.007790416944772005,
-0.016903191804885864,
-0.0013966214610263705,
-0.048486482352018356,
-0.025814739987254143,
0.046455033123493195,
-0.02234594337642193,
0.028191152960062027,
0.0004803132324013859,
0.018848400563001633,
-0.022058473899960518,
0.04921473562717438,
0.05377591773867607,
-0.02999262697994709,
0.054772477596998215,
0.0008007216965779662,
0.07531694322824478,
0.008053930476307869,
-0.03351891413331032,
-0.038137588649988174,
0.039287466555833817,
-0.045880094170570374,
0.017037345096468925,
-0.0069375913590192795,
0.015485011041164398,
0.0730171948671341,
0.009146313183009624,
0.012878622859716415,
0.011287959292531013,
-0.0569189116358757,
0.05473414808511734,
-0.011728745885193348,
-0.020199507474899292,
0.020084518939256668,
0.03880834951996803,
-0.012658230029046535,
-0.014977148734033108,
0.02918771281838417,
0.03150663152337074,
0.0002323709923075512,
-0.060905154794454575,
-0.01944250427186489,
-0.08355773240327835,
0.00826474092900753,
0.0034160930663347244,
0.004707308951765299,
-0.00407966785132885,
-0.017679359763860703,
0.07627517729997635,
-0.018599260598421097,
0.015925796702504158,
-0.02313169278204441,
-0.018340539187192917,
-0.03614446893334389,
0.019662898033857346,
0.04116559773683548,
0.03760097920894623,
-0.04453857243061066,
0.07351547479629517,
-0.03246486186981201,
0.010090171359479427,
0.013118180446326733,
-0.024645697325468063,
0.0336913987994194,
-0.06883930414915085,
0.034036360681056976,
-0.012389925308525562,
0.013788942247629166,
-0.004434213507920504,
0.04430859535932541,
0.050096310675144196,
0.06634790450334549,
-0.04384864494204521,
0.012389925308525562,
0.027271250262856483,
-0.11529433727264404,
0.0009216982871294022,
0.06239999458193779,
0.03014594316482544,
0.02343832701444626,
0.02203930914402008,
0.035876162350177765,
-0.006583046168088913,
-0.045880094170570374,
-0.058337096124887466,
0.005423586815595627,
-0.021061914041638374,
-0.0036939799319952726,
0.000985780032351613,
0.030931692570447922,
0.0323307104408741,
0.014498032629489899,
-0.016443241387605667,
0.05377591773867607,
0.020027024671435356,
0.02035282365977764,
-0.07305552065372467,
-0.06849434226751328,
0.058068789541721344,
-0.04005404934287071,
0.017238574102520943,
0.043235376477241516,
0.01675945706665516,
-0.0305100716650486,
0.019011300057172775,
-0.0039814491756260395,
-0.037409331649541855,
0.03921080753207207,
0.0031142502557486296,
0.005787714384496212,
0.01190122775733471,
0.02759704925119877,
0.06328156590461731,
-0.041280586272478104,
-0.03944078087806702,
-0.0007270576898008585,
-0.039670757949352264,
0.010042259469628334,
-0.030490906909108162,
-0.04450024291872978,
-0.01868550106883049,
0.0160886961966753,
-0.027175426483154297,
0.05465748906135559,
0.021579358726739883,
0.05320097878575325,
-0.01650073565542698,
0.016884027048945427,
0.025872234255075455,
-0.025853069499135017,
0.015168794430792332,
0.03687272220849991,
-0.019317934289574623,
0.026217196136713028,
0.002786056138575077,
-0.0912235751748085,
-0.04794987291097641,
-0.004771989770233631,
-0.03852088004350662,
0.01766977645456791,
-0.06339655071496964,
0.05546240136027336,
0.009409827180206776,
0.029398523271083832,
-0.0038568791933357716,
-0.020831938832998276,
-0.014306386932730675,
0.06515970081090927,
0.03532039001584053,
-0.011920391581952572,
-0.0038281322922557592,
0.06151842325925827,
0.031487464904785156,
0.026025550439953804,
-0.0002323709923075512,
0.03160245344042778,
0.007162775844335556,
-0.0327906608581543,
-0.02430073544383049,
-0.020486975088715553,
0.04166387766599655,
0.030989186838269234,
0.02684962935745716,
-0.02240343764424324,
0.02393660694360733,
-0.032867319881916046,
-0.030835868790745735,
0.01686486415565014,
0.054619159549474716,
-0.08179458975791931,
-0.03407469019293785,
0.001849385560490191,
-0.025431446731090546,
0.04641670361161232,
-0.03152579441666603,
-0.003351412480697036,
0.011259213089942932,
-0.01577248051762581,
-0.056382305920124054,
0.034994591027498245,
0.018905894830822945,
0.028076164424419403,
-0.0906103104352951,
0.0005869164015166461,
-0.08693070709705353,
0.026006385684013367,
-0.03670024126768112,
0.023342503234744072,
-0.03604864701628685,
-0.002147634979337454,
-0.0037634517066180706,
0.014708844013512135,
-0.05749385058879852,
0.01837886869907379,
-0.06569630652666092,
-0.03955576941370964,
-0.04676166549324989,
-0.022940047085285187,
-0.03591449186205864,
0.0004635441873688251,
0.015120883472263813,
0.023112528026103973,
-0.036527760326862335,
0.004518058616667986,
0.029954297468066216,
0.0018972971010953188,
0.028804419562220573,
-0.053814247250556946,
0.03505208343267441,
-0.0610201433300972,
-0.04756658151745796,
0.0321773923933506,
-0.053469281643629074,
-0.008350982330739498,
0.04737493395805359,
-0.009639802388846874,
0.013089433312416077,
-0.03970908746123314,
0.035799503326416016,
0.0062620388343930244,
-0.01827346347272396,
0.08217787742614746,
-0.0037658473011106253,
0.026370514184236526,
-0.04093562439084053,
0.024684026837348938,
0.040552329272031784,
0.0068561420775949955,
-0.00039556968840770423,
-0.01507297158241272,
0.016040785238146782,
0.003265171777456999,
0.02765454351902008,
0.05611399933695793,
0.0906103104352951,
-0.002599201165139675,
0.0005312192370183766,
0.01788058876991272,
0.015101718716323376,
-0.038712527602910995,
-0.04074397683143616,
-0.026734640821814537,
-0.017535625025629997,
0.020851103588938713,
0.0323307104408741,
0.03664274886250496,
-0.03144913539290428,
0.0023656324483454227,
0.05542407184839249,
-0.007986853830516338,
-0.035358719527721405,
0.007277763448655605,
-0.01456510927528143,
-0.03708353638648987,
-0.00418507307767868,
-0.0046234638430178165,
-0.030260929837822914,
0.004273709841072559,
0.008523463271558285,
0.02226928621530533,
0.028152823448181152,
0.03568451851606369,
0.016079114750027657,
0.000810303958132863,
0.024396557360887527,
0.0326373428106308,
0.021560193970799446,
0.03917247802019119,
0.010099753737449646,
-0.03125749155879021,
-0.02562309429049492,
-0.017554789781570435,
0.01946166902780533,
0.017641030251979828,
0.024358227849006653,
0.06504470854997635,
-0.045995082706213,
0.0053900484926998615,
-0.01376019511371851,
-0.04622505605220795,
0.019107123836874962,
0.000490195001475513,
0.0283061396330595,
-0.006343488115817308,
0.03152579441666603,
-0.015235871076583862,
-0.011613758280873299,
-0.053277637809515,
-0.012409090064466,
-0.05511743947863579,
0.027194591239094734,
0.002675859723240137,
0.012399507686495781,
0.039747416973114014,
0.030625058338046074,
-0.047259945422410965,
0.060023579746484756,
0.07547026127576828,
-0.005917075555771589,
-0.04135724529623985,
0.06297492980957031,
-0.03392137214541435,
0.03158329054713249,
-0.026178866624832153,
0.034783780574798584,
0.09674298763275146,
-0.06569630652666092,
0.01280196476727724,
0.023170022293925285,
0.030682552605867386,
-0.0014732799027115107,
-0.003698771120980382,
-0.005888328887522221,
0.03648943081498146,
0.009127149358391762,
0.013664372265338898,
-0.029800979420542717,
-0.00015930588415358216,
-0.0906103104352951,
-0.043618667870759964,
0.0567655973136425,
-0.013817689381539822,
0.046378374099731445,
0.03238820284605026,
0.01991203799843788,
0.029762649908661842,
0.021368548274040222,
-0.04833316430449486,
-0.012131202965974808,
-0.014526779763400555,
-0.009012161754071712,
-0.02248009666800499,
-0.036738570779561996,
-0.03723685070872307,
-0.02913021855056286,
0.02934102900326252,
-0.011355035938322544,
-0.007780834566801786,
-0.017554789781570435,
0.017238574102520943,
0.024549875408411026,
-0.023821618407964706,
-0.03639360889792442,
-0.03760097920894623,
0.049368053674697876,
0.07102407515048981,
0.009361915290355682,
-0.045880094170570374,
-0.009040907956659794,
-0.04438525438308716,
-0.06604126840829849,
0.005749385338276625,
0.011125060729682446,
-0.015245453454554081,
-0.018848400563001633,
0.05120785906910896,
-0.03100835159420967,
-0.018781324848532677,
0.047029972076416016,
0.022729236632585526,
0.059525299817323685,
-0.008121006190776825,
0.007972480729222298,
-0.02232677862048149,
-0.03539704903960228,
-0.06853266805410385,
-0.01710442081093788,
-0.014641767367720604,
-0.015925796702504158,
-0.0069232177920639515,
-0.0035334762651473284,
-0.07972481101751328,
0.08133463561534882,
0.025201471522450447,
-0.054044220596551895,
0.001908077159896493,
0.00886363536119461,
0.030835868790745735,
0.07704176008701324,
0.014430956915020943,
-0.007680220529437065,
0.015465846285223961,
-0.02422407642006874,
0.08233119547367096,
0.039670757949352264,
0.04066731780767441,
0.023150857537984848,
-0.04837149381637573,
-0.0305867288261652,
0.010415969416499138,
0.011067566461861134,
-0.002769287209957838,
-0.004326412454247475,
-0.03169827535748482,
0.03896166756749153,
-0.006592628546059132,
-0.041050609201192856,
0.07742505520582199,
0.01613660715520382,
0.03892333805561066,
0.024818180128932,
-0.008882800117135048,
-0.01302235759794712,
-0.007493365556001663,
-0.03211989998817444,
-0.001446928596124053,
0.03679606691002846,
-0.04446191340684891,
0.01991203799843788,
-0.015609581023454666,
0.01580122672021389,
-0.0026471128221601248,
-0.10463880747556686,
0.0103584760800004,
-0.024799015372991562,
-0.01353980228304863,
-0.00825036782771349,
-0.0020865476690232754,
0.014028499834239483,
-0.021272724494338036,
0.0422004871070385,
-0.02336166799068451,
0.028210315853357315,
0.005375675391405821,
-0.0339980311691761,
0.06151842325925827,
-0.025067320093512535,
0.012083291076123714,
-0.04714495688676834,
0.01915503479540348,
0.009237345308065414,
0.011182554066181183,
0.003543058643117547,
-0.028191152960062027,
0.028938572853803635,
0.06397148966789246,
0.006587837357074022,
-0.008763020858168602,
0.029954297468066216,
0.06251498311758041,
-0.01148918829858303,
-0.009711669757962227,
-0.02612137421965599,
-0.026542995125055313,
0.040399014949798584,
-0.04768156632781029,
-0.027769530192017555,
-0.012504912912845612,
-0.019404174759984016,
-0.04967468976974487,
0.023380832746624947,
0.03518623858690262,
0.03622112795710564,
0.022384272888302803,
-0.0003925751952920109,
0.01785184070467949,
0.04051399976015091,
-0.07964815199375153,
-0.011057984083890915,
0.026332184672355652,
0.020544469356536865,
0.008245576173067093,
-0.0655813217163086,
-0.05385257303714752,
-0.0336913987994194,
-0.02226928621530533,
-0.0365852527320385,
-0.0036388817243278027,
-0.03167911246418953,
0.04384864494204521,
0.0418938547372818,
-0.022940047085285187,
0.06811104714870453,
0.0490230917930603,
0.018560931086540222,
-0.05603734031319618,
-0.021579358726739883,
0.002613574732095003,
-0.08478426933288574,
-0.021196067333221436,
0.0025273337960243225,
-0.011671251617372036,
-0.009515232406556606,
0.0605601891875267,
0.026102209463715553,
-0.011958721093833447,
-0.013884765096008778,
-0.050172969698905945,
0.016951104626059532,
-0.04358033835887909,
0.0006075782584957778,
-0.01818722113966942,
-0.03533955290913582,
-0.024914002045989037,
-0.07447370141744614,
-0.01000392995774746,
-0.030835868790745735,
-0.011776657775044441,
-0.009879359975457191,
-0.030605893582105637,
0.021617688238620758,
-0.07489532232284546,
0.03574201092123985,
0.08693070709705353,
0.054120879620313644,
-0.025565600022673607,
-0.014498032629489899,
0.06423979997634888,
0.013041522353887558,
-0.007277763448655605,
-0.0453818142414093,
0.10118918120861053,
-0.05078623443841934,
-0.002529729390516877,
0.006242874078452587,
0.006693242583423853,
0.024358227849006653,
0.005461915861815214,
0.0010708229383453727,
-0.023534150794148445,
0.016117442399263382,
0.0046090902760624886,
-0.004192260093986988,
0.0067507363855838776,
0.028191152960062027,
-0.06473807990550995,
0.03522456809878349,
0.007507738657295704,
-0.007450244855135679,
0.035588692873716354,
-0.020697787404060364,
0.04223881661891937,
0.019298769533634186,
0.06998918205499649,
0.011747910641133785,
-0.029168548062443733,
0.06354986876249313,
-0.0318707600235939,
-0.020851103588938713,
0.009131940081715584,
0.0005704468348994851,
-0.011575428768992424,
0.045573461800813675,
-0.0007713758386671543,
-0.006463267374783754,
-0.008212038315832615,
0.020755279809236526,
-0.007756879087537527,
-0.04139557480812073,
-0.011546681635081768,
0.028881078585982323,
0.029379358515143394,
-0.046953313052654266,
-0.031046679243445396,
0.005409213248640299,
0.0037730340845882893,
0.017161915078759193,
-0.054695818573236465,
-0.023534150794148445,
0.06305158883333206,
0.0037251224275678396,
-0.0011408936697989702,
0.013281079940497875,
-0.035147909075021744,
-0.053469281643629074,
0.032867319881916046,
0.0037035623099654913,
-0.011786239221692085,
0.03773513063788414,
0.042008839547634125,
0.0010265047894790769,
-0.002558476524427533,
0.008442013524472713,
-0.01678820513188839,
-0.01477591972798109,
-0.010741768404841423,
-0.00134990771766752,
0.05362259969115257,
0.022154297679662704,
0.019423339515924454,
-0.007814372889697552,
-0.03006928414106369,
0.058337096124887466,
0.01991203799843788,
-0.00027174828574061394,
0.07872825115919113,
-0.11920391768217087,
-0.057992130517959595,
0.0608668252825737,
-0.010895084589719772,
0.028267810121178627,
0.029590168967843056,
-0.05093955248594284,
0.051552820950746536,
-0.016931939870119095,
-0.022288449108600616,
0.010808844119310379,
0.02343832701444626,
-0.0912235751748085,
-0.026236360892653465,
0.03650859743356705,
-0.020180342718958855,
-0.03158329054713249,
0.04124225676059723,
-0.031353313475847244,
-0.032599013298749924,
0.012150367721915245,
-0.052587710320949554,
0.01835012063384056,
-0.04292874410748482,
-0.009496067650616169,
0.048716455698013306,
-0.04760491102933884,
-0.07248058170080185,
-0.028421128168702126,
-0.035799503326416016,
0.02087026834487915,
-0.02788451872766018,
0.07872825115919113,
0.01788058876991272,
0.03246486186981201,
0.03188992291688919,
-0.01668279990553856,
-0.01746854931116104,
0.021176902577280998,
-0.013654789887368679,
-0.02554643526673317,
-0.01977788470685482,
-0.05826043710112572,
0.014632184989750385,
0.0534309521317482,
0.00290104397572577,
-0.0013678745599463582,
0.011412529274821281,
-0.08141129463911057,
0.005423586815595627,
0.03633611276745796,
0.021943487226963043,
-0.011163389310240746,
0.04028402641415596,
0.012639065273106098,
-0.01582997478544712,
-0.03175577148795128,
-0.01853218488395214,
-0.0535842701792717,
-0.06201670318841934,
0.019873708486557007,
0.007598770782351494,
0.06569630652666092,
0.0005761362845078111,
0.03677690029144287,
-0.002075767610222101,
0.0727105587720871
] |
21,452 | tfields.triangles_3d | _on_edges |
Determine whether a point is on the edge / side ray of a triangle
TODO:
on_edges like in_triangles
Returns:
np.array: boolean mask which is true, if point is on one side ray
of a triangle
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [-1,0,0], [0,1,0], [0,0,1]],
... faces=[[0, 1, 3],[0, 2, 3],[1,2,4]]);
Corner points are found
>>> assert np.array_equal(
... m.triangles()._on_edges(tfields.Points3D([[0,1,0]])),
... np.array([ True, True, False], dtype=bool))
Side points are found, too
>>> assert np.array_equal(
... m.triangles()._on_edges(tfields.Points3D([[0.5,0,0.5]])),
... np.array([False, False, True], dtype=bool))
| def _on_edges(self, point):
"""
Determine whether a point is on the edge / side ray of a triangle
TODO:
on_edges like in_triangles
Returns:
np.array: boolean mask which is true, if point is on one side ray
of a triangle
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [-1,0,0], [0,1,0], [0,0,1]],
... faces=[[0, 1, 3],[0, 2, 3],[1,2,4]]);
Corner points are found
>>> assert np.array_equal(
... m.triangles()._on_edges(tfields.Points3D([[0,1,0]])),
... np.array([ True, True, False], dtype=bool))
Side points are found, too
>>> assert np.array_equal(
... m.triangles()._on_edges(tfields.Points3D([[0.5,0,0.5]])),
... np.array([False, False, True], dtype=bool))
"""
u, v, w = self._baricentric(point, 1.0).T
orthogonal_acceptance = w == 0 # point should lie in triangle
barycentric_bools = (
(((0.0 <= v) & (v <= 1.0)) & (u == 0.0))
| (((0.0 <= u) & (u <= 1.0)) & (v == 0.0))
| (v + u == 1.0)
)
return np.array(barycentric_bools & orthogonal_acceptance)
| (self, point) | [
-0.0358150452375412,
0.002679541241377592,
-0.00684118177741766,
0.037188928574323654,
-0.025520337745547295,
0.005570811219513416,
-0.018171006813645363,
0.029867827892303467,
-0.03899567946791649,
-0.023092517629265785,
0.02324308082461357,
0.017145300284028053,
-0.014416355639696121,
-0.0024395824875682592,
-0.042006928473711014,
-0.010219426825642586,
-0.05224517360329628,
0.05623507872223854,
-0.00553317042067647,
0.0011903845006600022,
-0.03092176653444767,
-0.03212626650929451,
0.0400872565805912,
0.030357155948877335,
0.026404891163110733,
0.017164120450615883,
-0.0316745787858963,
-0.014510457403957844,
0.025896742939949036,
0.027063602581620216,
-0.06376320123672485,
0.0013350655790418386,
-0.03146755322813988,
-0.005236750468611717,
0.004740364849567413,
-0.02807989902794361,
0.04445356875658035,
0.045582786202430725,
-0.024372298270463943,
0.05578339099884033,
-0.04272209852933884,
-0.013691773638129234,
0.010699344798922539,
0.04701313003897667,
-0.028795070946216583,
-0.0685059204697609,
0.05175584554672241,
-0.027458829805254936,
-0.07166773080825806,
-0.02533213421702385,
0.017342913895845413,
-0.07132896780967712,
0.09154197573661804,
-0.004246331751346588,
0.01929081603884697,
-0.05879464000463486,
-0.006916462909430265,
-0.01670302264392376,
-0.06632276624441147,
0.05664912611246109,
-0.004194576293230057,
0.03741477057337761,
0.0691458135843277,
-0.009984172880649567,
0.0028253986965864897,
-0.04291030019521713,
0.026197869330644608,
0.00935839768499136,
-0.009127849712967873,
0.02766585163772106,
-0.06357499957084656,
0.023563025519251823,
0.034798748791217804,
-0.040426019579172134,
0.004690961912274361,
-0.02653663419187069,
0.07987338304519653,
0.038318146020174026,
-0.009899482131004333,
-0.04046366363763809,
0.0038322852924466133,
-0.0022549082059413195,
0.011527438648045063,
0.011235724203288555,
-0.0015068008797243237,
0.05902048572897911,
-0.0013068350963294506,
0.01245904341340065,
-0.013400059193372726,
-0.0032300353050231934,
0.01581846922636032,
-0.005613156594336033,
-0.04784122109413147,
0.025162750855088234,
-0.018547413870692253,
0.008596175350248814,
0.020382393151521683,
-0.03214508667588234,
-0.04550750553607941,
-0.014369305223226547,
-0.019403737038373947,
0.0005199110019020736,
-0.0017785191303119063,
0.027063602581620216,
0.04291030019521713,
-0.019836604595184326,
-0.03502459451556206,
-0.051228877156972885,
0.030620640143752098,
-0.017662858590483665,
-0.033970654010772705,
-0.011254544369876385,
-0.034685827791690826,
0.022810213267803192,
-0.004086359404027462,
-0.024259377270936966,
0.007391675841063261,
-0.005453184247016907,
-0.055632829666137695,
-0.040426019579172134,
0.0664733275771141,
0.0013456520391628146,
0.021944478154182434,
0.019968345761299133,
0.01064288429915905,
-0.024579321965575218,
0.04456648975610733,
0.03818640485405922,
-0.04456648975610733,
-0.012778989039361477,
-0.004314555786550045,
0.10403866320848465,
0.008840839378535748,
-0.01605372317135334,
-0.04663672298192978,
0.06142948567867279,
0.0061448304913938046,
0.01668420247733593,
-0.012299071066081524,
-0.021944478154182434,
0.002109050750732422,
0.04863167554140091,
0.009010222740471363,
-0.032728515565395355,
-0.06184353306889534,
0.04870695620775223,
-0.030677102506160736,
-0.008920826017856598,
0.05781598389148712,
0.04738953337073326,
0.00019232001795899123,
-0.04938448593020439,
0.01203558687120676,
0.03404593840241432,
-0.019384916871786118,
-0.03141109272837639,
-0.03144873306155205,
-0.06349971890449524,
0.03899567946791649,
0.011489798314869404,
-0.013974078930914402,
-0.0021078744903206825,
-0.024202916771173477,
0.03780999779701233,
-0.0006857649423182011,
0.01563967578113079,
-0.005392018239945173,
-0.03321784362196922,
-0.031204070895910263,
0.02166217379271984,
0.016100773587822914,
0.028381023555994034,
-0.0691458135843277,
0.06624748557806015,
-0.041630521416664124,
0.004467470571398735,
0.010784036479890347,
0.022603189572691917,
0.0028395140543580055,
-0.03685016185045242,
0.055294062942266464,
-0.00941956415772438,
-0.017484065145254135,
0.0019090849673375487,
0.05145472288131714,
0.02405235357582569,
0.03289789706468582,
-0.05661148577928543,
0.02043885365128517,
0.056460924446582794,
-0.06323623657226562,
-0.008299755863845348,
0.05375079810619354,
0.01932845637202263,
0.008614995516836643,
-0.007396380882710218,
0.0005796066834591329,
-0.036793701350688934,
-0.054089564830064774,
-0.041216474026441574,
0.006516531575471163,
-0.0268942192196846,
-0.02166217379271984,
0.040802426636219025,
-0.026367250829935074,
0.0349869504570961,
0.03869455307722092,
-0.029133835807442665,
0.024767525494098663,
0.04731425270438194,
0.011753282509744167,
-0.10004875808954239,
-0.023995893076062202,
0.05499294027686119,
-0.027477649971842766,
0.023920610547065735,
-0.03146755322813988,
0.06259634345769882,
-0.0747542604804039,
0.021022284403443336,
-0.00295949331484735,
-0.004608622752130032,
0.013936437666416168,
-0.0011515675578266382,
-0.012204969301819801,
0.004288677591830492,
-0.01446340698748827,
0.06654860824346542,
-0.03523161634802818,
-0.06342443823814392,
0.018208647146821022,
0.03361307084560394,
-0.011574489064514637,
-0.021944478154182434,
-0.023092517629265785,
0.03818640485405922,
0.022640829905867577,
-0.026818938553333282,
0.051191236823797226,
0.017822831869125366,
0.06662388890981674,
-0.021944478154182434,
0.025633258745074272,
-0.039522647857666016,
0.022189142182469368,
0.0225279089063406,
0.029905468225479126,
0.003589973784983158,
0.006229521706700325,
-0.0068929377011954784,
-0.08378800749778748,
-0.042835019528865814,
-0.003018306801095605,
-0.011932075023651123,
0.027214165776968002,
-0.05954745411872864,
0.07114076614379883,
0.01145215705037117,
0.03895803540945053,
0.029585523530840874,
-0.01525385957211256,
0.008172718808054924,
0.11977244168519974,
0.03852517157793045,
0.009767740033566952,
-0.009344282560050488,
0.03899567946791649,
0.04020017758011818,
-0.009189015254378319,
-0.009283117018640041,
0.005090893246233463,
-0.03137345239520073,
-0.030695922672748566,
-0.02855040691792965,
0.002627785550430417,
-0.0017926343716681004,
-0.011019290424883366,
0.03907096013426781,
-0.00420633889734745,
0.023901790380477905,
-0.03176867961883545,
-0.021982120350003242,
-0.00835151132196188,
0.04467941075563431,
-0.06891996413469315,
-0.0369630828499794,
0.00047638904652558267,
0.01227084081619978,
0.04449120908975601,
-0.04053894430398941,
0.008520894683897495,
0.024240557104349136,
-0.0040181358344852924,
-0.08664869517087936,
0.006398904602974653,
0.021624533459544182,
0.028230462223291397,
-0.05713845416903496,
0.013776465319097042,
-0.05032550171017647,
0.047540098428726196,
-0.005820180289447308,
0.05352495610713959,
-0.029133835807442665,
-0.011348645202815533,
0.030357155948877335,
0.005810770206153393,
-0.014341074973344803,
0.04855639487504959,
-0.09109029173851013,
-0.02736472710967064,
-0.04415244236588478,
-0.05548226833343506,
-0.06948457658290863,
0.01680653542280197,
0.042383331805467606,
-0.006234226748347282,
-0.02452286146581173,
-0.017088839784264565,
0.02373240888118744,
0.013315367512404919,
0.04787886142730713,
0.010369990020990372,
0.05777834355831146,
-0.010878138244152069,
-0.05017494037747383,
0.03865691274404526,
-0.06154240667819977,
-0.01325890701264143,
0.04370075464248657,
0.008022156544029713,
0.0022360878065228462,
-0.010586422868072987,
0.027571750804781914,
-0.007805722765624523,
-0.03146755322813988,
0.04061422497034073,
0.017399374395608902,
0.007198767736554146,
-0.015969030559062958,
0.022302065044641495,
0.025972025468945503,
0.015413831919431686,
-0.0197236817330122,
0.0014009366277605295,
0.0498361736536026,
-0.03583386540412903,
0.032295648008584976,
0.08521835505962372,
0.09658581763505936,
0.009701868519186974,
-0.017324093729257584,
0.02051413618028164,
0.02414645440876484,
-0.055595189332962036,
-0.04535694047808647,
-0.026348430663347244,
-0.03805466368794441,
0.018208647146821022,
0.08092732727527618,
0.032728515565395355,
-0.023017236962914467,
0.005147354211658239,
0.028249282389879227,
-0.015771418809890747,
-0.051228877156972885,
0.003742888802662492,
0.028851531445980072,
-0.043587833642959595,
-0.018904998898506165,
-0.03350014612078667,
-0.021944478154182434,
-0.005839000456035137,
0.010511142201721668,
0.04023781791329384,
0.0010215898510068655,
0.04509345814585686,
0.01911202259361744,
0.038355786353349686,
0.04855639487504959,
0.020250651985406876,
0.014717481099069118,
0.03259677439928055,
-0.005034432280808687,
-0.0024325246922671795,
-0.006027203518897295,
-0.00811625737696886,
0.03464818745851517,
0.013315367512404919,
0.035156335681676865,
0.04136703535914421,
-0.001903203665278852,
0.00250545353628695,
-0.046410877257585526,
-0.05390136316418648,
-0.0027689377311617136,
-0.02892681397497654,
0.02286667376756668,
0.01706060953438282,
-0.014952734112739563,
-0.03619145229458809,
-0.006408314686268568,
-0.05751486122608185,
-0.016401898115873337,
-0.025125110521912575,
0.07238290458917618,
-0.0028912697453051805,
0.015263269655406475,
0.05751486122608185,
-0.04426536336541176,
-0.01164977066218853,
0.03967320919036865,
0.037188928574323654,
-0.027214165776968002,
-0.015940800309181213,
0.033989474177360535,
0.030432438477873802,
0.04419008269906044,
0.009758329950273037,
0.043399628251791,
0.08363744616508484,
-0.01883912831544876,
-0.010577012784779072,
-0.0027971682138741016,
0.04780358076095581,
-0.027025962248444557,
-0.02610376663506031,
0.041216474026441574,
0.034384701400995255,
0.06116599962115288,
-0.003844047896564007,
-0.047653019428253174,
0.027157703414559364,
-0.07738910615444183,
-0.043550193309783936,
0.05179348587989807,
-0.004011078272014856,
0.01828392967581749,
0.01867915503680706,
0.0333307646214962,
0.05025022104382515,
0.035156335681676865,
-0.05917104706168175,
-0.07366268336772919,
0.008657341822981834,
-0.012948371469974518,
-0.008756148628890514,
-0.02892681397497654,
0.00907138828188181,
-0.04535694047808647,
0.006427135318517685,
0.019403737038373947,
-0.01424697320908308,
-0.037508875131607056,
-0.03412121906876564,
0.028418663889169693,
-0.025934383273124695,
-0.016731252893805504,
-0.025783821940422058,
0.0635373592376709,
0.010925188660621643,
0.011593309231102467,
-0.08710038661956787,
-0.0473518930375576,
-0.04336198791861534,
-0.09357456862926483,
-0.008403267711400986,
0.00845031812787056,
-0.0200436282902956,
-0.01529149990528822,
0.05032550171017647,
-0.04987381398677826,
-0.02403353340923786,
0.044792331755161285,
0.0645536556839943,
0.06470421701669693,
-0.03429060056805611,
0.003606441430747509,
-0.057289015501737595,
-0.03366953134536743,
-0.06233286112546921,
-0.03937208279967308,
-0.005321442149579525,
-0.05950981378555298,
0.016345437616109848,
0.01000299397855997,
-0.08792848140001297,
0.09560716152191162,
0.001224496285431087,
-0.052433378994464874,
0.008789083920419216,
-0.045545145869255066,
0.010294708423316479,
0.038431067019701004,
0.05751486122608185,
0.029510242864489555,
0.027966978028416634,
0.01581846922636032,
0.033104922622442245,
0.05574575066566467,
0.004846229217946529,
-0.0000031796027997188503,
-0.038769833743572235,
-0.007612814661115408,
-0.0026536635123193264,
0.019187303259968758,
0.0245040412992239,
-0.00266542611643672,
0.008069206960499287,
0.034723468124866486,
0.009024337865412235,
-0.027232985943555832,
0.0699739009141922,
0.007504597771912813,
0.0179075226187706,
0.028832711279392242,
0.0005272626876831055,
-0.0024536976125091314,
-0.03974848985671997,
0.008859659545123577,
0.006718849763274193,
0.02576500177383423,
-0.03784763813018799,
0.0013162452960386872,
-0.04859403520822525,
0.045620426535606384,
-0.0068694124929606915,
-0.04181872308254242,
0.017766371369361877,
-0.051228877156972885,
0.013945847749710083,
0.019798964262008667,
0.004095769487321377,
0.01227084081619978,
-0.017145300284028053,
0.04528165981173515,
-0.026988321915268898,
0.03701954707503319,
0.018387440592050552,
-0.007462251931428909,
0.04972325265407562,
-0.008586765266954899,
-0.033970654010772705,
0.0025760296266525984,
0.02322426065802574,
-0.03741477057337761,
0.03506223484873772,
-0.025031009688973427,
0.009038452990353107,
0.014905683696269989,
0.05235809460282326,
-0.010341758839786053,
0.036774881184101105,
-0.00933957751840353,
0.07234526425600052,
0.0417434424161911,
0.006314213387668133,
-0.028399843722581863,
-0.02124812826514244,
0.018801487982273102,
-0.04580862820148468,
-0.0006069549126550555,
-0.010529962368309498,
-0.015667906031012535,
-0.06033790856599808,
-0.004086359404027462,
0.041969288140535355,
0.013136574998497963,
0.008403267711400986,
-0.01801103539764881,
0.01223320048302412,
0.025162750855088234,
-0.0467120036482811,
-0.007711621001362801,
0.06097779795527458,
0.022377345710992813,
-0.022245604544878006,
-0.051605284214019775,
-0.0268942192196846,
-0.02051413618028164,
-0.028004618361592293,
-0.043399628251791,
-0.03884511440992355,
-0.006102484650909901,
0.020288292318582535,
0.047653019428253174,
0.006944693624973297,
0.07403909415006638,
0.032389748841524124,
0.011762692593038082,
-0.03144873306155205,
-0.054428331553936005,
0.014999785460531712,
-0.03560802340507507,
0.010605243034660816,
0.012289660982787609,
0.015432652086019516,
0.005481414496898651,
0.029491422697901726,
0.0025972025468945503,
-0.01968604139983654,
0.00432396586984396,
-0.020213009789586067,
-0.050400786101818085,
-0.05860643833875656,
-0.04644852131605148,
-0.008205654099583626,
0.01064288429915905,
-0.004267504904419184,
-0.04460413008928299,
-0.004302792716771364,
-0.016693612560629845,
0.003959322348237038,
-0.016778305172920227,
0.01467042975127697,
0.011160442605614662,
-0.06538175046443939,
0.07671157270669937,
0.062408141791820526,
0.03159929811954498,
-0.023920610547065735,
-0.019366096705198288,
0.061692968010902405,
-0.005556696094572544,
0.012986012734472752,
-0.026386070996522903,
0.09372512996196747,
-0.10607125610113144,
-0.0019126137485727668,
-0.012261430732905865,
-0.005627272184938192,
-0.00017114717047661543,
-0.005923691671341658,
-0.02614140696823597,
-0.014613969251513481,
-0.029849007725715637,
-0.0220197606831789,
-0.006610633339732885,
0.0057637193240225315,
0.015385601669549942,
-0.11216903477907181,
0.060827236622571945,
-0.04622267559170723,
-0.023450102657079697,
0.041141193360090256,
0.00631891842931509,
0.01745583489537239,
-0.02738354727625847,
0.07031267136335373,
-0.002728944644331932,
0.004331023432314396,
0.08965994417667389,
-0.04268445819616318,
0.00531203206628561,
-0.0007757495623081923,
0.04610975459218025,
-0.010341758839786053,
0.01824628934264183,
-0.02604730613529682,
0.0016256041126325727,
-0.0017655801493674517,
0.011358056217432022,
-0.005998973269015551,
-0.055256422609090805,
0.0013456520391628146,
0.02614140696823597,
0.048368189483881,
-0.009156079962849617,
-0.018904998898506165,
0.030790023505687714,
-0.017549937590956688,
0.015592625364661217,
-0.016044313088059425,
-0.02892681397497654,
0.07035031169652939,
-0.010529962368309498,
0.03570212423801422,
0.00039669679244980216,
-0.049986738711595535,
-0.0571008138358593,
-0.022207962349057198,
0.0289644543081522,
-0.03137345239520073,
0.055294062942266464,
0.050852470099925995,
-0.0016738311387598515,
0.0009221950895152986,
0.03141109272837639,
-0.029020914807915688,
-0.019987167790532112,
-0.024297017604112625,
-0.0012856622925028205,
0.07132896780967712,
0.04528165981173515,
0.007942169904708862,
0.0016173701733350754,
-0.00012468453496694565,
0.036323193460702896,
-0.008723212406039238,
0.0061871763318777084,
0.04272209852933884,
-0.09455322474241257,
-0.0353068970143795,
0.04573334753513336,
-0.020589416846632957,
0.009057273156940937,
0.011903844773769379,
-0.0281363595277071,
0.01846272125840187,
0.0022925487719476223,
-0.05514350160956383,
-0.022960776463150978,
0.03323666378855705,
-0.07592111825942993,
-0.015131527557969093,
0.0065918127074837685,
-0.00893494114279747,
-0.01225202064961195,
0.012355532497167587,
-0.011969715356826782,
-0.023807689547538757,
0.023450102657079697,
-0.02211386151611805,
0.022302065044641495,
-0.05341203510761261,
-0.010821676813066006,
0.03180631995201111,
-0.006681209430098534,
-0.06120363995432854,
-0.04291030019521713,
-0.05589631572365761,
-0.008770263753831387,
0.0012327301083132625,
0.061655327677726746,
-0.004540399182587862,
0.016383077949285507,
0.017342913895845413,
-0.021455150097608566,
-0.016006670892238617,
-0.006704734638333321,
0.01812395639717579,
-0.02047649398446083,
-0.025426235049962997,
-0.0683177188038826,
0.018453311175107956,
0.049986738711595535,
-0.0100218141451478,
0.009508960880339146,
-0.0029406731482595205,
-0.08935882151126862,
0.01587492972612381,
0.058041829615831375,
0.021869197487831116,
-0.06760254502296448,
0.05021258071064949,
0.029472602531313896,
-0.012082637287676334,
-0.05025022104382515,
-0.016891226172447205,
-0.051228877156972885,
-0.09794088453054428,
0.016985327005386353,
-0.014915093779563904,
0.0579289086163044,
0.011856794357299805,
0.03940972313284874,
-0.010106504894793034,
0.05186876654624939
] |
21,456 | tfields.triangles_3d | _save_stl |
Save the object to a stl file
| def _save_stl(self, path, **kwargs):
"""
Save the object to a stl file
"""
import stl
shape = stl.Mesh(np.zeros(self.ntriangles(), dtype=stl.Mesh.dtype))
shape.vectors = self.bulk.reshape((self.ntriangles(), 3, 3))
shape.save(path, **kwargs)
| (self, path, **kwargs) | [
-0.013945838436484337,
0.0016028942773118615,
-0.06420347839593887,
0.008626246824860573,
-0.007828088477253914,
-0.03504878655076027,
-0.10868982970714569,
0.05648503080010414,
-0.021980045363307,
0.016585899516940117,
0.005310820881277323,
-0.016068411991000175,
-0.08890252560377121,
-0.03596096858382225,
-0.01382304448634386,
0.044907353818416595,
-0.004692467395216227,
-0.05080144479870796,
-0.0771845132112503,
-0.001617147121578455,
0.03390856087207794,
0.014287905767560005,
0.04104812815785408,
0.019752219319343567,
0.06722069531679153,
-0.03159302473068237,
0.049257755279541016,
0.01868216134607792,
0.03199648857116699,
-0.02783905155956745,
-0.0341716893017292,
-0.018331322818994522,
-0.020085515454411507,
0.0413287989795208,
0.0164280217140913,
-0.005569564178586006,
0.03915359824895859,
0.055607933551073074,
0.003109307959675789,
-0.034487444907426834,
0.012481086887419224,
0.026383070275187492,
-0.009455102495849133,
0.029119612649083138,
0.013717792928218842,
0.013086283579468727,
-0.0034711104817688465,
0.029803747311234474,
-0.00021050321811344475,
-0.004521433729678392,
-0.029452908784151077,
-0.03645214065909386,
-0.011340861208736897,
-0.03443481773138046,
-0.014533492736518383,
-0.010797061026096344,
0.040346451103687286,
0.03841683641076088,
0.012253041379153728,
-0.007898256182670593,
-0.002613748423755169,
-0.02006797306239605,
0.041749805212020874,
-0.02176954224705696,
-0.019313670694828033,
-0.01927858591079712,
-0.04017103090882301,
0.008485911414027214,
0.038381755352020264,
0.05167854204773903,
-0.026155024766921997,
-0.011033876799046993,
0.06301063299179077,
0.006986075546592474,
0.02876877412199974,
0.04027628153562546,
0.0007926761754788458,
-0.024663960561156273,
-0.04125862941145897,
-0.036522310227155685,
-0.04995943233370781,
-0.06199319660663605,
-0.05529217794537544,
0.027803966775536537,
-0.04076745733618736,
0.010253260843455791,
0.059361908584833145,
-0.003436026629060507,
-0.045644115656614304,
-0.05760771408677101,
-0.00828417856246233,
0.06662426888942719,
-0.03122464381158352,
-0.032031573355197906,
0.005328362807631493,
-0.07041332870721817,
0.007543032057583332,
-0.03439973294734955,
-0.03908343240618706,
0.013393267057836056,
-0.048941999673843384,
-0.004400833044201136,
-0.010788289830088615,
0.02157657966017723,
-0.010174321942031384,
-0.016349082812666893,
0.027803966775536537,
-0.034557610750198364,
-0.012919635511934757,
0.010902312584221363,
0.016805173829197884,
0.047608811408281326,
0.03194386512041092,
0.020085515454411507,
-0.02983883209526539,
-0.03901326283812523,
0.021471329033374786,
0.022681722417473793,
-0.023471109569072723,
-0.05357306823134422,
-0.030838722363114357,
0.003188246628269553,
-0.03641705587506294,
0.07641267031431198,
-0.003359280526638031,
0.03439973294734955,
0.026681283488869667,
0.027154915034770966,
-0.006600153166800737,
-0.02071702480316162,
-0.025979606434702873,
0.004595987033098936,
-0.033031463623046875,
-0.007314987014979124,
0.046766798943281174,
-0.0016390745295211673,
-0.005056462716311216,
-0.03457515314221382,
-0.008007893338799477,
0.05332748219370842,
0.05859006196260452,
-0.02482183836400509,
-0.021418701857328415,
0.0044578444212675095,
0.0007608814048580825,
0.061151184141635895,
-0.0038614184595644474,
-0.04817015305161476,
-0.014121257700026035,
0.019962722435593605,
-0.004100427497178316,
-0.009727003052830696,
-0.009577896445989609,
-0.011270693503320217,
-0.04620545729994774,
-0.06472974270582199,
0.004740708041936159,
-0.06518582999706268,
0.05894090235233307,
-0.007284288294613361,
-0.038311585783958435,
0.04809998720884323,
-0.018980374559760094,
0.04027628153562546,
-0.01880495436489582,
-0.004793333820998669,
0.03345246985554695,
-0.010069070383906364,
-0.03564521297812462,
-0.005999341607093811,
-0.014165112748742104,
-0.014314219355583191,
-0.08735883980989456,
0.049924347549676895,
-0.016191206872463226,
-0.028523186221718788,
0.025786643847823143,
0.009990132413804531,
0.022822057828307152,
-0.028628438711166382,
-0.0062536997720599174,
0.030926430597901344,
-0.0303475484251976,
0.0556781031191349,
-0.0008929941104725003,
0.0051836417987942696,
-0.018647076562047005,
-0.0033351604361087084,
0.0418199747800827,
-0.007871943525969982,
0.015586009249091148,
0.05238021910190582,
0.0034031353425234556,
-0.004613528959453106,
0.02429557964205742,
-0.008924459107220173,
0.041153378784656525,
-0.07444797456264496,
-0.00698168994858861,
0.02368161268532276,
-0.023067643865942955,
-0.018383948132395744,
0.0154719864949584,
-0.03122464381158352,
0.003475495846942067,
-0.024646418169140816,
0.01604210026562214,
-0.04701238498091698,
-0.06437890231609344,
0.04725797101855278,
0.027540838345885277,
-0.012577567249536514,
-0.009691919200122356,
0.03743448853492737,
0.09416510909795761,
-0.056274525821208954,
-0.05564301833510399,
0.03292621299624443,
0.018383948132395744,
-0.005192412529140711,
0.0064378902316093445,
0.03122464381158352,
-0.045363444834947586,
0.003951320890337229,
-0.0480298176407814,
-0.04066220670938492,
0.02540072239935398,
-0.006639622617512941,
-0.021611664444208145,
-0.023593902587890625,
0.025558600202202797,
-0.02408507652580738,
0.003368051489815116,
0.00044348204392008483,
-0.023944741114974022,
0.007205349858850241,
-0.05430983006954193,
-0.018331322818994522,
0.03208420053124428,
-0.01959434151649475,
0.002863720990717411,
-0.06788729131221771,
-0.014366844668984413,
-0.026821618899703026,
0.019717134535312653,
0.0418199747800827,
0.021295908838510513,
-0.011007564142346382,
0.020155683159828186,
0.024435915052890778,
0.010683038271963596,
0.026119941845536232,
-0.03132989630103111,
0.024786753579974174,
0.028084637597203255,
-0.06388773024082184,
0.005030150059610605,
-0.035873256623744965,
0.006165990140289068,
-0.03155793994665146,
-0.06178269535303116,
-0.036066219210624695,
0.07627233117818832,
0.031505316495895386,
0.04234623163938522,
-0.017603332176804543,
0.028084637597203255,
0.010928625240921974,
0.04508277401328087,
0.0027672401629388332,
0.0563797801733017,
0.05101194605231285,
-0.0451529398560524,
-0.01913825049996376,
0.028365308418869972,
-0.03904834762215614,
0.0017245914787054062,
0.019629424437880516,
0.04813506826758385,
0.07174651324748993,
0.05129261687397957,
-0.009516499936580658,
0.0017761209746822715,
0.0016763511812314391,
-0.011384716257452965,
0.02052406407892704,
-0.021278366446495056,
-0.06290537863969803,
0.0051836417987942696,
-0.06900997459888458,
0.023348314687609673,
0.05248546972870827,
-0.030926430597901344,
-0.011796951293945312,
0.027540838345885277,
-0.015393047593533993,
-0.04199539124965668,
-0.03313671424984932,
0.07086941599845886,
-0.037259068340063095,
0.018769869580864906,
-0.013998463749885559,
0.09872601181268692,
-0.0379958301782608,
-0.00724043371155858,
-0.06711544096469879,
-0.032031573355197906,
-0.020103057846426964,
0.013244161382317543,
0.011139128357172012,
-0.02917223796248436,
-0.01132331881672144,
-0.014401928521692753,
0.05009976774454117,
0.04315315932035446,
0.09360376745462418,
-0.012779300101101398,
-0.06799253821372986,
-0.02138361893594265,
0.05188904330134392,
-0.04059203714132309,
-0.04574936628341675,
-0.008599933236837387,
-0.0501699335873127,
0.027365418151021004,
-0.06125643849372864,
0.0031838612630963326,
-0.0349961593747139,
0.06900997459888458,
0.018962832167744637,
-0.016787631437182426,
-0.0336805135011673,
0.0633263885974884,
0.043784670531749725,
0.021822167560458183,
-0.023734237998723984,
0.044907353818416595,
-0.006508057937026024,
0.00564411748200655,
-0.02599714696407318,
0.054029159247875214,
0.02336585707962513,
0.00012299911759328097,
0.02455870807170868,
0.008078061044216156,
0.019699592143297195,
-0.04090779274702072,
-0.05859006196260452,
-0.01297226082533598,
0.0807630717754364,
-0.023593902587890625,
0.020366186276078224,
-0.000550104130525142,
0.04311807453632355,
-0.028365308418869972,
0.02336585707962513,
0.028084637597203255,
0.00930599682033062,
0.013331870548427105,
-0.024593792855739594,
-0.0013704636367037892,
0.0004297773994039744,
0.03347001224756241,
0.007082556374371052,
0.03596096858382225,
-0.025751560926437378,
0.01610349677503109,
-0.04918758571147919,
0.025593683123588562,
-0.018629534170031548,
-0.0031816684640944004,
-0.053222231566905975,
-0.00476702069863677,
0.051503121852874756,
0.012226728722453117,
0.055993854999542236,
0.0011073346249759197,
0.03683806210756302,
0.0024799909442663193,
-0.07928954809904099,
0.0039864047430455685,
-0.03218945115804672,
0.0872185006737709,
-0.009428789839148521,
0.05087161064147949,
0.00390308047644794,
0.016287686303257942,
0.01808573491871357,
-0.01372656412422657,
0.02587435394525528,
0.011770638637244701,
0.01016555167734623,
0.002736541908234358,
-0.05073127523064613,
0.03347001224756241,
0.023874573409557343,
-0.008928844705224037,
0.050906695425510406,
0.02183970995247364,
0.060344256460666656,
-0.024786753579974174,
-0.08258742839097977,
-0.07423746585845947,
0.05827430635690689,
-0.06890472024679184,
-0.018506741151213646,
-0.021541496738791466,
-0.016322771087288857,
0.02869860641658306,
0.018103277310729027,
0.05409932881593704,
0.05792346969246864,
0.007981580682098866,
-0.03122464381158352,
0.045644115656614304,
0.03694331645965576,
-0.006012498401105404,
0.023260606452822685,
0.0009050542139448225,
0.03062821924686432,
0.03101414069533348,
0.08707816898822784,
0.06946606189012527,
0.04701238498091698,
0.005087160971015692,
-0.031715817749500275,
-0.06750136613845825,
0.01091985497623682,
0.03180352970957756,
0.024997256696224213,
-0.01448963861912489,
-0.0029316958971321583,
-0.021366076543927193,
-0.028137262910604477,
0.01557723805308342,
0.0013057778123766184,
-0.04245148226618767,
-0.02745312824845314,
-0.029856372624635696,
0.06581734120845795,
0.11935532838106155,
0.00012621970381587744,
-0.07374629378318787,
0.0289091095328331,
0.03901326283812523,
-0.024137701839208603,
-0.04953842610120773,
-0.016682380810379982,
0.05080144479870796,
0.041679639369249344,
0.06297554820775986,
0.03366297483444214,
0.03803091496229172,
-0.021944960579276085,
0.040416616946458817,
-0.041609469801187515,
-0.005021378863602877,
-0.08770967274904251,
0.005630961153656244,
-0.061081018298864365,
0.012086393311619759,
-0.019822387024760246,
0.03880276158452034,
0.005424843169748783,
-0.0008611993980593979,
-0.1309330016374588,
-0.020506521686911583,
0.007174651604145765,
0.031259726732969284,
-0.04560903087258339,
0.017147241160273552,
-0.04076745733618736,
-0.020278476178646088,
-0.032961294054985046,
0.023874573409557343,
0.027505753561854362,
-0.02738296054303646,
0.02205021306872368,
-0.01464751549065113,
-0.023383399471640587,
0.011805722489953041,
-0.028523186221718788,
-0.07185176759958267,
0.05736212804913521,
0.01761210337281227,
0.087920181453228,
-0.0005191316595301032,
0.04125862941145897,
0.08967436850070953,
-0.029031902551651,
0.018822496756911278,
0.0026356757152825594,
-0.029856372624635696,
-0.004030259791761637,
0.018313780426979065,
0.05266088992357254,
-0.02733033522963524,
0.0038723822217434645,
-0.056976206600666046,
0.0129020931199193,
0.0024821837432682514,
-0.04076745733618736,
-0.012121477164328098,
-0.04150421917438507,
0.005359061062335968,
-0.006402806378901005,
0.03782040998339653,
-0.015033437870442867,
-0.005218725651502609,
-0.029452908784151077,
-0.06792236864566803,
-0.05609910935163498,
0.028032012283802032,
0.037048567086458206,
0.009718231856822968,
0.0683433786034584,
-0.0403815358877182,
0.03352263942360878,
-0.06957131624221802,
0.02315535396337509,
-0.02315535396337509,
-0.020945070311427116,
-0.01201622560620308,
-0.016927966848015785,
-0.05002959817647934,
0.00804736278951168,
-0.042135726660490036,
-0.0480298176407814,
0.08735883980989456,
0.06013375148177147,
0.023260606452822685,
0.0034097135066986084,
-0.004003946669399738,
0.009104263968765736,
0.029119612649083138,
0.056520115584135056,
0.03743448853492737,
-0.06915030628442764,
0.051959212869405746,
-0.1063041239976883,
-0.0007685560267418623,
-0.05911632254719734,
-0.0138581283390522,
-0.052169714123010635,
-0.030400173738598824,
0.023646527901291847,
0.024470999836921692,
-0.04525819048285484,
-0.025453347712755203,
-0.0026159409899264574,
0.030330006033182144,
-0.017734896391630173,
-0.030172128230333328,
-0.0039074658416211605,
0.038978178054094315,
-0.017392829060554504,
-0.011867118999361992,
-0.03768007457256317,
-0.017638415098190308,
-0.000871066702529788,
-0.029347658157348633,
0.005056462716311216,
0.04045170173048973,
0.06318604946136475,
-0.044381096959114075,
0.03736432269215584,
0.030575592070817947,
-0.028926650062203407,
-0.004107005428522825,
0.013507289811968803,
0.08763951063156128,
0.002841793466359377,
0.0018408067990094423,
-0.03497861698269844,
0.047293055802583694,
0.03806599974632263,
0.027207540348172188,
0.008205239661037922,
0.01184957753866911,
0.03946935385465622,
-0.01868216134607792,
0.04666154831647873,
-0.014761538244783878,
-0.008898146450519562,
0.04971384257078171,
0.05301172658801079,
-0.004793333820998669,
0.026821618899703026,
-0.004139896482229233,
0.038381755352020264,
-0.004332858137786388,
0.04455651342868805,
0.01571757346391678,
-0.0654665008187294,
-0.045047689229249954,
-0.01112158689647913,
0.015796512365341187,
-0.038908012211322784,
-0.022541387006640434,
0.02138361893594265,
-0.03169827535748482,
0.016647296026349068,
-0.03208420053124428,
0.113250732421875,
0.00808244664222002,
-0.042135726660490036,
0.005959872622042894,
0.028803857043385506,
-0.0011188465869054198,
0.0021313452161848545,
0.005337133537977934,
-0.027698716148734093,
0.02238350920379162,
-0.05115228146314621,
-0.026488322764635086,
0.0009911193046718836,
0.00762197095900774,
0.02482183836400509,
0.00956912524998188,
-0.013340641744434834,
-0.01187589019536972,
-0.056064024567604065,
-0.01927858591079712,
0.002191645558923483,
-0.017831377685070038,
0.0004878850595559925,
0.02178708277642727,
-0.0034447975922375917,
0.03199648857116699,
-0.03971493989229202,
-0.06087051331996918,
-0.05048568919301033,
0.016542045399546623,
-0.04522310942411423,
0.015147460624575615,
0.0001608924358151853,
-0.02633044496178627,
0.028207430616021156,
0.0074114673770964146,
0.036136385053396225,
-0.04150421917438507,
0.023646527901291847,
0.039960529655218124,
-0.026628658175468445,
-0.013305557891726494,
0.05813397094607353,
0.04129371419548988,
-0.018910204991698265,
0.0316631942987442,
-0.0007038701442070305,
-0.03887292742729187,
0.0103321997448802,
-0.02362898550927639,
-0.037750244140625,
0.04006578028202057,
0.02262909524142742,
0.04487226903438568,
-0.04469684883952141,
-0.008692028932273388,
-0.01214778982102871,
-0.020155683159828186,
-0.026681283488869667,
0.014822934754192829,
-0.012270583771169186,
0.0026576032396405935,
-0.017112158238887787,
-0.01683148741722107,
0.02797938697040081,
0.016322771087288857,
0.009946277365088463,
-0.04736322537064552,
0.0003925008059013635,
0.008240323513746262,
0.010604099370539188,
-0.011858347803354263,
-0.025769103318452835,
0.019155792891979218,
-0.03531191498041153,
0.007170266006141901,
-0.021260825917124748,
-0.019085625186562538,
0.06318604946136475,
-0.012340751476585865,
-0.04936300590634346,
-0.002679530531167984,
0.037048567086458206,
-0.038978178054094315,
0.034873366355895996,
0.008183312602341175,
-0.008705184794962406,
-0.029452908784151077,
0.000511731137521565,
0.029452908784151077,
-0.00641596270725131,
0.013919525779783726,
-0.012033767066895962,
0.058379560708999634,
0.007722836919128895,
0.028365308418869972,
0.009095493704080582,
0.004477578680962324,
-0.03175090253353119,
-0.025260386988520622,
0.056204359978437424,
0.023471109569072723,
-0.010779518634080887,
-0.018383948132395744,
0.01277052890509367,
-0.009016554802656174,
-0.028856482356786728,
0.01101633533835411,
0.022786973044276237,
0.067606620490551,
0.015138690359890461,
0.007446551229804754,
-0.010437451303005219,
-0.00033055583480745554,
0.01676131971180439,
-0.0015743887051939964,
-0.04620545729994774,
-0.011095274239778519,
0.029066985473036766,
0.015436902642250061,
-0.05904615297913551,
-0.047608811408281326,
-0.06136168912053108,
-0.020945070311427116,
0.01131454762071371,
0.01300734467804432,
0.02040127106010914,
-0.03324196860194206,
-0.023593902587890625,
-0.024506082758307457,
0.008665716275572777,
-0.0004632167110685259,
0.011384716257452965,
0.01352483220398426,
0.018594451248645782,
-0.03062821924686432,
0.051503121852874756,
0.04111829400062561,
0.029119612649083138,
-0.003791250754147768,
-0.013700251467525959,
-0.052099548280239105,
0.011998683214187622,
0.05894090235233307,
0.026365527883172035,
-0.08013156056404114,
0.010507619008421898,
0.08216642588376999,
0.04388992115855217,
0.0207871925085783,
0.019629424437880516,
0.06009867042303085,
-0.04613528773188591,
0.061151184141635895,
-0.06739611178636551,
-0.021102948114275932,
-0.06725578010082245,
-0.007547417655587196,
-0.07550048828125,
0.01310382504016161,
0.021138031035661697,
0.02317289635539055,
0.024734128266572952,
-0.03753973916172981,
-0.013586228713393211
] |
21,458 | tfields.triangles_3d | _to_triangles_mask | null | def _to_triangles_mask(self, mask):
mask = np.array(mask)
mask = mask.reshape((self.ntriangles(), 3))
mask = mask.all(axis=1)
return mask
| (self, mask) | [
-0.06178079918026924,
0.014990681782364845,
0.003924427554011345,
-0.04215234890580177,
-0.05403715744614601,
0.001842271420173347,
-0.009603800252079964,
0.04511513188481331,
-0.011093609035015106,
0.022860579192638397,
0.03851620480418205,
0.0010300306603312492,
-0.0408056266605854,
-0.03370167687535286,
-0.018416400998830795,
-0.018551073968410492,
-0.03445920720696449,
0.028836650773882866,
-0.016505742445588112,
-0.010302411392331123,
0.0015318944351747632,
-0.024291468784213066,
0.03760716691613197,
0.08046654611825943,
0.004103288520127535,
-0.02728792279958725,
-0.023365598171949387,
-0.03511573374271393,
0.03262430056929588,
0.014654001221060753,
-0.06006373092532158,
0.052151747047901154,
-0.01917393133044243,
0.008686346933245659,
-0.03259063512086868,
-0.0009921541204676032,
0.028079120442271233,
0.06747069209814072,
0.028937654569745064,
0.02141285501420498,
-0.0015897613484412432,
0.0012131005059927702,
-0.011068358086049557,
0.0408392958343029,
0.054407503455877304,
-0.05602356791496277,
0.03939157351851463,
-0.03329766169190407,
-0.04046894982457161,
0.03006553277373314,
-0.0026850237045437098,
-0.06534960865974426,
0.01564720831811428,
0.011775386519730091,
-0.03333133086562157,
-0.06982745230197906,
-0.011724884621798992,
-0.00026276829885318875,
-0.05767330154776573,
0.018298562616109848,
-0.061208441853523254,
0.019224433228373528,
0.058009982109069824,
-0.010908435098826885,
0.03176576644182205,
-0.028499970212578773,
-0.03966091573238373,
0.018382733687758446,
0.02279324270784855,
0.05356580391526222,
-0.061141107231378555,
0.04511513188481331,
0.0545085072517395,
-0.029223833233118057,
0.033870019018650055,
-0.03356700763106346,
0.11325918883085251,
0.024022124707698822,
-0.04033427685499191,
-0.027877112850546837,
-0.019409608095884323,
0.05235375463962555,
0.027675103396177292,
0.08679612725973129,
0.05814465507864952,
0.03083989769220352,
0.0227764081209898,
-0.011051524430513382,
-0.03504839912056923,
-0.05962604656815529,
0.017187518998980522,
-0.03602477163076401,
-0.03353333845734596,
-0.032540131360292435,
0.0010921061038970947,
0.02085733227431774,
-0.013930139131844044,
0.005180664826184511,
-0.03723682090640068,
-0.06864907592535019,
-0.017945049330592155,
0.02371911332011223,
-0.02413996309041977,
0.01775987446308136,
0.04908796027302742,
0.0015550411771982908,
0.004620934370905161,
-0.0816785916686058,
-0.017658870667219162,
0.026025371626019478,
-0.007983527146279812,
0.03683280199766159,
0.010639091022312641,
0.041142307221889496,
0.01321469433605671,
-0.020369146019220352,
0.034880056977272034,
-0.04602416977286339,
-0.033836349844932556,
-0.01947694458067417,
0.02230505645275116,
0.04235435649752617,
0.013138940557837486,
0.027489930391311646,
-0.011893224902451038,
0.06275717169046402,
0.014830758795142174,
0.07097216695547104,
0.03316298872232437,
-0.004604100249707699,
-0.028567306697368622,
0.07689773291349411,
-0.02546984888613224,
-0.01090001780539751,
-0.04215234890580177,
0.0453844778239727,
-0.018399568274617195,
-0.009822641499340534,
0.028028618544340134,
-0.013315698131918907,
-0.00452834740281105,
0.03831419721245766,
0.04171466454863548,
0.03817952424287796,
-0.03176576644182205,
0.029240665957331657,
0.023096254095435143,
0.0033499670680612326,
0.053969819098711014,
0.03094090148806572,
-0.002653460018336773,
-0.01769253984093666,
0.016354236751794815,
0.05683160200715065,
-0.016488907858729362,
-0.014679252170026302,
0.0005528918700292706,
-0.09413575381040573,
0.0500643290579319,
0.008366500027477741,
-0.023062586784362793,
0.011489208787679672,
-0.04191667214035988,
0.00815607514232397,
-0.039425238966941833,
-0.025554019957780838,
0.057033609598875046,
-0.058851681649684906,
-0.031193410977721214,
0.02552035078406334,
0.004000180400907993,
-0.016530992463231087,
-0.04319605603814125,
0.07056815177202225,
-0.001156285754404962,
-0.030351711437106133,
-0.016648830845952034,
0.0044147176668047905,
-0.029745686799287796,
0.01956111378967762,
-0.011059941723942757,
0.017372693866491318,
0.023382432758808136,
0.019005591049790382,
0.040637288242578506,
-0.0023651777300983667,
0.02594120241701603,
-0.01770937256515026,
-0.000500811671372503,
-0.007537425961345434,
-0.08437203615903854,
0.012979017570614815,
0.01045391708612442,
0.05198340862989426,
0.025604521855711937,
-0.04016593471169472,
-0.003636145032942295,
0.006746227387338877,
-0.08592075854539871,
-0.06760536134243011,
-0.05232008919119835,
-0.022877411916851997,
0.0012951662065461278,
0.03230445459485054,
0.0012109961826354265,
-0.03821318969130516,
0.01574821211397648,
0.017389526590704918,
0.05737029016017914,
0.013298863545060158,
0.05420549586415291,
-0.032960981130599976,
-0.03871821239590645,
0.08127457648515701,
-0.031109241768717766,
0.0006018157000653446,
-0.003272109664976597,
0.05309445038437843,
-0.008694763295352459,
0.03541874513030052,
-0.050670355558395386,
0.00930920522660017,
-0.009915228933095932,
-0.005891901906579733,
-0.05309445038437843,
0.04033427685499191,
0.01774304173886776,
0.010437083430588245,
0.008922022767364979,
-0.0030448506586253643,
0.04494679346680641,
-0.04269103705883026,
-0.053397465497255325,
-0.013854386284947395,
-0.016631996259093285,
0.06531593948602676,
-0.007255455944687128,
-0.05188240483403206,
0.0685143992304802,
0.032960981130599976,
0.011893224902451038,
-0.06036674231290817,
0.05403715744614601,
-0.013761798851191998,
0.06679733097553253,
0.053431130945682526,
-0.004688270390033722,
-0.01004148367792368,
0.009393374435603619,
0.029678350314497948,
-0.08841219544410706,
-0.026261048391461372,
0.0019043468637391925,
-0.0010868454119190574,
0.02360127493739128,
0.040738292038440704,
0.019291769713163376,
0.010538087226450443,
-0.0032152950298041105,
0.0181638915091753,
-0.007234413642436266,
0.01115252822637558,
0.072992242872715,
-0.000033700889616739005,
0.03585642948746681,
-0.03824685886502266,
0.0204869844019413,
0.0684807300567627,
-0.03457704558968544,
-0.0364287868142128,
0.008778933435678482,
-0.032893646508455276,
-0.03922323137521744,
-0.0025840196758508682,
-0.00885468628257513,
0.021985210478305817,
0.025756027549505234,
0.0774364247918129,
0.03777550905942917,
0.005163831170648336,
-0.010411832481622696,
-0.0032384416554123163,
-0.001128930482082069,
-0.03282630816102028,
-0.01524319127202034,
0.015049600042402744,
0.029728852212429047,
-0.011522876098752022,
-0.023786449804902077,
-0.07009679824113846,
0.0363277830183506,
-0.019847292453050613,
-0.039862923324108124,
-0.04141165316104889,
0.009452293626964092,
0.0016991824377328157,
-0.01646365597844124,
-0.06679733097553253,
0.02868514508008957,
-0.025335177779197693,
0.006401130463927984,
-0.023315096274018288,
0.036597125232219696,
-0.03868454322218895,
-0.016674082726240158,
-0.021682199090719223,
-0.050165336579084396,
-0.002006402937695384,
0.08464137464761734,
0.009258702397346497,
-0.006089701317250729,
-0.07083749026060104,
-0.031092407181859016,
-0.08060121536254883,
0.08342932909727097,
0.05491252616047859,
0.06878374516963959,
-0.006636806298047304,
0.011674382723867893,
0.04356640577316284,
-0.0006617868202738464,
0.0033057776745408773,
-0.01866891235113144,
0.03445920720696449,
-0.04679853469133377,
-0.009831058792769909,
0.015041183680295944,
-0.042017675936222076,
-0.004886069800704718,
-0.005248000845313072,
-0.02590753324329853,
0.03912222757935524,
-0.02637888677418232,
0.012011062353849411,
-0.010554920881986618,
-0.0317152664065361,
0.11696266382932663,
-0.0044105094857513905,
-0.04420609772205353,
-0.025688691064715385,
0.009940479882061481,
0.01767570525407791,
0.01117777917534113,
0.0226754043251276,
0.032068777829408646,
0.057572297751903534,
-0.09285636991262436,
0.05141105130314827,
-0.006064450368285179,
0.12127216905355453,
0.0455191507935524,
-0.04679853469133377,
0.014578248374164104,
-0.0203859806060791,
0.01999879814684391,
-0.04043528065085411,
-0.03179943561553955,
-0.02903865836560726,
0.039357904344797134,
0.03006553277373314,
0.04033427685499191,
-0.033886853605508804,
0.062487825751304626,
0.007175494451075792,
0.03999759629368782,
-0.029914027079939842,
-0.018921421840786934,
-0.03851620480418205,
-0.026951242238283157,
0.00913244765251875,
0.007318583782762289,
-0.009603800252079964,
-0.026984909549355507,
-0.02321409247815609,
0.04265736788511276,
-0.007583719212561846,
-0.021985210478305817,
0.0031248121522367,
-0.010125653818249702,
0.06901942193508148,
-0.03176576644182205,
-0.019847292453050613,
0.024392472580075264,
0.0026471472810953856,
-0.008627427741885185,
-0.010866350494325161,
-0.0181638915091753,
0.005395298823714256,
0.0011205134214833379,
0.010184573009610176,
0.04461011290550232,
0.00490290392190218,
0.0771670788526535,
-0.09285636991262436,
-0.007558468263596296,
0.05319545418024063,
-0.06332952529191971,
0.04713521525263786,
0.05242109298706055,
0.014266819693148136,
-0.043061383068561554,
-0.04454277828335762,
0.0026639814022928476,
0.048448264598846436,
0.007899357005953789,
0.04854927211999893,
0.01861841045320034,
0.019392773509025574,
0.044408105313777924,
-0.042994048446416855,
-0.021025672554969788,
0.0636662095785141,
0.07817711681127548,
-0.027860278263688087,
0.007284915540367365,
0.024830156937241554,
-0.0037581915967166424,
0.010933686047792435,
0.0016265857266262174,
0.049862321466207504,
0.057538628578186035,
-0.01914026401937008,
-0.00036035291850566864,
0.0020137678366154432,
0.005862442310899496,
0.006359045393764973,
-0.007066073827445507,
0.03287681192159653,
-0.023432934656739235,
0.06083809584379196,
-0.00534058827906847,
-0.003924427554011345,
0.030755726620554924,
-0.08881621062755585,
-0.03461071476340294,
0.0363614521920681,
-0.00729333283379674,
0.03511573374271393,
-0.0013877532910555601,
0.005963446106761694,
0.06635964661836624,
0.02041964791715145,
-0.010538087226450443,
-0.06329585611820221,
0.07501232624053955,
-0.014014309272170067,
-0.05605723708868027,
-0.004675644915550947,
-0.007794144097715616,
-0.010857933200895786,
-0.0024619733449071646,
-0.01907292753458023,
-0.010698010213673115,
-0.03373534604907036,
0.034391872584819794,
0.03230445459485054,
-0.05104070156812668,
-0.026294715702533722,
-0.028533639386296272,
0.016909757629036903,
0.07056815177202225,
0.0008795767789706588,
-0.06285817176103592,
0.000004455092948774109,
-0.019342271611094475,
-0.09979198127985,
0.022052546963095665,
-0.04056995362043381,
0.016194311901926994,
-0.0030911441426724195,
0.027035411447286606,
-0.0911729708313942,
0.03287681192159653,
0.008189743384718895,
0.031580593436956406,
0.055653221905231476,
0.03558708727359772,
0.029914027079939842,
-0.041243311017751694,
-0.008753682486712933,
-0.008888354524970055,
-0.005483677145093679,
-0.04413875937461853,
-0.014477244578301907,
-0.03048638254404068,
0.01917393133044243,
-0.06100643426179886,
0.07083749026060104,
-0.006228582002222538,
-0.05198340862989426,
0.0204028133302927,
-0.02452714554965496,
-0.059390369802713394,
0.02728792279958725,
0.06437323242425919,
-0.009671135805547237,
0.000858008221257478,
-0.0028596764896064997,
0.020150303840637207,
0.05322912335395813,
-0.02188420668244362,
-0.013702879659831524,
-0.040704622864723206,
0.03609210625290871,
0.0113377021625638,
0.023550773039460182,
0.05107437074184418,
0.008576925843954086,
-0.015588288195431232,
-0.007785727269947529,
-0.06046774610877037,
0.019931461662054062,
-0.008627427741885185,
0.024257801473140717,
-0.014763422310352325,
0.02363494224846363,
-0.036630794405937195,
-0.00930920522660017,
-0.027590934187173843,
0.002035862533375621,
-0.031058739870786667,
0.03690014034509659,
-0.05333012714982033,
0.0056688510812819,
-0.03599110245704651,
-0.0006344315479509532,
0.02903865836560726,
-0.05598990246653557,
0.04585583135485649,
-0.029392173513770103,
-0.0013319907011464238,
-0.026597727090120316,
0.05871700868010521,
0.00671255961060524,
-0.009603800252079964,
-0.006729393731802702,
0.004002284724265337,
-0.04821259155869484,
0.012507665902376175,
-0.03292731195688248,
0.02775927446782589,
-0.018298562616109848,
0.005483677145093679,
-0.022473396733403206,
0.007217579521238804,
0.05198340862989426,
0.01342511922121048,
0.007806770037859678,
-0.010394997894763947,
0.012347742915153503,
0.004869236145168543,
0.000772259954828769,
-0.017978716641664505,
-0.003202669555321336,
0.023887453600764275,
0.016741417348384857,
0.026210546493530273,
0.0008848374127410352,
-0.03834786266088486,
-0.023550773039460182,
-0.05235375463962555,
-0.07837912440299988,
0.0006728341104462743,
0.0044105094857513905,
-0.09716587513685226,
-0.017911382019519806,
-0.022574400529265404,
0.021143510937690735,
-0.012415078468620777,
0.03690014034509659,
-0.012465580366551876,
0.003156375838443637,
-0.010967354290187359,
0.005264834966510534,
0.03149642422795296,
0.008446462452411652,
0.0023588649928569794,
-0.07817711681127548,
0.016505742445588112,
-0.006518968380987644,
-0.04720254987478256,
0.020604822784662247,
-0.020099801942706108,
-0.011068358086049557,
0.047101546078920364,
0.024022124707698822,
-0.0027860277332365513,
0.04033427685499191,
0.04013226926326752,
-0.01779354363679886,
0.032472796738147736,
0.013088438659906387,
0.054340168833732605,
-0.007255455944687128,
-0.03238862380385399,
0.0018969819648191333,
-0.0036698130425065756,
-0.04757289960980415,
0.030334876850247383,
0.024796489626169205,
0.02144652232527733,
0.00887993723154068,
-0.027994951233267784,
0.059794384986162186,
-0.033886853605508804,
-0.03407202661037445,
0.005189082119613886,
-0.04046894982457161,
-0.019224433228373528,
-0.04508146643638611,
0.018988758325576782,
0.009898395277559757,
0.014426742680370808,
-0.014721337705850601,
-0.0024072628002613783,
-0.002527205040678382,
-0.04723621904850006,
-0.006022365298122168,
0.009915228933095932,
0.021614862605929375,
-0.03551974892616272,
-0.04679853469133377,
0.048885948956012726,
-0.004890278447419405,
0.005163831170648336,
-0.008913605473935604,
0.029863525182008743,
0.02413996309041977,
-0.025638189166784286,
-0.026160044595599174,
-0.009671135805547237,
0.007815186865627766,
-0.03578909486532211,
-0.010841099545359612,
-0.013551373966038227,
0.0006102327024564147,
-0.002653460018336773,
-0.004313713870942593,
0.00034272982156835496,
0.013593459501862526,
-0.07555101811885834,
-0.0007412222912535071,
0.004650393966585398,
-0.05814465507864952,
-0.010159322060644627,
-0.04713521525263786,
0.057538628578186035,
-0.048919618129730225,
-0.04171466454863548,
0.004206397105008364,
-0.041613660752773285,
0.0775710940361023,
-0.009637467563152313,
-0.005062826909124851,
0.0044778455048799515,
0.07218421250581741,
0.008467504754662514,
0.022860579192638397,
-0.012970601208508015,
-0.030722059309482574,
-0.030587386339902878,
0.02456081286072731,
-0.027590934187173843,
-0.04498046264052391,
-0.020133469253778458,
0.035183072090148926,
0.06524860113859177,
-0.01653940975666046,
0.0342235304415226,
-0.025301508605480194,
-0.0250995010137558,
0.02910599485039711,
-0.06662899255752563,
-0.024375639855861664,
0.03898755460977554,
0.023096254095435143,
-0.007890939712524414,
0.0003169527626596391,
0.019291769713163376,
-0.06763903051614761,
-0.04952564090490341,
0.0058708591386675835,
-0.023533938452601433,
0.020688991993665695,
0.033836349844932556,
-0.021901041269302368,
-0.008143450133502483,
0.01135453674942255,
0.0017475801287218928,
0.03358383849263191,
-0.01459508202970028,
0.022877411916851997,
0.051545724272727966,
0.052050743252038956,
0.005710936151444912,
0.046562857925891876,
0.003211086383089423,
-0.002931221155449748,
0.004869236145168543,
0.038819216191768646,
0.005349005106836557,
-0.1001959964632988,
-0.06976011395454407,
-0.0226754043251276,
0.00306589319370687,
-0.011118859983980656,
0.011640714481472969,
-0.04188300296664238,
-0.020284976810216904,
0.03774183988571167,
-0.00998256541788578,
0.02452714554965496,
0.032051946967840195,
-0.037034809589385986,
-0.056225575506687164,
-0.03317982330918312,
0.005643600132316351,
-0.02141285501420498,
0.03538507968187332,
-0.0547105148434639,
0.02144652232527733,
0.049862321466207504,
-0.02269223891198635,
0.053532134741544724,
-0.04824625700712204,
0.01587446592748165,
-0.034290868788957596,
0.007672097999602556,
-0.09305837750434875,
-0.04511513188481331,
-0.002645042957738042,
0.005256418138742447,
-0.01231407467275858,
0.032994650304317474,
0.007373294327408075,
0.03230445459485054,
0.06777370721101761,
-0.0017623099265620112,
-0.06780736893415451,
0.018029218539595604,
0.01818072609603405,
-0.0640028864145279,
-0.02052065171301365,
0.008307581767439842,
0.011068358086049557,
-0.006855648476630449,
0.06922142952680588,
-0.004881861619651318,
0.015529369935393333,
-0.08437203615903854,
0.025284675881266594,
0.04807791858911514,
0.003482534782961011,
-0.0681777223944664,
0.05235375463962555,
0.0016476282617077231,
0.0454518124461174,
-0.03457704558968544,
-0.012844345532357693,
-0.03041904792189598,
-0.004822942428290844,
0.006624180823564529,
0.001320417271926999,
0.03003186546266079,
0.017195936292409897,
-0.004143269266933203,
0.006409547291696072,
-0.004843984730541706
] |
21,459 | tfields.triangles_3d | _weights |
transformer method for weights inputs.
Args:
weights (np.ndarray | int | None):
If weights is integer it will be used as index for fields and fields are
used as weights.
If weights is None it will
Otherwise just pass the weights.
Returns:
TODO: Better docs
| def _weights(self, weights, rigid=False):
"""
transformer method for weights inputs.
Args:
weights (np.ndarray | int | None):
If weights is integer it will be used as index for fields and fields are
used as weights.
If weights is None it will
Otherwise just pass the weights.
Returns:
TODO: Better docs
"""
# set weights to 1.0 if weights is None
if weights is None:
weights = np.ones(self.ntriangles())
return super(Triangles3D, self)._weights(weights, rigid=rigid)
| (self, weights, rigid=False) | [
-0.027366284281015396,
-0.01404549553990364,
0.008446278050541878,
0.0030562756583094597,
-0.034768640995025635,
-0.01053412165492773,
-0.05003923550248146,
0.04192942753434181,
0.019981184974312782,
0.07219453901052475,
0.028280794620513916,
0.029040010645985603,
-0.0012272553285583854,
-0.018566282466053963,
-0.032439228147268295,
0.022293342277407646,
-0.012742750346660614,
0.05676864832639694,
-0.004320197738707066,
-0.012535691261291504,
-0.025450989603996277,
-0.06346355378627777,
0.021378831937909126,
0.09290042519569397,
-0.010896475054323673,
-0.035717662423849106,
-0.025882363319396973,
-0.015779614448547363,
0.02294902876019478,
-0.009533337317407131,
-0.0854463055729866,
0.018031379207968712,
-0.02514040097594261,
0.016245495527982712,
0.0002766177640296519,
-0.026779618114233017,
-0.027711383998394012,
0.013665887527167797,
-0.00935216061770916,
0.030075306072831154,
0.050901979207992554,
-0.007846669293940067,
0.0183247122913599,
0.003198628779500723,
-0.008286669850349426,
0.05669962987303734,
0.05759688466787338,
-0.019101183861494064,
-0.01758275181055069,
-0.043413348495960236,
0.06077178940176964,
-0.02248314581811428,
0.07488629966974258,
-0.015477652661502361,
-0.023967068642377853,
-0.01745334081351757,
0.002073824405670166,
-0.026658833026885986,
-0.016271378844976425,
-0.07205649465322495,
0.014218044467270374,
-0.009343532845377922,
0.016435300931334496,
-0.017824320122599602,
-0.02294902876019478,
-0.012035299092531204,
0.000940392492339015,
0.027797657996416092,
0.04641570523381233,
0.010732552967965603,
-0.0016888241516426206,
-0.0192909874022007,
0.0035501974634826183,
-0.012009416706860065,
0.0025903931818902493,
0.03978981822729111,
0.04734746739268303,
0.015218829736113548,
-0.014761574566364288,
-0.003925491590052843,
-0.003548040520399809,
-0.015900397673249245,
-0.022914517670869827,
0.014080005697906017,
0.00539215886965394,
-0.011923141777515411,
-0.043620407581329346,
-0.03174903243780136,
0.011181180365383625,
-0.04068707302212715,
-0.0854463055729866,
0.019463537260890007,
-0.0063800024800002575,
0.008920787833631039,
0.05883923918008804,
0.003787452355027199,
0.00467608030885458,
-0.10622121393680573,
-0.02224157750606537,
0.01174196507781744,
-0.030368639156222343,
0.006138433702290058,
-0.014520005322992802,
0.015952162444591522,
0.010525493882596493,
-0.07481728494167328,
-0.04762354865670204,
-0.06919218599796295,
0.05711374804377556,
0.010361572727560997,
-0.04900394007563591,
-0.015279221348464489,
0.019221968948841095,
0.027297265827655792,
0.0020878438372164965,
-0.04838276281952858,
-0.011767847463488579,
0.032318443059921265,
-0.012699612416327,
0.05856315791606903,
0.06867453455924988,
-0.0033064717426896095,
0.00538353156298399,
0.010404709726572037,
-0.025295695289969444,
0.021810203790664673,
0.008726670406758785,
-0.009214120917022228,
0.04189491644501686,
-0.0037788250483572483,
0.0020565693266689777,
-0.0021417655516415834,
-0.031352169811725616,
0.007160787004977465,
-0.01654745638370514,
0.07426512986421585,
0.014787456952035427,
0.04655374214053154,
0.031697265803813934,
0.03937570005655289,
0.05935688689351082,
0.022293342277407646,
0.053593747317790985,
0.026624323800206184,
-0.00023941184917930514,
0.036304328590631485,
0.026192951947450638,
-0.00490470789372921,
-0.049314528703689575,
0.013916083611547947,
0.0007780885207466781,
0.025985892862081528,
0.011647063307464123,
-0.016055691987276077,
-0.042826682329177856,
0.02498510666191578,
-0.02626197040081024,
-0.06598276644945145,
0.05124707892537117,
-0.007920002564787865,
0.006906277034431696,
0.007876865565776825,
-0.00020503684936556965,
0.01970510557293892,
-0.02032628282904625,
0.03288785740733147,
0.024640008807182312,
-0.017600007355213165,
-0.03126589581370354,
0.026072166860103607,
0.031076090410351753,
-0.02702118642628193,
-0.05514668673276901,
0.04803766682744026,
0.04206746816635132,
-0.016314515843987465,
0.0003494118864182383,
-0.01849726215004921,
-0.014649417251348495,
0.06729414314031601,
0.053559236228466034,
-0.024709029123187065,
-0.025675304234027863,
0.02959216758608818,
0.055388256907463074,
0.025830598548054695,
0.016443928703665733,
0.04068707302212715,
0.013691769912838936,
0.004775295965373516,
0.050763942301273346,
-0.008989807218313217,
0.008610199205577374,
-0.00985255278646946,
0.027452560141682625,
0.030523933470249176,
0.028781186789274216,
-0.06156551465392113,
-0.034941188991069794,
-0.01587451621890068,
-0.0005311276763677597,
-0.10097572207450867,
0.034527070820331573,
0.01787608489394188,
-0.029816482216119766,
0.0043913740664720535,
0.0005230394308455288,
-0.025761578232049942,
-0.030938051640987396,
-0.007117649540305138,
0.03292236477136612,
-0.033146679401397705,
0.00245666760019958,
0.028108246624469757,
0.01861804537475109,
-0.005116080399602652,
-0.08234042674303055,
-0.003287060186266899,
-0.016150593757629395,
-0.009731768630445004,
0.0032956874929368496,
0.04203295707702637,
-0.008040787652134895,
-0.01311373058706522,
0.021585891023278236,
-0.027072951197624207,
0.019429026171565056,
-0.020585106685757637,
-0.06684551388025284,
0.05583688244223595,
0.04196393862366676,
-0.006095296237617731,
-0.01244941633194685,
0.02024000696837902,
-0.0050729429349303246,
-0.01683216355741024,
-0.024450205266475677,
-0.054974138736724854,
0.09428081661462784,
-0.019636085256934166,
-0.006694904528558254,
0.005603531375527382,
0.024415696039795876,
-0.0188251044601202,
0.018393732607364655,
0.03254275768995285,
0.04834825545549393,
-0.0061513748951256275,
-0.014614907093346119,
-0.008808630518615246,
-0.03592471778392792,
-0.006086668930947781,
-0.04396550729870796,
-0.006561179179698229,
-0.001447255490347743,
0.0016392163233831525,
0.04631217569112778,
-0.01246667094528675,
-0.0457255057990551,
-0.032352954149246216,
-0.024432949721813202,
-0.03699452430009842,
0.036511387676000595,
0.0447937436401844,
0.026624323800206184,
-0.0060305907391011715,
0.04175687953829765,
0.007656865753233433,
-0.057044725865125656,
0.020291771739721298,
0.021206282079219818,
0.05597492307424545,
0.012509808875620365,
-0.020343536511063576,
0.012596082873642445,
-0.049728646874427795,
0.0006826473399996758,
0.028073735535144806,
-0.014416475780308247,
0.038340408354997635,
-0.017349811270833015,
-0.02838432416319847,
-0.03899609297513962,
-0.016702750697731972,
-0.008118434809148312,
0.02510589174926281,
-0.02817726507782936,
-0.02162040024995804,
-0.017686281353235245,
-0.03071373701095581,
0.041998445987701416,
0.025278441607952118,
-0.0013059808406978846,
-0.046036094427108765,
-0.03155922889709473,
-0.0914510115981102,
-0.06560315936803818,
-0.014537260867655277,
0.05462903901934624,
0.0013404906494542956,
-0.029229814186692238,
0.0054698060266673565,
0.05466355010867119,
-0.015934908762574196,
-0.042999230325222015,
0.011974906548857689,
0.021050987765192986,
0.00035022071097046137,
0.004701962694525719,
-0.012837652117013931,
-0.005055688321590424,
-0.014200789853930473,
-0.06967531889677048,
0.00682862987741828,
0.052385903894901276,
-0.02826354093849659,
0.05207531526684761,
0.023501185700297356,
-0.004246864467859268,
0.07136630266904831,
-0.03145569935441017,
0.003267648397013545,
-0.041791386902332306,
-0.008265101350843906,
-0.06646590679883957,
-0.015779614448547363,
0.04717491939663887,
-0.05128158628940582,
-0.006103924009948969,
0.03278432786464691,
-0.0015130398096516728,
0.057010218501091,
0.03162824735045433,
-0.00517647247761488,
-0.061323944479227066,
-0.0053662764839828014,
0.09455689787864685,
0.019636085256934166,
-0.0036494131200015545,
-0.002023138105869293,
0.013225886970758438,
-0.006401570979505777,
0.001328627928160131,
0.04662276431918144,
-0.03042040392756462,
-0.015857260674238205,
0.008075296878814697,
-0.010439219884574413,
0.08061493188142776,
0.08227140456438065,
-0.028729422017931938,
-0.02451922558248043,
0.010206278413534164,
0.027711383998394012,
-0.02357020415365696,
-0.04313727095723152,
-0.003541569923982024,
-0.02631373517215252,
0.024139616638422012,
-0.011051769368350506,
-0.04641570523381233,
0.003996668383479118,
0.006876081228256226,
0.06097884848713875,
0.05649257078766823,
-0.012647847644984722,
0.04896942898631096,
-0.027487069368362427,
-0.0030023541767150164,
0.022914517670869827,
0.015175691805779934,
-0.057424336671829224,
-0.06225571036338806,
0.035010211169719696,
0.0238980483263731,
-0.007234120275825262,
-0.029833735898137093,
0.031196875497698784,
0.0447937436401844,
-0.01799686998128891,
-0.032853346318006516,
0.010913729667663574,
0.035683151334524155,
-0.003582550445571542,
-0.02847059816122055,
-0.01340706367045641,
0.0299717765301466,
0.0029721579048782587,
-0.01432157400995493,
0.007648237980902195,
0.021413341164588928,
0.011612553149461746,
0.004430197644978762,
-0.050108253955841064,
-0.06387767195701599,
0.02726275473833084,
-0.009127846919000149,
-0.00014922799891792238,
-0.01923922263085842,
-0.016357652842998505,
-0.034527070820331573,
-0.09724866598844528,
-0.07861336320638657,
0.028625892475247383,
-0.05707923695445061,
0.0700894370675087,
-0.005569021683186293,
0.08965650200843811,
0.04634668305516243,
-0.04500080272555351,
-0.01032706256955862,
0.08510120958089828,
0.01236314233392477,
-0.019101183861494064,
-0.003806864144280553,
-0.008109807036817074,
0.05307609960436821,
0.019360007718205452,
0.00470627611503005,
0.0508674718439579,
0.07385101169347763,
0.050522372126579285,
0.06360159069299698,
0.05511217936873436,
0.07212551683187485,
-0.03661491721868515,
-0.012173337861895561,
-0.02855687402188778,
0.04386197775602341,
0.0299717765301466,
-0.04041099548339844,
-0.03154197335243225,
0.005581962876021862,
-0.07398904860019684,
0.028004717081785202,
0.03321569785475731,
0.025209421291947365,
0.04351687803864479,
-0.029730208218097687,
0.04962511733174324,
0.0915200337767601,
-0.04103217273950577,
-0.015037653036415577,
-0.0640157088637352,
-0.007799218874424696,
-0.03999687731266022,
-0.005129021592438221,
-0.004960786085575819,
-0.053559236228466034,
-0.018065888434648514,
0.05352472513914108,
0.009170983918011189,
0.03262903168797493,
-0.005267060827463865,
-0.029109030961990356,
0.048693351447582245,
-0.00960235670208931,
-0.05711374804377556,
0.025985892862081528,
-0.018928634002804756,
0.02643452025949955,
0.01383843645453453,
0.0426541343331337,
-0.042378056794404984,
-0.05414590239524841,
-0.06025414168834686,
-0.01703922264277935,
-0.07957963645458221,
0.008014905266463757,
-0.008269415237009525,
0.11726436018943787,
0.012794515118002892,
-0.011845494620501995,
-0.04358590021729469,
0.02065412513911724,
0.04255060479044914,
0.005081570707261562,
-0.026123931631445885,
-0.0300062857568264,
-0.06549963355064392,
-0.008972552604973316,
-0.006315296515822411,
0.0264000091701746,
0.010680788196623325,
-0.0011700984323397279,
0.009843925014138222,
-0.07688787579536438,
0.007734512910246849,
0.04717491939663887,
-0.0050729429349303246,
-0.007997649721801281,
0.026676088571548462,
0.0832376778125763,
0.0538698248565197,
-0.020757654681801796,
0.03916864097118378,
0.015123927034437656,
0.011301965452730656,
0.004930590279400349,
0.06988237798213959,
0.019981184974312782,
0.004128236789256334,
-0.029316090047359467,
-0.019515302032232285,
-0.024346675723791122,
-0.022880008444190025,
0.013027455657720566,
0.010232160799205303,
-0.00020382361253723502,
-0.018894124776124954,
-0.035683151334524155,
0.012777259573340416,
0.0043913740664720535,
0.035096485167741776,
-0.010698043741285801,
-0.04227452725172043,
-0.07295375317335129,
0.05808002129197121,
-0.02602040208876133,
-0.01866981014609337,
0.05017727240920067,
0.025537265464663506,
-0.04351687803864479,
-0.012509808875620365,
0.024260401725769043,
-0.0019142164383083582,
-0.030040794983506203,
-0.08268552273511887,
0.09918121248483658,
0.057665903121232986,
-0.0006713237962685525,
-0.009938827715814114,
-0.008575689978897572,
0.023173341527581215,
-0.02717648074030876,
-0.031196875497698784,
0.010801572352647781,
-0.0340784452855587,
-0.034941188991069794,
-0.021723929792642593,
0.017634516581892967,
-0.018480006605386734,
0.011267455294728279,
-0.06011610105633736,
0.045829035341739655,
0.0020123536232858896,
-0.03233569860458374,
0.0015259810024872422,
-0.07412708550691605,
-0.003343138610944152,
-0.08689571917057037,
-0.07088316231966019,
-0.014105888083577156,
0.03155922889709473,
0.0711592435836792,
-0.0003817648394033313,
-0.017349811270833015,
-0.0037939229514449835,
-0.012725494801998138,
0.03723609074950218,
0.0007085296674631536,
-0.06363610178232193,
0.05066041275858879,
-0.003906079800799489,
-0.020257262513041496,
-0.010913729667663574,
0.01224235724657774,
0.010905101895332336,
-0.02269020490348339,
-0.0030282363295555115,
-0.0018624516669660807,
0.021344322711229324,
0.05628551170229912,
0.05545727536082268,
-0.021292557939887047,
-0.01808314397931099,
-0.019480790942907333,
-0.0223968718200922,
-0.035010211169719696,
-0.06622433662414551,
-0.003884511301293969,
0.021189028397202492,
-0.01588314399123192,
0.012216474860906601,
0.06225571036338806,
-0.03012707084417343,
0.01383843645453453,
0.06612081080675125,
-0.04755452647805214,
0.047692567110061646,
-0.02310432307422161,
-0.05904629826545715,
0.008869023062288761,
0.0228972639888525,
0.010861964896321297,
-0.011370984837412834,
-0.05028080195188522,
-0.01608157530426979,
0.052938058972358704,
0.00562078645452857,
-0.018272947520017624,
0.0007726963958702981,
0.01452863309532404,
0.045863546431064606,
-0.014364711008965969,
-0.00823059119284153,
-0.024087851867079735,
-0.009421180002391338,
-0.007618042174726725,
-0.04210197553038597,
0.025364715605974197,
-0.03171452134847641,
0.030817266553640366,
-0.01165569107979536,
-0.021465105935931206,
0.013734906911849976,
-0.07060708850622177,
0.01103451382368803,
0.0753694400191307,
-0.013726280070841312,
-0.04389648884534836,
-0.05290354788303375,
-0.013501966372132301,
0.00968863070011139,
0.004130393732339144,
0.028401579707860947,
0.06042668968439102,
-0.051143549382686615,
-0.009524709545075893,
-0.00537059037014842,
0.032732561230659485,
-0.03067922778427601,
0.05814904347062111,
0.006405884865671396,
-0.032490991055965424,
0.05352472513914108,
-0.012768632732331753,
-0.02244863659143448,
0.01604706421494484,
-0.02381177432835102,
-0.021585891023278236,
0.03176628798246384,
0.0376502089202404,
-0.035890210419893265,
0.0340784452855587,
-0.039962369948625565,
-0.004098040983080864,
-0.03937570005655289,
-0.0006389708141796291,
0.006065100431442261,
-0.09193415194749832,
0.000054123796871863306,
-0.06097884848713875,
-0.028108246624469757,
0.04248158633708954,
0.047243937849998474,
0.0013674515066668391,
-0.026900403201580048,
-0.023052558302879333,
0.00036343152169138193,
-0.05897727608680725,
0.010042356327176094,
0.03592471778392792,
-0.03416471928358078,
0.052592962980270386,
0.03727060183882713,
-0.010197650641202927,
-0.022672949358820915,
0.004857256542891264,
-0.058666687458753586,
-0.0548706091940403,
0.032404717057943344,
0.005745884496718645,
-0.006612943485379219,
0.00046588253462687135,
0.05383531376719475,
0.02696942165493965,
0.015943534672260284,
-0.032111383974552155,
-0.06625884771347046,
0.025744322687387466,
0.017367064952850342,
-0.0007500493084080517,
0.04734746739268303,
0.0549396276473999,
-0.05545727536082268,
-0.08082199096679688,
0.05776943266391754,
-0.0034747072495520115,
0.013890201225876808,
-0.032939620316028595,
-0.008972552604973316,
0.04189491644501686,
0.004233923275023699,
0.02631373517215252,
-0.045449428260326385,
-0.015149809420108795,
0.017056476324796677,
0.02738353982567787,
0.02210353873670101,
0.009749023243784904,
-0.03582118824124336,
-0.04085962474346161,
0.02070588991045952,
0.022000009194016457,
-0.05859766900539398,
0.014002358540892601,
-0.014649417251348495,
0.007648237980902195,
-0.004333138931542635,
-0.026900403201580048,
0.009214120917022228,
0.023846283555030823,
0.008342748507857323,
-0.06463688611984253,
0.035061974078416824,
0.04127374291419983,
0.024916088208556175,
-0.0019012752454727888,
-0.024967852979898453,
-0.008390199393033981,
-0.03117961995303631,
-0.004283531103283167,
0.010585886426270008,
-0.04186040908098221,
-0.006233335472643375,
0.006220394745469093,
-0.021758439019322395,
-0.05952943488955498,
0.0007980395457707345,
0.051523156464099884,
-0.047865115106105804,
-0.015391378663480282,
-0.02829805016517639,
0.040341977030038834,
0.03937570005655289,
0.05210982263088226,
-0.025054126977920532,
-0.04134276136755943,
0.06653492897748947,
-0.014908241108059883,
0.021258046850562096,
-0.054801590740680695,
-0.025985892862081528,
0.03575216978788376,
-0.002875099191442132,
0.02186196856200695,
0.05159217491745949,
0.025002362206578255,
-0.06411924213171005,
0.05759688466787338,
0.047450996935367584,
0.030851775780320168,
-0.07053806632757187,
0.0835137590765953,
0.013053338043391705,
0.05169570446014404,
-0.06967531889677048,
-0.03754667937755585,
-0.042792174965143204,
0.0020997067913413048,
-0.03992785885930061,
0.016452554613351822,
0.04168785735964775,
0.03978981822729111,
0.0046027470380067825,
0.030489424243569374,
0.03483765944838524
] |
21,460 | tfields.triangles_3d | areas |
Calculate area with "heron's formula"
Args:
transform (np.ndarray): optional transformation matrix
The triangle points are transformed with transform if given
before calclulating the area
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[1,0,0], [0,0,1], [0,0,0]],
... faces=[[0, 1, 2]])
>>> assert np.allclose(m.triangles().areas(), np.array([0.5]))
>>> m = tfields.Mesh3D([[1,0,0], [0,1,0], [0,0,0], [0,0,1]],
... faces=[[0, 1, 2], [1, 2, 3]])
>>> assert np.allclose(m.triangles().areas(), np.array([0.5, 0.5]))
>>> m = tfields.Mesh3D([[1,0,0], [0,1,0], [1,1,0], [0,0,1], [1,0,1]],
... faces=[[0, 1, 2], [0, 3, 4]])
>>> assert np.allclose(m.triangles().areas(), np.array([0.5, 0.5]))
| def areas(self, transform=None):
"""
Calculate area with "heron's formula"
Args:
transform (np.ndarray): optional transformation matrix
The triangle points are transformed with transform if given
before calclulating the area
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[1,0,0], [0,0,1], [0,0,0]],
... faces=[[0, 1, 2]])
>>> assert np.allclose(m.triangles().areas(), np.array([0.5]))
>>> m = tfields.Mesh3D([[1,0,0], [0,1,0], [0,0,0], [0,0,1]],
... faces=[[0, 1, 2], [1, 2, 3]])
>>> assert np.allclose(m.triangles().areas(), np.array([0.5, 0.5]))
>>> m = tfields.Mesh3D([[1,0,0], [0,1,0], [1,1,0], [0,0,1], [1,0,1]],
... faces=[[0, 1, 2], [0, 3, 4]])
>>> assert np.allclose(m.triangles().areas(), np.array([0.5, 0.5]))
"""
if transform is None:
return self._areas
else:
indices = range(self.ntriangles())
aIndices = [i * 3 for i in indices]
bIndices = [i * 3 + 1 for i in indices]
cIndices = [i * 3 + 2 for i in indices]
# define 3 vectors building the triangle, transform it back and take their norm
if not np.array_equal(transform, np.eye(3)):
a = np.linalg.norm(
np.linalg.solve(
transform.T, (self[aIndices, :] - self[bIndices, :]).T
),
axis=0,
)
b = np.linalg.norm(
np.linalg.solve(
transform.T, (self[aIndices, :] - self[cIndices, :]).T
),
axis=0,
)
c = np.linalg.norm(
np.linalg.solve(
transform.T, (self[bIndices, :] - self[cIndices, :]).T
),
axis=0,
)
else:
a = np.linalg.norm(self[aIndices, :] - self[bIndices, :], axis=1)
b = np.linalg.norm(self[aIndices, :] - self[cIndices, :], axis=1)
c = np.linalg.norm(self[bIndices, :] - self[cIndices, :], axis=1)
# sort by length for numerical stability
lengths = np.concatenate(
(a.reshape(-1, 1), b.reshape(-1, 1), c.reshape(-1, 1)), axis=1
)
lengths.sort()
a, b, c = lengths.T
return 0.25 * np.sqrt(
(a + (b + c)) * (c - (a - b)) * (c + (a - b)) * (a + (b - c))
)
| (self, transform=None) | [
-0.020326560363173485,
-0.020695779472589493,
0.034784458577632904,
0.0023464933037757874,
-0.02920728363096714,
-0.013845768757164478,
-0.017139604315161705,
-0.026875365525484085,
-0.09638597816228867,
0.03746616467833519,
-0.014895131811499596,
0.0352897047996521,
-0.04267411679029465,
-0.004583678208291531,
-0.04119723290205002,
0.014642507769167423,
-0.04395667091012001,
0.008302602916955948,
0.025767704471945763,
-0.019073152914643288,
-0.02343578450381756,
-0.06921912729740143,
-0.00657795462757349,
0.01935492642223835,
-0.007457282394170761,
-0.03888474777340889,
0.038787584751844406,
-0.05219611898064613,
0.03874871879816055,
0.021803442388772964,
-0.035620059818029404,
0.041624750941991806,
-0.02141478843986988,
-0.02436855249106884,
-0.00784593541175127,
-0.1137976422905922,
0.039914678782224655,
0.014768819324672222,
0.014467613771557808,
0.09281037002801895,
0.015147756785154343,
-0.010415904223918915,
0.051069024950265884,
0.016148539260029793,
0.012164843268692493,
0.005494583863765001,
0.022619612514972687,
0.015623856335878372,
-0.07944070547819138,
-0.02973196655511856,
0.015497544780373573,
-0.07279473543167114,
0.03857382386922836,
0.017712866887450218,
0.00699089840054512,
0.029809696599841118,
-0.0030169200617820024,
-0.010775408707559109,
-0.001634772284887731,
-0.027574941515922546,
-0.01164987776428461,
-0.0027837282977998257,
0.06918025761842728,
-0.0241936594247818,
-0.027652671560645103,
-0.03068416565656662,
0.017615703865885735,
0.06350592523813248,
0.03983694687485695,
0.03836006671190262,
-0.04034219682216644,
0.034609563648700714,
0.05445030704140663,
-0.0740772932767868,
0.06576011329889297,
0.037679921835660934,
0.04244092479348183,
0.02986799366772175,
0.019257763400673866,
0.006096996366977692,
-0.0281967855989933,
-0.001472023781388998,
0.01805293932557106,
0.01635258086025715,
0.0023477079812437296,
0.02738061361014843,
0.039040207862854004,
-0.01976301334798336,
-0.04053652286529541,
-0.03789368271827698,
-0.006616819649934769,
-0.00971147045493126,
0.0025918306782841682,
0.014438464306294918,
-0.0086135258898139,
-0.015147756785154343,
-0.04624972492456436,
-0.05204065516591072,
0.009483137167990208,
-0.018363861367106438,
0.030373243615031242,
0.03676658868789673,
0.034123744815588,
0.030995089560747147,
0.07411615550518036,
-0.027827564626932144,
-0.016673220321536064,
-0.06171812117099762,
0.07275587320327759,
0.028643736615777016,
-0.03664999082684517,
0.030897924676537514,
-0.010814273729920387,
0.03752446174621582,
-0.034007150679826736,
-0.04325709491968155,
-0.003080076305195689,
0.047065895050764084,
-0.06712039560079575,
-0.012019098736345768,
0.0378742478787899,
0.003121370682492852,
0.017207618802785873,
-0.027283450588583946,
0.023280324414372444,
0.0008975458913482726,
-0.01900513842701912,
0.0027837282977998257,
-0.03346303477883339,
-0.0597359873354435,
0.013709739781916142,
0.04508376494050026,
0.04341255500912666,
-0.0030970796942710876,
-0.054838959127664566,
0.04589993879199028,
0.0563935711979866,
-0.012019098736345768,
0.01502144429832697,
0.019014855846762657,
0.03097565658390522,
0.0010111054871231318,
0.017061872407794,
-0.05305115506052971,
-0.04317936673760414,
0.04450078681111336,
0.027166854590177536,
-0.009381115436553955,
-0.04679384082555771,
-0.006665401626378298,
0.006373911630362272,
-0.01575016975402832,
0.07372750341892242,
0.007865368388593197,
0.005980400368571281,
-0.05029171705245972,
-0.010367322713136673,
-0.021686846390366554,
-0.00247037666849792,
-0.006276748143136501,
-0.016138821840286255,
0.059502799063920975,
-0.005407136864960194,
0.08153942972421646,
-0.04465624690055847,
0.014419032260775566,
0.05810364708304405,
-0.03863212466239929,
-0.06836409121751785,
-0.0039909821934998035,
-0.03890417888760567,
-0.013709739781916142,
-0.09413179010152817,
0.06972437351942062,
-0.0024193658027797937,
0.014555060304701328,
0.001739222789183259,
-0.0023890023585408926,
-0.0012509772786870599,
-0.012048247270286083,
-0.03268573060631752,
-0.016138821840286255,
0.0182278323918581,
0.018966274335980415,
0.027827564626932144,
0.03567836061120033,
0.02955707162618637,
-0.03010118566453457,
0.006184443365782499,
-0.0015121037140488625,
-0.04111950471997261,
-0.036319635808467865,
-0.006879160646349192,
-0.0021849593613296747,
0.026875365525484085,
0.017742015421390533,
-0.003966691438108683,
-0.036261338740587234,
-0.027069691568613052,
-0.024115927517414093,
-0.10579138994216919,
-0.0489702969789505,
0.01094058621674776,
0.005285682622343302,
0.01863591931760311,
0.008696114644408226,
-0.006028981879353523,
-0.007510722149163485,
0.004860593471676111,
0.036902617663145065,
0.01876223087310791,
-0.048581644892692566,
-0.09288810193538666,
0.07003530114889145,
-0.01692584529519081,
-0.004948040470480919,
0.013175342231988907,
0.005062207113951445,
0.006140719633549452,
0.03876814991235733,
-0.03676658868789673,
0.012592362239956856,
-0.0009576656739227474,
-0.011086330749094486,
-0.008462922647595406,
0.013019880279898643,
0.042402058839797974,
0.05110789090394974,
-0.02790529653429985,
-0.033074382692575455,
0.035620059818029404,
-0.017256200313568115,
-0.0483873188495636,
-0.012563212774693966,
0.00112466502469033,
0.019325777888298035,
-0.024698907509446144,
-0.006262173876166344,
0.027341749519109726,
0.015584991313517094,
0.005586889106780291,
-0.055072151124477386,
0.0115332817658782,
-0.02590373158454895,
-0.05033058300614357,
0.006262173876166344,
-0.015555842779576778,
0.002426653169095516,
0.008939022198319435,
0.010425620712339878,
-0.09467590600252151,
-0.009585157968103886,
0.009677463211119175,
-0.013175342231988907,
-0.015380948781967163,
-0.055966053158044815,
0.08068439364433289,
0.02637011557817459,
0.01835414581000805,
-0.04178021475672722,
0.043801210820674896,
-0.12056020647287369,
0.0757484957575798,
0.043878939002752304,
-0.02844941057264805,
0.008108275942504406,
0.05837570130825043,
-0.011805339716374874,
-0.015895914286375046,
0.008662107400596142,
-0.03911793977022171,
0.03653339669108391,
-0.05262363702058792,
-0.03960375487804413,
0.0082588791847229,
0.06350592523813248,
0.023222025483846664,
0.035620059818029404,
0.0024898091796785593,
0.03705807775259018,
-0.014457897283136845,
-0.017440810799598694,
-0.015079742297530174,
-0.029421042650938034,
-0.06218450516462326,
-0.014292719773948193,
-0.04376234486699104,
-0.021045567467808723,
0.03369622677564621,
0.00535369710996747,
0.025767704471945763,
-0.009128490462899208,
-0.052973423153162,
-0.044967170804739,
0.06533259153366089,
-0.06929685920476913,
-0.0796738937497139,
-0.010639379732310772,
-0.01112519670277834,
-0.039739783853292465,
-0.050175122916698456,
-0.005105930846184492,
0.07345544546842575,
-0.054955556988716125,
-0.03657226264476776,
0.016449743881821632,
0.00961916521191597,
-0.04209113493561745,
0.10998883843421936,
-0.03806857764720917,
0.011397253721952438,
-0.0032355375587940216,
-0.04543355479836464,
-0.04943668097257614,
0.038496095687150955,
0.05740407109260559,
0.01970471441745758,
-0.025651108473539352,
0.01640116237103939,
0.0074767149053514,
-0.010435337200760841,
0.026758769527077675,
0.0057666408829391,
0.042402058839797974,
0.029012957587838173,
-0.004957756958901882,
0.02720572054386139,
-0.06828635931015015,
0.030373243615031242,
-0.028099622577428818,
-0.03350190073251724,
0.035192541778087616,
-0.008953597396612167,
0.012252290733158588,
-0.012339737266302109,
-0.04178021475672722,
0.08760242164134979,
-0.0021630977280437946,
-0.019957339391112328,
-0.013836052268743515,
0.04158588871359825,
0.04687156900763512,
0.028429977595806122,
0.02532075345516205,
0.012621510773897171,
0.038962479680776596,
0.003531885566189885,
-0.011426402255892754,
0.026292385533452034,
0.08052892982959747,
-0.011280657723546028,
-0.04792093485593796,
0.04430646076798439,
-0.010406187735497952,
-0.01315590925514698,
-0.03216104954481125,
0.005684052128344774,
-0.051846329122781754,
-0.008730120956897736,
0.054022789001464844,
0.027710970491170883,
-0.04294617474079132,
-0.04170248284935951,
0.036261338740587234,
0.018917692825198174,
-0.03905964270234108,
0.02158968336880207,
-0.04317936673760414,
0.003922967705875635,
-0.033773958683013916,
0.009313100948929787,
-0.02885749563574791,
0.002376856980845332,
0.025340184569358826,
0.045161496847867966,
0.0008866150164976716,
0.04718249291181564,
0.031539201736450195,
-0.043995536863803864,
0.026622740551829338,
0.01806265488266945,
0.016002792865037918,
-0.021278759464621544,
-0.016012510284781456,
-0.054255980998277664,
-0.023144295439124107,
-0.012728390283882618,
-0.000760909984819591,
-0.016848113387823105,
0.041857942938804626,
0.028391113504767418,
-0.000848964205943048,
0.020967837423086166,
-0.07738084346055984,
-0.04166361689567566,
0.0842600017786026,
-0.0427129827439785,
-0.01156243123114109,
0.006096996366977692,
-0.018606768921017647,
-0.05262363702058792,
-0.06327272951602936,
0.01268952526152134,
0.011659594252705574,
-0.07178423553705215,
-0.012116261757910252,
0.014827117323875427,
0.0030193491838872433,
0.04636631906032562,
-0.03363792970776558,
-0.027633238583803177,
0.08293858170509338,
0.023979898542165756,
-0.0021120868623256683,
-0.01817925088107586,
-0.0299068596214056,
0.004960185848176479,
0.024057630449533463,
-0.011076615191996098,
0.06937458366155624,
0.045472417026758194,
0.023746706545352936,
-0.024562878534197807,
0.004889742471277714,
0.06933572143316269,
-0.0247766375541687,
-0.053828462958335876,
-0.015857048332691193,
0.01144583523273468,
-0.0009722401737235487,
0.014895131811499596,
0.010211861692368984,
-0.026292385533452034,
-0.04644405096769333,
-0.05091356113553047,
0.042052268981933594,
0.020909540355205536,
0.03548403084278107,
0.05919187515974045,
-0.002659844933077693,
0.07710878551006317,
0.022852804511785507,
-0.026681039482355118,
-0.03439580276608467,
-0.005829797126352787,
-0.04407326877117157,
0.01363200880587101,
-0.07411615550518036,
-0.03801027685403824,
-0.029401611536741257,
0.035017650574445724,
0.051418811082839966,
-0.03181125968694687,
-0.009196504950523376,
0.026000896468758583,
0.02555394545197487,
0.0075350129045546055,
-0.04426759481430054,
-0.04990306496620178,
0.038496095687150955,
-0.0007032192661426961,
0.057326339185237885,
0.028585439547896385,
-0.013117044232785702,
-0.0495532751083374,
-0.09141121804714203,
0.01581818237900734,
-0.023707842454314232,
0.019665848463773727,
0.003823375329375267,
0.08293858170509338,
-0.03239424154162407,
-0.044811706990003586,
0.039273399859666824,
0.04189680889248848,
0.03692204877734184,
0.007044338155537844,
-0.030237214639782906,
-0.047415684908628464,
-0.033832255750894547,
-0.001196322962641716,
0.005509158596396446,
0.011999665759503841,
-0.035309139639139175,
0.04726022481918335,
0.06642082333564758,
-0.04057538881897926,
0.018975989893078804,
0.04632745683193207,
-0.016799531877040863,
-0.03241367265582085,
0.008773844689130783,
0.03909850865602493,
0.03534800559282303,
-0.014467613771557808,
0.03109225258231163,
0.0745048075914383,
-0.01705215685069561,
-0.020190531387925148,
0.02396046742796898,
0.020909540355205536,
0.008137425407767296,
-0.00018749477749224752,
0.0038452371954917908,
-0.02260018140077591,
-0.001463521970435977,
0.034959349781274796,
-0.0019347639754414558,
-0.008001396432518959,
0.040691982954740524,
-0.05993031710386276,
-0.07710878551006317,
0.10097208619117737,
-0.009264519438147545,
0.0013420679606497288,
-0.003682488575577736,
-0.04566674679517746,
0.02689479850232601,
-0.012728390283882618,
0.03664999082684517,
0.004068712703883648,
-0.008244304917752743,
-0.05351753905415535,
-0.0057083433493971825,
-0.040147870779037476,
0.06101854518055916,
0.02170627750456333,
-0.033832255750894547,
0.046171993017196655,
-0.051846329122781754,
0.006286464631557465,
-0.053672999143600464,
-0.00288332044146955,
0.03280232474207878,
-0.025826001539826393,
0.04282957687973976,
-0.050835832953453064,
-0.05775385722517967,
-0.02831338159739971,
-0.018558187410235405,
0.011397253721952438,
-0.015361515805125237,
-0.02979026362299919,
-0.0506415069103241,
0.025592809543013573,
-0.025048695504665375,
0.036669425666332245,
-0.007398984394967556,
0.036727722734212875,
0.012650660239160061,
0.074582539498806,
-0.015312934294342995,
0.04520036280155182,
0.010998884215950966,
0.0768367275595665,
0.019442373886704445,
-0.0014465184649452567,
-0.038437794893980026,
-0.010843423195183277,
0.012475766241550446,
-0.006645968649536371,
-0.010765692219138145,
-0.032666295766830444,
0.012019098736345768,
-0.028721468523144722,
0.004753713961690664,
0.03913737088441849,
0.0620679073035717,
-0.02343578450381756,
0.00505734933540225,
-0.021317625418305397,
0.06362251937389374,
-0.01764485239982605,
-0.0044695110991597176,
0.014574493281543255,
0.006850011646747589,
-0.022269826382398605,
-0.0483873188495636,
-0.013175342231988907,
-0.05250703915953636,
-0.015944495797157288,
-0.0160999558866024,
-0.050719235092401505,
0.03268573060631752,
0.05021398514509201,
0.021337058395147324,
0.0019226185977458954,
0.08068439364433289,
0.04360688477754593,
-0.008827284909784794,
-0.05036944895982742,
-0.05293455719947815,
0.006364195141941309,
-0.0009443056769669056,
0.00235985335893929,
0.006388486362993717,
-0.025709405541419983,
-0.038787584751844406,
-0.006019265856593847,
0.014078960753977299,
0.007175508886575699,
0.000485209166072309,
-0.023027699440717697,
0.029401611536741257,
-0.01545867882668972,
-0.028235651552677155,
0.0084677804261446,
-0.027361182495951653,
-0.014059527777135372,
-0.04111950471997261,
0.018975989893078804,
-0.04244092479348183,
0.04966987296938896,
-0.029654234647750854,
-0.012203709222376347,
-0.01805293932557106,
-0.039506591856479645,
0.017984924837946892,
0.05717087909579277,
0.01230087224394083,
-0.007471856661140919,
-0.014302436262369156,
0.008278312161564827,
-0.0004399675235617906,
0.012436901219189167,
-0.016780098900198936,
0.0705794095993042,
-0.05375073105096817,
-0.017848895862698555,
0.018451308831572533,
0.014933996833860874,
-0.033424172550439835,
0.014739670790731907,
-0.011737325228750706,
-0.01628456637263298,
-0.006816004402935505,
0.06140719726681709,
-0.010668529197573662,
0.028235651552677155,
-0.026486711576581,
-0.06836409121751785,
0.025573376566171646,
-0.010192428715527058,
-0.009920371696352959,
0.03925396874547005,
-0.027069691568613052,
-0.01569187082350254,
-0.015186621807515621,
0.05110789090394974,
-0.024465715512633324,
-0.019665848463773727,
0.0626508891582489,
-0.022619612514972687,
-0.003186955815181136,
-0.00811799243092537,
-0.011640162207186222,
0.03711637482047081,
0.022036634385585785,
-0.002863887930288911,
0.011669310741126537,
-0.03857382386922836,
0.015565558336675167,
-0.025631675496697426,
-0.04488943889737129,
0.04659951105713844,
-0.058686625212430954,
0.06059102714061737,
0.017275633290410042,
-0.04216886684298515,
0.03888474777340889,
-0.03740786388516426,
0.01398179680109024,
-0.0026744194328784943,
0.016624638810753822,
0.001993061974644661,
0.0273223165422678,
0.02129819244146347,
-0.007214373908936977,
-0.009079908952116966,
-0.05328434705734253,
0.054139383137226105,
0.054838959127664566,
-0.0378742478787899,
0.04403440281748772,
0.04943668097257614,
0.015789033845067024,
0.00045423838309943676,
0.03163636475801468,
0.008885582908987999,
0.005115646868944168,
-0.006165010388940573,
-0.00814228318631649,
0.03900134190917015,
0.04317936673760414,
0.05794818326830864,
0.025340184569358826,
-0.0020076364744454622,
0.0421300008893013,
0.0018558187875896692,
0.047221358865499496,
0.05588832125067711,
-0.048659373074769974,
-0.04966987296938896,
0.027749834582209587,
-0.03157806769013405,
-0.006791713647544384,
0.015079742297530174,
0.01965613290667534,
0.009400548413395882,
-0.004547242075204849,
-0.015244919806718826,
0.0160999558866024,
0.04508376494050026,
-0.001053007086738944,
0.014078960753977299,
-0.019724147394299507,
0.009978669695556164,
0.03604757785797119,
0.05351753905415535,
-0.04057538881897926,
0.0036484813317656517,
0.001158064929768443,
0.019665848463773727,
-0.0032039594370871782,
-0.006543947383761406,
0.039195671677589417,
0.05857003107666969,
-0.026506144553422928,
-0.03486218675971031,
-0.044228728860616684,
-0.025592809543013573,
0.013282221741974354,
0.015526693314313889,
0.01918003335595131,
-0.02289167046546936,
0.03509537875652313,
0.045239225029945374,
-0.040031272917985916,
-0.06509940326213837,
-0.0013955077156424522,
0.039739783853292465,
-0.01811123639345169,
0.016061091795563698,
-0.038146305829286575,
0.03150033950805664,
0.012553496286273003,
-0.02850770764052868,
0.05235157907009125,
-0.003718924941495061,
-0.054139383137226105,
-0.008424056693911552,
0.07563190162181854,
0.06136833131313324,
-0.03179182857275009,
0.043801210820674896,
0.02685593254864216,
0.010726827196776867,
-0.06218450516462326,
-0.00899732019752264,
-0.052895694971084595,
-0.06272862106561661,
-0.01179562322795391,
-0.025826001539826393,
0.0945204496383667,
0.019189748913049698,
0.009784342721104622,
-0.008210297673940659,
0.02891579456627369
] |
21,461 | tfields.triangles_3d | centroids |
Returns:
:func:`~tfields.Triangles3D._centroids`
Examples:
>>> import tfields
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [-1,0,0], [0,1,0], [0,0,1]],
... faces=[[0, 1, 3],[0, 2, 3],[1,2,4], [1, 3, 4]]);
>>> assert m.triangles().centroids().equal(
... [[1./3, 1./3, 0.],
... [-1./3, 1./3, 0.],
... [0., 0., 1./3],
... [1./3, 1./3, 1./3]])
| def centroids(self):
"""
Returns:
:func:`~tfields.Triangles3D._centroids`
Examples:
>>> import tfields
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [-1,0,0], [0,1,0], [0,0,1]],
... faces=[[0, 1, 3],[0, 2, 3],[1,2,4], [1, 3, 4]]);
>>> assert m.triangles().centroids().equal(
... [[1./3, 1./3, 0.],
... [-1./3, 1./3, 0.],
... [0., 0., 1./3],
... [1./3, 1./3, 1./3]])
"""
return self._centroids
| (self) | [
-0.035639986395835876,
-0.027845952659845352,
0.014666952192783356,
0.013639557175338268,
-0.0038483035750687122,
0.025738021358847618,
0.008874569088220596,
0.008453868329524994,
0.027155118063092232,
0.06603671610355377,
-0.01066365372389555,
-0.024214642122387886,
-0.033620622009038925,
-0.024799194186925888,
0.00581452576443553,
-0.030786428600549698,
-0.04991723597049713,
0.0054292525164783,
-0.0032327522058039904,
-0.01840454526245594,
-0.05275142937898636,
-0.01865253783762455,
0.0013739196583628654,
-0.0033766760025173426,
0.00578795513138175,
-0.03176068514585495,
0.026800844818353653,
-0.03128241375088692,
0.052326302975416183,
0.006996915675699711,
-0.0627419650554657,
0.08297102153301239,
-0.05353083461523056,
0.005469108000397682,
-0.005283114034682512,
-0.07050056755542755,
0.052822284400463104,
0.00991967786103487,
0.022974682971835136,
0.03865131735801697,
0.020512476563453674,
-0.01095592975616455,
-0.02977674826979637,
0.03833246976137161,
0.052220020443201065,
0.025206610560417175,
0.062458544969558716,
0.0024666341487318277,
-0.03627767786383629,
-0.0204770490527153,
-0.03716336563229561,
-0.03865131735801697,
0.037871912121772766,
-0.0037088082171976566,
0.013258712366223335,
-0.027137404307723045,
0.03383318707346916,
-0.016482608392834663,
-0.11187979578971863,
0.023364383727312088,
0.01123049296438694,
-0.02839507907629013,
0.08941881358623505,
-0.0422649122774601,
-0.022779831662774086,
-0.03695080056786537,
0.02894420363008976,
0.07971169799566269,
0.011593624018132687,
-0.013834408484399319,
-0.017890848219394684,
-0.003175182733684778,
0.021150169894099236,
-0.05094463378190994,
0.07716092467308044,
0.06447790563106537,
0.054451946169137955,
0.06203341484069824,
-0.001988363917917013,
0.013674984686076641,
-0.06663897633552551,
-0.04541795328259468,
-0.021486731246113777,
0.033762332051992416,
0.04169807583093643,
0.007541612256318331,
-0.012957579456269741,
-0.014808662235736847,
-0.048464711755514145,
0.03957242891192436,
0.01738600619137287,
0.02593287266790867,
0.004404071252793074,
-0.03354976698756218,
-0.031937818974256516,
0.009715970605611801,
-0.019059952348470688,
-0.07921571284532547,
0.03996213153004646,
-0.0046188500709831715,
0.023913510143756866,
0.022106710821390152,
0.029847603291273117,
-0.011611337773501873,
0.04364658147096634,
-0.032433804124593735,
-0.030361300334334373,
-0.06486760824918747,
0.015118652023375034,
0.0729096308350563,
-0.028093945235013962,
0.013807837851345539,
0.07638151943683624,
0.06490303575992584,
0.019609076902270317,
-0.08545093983411789,
0.018439972773194313,
0.04052897170186043,
-0.04431970417499542,
0.021345021203160286,
-0.009020707570016384,
0.06635556370019913,
0.034612592309713364,
-0.00957426056265831,
-0.0027035551611334085,
0.021043889224529266,
0.011850472539663315,
0.012957579456269741,
-0.02008734829723835,
0.023931223899126053,
0.07205937802791595,
0.023275816813111305,
0.014286107383668423,
-0.057817552238702774,
-0.004189292434602976,
0.017527716234326363,
0.08077452331781387,
-0.016810311004519463,
0.03641938790678978,
0.025348320603370667,
0.026694562286138535,
0.040741533041000366,
0.0177402812987566,
0.03581712394952774,
-0.08091623336076736,
0.06298995763063431,
0.008520294912159443,
-0.031229272484779358,
0.01909537985920906,
-0.005163546651601791,
0.0161726176738739,
-0.032734937965869904,
0.051830317825078964,
-0.0013960618525743484,
-0.05898665636777878,
-0.03517942875623703,
-0.009219986386597157,
-0.10153499245643616,
0.028713924810290337,
-0.014666952192783356,
-0.027527106925845146,
0.028040803968906403,
-0.007333476096391678,
0.03615368530154228,
-0.0024223499931395054,
0.006013804581016302,
0.007705464027822018,
-0.09189873188734055,
-0.08998565375804901,
-0.014516386203467846,
0.0035360995680093765,
0.03330177441239357,
-0.06075802817940712,
0.059057511389255524,
0.04701218754053116,
-0.06479675322771072,
-0.029847603291273117,
0.013790124095976353,
0.013497847132384777,
0.009760254994034767,
-0.021858718246221542,
-0.01699630543589592,
0.00560196116566658,
0.009857679717242718,
0.00007127000571927056,
0.03335491567850113,
0.022142138332128525,
0.02671227604150772,
0.030644720420241356,
-0.044603124260902405,
-0.013577559031546116,
-0.03964328393340111,
-0.018085699528455734,
0.09154445677995682,
0.00018322619143873453,
0.02518889680504799,
-0.0006543002091348171,
-0.04779159277677536,
-0.04991723597049713,
-0.048075009137392044,
-0.09076505154371262,
-0.014906087890267372,
0.029847603291273117,
-0.011195065453648567,
0.03581712394952774,
-0.01266530342400074,
-0.012364170514047146,
-0.0033744617830961943,
-0.0019839357119053602,
0.03576398268342018,
0.05349540710449219,
-0.04166264832019806,
-0.026446569710969925,
0.04137922823429108,
-0.03037901408970356,
-0.07032343000173569,
0.05193660035729408,
-0.008409583941102028,
-0.005916379392147064,
0.04169807583093643,
-0.013258712366223335,
0.010149956680834293,
0.023045537993311882,
0.010220810770988464,
-0.08736401796340942,
-0.0067179249599576,
0.017749138176441193,
0.023470666259527206,
-0.052468013018369675,
-0.07701921463012695,
0.035551417618989944,
-0.025047186762094498,
-0.042725469917058945,
-0.022372417151927948,
-0.016845738515257835,
-0.018085699528455734,
0.018493114039301872,
-0.011708762496709824,
0.004844699986279011,
-0.016128333285450935,
-0.014339248649775982,
-0.04913783445954323,
0.07411416620016098,
0.0034187461715191603,
0.010070244781672955,
0.031742971390485764,
-0.0011668907245621085,
0.015455212444067001,
0.013338424265384674,
0.017253154888749123,
-0.01798827387392521,
0.014684665948152542,
-0.00043896789429709315,
-0.005225544795393944,
0.018811961635947227,
-0.062068842351436615,
0.03656109794974327,
0.06802064925432205,
0.008374156430363655,
0.023718658834695816,
-0.013772410340607166,
-0.01735943742096424,
0.08020768314599991,
0.07815289497375488,
0.024374065920710564,
0.010451089590787888,
0.04665791243314743,
0.03858046233654022,
-0.04694133251905441,
0.0036999513395130634,
0.047720737755298615,
0.028767066076397896,
0.034701161086559296,
-0.02701340802013874,
-0.01835140399634838,
-0.014640381559729576,
-0.03695080056786537,
0.01247045211493969,
0.04389457404613495,
0.012736158445477486,
0.009786825627088547,
0.010477660223841667,
-0.06656812131404877,
-0.03967871144413948,
-0.01790856197476387,
-0.0041472227312624454,
-0.05023608356714249,
-0.046374496072530746,
-0.029475614428520203,
-0.010681367479264736,
0.020158203318715096,
-0.026056868955492973,
-0.05041322112083435,
-0.11223407089710236,
-0.012559020891785622,
-0.00443507032468915,
-0.03780105710029602,
0.030556151643395424,
-0.022443272173404694,
-0.021752437576651573,
-0.027916807681322098,
-0.002942690160125494,
0.027031121775507927,
-0.0256317388266325,
0.00505726458504796,
0.01934337243437767,
-0.0017115873051807284,
0.016606604680418968,
0.06752466410398483,
-0.023134106770157814,
-0.007745319977402687,
-0.0438237190246582,
-0.03615368530154228,
-0.04077696055173874,
0.009875393472611904,
0.026056868955492973,
0.03147726505994797,
-0.04874813184142113,
0.015127508901059628,
-0.006965916603803635,
0.02977674826979637,
-0.03351433947682381,
-0.017775708809494972,
0.09310326725244522,
-0.022638121619820595,
0.026995694264769554,
0.0459139384329319,
-0.028713924810290337,
0.0037553065922111273,
-0.009848822839558125,
-0.01840454526245594,
-0.04332773759961128,
-0.05650673806667328,
0.019910210743546486,
-0.03153040632605553,
-0.04325688257813454,
0.09685856848955154,
0.008989708498120308,
0.047968730330467224,
0.011389915831387043,
0.03790733963251114,
-0.01564120687544346,
-0.0002211446117144078,
0.017200013622641563,
-0.07191766798496246,
0.05625874549150467,
-0.002296139718964696,
-0.012169319204986095,
0.057569559663534164,
0.06288367509841919,
0.01234645675867796,
-0.00043536978773772717,
0.003812876297160983,
-0.0018101198365911841,
0.028873348608613014,
-0.015375500544905663,
0.004578994121402502,
-0.05572733283042908,
0.012629875913262367,
0.026411142200231552,
0.03303607180714607,
-0.029227621853351593,
0.039749566465616226,
-0.008715145289897919,
-0.00925541389733553,
-0.012328743003308773,
0.036631952971220016,
-0.0268716998398304,
-0.039749566465616226,
-0.007612467277795076,
-0.02127416618168354,
-0.02805851772427559,
-0.04113123565912247,
-0.009786825627088547,
0.024374065920710564,
-0.007639037910848856,
0.028324224054813385,
0.0035693126264959574,
-0.024604344740509987,
0.0033545340411365032,
-0.02786366641521454,
-0.06880005449056625,
0.004242433700710535,
-0.024179214611649513,
-0.06568244099617004,
0.04414256662130356,
-0.05353083461523056,
-0.0069039189256727695,
-0.026411142200231552,
0.07680664956569672,
0.02637571468949318,
-0.015933481976389885,
0.03062700666487217,
-0.04701218754053116,
-0.018723392859101295,
0.0549125038087368,
-0.028820207342505455,
-0.04442598670721054,
0.043611153960227966,
-0.025259751826524734,
-0.015765203163027763,
-0.05154689773917198,
0.03215038403868675,
0.03622453659772873,
-0.05260971933603287,
0.03709251061081886,
0.00045252995914779603,
-0.03285893425345421,
0.0365256704390049,
-0.022372417151927948,
-0.01120392233133316,
0.06993372738361359,
0.07744434475898743,
0.005593104287981987,
0.0006177656468935311,
0.01711144484579563,
-0.03751764073967934,
0.00577466981485486,
0.0570027194917202,
0.03897016495466232,
0.020211344584822655,
-0.022053569555282593,
0.016810311004519463,
0.018112268298864365,
0.032770365476608276,
-0.015154079534113407,
0.005048407707363367,
-0.026641421020030975,
0.05955349653959274,
-0.004649849142879248,
0.027279114350676537,
-0.005088263191282749,
-0.004893412813544273,
-0.02651742473244667,
-0.06713496148586273,
0.06295453011989594,
0.0023559236433357,
0.04481568932533264,
-0.016128333285450935,
0.0017171228537335992,
0.06401734799146652,
0.0177402812987566,
-0.011992182582616806,
-0.01964450441300869,
0.046480778604745865,
0.05324741452932358,
-0.03904101997613907,
-0.06228140741586685,
0.020051920786499977,
0.04283175244927406,
0.025897445157170296,
-0.004636563826352358,
-0.03128241375088692,
-0.030007025226950645,
0.0010711259674280882,
0.08828513324260712,
-0.04194606840610504,
0.0012942079920321703,
-0.05090920627117157,
0.001587591366842389,
0.018227407708764076,
0.03121155872941017,
0.04183978587388992,
-0.041981495916843414,
-0.07765690982341766,
-0.07181138545274734,
-0.02152215875685215,
-0.012107321061193943,
-0.008728430606424809,
-0.0074707577005028725,
0.07871972769498825,
-0.025507742539048195,
-0.026481997221708298,
-0.002411278896033764,
0.004570137243717909,
0.02621629275381565,
-0.01925480365753174,
-0.02662370726466179,
-0.0003174629237037152,
-0.026092296466231346,
-0.049208689481019974,
0.022921541705727577,
0.03023730404675007,
-0.044851116836071014,
0.020760469138622284,
0.02097303420305252,
-0.06943774968385696,
0.007484042551368475,
0.032238952815532684,
-0.07149253785610199,
0.003064471995458007,
0.02527746558189392,
0.006208655424416065,
-0.013179000467061996,
0.03726964816451073,
0.01939651370048523,
0.051830317825078964,
0.0013982760719954967,
-0.033762332051992416,
0.08559264987707138,
0.008028739131987095,
0.024870049208402634,
0.003208395792171359,
0.006638213060796261,
-0.02908591367304325,
-0.006996915675699711,
0.014410103671252728,
-0.03370919078588486,
0.03943071886897087,
0.009645115584135056,
-0.020601045340299606,
-0.044107139110565186,
0.002102395985275507,
-0.02720825932919979,
0.014489815570414066,
-0.012240174226462841,
-0.0077851759269833565,
0.024852335453033447,
-0.07390160113573074,
0.019609076902270317,
0.012231317348778248,
-0.013028434477746487,
-0.07978255301713943,
0.06089973822236061,
-0.07659408450126648,
0.05831353738903999,
0.007616895716637373,
-0.049208689481019974,
-0.00298697454854846,
0.010628226213157177,
0.005632960237562656,
-0.02518889680504799,
-0.03305378556251526,
0.02389579638838768,
-0.04013926908373833,
0.03571084141731262,
-0.023824941366910934,
0.0018544041085988283,
0.02306325174868107,
0.010389091446995735,
0.026747703552246094,
-0.0012454952811822295,
0.021929573267698288,
-0.022939255461096764,
0.07181138545274734,
-0.0480041578412056,
0.016022050753235817,
-0.032185811549425125,
-0.01766056939959526,
0.06040375307202339,
0.06996915489435196,
-0.041875213384628296,
-0.0045967078767716885,
-0.041237518191337585,
0.03865131735801697,
0.019325658679008484,
0.000681424280628562,
-0.09827566891908646,
-0.033815473318099976,
0.009928534738719463,
0.029546469449996948,
-0.021097028627991676,
0.0549125038087368,
0.04318602755665779,
0.007373332045972347,
-0.02068961411714554,
-0.005663958843797445,
0.03684451803565025,
-0.01948508247733116,
-0.015251505188643932,
-0.0010035923914983869,
0.037375930696725845,
0.00018682429799810052,
0.003425388829782605,
0.0350908599793911,
-0.015446355566382408,
-0.02681855857372284,
-0.04194606840610504,
-0.007687750272452831,
-0.03374461829662323,
-0.0035449564456939697,
-0.011283633299171925,
-0.004038725979626179,
0.002173250773921609,
0.03323092311620712,
0.05884494632482529,
-0.02770424447953701,
0.05640045553445816,
-0.021256452426314354,
-0.028164800256490707,
-0.04389457404613495,
-0.004047582857310772,
0.026251718401908875,
0.01197446882724762,
-0.011345631442964077,
-0.009707113727927208,
0.014808662235736847,
-0.03447088226675987,
0.04605564847588539,
-0.030396727845072746,
0.007293620612472296,
0.03897016495466232,
-0.0373050756752491,
0.08708060532808304,
-0.020707327872514725,
-0.025596311315894127,
-0.02690712735056877,
-0.010707938112318516,
0.019113093614578247,
-0.009724827483296394,
-0.014294964261353016,
-0.027137404307723045,
0.01691659353673458,
-0.06646184623241425,
0.0008657576399855316,
0.0010063601657748222,
-0.013090432621538639,
0.0024954190012067556,
0.04077696055173874,
0.026163151487708092,
-0.015083224512636662,
-0.0619625598192215,
0.02781052514910698,
0.0032327522058039904,
0.02786366641521454,
0.018386831507086754,
0.017952846363186836,
0.002089110668748617,
0.00002119071905326564,
-0.03440002724528313,
0.01944965496659279,
0.021734723821282387,
-0.010583941824734211,
0.015614636242389679,
-0.009290841408073902,
0.03344348445534706,
-0.027084263041615486,
-0.04318602755665779,
0.025915158912539482,
-0.035055432468652725,
-0.01900681108236313,
0.03734050318598747,
0.047366462647914886,
0.00635922234505415,
0.024568917229771614,
-0.07978255301713943,
-0.011505055241286755,
-0.002820908324792981,
0.07124454528093338,
-0.01929023116827011,
-0.016624318435788155,
-0.006151086185127497,
0.012027609162032604,
0.027332255616784096,
-0.025153469294309616,
-0.008321015164256096,
-0.001987256808206439,
-0.05154689773917198,
-0.007293620612472296,
-0.04067067801952362,
-0.050484076142311096,
0.014534099958837032,
-0.03620682656764984,
-0.0198924969881773,
0.06118315830826759,
-0.027420824393630028,
0.005017408635467291,
0.01826283521950245,
-0.007639037910848856,
0.04570137336850166,
-0.006514217238873243,
0.05388510972261429,
0.04814586415886879,
0.006784351076930761,
0.011389915831387043,
0.03128241375088692,
0.04538252577185631,
0.005225544795393944,
-0.007833888754248619,
-0.02152215875685215,
0.008174877613782883,
0.021947287023067474,
-0.05342455208301544,
0.03239837661385536,
-0.0213273074477911,
-0.03360290825366974,
-0.03284122049808502,
-0.0008397406199947,
0.027385396882891655,
0.01807684265077114,
-0.035356566309928894,
0.0073157623410224915,
0.05055493116378784,
0.00221089250408113,
-0.017324009910225868,
0.021947287023067474,
0.024958617985248566,
0.032929789274930954,
-0.027332255616784096,
0.04021012410521507,
0.007320190779864788,
-0.000681424280628562,
-0.08623034507036209,
0.00760803883895278,
0.015180650167167187,
-0.00193854421377182,
0.019166234880685806,
0.0014038116205483675,
-0.017102587968111038,
0.052716001868247986,
-0.02513575553894043,
-0.0039169443771243095,
0.03918272629380226,
-0.036631952971220016,
-0.007187338080257177,
-0.0015178435714915395,
0.0631316676735878,
-0.008626577444374561,
0.05314113199710846,
0.019520509988069534,
0.028164800256490707,
0.008476010523736477,
-0.006248511373996735,
0.0627419650554657,
-0.0274562519043684,
0.007205051835626364,
0.01639403961598873,
0.002535274950787425,
-0.13405735790729523,
-0.0018067985074594617,
-0.006912775803357363,
0.03666738048195839,
-0.0115759102627635,
-0.003759735031053424,
0.008378584869205952,
0.028820207342505455,
0.03018416278064251,
-0.016075192019343376,
-0.08587606996297836,
0.03418746218085289,
-0.0202821996062994,
-0.0753895565867424,
-0.027155118063092232,
-0.018315976485610008,
0.021646155044436455,
-0.03734050318598747,
0.016039764508605003,
0.0009919678559526801,
0.017394863069057465,
0.0001486291002947837,
-0.0007484043017029762,
0.06334423273801804,
-0.002389136701822281,
-0.06660354882478714,
0.014613810926675797,
0.0064123631455004215,
-0.039607856422662735,
-0.034612592309713364,
-0.0022518555633723736,
-0.049846380949020386,
-0.031052134931087494,
-0.04924411699175835,
-0.027668816968798637,
0.02621629275381565,
0.0042977891862392426,
0.011319060809910297,
0.024799194186925888,
0.026304859668016434
] |
21,462 | tfields.triangles_3d | circumcenters |
Semi baricentric method to calculate circumcenter points of the
triangles
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [-1,0,0], [0,1,0], [0,0,1]],
... faces=[[0, 1, 3],[0, 2, 3],[1,2,4], [1, 3, 4]]);
>>> assert np.allclose(
... m.triangles().circumcenters(),
... [[0.5, 0.5, 0.0],
... [-0.5, 0.5, 0.0],
... [0.0, 0.0, 0.0],
... [1.0 / 3, 1.0 / 3, 1.0 / 3]])
| def circumcenters(self):
"""
Semi baricentric method to calculate circumcenter points of the
triangles
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [-1,0,0], [0,1,0], [0,0,1]],
... faces=[[0, 1, 3],[0, 2, 3],[1,2,4], [1, 3, 4]]);
>>> assert np.allclose(
... m.triangles().circumcenters(),
... [[0.5, 0.5, 0.0],
... [-0.5, 0.5, 0.0],
... [0.0, 0.0, 0.0],
... [1.0 / 3, 1.0 / 3, 1.0 / 3]])
"""
pointA, pointB, pointC = self.corners()
a = np.linalg.norm(
pointC - pointB, axis=1
) # side length of side opposite to pointA
b = np.linalg.norm(pointC - pointA, axis=1)
c = np.linalg.norm(pointB - pointA, axis=1)
bary1 = a**2 * (b**2 + c**2 - a**2)
bary2 = b**2 * (a**2 + c**2 - b**2)
bary3 = c**2 * (a**2 + b**2 - c**2)
matrices = np.concatenate((pointA, pointB, pointC), axis=1).reshape(
pointA.shape + (3,)
)
# transpose the inner matrix
matrices = np.einsum("...ji", matrices)
vectors = np.array((bary1, bary2, bary3)).T
# matrix vector product for matrices and vectors
P = np.einsum("...ji,...i", matrices, vectors)
P /= vectors.sum(axis=1).reshape((len(vectors), 1))
return tfields.Points3D(P)
| (self) | [
-0.03137650713324547,
-0.03715787082910538,
0.025033852085471153,
0.05725230649113655,
-0.04262116178870201,
-0.011403686366975307,
-0.01646471582353115,
-0.02102993242442608,
-0.049880605190992355,
0.04539022594690323,
0.014116622507572174,
-0.00861591100692749,
-0.052799347788095474,
-0.006342657376080751,
-0.04913220927119255,
-0.0143411410972476,
-0.022264786064624786,
-0.004990866873413324,
0.027129361405968666,
-0.027410009875893593,
-0.04763541370630264,
-0.028102274984121323,
0.056391648948192596,
0.05556841567158699,
0.002914067590609193,
-0.031507477164268494,
-0.00029395014280453324,
-0.04430505260825157,
0.048308972269296646,
0.00974786002188921,
-0.06357625126838684,
0.06746791303157806,
-0.04598894342780113,
0.0004461142816580832,
0.02454739436507225,
-0.06260333955287933,
0.08576619625091553,
0.018794098868966103,
0.00234575429931283,
0.06758017092943192,
0.009888184256851673,
-0.014434690587222576,
0.056279391050338745,
0.007839449681341648,
0.028738413006067276,
-0.005818780045956373,
0.043332137167453766,
-0.024884171783924103,
-0.06952600181102753,
0.01734408177435398,
0.026324834674596786,
-0.05874909833073616,
0.054820019751787186,
-0.009757215157151222,
0.022657694295048714,
-0.005168610718101263,
0.03105843998491764,
-0.014331785961985588,
-0.09295080602169037,
0.03865466266870499,
-0.012423376552760601,
-0.0009892861125990748,
0.07962935417890549,
-0.03962757810950279,
-0.028289373964071274,
-0.019215071573853493,
0.051152877509593964,
0.07525123655796051,
0.0411243699491024,
0.03493139147758484,
-0.007750577758997679,
-0.003426251234486699,
0.018784742802381516,
-0.05740198493003845,
0.08890946209430695,
0.008709460496902466,
0.05051673948764801,
0.053061287850141525,
-0.002532853279262781,
-0.011740464717149734,
-0.046400561928749084,
-0.020749283954501152,
0.008405424654483795,
0.03541784733533859,
0.07641124725341797,
0.039964355528354645,
0.0185695793479681,
-0.025950636714696884,
-0.06151816248893738,
0.02275124378502369,
-0.0038168204482644796,
-0.03339717909693718,
0.0033303629606962204,
0.009953669272363186,
-0.021815747022628784,
-0.004986189305782318,
-0.0014161058934405446,
-0.06312721222639084,
-0.004205050878226757,
0.0053042578510940075,
0.056129712611436844,
0.004209728445857763,
0.011871433816850185,
-0.0160530973225832,
0.054296139627695084,
-0.01738150045275688,
-0.05837490037083626,
-0.0723324865102768,
0.03633463382720947,
0.021628648042678833,
-0.011151102371513844,
0.020543474704027176,
0.002850921591743827,
0.030964890494942665,
-0.022002847865223885,
-0.0812758207321167,
-0.026568062603473663,
0.029393259435892105,
-0.01872861385345459,
-0.02505256049335003,
0.020075727254152298,
0.009701085276901722,
0.012975318357348442,
-0.008513006381690502,
-0.0021516389679163694,
-0.0012956608552485704,
0.027634527534246445,
0.018298285081982613,
-0.03588559478521347,
-0.022339625284075737,
0.03388363495469093,
0.03405202552676201,
0.027784207835793495,
-0.07513897120952606,
-0.02501514181494713,
0.049618665128946304,
0.06297753751277924,
-0.021273160353302956,
0.004593281541019678,
0.04726121574640274,
0.07678544521331787,
0.05811296030879021,
0.020206695422530174,
0.026680322363972664,
-0.0982644185423851,
0.07147183269262314,
0.027260329574346542,
-0.04411795362830162,
0.011581430211663246,
0.0018078444991260767,
-0.024959011003375053,
-0.01689504273235798,
0.06342657655477524,
0.016689233481884003,
-0.02658677287399769,
-0.05339806526899338,
0.029973266646265984,
-0.04393085464835167,
0.031582318246364594,
-0.01938346028327942,
-0.030964890494942665,
0.013817263767123222,
-0.007479283958673477,
0.05032964050769806,
0.0045044091530144215,
0.026474513113498688,
0.050067704170942307,
-0.043257296085357666,
-0.07210797071456909,
-0.01657697558403015,
-0.0204873438924551,
0.018635064363479614,
-0.12056662142276764,
0.07622414827346802,
0.002521159593015909,
-0.04389343410730362,
-0.011618850752711296,
-0.017783762887120247,
0.018775388598442078,
-0.04748573526740074,
-0.004883285146206617,
-0.006758952978998423,
0.03281717002391815,
0.03133909031748772,
0.029000351205468178,
0.013349516317248344,
0.051527075469493866,
-0.01087980903685093,
0.009074303321540356,
-0.04423021152615547,
-0.01738150045275688,
-0.008550425991415977,
0.00015143328346312046,
0.0809016227722168,
0.04265858232975006,
0.03715787082910538,
0.05055416002869606,
-0.015426315367221832,
-0.015987612307071686,
-0.03379008546471596,
-0.05987169221043587,
-0.04176050424575806,
0.014032428152859211,
-0.00815751776099205,
0.031114570796489716,
-0.003903353586792946,
0.023798998445272446,
-0.015903418883681297,
-0.012208212167024612,
0.05583035200834274,
0.059385236352682114,
-0.051115456968545914,
-0.05725230649113655,
0.02535191923379898,
-0.023686738684773445,
-0.001133118523284793,
0.06686919927597046,
-0.013583390042185783,
-0.019215071573853493,
0.05235031247138977,
0.0020475650671869516,
0.043182458728551865,
0.01861635409295559,
0.001827723695896566,
-0.04441731050610542,
0.0008565628086216748,
0.013115642592310905,
0.06892728805541992,
-0.03921595960855484,
-0.07895579189062119,
0.010683354921638966,
-0.0028836638666689396,
-0.0727066844701767,
-0.004665782209485769,
-0.013630164787173271,
-0.0650356262922287,
-0.004539490211755037,
-0.04625088348984718,
0.018204735592007637,
-0.01673600822687149,
-0.00009691145532997325,
-0.042957939207553864,
0.03940305858850479,
0.02465965412557125,
-0.010486900806427002,
0.01336822658777237,
0.024790622293949127,
0.008681395091116428,
0.00412787264212966,
0.04669991880655289,
-0.03171328827738762,
-0.02776549756526947,
0.007554123643785715,
0.021535098552703857,
0.010889164172112942,
-0.05272451043128967,
0.0820990577340126,
0.034257832914590836,
0.031245538964867592,
0.018868938088417053,
0.013115642592310905,
-0.06522272527217865,
0.10739485174417496,
0.05201353132724762,
0.02136670984327793,
0.03094618022441864,
0.046662501990795135,
0.0327049121260643,
-0.04928188771009445,
0.028813252225518227,
0.041648246347904205,
0.012002402916550636,
0.010907873511314392,
-0.016305681318044662,
-0.03193780779838562,
0.007778642699122429,
-0.012451441027224064,
0.017933443188667297,
-0.010150122456252575,
-0.0019317975966259837,
-0.025613859295845032,
-0.03214361518621445,
-0.05541873350739479,
-0.021853167563676834,
-0.024304164573550224,
-0.02871970273554325,
0.002429948654025793,
-0.05418388172984123,
0.05493227764964104,
-0.007128473371267319,
-0.029617777094244957,
-0.013274677097797394,
-0.034725580364465714,
-0.06997504085302353,
0.028626153245568275,
-0.014705984853208065,
-0.07671060413122177,
-0.017933443188667297,
-0.008966721594333649,
-0.05313612520694733,
-0.024640943855047226,
-0.014303721487522125,
0.051115456968545914,
-0.01154401060193777,
0.009050915949046612,
0.031507477164268494,
0.04711153730750084,
0.002755033317953348,
0.05366000533103943,
-0.07517639547586441,
-0.037363678216934204,
-0.015388895757496357,
-0.054670337587594986,
-0.03884176164865494,
0.02213381603360176,
0.07049892097711563,
0.003138586413115263,
-0.015791159123182297,
0.020206695422530174,
0.022152526304125786,
0.03917853906750679,
-0.0405256524682045,
-0.016305681318044662,
0.10260511189699173,
-0.0023410767316818237,
-0.00010465852392371744,
-0.016446005553007126,
-0.02630612440407276,
0.0019645399879664183,
0.006207010708749294,
-0.017213111743330956,
0.026549354195594788,
-0.06200462207198143,
0.014472110196948051,
-0.04598894342780113,
-0.05553099513053894,
0.07581253349781036,
-0.014911793172359467,
0.02132929116487503,
0.004125533625483513,
0.037401098757982254,
-0.013115642592310905,
-0.011076263152062893,
0.004076420329511166,
-0.04890768975019455,
0.016979238018393517,
0.013985653407871723,
-0.00392674095928669,
0.051489654928445816,
0.10776904970407486,
0.006431529298424721,
0.008714137598872185,
0.046587660908699036,
-0.006847824901342392,
-0.040151454508304596,
-0.01585664413869381,
-0.026717742905020714,
-0.03362169861793518,
0.011562720872461796,
0.043406978249549866,
0.020057016983628273,
-0.03665270283818245,
-0.002878986531868577,
0.018971841782331467,
-0.02432287484407425,
-0.034220412373542786,
0.010524321347475052,
-0.0411243699491024,
-0.02454739436507225,
-0.020206695422530174,
0.014331785961985588,
-0.04363149404525757,
-0.01666116900742054,
-0.013892103917896748,
0.026474513113498688,
0.05040448158979416,
0.020038306713104248,
0.02849518321454525,
-0.051527075469493866,
-0.004836509935557842,
0.009312855079770088,
-0.041573405265808105,
-0.014097912237048149,
-0.010262382216751575,
-0.03420170396566391,
0.022264786064624786,
-0.01455630548298359,
0.014818243682384491,
0.004457634408026934,
0.046475403010845184,
0.010262382216751575,
-0.012919188477098942,
0.0285326037555933,
-0.04220954328775406,
-0.04194760322570801,
0.019888628274202347,
-0.031151989474892616,
-0.04393085464835167,
0.04359407722949982,
-0.031956516206264496,
-0.02699839137494564,
-0.04228438436985016,
0.042883098125457764,
0.03186296671628952,
-0.05500711873173714,
0.012077243067324162,
-0.013471131213009357,
-0.013545970432460308,
0.06054525077342987,
-0.014275657013058662,
-0.027784207835793495,
0.05818780139088631,
0.06956342607736588,
-0.007947031408548355,
-0.03302298113703728,
0.010327867232263088,
-0.05519421771168709,
-0.0041746473871171474,
0.014603080227971077,
0.041685666888952255,
0.02875712141394615,
-0.029505519196391106,
0.022545434534549713,
0.0014570337953045964,
0.03075908124446869,
-0.016221486032009125,
-0.0009162006317637861,
-0.039814677089452744,
0.061143964529037476,
0.009869473986327648,
0.024640943855047226,
-0.04393085464835167,
-0.021740907803177834,
-0.016913753002882004,
-0.06915180385112762,
0.05979685112833977,
-0.0014394932659342885,
0.03002939559519291,
0.05032964050769806,
0.03549268841743469,
0.01860699988901615,
0.031507477164268494,
-0.051377397030591965,
-0.05407162383198738,
-0.001648810226470232,
0.0012559023452922702,
-0.03627850487828255,
-0.0568406879901886,
-0.019551848992705345,
0.02366802841424942,
0.017755698412656784,
0.030515853315591812,
-0.023275120183825493,
-0.03884176164865494,
0.01552921999245882,
0.04699927940964699,
0.003709238488227129,
-0.04265858232975006,
-0.04423021152615547,
0.026511933654546738,
0.011936918832361698,
0.044941190630197525,
0.03500622883439064,
-0.005486679263412952,
-0.03219974413514137,
-0.05092835798859596,
-0.005042319186031818,
-0.03302298113703728,
0.002008975949138403,
-0.009682375006377697,
0.038280464708805084,
-0.03577333688735962,
-0.04550248757004738,
0.036671411246061325,
0.036933351308107376,
0.03328491747379303,
-0.01421017199754715,
-0.014060492627322674,
-0.05530647560954094,
-0.06776726990938187,
-0.07581253349781036,
0.026568062603473663,
0.0025141432415694,
-0.03350943699479103,
0.011740464717149734,
0.05549357458949089,
-0.028195824474096298,
0.043145038187503815,
0.06256591528654099,
-0.0821738988161087,
-0.03068424202501774,
0.027559688314795494,
0.012470151297748089,
0.023275120183825493,
-0.02267640270292759,
0.019252490252256393,
0.03715787082910538,
-0.04026371240615845,
-0.038392722606658936,
0.03857982158660889,
0.03321008011698723,
0.0245099738240242,
0.0063707223162055016,
-0.030740372836589813,
-0.018737968057394028,
-0.020824123173952103,
-0.0008717646123841405,
-0.0050750612281262875,
0.05897361785173416,
-0.0011664455523714423,
-0.028962930664420128,
-0.07671060413122177,
0.03887917846441269,
-0.039889514446258545,
0.015370186418294907,
0.019551848992705345,
-0.04898252710700035,
-0.0024509974755346775,
-0.016062453389167786,
0.01735343597829342,
-0.003225119784474373,
0.0005130606587044895,
-0.07195828855037689,
0.04602636396884918,
-0.02351834997534752,
0.0822487398982048,
-0.014911793172359467,
-0.05246257036924362,
0.015416961163282394,
0.005519421771168709,
-0.033266209065914154,
-0.02845776453614235,
-0.018934423103928566,
0.025539018213748932,
-0.05534389615058899,
0.04602636396884918,
-0.04026371240615845,
-0.004616668913513422,
0.03466945141553879,
-0.025988057255744934,
0.02125445008277893,
0.008054614067077637,
0.01938346028327942,
-0.043182458728551865,
0.03538042679429054,
-0.03543655946850777,
-0.0017645778134465218,
-0.01957055926322937,
-0.010140768252313137,
0.05055416002869606,
0.08943334221839905,
-0.02845776453614235,
0.02838292345404625,
-0.003622705116868019,
0.06978794187307358,
0.051152877509593964,
-0.018897002562880516,
-0.04348181560635567,
-0.018391836434602737,
0.025408050045371056,
-0.00010531629231991246,
-0.02677387185394764,
0.019065391272306442,
0.0027082585729658604,
-0.007338959723711014,
0.01574438437819481,
0.0283080842345953,
0.026680322363972664,
-0.0077459001913666725,
-0.012769509106874466,
-0.02125445008277893,
0.04131146892905235,
0.0038402078207582235,
0.017437631264328957,
0.024453844875097275,
-0.007282830309122801,
-0.02389254793524742,
-0.0490199476480484,
-0.009729149751365185,
-0.08718815445899963,
-0.010524321347475052,
-0.011581430211663246,
0.01953314058482647,
-0.013031448237597942,
0.039964355528354645,
0.013761133886873722,
-0.04262116178870201,
0.04396827518939972,
0.04250890016555786,
0.010037863627076149,
-0.04774767532944679,
-0.02267640270292759,
0.009032205678522587,
-0.00031368323834612966,
0.00927075743675232,
-0.01143175084143877,
-0.014191461727023125,
-0.006080718711018562,
0.05347290635108948,
-0.0244725551456213,
0.01267595961689949,
0.004441263619810343,
-0.02263898402452469,
0.0575890839099884,
-0.02121703140437603,
-0.04209728538990021,
-0.0010477546602487564,
-0.02267640270292759,
-0.012329827062785625,
-0.036409471184015274,
0.025950636714696884,
-0.04583926498889923,
0.018167316913604736,
-0.036970771849155426,
0.005898297298699617,
-0.032536521553993225,
-0.04411795362830162,
0.0044599734246730804,
0.0817248597741127,
0.03708302974700928,
-0.03259265422821045,
-0.026792582124471664,
0.0020990173798054457,
0.01104819867759943,
-0.0058234576135873795,
0.014107267372310162,
0.05526905506849289,
-0.0330791100859642,
0.013293386436998844,
-0.006487659178674221,
0.029655197635293007,
-0.006436206866055727,
-0.009588825516402721,
-0.0032297971192747355,
-0.03072166256606579,
0.024603523313999176,
0.021684778854250908,
-0.025950636714696884,
0.00982269924134016,
0.012451441027224064,
0.02772807702422142,
0.012591765262186527,
-0.033490728586912155,
0.04209728538990021,
0.004116178955882788,
-0.06683177500963211,
-0.010804969817399979,
-0.03032875433564186,
0.06013363227248192,
0.005973136983811855,
-0.04123662784695625,
0.014846309088170528,
0.018635064363479614,
-0.02757839858531952,
-0.057738762348890305,
-0.024304164573550224,
-0.003746658330783248,
0.024846753105521202,
-0.004675137344747782,
-0.02121703140437603,
-0.052836768329143524,
-0.0026240639854222536,
-0.03393976390361786,
-0.02795259654521942,
0.02202155627310276,
-0.06032073125243187,
0.05856199935078621,
0.0007121457019820809,
-0.03205006569623947,
0.01260112039744854,
0.03775658458471298,
0.007020891644060612,
-0.010917228646576405,
-0.029879717156291008,
0.001928289420902729,
0.010337221436202526,
0.03332233801484108,
-0.004319649189710617,
-0.017755698412656784,
-0.029898425564169884,
0.05197611451148987,
0.030197784304618835,
-0.058000702410936356,
0.05590519309043884,
0.028850670903921127,
-0.006450239568948746,
-0.018700549378991127,
0.019589269533753395,
-0.01654890924692154,
-0.01432243175804615,
-0.01578180305659771,
0.00007922475197119638,
0.058038122951984406,
0.03025391511619091,
0.01373306941241026,
0.04063791036605835,
0.007769287563860416,
0.033228788524866104,
-0.004296261817216873,
0.02546417899429798,
0.002804146846756339,
-0.06634531915187836,
-0.06986278295516968,
0.034182995557785034,
-0.007918966934084892,
0.010786259546875954,
0.06361367553472519,
-0.028139695525169373,
0.0038098040968179703,
0.011328847147524357,
-0.007264120038598776,
-0.009439146146178246,
0.046662501990795135,
-0.057925861328840256,
0.016343101859092712,
0.0372139997780323,
-0.0076383184641599655,
0.03446364402770996,
0.06039556860923767,
-0.013218547217547894,
-0.01861635409295559,
0.007474606391042471,
-0.01647407002747059,
0.025370629504323006,
-0.013284031301736832,
0.010159477591514587,
0.018981197848916054,
-0.0017341742059215903,
-0.10499998182058334,
0.0100565729662776,
-0.020169276744127274,
0.028700992465019226,
0.014668564312160015,
0.05081610009074211,
-0.010889164172112942,
0.012516926042735577,
0.017839893698692322,
-0.059609752148389816,
-0.04116178676486015,
0.03068424202501774,
-0.006562498863786459,
-0.0486457496881485,
-0.021890588104724884,
-0.03197522461414337,
0.015501155517995358,
0.03914111852645874,
-0.010140768252313137,
0.014013717882335186,
0.03442622348666191,
-0.03872950002551079,
0.016979238018393517,
0.05897361785173416,
-0.01723182201385498,
-0.05919813737273216,
0.030010685324668884,
-0.005093771498650312,
0.022470595315098763,
-0.0411243699491024,
-0.026212574914097786,
-0.049656085669994354,
-0.038467563688755035,
-0.008208970539271832,
-0.007713157683610916,
0.09669278562068939,
0.029430678114295006,
0.03788755461573601,
-0.0005598354036919773,
0.06058266758918762
] |
21,466 | tfields.triangles_3d | corners |
Returns:
three np.arrays with corner points of triangles
| def corners(self):
"""
Returns:
three np.arrays with corner points of triangles
"""
indices = range(self.ntriangles())
aIndices = [i * 3 for i in indices]
bIndices = [i * 3 + 1 for i in indices]
cIndices = [i * 3 + 2 for i in indices]
a = self.bulk[aIndices, :]
b = self.bulk[bIndices, :]
c = self.bulk[cIndices, :]
return a, b, c
| (self) | [
-0.08052566647529602,
-0.02265228144824505,
-0.012435676530003548,
0.024427538737654686,
-0.034795042127370834,
-0.0003167724353261292,
0.027356712147593498,
0.03025038167834282,
-0.015054180286824703,
0.004227330908179283,
0.03268248587846756,
0.038132522255182266,
-0.06025222688913345,
0.009408863261342049,
-0.04299672693014145,
-0.022599022835493088,
0.0038057074416428804,
-0.022492507472634315,
-0.04416839778423309,
0.023397888988256454,
-0.03937520459294319,
-0.01945681869983673,
0.011965232901275158,
0.031954627484083176,
0.007136533968150616,
0.026149537414312363,
0.004957405384629965,
-0.01139715127646923,
0.07111680507659912,
-0.01743302494287491,
-0.09202933311462402,
0.026433579623699188,
-0.020681746304035187,
0.039091162383556366,
0.016128212213516235,
-0.012018490582704544,
0.08954396843910217,
0.027605248615145683,
0.021551622077822685,
0.07512888312339783,
-0.004695555195212364,
-0.054642416536808014,
-0.003308635437861085,
-0.013314428739249706,
-0.0054189725778996944,
-0.021107807755470276,
0.04388435557484627,
-0.027090424671769142,
-0.082940012216568,
-0.007003389298915863,
0.04267718270421028,
-0.06319915503263474,
0.03976576030254364,
-0.0274454765021801,
0.021445106714963913,
-0.02087702415883541,
-0.007198667619377375,
0.020628487691283226,
-0.06745976954698563,
0.018657952547073364,
-0.01940356008708477,
-0.010500646196305752,
0.0836501196026802,
-0.017086850479245186,
0.030605433508753777,
-0.044700976461172104,
-0.028634898364543915,
0.028723660856485367,
0.04171854257583618,
0.06980311125516891,
0.027214692905545235,
0.05389680713415146,
0.03509683534502983,
-0.06500991433858871,
0.04214460402727127,
0.019172776490449905,
0.05023977905511856,
0.06106884777545929,
-0.0016753989038988948,
-0.012595449574291706,
-0.07299857586622238,
0.014956541359424591,
0.020255684852600098,
0.05719878524541855,
0.055636558681726456,
0.008681007660925388,
-0.011991862207651138,
-0.0032043391838669777,
-0.06770830601453781,
-0.007593662478029728,
-0.0011605743784457445,
0.009115945547819138,
-0.05499746650457382,
-0.007646920159459114,
0.005325771402567625,
-0.0004845897201448679,
-0.003159957705065608,
-0.02749873325228691,
-0.01516069658100605,
-0.020184673368930817,
-0.049849219620227814,
-0.0025474941357970238,
-0.013074768707156181,
0.0037125064991414547,
0.01659865491092205,
-0.0044514574110507965,
-0.0019916165620088577,
-0.051375940442085266,
-0.01617259345948696,
0.002476483816280961,
-0.007868827320635319,
0.030995989218354225,
0.03587794676423073,
0.02215520851314068,
-0.019705355167388916,
-0.06710471957921982,
-0.02788929082453251,
0.011441532522439957,
-0.010571656748652458,
0.018782220780849457,
0.045162543654441833,
-0.026682114228606224,
0.012000738643109798,
0.055103983730077744,
-0.025386177003383636,
0.02604302205145359,
-0.005685260985046625,
0.02794254757463932,
-0.028581639751791954,
-0.03353460878133774,
0.025883249938488007,
0.0037812977097928524,
-0.029007701203227043,
-0.06284410506486893,
-0.04917462170124054,
0.02227947674691677,
0.08073869347572327,
-0.056559693068265915,
0.02462281659245491,
-0.043245263397693634,
0.03884262591600418,
0.058015402406454086,
0.023575415834784508,
0.02845737151801586,
-0.06138839200139046,
0.07491584867238998,
0.03642827644944191,
-0.011592429131269455,
0.03490155562758446,
-0.005126054864376783,
0.003741354448720813,
0.01020772848278284,
0.01613708771765232,
-0.0027849345933645964,
-0.014193180948495865,
-0.08684557676315308,
-0.020610734820365906,
-0.06344769150018692,
0.002882573753595352,
-0.024427538737654686,
-0.039907779544591904,
-0.012391295284032822,
-0.06937704980373383,
0.016465509310364723,
-0.001835172064602375,
0.06689169257879257,
0.028989950194954872,
-0.09039609134197235,
-0.011477037332952023,
0.00009001108264783397,
0.0007256363751366735,
0.019758611917495728,
-0.08350809663534164,
0.0334991030395031,
-0.029930835589766502,
-0.023486651480197906,
-0.052831653505563736,
0.0002976329706143588,
0.020131416618824005,
-0.017370890825986862,
0.0051571219228208065,
-0.015293840318918228,
0.03277124837040901,
-0.02371743507683277,
0.06998063623905182,
0.009266842156648636,
0.08677457273006439,
-0.03777747228741646,
0.06184995919466019,
0.003958823624998331,
-0.051304932683706284,
0.021019045263528824,
0.004378227982670069,
0.06792134046554565,
0.03642827644944191,
-0.01298600621521473,
0.013838129118084908,
-0.004819822963327169,
-0.022385992109775543,
-0.024711579084396362,
-0.08045465499162674,
-0.035682667046785355,
-0.0024099114816635847,
0.010624914430081844,
0.05450039356946945,
0.006386487744748592,
-0.0025807800702750683,
-0.03422695770859718,
-0.0019727544859051704,
0.06103334203362465,
0.06444183737039566,
-0.028563886880874634,
-0.0071409717202186584,
-0.0014379583299160004,
-0.008228316903114319,
0.004063119646161795,
0.0004354927805252373,
0.007908770814538002,
-0.02458731085062027,
0.016918200999498367,
0.008578930050134659,
-0.0021769090089946985,
0.018373912200331688,
-0.007837760262191296,
-0.037138380110263824,
0.003435122547671199,
-0.005072797182947397,
0.040404852479696274,
-0.06724674254655838,
-0.03745792433619499,
0.02746322751045227,
-0.03880712017416954,
-0.014787891879677773,
-0.01398902665823698,
-0.005565430968999863,
0.023397888988256454,
-0.03692534938454628,
-0.032451700419187546,
0.04778992384672165,
0.01853368431329727,
-0.03408493846654892,
0.004580163396894932,
0.06614608317613602,
-0.0035305425990372896,
-0.001708685071207583,
0.026398073881864548,
0.013767119497060776,
0.017681561410427094,
0.011974109336733818,
0.02886568196117878,
-0.03635726496577263,
-0.008206126280128956,
-0.008654378354549408,
-0.005671946797519922,
0.032931018620729446,
-0.059329092502593994,
0.08627749979496002,
-0.011654563248157501,
0.04196707904338837,
0.01947457157075405,
0.016838314011693,
0.023983724415302277,
0.09508277475833893,
0.02263452857732773,
-0.003823460079729557,
0.012018490582704544,
0.020486468449234962,
0.028670402243733406,
-0.0906091257929802,
0.0065063172951340675,
0.081732839345932,
0.037173885852098465,
-0.04782542958855629,
-0.00474437465891242,
-0.029043206945061684,
-0.008587806485593319,
-0.009284595027565956,
0.056666210293769836,
-0.02373518794775009,
-0.01227590348571539,
-0.01697145774960518,
-0.0061290753073990345,
-0.03072970174252987,
0.02836860902607441,
-0.05205053836107254,
-0.02838636189699173,
0.02703716605901718,
-0.037209391593933105,
0.020486468449234962,
-0.009630770422518253,
0.004535782150924206,
0.005436724983155727,
-0.026806382462382317,
-0.0694480612874031,
0.07143634557723999,
-0.009133698418736458,
-0.03309079259634018,
-0.006528508383780718,
-0.0017730380641296506,
0.005174874793738127,
-0.0005991492653265595,
-0.025386177003383636,
0.018098747357726097,
-0.006603956688195467,
-0.011343893595039845,
0.022971827536821365,
0.027729516848921776,
-0.0013969055144116282,
0.009577512741088867,
-0.03788398951292038,
-0.005947111640125513,
-0.06323465704917908,
-0.029167475178837776,
-0.023752940818667412,
-0.004156320821493864,
-0.024960115551948547,
0.004970720037817955,
0.0017641617450863123,
0.01639449968934059,
0.02277654968202114,
-0.020042654126882553,
-0.007158724591135979,
-0.0007628058083355427,
0.04860654100775719,
0.014299696311354637,
0.04264167696237564,
-0.05055932328104973,
-0.04203809052705765,
-0.019953889772295952,
0.037990503013134,
-0.02369968220591545,
0.021143313497304916,
-0.03410268947482109,
0.07392171025276184,
0.004881957080215216,
0.035771433264017105,
0.06209849566221237,
0.03252271190285683,
0.0064131165854632854,
-0.01654539629817009,
0.035664916038513184,
0.016021694988012314,
-0.009275718592107296,
0.026149537414312363,
0.01371386181563139,
0.03234518691897392,
-0.002251247875392437,
0.012160511687397957,
0.021391848102211952,
0.04352930560708046,
-0.011237378232181072,
-0.03983677178621292,
0.023415641859173775,
0.028723660856485367,
-0.002445416757836938,
0.06025222688913345,
-0.017477406188845634,
-0.010784687474370003,
0.025776734575629234,
0.06511643528938293,
0.06486789882183075,
-0.0416475310921669,
0.043316274881362915,
0.009435491636395454,
-0.02412574551999569,
-0.016900448128581047,
-0.003998766653239727,
0.01515182014554739,
-0.04363582283258438,
-0.014388459734618664,
-0.023930465802550316,
-0.007296307012438774,
-0.01255994476377964,
0.020521972328424454,
0.029575783759355545,
0.0032021200750023127,
-0.029220731928944588,
0.02934500016272068,
-0.00183739117346704,
-0.017619427293539047,
-0.013642851263284683,
-0.062276020646095276,
0.04775441810488701,
0.014574861153960228,
-0.07164938002824783,
0.0017541759880259633,
-0.04391986131668091,
0.014468345791101456,
-0.020930282771587372,
0.08002859354019165,
-0.011432656086981297,
-0.013465325348079205,
0.009049373678863049,
-0.039552729576826096,
0.012338037602603436,
0.007780064363032579,
0.014574861153960228,
0.019226035103201866,
-0.003341921605169773,
-0.020450962707400322,
-0.03937520459294319,
-0.040972936898469925,
-0.005960425827652216,
0.026699867099523544,
-0.034315720200538635,
0.0018795535434037447,
0.000573629979044199,
0.017974479123950005,
0.06841841340065002,
-0.08123576641082764,
-0.06728224456310272,
0.06564901024103165,
0.1097819060087204,
-0.016208097338676453,
-0.007593662478029728,
-0.0005919373361393809,
-0.0311912689357996,
0.03227417543530464,
0.01137052197009325,
0.06692719459533691,
0.05073684826493263,
-0.019048510119318962,
-0.01652764342725277,
0.03369437903165817,
-0.018799973651766777,
0.0008687664521858096,
-0.003128890646621585,
0.026167290285229683,
0.051802005618810654,
0.018098747357726097,
-0.016518767923116684,
-0.020450962707400322,
-0.01370498538017273,
-0.04970720037817955,
-0.03591345250606537,
0.008969486691057682,
-0.008942858316004276,
0.04651173576712608,
0.03325056657195091,
0.02032669447362423,
0.054713424295186996,
0.0767621174454689,
-0.033800896257162094,
-0.056098125874996185,
0.011059852316975594,
-0.01883547753095627,
-0.013021511025726795,
-0.06344769150018692,
-0.02275879681110382,
-0.005392343737185001,
0.021604878827929497,
0.014725757762789726,
0.014725757762789726,
-0.060465257614851,
0.02181791141629219,
0.04747037589550018,
-0.048038460314273834,
-0.026593351736664772,
-0.04115046188235283,
-0.007917647249996662,
0.0641222894191742,
0.040937431156635284,
-0.01637674681842327,
-0.04551759362220764,
-0.009284595027565956,
-0.09565085917711258,
0.00699007511138916,
-0.0011627934873104095,
-0.0270549189299345,
-0.00044409168185666203,
0.0548909530043602,
-0.035256605595350266,
-0.055672064423561096,
-0.025013374164700508,
0.06440632790327072,
0.0349370613694191,
-0.0025807800702750683,
0.03513233736157417,
0.007092152256518602,
-0.06195647642016411,
-0.09032508730888367,
-0.024463044479489326,
-0.04676027223467827,
-0.039446212351322174,
-0.0071409717202186584,
0.01641225256025791,
-0.08279799669981003,
0.034795042127370834,
0.01776144839823246,
-0.08862083405256271,
0.03593120351433754,
0.015089686028659344,
-0.05840596184134483,
0.013793747872114182,
0.03745792433619499,
0.056027114391326904,
0.04512703791260719,
-0.016953706741333008,
0.010553903877735138,
0.052370086312294006,
0.020930282771587372,
0.010979965329170227,
0.011184120550751686,
-0.03074745461344719,
-0.025776734575629234,
-0.03499031811952591,
0.04828699305653572,
0.005760709289461374,
0.024001477286219597,
0.00474437465891242,
0.0007739011780358851,
-0.04225112125277519,
0.010935584083199501,
-0.016190344467759132,
0.0005869443994015455,
0.013465325348079205,
-0.03784848377108574,
0.019687602296471596,
-0.03635726496577263,
0.05208604410290718,
-0.003337483387440443,
0.03133329004049301,
-0.03976576030254364,
0.08123576641082764,
-0.03424471244215965,
0.06202748417854309,
-0.00804191455245018,
-0.07015816122293472,
0.009462120942771435,
0.028262093663215637,
-0.025173146277666092,
-0.005867225117981434,
0.009559759870171547,
0.028989950194954872,
-0.023522157222032547,
0.04842901602387428,
-0.018640199676156044,
-0.017841333523392677,
0.05545903369784355,
-0.03916217386722565,
0.030534423887729645,
-0.018657952547073364,
0.0001386919611832127,
-0.08116475492715836,
-0.008672131225466728,
-0.03472403064370155,
-0.005569869186729193,
-0.03504357486963272,
-0.024764837697148323,
0.02172914706170559,
0.07619404047727585,
-0.02746322751045227,
0.029629042372107506,
0.0069811986759305,
0.018640199676156044,
0.03126227855682373,
-0.004504715092480183,
-0.08563840389251709,
-0.006887997966259718,
0.039907779544591904,
-0.001631017541512847,
-0.05542352795600891,
0.004526905715465546,
0.019243787974119186,
-0.07967354357242584,
0.023504404351115227,
0.012657583691179752,
0.06099783629179001,
-0.03866510093212128,
-0.03360561653971672,
-0.04296122491359711,
0.02987757883965969,
-0.034795042127370834,
0.015968438237905502,
0.016243603080511093,
-0.03646378219127655,
0.003284225706011057,
-0.07782727479934692,
0.0193858090788126,
-0.015054180286824703,
0.020699499174952507,
0.004262836184352636,
-0.0165098924189806,
-0.058441463857889175,
0.03312629833817482,
0.06284410506486893,
-0.03362337127327919,
0.051304932683706284,
0.053754787892103195,
-0.04796744883060455,
0.020131416618824005,
0.009630770422518253,
0.009107069112360477,
-0.025794487446546555,
-0.003619305556640029,
0.030481165274977684,
-0.020255684852600098,
-0.02835085615515709,
-0.0034262463450431824,
-0.03300203010439873,
0.010935584083199501,
0.009311223402619362,
0.006346544250845909,
0.02701941318809986,
-0.006293286569416523,
-0.02172914706170559,
-0.025936506688594818,
-0.03321506083011627,
-0.03317955508828163,
0.016279108822345734,
0.037209391593933105,
-0.05741181597113609,
0.036676812916994095,
-0.04775441810488701,
-0.06760179251432419,
0.000814399216324091,
-0.08684557676315308,
0.06618158519268036,
0.0043160938657820225,
0.07321160286664963,
-0.060855817049741745,
-0.027072671800851822,
0.0026695430278778076,
-0.003936632536351681,
-0.012027367018163204,
0.013181284070014954,
0.025350673124194145,
-0.030001845210790634,
0.011166367679834366,
0.051304932683706284,
0.029735557734966278,
-0.01298600621521473,
0.04132798686623573,
-0.02183566242456436,
-0.060287732630968094,
-0.00887184776365757,
0.019794117659330368,
-0.008188373409211636,
0.022101951763033867,
-0.0034772849176079035,
-0.021196570247411728,
0.07882142066955566,
-0.0015222830697894096,
-0.021196570247411728,
0.02080601453781128,
-0.04736386239528656,
-0.020948033779859543,
-0.03820353373885155,
0.020202426239848137,
-0.012382418848574162,
-0.0330197848379612,
0.032487206161022186,
-0.036286257207393646,
0.01184096559882164,
-0.04100843891501427,
-0.013944645412266254,
-0.012968253344297409,
0.04537557438015938,
-0.000278077379334718,
-0.006333230063319206,
-0.012826233170926571,
0.023362385109066963,
-0.01091783121228218,
-0.06600406020879745,
-0.01541810855269432,
0.025457188487052917,
0.02277654968202114,
0.015968438237905502,
-0.03845207020640373,
0.03328607231378555,
0.0193858090788126,
0.019545581191778183,
-0.003721382934600115,
-0.009160326793789864,
0.021924426779150963,
0.03491930663585663,
0.006368734873831272,
-0.019953889772295952,
-0.009621893987059593,
-0.015311593189835548,
0.05684373527765274,
0.03774196654558182,
-0.01711347885429859,
0.02739221788942814,
0.06007470190525055,
0.011326140724122524,
0.002884792862460017,
0.04207359626889229,
-0.028563886880874634,
0.008809713646769524,
-0.02183566242456436,
0.02231498248875141,
0.053151197731494904,
0.06895098835229874,
0.02785378508269787,
0.021391848102211952,
-0.007562595419585705,
-0.012320284731686115,
-0.00592048279941082,
0.025705723091959953,
0.011086480692029,
-0.06376723945140839,
-0.07140084356069565,
0.026788631454110146,
-0.011086480692029,
0.0070965904742479324,
0.037209391593933105,
-0.02227947674691677,
0.010882326401770115,
0.017131231725215912,
-0.026806382462382317,
0.006785920355468988,
0.03742242231965065,
-0.034777287393808365,
-0.07072624564170837,
0.041860565543174744,
-0.0009580840705893934,
0.017424149438738823,
0.027267949655652046,
0.011965232901275158,
-0.015355974435806274,
0.046227697283029556,
-0.010225481353700161,
0.03603772073984146,
-0.03546963632106781,
0.033303823322057724,
0.023912714794278145,
-0.0005397891509346664,
-0.07697515189647675,
-0.01982962153851986,
-0.03976576030254364,
-0.022385992109775543,
0.012719717808067799,
0.030001845210790634,
0.003856746247038245,
0.021125560626387596,
0.06664315611124039,
-0.04693780094385147,
-0.044771984219551086,
0.03728039935231209,
-0.03401392698287964,
-0.05481994152069092,
-0.00921358447521925,
0.007229734677821398,
0.006311038974672556,
0.026628857478499413,
0.03325056657195091,
-0.02362867258489132,
-0.004282807931303978,
-0.05627565085887909,
0.021977683529257774,
0.0669982060790062,
0.01635899394750595,
-0.04636971652507782,
-0.010474016889929771,
-0.023096095770597458,
0.009879305958747864,
-0.042428646236658096,
-0.052299074828624725,
-0.04537557438015938,
-0.07839535921812057,
0.0055432403460145,
-0.062276020646095276,
0.0879107341170311,
-0.014006778597831726,
0.015569005161523819,
0.046156685799360275,
0.03891363739967346
] |
21,468 | tfields.triangles_3d | cut |
Default cut method for Triangles3D
Examples:
>>> import sympy
>>> import numpy as np
>>> import tfields
>>> x, y, z = sympy.symbols('x y z')
>>> t = tfields.Triangles3D([[1., 2., 3.], [-4., 5., 6.], [1, 2, -6],
... [5, -5, -5], [1, 0, -1], [0, 1, -1],
... [-5, -5, -5], [1, 0, -1], [0, 1, -1]])
>>> tc = t.cut(x >= 0)
>>> assert tc.equal(tfields.Triangles3D([[ 5., -5., -5.],
... [ 1., 0., -1.],
... [ 0., 1., -1.]]))
>>> t.fields.append(tfields.Tensors([1,2,3]))
>>> tc2 = t.cut(x >= 0)
>>> assert np.array_equal(tc2.fields[-1], np.array([2.]))
| def cut(self, expression, coord_sys=None):
"""
Default cut method for Triangles3D
Examples:
>>> import sympy
>>> import numpy as np
>>> import tfields
>>> x, y, z = sympy.symbols('x y z')
>>> t = tfields.Triangles3D([[1., 2., 3.], [-4., 5., 6.], [1, 2, -6],
... [5, -5, -5], [1, 0, -1], [0, 1, -1],
... [-5, -5, -5], [1, 0, -1], [0, 1, -1]])
>>> tc = t.cut(x >= 0)
>>> assert tc.equal(tfields.Triangles3D([[ 5., -5., -5.],
... [ 1., 0., -1.],
... [ 0., 1., -1.]]))
>>> t.fields.append(tfields.Tensors([1,2,3]))
>>> tc2 = t.cut(x >= 0)
>>> assert np.array_equal(tc2.fields[-1], np.array([2.]))
"""
# mask = self.evalf(expression, coord_sys=coord_sys)
# inst = self[mask].copy()
# return inst
return super().cut(expression, coord_sys)
| (self, expression, coord_sys=None) | [
0.00043067822116427124,
0.01721510849893093,
0.019984912127256393,
0.005130871664732695,
-0.024428142234683037,
-0.005741574801504612,
-0.019138583913445473,
-0.016407247632741928,
-0.026159269735217094,
-0.0046307677403092384,
0.05378038063645363,
0.03920043632388115,
-0.0390850268304348,
-0.028063511475920677,
-0.05597314238548279,
-0.000204669835511595,
-0.03237209469079971,
0.022004561498761177,
0.021696805953979492,
-0.023331761360168457,
-0.03935431316494942,
-0.067898690700531,
0.022389257326722145,
0.03639215975999832,
0.029544586315751076,
-0.024928245693445206,
0.004527381155639887,
0.0030270698480308056,
-0.0017443520482629538,
-0.028909839689731598,
-0.06258989870548248,
0.03575741499662399,
-0.0315450020134449,
-0.010098247788846493,
-0.015926379710435867,
-0.06966829299926758,
0.022427726536989212,
0.01201210543513298,
0.09240377694368362,
0.0953274592757225,
-0.05216466262936592,
0.0003062534087803215,
0.013627825304865837,
-0.0010933757293969393,
-0.013137339614331722,
-0.010896489955484867,
0.08394048362970352,
-0.010540646500885487,
-0.0502796545624733,
0.01304116565734148,
-0.013300834223628044,
-0.03010239452123642,
0.040008295327425,
-0.03594976291060448,
-0.03448791801929474,
-0.029583057388663292,
0.05481905862689018,
0.005178958177566528,
-0.014743441715836525,
0.023831864818930626,
0.0006167144165374339,
0.07270738482475281,
-0.003233843483030796,
0.0009431042126379907,
0.021523693576455116,
-0.026909425854682922,
-0.029756169766187668,
0.042047180235385895,
0.02706330269575119,
0.027121007442474365,
-0.02161986753344536,
0.009429839439690113,
0.05343415588140488,
-0.03981594741344452,
0.04062380641698837,
-0.04027758166193962,
0.038758035749197006,
0.01335853897035122,
0.05497293546795845,
-0.05993550270795822,
-0.001171516953036189,
0.03146806359291077,
0.0030847741290926933,
0.08047822117805481,
0.015724413096904755,
0.046394232660532,
0.0074630859307944775,
-0.017686359584331512,
0.02267777919769287,
0.0037555864546447992,
-0.04116237908601761,
-0.004837541375309229,
-0.05543456971645355,
-0.034507155418395996,
-0.002413962036371231,
0.06435950100421906,
-0.00631380919367075,
-0.07259197533130646,
-0.015272397547960281,
-0.014618415385484695,
0.10202115029096603,
0.05081822723150253,
-0.05970468744635582,
-0.006058948580175638,
0.026774782687425613,
0.03641139715909958,
-0.006010861601680517,
-0.020177260041236877,
-0.05024118721485138,
0.004044107627123594,
0.010050160810351372,
0.10802239924669266,
-0.01566671021282673,
0.0293714739382267,
-0.037430837750434875,
-0.019715625792741776,
-0.04612494632601738,
-0.011569706723093987,
-0.01721510849893093,
-0.02367798611521721,
0.015830205753445625,
-0.014695354737341404,
-0.014522241428494453,
0.06524429470300674,
-0.013397008180618286,
0.09478888660669327,
-0.016926586627960205,
0.023274056613445282,
-0.0059964354149997234,
-0.060627955943346024,
0.04012370482087135,
-0.018984705209732056,
-0.024793602526187897,
-0.031737349927425385,
0.009545248001813889,
0.030852550640702248,
0.008477719500660896,
-0.025389879941940308,
-0.016320692375302315,
0.010213656350970268,
0.005337645299732685,
0.0059531573206186295,
0.02158139832317829,
0.021792979910969734,
-0.08278639614582062,
0.04127778857946396,
-0.02210073545575142,
-0.022966299206018448,
0.0027674005832523108,
0.02998698689043522,
-0.043008916079998016,
0.07632351666688919,
0.04347055032849312,
-0.010694525204598904,
-0.00506835849955678,
0.02025419846177101,
-0.008708536624908447,
-0.05470364913344383,
0.04904863238334656,
0.02475513331592083,
-0.0054963319562375546,
0.007376529276371002,
-0.03252597525715828,
0.015839822590351105,
-0.02438967302441597,
-0.02948688343167305,
0.043855246156454086,
-0.037815533578395844,
-0.03237209469079971,
0.05070282146334648,
0.032449036836624146,
0.016897734254598618,
0.004190772771835327,
0.06566745787858963,
-0.0253706444054842,
0.02694789506494999,
-0.046278826892375946,
0.038411810994148254,
-0.04166248440742493,
-0.021908387541770935,
0.02340869978070259,
-0.024447375908493996,
0.019754095003008842,
0.03825793042778969,
0.04323973506689072,
-0.026428556069731712,
-0.004863989073783159,
0.004674045834690332,
0.010896489955484867,
0.026043862104415894,
-0.023350995033979416,
-0.021427519619464874,
0.010482942685484886,
-0.048009954392910004,
0.04493239149451256,
-0.010338681749999523,
0.006544626317918301,
0.01031944714486599,
-0.06020478904247284,
0.0388542078435421,
-0.07970883697271347,
-0.002695270348340273,
0.01007901318371296,
-0.006770634558051825,
-0.0070976256392896175,
0.007891058921813965,
0.03531501442193985,
0.05216466262936592,
-0.02644779160618782,
0.005025080405175686,
0.028428971767425537,
-0.0044480375945568085,
0.0003925092751160264,
0.04504780098795891,
0.009963604621589184,
-0.014829997904598713,
-0.05116445571184158,
0.013214278034865856,
0.029044482856988907,
0.004022468812763691,
-0.0061887833289802074,
-0.004996228031814098,
0.0015015131793916225,
0.026370851323008537,
-0.014531859196722507,
0.0036281561478972435,
0.06712929904460907,
-0.002400738187134266,
0.013839407823979855,
-0.06058948487043381,
0.031602706760168076,
-0.005174149759113789,
-0.0019366996129974723,
-0.067898690700531,
0.03602670133113861,
0.03460332751274109,
-0.023639516904950142,
-0.016945820301771164,
0.04493239149451256,
-0.008025702089071274,
-0.009468309581279755,
-0.00670331297442317,
0.01322389580309391,
0.0060974182561039925,
0.008391162380576134,
0.0313141830265522,
-0.01638801395893097,
0.06847573816776276,
-0.0032170130871236324,
0.015435893088579178,
-0.020350372418761253,
-0.017417073249816895,
-0.049818020313978195,
0.029429178684949875,
0.016205282881855965,
0.03167964518070221,
0.08301721513271332,
-0.07174564152956009,
0.04139319807291031,
-0.026986364275217056,
-0.024851305410265923,
-0.05639630928635597,
0.06847573816776276,
-0.0011468724114820361,
-0.006477304268628359,
-0.02342793345451355,
-0.0017888323636725545,
0.009333665482699871,
-0.02462049014866352,
0.034641798585653305,
-0.13502798974514008,
0.05304946005344391,
0.023389464244246483,
-0.035141900181770325,
-0.03217975050210953,
0.0034478302113711834,
-0.003128052456304431,
0.013675912283360958,
0.056588657200336456,
-0.01635916158556938,
0.015455127693712711,
0.012694939970970154,
-0.08047822117805481,
0.006491730455309153,
-0.022658543661236763,
-0.03508419543504715,
0.027871163561940193,
0.018523070961236954,
-0.0025702444836497307,
0.0075111729092895985,
-0.07082237303256989,
0.024331968277692795,
0.024966714903712273,
-0.037680890411138535,
0.08124761283397675,
0.0018104715272784233,
-0.06920665502548218,
-0.007386146578937769,
0.02477436698973179,
0.00818438921123743,
0.0014185633044689894,
0.0018489410867914557,
-0.027640346437692642,
0.011608175933361053,
0.0030222611967474222,
-0.004839945584535599,
-0.016166813671588898,
0.010232890956103802,
0.0337185300886631,
0.013762468472123146,
0.06497500836849213,
-0.01663806475698948,
-0.060627955943346024,
-0.033314600586891174,
0.03821946308016777,
0.06632144004106522,
0.04477851465344429,
0.008646023459732533,
-0.024235794320702553,
0.06505195051431656,
0.011175394058227539,
-0.05312639847397804,
-0.024851305410265923,
0.06162816286087036,
0.013945198617875576,
-0.05058741196990013,
-0.01879235729575157,
-0.02646702527999878,
-0.04770219698548317,
0.03727696090936661,
-0.025562992319464684,
0.1094842404127121,
0.004236455075442791,
0.0010308627970516682,
0.031160306185483932,
-0.022389257326722145,
0.08247864246368408,
0.01879235729575157,
-0.04377830773591995,
-0.02633238211274147,
-0.005741574801504612,
-0.00927596166729927,
-0.01122348103672266,
0.03231439366936684,
-0.0013211873592808843,
-0.0017647889908403158,
-0.027005599811673164,
-0.006486922036856413,
0.05728110671043396,
0.06166663020849228,
0.045432496815919876,
-0.05039506405591965,
0.011444680392742157,
-0.03362235426902771,
-0.002260084031149745,
-0.028467440977692604,
-0.010242507793009281,
-0.030544795095920563,
-0.03546889126300812,
-0.03010239452123642,
0.1273340880870819,
-0.05093363672494888,
0.015945613384246826,
0.015166605822741985,
0.0009917921852320433,
-0.04258575290441513,
0.0011005887063220143,
0.022043032571673393,
-0.04093156382441521,
-0.02073506824672222,
-0.01746515929698944,
-0.03127571567893028,
0.00326029141433537,
-0.00023337169841397554,
-0.013493182137608528,
-0.005842557642608881,
0.011810140684247017,
-0.05158761888742447,
-0.042162586003541946,
0.041931770741939545,
-0.012396801263093948,
0.008573893457651138,
-0.058781418949365616,
-0.04162401333451271,
-0.053087931126356125,
0.0434320829808712,
-0.08632559329271317,
-0.020331138744950294,
0.09694317728281021,
0.008828753605484962,
0.061705101281404495,
0.003709903685376048,
0.06555205583572388,
-0.02027343399822712,
-0.07074543833732605,
0.025293705984950066,
-0.028967544436454773,
-0.02036960795521736,
0.01903279311954975,
0.014560711570084095,
-0.054665181785821915,
-0.015483979135751724,
0.07082237303256989,
0.05974315479397774,
0.04158554598689079,
0.0019499234622344375,
0.02704406902194023,
0.01917705312371254,
0.016657300293445587,
-0.04489392414689064,
0.01236794888973236,
-0.018590392544865608,
-0.004561041947454214,
0.02306247316300869,
0.029275299981236458,
-0.03933507949113846,
0.035276543349027634,
0.020677363499999046,
-0.035122666507959366,
0.039258141070604324,
-0.01164664514362812,
-0.06459031254053116,
-0.00037117069587111473,
0.008905692957341671,
0.0028251048643141985,
0.003515151794999838,
-0.00522223673760891,
0.012521826662123203,
0.035622771829366684,
0.03369929641485214,
-0.09332704544067383,
-0.02573610469698906,
-0.04020064324140549,
0.00652058282867074,
-0.011733202263712883,
-0.02098512090742588,
0.007121668662875891,
0.02850591018795967,
-0.005236662458628416,
0.04466310515999794,
0.02667860873043537,
0.03346847742795944,
0.025274470448493958,
-0.06028172746300697,
-0.029794638976454735,
0.040469929575920105,
-0.0012983460910618305,
-0.0024199727922677994,
-0.09309622645378113,
-0.011521619744598866,
0.028352031484246254,
0.04647117480635643,
0.010232890956103802,
0.025562992319464684,
-0.009809725917875767,
0.007073582150042057,
-0.04985649138689041,
-0.06139734387397766,
0.013906729407608509,
0.02742876298725605,
-0.033564649522304535,
0.03845027834177017,
-0.0021747297141700983,
-0.05024118721485138,
-0.051279861479997635,
-0.02440890669822693,
-0.007155329454690218,
-0.03850798308849335,
-0.0019691581837832928,
-0.04281656816601753,
0.04177789390087128,
0.006087800487875938,
-0.04123932123184204,
0.009877047501504421,
0.026293912902474403,
0.07809311151504517,
0.008405588567256927,
0.028698258101940155,
0.022062266245484352,
-0.04854852706193924,
-0.03673838451504707,
-0.04089309275150299,
-0.0546267107129097,
-0.026159269735217094,
-0.011964019387960434,
0.03237209469079971,
-0.07259197533130646,
0.013166191056370735,
0.03469950333237648,
0.019754095003008842,
-0.027255650609731674,
0.014762676320970058,
-0.04608647897839546,
0.020542720332741737,
-0.0016145174158737063,
0.005337645299732685,
0.012156366370618343,
-0.00670812139287591,
-0.005462671164423227,
0.03204510733485222,
-0.02194685861468315,
0.06966829299926758,
-0.010482942685484886,
0.007568877190351486,
0.01158894132822752,
0.01067529059946537,
0.03287220001220703,
0.01931169629096985,
-0.0019571364391595125,
-0.06258989870548248,
-0.02802504040300846,
-0.029948517680168152,
0.02036960795521736,
0.007597729098051786,
0.008025702089071274,
-0.04597106948494911,
-0.040585339069366455,
0.03577664867043495,
-0.037815533578395844,
0.01893661916255951,
0.0035079389344900846,
0.0021098123397678137,
-0.02550528757274151,
0.0018789953319355845,
0.04547096788883209,
-0.031352654099464417,
0.04162401333451271,
-0.04258575290441513,
0.03996982425451279,
-0.015705179423093796,
-0.0008307010866701603,
-0.022254614159464836,
0.008487336337566376,
0.037200018763542175,
0.009747212752699852,
0.10586810111999512,
-0.09232683479785919,
0.00654943473637104,
-0.004582680761814117,
-0.031025663018226624,
0.005227045156061649,
-0.014964641071856022,
0.06778328120708466,
-0.004820710979402065,
-0.02510135807096958,
-0.01857115887105465,
0.004782241303473711,
-0.0001940005604410544,
0.0292560663074255,
0.03762318566441536,
0.03400705009698868,
-0.003863781923428178,
0.050895169377326965,
-0.009545248001813889,
0.0731305480003357,
0.04143166542053223,
0.016676533967256546,
-0.0025486054364591837,
-0.0371423177421093,
0.025524523109197617,
-0.00789586827158928,
-0.015128136612474918,
0.09863583743572235,
0.039854418486356735,
-0.02914065681397915,
-0.006275339517742395,
0.0018922192975878716,
0.03723848983645439,
0.020292669534683228,
-0.013579738326370716,
0.004789454396814108,
0.047509849071502686,
0.0512029230594635,
0.10002073645591736,
0.014483772218227386,
0.0297177005559206,
0.021177466958761215,
-0.038180992007255554,
-0.06820645183324814,
-0.042662691324949265,
-0.01734975166618824,
-0.03419939801096916,
-0.029910046607255936,
-0.014608798548579216,
0.006025287788361311,
0.006809104233980179,
0.017936410382390022,
0.05270323529839516,
0.01286805234849453,
-0.01967715658247471,
0.10579116642475128,
0.05208772420883179,
-0.01158894132822752,
0.040239110589027405,
0.0014329893747344613,
-0.02850591018795967,
-0.05343415588140488,
-0.03981594741344452,
-0.025082122534513474,
0.005279941018670797,
-0.05389579012989998,
-0.03423786908388138,
0.016580360010266304,
0.04212411865592003,
-0.017167020589113235,
-0.023024003952741623,
-0.02914065681397915,
0.004072960000485182,
-0.04308585450053215,
-0.07778535783290863,
0.02550528757274151,
0.005784853361546993,
0.03167964518070221,
0.009963604621589184,
0.0036618169397115707,
-0.021408284083008766,
-0.01080993376672268,
0.008448867127299309,
0.056473247706890106,
-0.0317758172750473,
-0.03939278423786163,
-0.0036570082884281874,
-0.020331138744950294,
0.008607554249465466,
-0.0011865440756082535,
-0.02619773894548416,
0.06635991483926773,
-0.04323973506689072,
-0.005972391925752163,
0.048125363886356354,
0.028294328600168228,
-0.020427312701940536,
0.002777018118649721,
-0.015743648633360863,
-0.06778328120708466,
0.021792979910969734,
-0.04027758166193962,
0.0030751568265259266,
-0.0010182400001212955,
0.02075430378317833,
-0.014041372574865818,
-0.013723999261856079,
0.013522034510970116,
0.0005412781029008329,
-0.015984082594513893,
-0.09601990878582001,
0.009247109293937683,
-0.0012478549033403397,
-0.009434648789465427,
-0.01685926504433155,
-0.02258160524070263,
0.023004770278930664,
-0.007583302911370993,
0.01146391499787569,
0.010819550603628159,
0.010656055063009262,
0.006414791569113731,
-0.007982424460351467,
0.022119970992207527,
-0.006568669807165861,
0.026409322395920753,
0.008107449859380722,
-0.031218010932207108,
0.024370437487959862,
0.0017936411313712597,
-0.06936053186655045,
0.03664221242070198,
-0.026620903983712196,
-0.01164664514362812,
0.012377566657960415,
0.019350165501236916,
-0.07651586085557938,
-0.048740874975919724,
-0.024582019075751305,
-0.000311362644424662,
-0.06343623250722885,
0.047394443303346634,
0.041816361248493195,
0.0026351616252213717,
-0.056627124547958374,
0.011819758452475071,
-0.004996228031814098,
-0.012656469829380512,
0.005390540696680546,
0.07182258367538452,
-0.009112466126680374,
-0.04735597223043442,
0.029217597097158432,
-0.024081915616989136,
-0.00813630223274231,
-0.012598766013979912,
0.04547096788883209,
-0.021331345662474632,
0.028352031484246254,
-0.015753265470266342,
-0.011983253993093967,
-0.011002280749380589,
0.011723584495484829,
0.05666559562087059,
0.05751192569732666,
0.02219690941274166,
0.002162707969546318,
-0.04031605273485184,
0.021677572280168533,
-0.0036594124976545572,
-0.018128758296370506,
-0.027351824566721916,
-0.05705029144883156,
0.05543456971645355,
-0.05112598463892937,
-0.0108580207452178,
0.030390916392207146,
0.01893661916255951,
-0.010665672831237316,
-0.03092948906123638,
0.03641139715909958,
-0.04985649138689041,
0.0438937172293663,
0.03225668892264366,
-0.007261120714247227,
0.058819886296987534,
-0.032833728939294815,
0.02256236970424652,
0.06055101752281189,
0.025755340233445168,
0.05420354753732681,
0.0036353690084069967,
-0.019696392118930817,
-0.06105111911892891,
-0.028448205441236496,
-0.017561333253979683,
0.06485959887504578,
-0.00254620099440217,
-0.01509928423911333,
0.0518953762948513,
-0.010050160810351372,
-0.014926171861588955,
-0.06324388086795807,
-0.043970655649900436,
-0.007164947222918272,
0.0033468478359282017,
-0.08601783215999603,
-0.003519960679113865,
-0.048740874975919724,
-0.00307996547780931,
0.0059050703421235085,
-0.03479567542672157,
0.047625258564949036,
0.004371098708361387,
-0.01857115887105465,
0.008722962811589241,
0.052857112139463425,
0.008448867127299309,
-0.035872820764780045,
0.027717284858226776,
0.014204868115484715,
-0.00579447066411376,
-0.004789454396814108,
-0.017167020589113235,
0.010992663912475109,
-0.036699917167425156,
0.025389879941940308,
0.018003731966018677,
0.07409228384494781,
-0.008107449859380722,
-0.0019775733817368746,
0.02304323948919773,
-0.002695270348340273
] |
21,471 | tfields.triangles_3d | edges |
Retrieve two of the three edge vectors
Returns:
two np.ndarrays: vectors ab and ac, where a, b, c are corners (see
self.corners)
| def edges(self):
"""
Retrieve two of the three edge vectors
Returns:
two np.ndarrays: vectors ab and ac, where a, b, c are corners (see
self.corners)
"""
a, b, c = self.corners()
ab = b - a
ac = c - a
return ab, ac
| (self) | [
-0.027544962242245674,
-0.030301237478852272,
0.023152705281972885,
0.018315888941287994,
-0.056405823677778244,
-0.017097793519496918,
0.0017182260053232312,
0.010624993592500687,
0.016893295571208,
0.0021261100191622972,
0.017969131469726562,
0.018831579014658928,
-0.021125510334968567,
0.01818251982331276,
-0.050004154443740845,
0.013078967109322548,
-0.012678862549364567,
-0.04338909685611725,
-0.02146337553858757,
0.027989523485302925,
-0.06273636221885681,
-0.05217360705137253,
0.010411604307591915,
0.019507311284542084,
0.006370550487190485,
0.041610851883888245,
-0.01502614188939333,
-0.042606670409440994,
0.06711083650588989,
0.0028940881602466106,
-0.10897064208984375,
-0.023721743375062943,
-0.014163694344460964,
-0.022245801985263824,
0.022939316928386688,
0.008322170935571194,
0.086564801633358,
0.012376561760902405,
-0.012207628227770329,
0.06085142865777016,
-0.014030326157808304,
-0.06839117407798767,
0.056121304631233215,
0.006859567016363144,
0.0002206131030106917,
-0.05377402529120445,
0.029838893562555313,
-0.07938070595264435,
-0.05537444353103638,
-0.0216412004083395,
0.061704982072114944,
-0.05910874903202057,
0.07810036838054657,
-0.009566939435899258,
0.01569298282265663,
0.0279361754655838,
-0.0020171927753835917,
0.0646924301981926,
-0.06732422858476639,
0.04922172799706459,
-0.01279444806277752,
-0.009380224160850048,
0.05455645173788071,
0.003258627839386463,
0.006450571585446596,
0.021214421838521957,
-0.0328974686563015,
0.029287640005350113,
0.0072863451205194,
0.09005015343427658,
-0.009149053134024143,
0.03830332309007645,
0.012661079876124859,
-0.04897277429699898,
0.017826871946454048,
0.0012614401057362556,
0.056868165731430054,
0.06750205159187317,
-0.006801774259656668,
-0.027011489495635033,
-0.0033164205960929394,
0.01624423637986183,
0.01900940202176571,
0.030016718432307243,
0.1119580939412117,
0.0001483720407122746,
-0.033484287559986115,
0.014590471982955933,
-0.057579461485147476,
-0.0003206391993444413,
0.010856164619326591,
0.00817991141229868,
-0.06504807621240616,
0.0505731925368309,
-0.03195500001311302,
0.0072241066955029964,
-0.012189846485853195,
-0.040970686823129654,
0.02108994498848915,
-0.029821110889315605,
-0.015417355112731457,
0.051355618983507156,
-0.03481797128915787,
0.02583784982562065,
0.007775361184030771,
-0.038943491876125336,
-0.019614005461335182,
-0.07354807108640671,
0.012296540662646294,
-0.03919244557619095,
0.009006793610751629,
0.07276564836502075,
0.03432006388902664,
0.05928657576441765,
-0.06398113071918488,
-0.03453345224261284,
-0.027456050738692284,
-0.010802817530930042,
-0.016777709126472473,
0.029838893562555313,
0.004801252391189337,
-0.006068249698728323,
0.014901665039360523,
0.04249997437000275,
-0.0006551708793267608,
-0.02446860447525978,
-0.004956848453730345,
0.019951870664954185,
-0.044242650270462036,
-0.06415895372629166,
0.040970686823129654,
-0.05750833451747894,
-0.006046021357178688,
0.011354072950780392,
-0.04210875928401947,
-0.007259671110659838,
0.0947447121143341,
-0.01606641337275505,
0.0434957891702652,
-0.016733253374695778,
-0.01420815009623766,
0.08165685087442398,
0.02886086143553257,
0.032844122499227524,
-0.10007943958044052,
0.052778210490942,
0.041326336562633514,
-0.024770906195044518,
0.04075729846954346,
0.004530070349574089,
0.010118194855749607,
-0.005516994744539261,
-0.017097793519496918,
-0.02373952604830265,
-0.0037743179127573967,
-0.07824262976646423,
-0.004205541219562292,
-0.04399369657039642,
0.009851458482444286,
0.016004174947738647,
-0.060495778918266296,
-0.019791828468441963,
-0.04840373620390892,
-0.010660558007657528,
0.06750205159187317,
0.021498940885066986,
0.06696857511997223,
-0.032541822642087936,
-0.007553081028163433,
-0.005241367034614086,
-0.041148509830236435,
0.021338898688554764,
-0.1399831771850586,
-0.007890947163105011,
-0.030443497002124786,
-0.028647473081946373,
-0.008344398811459541,
0.03138596564531326,
0.031563788652420044,
0.00036203887430019677,
0.031652700155973434,
-0.021143293008208275,
0.022797057405114174,
-0.04079286381602287,
0.057863980531692505,
-0.007802035193890333,
0.0582907609641552,
-0.0092201828956604,
0.029109815135598183,
-0.02155228890478611,
-0.007664221338927746,
-0.026780318468809128,
0.006512810010462999,
0.04317570477724075,
0.009967043995857239,
-0.01606641337275505,
-0.011069553904235363,
0.027100402861833572,
-0.018244758248329163,
-0.03396441414952278,
-0.02229915000498295,
-0.03480018675327301,
-0.01798691414296627,
0.016688797622919083,
0.05423636734485626,
0.029554374516010284,
0.007677558343857527,
-0.0808032974600792,
0.022050196304917336,
0.042962316423654556,
0.006610613316297531,
0.0025651135947555304,
0.014697167091071606,
-0.044171519577503204,
0.015470702201128006,
0.03485353663563728,
-0.02073429711163044,
0.039868175983428955,
-0.05050206184387207,
0.042251020669937134,
0.029981153085827827,
-0.027438268065452576,
0.00281851296313107,
-0.018600407987833023,
-0.033466506749391556,
-0.023063793778419495,
0.010118194855749607,
0.04449160397052765,
-0.025606678798794746,
-0.037200815975666046,
0.029020903632044792,
0.004912392236292362,
-0.013852502219378948,
-0.02832738868892193,
-0.0026940361130982637,
0.06881795078516006,
-0.02758052758872509,
-0.035493701696395874,
0.022761492058634758,
-0.007344137877225876,
-0.02128555253148079,
0.005974891595542431,
0.023579483851790428,
0.04264223203063011,
0.018973838537931442,
0.016395388171076775,
0.009638069197535515,
0.023348312824964523,
0.0005543112638406456,
0.031563788652420044,
-0.061598289757966995,
-0.04054391011595726,
0.0016393164405599236,
0.026922577992081642,
0.029020903632044792,
-0.06046021357178688,
0.03784098103642464,
0.011398528702557087,
0.06255853921175003,
0.02694036066532135,
0.05114222690463066,
0.02841630019247532,
0.035475920885801315,
0.03485353663563728,
0.028078434988856316,
0.029625505208969116,
0.008722275495529175,
0.015150618739426136,
-0.08450204133987427,
0.004056613426655531,
0.09403341263532639,
-0.02521546557545662,
-0.026104586198925972,
0.02402404323220253,
-0.013363485224545002,
-0.01306118443608284,
-0.03199056535959244,
0.024788688868284225,
-0.040223825722932816,
0.01754235289990902,
-0.007730905432254076,
-0.0023428332060575485,
-0.08556898683309555,
0.04317570477724075,
-0.03480018675327301,
-0.04335353150963783,
0.014430430717766285,
-0.06657736748456955,
0.04573637247085571,
-0.033751025795936584,
0.028149563819169998,
0.012723318301141262,
0.013399050571024418,
-0.04072173312306404,
0.07511292397975922,
0.0016815497074276209,
0.011229596100747585,
0.0028029533568769693,
0.0476924404501915,
0.054307498037815094,
0.0291453804820776,
-0.018493711948394775,
0.0010680563282221556,
-0.00047401251504197717,
0.0013970310101285577,
0.02950102835893631,
0.04847486689686775,
0.019329486414790154,
0.04851043224334717,
-0.050110846757888794,
-0.06750205159187317,
-0.0443849116563797,
-0.06017569452524185,
-0.013105640187859535,
-0.0443849116563797,
-0.0007563083781860769,
-0.019133878871798515,
-0.002257255371659994,
-0.011665265075862408,
0.019862959161400795,
0.022957099601626396,
0.033662114292383194,
-0.004712340421974659,
0.04875938594341278,
0.036382824182510376,
0.03060353733599186,
-0.0410773828625679,
-0.009975935332477093,
0.0737614631652832,
0.03951252996921539,
-0.0009763657581061125,
0.008357735350728035,
-0.01268775388598442,
0.05537444353103638,
-0.020752079784870148,
0.012963381595909595,
0.05089327320456505,
0.04612758755683899,
0.03417780250310898,
-0.02630019374191761,
0.035938262939453125,
0.024877600371837616,
-0.030923621729016304,
0.017382312566041946,
0.0443849116563797,
0.03862340748310089,
-0.00853555928915739,
-0.028238477185368538,
0.0003139707841910422,
0.009638069197535515,
-0.02711818367242813,
-0.01393252331763506,
0.0185470599681139,
0.02238806150853634,
-0.010393822565674782,
0.076393261551857,
-0.03204391524195671,
-0.03515583649277687,
0.04783469811081886,
0.05327611789107323,
0.021410029381513596,
0.013505744747817516,
-0.006108259782195091,
-0.0076864492148160934,
-0.02630019374191761,
-0.03423115238547325,
-0.02896755561232567,
0.029821110889315605,
-0.018422583118081093,
-0.03583156690001488,
-0.0030141195748001337,
-0.019667351618409157,
0.010527189821004868,
0.01538178976625204,
0.023152705281972885,
-0.008917881175875664,
-0.04648323729634285,
0.031723830848932266,
0.047728005796670914,
0.030532408505678177,
-0.01183419767767191,
-0.014643820002675056,
0.0005273597780615091,
-0.013078967109322548,
0.023046011105179787,
0.02311713993549347,
0.014617145992815495,
0.02165898308157921,
0.03624056279659271,
0.08734722435474396,
-0.03615165129303932,
0.00877117644995451,
0.016226453706622124,
-0.04833260551095009,
0.011380746029317379,
-0.03287968784570694,
0.04299788177013397,
0.005734829232096672,
-0.00005306939783622511,
-0.02558889612555504,
-0.02647801674902439,
0.08172798156738281,
-0.012145389802753925,
0.004501174204051495,
-0.03396441414952278,
-0.0003700965316966176,
0.005196911282837391,
0.051746830344200134,
0.061064817011356354,
-0.058041807264089584,
-0.08350622653961182,
0.018333671614527702,
0.025891197845339775,
-0.044811688363552094,
-0.018138064071536064,
-0.014972793869674206,
-0.00402104901149869,
0.03636503964662552,
0.03855227679014206,
0.026887012645602226,
0.018582625314593315,
-0.00903791282325983,
0.0013970310101285577,
0.0014348187251016498,
-0.020716514438390732,
-0.03138596564531326,
-0.04054391011595726,
0.0018371458863839507,
0.04851043224334717,
0.002960772253572941,
-0.010998424142599106,
-0.037663158029317856,
0.005912653170526028,
-0.06732422858476639,
-0.014679384417831898,
0.001638205023482442,
-0.02092990279197693,
0.007135194260627031,
0.05235143378376961,
0.01626201905310154,
-0.00991369690746069,
0.03762759268283844,
-0.034284498542547226,
-0.050928838551044464,
-0.02301044575870037,
-0.07112966477870941,
-0.014510451816022396,
-0.04545185714960098,
0.03481797128915787,
-0.0642656534910202,
0.02528659626841545,
0.018422583118081093,
0.007908729836344719,
-0.0549832321703434,
0.016093086451292038,
0.006770655047148466,
-0.04047277942299843,
-0.006926251109689474,
-0.036667343229055405,
0.004352246411144733,
0.02100103348493576,
-0.017835762351751328,
-0.08884095400571823,
0.00377876334823668,
-0.012714427895843983,
-0.041788678616285324,
0.05164013430476189,
-0.022939316928386688,
-0.04346022382378578,
-0.0001964401308214292,
0.038481149822473526,
-0.06070916727185249,
-0.01662655919790268,
-0.03862340748310089,
0.0737614631652832,
0.01521285716444254,
-0.0306924507021904,
-0.033199772238731384,
-0.016599886119365692,
-0.06202506646513939,
-0.06462129950523376,
-0.013710242696106434,
-0.053489506244659424,
-0.022779274731874466,
0.013239008374512196,
0.025428855791687965,
-0.06266523152589798,
0.039868175983428955,
-0.0249487292021513,
-0.061882808804512024,
0.022708145901560783,
-0.008188802748918533,
-0.05665477737784386,
-0.02857634238898754,
0.026744753122329712,
0.04093512147665024,
0.017497897148132324,
-0.02210354246199131,
-0.016110869124531746,
0.033288683742284775,
0.0055258856154978275,
-0.056299127638339996,
0.0014448212459683418,
-0.03663177788257599,
-0.01835145242512226,
-0.03369767963886261,
0.004681221209466457,
-0.019578440114855766,
0.04420708492398262,
0.02603345736861229,
0.038943491876125336,
-0.07141418009996414,
0.06038908660411835,
-0.00023339421022683382,
0.010722796432673931,
0.022992663085460663,
-0.06693301349878311,
0.019400615245103836,
0.021143293008208275,
0.060317955911159515,
-0.01018043328076601,
0.0014025880955159664,
-0.018049152567982674,
0.023579483851790428,
-0.010918403044342995,
0.04751461744308472,
-0.05245812609791756,
-0.042251020669937134,
0.030194543302059174,
-0.013310138136148453,
-0.04346022382378578,
-0.00666396040469408,
-0.0072196610271930695,
0.03784098103642464,
-0.05708155408501625,
0.05153344199061394,
-0.002217245055362582,
0.004123297519981861,
-0.03003450110554695,
-0.019791828468441963,
0.03695186227560043,
-0.008455539122223854,
-0.021605635061860085,
0.026069022715091705,
-0.02238806150853634,
-0.024184085428714752,
-0.002485092729330063,
-0.03351985290646553,
0.026051240041851997,
0.004587863106280565,
0.0028073990251868963,
0.01717781461775303,
0.008433311246335506,
0.0008063214481808245,
0.003672068938612938,
0.012723318301141262,
-0.017320072278380394,
-0.02656693011522293,
-0.02411295659840107,
0.03744976967573166,
-0.03097696788609028,
-0.028807513415813446,
-0.02667362429201603,
0.010073739103972912,
-0.03912131488323212,
0.057579461485147476,
0.05441419407725334,
0.007566418033093214,
0.000532916805241257,
-0.0015970832901075482,
-0.051746830344200134,
0.013372376561164856,
-0.015737438574433327,
0.004212209954857826,
-0.0060104564763605595,
-0.0024139629676938057,
-0.0169999897480011,
-0.047976959496736526,
0.008459984324872494,
-0.022245801985263824,
-0.01004706509411335,
-0.03334202989935875,
-0.006290529854595661,
-0.00614382466301322,
0.008802295662462711,
0.059322141110897064,
-0.007886501960456371,
0.03440897539258003,
-0.0015459588030353189,
0.0058637517504394054,
0.005254704039543867,
-0.033822156488895416,
0.003080803668126464,
-0.0042522200383245945,
-0.02512655407190323,
-0.005014641210436821,
0.011558569967746735,
0.03826775774359703,
-0.04264223203063011,
-0.06775100529193878,
0.00003551273402990773,
0.020876556634902954,
0.05434306338429451,
-0.0006657292251475155,
-0.05249369144439697,
-0.003280855715274811,
0.01438597496598959,
-0.05910874903202057,
-0.026157934218645096,
0.0020916566718369722,
-0.004481168929487467,
-0.03499579429626465,
0.014057000167667866,
-0.037236377596855164,
-0.007397484965622425,
0.019044967368245125,
-0.047265660017728806,
0.10050621628761292,
-0.033395376056432724,
0.0863514095544815,
-0.02000521868467331,
-0.025517767295241356,
-0.03216839209198952,
-0.01402143482118845,
0.009771437384188175,
0.0280428696423769,
0.03106588125228882,
-0.026104586198925972,
0.015604070387780666,
0.08592463284730911,
0.04235771670937538,
-0.02254810370504856,
0.03231064975261688,
-0.0202008243650198,
-0.022085759788751602,
-0.017693504691123962,
0.026335757225751877,
-0.00384544744156301,
0.007330800872296095,
0.05153344199061394,
-0.020414212718605995,
0.10121750831604004,
-0.0412907712161541,
0.009024576283991337,
0.006695079617202282,
0.016128651797771454,
-0.028007306158542633,
-0.03435562923550606,
0.030443497002124786,
-0.017880219966173172,
0.017142249271273613,
0.05067988485097885,
-0.009424680843949318,
0.005788176320493221,
-0.07653551548719406,
-0.015950826928019524,
0.005814849864691496,
0.04146859422326088,
0.03897905722260475,
-0.024148520082235336,
0.0034520116169005632,
0.061882808804512024,
0.025695590302348137,
-0.059784483164548874,
0.011985348537564278,
0.044171519577503204,
0.04530959576368332,
0.03252403810620308,
-0.027882827445864677,
0.0035920480731874704,
0.023988479748368263,
0.0005879311356693506,
0.00563702592626214,
0.01338126789778471,
-0.03993930667638779,
-0.005348061677068472,
0.04029495641589165,
-0.03734307363629341,
0.04193093627691269,
0.02347278967499733,
0.008980120532214642,
0.07080958038568497,
-0.02811400033533573,
-0.03583156690001488,
0.0379832424223423,
-0.05313386023044586,
-0.023579483851790428,
0.05811293423175812,
0.009718090295791626,
-0.025446636602282524,
-0.030354583635926247,
-0.0390857495367527,
0.020680949091911316,
0.018209194764494896,
0.03490688279271126,
0.048439301550388336,
-0.005970446392893791,
-0.03741420432925224,
-0.0007990972953848541,
0.006254964973777533,
0.0072107696905732155,
-0.02384622022509575,
-0.07938070595264435,
0.044242650270462036,
-0.02108994498848915,
-0.020058564841747284,
0.015950826928019524,
-0.04975520074367523,
0.013585765846073627,
-0.009620287455618382,
-0.034106675535440445,
-0.033288683742284775,
0.018600407987833023,
-0.03737863898277283,
0.025339942425489426,
0.03490688279271126,
-0.01653764769434929,
0.014332626946270466,
-0.006272747181355953,
0.05907318741083145,
-0.043246835470199585,
0.018956055864691734,
0.018049152567982674,
0.012838904745876789,
-0.047158967703580856,
0.01420815009623766,
0.0019505087984725833,
-0.006992935203015804,
-0.02848743088543415,
-0.01132739894092083,
-0.0633765310049057,
0.013808046467602253,
0.0629497542977333,
0.07788698375225067,
-0.07731794565916061,
0.004083287436515093,
0.0003042460302822292,
-0.05964222177863121,
-0.03033680096268654,
0.010482734069228172,
0.024824252352118492,
-0.03983261063694954,
0.014812752604484558,
-0.01260773278772831,
-0.0216412004083395,
0.016137542203068733,
-0.014412648044526577,
0.025073206052184105,
-0.016484299674630165,
-0.06238071620464325,
0.015283986926078796,
0.05704599246382713,
0.05398741364479065,
-0.05661921203136444,
-0.010971751064062119,
-0.01708890125155449,
0.028878644108772278,
-0.03826775774359703,
-0.036845166236162186,
-0.05206691473722458,
-0.07201878726482391,
0.035938262939453125,
-0.03744976967573166,
0.05626356601715088,
-0.025322159752249718,
0.04385143890976906,
0.06202506646513939,
0.05882423371076584
] |
21,474 | tfields.triangles_3d | evalf |
Triangle3D implementation
Examples:
>>> from sympy.abc import x
>>> import numpy as np
>>> import tfields
>>> t = tfields.Triangles3D([[1., 2., 3.], [-4., 5., 6.], [1, 2, -6],
... [5, -5, -5], [1,0,-1], [0,1,-1],
... [-5, -5, -5], [1,0,-1], [0,1,-1]])
>>> mask = t.evalf(x >= 0)
>>> assert np.array_equal(t[mask],
... tfields.Triangles3D([[ 5., -5., -5.],
... [ 1., 0., -1.],
... [ 0., 1., -1.]]))
Returns:
np.array: mask which is True, where expression evaluates True
| def evalf(self, expression=None, coord_sys=None):
"""
Triangle3D implementation
Examples:
>>> from sympy.abc import x
>>> import numpy as np
>>> import tfields
>>> t = tfields.Triangles3D([[1., 2., 3.], [-4., 5., 6.], [1, 2, -6],
... [5, -5, -5], [1,0,-1], [0,1,-1],
... [-5, -5, -5], [1,0,-1], [0,1,-1]])
>>> mask = t.evalf(x >= 0)
>>> assert np.array_equal(t[mask],
... tfields.Triangles3D([[ 5., -5., -5.],
... [ 1., 0., -1.],
... [ 0., 1., -1.]]))
Returns:
np.array: mask which is True, where expression evaluates True
"""
mask = super(Triangles3D, self).evalf(expression, coord_sys=coord_sys)
mask = self._to_triangles_mask(mask)
mask = np.array([mask] * 3).T.reshape((len(self)))
return mask
| (self, expression=None, coord_sys=None) | [
0.016118496656417847,
-0.012447948567569256,
0.0398409441113472,
0.0003027498896699399,
0.02583465538918972,
0.0327063724398613,
-0.05020484700798988,
-0.008678829297423363,
-0.04874038323760033,
0.016362573951482773,
0.09312492609024048,
0.04870283231139183,
-0.029871320351958275,
-0.02521507441997528,
-0.029439492151141167,
-0.04269477352499962,
-0.04720081761479378,
0.0020523625425994396,
-0.036705490201711655,
-0.03075375407934189,
-0.050279948860406876,
-0.031917817890644073,
0.04442209005355835,
0.045060448348522186,
0.044572290033102036,
-0.01617482304573059,
-0.03450879082083702,
0.024163665249943733,
0.01617482304573059,
-0.01916007697582245,
-0.05636310949921608,
0.044872693717479706,
-0.06282177567481995,
0.0071017141453921795,
-0.044384539127349854,
-0.03790710121393204,
-0.006453969981521368,
0.01589319482445717,
0.07630235701799393,
0.026998717337846756,
0.009218616411089897,
-0.0025534252636134624,
0.019845372065901756,
0.01916007697582245,
-0.04333312809467316,
-0.023337556049227715,
0.07938148826360703,
-0.024576717987656593,
-0.08463853597640991,
-0.009486163035035133,
0.033945538103580475,
-0.009622283279895782,
0.053659480065107346,
-0.06154505908489227,
-0.0012145198415964842,
-0.037625472992658615,
0.009603507816791534,
0.006984369363635778,
-0.027543198317289352,
-0.035466328263282776,
-0.004428597167134285,
0.04614940658211708,
-0.023544082418084145,
0.0016674712533131242,
-0.0008918213425204158,
-0.016296861693263054,
-0.008336182683706284,
0.02204206772148609,
0.046111855655908585,
0.027749724686145782,
-0.04810202494263649,
0.048665281385183334,
0.05726431682705879,
-0.10063499957323074,
0.0316925123333931,
-0.01665358990430832,
0.061319757252931595,
0.036592837423086166,
-0.02714891918003559,
-0.022229820489883423,
-0.03411451354622841,
0.014982598833739758,
0.026379136368632317,
0.06867963075637817,
-0.0064211138524115086,
0.02408856339752674,
-0.01474790833890438,
-0.002395009621977806,
0.040291547775268555,
-0.02031475119292736,
-0.0038301378954201937,
-0.01393118780106306,
-0.06916778534650803,
-0.018296418711543083,
0.0012391622876748443,
0.0028467876836657524,
0.0142879169434309,
-0.05084320530295372,
0.004269008059054613,
-0.004609308205544949,
0.08110880106687546,
0.04329558089375496,
-0.0275619737803936,
-0.01138715073466301,
0.038151178508996964,
0.004322986584156752,
-0.04066705331206322,
-0.06188301369547844,
0.008082717657089233,
0.009781871922314167,
0.0005711763515137136,
0.087867870926857,
0.030059073120355606,
0.031298235058784485,
-0.023619184270501137,
-0.016137272119522095,
-0.04483514279127121,
-0.008134349249303341,
-0.008908825926482677,
-0.013856086879968643,
0.05748961865901947,
0.03755037114024162,
0.011358987540006638,
0.07885578274726868,
-0.008782093413174152,
0.0695057362318039,
-0.01584625616669655,
0.0023410310968756676,
0.03214311972260475,
-0.03197414055466652,
0.04036664962768555,
0.044572290033102036,
0.015517691150307655,
-0.01628747396171093,
-0.004909710958600044,
0.051406458020210266,
0.02624770998954773,
-0.013123854994773865,
-0.038451582193374634,
0.006881105713546276,
0.013180180452764034,
0.04258212074637413,
0.0029195414390414953,
0.04892813414335251,
-0.05677616223692894,
0.04678776487708092,
-0.015254838392138481,
0.011124297976493835,
-0.00793720968067646,
0.038827084004879,
0.027036268264055252,
0.03428348898887634,
0.044046588242053986,
-0.007561706006526947,
-0.021685339510440826,
0.03248107060790062,
0.011152460239827633,
-0.08997069299221039,
0.07085755467414856,
0.009439224377274513,
-0.008171900175511837,
0.04738856852054596,
-0.059592440724372864,
0.03807607665657997,
-0.014250366017222404,
-0.0025205686688423157,
-0.0009323053527623415,
-0.04532329738140106,
-0.031016606837511063,
0.02827543020248413,
0.03749404475092888,
0.011124297976493835,
-0.0034945316147059202,
0.05242031812667847,
0.001737878192216158,
-0.03634876012802124,
-0.045060448348522186,
0.032105568796396255,
-0.0008448833832517266,
0.010532879270613194,
0.01240101084113121,
0.019432317465543747,
-0.009528406895697117,
0.017263783141970634,
0.07810477167367935,
0.011405925266444683,
0.00083901610923931,
0.009270248003304005,
0.0398409441113472,
0.004149316344410181,
-0.10529123991727829,
-0.023769386112689972,
0.02898888662457466,
-0.0009223310044035316,
0.015855643898248672,
-0.021591464057564735,
-0.0035766728688031435,
-0.022924501448869705,
-0.03336350619792938,
-0.009580038487911224,
-0.05388478562235832,
-0.021253511309623718,
-0.002330469898879528,
0.030171724036335945,
-0.06976859271526337,
-0.024633044376969337,
0.014832396991550922,
-0.01603400893509388,
-0.015029536560177803,
0.032950449734926224,
0.032743923366069794,
-0.023957137018442154,
-0.054560691118240356,
0.058465927839279175,
-0.005416641011834145,
0.005238276906311512,
-0.0026778108440339565,
0.043858833611011505,
-0.026304036378860474,
0.010392065159976482,
0.011396537534892559,
-0.0029993359930813313,
0.006881105713546276,
-0.013959350995719433,
-0.010992871597409248,
-0.007594562601298094,
0.041418060660362244,
0.01596829667687416,
-0.07070735096931458,
-0.004829916637390852,
0.024670595303177834,
0.04156826063990593,
0.011452863924205303,
-0.059667542576789856,
0.05756472051143646,
0.016325024887919426,
0.027392996475100517,
-0.003266882384195924,
0.09312492609024048,
0.01720745861530304,
-0.00468675559386611,
-0.006594784092158079,
0.07434973865747452,
-0.01990169659256935,
0.030791305005550385,
0.05238277092576027,
0.013574459590017796,
0.0765652060508728,
-0.027524422854185104,
0.011265112087130547,
-0.05869123339653015,
0.003686977084726095,
-0.025571802631020546,
0.008401895873248577,
0.03402063623070717,
0.03694956749677658,
0.08343692868947983,
-0.016409512609243393,
0.06623885780572891,
0.015048312023282051,
-0.023131029680371284,
-0.028763584792613983,
0.05869123339653015,
-0.01485117245465517,
0.02033352665603161,
-0.044985346496105194,
-0.0004315359110478312,
0.011556127108633518,
-0.015855643898248672,
0.024576717987656593,
-0.11422823369503021,
0.054485589265823364,
0.043445780873298645,
-0.038751985877752304,
0.014165878295898438,
-0.02033352665603161,
0.02776850014925003,
0.017676837742328644,
0.05857858061790466,
-0.002907807007431984,
-0.012954878620803356,
-0.016569102182984352,
-0.045398399233818054,
0.033945538103580475,
-0.03032192587852478,
-0.015545854344964027,
-0.014841784723103046,
0.020239651203155518,
0.033119428902864456,
-0.03501572087407112,
-0.02622893452644348,
0.027186470106244087,
-0.014635257422924042,
-0.07566399872303009,
0.03950299322605133,
-0.01960129477083683,
-0.04329558089375496,
0.00737395416945219,
0.01764867454767227,
0.014700970612466335,
0.014794846996665001,
0.029364390298724174,
0.04014134779572487,
-0.007331710308790207,
-0.03584183007478714,
-0.013809149153530598,
-0.019357217475771904,
0.045173097401857376,
0.030566003173589706,
-0.01173449121415615,
0.036085907369852066,
-0.027130143716931343,
-0.0684167817234993,
-0.05073055252432823,
0.04096745699644089,
0.03950299322605133,
0.02930806577205658,
-0.007486605551093817,
-0.009096577763557434,
0.015151575207710266,
0.04104255512356758,
0.001132965087890625,
-0.008181286975741386,
0.06620130687952042,
-0.014785459265112877,
-0.0362173356115818,
0.03563530370593071,
-0.08952008932828903,
-0.026285260915756226,
0.025290176272392273,
0.029439492151141167,
0.05531169846653938,
-0.01541442796587944,
0.02615383453667164,
0.02636036090552807,
-0.029965197667479515,
0.09860727936029434,
0.031598638743162155,
0.002375060925260186,
-0.012926715426146984,
-0.01654093898832798,
0.01173449121415615,
-0.047426119446754456,
-0.011931630782783031,
-0.04153071343898773,
-0.005369703285396099,
-0.05595005303621292,
0.002168534090742469,
0.048364877700805664,
0.04708816483616829,
0.03124191053211689,
-0.06766577064990997,
0.0022870523389428854,
-0.03533490002155304,
-0.016550326719880104,
-0.026379136368632317,
0.002745870966464281,
-0.03402063623070717,
-0.02592853270471096,
0.048665281385183334,
0.07540114969015121,
-0.054560691118240356,
0.013245893642306328,
0.006777842063456774,
-0.027205243706703186,
-0.050918303430080414,
0.034152064472436905,
-0.0003303259436506778,
-0.009138821624219418,
0.007768233306705952,
0.0034452467225492,
0.0016017580637708306,
-0.011931630782783031,
-0.004724306054413319,
0.013508746400475502,
-0.01527361385524273,
0.025459151715040207,
-0.02367550879716873,
-0.01302059181034565,
-0.023055927827954292,
0.007186202332377434,
-0.017104195430874825,
0.0029148475732654333,
-0.04044175148010254,
-0.026116283610463142,
0.0311292577534914,
-0.04010379686951637,
-0.002079351805150509,
0.03390798717737198,
0.024069787934422493,
0.04945383965969086,
-0.006974981632083654,
0.08103370666503906,
-0.04123030975461006,
-0.04205641523003578,
0.028557058423757553,
-0.032011691480875015,
0.01900048740208149,
0.017798876389861107,
0.02358163334429264,
-0.08050800114870071,
-0.010185538791120052,
0.04299517720937729,
-0.023919587954878807,
0.017695613205432892,
0.020070673897862434,
0.022511448711156845,
0.00885719433426857,
0.01668175309896469,
-0.018277643248438835,
0.03071620501577854,
-0.02010822482407093,
0.0023985300213098526,
0.015386264771223068,
0.002312868135049939,
-0.010279414243996143,
-0.008425365202128887,
0.004794713109731674,
-0.009622283279895782,
0.07630235701799393,
0.0209343321621418,
-0.04329558089375496,
-0.004034318029880524,
0.03433981537818909,
0.018662534654140472,
0.04295762628316879,
-0.006444582715630531,
0.03377655893564224,
0.010476553812623024,
0.059066735208034515,
-0.07742886990308762,
-0.019770270213484764,
0.029326841235160828,
-0.02748687192797661,
-0.0012638047337532043,
-0.036799363791942596,
0.014888722449541092,
0.03775689750909805,
-0.051631759852170944,
0.028744809329509735,
0.0918482095003128,
0.002612097654491663,
0.028613382950425148,
-0.036010805517435074,
-0.034978169947862625,
0.036010805517435074,
-0.004428597167134285,
0.01190346758812666,
-0.019939247518777847,
0.010420228354632854,
0.018230706453323364,
0.07870557904243469,
0.000017702579498291016,
0.01601523347198963,
0.0017636939883232117,
0.05636310949921608,
0.009457999840378761,
-0.05869123339653015,
-0.02215471863746643,
0.0181086678057909,
-0.031016606837511063,
0.03002152219414711,
-0.020671479403972626,
-0.07059469819068909,
-0.04768897220492363,
-0.07630235701799393,
-0.005106850527226925,
-0.02921419031918049,
0.012063057161867619,
-0.06492459028959274,
0.025684455409646034,
-0.005350927822291851,
-0.04637470841407776,
-0.015320551581680775,
0.009659833274781704,
0.06988124549388885,
0.006707435008138418,
0.032537396997213364,
-0.001095414743758738,
-0.058653682470321655,
-0.05148155987262726,
-0.009134127758443356,
-0.030096624046564102,
-0.0362173356115818,
0.023131029680371284,
-0.004745428450405598,
-0.017479699105024338,
0.026191385462880135,
0.028970113024115562,
-0.03912748768925667,
-0.005252358503639698,
-0.009251472540199757,
0.005111544393002987,
0.04126786068081856,
0.024539168924093246,
0.00869760476052761,
0.0082939388230443,
-0.008002922870218754,
-0.03054722771048546,
0.053246427327394485,
0.002195523353293538,
0.05084320530295372,
-0.020746581256389618,
0.03663038834929466,
0.003670548787340522,
0.014719746075570583,
0.06898003071546555,
-0.005167869850993156,
-0.0006541978800669312,
-0.04164336249232292,
-0.04810202494263649,
-0.006937431171536446,
0.036386311054229736,
0.00380432209931314,
-0.011452863924205303,
-0.02643546275794506,
-0.04175601527094841,
0.01449444331228733,
-0.05065545067191124,
0.03811362758278847,
0.0011810765136033297,
0.03604835644364357,
-0.05756472051143646,
0.02022087574005127,
-0.007078245282173157,
-0.022548997774720192,
-0.0013201303081586957,
-0.06729026883840561,
0.03775689750909805,
-0.009589426219463348,
-0.008491077460348606,
-0.03867688402533531,
0.04235681891441345,
0.01679440401494503,
-0.04810202494263649,
0.06195811554789543,
-0.06552539765834808,
-0.0021697073243558407,
-0.048252228647470474,
-0.02900766208767891,
0.043445780873298645,
0.016249923035502434,
0.03450879082083702,
-0.04708816483616829,
0.01006350014358759,
-0.05707656592130661,
0.019432317465543747,
-0.040892355144023895,
0.055086396634578705,
0.025872206315398216,
0.02153513766825199,
-0.042431920766830444,
0.04224416986107826,
-0.058653682470321655,
0.07277262210845947,
0.029139088466763496,
0.03890218585729599,
0.02602240815758705,
-0.07727866619825363,
-0.002673117211088538,
-0.02643546275794506,
-0.045060448348522186,
0.012166320346295834,
0.001978435320779681,
-0.06980614364147186,
-0.049040786921978,
0.01352752186357975,
0.021591464057564735,
0.04690041393041611,
-0.016728689894080162,
0.001937364460900426,
0.029777444899082184,
0.06811637431383133,
0.06815392524003983,
0.03503449633717537,
0.006843555252999067,
-0.0015900235157459974,
-0.08035779744386673,
0.011396537534892559,
-0.021704114973545074,
-0.03939034044742584,
-0.05452314019203186,
-0.08306142687797546,
-0.0008636585553176701,
0.02275552600622177,
0.056738611310720444,
0.03449001535773277,
0.09237391501665115,
0.005125625990331173,
-0.020915556699037552,
0.062220968306064606,
0.019544968381524086,
0.005853164475411177,
0.03991604596376419,
-0.0072237527929246426,
-0.03388921171426773,
0.009293717332184315,
-0.006261524744331837,
0.009490856900811195,
0.0020335873123258352,
-0.05899163335561752,
0.019225791096687317,
-0.012363459914922714,
-0.019939247518777847,
-0.021478813141584396,
-0.03437736630439758,
-0.01635318621993065,
0.0031683125998824835,
-0.06616375595331192,
-0.05902918428182602,
0.0060080597177147865,
-0.042206618934869766,
0.003149537369608879,
-0.009096577763557434,
0.03310065343976021,
0.011452863924205303,
-0.0653752014040947,
0.05489864572882652,
0.004320639651268721,
-0.010335739701986313,
-0.06045610085129738,
0.0191413015127182,
0.0099602360278368,
0.0006137138698250055,
-0.009941460564732552,
-0.007308240979909897,
0.09252411872148514,
-0.025046098977327347,
-0.021197184920310974,
0.0051913391798734665,
0.016972769051790237,
0.02544037625193596,
-0.028819911181926727,
0.0008043993730098009,
-0.05429783836007118,
-0.04179356247186661,
-0.045173097401857376,
0.0336826853454113,
0.02438896708190441,
-0.03073498047888279,
-0.07168366014957428,
-0.0019197628134861588,
-0.012598149478435516,
-0.0633850246667862,
0.0367618128657341,
-0.027806051075458527,
0.006716822739690542,
-0.026285260915756226,
0.027918701991438866,
-0.03494062274694443,
-0.023131029680371284,
-0.005857857875525951,
-0.008866582065820694,
0.019084976986050606,
0.01576176844537258,
0.04307027533650398,
-0.023619184270501137,
-0.030997831374406815,
0.015677280724048615,
-0.0005447737639769912,
-0.008481690660119057,
0.02298082783818245,
-0.07209671288728714,
0.009781871922314167,
0.010110437870025635,
-0.021065758541226387,
0.03236842155456543,
-0.01311446726322174,
0.007082939147949219,
0.012560599483549595,
-0.0015982376644387841,
-0.038751985877752304,
-0.034471239894628525,
-0.0035743259359151125,
0.045060448348522186,
-0.017451535910367966,
0.038751985877752304,
0.04607430845499039,
-0.013396095484495163,
-0.037831999361515045,
-0.011312049813568592,
0.01347119640558958,
-0.0016686447197571397,
0.04134295880794525,
0.05433538928627968,
-0.05553700029850006,
-0.01179081667214632,
0.024126114323735237,
0.0160809475928545,
-0.0047806319780647755,
-0.06668946146965027,
0.06762821972370148,
-0.006331931333988905,
0.012175708077847958,
0.008204756304621696,
-0.010373290628194809,
-0.0019127221312373877,
0.0459241047501564,
0.032837800681591034,
0.0694681853055954,
-0.013386707752943039,
-0.02510242350399494,
-0.03454634174704552,
0.05974264070391655,
0.002544037764891982,
-0.022736750543117523,
-0.027749724686145782,
-0.06098180264234543,
-0.03188026696443558,
-0.05287092551589012,
-0.034865520894527435,
-0.018578046932816505,
0.02799380198121071,
-0.005031750071793795,
-0.05493619292974472,
0.008599035441875458,
0.024126114323735237,
0.007589868735522032,
0.05429783836007118,
-0.024745695292949677,
0.06165771186351776,
0.00745374895632267,
-0.01893477514386177,
0.03229331970214844,
-0.023337556049227715,
0.05628800764679909,
-0.021197184920310974,
-0.03308187797665596,
-0.050918303430080414,
-0.03612345829606056,
0.015461365692317486,
0.03749404475092888,
-0.010767568834125996,
-0.025590578094124794,
0.04682531580328941,
-0.010607980191707611,
-0.01286100223660469,
-0.050505250692367554,
-0.10949688404798508,
0.019638843834400177,
0.03234964609146118,
-0.026979941874742508,
-0.04607430845499039,
-0.0602683462202549,
-0.015142187476158142,
0.02298082783818245,
-0.01778010092675686,
0.036705490201711655,
-0.0074959928169846535,
-0.03142966330051422,
-0.01778010092675686,
0.028425632044672966,
0.03094150684773922,
-0.02132861129939556,
0.019676394760608673,
0.02972112037241459,
-0.0014210469089448452,
-0.011067972518503666,
-0.022999603301286697,
0.03082885593175888,
-0.07119550555944443,
0.032011691480875015,
-0.000911183247808367,
0.06665191054344177,
-0.015658505260944366,
-0.038151178508996964,
0.010129213333129883,
0.024032238870859146
] |
21,475 | tfields.triangles_3d | in_triangles |
Barycentric method to obtain, which tensors are containes in any of the triangles
Args:
tensors (Points3D instance)
optional:
delta:
:obj:`float`: Normal distance to a triangle, that the points
are concidered to be contained in the triangle.
:obj:`None`: Find the minimum distance.
Default is 0.
assign_multiple: If True, one point may belong to multiple
triangles at the same time. In the other case the first
occurence will be True the other False
Returns:
list: [index(or indices if assign_multiple) of triangle for point in tensors]
| def in_triangles(
self,
tensors,
delta: typing.Optional[float] = 0.0,
assign_multiple: bool = False,
) -> typing.Union[typing.List[typing.List[int]], np.array]:
"""
Barycentric method to obtain, which tensors are containes in any of the triangles
Args:
tensors (Points3D instance)
optional:
delta:
:obj:`float`: Normal distance to a triangle, that the points
are concidered to be contained in the triangle.
:obj:`None`: Find the minimum distance.
Default is 0.
assign_multiple: If True, one point may belong to multiple
triangles at the same time. In the other case the first
occurence will be True the other False
Returns:
list: [index(or indices if assign_multiple) of triangle for point in tensors]
"""
indices = np.full(tensors.shape[0], -1, dtype=int)
if self.ntriangles() == 0:
if assign_multiple:
return [[-1] * len(indices)]
else:
return indices
with tensors.tmp_transform(self.coord_sys):
for i, point in enumerate(iter(tensors)):
mask = self._in_triangles(point, delta)
if np.any(mask):
if assign_multiple:
index = np.argwhere(mask == np.amax(mask))
index.flatten().tolist()
indices.append(index)
else:
indices[i] = np.argmax(mask)
else:
if assign_multiple:
indices.append([-1])
else:
indices[i] = -1
return indices
| (self, tensors, delta: Optional[float] = 0.0, assign_multiple: bool = False) -> Union[List[List[int]], <built-in function array>] | [
-0.059666119515895844,
-0.018077712506055832,
-0.07076409459114075,
0.01013125292956829,
-0.013534116558730602,
0.05545121058821678,
0.0072214179672300816,
0.030799781903624535,
-0.05943410471081734,
0.022118613123893738,
0.012113034725189209,
0.022640643641352654,
-0.07814985513687134,
-0.06144488975405693,
-0.012905746698379517,
-0.06910133361816406,
-0.025811493396759033,
0.0330619141459465,
-0.029195023700594902,
-0.016173269599676132,
-0.027396919205784798,
0.01619260385632515,
0.02449675090610981,
0.03857223317027092,
-0.00012861941650044173,
-0.008753673173487186,
-0.010788624174892902,
-0.024960778653621674,
-0.007477599196135998,
0.044159889221191406,
-0.027203574776649475,
0.04767875745892525,
-0.05456182360649109,
0.032849233597517014,
0.00227904855273664,
-0.02372337318956852,
0.05034691467881203,
0.08847445249557495,
0.01552556548267603,
0.006051683332771063,
-0.04760142043232918,
-0.04350251704454422,
0.09172264486551285,
-0.006863730493932962,
0.009865404106676579,
0.015873584896326065,
0.051352303475141525,
-0.0329459048807621,
-0.060864854604005814,
-0.00637070182710886,
0.05208701267838478,
-0.06167690455913544,
0.04686671122908592,
-0.02026250585913658,
0.004048150964081287,
-0.015941256657242775,
0.017932703718543053,
-0.03344860300421715,
-0.07389627397060394,
0.0007981503731571138,
-0.03644544258713722,
-0.022853322327136993,
0.035382047295570374,
-0.0017304334323853254,
-0.031205806881189346,
-0.048529475927352905,
0.0008416528580710292,
-0.014375165104866028,
-0.020591191947460175,
0.051545649766922,
-0.04323183372616768,
-0.013331105001270771,
0.03447332978248596,
-0.07397361099720001,
0.05610857903957367,
-0.004425172694027424,
0.10278195142745972,
0.025598814710974693,
-0.015747912228107452,
0.03286856785416603,
-0.04949619621038437,
-0.06933334469795227,
0.05595390498638153,
0.04570664465427399,
0.060787517577409744,
0.06179291009902954,
-0.015119541436433792,
0.022485967725515366,
-0.03590407967567444,
-0.06372635811567307,
-0.029794391244649887,
-0.013495448045432568,
-0.009802566841244698,
-0.008739172481000423,
-0.009024355560541153,
0.03957762196660042,
-0.007830453105270863,
-0.042613133788108826,
-0.00926120299845934,
-0.02244729921221733,
0.007859454490244389,
0.02132590115070343,
0.020011158660054207,
-0.008468490093946457,
0.03499535843729973,
-0.02153857983648777,
-0.04249712452292442,
-0.027957618236541748,
0.016791971400380135,
-0.021944602951407433,
-0.01242238562554121,
0.04574531316757202,
0.06268229335546494,
0.025772824883461,
-0.037276823073625565,
-0.0009987453231588006,
-0.007840120233595371,
0.006539878435432911,
-0.05340175703167915,
-0.014558842405676842,
-0.0034221981186419725,
0.01164900790899992,
0.021364569664001465,
0.04087303206324577,
0.042187776416540146,
-0.02449675090610981,
0.04589999094605446,
0.06496375799179077,
-0.01140732690691948,
0.01676297001540661,
0.0029823393560945988,
0.0439278744161129,
-0.00487469881772995,
-0.0037194653414189816,
-0.036426108330488205,
0.06991337984800339,
0.01830972544848919,
-0.022408630698919296,
-0.04771742969751358,
0.0004619121609721333,
0.03810820356011391,
0.004113404545933008,
0.0059550111182034016,
0.03246254473924637,
-0.08120469748973846,
0.039461616426706314,
0.005355643108487129,
-0.034395989030599594,
-0.007554937154054642,
0.015196879394352436,
-0.024825436994433403,
-0.003982897382229567,
0.013495448045432568,
0.03331325948238373,
-0.045861322432756424,
-0.024670761078596115,
-0.03547871857881546,
-0.04562930762767792,
0.007666110526770353,
0.02633352391421795,
0.025521477684378624,
-0.00496412068605423,
-0.016356946900486946,
0.09326940029859543,
-0.004229411482810974,
0.02556014619767666,
-0.04133705794811249,
-0.03315858542919159,
-0.04675070568919182,
-0.0019274032674729824,
0.037122149020433426,
0.04872281849384308,
-0.024999447166919708,
0.03482135012745857,
-0.011271985247731209,
-0.055219195783138275,
0.005254137329757214,
-0.017778029665350914,
0.03012307733297348,
0.006220859941095114,
0.033197253942489624,
-0.02273731678724289,
0.024690095335245132,
0.0002676613221410662,
0.047485414892435074,
0.039094261825084686,
0.03489868715405464,
-0.002123164478689432,
0.033757954835891724,
0.01697564870119095,
-0.07300689071416855,
0.017845699563622475,
0.019672805443406105,
0.04211043566465378,
-0.006380369421094656,
0.04756275191903114,
0.00250622839666903,
-0.02871166169643402,
-0.051622986793518066,
-0.03443466126918793,
-0.0439278744161129,
-0.0027116569690406322,
0.01390147116035223,
0.02971705235540867,
0.050926946103572845,
0.025734156370162964,
0.02246663346886635,
0.010981968604028225,
-0.012122701853513718,
0.009686560370028019,
0.0029509207233786583,
-0.0670132115483284,
-0.0156319048255682,
0.04675070568919182,
0.0008875721832737327,
0.03159249573945999,
-0.033738620579242706,
0.04744674637913704,
0.0047369408421218395,
0.0013111175503581762,
0.031998518854379654,
-0.05974345654249191,
0.010914298705756664,
-0.00009191417484544218,
0.01772969216108322,
-0.03004573844373226,
0.03047109767794609,
0.014027144759893417,
-0.0758683905005455,
-0.023955386132001877,
-0.04485592991113663,
-0.019411789253354073,
-0.014848859049379826,
-0.022292623296380043,
0.04249712452292442,
0.01907343789935112,
0.007400261703878641,
-0.021577248349785805,
0.04562930762767792,
0.08530360460281372,
-0.029233692213892937,
-0.010073249228298664,
0.04334784299135208,
0.011358990333974361,
0.0044735088013112545,
0.06627850234508514,
0.03553672507405281,
0.024458082392811775,
-0.02652686834335327,
0.03246254473924637,
-0.04195576161146164,
-0.014732852578163147,
0.001209007459692657,
-0.03636810556054115,
0.007608106825500727,
-0.017255999147892,
0.05742332339286804,
-0.0296397153288126,
0.017768362537026405,
0.0023914300836622715,
-0.015370889566838741,
-0.04307715967297554,
0.05568322166800499,
0.014723185449838638,
-0.010295595973730087,
-0.018706083297729492,
0.039944976568222046,
0.04644135385751724,
-0.02977505698800087,
0.017362337559461594,
-0.027203574776649475,
0.06480908393859863,
0.004031233489513397,
-0.046286679804325104,
-0.008101135492324829,
0.010208590887486935,
0.01957613229751587,
0.07389627397060394,
-0.07165347784757614,
0.017430009320378304,
0.00039816886419430375,
-0.02652686834335327,
-0.010827293619513512,
0.011987360194325447,
-0.04412122070789337,
0.007477599196135998,
-0.009768731892108917,
-0.018387064337730408,
-0.01915077492594719,
-0.049805548042058945,
0.02070719748735428,
0.025096118450164795,
-0.046286679804325104,
-0.10850494354963303,
0.008966351859271526,
0.024245403707027435,
0.0023358436301350594,
-0.008681168779730797,
0.014848859049379826,
0.020185168832540512,
-0.023278679698705673,
-0.012731736525893211,
0.01822272129356861,
-0.05518052726984024,
-0.033738620579242706,
-0.008966351859271526,
0.04327050596475601,
-0.013147427700459957,
0.027532260864973068,
-0.037547506392002106,
0.018290391191840172,
-0.00024666532408446074,
-0.05576055869460106,
-0.03455066680908203,
0.029465705156326294,
0.013437444344162941,
0.02548280730843544,
-0.020243171602487564,
0.008212308399379253,
0.043966542929410934,
-0.01094330009073019,
0.013824133202433586,
-0.04323183372616768,
0.05920209363102913,
-0.0225246362388134,
-0.02556014619767666,
0.01971147395670414,
-0.057191308587789536,
0.0022295040544122458,
0.052899062633514404,
-0.01907343789935112,
-0.01130098756402731,
-0.04450790956616402,
0.008918016217648983,
0.0356333963572979,
-0.07285221666097641,
0.07857521623373032,
0.029755722731351852,
0.05293773114681244,
-0.004483175929635763,
0.010459939017891884,
0.011600671336054802,
0.01150399912148714,
0.03263655677437782,
-0.031360480934381485,
0.009217699989676476,
-0.004048150964081287,
0.050578925758600235,
0.04095036908984184,
0.10355532914400101,
-0.033893294632434845,
0.018686749041080475,
-0.023665370419621468,
0.00015180566697381437,
-0.021499911323189735,
-0.039596959948539734,
-0.031360480934381485,
-0.015158210881054401,
-0.013727460987865925,
0.032423876225948334,
0.02004982717335224,
-0.04555197060108185,
0.07157614082098007,
0.038262881338596344,
-0.005640826653689146,
-0.03559472784399986,
0.018754418939352036,
-0.025734156370162964,
-0.004323666915297508,
-0.013824133202433586,
0.0012881578877568245,
-0.0006628091796301305,
0.008497491478919983,
0.022505301982164383,
0.010063582099974155,
-0.0008899890235625207,
-0.005234803073108196,
0.026565536856651306,
-0.023878049105405807,
0.041143715381622314,
-0.009406210854649544,
-0.022079944610595703,
0.029465705156326294,
-0.010430936701595783,
-0.053943123668432236,
-0.022408630698919296,
-0.01582524925470352,
-0.009802566841244698,
-0.014935864135622978,
0.05657260864973068,
0.07378026843070984,
-0.06438372284173965,
0.021847931668162346,
-0.05328575149178505,
-0.04481726139783859,
-0.023414021357893944,
-0.03582673892378807,
0.039519619196653366,
0.0018609410617500544,
-0.004910951014608145,
-0.026700878515839577,
-0.016211938112974167,
-0.01901543326675892,
0.03097379207611084,
-0.026720212772488594,
0.041646409779787064,
0.02534746751189232,
0.019450459629297256,
0.027087567374110222,
-0.03766351193189621,
-0.07122812420129776,
0.03644544258713722,
0.07405095547437668,
0.021345235407352448,
-0.019324785098433495,
0.013437444344162941,
-0.029195023700594902,
0.020668528974056244,
-0.03141848370432854,
0.06674253195524216,
0.061908915638923645,
-0.04651869088411331,
0.040447674691677094,
-0.00433091726154089,
0.003840305609628558,
-0.019972488284111023,
-0.015941256657242775,
0.016376281157135963,
0.04110504686832428,
-0.004587098956108093,
-0.022137947380542755,
-0.06565979868173599,
0.01365979015827179,
-0.08221009373664856,
-0.012267709709703922,
0.028750330209732056,
-0.006080685183405876,
0.058815404772758484,
0.024090727791190147,
0.013611454516649246,
0.06094219535589218,
0.010150587186217308,
-0.016279608011245728,
-0.023472024127840996,
0.0005999722052365541,
0.03503402695059776,
-0.04675070568919182,
-0.002390221692621708,
-0.02612084522843361,
0.025734156370162964,
0.02844097837805748,
0.02737758494913578,
0.010073249228298664,
-0.0418010875582695,
0.05146831274032593,
0.0214612428098917,
-0.07188549637794495,
-0.033197253942489624,
-0.02076520211994648,
0.006245028227567673,
0.07107345014810562,
0.02956237830221653,
-0.00897601991891861,
-0.01985648274421692,
-0.029465705156326294,
-0.13418109714984894,
0.017855366691946983,
-0.03702547773718834,
-0.015854250639677048,
-0.01139765977859497,
0.07366426289081573,
-0.04651869088411331,
-0.047756098210811615,
0.002798662055283785,
-0.003470534225925803,
0.048336129635572433,
0.042845144867897034,
-0.024168064817786217,
-0.025869498029351234,
-0.02372337318956852,
-0.03232720494270325,
-0.022833988070487976,
-0.000775190710555762,
-0.061986252665519714,
0.008777840994298458,
0.017023984342813492,
-0.05533520132303238,
0.046982720494270325,
0.031070465222001076,
-0.03335193172097206,
0.014549175277352333,
-0.0356333963572979,
0.0004860802146140486,
0.04412122070789337,
0.04477859288454056,
-0.013650123029947281,
0.03027775138616562,
-0.026352858170866966,
0.05142964422702789,
0.042265113443136215,
0.06055550277233124,
0.018145384266972542,
0.05220302194356918,
0.0072890883311629295,
0.0131957633420825,
-0.025714822113513947,
0.07393494248390198,
-0.0024143897462636232,
-0.0170916561037302,
-0.007501767482608557,
-0.013978809118270874,
0.023839378729462624,
0.06647184491157532,
0.0003326130099594593,
-0.006699387915432453,
0.043038491159677505,
0.012432052753865719,
0.0067187221720814705,
0.030355090275406837,
-0.0019298200495541096,
-0.0044058384373784065,
0.0022029192186892033,
-0.01436549797654152,
0.04033166915178299,
-0.0183773972094059,
0.00911619421094656,
-0.022969329729676247,
-0.11128910630941391,
-0.004838446620851755,
-0.01298308465629816,
-0.04427589476108551,
-0.013166761957108974,
-0.012896079570055008,
-0.05228035897016525,
-0.04446924105286598,
0.060710180550813675,
0.016134601086378098,
-0.00593084329739213,
0.02900167927145958,
0.008922849781811237,
0.0647704154253006,
0.014085148461163044,
-0.01908310502767563,
-0.061638232320547104,
0.025096118450164795,
0.009517383761703968,
-0.05576055869460106,
-0.020243171602487564,
0.001550381421111524,
0.061638232320547104,
0.0681346133351326,
-0.027841610834002495,
-0.0024639342445880175,
0.034744009375572205,
0.034666672348976135,
-0.008236476220190525,
-0.004313999786973,
-0.029929732903838158,
-0.06581447273492813,
0.050076231360435486,
-0.010923965834081173,
-0.030606437474489212,
-0.00035889577702619135,
0.03845622390508652,
-0.004190742503851652,
-0.029755722731351852,
0.012509390711784363,
-0.021847931668162346,
0.010508274659514427,
-0.010566278360784054,
-0.011117310263216496,
0.06132888421416283,
-0.026971561834216118,
-0.0014102066634222865,
0.02428407222032547,
0.0035067861899733543,
-0.0003172058495692909,
-0.09999778866767883,
-0.003615542547777295,
-0.013611454516649246,
-0.00723108509555459,
-0.03369995206594467,
0.012857411056756973,
-0.010111918672919273,
0.10951033979654312,
0.07668043673038483,
-0.009280537255108356,
0.07780183851718903,
0.02124856226146221,
0.020745867863297462,
-0.032346539199352264,
0.0001747653295751661,
0.02265997789800167,
-0.024941442534327507,
-0.015477228909730911,
0.03159249573945999,
-0.024187399074435234,
-0.026236852630972862,
0.004123072139918804,
-0.03559472784399986,
-0.006312698591500521,
0.04435323178768158,
-0.02884700335562229,
0.030741779133677483,
0.02161591686308384,
-0.05193233862519264,
-0.0061386884190142155,
-0.025231460109353065,
-0.02070719748735428,
-0.03327459096908569,
0.002225878881290555,
-0.027648266404867172,
0.036213427782058716,
-0.043618522584438324,
-0.02436140924692154,
0.027396919205784798,
-0.0647704154253006,
0.09319206327199936,
0.013186096213757992,
0.041221052408218384,
-0.03884291276335716,
-0.0350726954638958,
0.03808886930346489,
-0.020610526204109192,
0.021654587239027023,
0.019121773540973663,
0.06616249680519104,
-0.0230273324996233,
-0.0022113779559731483,
0.06391970068216324,
-0.00918869860470295,
0.07095743715763092,
0.023530028760433197,
0.014587843790650368,
0.0039176433347165585,
-0.006283697206526995,
-0.005887340754270554,
-0.02161591686308384,
0.0214032381772995,
-0.022060610353946686,
-0.05742332339286804,
0.05688195675611496,
0.03555605933070183,
-0.03646477684378624,
0.06883064657449722,
-0.03774084895849228,
0.035749401897192,
0.00960438884794712,
0.05139097571372986,
0.053749777376651764,
-0.01956646516919136,
0.04195576161146164,
-0.03327459096908569,
-0.003170850221067667,
-0.02554081194102764,
0.018899427726864815,
-0.017072321847081184,
0.0012555309804156423,
0.002588399685919285,
0.027648266404867172,
0.02596616931259632,
0.017623353749513626,
-0.037895526736974716,
-0.016811305657029152,
-0.023336684331297874,
0.0183773972094059,
0.02105521783232689,
-0.033680614084005356,
0.009125861339271069,
0.05897007882595062,
-0.01857074163854122,
-0.0013751629739999771,
-0.029117684811353683,
0.005790668539702892,
0.07722180336713791,
0.04006098583340645,
0.015332221053540707,
-0.010691951960325241,
-0.0024131813552230597,
-0.06639450788497925,
-0.0003434886166360229,
-0.014201154932379723,
-0.0156319048255682,
0.06894665956497192,
0.013563117943704128,
-0.025579480454325676,
0.032346539199352264,
-0.001964863622561097,
0.012963750399649143,
-0.01744934357702732,
-0.004357502330094576,
0.024187399074435234,
0.022698646411299706,
-0.00012446554319467396,
-0.04060234874486923,
0.02463209256529808,
-0.029543042182922363,
0.02969771809875965,
-0.00967689324170351,
0.027145570144057274,
0.007487266790121794,
-0.04593865945935249,
-0.060710180550813675,
0.0329459048807621,
-0.013157094828784466,
0.05104295536875725,
-0.025018781423568726,
-0.024593424052000046,
0.042961154133081436,
-0.021770592778921127,
-0.06627850234508514,
-0.009691393934190273,
0.04299982264637947,
-0.05579923093318939,
-0.09125861525535583,
-0.05970478802919388,
0.017362337559461594,
0.012519057840108871,
0.04794944077730179,
0.007917458191514015,
-0.03830154985189438,
-0.0015056704869493842,
-0.009304705075919628,
0.013988476246595383,
-0.041143715381622314,
-0.02294999547302723,
0.04195576161146164,
-0.02654620260000229,
-0.0679025948047638,
-0.03623276203870773,
-0.016163602471351624,
0.039596959948539734,
-0.013041088357567787,
-0.011465330608189106,
0.016008926555514336,
-0.003852389520034194,
0.04624801129102707,
-0.032559216022491455,
-0.04787210375070572,
0.008884181268513203,
0.002890500705689192,
-0.04203309863805771,
-0.045358624309301376,
-0.017971374094486237,
0.03027775138616562,
0.014510506764054298,
-0.0482974611222744,
-0.01605726219713688,
-0.007670944090932608,
-0.07153747230768204,
-0.011639339849352837,
0.03975163400173187,
-0.01035359874367714,
-0.04686671122908592,
0.017294667661190033,
-0.002016825135797262,
0.00967689324170351,
-0.057113971561193466,
-0.06419038027524948,
-0.0450492724776268,
-0.07482433319091797,
0.01551589835435152,
-0.014877861365675926,
0.031708501279354095,
-0.05854472145438194,
0.03816621005535126,
0.010972301475703716,
0.05568322166800499
] |
21,479 | tfields.triangles_3d | mesh |
Returns:
tfields.Mesh3D
| def mesh(self):
"""
Returns:
tfields.Mesh3D
"""
mp = tfields.TensorFields(np.arange(len(self)).reshape((-1, 3)), *self.fields)
mesh = tfields.Mesh3D(self, maps=[mp])
return mesh.cleaned(stale=False) # stale vertices can not occure here
| (self) | [
0.013012654148042202,
-0.0028428947553038597,
-0.05508303642272949,
0.04124092683196068,
-0.062467873096466064,
0.009516450576484203,
-0.06464408338069916,
0.019657224416732788,
-0.03631770238280296,
0.01649102009832859,
0.010774013586342335,
-0.009712666273117065,
-0.09753692895174026,
-0.00686308229342103,
-0.008669156581163406,
-0.02062046341598034,
-0.043524160981178284,
0.03692418709397316,
0.0109969861805439,
-0.02151235193014145,
-0.019924789667129517,
-0.025686390697956085,
0.027702057734131813,
0.03767337277531624,
0.04523658752441406,
-0.0024482340086251497,
0.002379112644121051,
0.00997131410986185,
0.0678548812866211,
0.006055923178792,
-0.06575002521276474,
0.030752316117286682,
0.0017993851797655225,
0.07934240251779556,
0.020049653947353363,
-0.04031336307525635,
0.012932383455336094,
-0.001846209284849465,
-0.04074146971106529,
0.02796962484717369,
0.03678148239850998,
-0.04866144061088562,
0.03312474116683006,
0.002066951710730791,
0.04138362780213356,
-0.015875615179538727,
0.10417257994413376,
0.011621307581663132,
-0.025757741183042526,
-0.044630102813243866,
0.03860093653202057,
-0.019710736349225044,
0.03852958604693413,
0.007259972859174013,
-0.02220802567899227,
-0.01694588176906109,
0.008678075857460499,
0.03296419978141785,
-0.035461489111185074,
0.009685909375548363,
-0.035639867186546326,
-0.03956417739391327,
0.020531274378299713,
-0.020638300105929375,
-0.035425812005996704,
-0.04484415426850319,
0.019086414948105812,
0.021262623369693756,
0.017356151714920998,
0.0031126909889280796,
-0.06179003790020943,
0.013289139606058598,
0.06296733021736145,
-0.023082075640559196,
0.03296419978141785,
0.006938892882317305,
0.04866144061088562,
0.03788742423057556,
-0.015108591876924038,
-0.0439879447221756,
-0.02689935825765133,
-0.00923104677349329,
-0.03770904615521431,
0.05454790219664574,
-0.015028322115540504,
-0.0013991501182317734,
0.027434492483735085,
-0.019264793023467064,
-0.03521176055073738,
-0.0743478313088417,
0.0009688139543868601,
0.006671326234936714,
-0.06286030262708664,
-0.018854523077607155,
0.029949616640806198,
-0.05240737274289131,
0.00437471317127347,
-0.02522260881960392,
-0.020192356780171394,
0.002974448259919882,
-0.011728334240615368,
0.04056309163570404,
-0.06007761135697365,
0.012531033717095852,
0.03647824004292488,
-0.04951765388250351,
-0.023831261321902275,
-0.09468288719654083,
0.030377723276615143,
0.03842255845665932,
-0.044487401843070984,
0.07912835478782654,
-0.00325539312325418,
0.09839314222335815,
-0.01118428260087967,
-0.02775557152926922,
-0.02796962484717369,
0.03169772028923035,
-0.0005209186347201467,
-0.039207421243190765,
0.01303941011428833,
0.0494106262922287,
-0.055439792573451996,
0.012370494194328785,
0.017079666256904602,
0.044451724737882614,
0.051800888031721115,
-0.019264793023467064,
-0.03389176353812218,
-0.03191177174448967,
-0.017329394817352295,
0.057972755283117294,
0.0010763979516923428,
-0.06214679405093193,
-0.009721585549414158,
0.03357068449258804,
0.03792310133576393,
-0.048447385430336,
-0.03551500290632248,
0.03874363750219345,
-0.010818608105182648,
0.07834348827600479,
0.013851028867065907,
0.02786259725689888,
-0.05058791860938072,
0.013084004633128643,
-0.017365070059895515,
-0.02206532284617424,
-0.03531878814101219,
-0.016598045825958252,
-0.005074845626950264,
0.002243099734187126,
0.051586832851171494,
-0.01583102159202099,
-0.049803055822849274,
0.005890924017876387,
-0.03303555026650429,
-0.050730619579553604,
0.04149065539240837,
-0.0042944434098899364,
-0.04213281348347664,
0.012682654894888401,
0.006809568963944912,
0.036496080458164215,
-0.013494273647665977,
-0.013717246241867542,
0.07020946592092514,
-0.07020946592092514,
-0.09732288122177124,
0.041026871651411057,
-0.02982475236058235,
0.034337710589170456,
-0.03681715950369835,
0.05372736603021622,
-0.0637521967291832,
0.04855441302061081,
0.0006248794379644096,
-0.007072675973176956,
0.023135589435696602,
0.006029166746884584,
-0.027256114408373833,
-0.0037236346397548914,
0.028201516717672348,
0.023563696071505547,
0.028576109558343887,
-0.020923705771565437,
0.008615643717348576,
-0.012245629914104939,
0.01883668638765812,
-0.01790020242333412,
-0.010640230029821396,
-0.0015150957042351365,
0.01682993769645691,
-0.008602265268564224,
0.02968205139040947,
0.011630226857960224,
0.04759117215871811,
-0.06018463894724846,
0.011380498297512531,
0.04709171503782272,
-0.0523003451526165,
-0.07406242191791534,
0.01678534224629402,
-0.031002046540379524,
-0.023617208003997803,
0.020959381014108658,
0.04199011251330376,
-0.03531878814101219,
-0.02370639704167843,
0.07613160461187363,
0.008307942189276218,
-0.024901527911424637,
0.004758225288242102,
0.05747329816222191,
0.023563696071505547,
-0.09211424738168716,
-0.06332408636808395,
0.028611784800887108,
0.03339230641722679,
0.03685283288359642,
-0.03710256516933441,
0.004927684087306261,
-0.0048964680172502995,
-0.02377774938941002,
-0.06300300359725952,
-0.0318760983645916,
-0.014573458582162857,
0.044558752328157425,
-0.06756947934627533,
-0.0755608007311821,
0.022832347080111504,
0.012843195348978043,
-0.00271580065600574,
-0.020067492499947548,
0.034337710589170456,
0.028397731482982635,
-0.039064716547727585,
-0.03455176204442978,
0.037352293729782104,
-0.0074874041602015495,
0.027916111052036285,
-0.06967433542013168,
0.057116542011499405,
0.017552366480231285,
0.02882583811879158,
0.07606025785207748,
0.04873279109597206,
0.014127514325082302,
0.024348556995391846,
-0.0002249231474706903,
-0.07010243833065033,
-0.003583162324503064,
0.002016782993450761,
0.06093382462859154,
0.04038471356034279,
-0.06806893646717072,
0.07160080969333649,
-0.00911956001073122,
0.00021265968098305166,
-0.01571507565677166,
-0.058935996145009995,
-0.03703121095895767,
0.07741592824459076,
0.056403033435344696,
0.09011641889810562,
0.012236710637807846,
0.027434492483735085,
0.05865059047937393,
0.021637216210365295,
0.038244180381298065,
0.10096178203821182,
0.009685909375548363,
-0.012736168690025806,
-0.025953955948352814,
0.017525609582662582,
-0.04712739214301109,
-0.014181028120219707,
-0.0023456669878214598,
0.0036701213102787733,
0.031109072268009186,
-0.03134096413850784,
-0.03266095742583275,
-0.015081834979355335,
-0.022939372807741165,
-0.03845823556184769,
-0.0031840421725064516,
0.007099432870745659,
-0.04702036455273628,
0.02172640524804592,
-0.027202600613236427,
-0.02309991419315338,
0.009552126750349998,
-0.030145833268761635,
-0.06682028621435165,
-0.018141012638807297,
-0.05397709459066391,
-0.06243219971656799,
0.028255028650164604,
0.003895323257893324,
0.005114980973303318,
0.03435554727911949,
-0.027541518211364746,
0.0188010111451149,
0.019657224416732788,
-0.01921127922832966,
0.00615849019959569,
0.0011449619196355343,
0.02964637614786625,
0.061718687415122986,
-0.05843653902411461,
-0.022190187126398087,
0.026988547295331955,
-0.08383752405643463,
0.014939133077859879,
0.008990236558020115,
0.05026683956384659,
0.001972188474610448,
-0.03596094623208046,
0.0016288114711642265,
0.057009514421224594,
-0.0067872717045247555,
-0.024277206510305405,
-0.02188694477081299,
0.04138362780213356,
-0.028130164369940758,
-0.06146895885467529,
0.03421284630894661,
-0.05105169862508774,
-0.00481173861771822,
0.015964804217219353,
-0.015215618535876274,
0.0101229352876544,
-0.009222127497196198,
0.02210099808871746,
-0.047234416007995605,
-0.06467975676059723,
0.07663106173276901,
-0.02470531314611435,
0.020959381014108658,
0.00852645467966795,
0.04744847118854523,
0.0049499813467264175,
-0.03301771357655525,
-0.0003188501577824354,
-0.01010509766638279,
0.017623716965317726,
0.04373821243643761,
-0.03269663453102112,
0.06311003118753433,
0.06517921388149261,
0.00607376080006361,
-0.0006990176625549793,
0.028183678165078163,
0.06179003790020943,
0.019139928743243217,
-0.01105049904435873,
-0.0318760983645916,
0.01532264519482851,
-0.026435576379299164,
0.04648523032665253,
-0.020263707265257835,
-0.045272260904312134,
-0.01197806280106306,
0.03176907077431679,
0.011639145202934742,
-0.06307435780763626,
0.013966974802315235,
-0.00731794536113739,
-0.01029239408671856,
0.01194238755851984,
-0.020442085340619087,
-0.05904302000999451,
0.013030491769313812,
0.0573662705719471,
0.03150150179862976,
0.012183197773993015,
-0.01894371211528778,
0.04441605135798454,
0.0219939723610878,
-0.042667947709560394,
0.013244545087218285,
-0.026952872052788734,
0.04405929520726204,
-0.024580448865890503,
-0.01839074119925499,
0.03221501410007477,
0.010916715487837791,
0.015019402839243412,
0.03324960544705391,
0.028183678165078163,
0.04120524972677231,
-0.022154511883854866,
0.024544773623347282,
-0.041062548756599426,
-0.0024014099035412073,
0.06286030262708664,
-0.02220802567899227,
-0.021262623369693756,
0.010042664594948292,
-0.03057393990457058,
-0.05661708489060402,
-0.049125220626592636,
-0.02295721136033535,
0.056296005845069885,
-0.05162250995635986,
-0.006269976496696472,
0.027131250128149986,
0.035051219165325165,
0.035532839596271515,
-0.03360636159777641,
0.02031722106039524,
0.04512955993413925,
0.012432926334440708,
-0.010711581446230412,
0.045593343675136566,
0.017436420544981956,
0.057223569601774216,
-0.01439508143812418,
0.03710256516933441,
0.09767962992191315,
0.03019934706389904,
0.06521488726139069,
-0.0030502588488161564,
0.020852353423833847,
0.013084004633128643,
-0.04124092683196068,
-0.07192189246416092,
0.027666382491588593,
0.00783524103462696,
0.04891116917133331,
-0.00026143481954932213,
-0.07384837418794632,
0.018444254994392395,
-0.0538700670003891,
-0.024277206510305405,
0.045272260904312134,
-0.017436420544981956,
0.033820413053035736,
0.0017848919378593564,
0.05408412218093872,
0.08590670675039291,
-0.014502108097076416,
-0.00447505060583353,
-0.07042352110147476,
0.039207421243190765,
0.01125563308596611,
-0.006055923178792,
-0.011282389983534813,
-0.0050926837138831615,
0.02793394960463047,
0.061575986444950104,
0.06967433542013168,
-0.01194238755851984,
-0.03180474415421486,
0.03615716099739075,
-0.019139928743243217,
-0.006479570176452398,
-0.060719773173332214,
-0.005271061323583126,
0.021458838135004044,
0.0062967329286038876,
0.06810460984706879,
-0.006269976496696472,
-0.017079666256904602,
-0.06457272917032242,
-0.08512184023857117,
0.013476436026394367,
-0.034195005893707275,
-0.006029166746884584,
-0.05651005730032921,
0.016508856788277626,
-0.02069181390106678,
-0.03492635488510132,
-0.03205447271466255,
-0.020638300105929375,
0.0039510661736130714,
0.004508496727794409,
0.01775750145316124,
-0.013440760783851147,
-0.05583222210407257,
-0.048197656869888306,
-0.050730619579553604,
0.04116957634687424,
0.015447509475052357,
-0.001668946468271315,
0.0794137567281723,
-0.013993731699883938,
0.020977217704057693,
0.035051219165325165,
-0.03949282318353653,
-0.04477280378341675,
-0.023082075640559196,
0.008553211577236652,
0.018640469759702682,
0.010015908628702164,
0.02292153611779213,
-0.006354705896228552,
0.015126429498195648,
-0.01630372181534767,
0.022422077134251595,
0.027987463399767876,
-0.0321793369948864,
-0.026346387341618538,
-0.025846930220723152,
-0.0015106361825019121,
-0.05850788950920105,
0.056081950664520264,
0.003123839618638158,
0.028611784800887108,
-0.004918765276670456,
-0.04070579260587692,
-0.03301771357655525,
-0.00455978000536561,
0.012593465857207775,
0.015884535387158394,
0.006943352520465851,
-0.0864061638712883,
0.001501717371866107,
-0.05419114977121353,
-0.002246444346383214,
0.012004819698631763,
0.05040954053401947,
-0.015741832554340363,
-0.0159380491822958,
-0.03671013191342354,
0.01741858385503292,
-0.05112305283546448,
-0.06118355318903923,
0.07684511691331863,
0.01190671231597662,
0.0160896684974432,
-0.043631188571453094,
-0.004236470442265272,
0.03806580230593681,
0.003685729345306754,
-0.01608075015246868,
-0.023688560351729393,
-0.030627451837062836,
-0.027541518211364746,
-0.06924622505903244,
-0.02299288660287857,
-0.031555015593767166,
0.01757020503282547,
-0.07441917806863785,
0.022529104724526405,
-0.023635046556591988,
0.012495358474552631,
-0.009110641665756702,
-0.04152633249759674,
0.026168009266257286,
0.004923224914819002,
-0.01835506595671177,
0.04491550847887993,
-0.04074146971106529,
0.03408798202872276,
0.04509388655424118,
-0.02459828555583954,
-0.035461489111185074,
0.00960563961416483,
-0.02656044065952301,
0.013735083863139153,
-0.009721585549414158,
0.05308520793914795,
0.07342026382684708,
0.00009532058902550489,
-0.008629021234810352,
0.02841556817293167,
0.0028473541606217623,
0.004874170757830143,
0.01921127922832966,
0.019104253500699997,
0.00874942634254694,
0.04327443242073059,
0.04505820944905281,
0.06007761135697365,
-0.022011809051036835,
0.01034590695053339,
-0.03717391565442085,
0.0019521210342645645,
-0.052585747092962265,
0.009346991777420044,
0.013324814848601818,
-0.011371579021215439,
-0.007277810480445623,
0.02292153611779213,
0.05411979556083679,
0.0026734359562397003,
0.08198239654302597,
0.040991198271512985,
-0.018997225910425186,
0.01667831651866436,
0.024241531267762184,
-0.021762080490589142,
-0.0024460044223815203,
-0.01231698039919138,
0.028290703892707825,
-0.017168855294585228,
-0.03503338247537613,
-0.013342652469873428,
0.0309128575026989,
-0.020852353423833847,
0.03510473296046257,
0.007848619483411312,
0.04152633249759674,
-0.02340315468609333,
-0.07777268439531326,
-0.0160896684974432,
-0.02491936646401882,
0.03778040036559105,
-0.053441960364580154,
0.03924309462308884,
-0.06646353751420975,
-0.026346387341618538,
-0.057865727692842484,
0.0045285639353096485,
-0.024937203153967857,
-0.05476195737719536,
-0.0029722186736762524,
0.06582137197256088,
-0.0014459743397310376,
-0.006702542304992676,
-0.02309991419315338,
-0.006653488613665104,
-0.007019162643700838,
0.004660117439925671,
-0.020923705771565437,
0.08141158521175385,
-0.03569338098168373,
-0.00437471317127347,
-0.006434975657612085,
-0.013280220329761505,
-0.05244304612278938,
-0.03692418709397316,
-0.004584307316690683,
-0.011389416642487049,
-0.01704399101436138,
-0.02062046341598034,
-0.01441291905939579,
0.015911292284727097,
-0.007589971646666527,
-0.03977822884917259,
0.038315530866384506,
0.016624802723526955,
-0.010952391661703587,
-0.01600939966738224,
-0.022778833284974098,
0.027880435809493065,
-0.03867228701710701,
0.0239204503595829,
-0.004914306104183197,
-0.03588959574699402,
0.0353722982108593,
-0.001600939896889031,
-0.02656044065952301,
0.025508012622594833,
0.014154271222651005,
0.017739662900567055,
-0.02834421768784523,
0.014626972377300262,
0.0018227972323074937,
-0.024384232237935066,
0.019782088696956635,
0.017632637172937393,
-0.04983873292803764,
0.055404115468263626,
-0.009445100091397762,
0.01946100778877735,
0.02830854244530201,
0.007264432031661272,
0.0256685521453619,
-0.07470458745956421,
-0.021833430975675583,
-0.020923705771565437,
-0.0022876940201967955,
0.046378202736377716,
0.012031576596200466,
0.04951765388250351,
0.00639038160443306,
-0.026792332530021667,
-0.016544532030820847,
0.04470145329833031,
0.05822248384356499,
-0.024098828434944153,
0.028148002922534943,
-0.0017659392906352878,
0.025989633053541183,
-0.042846325784921646,
0.04766252264380455,
0.037352293729782104,
-0.03242906928062439,
-0.051872238516807556,
-0.016027236357331276,
0.054298173636198044,
-0.0054405201226472855,
-0.017552366480231285,
0.01303941011428833,
0.014100758358836174,
0.018711822107434273,
0.010800770483911037,
0.029592862352728844,
-0.020602624863386154,
-0.03009231947362423,
-0.08119753003120422,
0.035193923860788345,
0.05033819004893303,
0.03269663453102112,
0.03212582692503929,
-0.01624128967523575,
-0.05822248384356499,
-0.04248956963419914,
0.02261829376220703,
0.021494513377547264,
0.04045606404542923,
0.018658308312296867,
0.0538700670003891,
0.03799445182085037,
0.001018425216898322,
0.0035430272109806538,
0.017436420544981956,
-0.0006020247819833457,
-0.02188694477081299,
0.0035653244704008102,
-0.013717246241867542,
0.025418823584914207,
-0.015242375433444977,
0.0056947083212435246,
-0.042774975299835205,
0.004842954687774181,
-0.06243219971656799,
0.0045932261273264885,
-0.012539952993392944,
0.004722550045698881,
-0.009195370599627495,
-0.013137518428266048,
0.01196022517979145,
0.008571049198508263,
0.0668916404247284,
0.000764237018302083,
-0.03160852938890457,
0.04648523032665253,
-0.03387392684817314,
-0.011835360899567604,
-0.03688850998878479,
-0.009177532978355885,
0.012789681553840637,
0.03852958604693413,
0.020228032022714615,
0.0324825793504715,
-0.038279857486486435,
-0.06114787980914116,
0.057152219116687775,
0.039207421243190765,
0.019710736349225044,
-0.005801734980195761,
0.04602145031094551,
-0.023189101368188858,
0.010738338343799114,
-0.031376637518405914,
-0.03685283288359642,
-0.029842590913176537,
-0.05155115947127342,
-0.018105337396264076,
-0.0017581352731212974,
0.045521993190050125,
-0.038993366062641144,
0.009409423917531967,
0.03365987539291382,
-0.004900927655398846
] |
21,485 | tfields.triangles_3d | norms |
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [-1,0,0], [0,1,0], [0,0,1]],
... faces=[[0, 1, 3],[0, 2, 3],[1,2,4], [1, 3, 4]]);
>>> assert np.allclose(m.triangles().norms(),
... [[0.0, 0.0, 1.0],
... [0.0, 0.0, -1.0],
... [0.0, 1.0, 0.0],
... [0.57735027] * 3],
... atol=1e-8)
| def norms(self):
"""
Examples:
>>> import numpy as np
>>> import tfields
>>> m = tfields.Mesh3D([[0,0,0], [1,0,0], [-1,0,0], [0,1,0], [0,0,1]],
... faces=[[0, 1, 3],[0, 2, 3],[1,2,4], [1, 3, 4]]);
>>> assert np.allclose(m.triangles().norms(),
... [[0.0, 0.0, 1.0],
... [0.0, 0.0, -1.0],
... [0.0, 1.0, 0.0],
... [0.57735027] * 3],
... atol=1e-8)
"""
ab, ac = self.edges()
vectors = np.cross(ab, ac)
norms = np.apply_along_axis(np.linalg.norm, 0, vectors.T).reshape(-1, 1)
# cross product may be zero, so replace zero norms by ones to divide vectors by norms
np.place(norms, norms == 0.0, 1.0)
return vectors / norms
| (self) | [
-0.048527561128139496,
0.045496873557567596,
-0.006385446060448885,
-0.0068007963709533215,
-0.003331933869048953,
0.011848904192447662,
0.0006692394381389022,
-0.03412265330553055,
-0.02212769165635109,
0.09588666260242462,
-0.01596589758992195,
0.01647709682583809,
-0.017691198736429214,
0.002542311092838645,
-0.009448086842894554,
0.005513665731996298,
-0.027714386582374573,
0.011620690114796162,
0.0029759190510958433,
-0.014240593649446964,
-0.021999891847372055,
0.031767480075359344,
0.019151773303747177,
0.019589945673942566,
0.0019306959584355354,
-0.06455735862255096,
0.004596243146806955,
-0.042247094213962555,
0.017536014318466187,
0.03841308876872063,
-0.015582496300339699,
0.06547021865844727,
0.01999160274863243,
-0.010388330556452274,
0.006435653194785118,
-0.07047268003225327,
0.03335585445165634,
-0.03198656439781189,
-0.025505268946290016,
0.01694265566766262,
0.02974093332886696,
0.012031476013362408,
-0.008968835696578026,
0.03874171897768974,
0.04608110338449478,
-0.013829807750880718,
0.034086138010025024,
-0.0037952095735818148,
-0.12531723082065582,
-0.04148029536008835,
-0.021890349686145782,
-0.017097841948270798,
0.08128093183040619,
-0.016714440658688545,
0.03790188953280449,
0.015317766927182674,
0.0009562193881720304,
-0.0019717745017260313,
-0.04849104955792427,
-0.008375477977097034,
0.014678766019642353,
-0.024263780564069748,
-0.012077119201421738,
-0.027988243848085403,
0.026418127119541168,
-0.054881058633327484,
0.006682124920189381,
0.06579884886741638,
0.04863710701465607,
0.03065379150211811,
-0.07127600163221359,
0.016878755763173103,
0.008202034048736095,
-0.06528764963150024,
0.06364449858665466,
0.07930915802717209,
0.0928194597363472,
0.03470688313245773,
-0.014843081124126911,
-0.009557629004120827,
-0.015180838294327259,
-0.007458054460585117,
-0.017426470294594765,
0.008959706872701645,
0.003217826597392559,
-0.01236010529100895,
-0.03485294058918953,
-0.00023449055152013898,
-0.007827762514352798,
-0.0028252974152565002,
-0.009384186007082462,
0.015892868861556053,
0.008498713374137878,
-0.01907874457538128,
-0.02095923386514187,
0.027531815692782402,
-0.049330879002809525,
-0.0808427557349205,
0.042356640100479126,
-0.03718985989689827,
0.03003304824233055,
0.051120080053806305,
0.03315502405166626,
0.055684372782707214,
0.042794812470674515,
-0.012898691929876804,
-0.027896959334611893,
-0.09946507215499878,
0.0061070239171385765,
0.03173096477985382,
-0.01738995686173439,
0.053712598979473114,
0.07397805899381638,
0.03859566152095795,
-0.01773684285581112,
-0.0908476859331131,
-0.003660562913864851,
0.02400818094611168,
0.0037815168034285307,
0.009767587296664715,
-0.0045620109885931015,
0.03656911477446556,
0.04787030443549156,
-0.04213755205273628,
0.008982528932392597,
0.008329834789037704,
-0.025213154032826424,
0.003325087483972311,
-0.049075279384851456,
0.0007930459105409682,
0.05177734047174454,
0.03127453476190567,
0.01810198649764061,
-0.0008626513881608844,
-0.004025706555694342,
-0.005235244054347277,
0.03593011572957039,
0.00882734265178442,
0.06579884886741638,
0.015427310019731522,
-0.005760137923061848,
0.03593011572957039,
0.0073028686456382275,
0.012095375917851925,
-0.03441476821899414,
0.07353989034891129,
0.026564184576272964,
-0.0015130630927160382,
0.01412192266434431,
0.026016470044851303,
-0.0019706333987414837,
-0.011812389828264713,
0.0771913230419159,
-0.004678400233387947,
-0.04326949641108513,
-0.022346777841448784,
-0.022547606378793716,
-0.11962098628282547,
0.0351085402071476,
0.01407627947628498,
-0.05188688263297081,
-0.017161741852760315,
-0.03567451238632202,
0.0070974756963551044,
0.007864276878535748,
0.018394101411104202,
0.023989923298358917,
-0.04761470481753349,
-0.05886112153530121,
0.020758403465151787,
0.0006909198709763587,
0.04067697748541832,
-0.07711829245090485,
0.0016933527076616883,
0.04863710701465607,
-0.08865682780742645,
0.010808245278894901,
0.02015591785311699,
-0.022693663835525513,
0.004148942418396473,
-0.001691070501692593,
-0.02983221784234047,
0.018576672300696373,
-0.014231465756893158,
-0.0008746326202526689,
0.03198656439781189,
-0.026052983477711678,
-0.0014115076046437025,
-0.026034727692604065,
-0.04060395061969757,
-0.030964164063334465,
-0.048892706632614136,
-0.02097748965024948,
0.051120080053806305,
0.012350976467132568,
0.023186607286334038,
0.0015758221270516515,
-0.041261207312345505,
0.028718531131744385,
-0.049148306250572205,
-0.06503204256296158,
-0.03729940205812454,
0.004046245478093624,
0.020575832575559616,
0.009913644753396511,
-0.0673324465751648,
-0.005942709278315306,
-0.036331772804260254,
0.07036314159631729,
0.006814489606767893,
0.025943441316485405,
-0.006641046144068241,
-0.022547606378793716,
0.0075539047829806805,
-0.03297245129942894,
0.007480876054614782,
0.02607124112546444,
-0.006636481732130051,
-0.018932687118649483,
0.0276778731495142,
-0.01477918028831482,
-0.009740200825035572,
0.017873771488666534,
-0.0010840195463970304,
-0.08756139874458313,
0.042612239718437195,
0.010205758735537529,
0.06948679685592651,
-0.036788202822208405,
0.01403063628822565,
0.019662974402308464,
-0.01658664084970951,
-0.013409893028438091,
-0.001329350285232067,
-0.021196575835347176,
-0.030891135334968567,
-0.01999160274863243,
0.04202800989151001,
0.07069177180528641,
-0.019736003130674362,
-0.04856407642364502,
-0.0523250550031662,
-0.017243899405002594,
0.007868841290473938,
0.0612710677087307,
0.014614866115152836,
-0.01838497258722782,
0.000716593989636749,
0.03656911477446556,
0.03280813619494438,
-0.05294579640030861,
0.0034939663019031286,
-0.006700382102280855,
-0.008265934884548187,
0.05897066369652748,
-0.054369859397411346,
0.003847698913887143,
0.06269513070583344,
0.029613133519887924,
-0.005299143958836794,
0.02044803276658058,
-0.041808921843767166,
0.043671153485774994,
0.0562686026096344,
0.009420700371265411,
-0.0013282092986628413,
0.050134193152189255,
0.02033848874270916,
-0.024227267131209373,
0.0464097298681736,
0.00254459329880774,
-0.0006350072799250484,
0.014660509303212166,
-0.005865116603672504,
-0.00006575434235855937,
0.040275320410728455,
0.008836471475660801,
0.017408212646842003,
0.053530026227235794,
0.03808445855975151,
0.014815694652497768,
-0.00409873528406024,
-0.054187286645174026,
-0.008631077595055103,
0.0012848484329879284,
0.015491209924221039,
-0.051740825176239014,
-0.06671170890331268,
-0.01658664084970951,
-0.003948113415390253,
0.05243459716439247,
0.006841875147074461,
-0.01629452593624592,
-0.06850090622901917,
0.0032132621854543686,
-0.06298724561929703,
-0.03331933915615082,
0.007229839917272329,
0.02742227166891098,
-0.011812389828264713,
-0.0310189351439476,
-0.004879229236394167,
0.0711299404501915,
0.016522740945219994,
0.006024866830557585,
0.002934840274974704,
0.0004036546451970935,
-0.003984627779573202,
0.06167272478342056,
-0.042867839336395264,
-0.01575593836605549,
-0.02068537473678589,
-0.07061874121427536,
0.01263396255671978,
0.07580377906560898,
0.09610575437545776,
0.01640406809747219,
-0.05119311064481735,
-0.010634802281856537,
0.021653005853295326,
0.027915215119719505,
0.06371752917766571,
0.013199935667216778,
0.09048254042863846,
-0.07167765498161316,
-0.022456321865320206,
0.04714001715183258,
-0.02499406784772873,
0.017782485112547874,
-0.021306119859218597,
0.014642251655459404,
-0.016166726127266884,
0.020192431285977364,
0.044036298990249634,
-0.010753474198281765,
-0.025687839835882187,
0.11706498265266418,
-0.04469355568289757,
0.04067697748541832,
-0.028024759143590927,
0.07003451138734818,
0.04867361858487129,
0.019297830760478973,
-0.02294926531612873,
-0.04312343895435333,
0.050316765904426575,
0.00030694869928993285,
-0.007727347780019045,
0.016057182103395462,
0.033027224242687225,
0.012150147929787636,
-0.01675095595419407,
0.007654319051653147,
0.0039001882541924715,
-0.0072800470516085625,
-0.014185822568833828,
-0.011465503834187984,
-0.05951837822794914,
0.008704106323421001,
0.002889197552576661,
-0.006997060962021351,
-0.0019478120375424623,
-0.000669809989631176,
-0.006668432150036097,
0.023405693471431732,
-0.060248665511608124,
0.0750734880566597,
-0.08799956738948822,
-0.04765122011303902,
0.0009322568075731397,
-0.011575046926736832,
-0.034907713532447815,
-0.018147628754377365,
-0.03350191190838814,
-0.012542677111923695,
0.02795173041522503,
0.007220711559057236,
-0.03421394154429436,
0.020922718569636345,
-0.01602979749441147,
-0.004495828412473202,
-0.04308692365884781,
0.02795173041522503,
-0.04107863828539848,
0.030854620039463043,
-0.027312729507684708,
-0.0009168523247353733,
0.04312343895435333,
-0.018750116229057312,
0.054881058633327484,
0.026052983477711678,
0.013373378664255142,
0.04761470481753349,
-0.017526885494589806,
-0.0404944084584713,
0.024263780564069748,
-0.023679552599787712,
-0.022784950211644173,
0.0034939663019031286,
-0.0060476879589259624,
-0.02992350421845913,
-0.005426944233477116,
-0.007950997911393642,
0.03826703131198883,
-0.10099867731332779,
0.03264382481575012,
-0.012077119201421738,
0.014523579739034176,
0.027477042749524117,
0.02868201769888401,
-0.04494915530085564,
0.08537053316831589,
0.040823034942150116,
-0.015801582485437393,
0.021214833483099937,
0.005385865457355976,
0.006330674514174461,
0.00033633134444244206,
0.01889617368578911,
0.04976905137300491,
0.04524127021431923,
-0.007823198102414608,
0.059993065893650055,
0.04812590405344963,
0.0641557052731514,
-0.01340076420456171,
-0.020393261685967445,
-0.04239315167069435,
0.011036460287868977,
-0.0031060012988746166,
0.030489476397633553,
0.008270498365163803,
-0.017353441566228867,
-0.05747357755899429,
-0.0385226309299469,
0.030580762773752213,
-0.021032262593507767,
0.07573074847459793,
-0.038303546607494354,
-0.010342687368392944,
0.04578898847103119,
-0.003375294618308544,
-0.023716066032648087,
-0.048965733498334885,
0.028974130749702454,
0.004824457690119743,
0.013893707655370235,
-0.05572088807821274,
0.024774981662631035,
0.019425630569458008,
-0.005559308920055628,
0.028207330033183098,
-0.011912805028259754,
-0.034816425293684006,
-0.019918574020266533,
0.0702170804142952,
-0.0009818935068324208,
-0.034013111144304276,
-0.08354482054710388,
-0.015792453661561012,
0.02203640714287758,
0.01482482347637415,
0.016166726127266884,
0.002649571979418397,
-0.07865189760923386,
-0.06528764963150024,
0.02366129495203495,
0.018594929948449135,
0.000148196893860586,
-0.024701952934265137,
0.0867580771446228,
-0.0028321438003331423,
0.04206452518701553,
0.01169371884316206,
0.0022559016942977905,
0.020210688933730125,
-0.04615413025021553,
-0.06075986847281456,
-0.039654579013586044,
-0.04516824334859848,
-0.046920932829380035,
0.0358753427863121,
-0.00421284232288599,
0.014751794748008251,
0.00008957424870459363,
-0.0025103611405938864,
-0.06875650584697723,
0.049075279384851456,
0.06645610183477402,
-0.05510014295578003,
0.012843919917941093,
-0.011812389828264713,
0.03782885894179344,
0.004404542502015829,
0.014596608467400074,
-0.00048010656610131264,
0.04129772260785103,
0.0032794445287436247,
-0.038120973855257034,
0.04239315167069435,
0.003904752666130662,
0.0038157489616423845,
0.02769612893462181,
0.045022185891866684,
-0.04031183570623398,
0.0066319177858531475,
0.011912805028259754,
-0.041443780064582825,
0.044766586273908615,
-0.014550966210663319,
0.007170504424721003,
-0.08697716891765594,
-0.011365089565515518,
-0.00012673044693656266,
0.025961698964238167,
-0.006983368191868067,
-0.04516824334859848,
-0.031128477305173874,
-0.033812280744314194,
0.05564786121249199,
0.0028823509346693754,
-0.0415533222258091,
-0.13356946408748627,
-0.0184671301394701,
-0.07313822954893112,
0.01344640739262104,
-0.029777446761727333,
-0.03653259947896004,
0.04038486257195473,
-0.03859566152095795,
0.03914337605237961,
-0.01366549264639616,
-0.0009162818314507604,
-0.003158490639179945,
-0.029503589496016502,
0.05312836915254593,
-0.02902890369296074,
-0.012040604837238789,
-0.0031721836421638727,
0.005198729690164328,
0.02795173041522503,
0.009886258281767368,
0.019243059679865837,
0.004101017024368048,
0.03554671257734299,
-0.03808445855975151,
0.03218739479780197,
-0.027093643322587013,
0.009822358377277851,
0.0383765734732151,
0.0007211582851596177,
-0.013829807750880718,
-0.041808921843767166,
-0.03899731859564781,
-0.0020790353883057833,
-0.012150147929787636,
0.0071111684665083885,
-0.03295419365167618,
-0.028207330033183098,
0.0044091069139540195,
0.009050993248820305,
-0.07054571062326431,
0.06579884886741638,
0.014414037577807903,
-0.018430614843964577,
0.028024759143590927,
0.04991510882973671,
-0.005778395105153322,
-0.013245577923953533,
0.017800742760300636,
-0.026728499680757523,
0.03560148552060127,
0.025779126212000847,
-0.006257645785808563,
0.05670677497982979,
-0.04454749822616577,
-0.005545616149902344,
-0.07321126013994217,
-0.01196757610887289,
-0.045825500041246414,
0.04275829717516899,
-0.05002465099096298,
-0.044584013521671295,
0.025870412588119507,
0.03339236602187157,
0.0014023790135979652,
-0.04425538331270218,
0.06488598883152008,
0.03425045311450958,
-0.005541051737964153,
-0.06484947353601456,
-0.007672576233744621,
0.013053878210484982,
-0.03797491639852524,
0.0010845900978893042,
-0.029339274391531944,
0.0026632649824023247,
-0.020101146772503853,
0.013628979213535786,
-0.004591678734868765,
0.029448818415403366,
0.07324777543544769,
-0.003690230892971158,
0.07646103203296661,
-0.02419075183570385,
-0.04991510882973671,
0.030270390212535858,
-0.029412303119897842,
0.002971354639157653,
-0.015792453661561012,
-0.013053878210484982,
-0.032114364206790924,
0.005956402514129877,
-0.049878593534231186,
0.037135086953639984,
0.009530243463814259,
-0.044510986655950546,
-0.00024233543081209064,
0.07543863356113434,
-0.0009202755754813552,
0.005764701869338751,
-0.09048254042863846,
0.013765907846391201,
-0.012131890282034874,
0.0008655040292069316,
0.04480309784412384,
0.010315301828086376,
0.008028591051697731,
-0.026545926928520203,
-0.05922626703977585,
-0.0002892620686907321,
-0.007909920066595078,
-0.0034574519377201796,
0.016184981912374496,
-0.005007029511034489,
0.035802312195301056,
-0.014085408300161362,
-0.05108356848359108,
0.025322698056697845,
0.020557574927806854,
0.022255493327975273,
0.03815748915076256,
0.014149308204650879,
0.0147883091121912,
0.010324430651962757,
0.02141566202044487,
-0.0026952149346470833,
-0.020630603656172752,
0.07087434083223343,
-0.01898745819926262,
-0.004687529057264328,
0.040092747658491135,
0.012789148837327957,
0.008055977523326874,
-0.010160116478800774,
-0.01629452593624592,
0.001895322697237134,
-0.032935939729213715,
0.0024418968241661787,
-0.04345206916332245,
-0.034013111144304276,
-0.022328520193696022,
0.022894494235515594,
-0.025140125304460526,
0.00221710535697639,
-0.01728954166173935,
0.051047053188085556,
0.007891662418842316,
-0.023588266223669052,
-0.00779581256210804,
-0.04801636189222336,
0.06032169610261917,
0.028298616409301758,
0.01935260184109211,
-0.025487011298537254,
0.05834992229938507,
0.03666039928793907,
-0.020192431285977364,
0.004290435463190079,
-0.0014240593882277608,
-0.02042977511882782,
0.05082796514034271,
-0.06988845020532608,
0.010753474198281765,
0.013373378664255142,
-0.049294363707304,
-0.025505268946290016,
0.06495901942253113,
0.004733171779662371,
0.023971665650606155,
-0.06587187945842743,
-0.011155132204294205,
0.02725795842707157,
-0.00723440432921052,
0.013227321207523346,
0.027093643322587013,
0.04900224879384041,
0.015819840133190155,
0.034359999001026154,
0.05805780738592148,
0.02285797894001007,
-0.022072920575737953,
-0.09362277388572693,
0.01828455738723278,
0.029704418033361435,
-0.025377469137310982,
0.030087819322943687,
0.014414037577807903,
-0.015746811404824257,
0.05553831532597542,
-0.02276669256389141,
0.005929016508162022,
0.049148306250572205,
-0.0414072647690773,
0.009393314830958843,
-0.03877823427319527,
0.060613811016082764,
0.02400818094611168,
0.04761470481753349,
-0.026819786056876183,
0.0032634695526212454,
-0.01863144338130951,
0.01089040283113718,
-0.03801143169403076,
-0.005828602239489555,
0.014596608467400074,
-0.0022627483122050762,
0.03342888131737709,
-0.051302652806043625,
-0.02535921148955822,
-0.00010191210458287969,
0.004301846027374268,
0.001182151841931045,
0.018877916038036346,
-0.027111900970339775,
0.011118617840111256,
0.018658829852938652,
-0.029996532946825027,
-0.07445274293422699,
0.007070089690387249,
0.017225641757249832,
-0.0024784111883491278,
0.028298616409301758,
-0.04761470481753349,
-0.028645502403378487,
0.0008791969157755375,
-0.004294999875128269,
-0.011739361099898815,
0.008795392699539661,
-0.06284118443727493,
0.03870520368218422,
0.0033433446660637856,
-0.01263396255671978,
-0.06119804084300995,
0.02205466292798519,
-0.0025925184600055218,
0.014240593649446964,
-0.06842788308858871,
-0.024501124396920204,
-0.06316981464624405,
-0.0065725818276405334,
-0.03702554479241371,
-0.011556790210306644,
0.07741040736436844,
-0.018494514748454094,
0.018531030043959618,
0.033118508756160736,
0.03702554479241371
] |
21,486 | tfields.triangles_3d | ntriangles |
Returns:
int: number of triangles
| def ntriangles(self):
"""
Returns:
int: number of triangles
"""
return len(self) // 3
| (self) | [
-0.061504755169153214,
-0.025758258998394012,
-0.015133186243474483,
0.0474608913064003,
-0.008965952321887016,
0.029998231679201126,
-0.010692107491195202,
0.01589571125805378,
-0.04012054204940796,
0.025808535516262054,
0.036601193249225616,
0.011463011614978313,
-0.0356627032160759,
-0.0150326332077384,
-0.023043334484100342,
-0.007386436220258474,
0.03693636879324913,
0.005270638968795538,
-0.005584866274148226,
0.014353902079164982,
-0.011370837688446045,
0.052253901958465576,
0.035126421600580215,
0.014035485684871674,
-0.026462126523256302,
0.017177758738398552,
0.03720451146364212,
0.019004466012120247,
0.06783957779407501,
0.017797833308577538,
-0.0949217826128006,
0.059795357286930084,
-0.011312182061374187,
0.04705867916345596,
0.030534513294696808,
-0.02450134977698326,
0.020127305760979652,
0.01612195558845997,
-0.058354102075099945,
0.04471244663000107,
-0.0014852476306259632,
-0.031238382682204247,
0.03229418769478798,
0.012309330515563488,
0.011203249916434288,
-0.026864338666200638,
0.07662118226289749,
-0.012208777479827404,
-0.07628600299358368,
-0.0683758556842804,
0.024836525321006775,
-0.03395330533385277,
0.029730090871453285,
0.018803361803293228,
-0.019507229328155518,
0.019959717988967896,
0.020663587376475334,
-0.036601193249225616,
-0.037036921828985214,
0.026763785630464554,
-0.02517170086503029,
-0.0022393930703401566,
0.0675043985247612,
-0.039014458656311035,
-0.0019000276224687696,
-0.04397506266832352,
-0.0037455891724675894,
0.055907320231199265,
0.045114658772945404,
0.017797833308577538,
0.013926553539931774,
0.0670686736702919,
0.029679814353585243,
0.004575149156153202,
0.014085762202739716,
0.013574618846178055,
0.06194048374891281,
0.05476772040128708,
0.05215334892272949,
-0.038545213639736176,
-0.025858810171484947,
0.0017251077806577086,
0.010826177895069122,
0.04404209554195404,
0.0459861159324646,
-0.008614017628133297,
0.028473181650042534,
-0.016096817329525948,
-0.06247676536440849,
0.044410791248083115,
-0.05510289594531059,
0.03871280327439308,
-0.002131508430466056,
-0.014848287217319012,
-0.035361044108867645,
-0.015987884253263474,
-0.017311828210949898,
-0.08768197894096375,
0.01160546112805605,
-0.06673349440097809,
-0.01764700375497341,
0.05476772040128708,
0.005677039735019207,
0.004529062658548355,
0.023562856018543243,
-0.05795188993215561,
-0.025758258998394012,
-0.07300128042697906,
-0.00808192603290081,
0.027333583682775497,
-0.02621074579656124,
0.024568384513258934,
-0.005702177993953228,
0.06462188810110092,
0.014772872440516949,
-0.018484944477677345,
-0.007780267857015133,
-0.0003147509996779263,
0.027769312262535095,
-0.0013071855064481497,
0.02371368557214737,
0.002949546789750457,
-0.01809949241578579,
-0.00094791897572577,
0.04253380745649338,
0.059862393885850906,
0.014119279570877552,
0.02150152623653412,
-0.03148976340889931,
0.0021702630911022425,
0.07011877000331879,
0.01885363645851612,
0.018903912976384163,
-0.01789838634431362,
0.00172929756809026,
0.046153705567121506,
0.07796188443899155,
-0.024803007021546364,
-0.0001560662203701213,
0.013256201520562172,
0.037070441991090775,
0.03334999084472656,
0.014948839321732521,
0.03371868282556534,
-0.057851336896419525,
0.08969303965568542,
0.016800684854388237,
-0.00034722115378826857,
0.0043782335706055164,
0.011052421294152737,
0.027987176552414894,
-0.0022037806920707226,
0.08741383999586105,
-0.03686933591961861,
-0.023127129301428795,
-0.017479415982961655,
-0.03261260315775871,
-0.06251028180122375,
0.02344554476439953,
-0.06294601410627365,
-0.025037629529833794,
0.00775931915268302,
-0.031473007053136826,
0.023395268246531487,
-0.029663056135177612,
0.0440756157040596,
0.026713509112596512,
-0.06086792051792145,
-0.05550510808825493,
0.025104666128754616,
0.031171347945928574,
-0.010759142227470875,
-0.04132717475295067,
0.054197922348976135,
0.009870926849544048,
0.019373159855604172,
-0.028221800923347473,
0.00894919317215681,
0.021870220080018044,
-0.009368162602186203,
0.0036471313796937466,
-0.05413088575005531,
0.0022582467645406723,
-0.02492031827569008,
0.048064205795526505,
0.007859871722757816,
0.06093495711684227,
0.01664985716342926,
0.04668998718261719,
0.009376542642712593,
-0.056644704192876816,
0.0023629891220480204,
0.008153150789439678,
0.019708335399627686,
0.03261260315775871,
-0.04645536094903946,
0.04648888111114502,
-0.00734034925699234,
-0.005019257310777903,
-0.04387450963258743,
-0.08386097848415375,
-0.013675171881914139,
-0.011949016712605953,
-0.037573203444480896,
0.04712571203708649,
-0.008371015079319477,
-0.02300981618463993,
-0.0018026172183454037,
-0.02230594865977764,
0.014194694347679615,
-0.012585850432515144,
-0.0478966198861599,
0.027333583682775497,
0.066632941365242,
0.016440371051430702,
-0.0742749497294426,
0.012502056546509266,
-0.011814946308732033,
-0.006854344625025988,
0.016549304127693176,
0.060532744973897934,
0.02617722749710083,
-0.0009233045275323093,
-0.03941667079925537,
-0.026462126523256302,
-0.04035516455769539,
-0.0004558914224617183,
0.03329971432685852,
-0.07092319428920746,
-0.032662879675626755,
-0.012208777479827404,
0.006963276769965887,
0.005203603766858578,
0.03159031644463539,
0.0056183841079473495,
0.010113929398357868,
-0.057080432772636414,
-0.03189197555184364,
0.008563741110265255,
-0.009183816611766815,
-0.046857573091983795,
-0.0518852099776268,
0.03871280327439308,
0.01370031014084816,
-0.03693636879324913,
0.052253901958465576,
-0.0008578405249863863,
0.040254611521959305,
0.011773048900067806,
0.02545659989118576,
-0.0866764560341835,
-0.056175459176301956,
-0.049740083515644073,
-0.03154003992676735,
0.03720451146364212,
-0.014487972483038902,
0.026981649920344353,
0.004097523633390665,
0.01783135160803795,
0.015619191341102123,
0.013499204069375992,
-0.03750617057085037,
0.04310360550880432,
0.05768375098705292,
0.012577471323311329,
0.019406678155064583,
0.03552863374352455,
0.035361044108867645,
-0.06478947401046753,
0.029663056135177612,
0.059091489762067795,
0.03237798064947128,
-0.013616516254842281,
-0.057650234550237656,
-0.008224375545978546,
-0.04447782412171364,
0.01955750584602356,
0.07373867183923721,
-0.008019080385565758,
-0.0021440775599330664,
0.002149314619600773,
-0.02691461518406868,
-0.06713570654392242,
-0.010197723284363747,
-0.06532575935125351,
0.01101052388548851,
0.015476741828024387,
-0.0430365689098835,
-0.01479801069945097,
-0.010666969232261181,
0.015200220979750156,
-0.02007702924311161,
-0.023076852783560753,
0.02569122239947319,
0.06911324709653854,
-0.036333054304122925,
-0.04424320161342621,
0.015443223528563976,
-0.0022729106713086367,
0.010331793688237667,
-0.018250320106744766,
-0.05741560831665993,
-0.0036387520376592875,
-0.020847933366894722,
-0.008400342427194118,
0.00004055495810462162,
0.04739385470747948,
0.00035114900674670935,
0.054700687527656555,
-0.04283546283841133,
-0.023378510028123856,
0.033852752298116684,
-0.017445899546146393,
0.03430524095892906,
0.06301304697990417,
0.01176466979086399,
-0.014144417829811573,
-0.006137906573712826,
-0.029177051037549973,
0.05704691633582115,
0.005547158885747194,
0.017546452581882477,
-0.01715262047946453,
0.03794189915060997,
-0.011588701978325844,
0.003165316302329302,
0.033668406307697296,
-0.043908026069402695,
0.005513641517609358,
-0.01554377656430006,
-0.048566970974206924,
-0.018535220995545387,
-0.028070971369743347,
0.04089144617319107,
-0.07863223552703857,
-0.02352933958172798,
0.08406208455562592,
0.015711365267634392,
-0.0050402055494487286,
-0.008940814062952995,
0.08627424389123917,
-0.021417731419205666,
0.006980035454034805,
0.012275813147425652,
0.016540924087166786,
0.011178111657500267,
0.026344815269112587,
-0.028070971369743347,
0.06371691823005676,
0.10242971777915955,
0.002019434003159404,
-0.014337143860757351,
0.03283046558499336,
-0.006016405299305916,
0.0008164672181010246,
-0.012988061644136906,
-0.0046589430421590805,
-0.013222684152424335,
-0.0027253979351371527,
0.05892390012741089,
-0.0023923171684145927,
-0.021954013034701347,
0.013792483136057854,
0.060331638902425766,
0.007386436220258474,
-0.038008932024240494,
-0.018216803669929504,
-0.015736503526568413,
-0.05104726925492287,
0.022188635542988777,
-0.028540216386318207,
-0.0434722974896431,
-0.004897756036370993,
-0.02450134977698326,
0.0651581734418869,
0.05429847538471222,
0.005903283134102821,
0.0518852099776268,
-0.006686756853014231,
-0.012962923385202885,
-0.02592584677040577,
-0.021132832393050194,
0.007629438769072294,
-0.013264581561088562,
-0.059326112270355225,
0.03257908672094345,
-0.056443601846694946,
-0.019121777266263962,
0.00022467250528279692,
0.0406903401017189,
-0.005119809880852699,
0.011504908092319965,
0.0020571413915604353,
-0.07286721467971802,
-0.06110254302620888,
0.03676878288388252,
0.016574442386627197,
-0.030417202040553093,
0.016507407650351524,
0.013951691798865795,
0.01184846367686987,
-0.06090143695473671,
0.02249029465019703,
0.05550510808825493,
-0.06230917572975159,
0.023797480389475822,
0.013046717271208763,
0.03400358185172081,
0.003808434819802642,
-0.05047747120261192,
-0.030266372486948967,
0.03210983797907829,
0.02151828445494175,
-0.025272253900766373,
0.024182932451367378,
-0.047326818108558655,
-0.008412911556661129,
0.013130511157214642,
0.028540216386318207,
0.03572973608970642,
0.030467478558421135,
0.02252381294965744,
0.04327119141817093,
0.09311182796955109,
0.0070009841583669186,
-0.01564432866871357,
-0.01933964155614376,
-0.0001851322449510917,
0.02694813162088394,
0.01634819805622101,
-0.041461244225502014,
-0.0016297921538352966,
0.02741737850010395,
-0.049036215990781784,
-0.04457837715744972,
-0.011588701978325844,
-0.01809949241578579,
-0.014379040338099003,
0.00977875292301178,
0.033601369708776474,
0.0801740437746048,
0.0478966198861599,
0.001250624656677246,
0.019255848601460457,
0.05855520814657211,
-0.05211983248591423,
-0.015585673972964287,
-0.06814123690128326,
0.031221622601151466,
-0.023847756907343864,
-0.02349582128226757,
0.024082379415631294,
-0.0006446896586567163,
-0.03549511358141899,
0.00126947823446244,
-0.02103227935731411,
-0.07796188443899155,
-0.060063499957323074,
-0.01761348731815815,
-0.0007190567557699978,
0.032646119594573975,
0.1087980568408966,
-0.014831528067588806,
-0.0198256466537714,
-0.05610842630267143,
-0.09498881548643112,
0.0024991543032228947,
0.00323654105886817,
0.011404355987906456,
-0.013792483136057854,
0.05912500619888306,
-0.0035235353279858828,
-0.04675702005624771,
-0.033450543880462646,
0.04866752400994301,
0.01246015913784504,
-0.0028573735617101192,
0.016691753640770912,
-0.02125014364719391,
-0.06043219193816185,
-0.040522750467061996,
0.0031632212921977043,
-0.02543984167277813,
-0.02205456607043743,
0.0016444561770185828,
0.03234446048736572,
-0.11804890632629395,
0.00818247813731432,
0.0542314387857914,
-0.0440756157040596,
-0.011354079470038414,
-0.021870220080018044,
-0.030718859285116196,
0.005480123683810234,
0.017496176064014435,
0.031473007053136826,
0.06817474961280823,
-0.01710234396159649,
-0.008496705442667007,
0.017085585743188858,
-0.01664985716342926,
0.025523634627461433,
0.05034340173006058,
-0.0459861159324646,
-0.032679639756679535,
0.016725271940231323,
0.04498058930039406,
-0.016959894448518753,
-0.006200751755386591,
-0.013063475489616394,
-0.028674287721514702,
-0.03009878471493721,
0.06187344714999199,
0.04544983431696892,
0.024886801838874817,
-0.016817444935441017,
-0.03346730023622513,
0.021417731419205666,
-0.0065191686153411865,
0.040991995483636856,
0.03081941232085228,
-0.014655561186373234,
-0.03740561753511429,
0.015744881704449654,
-0.03492531552910805,
0.034104134887456894,
-0.012770197354257107,
-0.09217333793640137,
0.03955074027180672,
0.03837762773036957,
-0.0017973800422623754,
0.011923878453671932,
-0.0006640669889748096,
0.05332646518945694,
-0.02450134977698326,
0.013423790223896503,
-0.04477948322892189,
-0.0411260686814785,
0.07031987607479095,
0.025573911145329475,
0.00253895646892488,
-0.07219686359167099,
0.012309330515563488,
-0.06291249394416809,
-0.021233385428786278,
0.010097170248627663,
0.037774309515953064,
-0.02592584677040577,
0.001668546930886805,
0.013289719820022583,
0.002486585173755884,
-0.015577293932437897,
0.0014716311125084758,
-0.04012054204940796,
0.06485651433467865,
0.03961777687072754,
0.009829029440879822,
-0.055639177560806274,
0.023780720308423042,
0.011236768215894699,
-0.019909441471099854,
-0.04923732206225395,
0.009100022725760937,
-0.018434667959809303,
-0.006016405299305916,
0.0001996652572415769,
0.018736325204372406,
0.021400973200798035,
-0.005459175445139408,
0.03148976340889931,
0.0006797783426009119,
0.03380247578024864,
0.028037453070282936,
0.002763105323538184,
0.009971478953957558,
-0.020395446568727493,
-0.04337174445390701,
-0.03420468792319298,
-0.008722949773073196,
-0.07910148054361343,
-0.050544507801532745,
0.031942252069711685,
-0.008530223742127419,
0.017043687403202057,
0.028188282623887062,
0.053225912153720856,
-0.04970656707882881,
0.036802299320697784,
-0.00006595499871764332,
0.025037629529833794,
-0.044377271085977554,
-0.047561440616846085,
-0.013147269375622272,
-0.032662879675626755,
-0.008764846250414848,
0.004390802700072527,
-0.025020871311426163,
-0.04715923219919205,
-0.019172053784132004,
0.009007848799228668,
-0.011429494246840477,
0.0337521992623806,
-0.037841346114873886,
0.1084628775715828,
0.013390271924436092,
-0.033852752298116684,
0.0057356953620910645,
0.013851138763129711,
-0.03284722566604614,
-0.03653416037559509,
0.013415410183370113,
-0.008781605400145054,
0.031422730535268784,
-0.09518992155790329,
-0.08245324343442917,
-0.006825016811490059,
-0.04323767498135567,
0.013817621394991875,
0.049773603677749634,
0.024652177467942238,
-0.06328118592500687,
-0.018535220995545387,
-0.006041543558239937,
0.018250320106744766,
-0.021166350692510605,
0.011747910641133785,
0.026227504014968872,
-0.0440756157040596,
-0.017077205702662468,
-0.05191872641444206,
0.015024254098534584,
-0.017982181161642075,
0.02202104777097702,
-0.05825354903936386,
-0.02373044565320015,
-0.008647534996271133,
-0.022624364122748375,
-0.0042106457985937595,
-0.001064706826582551,
-0.001243292586877942,
-0.038243554532527924,
0.08091143518686295,
-0.005861386191099882,
0.002191211562603712,
0.014605284668505192,
-0.022121600806713104,
-0.012719920836389065,
0.010918350890278816,
0.0514494813978672,
-0.03261260315775871,
-0.02103227935731411,
0.053695160895586014,
0.028322352096438408,
-0.021132832393050194,
0.002828045515343547,
-0.018702808767557144,
0.04625425860285759,
0.007227227557450533,
-0.03222715109586716,
-0.03499235212802887,
-0.018920673057436943,
0.010189343243837357,
-0.038243554532527924,
-0.017931904643774033,
0.04400857910513878,
0.006778929848223925,
0.029730090871453285,
-0.01980888843536377,
-0.01260260958224535,
-0.04568445682525635,
-0.012652885168790817,
0.07742560654878616,
0.0061169578693807125,
-0.019004466012120247,
0.002957926131784916,
0.018216803669929504,
-0.008647534996271133,
-0.002859468339011073,
0.0008033744525164366,
-0.023093611001968384,
-0.016038160771131516,
0.028272077441215515,
-0.07058801501989365,
-0.031456246972084045,
0.042936015874147415,
0.014018726535141468,
-0.05939314886927605,
0.06623073667287827,
0.028992705047130585,
-0.009946340695023537,
-0.05506937950849533,
-0.014772872440516949,
0.019993234425783157,
0.05771726742386818,
-0.0042106457985937595,
0.0008599353604950011,
-0.004244163166731596,
0.04276842996478081,
0.0523209385573864,
0.006209131330251694,
0.026713509112596512,
-0.03432200103998184,
-0.04471244663000107,
0.0249873548746109,
-0.015015874989330769,
0.006129526998847723,
-0.010666969232261181,
-0.0601305328309536,
-0.027517931535840034,
0.029746849089860916,
-0.013071855530142784,
0.057884857058525085,
0.003531914670020342,
-0.052455008029937744,
-0.07668821513652802,
0.04431023821234703,
0.032411497086286545,
0.042969536036252975,
-0.00678311986848712,
0.014638802036643028,
-0.013650033622980118,
0.020613310858607292,
0.03128865733742714,
0.030903207138180733,
-0.08593907207250595,
0.030635066330432892,
0.01910501904785633,
0.0023923171684145927,
-0.05801892653107643,
-0.023160645738244057,
-0.020144063979387283,
-0.04028812795877457,
-0.03475772961974144,
0.007223038002848625,
0.02056303434073925,
0.021618837490677834,
0.051482997834682465,
-0.012921025976538658,
0.01809949241578579,
-0.02401534467935562,
0.06539279222488403,
-0.03740561753511429,
-0.004441079217940569,
-0.03060154803097248,
0.01637333631515503,
0.020412204787135124,
0.011923878453671932,
0.08037514984607697,
0.005279018543660641,
-0.0440756157040596,
0.037338580936193466,
0.038008932024240494,
0.04005350545048714,
-0.06371691823005676,
0.018903912976384163,
0.006854344625025988,
0.029998231679201126,
-0.061538271605968475,
-0.0347912460565567,
-0.019959717988967896,
-0.05034340173006058,
-0.02914353273808956,
0.025322530418634415,
0.07923555374145508,
0.018283838406205177,
0.03398682177066803,
0.01905474252998829,
0.011429494246840477
] |
21,497 | tfields.core | dim |
Manifold dimension
| def dim(tensor):
"""
Manifold dimension
"""
tensor = np.asarray(tensor)
if rank(tensor) == 0:
return 1
return tensor.shape[1]
| (tensor) | [
-0.024058371782302856,
0.020004579797387123,
-0.004474592860788107,
0.03902214765548706,
0.05428555607795715,
0.04691823199391365,
0.0064816600643098354,
0.022207727655768394,
0.0038290703669190407,
0.04300544038414955,
0.018136311322450638,
0.0011500429827719927,
-0.05876235291361809,
-0.03250083327293396,
0.030509186908602715,
-0.01533390674740076,
0.058515600860118866,
0.03220120444893837,
0.013121946714818478,
0.023688241839408875,
0.03338209167122841,
-0.04311119019985199,
0.04208892956376076,
-0.028323665261268616,
-0.010354793630540371,
-0.0009275251068174839,
0.021837597712874413,
-0.003135079052299261,
0.028605667874217033,
-0.009200343862175941,
-0.1051165759563446,
-0.014276396483182907,
0.003287096042186022,
0.09834850579500198,
0.0186826903373003,
0.04973825812339783,
0.04046741500496864,
0.05100727081298828,
-0.05650632828474045,
-0.024657627567648888,
-0.004274106118828058,
-0.014699400402605534,
0.023511990904808044,
0.01352732628583908,
0.0030050931964069605,
0.008076738566160202,
0.050795771181583405,
-0.025397885590791702,
-0.10828910768032074,
0.009279657155275345,
-0.006433190777897835,
-0.029733680188655853,
0.027019402012228966,
-0.03269470855593681,
-0.0517122782766819,
0.0064552221447229385,
0.05107777193188667,
-0.027653908357024193,
-0.05855084955692291,
-0.006406752858310938,
-0.011288927868008614,
0.004368841648101807,
0.007376138120889664,
-0.02959267795085907,
-0.04120767116546631,
0.0054329619742929935,
0.0032165953889489174,
0.0569293312728405,
0.003157110419124365,
-0.011518055573105812,
-0.028922921046614647,
0.008490930311381817,
0.03979765623807907,
0.0077991425059735775,
0.040114909410476685,
-0.03213070333003998,
0.05164177715778351,
0.006468441337347031,
0.06792744249105453,
-0.008358742110431194,
0.0034809731878340244,
-0.007966581732034683,
-0.0013031617272645235,
0.010795422829687595,
0.024181747809052467,
-0.02881716936826706,
0.01951107382774353,
0.04374569654464722,
-0.06327439844608307,
-0.06426140666007996,
-0.012020372785627842,
0.015906725078821182,
0.04050266370177269,
0.03570861741900444,
-0.02106209099292755,
0.027142778038978577,
-0.027195652946829796,
-0.04268818721175194,
-0.015122405253350735,
-0.04381619766354561,
-0.018894193693995476,
0.06764544546604156,
0.0019817312713712454,
-0.000594299053773284,
-0.04469745606184006,
-0.007596452720463276,
-0.029204923659563065,
-0.017210988327860832,
-0.06024286523461342,
-0.013095509260892868,
-0.01737842708826065,
0.031707700341939926,
-0.018876567482948303,
0.04191267862915993,
0.03930415213108063,
-0.024234622716903687,
0.03546186164021492,
0.028270788490772247,
-0.021132592111825943,
0.03327634185552597,
0.032941460609436035,
0.007852017879486084,
-0.007896080613136292,
-0.06711668521165848,
0.033716969192028046,
0.036625124514102936,
0.01582741178572178,
0.008746495470404625,
-0.022207727655768394,
-0.00020750895782839507,
0.0007375036366283894,
0.003714506747201085,
-0.006389128044247627,
0.008618713356554508,
0.020744837820529938,
0.003384034615010023,
0.05336904525756836,
-0.045825470238924026,
-0.028200289234519005,
0.02360011637210846,
0.04617797210812569,
0.036202121526002884,
-0.010407669469714165,
-0.0023617742117494345,
-0.03253608196973801,
-0.00040951004484668374,
0.013245322741568089,
-0.04085516929626465,
0.11237815022468567,
-0.010636796243488789,
0.005111302249133587,
-0.01655004359781742,
0.04667147621512413,
-0.011782432906329632,
-0.05005551129579544,
0.050795771181583405,
0.00111919897608459,
-0.08995892107486725,
0.009367783553898335,
-0.05551932007074356,
-0.06757494062185287,
-0.007583233993500471,
-0.02899342216551304,
0.026790274307131767,
-0.007217511534690857,
-0.007843205705285072,
0.048010990023612976,
-0.006922289729118347,
-0.03761213645339012,
0.03458060324192047,
0.04078466817736626,
0.0008454578928649426,
-0.03581436723470688,
0.0007215308141894639,
0.03870489448308945,
0.05410930514335632,
-0.02448137477040291,
0.012769442982971668,
-0.01762518100440502,
0.0163032915443182,
-0.0019641059916466475,
-0.018242061138153076,
-0.023705868050456047,
-0.013456825166940689,
-0.004291731398552656,
0.013254135847091675,
0.045155711472034454,
0.013959143310785294,
-0.011879371479153633,
0.04762323573231697,
-0.008345522917807102,
0.017034737393260002,
-0.013201260007917881,
0.05788109079003334,
0.013403949327766895,
-0.003844492370262742,
0.03243033215403557,
0.009094593115150928,
0.02229585312306881,
-0.040185410529375076,
-0.028094537556171417,
-0.01624160446226597,
0.004913019016385078,
0.0460369698703289,
-0.007759485859423876,
0.0015201717615127563,
0.016629356890916824,
0.05100727081298828,
-0.008887496776878834,
-0.020780088379979134,
-0.05164177715778351,
-0.04194793105125427,
0.03761213645339012,
0.03592011705040932,
0.05989036336541176,
-0.01762518100440502,
-0.03785888850688934,
-0.02627914398908615,
-0.004157339222729206,
-0.004666266497224569,
0.06542467325925827,
0.029680803418159485,
0.050090763717889786,
0.05527256429195404,
0.013765266165137291,
-0.05943210795521736,
0.002192131709307432,
0.01142111700028181,
-0.026614023372530937,
0.010909986682236195,
-0.0027583406772464514,
0.03102031722664833,
0.05291078984737396,
0.036554623395204544,
0.07141723483800888,
-0.00916509423404932,
-0.014664149843156338,
-0.05449705943465233,
0.025415509939193726,
0.008755308575928211,
-0.032888587564229965,
-0.05312229320406914,
-0.013218885287642479,
-0.005309585481882095,
-0.035602863878011703,
0.022013850510120392,
-0.020004579797387123,
0.04251193627715111,
-0.013923892751336098,
-0.007684578653424978,
-0.12112023681402206,
-0.02550363540649414,
-0.025715138763189316,
0.011200802400708199,
0.012469815090298653,
-0.04300544038414955,
0.03227170556783676,
0.0027693563606590033,
0.011729557998478413,
-0.007477482780814171,
-0.016391417011618614,
-0.007561202626675367,
0.01648835651576519,
0.017933622002601624,
-0.03264183551073074,
0.01105980109423399,
0.02705465257167816,
0.05629482492804527,
0.006261345464736223,
0.013025008141994476,
0.09221494197845459,
0.073038749396801,
0.021502720192074776,
-0.09313145279884338,
-0.008949185721576214,
-0.058092594146728516,
0.055131565779447556,
0.024393249303102493,
-0.028217913582921028,
0.06778644025325775,
-0.037400633096694946,
-0.07924281060695648,
-0.05551932007074356,
0.007838798686861992,
-0.08403685688972473,
0.01643548160791397,
0.031284693628549576,
-0.045155711472034454,
-0.02668452262878418,
0.03558523952960968,
0.022190101444721222,
0.0036373964976519346,
-0.018277311697602272,
0.02638489566743374,
-0.0678216964006424,
-0.021079715341329575,
-0.02656114660203457,
0.0070192283019423485,
0.03250083327293396,
0.01352732628583908,
0.01144755445420742,
-0.01986357755959034,
-0.046107470989227295,
-0.04691823199391365,
0.023036111146211624,
0.016444293782114983,
0.05428555607795715,
0.04007966071367264,
0.062075886875391006,
0.0023221175651997328,
-0.021731847897171974,
-0.005477024707943201,
-0.08537637442350388,
0.04466220736503601,
0.036272622644901276,
0.08749139308929443,
0.003998712636530399,
-0.002853075973689556,
-0.00907696783542633,
0.07071222364902496,
0.051148273050785065,
0.031584322452545166,
-0.011553306132555008,
0.010936424136161804,
-0.05259353667497635,
-0.06722243875265121,
0.025785639882087708,
-0.03362884372472763,
0.00003375290907570161,
0.04015016183257103,
-0.020374707877635956,
-0.020744837820529938,
0.0060762809589505196,
0.03089694119989872,
-0.053228046745061874,
-0.0456492155790329,
0.059220604598522186,
0.012328813783824444,
-0.03933940455317497,
0.02615576796233654,
0.024005495011806488,
-0.03332921490073204,
0.01212612446397543,
0.020357083529233932,
0.00921796914190054,
0.01343038771301508,
0.0037299287505447865,
-0.0013890845002606511,
0.04737648367881775,
0.048187244683504105,
0.011597368866205215,
0.001974020153284073,
0.02467525191605091,
-0.003311330685392022,
-0.0030381404794752598,
0.05569557100534439,
-0.027089903131127357,
0.03789413720369339,
-0.012399313971400261,
0.04631897434592247,
-0.02046283520758152,
-0.024234622716903687,
0.011050987988710403,
0.01974020153284073,
0.010795422829687595,
0.0017448929138481617,
0.007926925085484982,
0.0034170818980783224,
0.034192848950624466,
0.0051597715355455875,
-0.026525896042585373,
-0.031002692878246307,
-0.03849339485168457,
0.0017867527203634381,
0.028975795954465866,
0.05023176595568657,
-0.06056011840701103,
0.026719773188233376,
-0.009517597034573555,
-0.02994518168270588,
-0.050267014652490616,
0.010213792324066162,
0.0310731939971447,
-0.04346369579434395,
-0.058445099741220474,
0.05054901912808418,
-0.06743393838405609,
-0.004168355371803045,
-0.05484956130385399,
0.0019993563182651997,
0.0171493012458086,
-0.0059484983794391155,
-0.021678971126675606,
-0.05005551129579544,
-0.0603838674724102,
0.058797601610422134,
-0.02437562495470047,
0.00652572326362133,
0.01779261976480484,
-0.020885838195681572,
-0.05474381148815155,
-0.030385810881853104,
0.011077425442636013,
0.06302764266729355,
-0.023494364693760872,
0.015404407866299152,
-0.044626958668231964,
0.09334295243024826,
0.0027649502735584974,
0.006080687046051025,
0.03006855770945549,
0.0058207157999277115,
0.045578718185424805,
-0.02746003121137619,
-0.013483262620866299,
-0.02407599613070488,
0.013386324979364872,
0.009508784860372543,
0.013218885287642479,
-0.01073373481631279,
0.022207727655768394,
0.009376595728099346,
0.03817614167928696,
0.02733665518462658,
-0.02234872803092003,
-0.01584503799676895,
-0.039409901946783066,
-0.007759485859423876,
0.01381814107298851,
0.00806792639195919,
-0.08354335278272629,
-0.029874680563807487,
0.021132592111825943,
-0.06588292121887207,
-0.027001775801181793,
0.011614994145929813,
-0.024040745571255684,
0.024869129061698914,
0.026014765724539757,
0.04078466817736626,
0.06538941711187363,
0.02906392328441143,
0.021379344165325165,
-0.020674336701631546,
0.020057454705238342,
-0.015765724703669548,
0.005049614235758781,
-0.0108571108430624,
0.010962862521409988,
-0.02888767048716545,
-0.02317711152136326,
-0.049949761480093,
0.02971605397760868,
-0.02953980304300785,
0.0313023217022419,
-0.038387641310691833,
-0.08283834904432297,
-0.01915857195854187,
-0.0019178399816155434,
-0.017827870324254036,
-0.02888767048716545,
0.05989036336541176,
-0.014628900215029716,
0.017475366592407227,
-0.012399313971400261,
-0.09538747370243073,
-0.027424780651926994,
0.005631245207041502,
0.004393076058477163,
-0.02645539492368698,
0.04286443814635277,
0.018841318786144257,
0.009922976605594158,
-0.03771788626909256,
0.010566296055912971,
0.010152104310691357,
0.06577717512845993,
0.03072069026529789,
0.020092705264687538,
0.01601247675716877,
-0.030562063679099083,
0.0066006300039589405,
-0.006710787303745747,
-0.010548670776188374,
-0.020903464406728745,
0.04311119019985199,
-0.09108693152666092,
0.007415794767439365,
0.04769373685121536,
-0.003681459464132786,
-0.04286443814635277,
0.004754392430186272,
0.02562701143324375,
-0.0319191999733448,
0.04029116407036781,
-0.043675195425748825,
0.04060841724276543,
0.021784722805023193,
-0.005507868714630604,
0.048363495618104935,
-0.025010131299495697,
0.02728377841413021,
0.033664096146821976,
-0.017827870324254036,
-0.07095897942781448,
0.0029412019066512585,
-0.0012679114006459713,
0.003723319387063384,
0.041419174522161484,
-0.005833934526890516,
-0.012787068262696266,
0.019581574946641922,
-0.0017614164389669895,
0.016752734780311584,
0.03348784148693085,
0.07205174118280411,
0.002989671193063259,
0.04205368086695671,
0.017995309084653854,
0.022225352004170418,
0.010178541764616966,
-0.015430845320224762,
-0.010372418910264969,
0.0000010542405561864143,
-0.044380202889442444,
0.028323665261268616,
0.028200289234519005,
-0.04057316482067108,
0.011315366253256798,
0.05728183686733246,
-0.021273592486977577,
0.0073893568478524685,
-0.012795881368219852,
0.05936160683631897,
-0.009182718582451344,
0.042265184223651886,
-0.04416870325803757,
-0.06249888986349106,
-0.0020136767998337746,
0.025715138763189316,
-0.05671783164143562,
-0.09940601885318756,
0.041665926575660706,
-0.03072069026529789,
-0.018347812816500664,
0.03523273393511772,
0.013624264858663082,
-0.01070729736238718,
-0.029204923659563065,
-0.019581574946641922,
-0.062075886875391006,
0.00029990344773977995,
-0.011253677308559418,
-0.034139975905418396,
0.006979571655392647,
0.04494421184062958,
-0.030509186908602715,
-0.06179388239979744,
0.012408127076923847,
-0.012117311358451843,
-0.005080458242446184,
-0.06743393838405609,
0.058445099741220474,
0.06609442830085754,
0.012346439063549042,
-0.028094537556171417,
-0.030755938962101936,
-0.03433385118842125,
-0.008548212237656116,
0.049844011664390564,
-0.039832908660173416,
-0.0030139058362692595,
-0.018823692575097084,
0.01825968734920025,
0.031408071517944336,
0.0072439489886164665,
0.019370073452591896,
-0.031936828047037125,
0.024745753034949303,
-0.0249748807400465,
-0.032412707805633545,
-0.027072276920080185,
0.031760573387145996,
0.04980875924229622,
-0.024692878127098083,
0.06313339620828629,
-0.058868102729320526,
0.019229071214795113,
-0.04667147621512413,
0.004798455163836479,
-0.03933940455317497,
-0.052100032567977905,
0.017008299008011818,
0.02284223400056362,
-0.00883902795612812,
-0.01843593828380108,
-0.0031108444090932608,
-0.05425030365586281,
0.04920950531959534,
-0.027812534943223,
0.0011087340535596013,
0.0009010873618535697,
-0.02733665518462658,
0.06937271356582642,
-0.012134936638176441,
-0.07867880910634995,
-0.03248320892453194,
0.03297671303153038,
0.012743005529046059,
-0.06655268371105194,
-0.0019112305017188191,
-0.05664733052253723,
0.0015554222045466304,
-0.06013711541891098,
-0.05333379656076431,
-0.013025008141994476,
0.0033994566183537245,
0.0473412349820137,
0.05597757175564766,
-0.004102260805666447,
0.03708337992429733,
-0.029874680563807487,
0.00019635552598629147,
-0.0530165433883667,
0.0036660374607890844,
0.023705868050456047,
0.010566296055912971,
-0.07783279567956924,
-0.008799371309578419,
-0.040009159594774246,
-0.01061917096376419,
0.0012877397239208221,
-0.023882118985056877,
-0.044873710721731186,
0.028429416939616203,
0.011350615881383419,
-0.037506382912397385,
-0.002337539568543434,
-0.034668728709220886,
0.015510158613324165,
-0.017404865473508835,
0.07783279567956924,
0.030632562935352325,
0.009438283741474152,
0.049949761480093,
-0.040114909410476685,
0.05164177715778351,
0.013483262620866299,
0.05146552622318268,
0.00596171710640192,
-0.0072351363487541676,
0.013500887900590897,
0.04579021781682968,
0.014443835243582726,
0.04233568161725998,
-0.004188183695077896,
0.006367096211761236,
0.024093622341752052,
-0.04878649860620499,
-0.042723435908555984,
0.013650702312588692,
-0.022683607414364815,
0.006538941990584135,
0.009262031875550747,
0.016100602224469185,
-0.016832048073410988,
0.036730874329805374,
-0.08135782927274704,
-0.05107777193188667,
-0.018894193693995476,
-0.027125151827931404,
0.04113717004656792,
0.0039766812697052956,
-0.033716969192028046,
0.05978461354970932,
-0.029909931123256683,
0.05502581223845482,
0.025644637644290924,
0.008371960371732712,
0.011764807626605034,
-0.030526813119649887,
-0.017096424475312233,
-0.0332234650850296,
0.04469745606184006,
0.01612704060971737,
-0.08022981882095337,
-0.017096424475312233,
-0.012240687385201454,
0.020145582035183907,
0.025292133912444115,
-0.017633993178606033,
-0.03669562563300133,
0.053580548614263535,
0.02347674034535885,
-0.01557184662669897,
0.008843434043228626,
-0.03831714391708374,
0.07198123633861542,
-0.00003645520700956695,
-0.0019178399816155434,
0.03147857263684273,
-0.017008299008011818,
-0.07691628485918045,
0.007852017879486084,
-0.035320863127708435,
0.03094981610774994,
-0.0530165433883667,
0.0005981545546092093,
0.03382272273302078,
0.026402520015835762,
-0.04490895941853523,
0.030808815732598305,
0.0860813781619072,
-0.05685883387923241,
-0.030438685789704323,
0.01915857195854187,
0.013615451753139496,
0.08474186807870865,
-0.016814421862363815,
-0.02159084565937519,
-0.027900660410523415,
-0.02633201889693737,
0.03417522460222244,
0.03297671303153038,
-0.028094537556171417,
-0.01142111700028181,
0.034192848950624466,
0.022930359467864037,
-0.02229585312306881,
0.006948727183043957,
-0.018242061138153076,
-0.05640057846903801,
-0.00892274733632803,
0.0191056951880455,
0.02069196105003357,
0.03006855770945549,
0.05855084955692291,
0.006446409970521927,
0.019193820655345917,
-0.06204063445329666,
0.07508327066898346,
-0.008759714663028717,
0.0022031476255506277,
-0.03683662787079811,
0.10561008006334305,
0.0007892776047810912,
-0.016646983101963997,
0.021132592111825943,
-0.016206353902816772,
-0.025785639882087708,
0.05580132082104683,
-0.013853391632437706,
-0.007195479702204466,
-0.09623348712921143,
-0.009808412753045559,
-0.04751748591661453,
0.035320863127708435,
-0.07138197869062424,
-0.04804624244570732,
-0.014611274935305119,
-0.00327608035877347,
-0.08551737666130066,
-0.022489730268716812,
0.005481431260704994,
0.020145582035183907,
-0.024710502475500107,
0.05410930514335632,
-0.0223663542419672
] |
21,498 | tfields.mask | evalf |
Linking sympy and numpy by retrieving a mask according to the cut_expression
Args:
array (numpy ndarray)
cut_expression (sympy logical expression)
coord_sys (str): coord_sys to evalfuate the expression in.
Returns:
np.array: mask which is True, where cut_expression evalfuates True.
Examples:
>>> import sympy
>>> import numpy as np
>>> import tfields
>>> x, y, z = sympy.symbols('x y z')
>>> a = np.array([[1., 2., 3.], [4., 5., 6.], [1, 2, -6],
... [-5, -5, -5], [1,0,-1], [0,1,-1]])
>>> assert np.array_equal(
... tfields.evalf(a, x > 0),
... np.array([ True, True, True, False, True, False]))
And combination
>>> assert np.array_equal(
... tfields.evalf(a, (x > 0) & (y < 3)),
... np.array([True, False, True, False, True, False]))
Or combination
>>> assert np.array_equal(
... tfields.evalf(a, (x > 0) | (y > 3)),
... np.array([True, True, True, False, True, False]))
If array of other shape than (?, 3) is given, the coords need to be
specified
>>> a0, a1 = sympy.symbols('a0 a1')
>>> assert np.array_equal(
... tfields.evalf([[0., 1.], [-1, 3]], a1 > 2, coords=[a0, a1]),
... np.array([False, True], dtype=bool))
>= is taken care of
>>> assert np.array_equal(
... tfields.evalf(a, x >= 0),
... np.array([ True, True, True, False, True, True]))
| def evalf(array, cut_expression=None, coords=None):
"""
Linking sympy and numpy by retrieving a mask according to the cut_expression
Args:
array (numpy ndarray)
cut_expression (sympy logical expression)
coord_sys (str): coord_sys to evalfuate the expression in.
Returns:
np.array: mask which is True, where cut_expression evalfuates True.
Examples:
>>> import sympy
>>> import numpy as np
>>> import tfields
>>> x, y, z = sympy.symbols('x y z')
>>> a = np.array([[1., 2., 3.], [4., 5., 6.], [1, 2, -6],
... [-5, -5, -5], [1,0,-1], [0,1,-1]])
>>> assert np.array_equal(
... tfields.evalf(a, x > 0),
... np.array([ True, True, True, False, True, False]))
And combination
>>> assert np.array_equal(
... tfields.evalf(a, (x > 0) & (y < 3)),
... np.array([True, False, True, False, True, False]))
Or combination
>>> assert np.array_equal(
... tfields.evalf(a, (x > 0) | (y > 3)),
... np.array([True, True, True, False, True, False]))
If array of other shape than (?, 3) is given, the coords need to be
specified
>>> a0, a1 = sympy.symbols('a0 a1')
>>> assert np.array_equal(
... tfields.evalf([[0., 1.], [-1, 3]], a1 > 2, coords=[a0, a1]),
... np.array([False, True], dtype=bool))
>= is taken care of
>>> assert np.array_equal(
... tfields.evalf(a, x >= 0),
... np.array([ True, True, True, False, True, True]))
"""
if isinstance(array, list):
array = np.array(array)
if cut_expression is None:
return np.full((array.shape[0]), False, dtype=bool)
if len(array.shape) != 2:
raise NotImplementedError("Array shape other than 2")
if coords is None:
if array.shape[1] == 3:
coords = sympy.symbols("x y z")
else:
raise ValueError("coords are None and shape is not (?, 3)")
elif len(coords) != array.shape[1]:
raise ValueError(
"Length of coords is not {0} but {1}".format(array.shape[1], len(coords))
)
pre_mask = sympy.utilities.lambdify(
coords, cut_expression, modules={"&": np.logical_and, "|": np.logical_or}
)
mask = np.array([pre_mask(*vals) for vals in array], dtype=bool)
return mask
| (array, cut_expression=None, coords=None) | [
0.016092568635940552,
-0.015628917142748833,
0.01899039000272751,
0.016372691839933395,
0.0061916783452034,
0.002464355668053031,
-0.05192895978689194,
-0.08307088166475296,
-0.054363131523132324,
-0.021579110994935036,
0.05208351090550423,
0.0017097146483138204,
0.021154096350073814,
-0.014208984561264515,
-0.040878601372241974,
-0.023916685953736305,
-0.026254262775182724,
0.019077325239777565,
-0.020072244107723236,
0.01485616434365511,
-0.02571333572268486,
-0.04609467834234238,
0.018488101661205292,
0.0016626251162961125,
0.07074548304080963,
0.007365296129137278,
0.03320903331041336,
0.0009810333140194416,
-0.03811601176857948,
-0.0006393318763002753,
0.0037381895817816257,
-0.02482466958463192,
-0.004416762851178646,
-0.01629541628062725,
0.009456557221710682,
-0.0748797059059143,
0.017058508470654488,
0.02467012032866478,
0.043544597923755646,
0.04509010165929794,
0.002781908493489027,
-0.06340433657169342,
0.03195331245660782,
0.00112833920866251,
-0.036300044506788254,
-0.02003360539674759,
0.03498636558651924,
-0.024129193276166916,
-0.08059807121753693,
0.05216078460216522,
0.017734667286276817,
-0.04849021136760712,
0.05266307666897774,
-0.0046510035172104836,
0.008442319929599762,
0.06614760309457779,
0.022390499711036682,
0.03618413209915161,
-0.003305931342765689,
-0.08198902755975723,
0.00689681526273489,
0.06120198965072632,
0.02389736846089363,
-0.006409015040844679,
0.020844995975494385,
0.018178999423980713,
-0.046249229460954666,
0.017396587878465652,
-0.008804547600448132,
0.026717914268374443,
-0.07692749798297882,
0.05084710568189621,
0.04709925875067711,
-0.07549791038036346,
0.019502338021993637,
-0.007838606834411621,
0.00020511142793111503,
-0.022757558152079582,
-0.0017930270405486226,
-0.027780449017882347,
-0.015281178057193756,
0.04509010165929794,
0.02457352541387081,
0.06997273117303848,
-0.015339135192334652,
0.02076772041618824,
0.012653820216655731,
0.06390662491321564,
0.08577551692724228,
-0.03543069586157799,
0.03490908816456795,
0.005747345741838217,
-0.025636060163378716,
0.00921507179737091,
-0.05617909878492355,
0.037343259900808334,
0.035102277994155884,
-0.014489106833934784,
-0.031779441982507706,
-0.004914222285151482,
0.07696613669395447,
-0.03550797328352928,
-0.04377642273902893,
0.010712279938161373,
0.03622276708483696,
0.058420080691576004,
-0.013928861357271671,
0.00989123061299324,
-0.01379363052546978,
-0.012914624065160751,
0.023066658526659012,
0.03743985295295715,
-0.028398649767041206,
0.03237832337617874,
-0.05714504048228264,
-0.002461940748617053,
-0.022139355540275574,
0.008345725946128368,
-0.03232036903500557,
-0.06348160654306412,
0.06510438770055771,
-0.005781153682619333,
-0.00042893795762211084,
0.03212717920541763,
0.06039059907197952,
0.05022890493273735,
0.02644745074212551,
0.040530864149332047,
0.022371182218194008,
-0.0794389471411705,
0.0030282235238701105,
0.02045862004160881,
-0.03034985065460205,
0.04690606892108917,
0.008785229176282883,
-0.012953261844813824,
-0.010924787260591984,
-0.03176012262701988,
-0.031354427337646484,
-0.03842511400580406,
-0.010026462376117706,
0.00582945067435503,
0.0034025253262370825,
0.02206207998096943,
-0.025983799248933792,
-0.009949186816811562,
0.006674648728221655,
-0.014295918866991997,
0.029635054990649223,
0.05590863525867462,
-0.012296422384679317,
-0.004641343839466572,
-0.021617747843265533,
0.012393016368150711,
0.027297478169202805,
0.03459998965263367,
0.02940322831273079,
-0.0465196929872036,
0.027567941695451736,
0.02779976651072502,
-0.014943099580705166,
-0.009422749280929565,
-0.09721224755048752,
0.006326910108327866,
-0.03060099482536316,
-0.011446394957602024,
-0.016430648043751717,
0.008244302123785019,
-0.0013825023779645562,
0.0449741892516613,
0.03606821596622467,
-0.021424559876322746,
-0.01878754235804081,
0.024998540058732033,
-0.03023393638432026,
0.0066649895161390305,
-0.03655118867754936,
-0.009123307652771473,
-0.05053800716996193,
0.022081399336457253,
0.0025452531408518553,
0.012576545588672161,
-0.032243091613054276,
0.018381847068667412,
0.034947726875543594,
0.040569499135017395,
0.00820083450525999,
-0.011668561026453972,
0.03691824525594711,
0.048065196722745895,
-0.09767590463161469,
-0.028958896175026894,
0.005394777748733759,
-0.013484529219567776,
-0.007210745941847563,
-0.043274134397506714,
-0.0554836206138134,
0.0360102616250515,
-0.03249423950910568,
0.04404688626527786,
-0.03286129608750343,
-0.014093071222305298,
0.014933439902961254,
0.03065895102918148,
-0.03210786357522011,
0.03407838195562363,
0.04273320734500885,
-0.016420988366007805,
0.015213563106954098,
-0.009620767086744308,
0.04528329148888588,
-0.008814207278192043,
-0.047756098210811615,
0.05022890493273735,
0.04230819270014763,
0.07136368006467819,
0.06834995001554489,
0.047137897461652756,
-0.04153544083237648,
0.018623333424329758,
-0.016932936385273933,
-0.006133722141385078,
0.023395078256726265,
0.020207475870847702,
0.0021480100695043802,
0.0326681062579155,
0.020052924752235413,
0.027877042070031166,
0.015812445431947708,
-0.03490908816456795,
0.012818030081689358,
0.028379332274198532,
-0.002254263497889042,
-0.06800220906734467,
0.017454544082283974,
0.0359329879283905,
0.05490405857563019,
-0.021830255165696144,
0.04138088971376419,
0.030794182792305946,
0.01285666786134243,
0.027664534747600555,
-0.013281681574881077,
-0.027046333998441696,
0.035894349217414856,
-0.03419429436326027,
0.0007316999253816903,
0.04679015651345253,
-0.01936710625886917,
-0.03386587277054787,
-0.05544498562812805,
0.004129395354539156,
-0.001304019708186388,
0.03983538597822189,
0.03289993479847908,
0.02061316929757595,
0.051967598497867584,
-0.019289830699563026,
0.06352024525403976,
0.0001726618647808209,
0.03309312090277672,
-0.01936710625886917,
0.02003360539674759,
-0.048065196722745895,
-0.016884639859199524,
-0.03684097155928612,
-0.0020538310054689646,
-0.014556722715497017,
0.011031039990484715,
0.033170394599437714,
-0.08940745145082474,
0.04991980269551277,
0.011359459720551968,
-0.03253287449479103,
-0.012238466180860996,
0.028302056714892387,
0.06896814703941345,
-0.014334556646645069,
0.07368194311857224,
-0.03960356116294861,
0.0037188709247857332,
-0.01640166901051998,
-0.05977239832282066,
0.0494561530649662,
-0.0036512550432235003,
-0.027664534747600555,
-0.005781153682619333,
0.05304945260286331,
0.044896915555000305,
-0.0025742314755916595,
-0.02258368767797947,
0.03763304278254509,
0.06931588798761368,
-0.046133317053318024,
0.011987321078777313,
-0.01977280154824257,
-0.029055489227175713,
0.0012714191107079387,
0.026795189827680588,
-0.044935550540685654,
0.023337122052907944,
0.03249423950910568,
0.02420646883547306,
0.016430648043751717,
-0.00665050046518445,
-0.06711354851722717,
-0.04381506145000458,
0.017763646319508553,
0.01654656045138836,
0.0232212096452713,
0.06742264330387115,
-0.053629014641046524,
-0.06182019039988518,
-0.03888876363635063,
0.03745917230844498,
0.02424510568380356,
0.0221200380474329,
-0.021366603672504425,
0.02712360955774784,
0.02899753302335739,
0.08283905684947968,
-0.0054237558506429195,
-0.0052015893161296844,
0.03836715593934059,
0.021637067198753357,
-0.0449741892516613,
0.03971947357058525,
-0.06097016483545303,
-0.0390239953994751,
0.051040295511484146,
-0.01184243056923151,
0.07630930095911026,
0.04323549568653107,
0.030774863436818123,
0.052585799247026443,
0.033131759613752365,
0.006326910108327866,
-0.04443326219916344,
-0.03502500057220459,
-0.04335140809416771,
-0.07391376793384552,
0.0032238264102488756,
-0.04408552497625351,
-0.000044146498112240806,
-0.015628917142748833,
0.000404789432650432,
-0.0794389471411705,
0.03782622888684273,
0.056604113429784775,
0.0014114804798737168,
0.0734114795923233,
-0.06294067949056625,
0.013194747269153595,
0.009161945432424545,
-0.015783468261361122,
0.007746842689812183,
0.013706695288419724,
0.024631481617689133,
-0.021250691264867783,
-0.007051365450024605,
0.07990259677171707,
-0.05266307666897774,
-0.0008560647838748991,
-0.02706565149128437,
-0.009166775271296501,
-0.015947677195072174,
-0.011330481618642807,
0.021772298961877823,
-0.022235950455069542,
-0.053165365010499954,
0.0021588769741356373,
-0.013967499136924744,
0.009123307652771473,
-0.027394073083996773,
0.0009925038320943713,
-0.025983799248933792,
0.0008125974563881755,
-0.0712864100933075,
-0.028611157089471817,
-0.015551641583442688,
-0.010374200530350208,
-0.0022530562710016966,
-0.015281178057193756,
-0.01775398664176464,
0.0045882174745202065,
0.03450339287519455,
-0.03471590206027031,
0.024225788190960884,
0.022004123777151108,
-0.010692961513996124,
0.05757005140185356,
-0.018391506746411324,
0.013407253660261631,
-0.024013280868530273,
-0.06023604795336723,
-0.00022080795315559953,
-0.011881068348884583,
0.03539206087589264,
-0.005312672816216946,
-0.012682798318564892,
-0.020072244107723236,
-0.006621521897614002,
0.05424721911549568,
-0.026775870472192764,
0.03570115938782692,
0.017580116167664528,
0.0247280765324831,
-0.035372741520404816,
-0.0185363981872797,
0.04292639344930649,
0.03834783658385277,
0.027780449017882347,
-0.022467775270342827,
-0.0015165265649557114,
-0.00921024288982153,
0.06000422313809395,
-0.09203480929136276,
0.01836252771317959,
0.004107662010937929,
0.0023593096993863583,
0.02420646883547306,
-0.0690067857503891,
-0.04648105800151825,
-0.018449462950229645,
-0.03007938712835312,
0.006341399159282446,
0.025829248130321503,
0.01712612435221672,
-0.013030537404119968,
0.07101594656705856,
-0.05845871940255165,
-0.03819328546524048,
-0.049997080117464066,
-0.0017435225890949368,
-0.03210786357522011,
-0.037092115730047226,
-0.006297932006418705,
0.02799295447766781,
-0.011514010839164257,
-0.0020151932258158922,
0.005539668723940849,
0.026659958064556122,
0.05339718982577324,
-0.044935550540685654,
-0.057029128074645996,
-0.01633405312895775,
-0.004059365019202232,
0.02685314603149891,
-0.07831845432519913,
-0.007471549790352583,
0.01836252771317959,
0.061704277992248535,
0.023955324664711952,
0.04547647759318352,
-0.0014066508738324046,
0.020806357264518738,
0.04829702526330948,
-0.051813047379255295,
0.0027142928447574377,
0.017570458352565765,
-0.022081399336457253,
-0.02119273506104946,
-0.039371732622385025,
-0.041767265647649765,
0.011910046450793743,
-0.023723497986793518,
-0.028533881530165672,
-0.010538410395383835,
-0.0062399753369390965,
-0.03983538597822189,
0.014044774696230888,
-0.02758726105093956,
-0.0228541512042284,
0.03782622888684273,
0.06100879982113838,
0.08716646581888199,
-0.04648105800151825,
0.05447904393076897,
-0.025636060163378716,
-0.051388032734394073,
-0.07673431187868118,
-0.052238062024116516,
-0.07171142101287842,
-0.05324263870716095,
0.03622276708483696,
-0.02165638655424118,
0.0006821954739280045,
0.004334657918661833,
-0.02783840522170067,
-0.004440911579877138,
-0.0058004725724458694,
-0.019608592614531517,
0.007292850874364376,
0.028514564037322998,
0.016874980181455612,
-0.009591788984835148,
0.01733863167464733,
0.04211500659584999,
0.007597121875733137,
0.001557579031214118,
-0.02242913842201233,
0.05784051492810249,
-0.05552225932478905,
0.02264164574444294,
0.018391506746411324,
-0.038598980754613876,
0.021868892014026642,
-0.010973083786666393,
-0.026621319353580475,
0.007408763747662306,
-0.02977028489112854,
-0.061124712228775024,
0.005872918292880058,
0.004334657918661833,
0.03403974324464798,
0.016874980181455612,
0.018594354391098022,
-0.03129647299647331,
-0.03483181446790695,
0.017657391726970673,
-0.002018815604969859,
0.04153544083237648,
-0.034889768809080124,
0.031199878081679344,
0.013416913338005543,
-0.015184584073722363,
0.024496249854564667,
0.013571463525295258,
-0.011958342976868153,
-0.03429088741540909,
0.020497256889939308,
-0.004114906303584576,
0.04396961256861687,
0.04377642273902893,
-0.019289830699563026,
0.08948472887277603,
-0.0532812774181366,
0.03502500057220459,
-0.03431020677089691,
0.0061916783452034,
0.021579110994935036,
0.07920712232589722,
0.06100879982113838,
-0.0037285303696990013,
-0.002268752781674266,
-0.037401214241981506,
0.006351058837026358,
-0.03243628144264221,
0.09690315276384354,
-0.01306917518377304,
0.026099711656570435,
0.015783468261361122,
0.11065813899040222,
-0.034947726875543594,
0.02070976421236992,
-0.018150022253394127,
0.027413390576839447,
0.001946370117366314,
-0.09010292589664459,
-0.013619760982692242,
-0.04539920389652252,
-0.011021381244063377,
0.032243091613054276,
0.0036584995687007904,
-0.0637907087802887,
0.015889720991253853,
0.08430728316307068,
-0.0015877647092565894,
0.04080132767558098,
-0.007466719951480627,
-0.024805352091789246,
0.026524726301431656,
-0.03334426507353783,
0.04292639344930649,
0.041921816766262054,
0.04141952842473984,
-0.010451476089656353,
-0.06641806662082672,
-0.04868340119719505,
-0.026041755452752113,
0.007186597213149071,
-0.08639371395111084,
-0.08446183800697327,
-0.0314510203897953,
-0.0076357596553862095,
0.03007938712835312,
0.010683301836252213,
0.035990942269563675,
-0.02190753072500229,
-0.011378779076039791,
0.07163414359092712,
0.049842528998851776,
-0.007032046560198069,
0.04389233514666557,
-0.006809880491346121,
0.014489106833934784,
-0.044008247554302216,
0.061086077243089676,
0.01503969356417656,
-0.030543038621544838,
-0.052431248128414154,
-0.027452029287815094,
-0.03655118867754936,
-0.08631644397974014,
-0.03357608988881111,
-0.04667424410581589,
-0.02768385410308838,
0.03867625817656517,
-0.01749318279325962,
-0.056758664548397064,
-0.007572973612695932,
-0.006978920195251703,
0.03394315019249916,
-0.002926799701526761,
0.04261729493737221,
0.0340590626001358,
-0.03805805370211601,
0.065336212515831,
0.011031039990484715,
0.00284952437505126,
-0.021579110994935036,
0.021791616454720497,
0.002663580933585763,
0.0181693397462368,
0.008398852311074734,
-0.039951298385858536,
0.0853891372680664,
-0.021463196724653244,
-0.0123833566904068,
0.02405191771686077,
0.013368615880608559,
0.022989382967352867,
0.03772963583469391,
-0.02154047228395939,
-0.03867625817656517,
-0.06850449740886688,
-0.01931880973279476,
0.024998540058732033,
-0.025017859414219856,
0.00632208026945591,
-0.1033942699432373,
-0.005327161867171526,
0.015464707277715206,
-0.035527292639017105,
0.03805805370211601,
-0.04632650688290596,
-0.01962791010737419,
-0.03871489316225052,
0.04462645202875137,
-0.02722020260989666,
-0.03121919557452202,
0.0049166372045874596,
-0.034851133823394775,
0.034484073519706726,
0.024786032736301422,
0.057029128074645996,
0.007669567596167326,
-0.004614780656993389,
-0.010895808227360249,
0.022873470559716225,
0.006524927914142609,
-0.006476630922406912,
-0.022081399336457253,
-0.009509684517979622,
-0.027780449017882347,
-0.03326699137687683,
0.032610151916742325,
0.002989585744217038,
0.02789636142551899,
0.04091724008321762,
-0.009017053991556168,
-0.02768385410308838,
-0.03388519212603569,
-0.01306917518377304,
0.06193610280752182,
-0.04080132767558098,
0.022525731474161148,
0.008229812607169151,
-0.02206207998096943,
-0.021733660250902176,
0.013706695288419724,
0.01306917518377304,
0.022970065474510193,
0.030774863436818123,
0.06460209935903549,
-0.05896100774407387,
0.040724050253629684,
0.05397675558924675,
-0.022622326388955116,
-0.01920289732515812,
0.010519091971218586,
0.03398178517818451,
0.030118023976683617,
-0.03686028718948364,
-0.011388438753783703,
0.011050359345972538,
0.02248709462583065,
0.05501997098326683,
0.03883080929517746,
0.037130750715732574,
-0.01207425631582737,
-0.013919202610850334,
-0.025481510907411575,
0.020207475870847702,
-0.03459998965263367,
0.012547566555440426,
-0.03840579465031624,
-0.028495244681835175,
-0.006046787369996309,
-0.039159227162599564,
-0.048065196722745895,
0.013909542933106422,
0.019975649192929268,
-0.019270513206720352,
-0.04188317805528641,
-0.03295788913965225,
-0.00986225251108408,
0.007713034749031067,
0.042192280292510986,
0.026659958064556122,
0.06931588798761368,
0.02150183543562889,
0.016662472859025,
0.008707953616976738,
-0.003834783798083663,
0.03910126909613609,
0.002897821366786957,
-0.04362187162041664,
0.0010637419763952494,
-0.04002857208251953,
0.02768385410308838,
0.029750967398285866,
-0.013967499136924744,
0.03403974324464798,
-0.007181767374277115,
-0.029325952753424644,
-0.02909412793815136,
-0.050924383103847504,
-0.08446183800697327,
0.016459625214338303,
0.05262443795800209,
-0.05938602238893509,
0.0315282978117466,
-0.04968797788023949,
-0.02436101995408535,
0.035218190401792526,
-0.05065391957759857,
-0.0054672230035066605,
-0.027567941695451736,
-0.020284749567508698,
-0.03013734333217144,
0.061549726873636246,
0.015387431718409061,
-0.02544287219643593,
0.041342251002788544,
0.01106001902371645,
-0.007935200817883015,
-0.012953261844813824,
-0.023762136697769165,
0.024187149479985237,
-0.055406346917152405,
0.06583850085735321,
0.0039023994468152523,
0.04080132767558098,
-0.02571333572268486,
-0.015416409820318222,
-0.02555878460407257,
-0.008881823159754276
] |
21,504 | tfields.core | rank |
Tensor rank
| def rank(tensor):
"""
Tensor rank
"""
tensor = np.asarray(tensor)
return len(tensor.shape) - 1
| (tensor) | [
-0.06169929727911949,
-0.023916393518447876,
-0.03214963525533676,
0.06316594779491425,
0.055699367076158524,
0.031099645420908928,
-0.015449823811650276,
0.06473259627819061,
0.05309939384460449,
0.014808164909482002,
-0.0008729067048989236,
-0.035966258496046066,
-0.030582984909415245,
-0.027649685740470886,
0.015299825929105282,
0.019883107393980026,
0.09199894964694977,
0.0313829742372036,
-0.029149668291211128,
-0.00007688714686082676,
0.03259962797164917,
-0.014216504991054535,
-0.007166584953665733,
-0.03176630288362503,
-0.010083218105137348,
0.05463271215558052,
0.05256606638431549,
-0.0034207943826913834,
0.007774911355227232,
-0.0030395486392080784,
-0.06659924238920212,
-0.05316606163978577,
0.011041540652513504,
0.03689957782626152,
0.008224906399846077,
0.041399527341127396,
-0.004399949684739113,
0.06223262473940849,
-0.028683006763458252,
-0.03826623037457466,
0.012599856592714787,
-0.01275818794965744,
0.0030332987662404776,
-0.0015958151780068874,
-0.01579148694872856,
0.023099737241864204,
0.02259974181652069,
-0.06243262067437172,
-0.02898300252854824,
-0.008291572332382202,
-0.008154073730111122,
-0.033199623227119446,
0.018399789929389954,
0.008095741271972656,
-0.05936599150300026,
-0.0012541523901745677,
0.042099520564079285,
-0.033649615943431854,
-0.0773991197347641,
-0.0009906137129291892,
-0.004474949091672897,
-0.01200819667428732,
-0.013299848884344101,
0.010041552595794201,
0.00513327494263649,
0.010291549377143383,
-0.0032916292548179626,
0.033199623227119446,
-0.010191550478339195,
-0.01539982482790947,
-0.0437995009124279,
0.013666510581970215,
0.07193251699209213,
-0.03341628611087799,
0.021016426384449005,
-0.009724888950586319,
0.05676601827144623,
0.02369973063468933,
0.05279939994215965,
-0.0071082524955272675,
0.048332784324884415,
0.013316514901816845,
0.05256606638431549,
0.030849648639559746,
0.02246640995144844,
-0.05699935182929039,
0.022666407749056816,
0.0220330823212862,
-0.0795324295759201,
-0.04853278025984764,
-0.0319163016974926,
-0.005337439011782408,
0.033382952213287354,
-0.021683085709810257,
-0.018516454845666885,
-0.004812445025891066,
-0.015749821439385414,
-0.047966118901968,
-0.021249758079648018,
-0.057499345391988754,
-0.017516467720270157,
0.10946542024612427,
-0.024099726229906082,
-0.022649742662906647,
-0.0296996608376503,
0.019516443833708763,
-0.007429081946611404,
0.010491547174751759,
-0.08673234283924103,
0.004837444983422756,
-0.026866361498832703,
0.029732994735240936,
-0.01943311281502247,
0.0011958196992054582,
0.06346594542264938,
-0.03603292256593704,
0.04809945076704025,
0.041266195476055145,
0.037499573081731796,
0.0277496837079525,
0.04356617107987404,
0.029449664056301117,
-0.007216584403067827,
-0.0429995097219944,
0.007704078685492277,
0.0190164502710104,
0.07746578752994537,
0.06609924882650375,
-0.031166311353445053,
0.017716465517878532,
0.025899704545736313,
-0.03204963356256485,
-0.02718302421271801,
0.03256629407405853,
0.030699649825692177,
0.020583098754286766,
0.06336594372987747,
-0.029732994735240936,
-0.04746612533926964,
0.014208171516656876,
0.0701325312256813,
0.024183057248592377,
0.012799854390323162,
0.004795778542757034,
0.0057416013441979885,
-0.01248319074511528,
-0.013766509480774403,
-0.019366446882486343,
0.09679889678955078,
-0.04426616057753563,
0.02288307249546051,
-0.03483293578028679,
0.026999691501259804,
0.010024885646998882,
-0.006529092323035002,
0.03756623715162277,
0.0031020480673760176,
-0.09919887036085129,
-0.006870754994452,
-0.02193308435380459,
-0.005962431896477938,
0.025166379287838936,
-0.01164153404533863,
-0.017716465517878532,
-0.029183000326156616,
0.02816634625196457,
0.015716487541794777,
-0.010724877938628197,
-0.04719946160912514,
0.016666477546095848,
0.06239929050207138,
-0.015858152881264687,
-0.01414983905851841,
0.002997882431373,
-0.0018770619062706828,
0.03011632338166237,
-0.046399470418691635,
0.029332999140024185,
-0.013208182528614998,
0.05003276467323303,
0.01943311281502247,
-0.03228296712040901,
-0.012691522017121315,
-0.04576614499092102,
-0.013449846766889095,
-0.015491490252315998,
0.020549766719341278,
0.0015499823493883014,
0.01733313500881195,
0.051132749766111374,
-0.02729968912899494,
0.033232953399419785,
0.010874875821173191,
0.023649729788303375,
0.02734968811273575,
-0.017016472294926643,
-0.0006541592301800847,
0.03759957104921341,
0.0059082661755383015,
-0.024899715557694435,
-0.011274871416389942,
0.018216459080576897,
0.041099533438682556,
0.02178308553993702,
-0.009099896065890789,
0.017849797382950783,
0.024316389113664627,
0.019299780949950218,
-0.02691636048257351,
-0.035032935440540314,
-0.024716384708881378,
-0.03453293815255165,
0.008933231234550476,
0.03256629407405853,
0.029299667105078697,
0.006574925035238266,
-0.03713291138410568,
-0.01609981618821621,
0.012674855999648571,
-0.002327056834474206,
0.06033264473080635,
0.034066278487443924,
0.014049840159714222,
0.0008859274093993008,
0.04559947922825813,
-0.06786589324474335,
-0.014124838635325432,
-0.013949841260910034,
-0.006358260754495859,
0.01888311840593815,
-0.01816646009683609,
0.03853289410471916,
0.03633292019367218,
0.0037999567575752735,
0.05883266404271126,
-0.005404104944318533,
-0.04303284361958504,
-0.04563281312584877,
-0.014291503466665745,
0.020766429603099823,
-0.034066278487443924,
-0.010974874719977379,
-0.011683200486004353,
-0.005979098379611969,
-0.058466002345085144,
0.028933003544807434,
-0.017016472294926643,
0.013924841769039631,
-0.041699524968862534,
-0.038499560207128525,
-0.08273239433765411,
-0.03208296746015549,
-0.019099783152341843,
-0.01637481339275837,
0.007412415463477373,
-0.024233058094978333,
0.027516353875398636,
0.015849819406867027,
0.0020041437819600105,
0.029299667105078697,
-0.01606648415327072,
0.013258182443678379,
-0.022516410797834396,
-0.03384961560368538,
-0.06296595185995102,
-0.02689969353377819,
-0.009733222424983978,
0.05953265354037285,
-0.0028145513497292995,
0.031266309320926666,
0.04839944839477539,
0.05509937182068825,
-0.02539971098303795,
-0.07293250411748886,
0.024433055892586708,
-0.07146584987640381,
0.04303284361958504,
0.0604659765958786,
-0.020199770107865334,
0.01801646128296852,
0.008816566318273544,
-0.05509937182068825,
-0.024933049455285072,
0.025633040815591812,
-0.04809945076704025,
0.0149831622838974,
0.023483065888285637,
-0.07146584987640381,
-0.04396616667509079,
-0.025583041831851006,
0.059432655572891235,
0.04173285886645317,
-0.007804077584296465,
0.04426616057753563,
-0.05786600708961487,
-0.046799466013908386,
-0.017383135855197906,
0.011066540144383907,
0.03983287885785103,
0.06239929050207138,
-0.00789991021156311,
-0.02453305386006832,
-0.021749751642346382,
-0.04879944398999214,
0.011824864894151688,
0.005062442272901535,
0.013624845072627068,
0.01608314923942089,
0.00336662819609046,
0.010366548784077168,
0.004416616167873144,
0.03759957104921341,
-0.050999417901039124,
0.04036620631814003,
0.03344962000846863,
0.03979954496026039,
0.005779101047664881,
-0.029599662870168686,
0.013399847783148289,
0.06236595660448074,
0.05533270165324211,
-0.007991575635969639,
0.0011281121987849474,
0.003354128450155258,
-0.06919921189546585,
-0.08126574009656906,
-0.03273295983672142,
-0.040132876485586166,
-0.0036103755701333284,
0.03666624799370766,
-0.012166528031229973,
-0.06083264201879501,
0.023749729618430138,
0.013258182443678379,
-0.03396628051996231,
-0.0009588432149030268,
0.028216345235705376,
0.03633292019367218,
-0.041532859206199646,
0.03813289850950241,
-0.005899932701140642,
-0.03024965524673462,
-0.006529092323035002,
0.055832698941230774,
0.0016937307082116604,
0.04563281312584877,
0.015991484746336937,
-0.007787411101162434,
0.04933277145028114,
0.06979920715093613,
0.0035666259936988354,
-0.003233296563848853,
0.008541569113731384,
0.013049851171672344,
-0.039599549025297165,
0.06229928880929947,
0.008849899284541607,
0.03496626764535904,
0.01039988175034523,
0.021849751472473145,
-0.05086608603596687,
-0.0429995097219944,
0.03816623240709305,
0.016549810767173767,
0.006820755545049906,
0.02384972758591175,
0.017233137041330338,
0.05483270809054375,
-0.0007343666511587799,
0.007354083005338907,
-0.02619970217347145,
-0.0028416342101991177,
0.0017249803058803082,
0.02539971098303795,
0.004149952903389931,
0.037232909351587296,
-0.035432931035757065,
0.031132979318499565,
0.02066643163561821,
-0.07826577126979828,
-0.030416321009397507,
0.001067696139216423,
0.0005158795393072069,
-0.01136653684079647,
-0.07859910279512405,
0.07419915497303009,
-0.07759911566972733,
-0.02093309536576271,
-0.05946598947048187,
-0.037232909351587296,
-0.02068309858441353,
-0.03926621749997139,
-0.012024862691760063,
-0.0755324736237526,
-0.030199656262993813,
0.04286617785692215,
-0.01914978213608265,
0.007149918470531702,
0.014941496774554253,
-0.0351995974779129,
-0.06386593729257584,
-0.006070764269679785,
-0.005641602445393801,
0.022716408595442772,
0.027649685740470886,
0.0635659396648407,
-0.039199553430080414,
0.08719900995492935,
-0.018383122980594635,
-0.027016358450055122,
-0.03636625409126282,
0.011849865317344666,
0.02346639893949032,
-0.05433271452784538,
0.01337484735995531,
-0.010441547259688377,
0.02373306266963482,
0.025416377931833267,
0.008633234538137913,
-0.025299711152911186,
-0.009383226744830608,
0.04179952293634415,
0.005099941976368427,
0.054999373853206635,
0.004099953453987837,
-0.018399789929389954,
0.019099783152341843,
0.0028687173034995794,
-0.014949829317629337,
0.051532745361328125,
-0.07373249530792236,
-0.06573258340358734,
0.01926644705235958,
-0.0476994551718235,
0.015033162198960781,
0.007991575635969639,
-0.00013736823166254908,
-0.0030145489145070314,
-0.03923288732767105,
0.05786600708961487,
0.08253239095211029,
0.047099463641643524,
0.003766623791307211,
0.01476649846881628,
0.01075821090489626,
0.03409961238503456,
0.011424870230257511,
0.0008458236698061228,
-0.011066540144383907,
-0.005529103800654411,
-0.025033047422766685,
-0.05409938469529152,
0.026966359466314316,
0.005533270072191954,
0.021383089944720268,
-0.0518660768866539,
-0.1185319796204567,
-0.03283295780420303,
0.00790824368596077,
-0.02841634303331375,
0.0002098934492096305,
0.08026575297117233,
-0.011391537263989449,
-0.022783074527978897,
-0.009749889373779297,
-0.04516615346074104,
-0.03119964525103569,
-0.024649718776345253,
0.0023478898219764233,
-0.010424881242215633,
0.09019897133111954,
-0.002368723042309284,
-0.028766339644789696,
-0.05746601149439812,
-0.0069707538932561874,
0.041132863610982895,
0.060132648795843124,
0.018066460266709328,
0.014408169314265251,
0.04103286564350128,
-0.03093298152089119,
-0.014658166095614433,
-0.03344962000846863,
-0.016449812799692154,
0.015208160504698753,
0.04809945076704025,
-0.11479869484901428,
0.004645780194550753,
0.04439949244260788,
0.0006104097119532526,
-0.008354071527719498,
-0.020716430619359016,
0.024066392332315445,
0.009516558609902859,
0.016158148646354675,
-0.04026620835065842,
0.043599504977464676,
0.02276640757918358,
-0.03496626764535904,
0.02221641317009926,
0.010599879547953606,
0.008758233860135078,
-0.005004109814763069,
-0.01129153836518526,
-0.051099419593811035,
0.012058195658028126,
0.04646613821387291,
0.0014291503466665745,
0.015208160504698753,
-0.010583212599158287,
0.011833198368549347,
0.03813289850950241,
-0.00024622114142403007,
-0.002222891431301832,
0.026866361498832703,
0.04366616904735565,
0.036699581891298294,
0.05493270605802536,
0.05423271656036377,
0.042499516159296036,
0.0007572830654680729,
-0.036266252398490906,
0.005470770876854658,
0.023483065888285637,
-0.006433260161429644,
0.040866199880838394,
0.003408294403925538,
-0.0017333135474473238,
0.036132920533418655,
0.09273228049278259,
-0.022366411983966827,
0.029766326770186424,
-0.0140081737190485,
-0.00165623112116009,
0.013399847783148289,
0.041966188699007034,
0.0035645426250994205,
-0.021433088928461075,
0.06313261389732361,
0.05493270605802536,
-0.07506581395864487,
-0.060265980660915375,
0.02941633202135563,
-0.02734968811273575,
-0.029233001172542572,
0.03949955105781555,
-0.012708188965916634,
-0.031166311353445053,
-0.039332885295152664,
-0.03416627645492554,
-0.052066072821617126,
0.010633212514221668,
0.03953288123011589,
-0.001460400060750544,
-0.02661636285483837,
0.055699367076158524,
-0.0421995185315609,
-0.03409961238503456,
0.034066278487443924,
-0.015158160589635372,
0.012166528031229973,
-0.005399938672780991,
0.06653257459402084,
0.02024976909160614,
0.009124896489083767,
-0.03913288563489914,
-0.024716384708881378,
-0.03134964406490326,
0.0192831140011549,
0.018216459080576897,
-0.012908185832202435,
0.0054291049018502235,
-0.008029075339436531,
-0.017383135855197906,
0.02109975926578045,
-0.004254118073731661,
0.024216391146183014,
-0.03746623918414116,
0.02286640554666519,
-0.022816406562924385,
-0.03009965643286705,
-0.01704980619251728,
0.01638314686715603,
-0.01721647009253502,
-0.028383009135723114,
0.06319928169250488,
-0.018199792131781578,
0.06453260034322739,
-0.07306583225727081,
0.004308284260332584,
-0.04136619716882706,
-0.015299825929105282,
-0.0021728919818997383,
0.004599947482347488,
0.03489960357546806,
-0.023783061653375626,
-0.030299654230475426,
-0.020166436210274696,
0.019349779933691025,
-0.021166425198316574,
-0.01634148135781288,
0.005354105494916439,
-0.029899658635258675,
0.03208296746015549,
0.0026270532980561256,
-0.08906564861536026,
-0.07186584919691086,
0.04853278025984764,
0.030549651011824608,
-0.03729957342147827,
0.013358181342482567,
0.003447877475991845,
0.011799865402281284,
-0.06296595185995102,
-0.02428305707871914,
-0.009166561998426914,
-0.014458168298006058,
0.04439949244260788,
0.02013310417532921,
0.05823266878724098,
0.03853289410471916,
0.0214997548609972,
0.02623303420841694,
-0.03301629051566124,
-0.009591557085514069,
0.01650814525783062,
0.010449880734086037,
-0.04983276501297951,
0.027133023366332054,
-0.03949955105781555,
-0.014166505075991154,
-0.003024965524673462,
0.005308272782713175,
-0.06696590036153793,
-0.00042160978773608804,
-0.032782960683107376,
-0.01566648855805397,
-0.011358204297721386,
-0.015166494064033031,
-0.03011632338166237,
-0.024799717590212822,
0.08233239501714706,
0.035966258496046066,
-0.0012864436721429229,
0.06186596304178238,
-0.038199566304683685,
0.016424812376499176,
-0.010466547682881355,
0.03284962475299835,
0.00022304433514364064,
0.012566523626446724,
0.02466638572514057,
0.06496592611074448,
0.004345783963799477,
0.02884967066347599,
0.030882980674505234,
0.009183228947222233,
0.017933128401637077,
-0.004849944729357958,
-0.030399654060602188,
-0.00039244344225153327,
-0.035732924938201904,
0.006916587706655264,
0.024249723181128502,
-0.01958310976624489,
0.019116448238492012,
0.019216448068618774,
-0.05936599150300026,
-0.03916621953248978,
-0.051132749766111374,
-0.02954966388642788,
0.03713291138410568,
0.03739957511425018,
-0.032516296952962875,
0.05563269928097725,
-0.0002940070698969066,
0.017366468906402588,
0.01680814102292061,
0.019916439428925514,
-0.024916382506489754,
-0.04079953581094742,
-0.029332999140024185,
-0.036566250026226044,
0.013749843463301659,
0.01240819226950407,
-0.03234963119029999,
-0.044732823967933655,
0.05339939147233963,
0.014799831435084343,
0.005141607951372862,
-0.011441536247730255,
-0.04213285446166992,
0.03371628373861313,
-0.0021458088885992765,
-0.05386605113744736,
-0.011883198283612728,
-0.038232896476984024,
0.06993253529071808,
-0.005254106596112251,
-0.005408271681517363,
0.03843289613723755,
-0.0117248659953475,
-0.03816623240709305,
-0.032249633222818375,
-0.05976598709821701,
0.034732937812805176,
-0.04729945957660675,
-0.010166550986468792,
0.027399687096476555,
-0.0007036378374323249,
-0.0557660311460495,
-0.01373317651450634,
0.03916621953248978,
-0.07033253461122513,
-0.042799513787031174,
0.027399687096476555,
0.02189975045621395,
0.06609924882650375,
-0.04966609925031662,
0.013408180326223373,
-0.02384972758591175,
0.0003609333944041282,
0.06456593424081802,
0.04549948126077652,
0.015108161605894566,
-0.02956632897257805,
0.054999373853206635,
0.02411639131605625,
-0.0521327406167984,
-0.013008184731006622,
-0.010833210311830044,
-0.048899441957473755,
-0.0073999157175421715,
-0.04143286123871803,
0.020899761468172073,
0.03886622563004494,
0.07999908924102783,
-0.017866462469100952,
0.0316496379673481,
-0.04259951412677765,
0.06619924306869507,
-0.017099805176258087,
-0.03879955783486366,
-0.021016426384449005,
0.15733154118061066,
-0.013333181850612164,
-0.00949989166110754,
-0.027849683538079262,
0.0032020469661802053,
-0.027683017775416374,
0.0476994551718235,
-0.01351651269942522,
-0.012058195658028126,
-0.09753222018480301,
-0.024799717590212822,
-0.016049817204475403,
0.04529948532581329,
-0.006274928338825703,
-0.03679957985877991,
-0.005341605748981237,
0.008362405002117157,
-0.10419881343841553,
-0.04516615346074104,
-0.03943288326263428,
-0.01123320497572422,
0.011574868112802505,
0.015449823811650276,
-0.03204963356256485
] |
21,508 | fp2md4roam.convert | convert | null | def convert(path, target_directory):
loglevel(WARN)
filer = FSFiler(target_directory)
logger.info('converting %s %s' % (path, filer.target_directory))
mindmap = RawMap(read(path), path)
Author(filer).visit(mindmap)
| (path, target_directory) | [
0.00736619858071208,
0.041822127997875214,
0.010657105594873428,
-0.03183109313249588,
-0.011086544953286648,
-0.06541499495506287,
0.011174186132848263,
0.04897360876202583,
0.005920127499848604,
-0.0055125984363257885,
0.00403585284948349,
0.02583646960556507,
-0.008821033872663975,
0.06373229622840881,
-0.008404740132391453,
0.05104192718863487,
0.01921083591878414,
0.04658978059887886,
-0.035774923861026764,
0.03344368189573288,
-0.0007274175877682865,
-0.06390757858753204,
0.01798386685550213,
0.03084951639175415,
-0.02248859591782093,
0.007471367251127958,
-0.04185718670487404,
0.021717358380556107,
-0.01694970577955246,
-0.055213622748851776,
0.007020018063485622,
-0.0016947515541687608,
0.03225176781415939,
0.020209938287734985,
-0.011296882294118404,
0.0048640575259923935,
-0.005617767106741667,
0.018702520057559013,
-0.008991933427751064,
-0.07964784651994705,
-0.016739368438720703,
0.006686983164399862,
-0.027764564380049706,
0.07112917304039001,
0.028746141120791435,
0.01354924775660038,
-0.05658081918954849,
-0.06699252873659134,
-0.03758031874895096,
0.05275968462228775,
-0.023259835317730904,
-0.016160940751433372,
0.007445075083523989,
0.02024499513208866,
0.00925485510379076,
0.010262723080813885,
-0.014022507704794407,
0.03505627065896988,
-0.00654237624257803,
-0.016292400658130646,
-0.01470610499382019,
0.004024897702038288,
0.04297898709774017,
0.00856687594205141,
0.031042326241731644,
0.02480231039226055,
-0.026782989501953125,
-0.040384821593761444,
-0.03845672681927681,
0.05167293921113014,
-0.08413504809141159,
-0.05956060066819191,
0.041261229664087296,
0.01805397868156433,
0.02289174310863018,
0.01225216593593359,
-0.05465272441506386,
-0.009167213924229145,
0.02397848851978779,
0.0389825701713562,
-0.024609500542283058,
-0.04266348108649254,
-0.02080589532852173,
-0.043399661779403687,
-0.016248580068349838,
-0.017370380461215973,
0.0747399628162384,
-0.032900307327508926,
-0.06313633918762207,
0.009360023774206638,
0.0065467581152915955,
-0.011025196872651577,
0.01666049100458622,
0.021542077884078026,
0.012357334606349468,
0.052619460970163345,
0.015898017212748528,
0.02261129394173622,
-0.023715566843748093,
0.027361417189240456,
-0.021927695721387863,
0.046449556946754456,
-0.03135783225297928,
-0.0007931480649858713,
0.02755422703921795,
0.03782571479678154,
-0.01133193913847208,
0.0010401852196082473,
-0.009482720866799355,
-0.023382531479001045,
-0.12304750084877014,
-0.025187930092215538,
0.006984961684793234,
-0.04883338138461113,
-0.006914848927408457,
-0.08308336138725281,
0.03691425174474716,
-0.024749726057052612,
-0.025626132264733315,
0.012208345346152782,
0.05328552797436714,
0.013417786918580532,
-0.04504730552434921,
0.019123194739222527,
-0.0219101682305336,
-0.0243991632014513,
0.04970978945493698,
0.05170799791812897,
0.02404860034584999,
-0.0030608505476266146,
-0.07228602468967438,
-0.02576635777950287,
-0.0012390200281515718,
0.03211154416203499,
0.05090170353651047,
-0.06383746862411499,
-0.0891130343079567,
-0.039823923259973526,
0.035266607999801636,
0.0747399628162384,
0.07291703671216965,
-0.03328592702746391,
0.06821949779987335,
-0.05777273327112198,
0.02145443670451641,
-0.04311921074986458,
-0.013505428098142147,
0.018877800554037094,
-0.054863061755895615,
0.012988347560167313,
-0.004114729352295399,
-0.0263447854667902,
0.03084951639175415,
0.020262522622942924,
0.007760581560432911,
-0.002462702803313732,
0.020735783502459526,
-0.01741420105099678,
-0.006857882719486952,
-0.006191813386976719,
0.030288616195321083,
-0.0058894529938697815,
-0.012103176675736904,
0.03228682279586792,
-0.013321381993591785,
-0.03708953410387039,
-0.014890150167047977,
-0.01620475947856903,
-0.009447664953768253,
-0.004226471297442913,
-0.01479374524205923,
-0.04977990314364433,
-0.06706264615058899,
0.010569465346634388,
0.0512172095477581,
-0.028798725455999374,
0.051918335258960724,
0.05216372758150101,
0.03435514494776726,
0.08476606011390686,
0.023154666647315025,
0.03268996998667717,
-0.004758888389915228,
0.06106802076101303,
0.007502041757106781,
-0.013619360513985157,
-0.03107738308608532,
0.019649038091301918,
-0.010911263525485992,
-0.00710765877738595,
0.06341679394245148,
0.00023841002257540822,
0.013969923369586468,
0.0252054575830698,
0.0019171397434547544,
-0.04115606099367142,
0.011743850074708462,
0.0006715466734021902,
-0.03090210072696209,
0.02168230153620243,
0.025976695120334625,
-0.01608206331729889,
0.0268180463463068,
0.021927695721387863,
-0.03204143047332764,
0.014451947063207626,
-0.04241808503866196,
0.04539787024259567,
-0.050936758518218994,
0.017843641340732574,
0.06078756973147392,
-0.012287221848964691,
-0.008860471658408642,
-0.049569565802812576,
0.014539587311446667,
-0.04795697703957558,
-0.008807887323200703,
0.05055113881826401,
0.005911363288760185,
0.0446266308426857,
-0.031498055905103683,
0.040279652923345566,
-0.02417129836976528,
-0.014495767652988434,
0.008391594514250755,
-0.004688776098191738,
0.028009958565235138,
0.008119908161461353,
0.04297898709774017,
-0.05679115653038025,
0.04213763400912285,
-0.09317956119775772,
-0.024837367236614227,
-0.008724628947675228,
0.02641489915549755,
-0.03694930672645569,
0.030183447524905205,
-0.025959167629480362,
-0.03747515007853508,
0.04567831754684448,
0.018264316022396088,
-0.02664276398718357,
-0.0052409120835363865,
0.030534010380506516,
-0.017309032380580902,
-0.03828144446015358,
0.03356637805700302,
-0.08504650741815567,
-0.00604282459244132,
0.024136241525411606,
-0.0013726720353588462,
0.011349467560648918,
-0.013540484011173248,
0.06432825326919556,
0.019403645768761635,
-0.025573547929525375,
-0.01971915178000927,
-0.09184742718935013,
-0.016748132184147835,
-0.00776934577152133,
-0.016344984993338585,
-0.04697540029883385,
-0.03666885569691658,
0.013373966328799725,
-0.010385420173406601,
-0.022979384288191795,
-0.027116024866700172,
-0.002581017790362239,
0.028798725455999374,
-0.05984105169773102,
0.006949905306100845,
0.0331982858479023,
-0.04392550513148308,
0.019578926265239716,
0.0016082063084468246,
-0.03800099715590477,
0.01770341582596302,
-0.01585419848561287,
-0.007335524074733257,
0.046204160898923874,
-0.03014839068055153,
-0.005863160826265812,
-0.0015917737036943436,
0.0178085844963789,
-0.004675630014389753,
0.006367094814777374,
-0.039122797548770905,
-0.008343392051756382,
-0.02075331099331379,
-0.04452146217226982,
0.033706601709127426,
0.010884971357882023,
-0.022348372265696526,
-0.009570361115038395,
0.011971715837717056,
0.0022589382715523243,
-0.05609003081917763,
-0.08672920614480972,
0.037860769778490067,
-0.07081366330385208,
-0.025187930092215538,
0.009517776779830456,
0.04844776540994644,
0.028290409594774246,
-0.060682401061058044,
0.014101384207606316,
-0.059770938009023666,
-0.023154666647315025,
-0.07417906820774078,
0.05563429743051529,
0.015170600265264511,
-0.04266348108649254,
-0.012830594554543495,
0.04595876857638359,
0.017370380461215973,
-0.03505627065896988,
0.008536201901733875,
0.006599342450499535,
0.03216412663459778,
-0.026432426646351814,
-0.050936758518218994,
0.04353988543152809,
0.047255851328372955,
-0.022576237097382545,
-0.000035124739952152595,
-0.04364505410194397,
-0.0037291105836629868,
0.005933273583650589,
0.060051389038562775,
-0.02697579935193062,
-0.012041828595101833,
0.045292697846889496,
0.03314570337533951,
-0.025801414623856544,
0.002012448851019144,
-0.030586594715714455,
-0.025380738079547882,
-0.036353349685668945,
0.011936659924685955,
0.0012379245599731803,
0.023662982508540154,
0.020385220646858215,
-0.013417786918580532,
0.04928911477327347,
0.034618064761161804,
0.09934946894645691,
-0.07705368101596832,
-0.021699830889701843,
-0.025065232068300247,
-0.08820157498121262,
0.024416690692305565,
-0.0013781496090814471,
-0.04525764286518097,
0.02986794151365757,
-0.060927797108888626,
-0.0032952893525362015,
-0.002710287692025304,
-0.07172513008117676,
-0.05707160755991936,
0.0011305647203698754,
0.032199181616306305,
0.03440772742033005,
-0.016642963513731956,
-0.07410895079374313,
0.021997809410095215,
-0.013820934109389782,
0.005354844965040684,
-0.03535424917936325,
0.04925405979156494,
0.06972692161798477,
0.03004322201013565,
0.012015536427497864,
-0.010858679190278053,
0.04515247419476509,
-0.0295699629932642,
0.013715765438973904,
0.037860769778490067,
0.004476247355341911,
-0.05570441111922264,
0.10187351703643799,
0.000039198661397676915,
0.06741320341825485,
-0.030463898554444313,
0.014828802086412907,
0.059245094656944275,
-0.05153271555900574,
0.08378448337316513,
-0.03337356820702553,
-0.05724688619375229,
-0.010683397762477398,
0.037965938448905945,
-0.007103276439011097,
0.017843641340732574,
-0.04231291636824608,
0.0024605118669569492,
0.021717358380556107,
0.010622049681842327,
0.05840374529361725,
0.043329548090696335,
0.007738671265542507,
-0.03540683165192604,
0.005757992155849934,
-0.00861946027725935,
0.002377253258600831,
-0.06359206885099411,
-0.022804103791713715,
0.052093617618083954,
0.05377631634473801,
0.0219101682305336,
0.04746618866920471,
0.04017448425292969,
-0.004114729352295399,
0.021822527050971985,
0.012497560121119022,
-0.027028383687138557,
0.03747515007853508,
-0.0312526635825634,
-0.07628244161605835,
-0.03055153787136078,
-0.013049696572124958,
0.00942137185484171,
0.030604122206568718,
-0.02380320616066456,
-0.002725624945014715,
0.022067921236157417,
-0.04680011793971062,
0.018649935722351074,
0.04304909706115723,
-0.01614341139793396,
0.03961358591914177,
0.01354924775660038,
-0.045818544924259186,
0.006410915404558182,
-0.017843641340732574,
0.029552435502409935,
0.025748830288648605,
-0.027659395709633827,
0.059946220368146896,
0.03186614811420441,
0.0016224479768425226,
-0.00713395094498992,
-0.0002493651118129492,
0.01977173611521721,
-0.061208244413137436,
0.024574443697929382,
-0.020998705178499222,
-0.05980599671602249,
0.05219878628849983,
0.07719390094280243,
-0.012620257213711739,
0.001272980822250247,
-0.031568169593811035,
0.02173488773405552,
-0.004191415384411812,
0.04999024048447609,
0.009509013034403324,
0.015617568045854568,
-0.006814062129706144,
0.056650929152965546,
0.035774923861026764,
0.0055038342252373695,
-0.0348108746111393,
0.10979623347520828,
-0.0014734588330611587,
0.0536360926926136,
0.02820276841521263,
-0.024749726057052612,
0.01954386942088604,
0.0186849907040596,
-0.05805318057537079,
0.049324169754981995,
-0.02057803049683571,
0.054863061755895615,
-0.000026326435545342974,
0.02399601601064205,
0.01989443227648735,
-0.05360103398561478,
0.01484632957726717,
-0.010622049681842327,
0.05104192718863487,
0.04224280267953873,
-0.031235136091709137,
0.006678219418972731,
0.01741420105099678,
-0.008991933427751064,
0.004636191762983799,
0.06208465248346329,
-0.01730026863515377,
0.014399362727999687,
-0.029675131663680077,
0.04052504524588585,
0.03444278612732887,
0.010131261311471462,
-0.08609819412231445,
-0.0252054575830698,
-0.033075589686632156,
-0.017843641340732574,
0.010797331109642982,
0.010341599583625793,
0.011340702883899212,
0.008965641260147095,
-0.07039298862218857,
-0.052899908274412155,
-0.024539388716220856,
0.0024605118669569492,
0.11645692586898804,
0.0013989642029628158,
-0.030604122206568718,
-0.03989403322339058,
0.06082262843847275,
-0.005429339595139027,
0.03568728268146515,
-0.06583566963672638,
0.0007279653218574822,
0.017510605975985527,
0.023890847340226173,
-0.021997809410095215,
0.007112040650099516,
-0.021016232669353485,
0.029832884669303894,
-0.07063838094472885,
0.010841150768101215,
-0.014776217751204967,
-0.014618463814258575,
0.0012740762904286385,
-0.01135823130607605,
-0.004903495777398348,
0.02779962122440338,
0.03465312346816063,
-0.011314410716295242,
-0.004640573635697365,
-0.040735386312007904,
0.04294392839074135,
-0.014644755981862545,
-0.028395578265190125,
-0.0050568669103085995,
0.04722079262137413,
-0.0013332337839528918,
-0.05433721840381622,
-0.04907877743244171,
0.0125676728785038,
-0.016581615433096886,
-0.06257543712854385,
0.02583646960556507,
0.044836968183517456,
0.010069913230836391,
-0.05738711357116699,
-0.07021770626306534,
0.028816252946853638,
0.024714669212698936,
-0.0762123316526413,
-0.0016936559695750475,
-0.0688154548406601,
0.08406493067741394,
0.038596950471401215,
-0.012926999479532242,
0.035319190472364426,
0.005131361540406942,
-0.01147216372191906,
0.015091723762452602,
-0.01984184794127941,
-0.044486407190561295,
-0.033987052738666534,
0.01470610499382019,
0.017799820750951767,
0.047080568969249725,
-0.029727715998888016,
0.028413105756044388,
0.01133193913847208,
-0.017431730404496193,
0.058789364993572235,
0.01914072223007679,
0.03141041845083237,
0.02082342468202114,
0.03621312603354454,
0.05233900994062424,
0.045643262565135956,
-0.058438800275325775,
0.08203166723251343,
-0.0046712476760149,
0.01438183430582285,
0.008124290034174919,
0.06001633405685425,
0.011253062635660172,
0.025976695120334625,
-0.042347971349954605,
0.016870830208063126,
0.03556458652019501,
0.034285031259059906,
-0.006608106661587954,
-0.013207449577748775,
-0.05991116538643837,
-0.024819837883114815,
-0.027922319248318672,
-0.021349268034100533,
-0.05724688619375229,
0.03603784367442131,
-0.02687063068151474,
0.026134448125958443,
-0.0038167512975633144,
-0.04112100228667259,
-0.02404860034584999,
-0.0312526635825634,
0.05374126136302948,
-0.046274274587631226,
-0.046098992228507996,
0.04273359104990959,
-0.05623025447130203,
-0.015091723762452602,
0.0341448076069355,
-0.03782571479678154,
0.011130365543067455,
0.02185758389532566,
0.015994422137737274,
0.029552435502409935,
-0.003545065177604556,
0.020052185282111168,
-0.023505227640271187,
-0.05433721840381622,
0.03712458908557892,
-0.0028702320996671915,
-0.07361816614866257,
-0.015074195340275764,
0.005591474939137697,
0.014504531398415565,
0.010026092641055584,
0.019351061433553696,
0.013601832091808319,
0.0015567174414172769,
0.0348108746111393,
-0.012962055392563343,
-0.04290887340903282,
-0.024346578866243362,
0.005727318115532398,
0.004211134277284145,
0.020840952172875404,
0.007734289392828941,
0.017098695039749146,
0.011840254999697208,
0.01764206774532795,
-0.034565482288599014,
-0.007528333924710751,
0.014609700068831444,
-0.022506125271320343,
-0.0284306351095438,
-0.04427606612443924,
0.0048640575259923935,
0.02082342468202114,
0.0013967732666060328,
0.002097898628562689,
0.026940742507576942,
0.016704311594367027,
0.00677462387830019,
0.07319749146699905,
0.04445134848356247,
0.068289615213871,
-0.00023430185683537275,
-0.006402151193469763,
0.02941220998764038,
0.027484115213155746,
0.023662982508540154,
0.028220295906066895,
0.02369803749024868,
-0.0462392196059227,
0.006660690996795893,
0.005017428658902645,
-0.05868419259786606,
-0.00510068703442812,
-0.03112996742129326,
-0.01694970577955246,
0.01432924997061491,
-0.011805198155343533,
0.00781316589564085,
-0.06821949779987335,
-0.0312526635825634,
-0.05072642117738724,
0.06134847179055214,
0.0019730105996131897,
0.04781674966216087,
-0.01994701661169529,
-0.06464376300573349,
0.06078756973147392,
0.018947914242744446,
0.035196494311094284,
-0.021436909213662148,
-0.004894731566309929,
-0.04048999026417732,
0.008799123577773571,
0.06530983000993729,
-0.0035406830720603466,
-0.0037729309406131506,
-0.016450153663754463,
-0.015389702282845974,
-0.035021211951971054,
-0.010569465346634388,
0.06913096457719803,
-0.01637127809226513,
-0.0052496762946248055,
-0.024066127836704254,
-0.002957872813567519,
0.052619460970163345,
0.000909819733351469,
0.011866547167301178,
0.017598247155547142,
0.009666766040027142,
-0.05573946610093117,
-0.02928951196372509,
0.02080589532852173,
-0.018229259178042412,
-0.046274274587631226,
0.01891285739839077,
-0.012331042438745499,
-0.0033062442671507597,
0.020998705178499222,
0.06429319828748703,
-0.03891246020793915,
-0.04238303005695343,
0.04329449310898781,
0.0528297983109951,
-0.05794801190495491,
0.06271566450595856,
-0.057001493871212006,
-0.018667463213205338,
0.056019917130470276,
-0.006187431514263153,
-0.008404740132391453,
0.011086544953286648,
-0.002813265658915043,
0.02974524348974228,
-0.029657604172825813,
-0.01770341582596302,
-0.0019039936596527696,
-0.04034976661205292,
0.019053082913160324,
-0.04297898709774017,
0.006564286537468433,
-0.06846489012241364,
0.01568767987191677,
0.007874513976275921,
0.009859575890004635,
-0.022523652762174606,
0.0243991632014513,
0.009938452392816544,
0.04280370473861694,
-0.019684094935655594,
-0.04427606612443924,
0.038667064160108566,
-0.03472323343157768,
-0.023943431675434113,
0.06513454765081406,
0.03701942041516304,
-0.0093424953520298,
-0.002736580092459917,
-0.008089234121143818,
0.011621152982115746,
-0.022330842912197113,
0.04227786138653755,
-0.023908374831080437,
0.042523253709077835,
-0.020542973652482033,
0.04185718670487404,
-0.04588865488767624,
0.005771138239651918,
-0.07256647944450378,
0.032900307327508926,
0.04841270670294762,
-0.010332834906876087,
0.008571257814764977
] |
21,509 | fp2md4roam | converter | null | def converter(): # pragma: no cover
if len(sys.argv) != 3:
print('usage: python3 convert.py path_to_map target_directory')
sys.exit(1)
map_path = sys.argv[1]
target_dir = sys.argv[2]
convert(map_path, target_dir)
| () | [
-0.003762286389246583,
0.018570920452475548,
-0.011639036238193512,
-0.04054335877299309,
-0.03607671707868576,
-0.020374756306409836,
-0.015581706538796425,
0.05892530828714371,
0.024772679433226585,
-0.05469917878508568,
0.013966843485832214,
0.03370596095919609,
-0.021577313542366028,
0.07029806077480316,
0.01994527131319046,
-0.0017673297552391887,
0.007773674093186855,
0.04947664216160774,
-0.023054741322994232,
0.03659209981560707,
0.027968047186732292,
-0.023844992741942406,
0.06122734397649765,
0.06342630833387375,
-0.037725940346717834,
0.010127250105142593,
0.013193771243095398,
0.02549421414732933,
-0.012016982771456242,
-0.02410268411040306,
-0.045216154307127,
-0.0027358178049325943,
0.026439080014824867,
0.05456174165010452,
-0.03270955756306648,
0.014447866939008236,
0.0027809138409793377,
0.03717619925737381,
-0.07854416966438293,
-0.090432308614254,
0.0180898979306221,
-0.026576515287160873,
-0.004065073095262051,
0.06778987497091293,
0.05985299497842789,
0.01769477128982544,
-0.08837077766656876,
-0.12699005007743835,
-0.03913465142250061,
0.022573718801140785,
-0.008417900651693344,
-0.02635318413376808,
0.012901721522212029,
0.028139840811491013,
0.00035700920852832496,
0.046796657145023346,
-0.010195967741310596,
0.025992415845394135,
0.007086498197168112,
-0.01193967554718256,
-0.03635158762335777,
-0.020735522732138634,
0.0034917108714580536,
0.005991312209516764,
0.023552943021059036,
0.025081908330321312,
-0.03762286528944969,
-0.020271679386496544,
0.006158811040222645,
0.06222375109791756,
-0.017643233761191368,
-0.02439473383128643,
0.0032984428107738495,
-0.024016786366701126,
0.05164124444127083,
0.0391002893447876,
0.003092290135100484,
0.007756494451314211,
0.02965162694454193,
0.025511393323540688,
-0.026215748861432076,
-0.051538169384002686,
-0.030682390555739403,
-0.04597204551100731,
-0.021302442997694016,
0.002791650826111436,
0.016586700454354286,
-0.03655774146318436,
-0.06644988059997559,
0.0003900258452631533,
-0.027830611914396286,
-0.04528487101197243,
0.00734418909996748,
0.048239726573228836,
0.015375553630292416,
0.012678389437496662,
0.011424294672906399,
0.012772876769304276,
-0.04418538883328438,
-0.008117261342704296,
-0.0016642534174025059,
-0.02463524416089058,
-0.017153620719909668,
-0.005557532422244549,
0.026524977758526802,
-0.029101885855197906,
0.016749905422329903,
0.017411312088370323,
-0.025356778874993324,
-0.008246107026934624,
-0.09689176082611084,
-0.014001202769577503,
-0.015392732806503773,
-0.0596468411386013,
-0.026387542486190796,
-0.019618863239884377,
0.026971641927957535,
-0.009173793718218803,
-0.012498006224632263,
0.01884579099714756,
0.006639834027737379,
0.03389493748545647,
-0.007777968887239695,
-0.022848589345812798,
-0.027383947744965553,
-0.03404955193400383,
0.022041156888008118,
0.02960008941590786,
0.001234768657013774,
-0.005488815251737833,
-0.024772679433226585,
-0.02781343273818493,
-0.02781343273818493,
0.02180064655840397,
0.051778681576251984,
-0.04037156701087952,
-0.052465856075286865,
-0.006313425954431295,
-0.004565422888845205,
0.0581694133579731,
0.09414305537939072,
-0.05335918441414833,
0.06122734397649765,
-0.022178592160344124,
0.020787062123417854,
-0.03999361768364906,
0.0034208460710942745,
-0.02683420665562153,
-0.005351379979401827,
0.04019977152347565,
-0.0013883094070479274,
-0.006296246312558651,
-0.011149424128234386,
0.00289902207441628,
0.00008831280138110742,
-0.015212349593639374,
0.0630483627319336,
-0.02219577133655548,
0.01815861463546753,
-0.0097750723361969,
0.01705913431942463,
0.059921711683273315,
-0.018691176548600197,
0.005248303525149822,
0.021646030247211456,
-0.04858331382274628,
-0.020099885761737823,
0.013709153048694134,
0.023312432691454887,
-0.037382353097200394,
-0.003472384065389633,
-0.052878160029649734,
-0.04191771149635315,
-0.011209552176296711,
0.10981065779924393,
-0.04896125942468643,
0.02607831358909607,
0.016200164332985878,
0.0289644505828619,
0.07311548292636871,
-0.01826169155538082,
0.030098291113972664,
0.002548991935327649,
0.04844588041305542,
0.007189574651420116,
-0.01109788566827774,
0.008864564821124077,
0.060093507170677185,
-0.014499405398964882,
-0.044151030480861664,
0.045525383204221725,
0.019567325711250305,
-0.03138674423098564,
0.033035967499017715,
0.018931686878204346,
-0.034135445952415466,
0.020306039601564407,
0.026404721662402153,
0.003697863547131419,
0.008658412843942642,
-0.00484458776190877,
0.0021882248111069202,
0.04470077157020569,
0.020769882947206497,
-0.04927048832178116,
-0.004299142397940159,
-0.012274674139916897,
0.05311867222189903,
0.00950879231095314,
-0.021594492718577385,
0.07765084505081177,
-0.06383861601352692,
0.013142232783138752,
-0.07019498944282532,
0.033499810844659805,
-0.010513786226511002,
0.02867240086197853,
0.03081982582807541,
-0.05201919376850128,
0.038138244301080704,
-0.0010935754980891943,
0.04377308487892151,
0.006996306590735912,
0.011450063437223434,
0.003590492531657219,
-0.00838354229927063,
0.013391334563493729,
0.021869363263249397,
0.014963248744606972,
-0.005226829554885626,
0.006708551663905382,
-0.11310910433530807,
-0.0123433917760849,
0.01405274122953415,
0.03800081089138985,
-0.05215662717819214,
0.02977188304066658,
-0.05256893113255501,
-0.008014185354113579,
-0.0075847008265554905,
0.030562134459614754,
0.01156172901391983,
-0.031936485320329666,
0.032812636345624924,
0.003783760592341423,
-0.014181585982441902,
0.015023376792669296,
-0.07435239851474762,
0.007202459033578634,
0.06047145277261734,
0.04655614495277405,
0.014963248744606972,
-0.04401359707117081,
0.0677211582660675,
-0.020683985203504562,
0.012180187739431858,
-0.03169597312808037,
-0.10912348330020905,
-0.013803639449179173,
0.03727927431464195,
0.009371357038617134,
-0.012850183993577957,
-0.03377468138933182,
-0.009242511354386806,
0.01410427875816822,
-0.05689813941717148,
-0.03635158762335777,
-0.007331304717808962,
0.036970045417547226,
-0.055351994931697845,
0.029445474967360497,
0.06191452220082283,
-0.002722933189943433,
0.03334519639611244,
-0.015822218731045723,
-0.02862086333334446,
0.04305155202746391,
-0.03198802471160889,
0.072840616106987,
0.028758298605680466,
0.006399322766810656,
-0.025597291067242622,
-0.06342630833387375,
-0.013236720114946365,
-0.004339943174272776,
-0.021611671894788742,
-0.03040752001106739,
0.009586099535226822,
0.0003454668039921671,
-0.05143509432673454,
0.052637651562690735,
0.027779072523117065,
-0.05473353713750839,
-0.02336397022008896,
-0.021199367940425873,
-0.05810069665312767,
-0.03896285593509674,
-0.07655136287212372,
0.049407925456762314,
-0.0706416517496109,
-0.028775477781891823,
-0.018175793811678886,
0.05586737394332886,
0.017127851024270058,
-0.053221751004457474,
0.037725940346717834,
-0.059921711683273315,
-0.047312039881944656,
-0.024772679433226585,
0.021474236622452736,
-0.019155019894242287,
-0.039169009774923325,
0.023776276037096977,
0.0532904677093029,
0.00450958963483572,
-0.005639134906232357,
0.03092290088534355,
0.03683261200785637,
0.0432577021420002,
-0.027624458074569702,
-0.03758850321173668,
0.0689237117767334,
0.030544955283403397,
0.015710551291704178,
0.0003454668039921671,
0.006489514373242855,
0.0237075574696064,
0.0028625158593058586,
0.14210791885852814,
-0.06163965165615082,
-0.0037966452073305845,
0.061777085065841675,
0.0496140792965889,
-0.04463205486536026,
0.03329365700483322,
-0.03999361768364906,
-0.02647344022989273,
-0.022401925176382065,
-0.008735720068216324,
-0.0017286761431023479,
0.06713705509901047,
0.03087136335670948,
0.011518781073391438,
-0.008770078420639038,
0.04580025374889374,
0.07854416966438293,
-0.03590492531657219,
-0.023896532133221626,
-0.04030285030603409,
-0.055729940533638,
0.007030665408819914,
0.029634447768330574,
-0.026232928037643433,
0.002323512453585863,
-0.04167719930410385,
0.01862245798110962,
0.028225736692547798,
-0.06267041712999344,
0.007271176669746637,
-0.013631845824420452,
0.013984023593366146,
0.0030514891259372234,
-0.02827727608382702,
-0.07758212089538574,
-0.00367209454998374,
-0.0466935820877552,
0.053221751004457474,
-0.0894702598452568,
0.032932888716459274,
0.10761170089244843,
0.06054016947746277,
0.021233726292848587,
-0.030270084738731384,
0.006270477082580328,
-0.06146785616874695,
0.0031094695441424847,
0.024326015263795853,
0.021783465519547462,
-0.06129606440663338,
0.05511148273944855,
-0.01317659206688404,
0.0581694133579731,
-0.05078227445483208,
0.04071515426039696,
0.042982831597328186,
-0.06906114518642426,
0.054493024945259094,
-0.018021179363131523,
-0.04336078092455864,
-0.015968242660164833,
-0.007649123203009367,
0.04700281098484993,
0.050610482692718506,
-0.03109469637274742,
0.011458653025329113,
-0.0035668706987053156,
-0.023140637204051018,
0.039856184273958206,
0.019567325711250305,
0.015942472964525223,
-0.034083910286426544,
-0.020855778828263283,
0.04487256705760956,
0.016578111797571182,
-0.02271115407347679,
-0.0014022677205502987,
0.03607671707868576,
0.029685985296964645,
0.03487415984272957,
0.0069318837486207485,
0.03336237370967865,
-0.021611671894788742,
0.00971494521945715,
0.016586700454354286,
-0.06634680181741714,
0.03006393276154995,
-0.07091651856899261,
-0.035939283668994904,
-0.02532242052257061,
-0.031232129782438278,
0.008855975233018398,
0.010118660517036915,
0.010556735098361969,
0.009208153001964092,
0.03301878646016121,
-0.05201919376850128,
0.04782742261886597,
0.015203760005533695,
-0.008967641741037369,
0.03655774146318436,
-0.0268857441842556,
-0.051881756633520126,
0.013331206515431404,
-0.08411028981208801,
0.04346385598182678,
0.05545506998896599,
0.02509908936917782,
0.046796657145023346,
0.032108280807733536,
0.016921699047088623,
0.018107077106833458,
-0.03631722927093506,
0.011355577036738396,
-0.03243468701839447,
0.0018381946720182896,
-0.007202459033578634,
-0.09146307408809662,
0.025528572499752045,
0.06442271173000336,
0.02491011470556259,
0.003468089271336794,
-0.006742910481989384,
0.002195740817114711,
-0.04631563648581505,
0.07517700642347336,
-0.02722933329641819,
-0.033843398094177246,
-0.0020872957538813353,
0.010565324686467648,
0.01101198885589838,
-0.003017130307853222,
-0.0540120005607605,
0.12973874807357788,
0.021955261006951332,
0.023260893300175667,
0.029170604422688484,
0.007374253123998642,
0.048995621502399445,
-0.00884738564491272,
-0.05232842266559601,
0.011793650686740875,
-0.01477427501231432,
0.022693973034620285,
-0.002398672280833125,
0.03978746756911278,
0.009749303571879864,
-0.02387935109436512,
0.010788656771183014,
0.0058796461671590805,
0.017179390415549278,
-0.02937675639986992,
0.004870356991887093,
0.015272477641701698,
0.07359650731086731,
-0.0047028581611812115,
-0.014817223884165287,
0.03930644318461418,
-0.03889413923025131,
-0.010737118311226368,
-0.0168615709990263,
0.005802338942885399,
0.04803357273340225,
0.003938375040888786,
-0.07428368180990219,
-0.03580184653401375,
-0.01688734069466591,
0.009268281050026417,
-0.016191575676202774,
-0.025683186948299408,
-0.016930289566516876,
0.02654215693473816,
0.01716221123933792,
-0.006609770003706217,
-0.0386192686855793,
-0.02475550025701523,
0.07655136287212372,
-0.007730725221335888,
-0.031644437462091446,
-0.03827568143606186,
0.061021193861961365,
-0.03545825928449631,
0.0058538769371807575,
-0.001989588141441345,
0.015272477641701698,
0.029685985296964645,
0.05435558781027794,
-0.021869363263249397,
-0.0024931589141488075,
-0.0498545877635479,
0.034822624176740646,
-0.02346704714000225,
-0.009345588274300098,
-0.010281864553689957,
-0.00488753616809845,
-0.003596934722736478,
-0.01309928484261036,
0.03913465142250061,
0.029273679479956627,
0.015298246406018734,
-0.0076147643849253654,
-0.04689973592758179,
-0.0015182285569608212,
0.025459855794906616,
-0.035011596977710724,
-0.027091898024082184,
-0.03183341026306152,
0.05384020879864693,
-0.009852380491793156,
-0.05325610935688019,
-0.02353576384484768,
0.004913305398076773,
-0.01688734069466591,
0.00733989430591464,
-0.021714748814702034,
0.02798522636294365,
0.0391002893447876,
-0.013202360831201077,
-0.0053041367791593075,
0.048892542719841,
0.030098291113972664,
-0.032348789274692535,
-0.032469045370817184,
-0.056348398327827454,
0.07174113392829895,
-0.006102978251874447,
0.03693568706512451,
0.004118758719414473,
-0.011621857061982155,
-0.03686697036027908,
0.00729694589972496,
-0.02746984362602234,
-0.01879425160586834,
-0.046796657145023346,
0.015341195277869701,
-0.043738726526498795,
0.048755109310150146,
-0.03769158199429512,
0.04291411489248276,
-0.014319021254777908,
-0.0015257445629686117,
0.05459610000252724,
0.01263544149696827,
0.02867240086197853,
-0.06191452220082283,
0.011364166624844074,
0.05614224448800087,
0.05078227445483208,
-0.0684426873922348,
0.06370117515325546,
-0.009345588274300098,
-0.02202397771179676,
0.039340801537036896,
0.013408513739705086,
0.06301400065422058,
0.02740112692117691,
-0.02700600028038025,
-0.004857472609728575,
-0.02769317664206028,
0.025236522778868675,
0.005866761785000563,
0.010393531061708927,
-0.032400328665971756,
0.02317499741911888,
0.00783380214124918,
-0.04676229879260063,
-0.056691985577344894,
0.032400328665971756,
-0.009362767450511456,
0.025511393323540688,
-0.028809836134314537,
-0.046796657145023346,
0.0006818070542067289,
-0.018175793811678886,
0.042811039835214615,
-0.0022891536355018616,
-0.019412711262702942,
0.051538169384002686,
-0.04988894984126091,
-0.04363565146923065,
0.04208950325846672,
-0.011415704153478146,
-0.030596492812037468,
0.015306835994124413,
-0.031060336157679558,
0.029411114752292633,
-0.05054176598787308,
-0.0034960058983415365,
-0.03265801817178726,
0.0011724933283403516,
0.02006552740931511,
-0.007945467717945576,
-0.016930289566516876,
-0.027590099722146988,
-0.010908912867307663,
0.028345992788672447,
0.014791454188525677,
-0.0014452161267399788,
0.020649626851081848,
0.0054286872036755085,
0.027658818289637566,
-0.011166603304445744,
-0.04648742824792862,
0.015135042369365692,
-0.01786656491458416,
0.039924900978803635,
0.015023376792669296,
0.019343992695212364,
0.0003371455240994692,
0.00033258224721066654,
0.017196569591760635,
-0.007327009923756123,
-0.005626250058412552,
0.028139840811491013,
-0.024961654096841812,
0.012558134272694588,
-0.07634520530700684,
0.02485857717692852,
0.06851140409708023,
0.028345992788672447,
-0.0015815775841474533,
0.028758298605680466,
0.01571914181113243,
-0.0034809738863259554,
0.09407433867454529,
0.01989373378455639,
0.044597696512937546,
-0.00031298701651394367,
-0.04995766654610634,
0.006639834027737379,
-0.00817738939076662,
-0.0201686043292284,
0.041539765894412994,
0.014001202769577503,
-0.03458211198449135,
-0.056451473385095596,
-0.016509393230080605,
-0.03288135305047035,
0.0013485820963978767,
-0.018519382923841476,
0.010221736505627632,
0.014276073314249516,
-0.06205195561051369,
0.00014186417683959007,
-0.01214582845568657,
-0.011896727606654167,
-0.03265801817178726,
0.028861375525593758,
0.004157412331551313,
0.024205761030316353,
0.01017019897699356,
-0.0760016217827797,
0.043566931039094925,
-0.01913784071803093,
0.09860970079898834,
-0.005351379979401827,
0.00329414801672101,
0.017969641834497452,
-0.013133643195033073,
0.06854576617479324,
0.069920115172863,
0.011398524977266788,
0.03386057913303375,
-0.0041445279493927956,
-0.040096696466207504,
-0.0038997214287519455,
0.02734958939254284,
-0.04353257268667221,
-0.05116022378206253,
-0.02960008941590786,
-0.007271176669746637,
0.05916581675410271,
-0.05435558781027794,
0.0008632643148303032,
0.024497810751199722,
0.02600959688425064,
-0.047208964824676514,
-0.03940952196717262,
0.01752297766506672,
0.019962450489401817,
-0.021371161565184593,
0.006175990682095289,
-0.03800081089138985,
0.04270796477794647,
0.019687579944729805,
-0.035011596977710724,
-0.04184899479150772,
-0.05370277166366577,
0.07662007957696915,
0.034358780831098557,
-0.054424308240413666,
0.00329414801672101,
-0.05981863662600517,
0.017093492671847343,
-0.014611070975661278,
0.04164284095168114,
-0.014636839739978313,
-0.034822624176740646,
-0.043566931039094925,
0.019807836040854454,
-0.002458800096064806,
-0.04140232875943184,
-0.06218939274549484,
-0.026576515287160873,
0.0023857876658439636,
-0.010745707899332047,
-0.031060336157679558,
-0.020735522732138634,
0.012351981364190578,
-0.002881842665374279,
-0.0015815775841474533,
0.01569337211549282,
0.0069061145186424255,
0.005707852076739073,
0.01716221123933792,
0.01063404232263565,
-0.02867240086197853,
0.03896285593509674,
-0.014585302211344242,
-0.019790656864643097,
0.014181585982441902,
0.01994527131319046,
0.016835801303386688,
-0.009654817171394825,
0.011982624419033527,
0.0017168652266263962,
-0.018828611820936203,
0.017265286296606064,
-0.02099321410059929,
0.019206557422876358,
-0.017565926536917686,
0.03796645253896713,
0.0312836691737175,
-0.008821616880595684,
-0.056107886135578156,
0.03504595533013344,
0.043326422572135925,
0.0074644447304308414,
-0.015598885715007782
] |
21,513 | numbers | Number | All numbers inherit from this class.
If you just want to check if an argument x is a number, without
caring what kind, use isinstance(x, Number).
| class Number(metaclass=ABCMeta):
"""All numbers inherit from this class.
If you just want to check if an argument x is a number, without
caring what kind, use isinstance(x, Number).
"""
__slots__ = ()
# Concrete numeric types must provide their own hash implementation
__hash__ = None
| () | [
0.03006141260266304,
-0.008924777619540691,
-0.014992869459092617,
0.04555562138557434,
-0.001183585380204022,
0.03250189125537872,
-0.059063393622636795,
-0.02716688998043537,
-0.052933815866708755,
-0.02639123424887657,
0.017083358019590378,
-0.0036630842369049788,
0.02162378467619419,
0.019003579393029213,
-0.007685618940740824,
-0.024064265191555023,
0.02510477975010872,
0.013432097621262074,
0.018729262053966522,
-0.029342511668801308,
-0.036096397787332535,
0.07870074361562729,
0.020829210057854652,
0.03142353892326355,
0.005032307002693415,
0.06038768216967583,
0.06182548403739929,
0.024821002036333084,
-0.016175271943211555,
0.008291009813547134,
-0.1038244366645813,
0.012334827333688736,
0.03999359905719757,
0.05126899108290672,
0.02563449554145336,
-0.05743640661239624,
-0.003849904052913189,
0.05626346170902252,
-0.06246871128678322,
0.07363059371709824,
0.01570231094956398,
0.009402467869222164,
-0.02722364477813244,
-0.010301094502210617,
-0.010320013388991356,
-0.0007478698389604688,
0.02491559460759163,
0.02851009927690029,
-0.06356598436832428,
-0.03882065415382385,
-0.004462388809770346,
-0.07026311010122299,
0.0015241174260154366,
-0.004755624569952488,
-0.01723470538854599,
0.05762559175491333,
0.06685779243707657,
0.03238838165998459,
-0.07238198071718216,
0.05482565984129906,
-0.023610221222043037,
0.07556027919054031,
0.013082106597721577,
-0.12455905973911285,
-0.007212657947093248,
-0.024385878816246986,
-0.03079923242330551,
0.011653763242065907,
-0.005826881621032953,
0.0013183793053030968,
-0.013063187710940838,
-0.0013585810083895922,
0.06795506179332733,
0.06057686731219292,
0.046615052968263626,
-0.028566855937242508,
-0.03662611544132233,
0.052366260439157486,
-0.0019687009043991566,
-0.008139661513268948,
0.030515454709529877,
-0.025123698636889458,
0.025993946939706802,
0.004665762186050415,
-0.06946853548288345,
-0.003438427811488509,
-0.0032539728563278913,
0.01866304874420166,
0.04150707274675369,
0.012353746220469475,
-0.06303626298904419,
-0.00289925211109221,
-0.016090139746665955,
-0.011937540024518967,
-0.0013538514031097293,
0.009596382267773151,
0.03140462189912796,
-0.04343675449490547,
-0.017083358019590378,
-0.02046976052224636,
-0.02584259957075119,
0.023477792739868164,
0.0029820201452821493,
-0.04075033590197563,
-0.04706909507513046,
0.0030103980097919703,
-0.004095843993127346,
-0.012921299785375595,
-0.02775336243212223,
0.049679841846227646,
-0.014075324870646,
0.013564527034759521,
-0.07170091569423676,
0.01072675921022892,
-0.017518481239676476,
0.002785741351544857,
-0.02697770483791828,
-0.03079923242330551,
-0.011209179647266865,
0.009979480877518654,
-0.023288607597351074,
0.03023167885839939,
-0.03367483615875244,
0.05558239668607712,
0.033826183527708054,
0.029626287519931793,
0.03424238786101341,
-0.011388905346393585,
-0.039539553225040436,
-0.00320431194268167,
0.019826533272862434,
0.0040769255720078945,
0.021150823682546616,
0.10844054073095322,
0.0018339069793000817,
0.04805285483598709,
-0.03624774515628815,
0.01616581343114376,
-0.048317715525627136,
-0.002833037404343486,
0.0020810291171073914,
-0.005566752981394529,
0.029928984120488167,
-0.01895628497004509,
-0.032464053481817245,
0.005964040290564299,
-0.0248777586966753,
-0.005462701432406902,
-0.05342569574713707,
-0.01570231094956398,
-0.006247817073017359,
0.003142826957628131,
0.09913266450166702,
0.019221141934394836,
-0.045858316123485565,
0.011265935376286507,
0.045479945838451385,
-0.036096397787332535,
-0.05107980594038963,
-0.009170717559754848,
0.010187583975493908,
-0.009463952854275703,
-0.001867014216259122,
-0.06553350389003754,
-0.007591026835143566,
-0.010263257659971714,
-0.02947494015097618,
-0.08649513870477676,
-0.00531135406345129,
0.04616101086139679,
-0.0490744523704052,
-0.046804238110780716,
0.026485826820135117,
0.04075033590197563,
0.03585045784711838,
0.008650460280478,
-0.005945121869444847,
-0.0005524777807295322,
0.06867396086454391,
-0.005126899108290672,
0.030553292483091354,
-0.047371793538331985,
-0.07991152256727219,
-0.005183654371649027,
0.01721578650176525,
-0.0030222218483686447,
-0.02105623111128807,
-0.016506345942616463,
0.0325397290289402,
-0.005585671402513981,
0.008158580400049686,
-0.015267186798155308,
-0.006332950200885534,
-0.06681995838880539,
0.024669654667377472,
0.00909977313131094,
-0.01541853416711092,
0.021340008825063705,
0.00440799817442894,
0.05989580228924751,
-0.016298241913318634,
0.004296852275729179,
0.012221316806972027,
-0.02851009927690029,
0.003057694062590599,
-0.04994469881057739,
-0.01818062737584114,
0.0024570333771407604,
-0.0017274906858801842,
-0.03995576128363609,
-0.01994004286825657,
-0.03893416374921799,
0.005462701432406902,
0.10821351408958435,
0.0237615704536438,
-0.031688399612903595,
0.04313405975699425,
-0.05304732546210289,
0.017017142847180367,
0.03119651973247528,
0.10087315738201141,
0.030137086287140846,
-0.037458524107933044,
0.03844228386878967,
0.009005180560052395,
0.003355659544467926,
0.0007638323004357517,
0.01608067937195301,
0.005249869078397751,
-0.04059898853302002,
0.035888295620679855,
0.001172352465800941,
-0.03624774515628815,
0.03575586527585983,
0.012401042506098747,
-0.04271785542368889,
0.004086384549736977,
0.010111910291016102,
-0.04578264057636261,
0.012382123619318008,
-0.018445486202836037,
0.03045869991183281,
0.023629140108823776,
0.022494032979011536,
-0.009960561990737915,
-0.07033878564834595,
-0.058117467910051346,
0.08225740492343903,
-0.015749607235193253,
-0.008598433807492256,
-0.05073927342891693,
-0.08861400932073593,
-0.010868648067116737,
-0.06122009456157684,
0.01937248930335045,
0.012684818357229233,
-0.09875429421663284,
-0.04018278047442436,
-0.022304849699139595,
-0.02871820330619812,
0.011161883361637592,
-0.017452267929911613,
0.018672507256269455,
0.03463967517018318,
0.006995095871388912,
-0.016714448109269142,
0.02088596485555172,
0.02413993887603283,
-0.016364457085728645,
0.051798708736896515,
0.14847196638584137,
-0.04899877682328224,
0.014898276887834072,
0.029815472662448883,
-0.05036090686917305,
-0.020148146897554398,
0.026920950040221214,
0.02775336243212223,
-0.00442928122356534,
-0.033409979194402695,
-0.003991792444139719,
0.018927905708551407,
-0.008243713527917862,
-0.07325223088264465,
-0.024196693673729897,
0.039350371807813644,
0.009695704095065594,
0.022456197068095207,
-0.01897520199418068,
0.03433698043227196,
0.01311994343996048,
-0.028566855937242508,
-0.011001077480614185,
-0.012751033529639244,
0.03751527890563011,
0.024802085012197495,
-0.045858316123485565,
0.07976017147302628,
-0.0011309684487059712,
-0.05350136756896973,
0.010679463855922222,
-0.016232026740908623,
-0.002324604196473956,
-0.0054863495752215385,
-0.026126375421881676,
-0.021585948765277863,
0.04313405975699425,
0.0006656928453594446,
-0.017196867614984512,
0.05690668895840645,
0.056187789887189865,
0.07037661969661713,
-0.025539902970194817,
0.011417282745242119,
0.06901449710130692,
0.02279672957956791,
0.04612317308783531,
-0.017054980620741844,
-0.027507422491908073,
0.08528435975313187,
-0.020223820582032204,
0.002199269365519285,
0.00885856244713068,
-0.056793179363012314,
-0.017981983721256256,
-0.026372315362095833,
-0.028585772961378098,
-0.0005054772482253611,
-0.03085598722100258,
0.003341470845043659,
-0.029418185353279114,
0.003769500646740198,
0.057171545922756195,
0.009979480877518654,
-0.04245299473404884,
-0.0264290701597929,
-0.00039610499516129494,
0.023856161162257195,
-0.008730863220989704,
-0.005859989207237959,
0.045631293207407,
-0.01792522892355919,
-0.016515804454684258,
-0.03180190920829773,
-0.03851795941591263,
0.003734028432518244,
-0.010528115555644035,
-0.019173845648765564,
0.07045229524374008,
0.009534897282719612,
-0.016430672258138657,
0.02298591285943985,
-0.019580593332648277,
-0.042225975543260574,
0.046615052968263626,
-0.051231153309345245,
0.014094242826104164,
-0.022531870752573013,
-0.019637348130345345,
-0.03469643369317055,
0.05263112112879753,
0.00018770646420307457,
-0.010603789240121841,
0.017452267929911613,
-0.04305838420987129,
-0.011265935376286507,
0.017811717465519905,
-0.02623988687992096,
0.056603994220495224,
0.00613430654630065,
-0.01198483631014824,
-0.05554456263780594,
-0.07809534668922424,
-0.038574714213609695,
-0.024234531447291374,
-0.0212643351405859,
0.013763170689344406,
0.05512835457921028,
-0.04521508887410164,
-0.03499912843108177,
0.03142353892326355,
-0.012013213708996773,
-0.03995576128363609,
-0.06420920789241791,
-0.053728390485048294,
0.015409075655043125,
0.029399266466498375,
0.041658420115709305,
-0.03768554702401161,
0.07336574047803879,
-0.014028028585016727,
-0.018691426143050194,
-0.030553292483091354,
-0.045101579278707504,
-0.04771232232451439,
0.01754686050117016,
0.031877584755420685,
0.010395687073469162,
-0.07279818505048752,
0.006649834103882313,
0.09398684650659561,
-0.03369375318288803,
-0.015219890512526035,
0.015560423023998737,
0.004065101500600576,
0.015437453053891659,
0.05724722146987915,
-0.08649513870477676,
0.007874803617596626,
-0.014046947471797466,
0.038404446095228195,
-0.039728738367557526,
-0.012098346836864948,
-0.028093894943594933,
0.055090516805648804,
-0.0297019612044096,
0.03214244171977043,
-0.08036556094884872,
0.02835875190794468,
-0.015617177821695805,
0.045631293207407,
-0.018776558339595795,
-0.017660370096564293,
0.05493916943669319,
-0.029247919097542763,
0.049112290143966675,
-0.015749607235193253,
0.011824029497802258,
-0.012088887393474579,
0.0056566158309578896,
0.008726133964955807,
-0.014226672239601612,
0.006489027291536331,
-0.01664823293685913,
0.010688922367990017,
-0.08914372324943542,
-0.051609523594379425,
-0.061749812215566635,
-0.0320289321243763,
0.015522586181759834,
0.00286850961856544,
-0.007808588910847902,
0.036663949489593506,
0.042377322912216187,
0.08066825568675995,
-0.016515804454684258,
0.07907910645008087,
0.016430672258138657,
-0.005978229455649853,
-0.0023754474241286516,
-0.012136183679103851,
-0.011738896369934082,
0.05959310755133629,
-0.0071606324054300785,
0.019864369183778763,
-0.06681995838880539,
-0.0581931434571743,
-0.02031841315329075,
0.04188544303178787,
-0.034772105515003204,
-0.01778334006667137,
0.017915768548846245,
-0.07563595473766327,
-0.05860934779047966,
-0.05051225423812866,
0.01675228588283062,
0.011180802248418331,
-0.03295593336224556,
-0.010121368803083897,
0.02699662372469902,
0.0037505822256207466,
0.029607370495796204,
0.015096920542418957,
-0.019675185903906822,
-0.10253798216581345,
0.04767448827624321,
-0.009884888306260109,
-0.025029106065630913,
-0.016383375972509384,
-0.03159380704164505,
0.04922579973936081,
-0.0007567378925159574,
0.017764421179890633,
0.009534897282719612,
0.010187583975493908,
0.03679637983441353,
0.005907285027205944,
0.012032132595777512,
0.03486669808626175,
0.01639283448457718,
-0.04805285483598709,
0.01140782330185175,
0.006768074352294207,
0.03384510055184364,
0.003939766436815262,
0.019656267017126083,
-0.017981983721256256,
0.031688399612903595,
-0.01826576143503189,
-0.010509197600185871,
-0.012751033529639244,
0.029418185353279114,
0.041431400924921036,
0.0020656578708440065,
0.058533675968647,
-0.014898276887834072,
0.01322399452328682,
-0.0020940357353538275,
-0.005519457161426544,
0.02680744044482708,
-0.006961988750845194,
0.04517725110054016,
0.05747424066066742,
0.02586151659488678,
0.021567029878497124,
0.000754964305087924,
-0.04116654023528099,
-0.024783166125416756,
-0.0118807852268219,
-0.04888526722788811,
-0.008494382724165916,
-0.004932985175400972,
0.007661971263587475,
-0.010395687073469162,
-0.002170891733840108,
0.011464579030871391,
-0.05259328335523605,
-0.01801036112010479,
0.026296641677618027,
0.013365883380174637,
0.05013388395309448,
-0.020999476313591003,
-0.04899877682328224,
-0.00037984695518389344,
-0.040712498128414154,
0.003388766897842288,
0.01956167444586754,
-0.0034668054431676865,
0.09678677469491959,
-0.010225420817732811,
-0.0008383236709050834,
0.03235054388642311,
0.031139764934778214,
0.03195325657725334,
-0.005779585801064968,
0.05206356570124626,
-0.011682141572237015,
-0.023288607597351074,
-0.043588101863861084,
-0.011455119587481022,
-0.011114588007330894,
-0.008210605941712856,
0.02449938841164112,
-0.017036061733961105,
0.05342569574713707,
-0.03161272406578064,
0.03386402130126953,
0.010878107510507107,
0.022172419354319572,
0.030553292483091354,
0.03543424978852272,
0.008693026378750801,
0.028377670794725418,
-0.03747744485735893,
-0.03295593336224556,
-0.02374265156686306,
-0.004173882305622101,
-0.027526341378688812,
0.041469234973192215,
-0.008759240619838238,
0.02145351842045784,
-0.003069518133997917,
0.016430672258138657,
0.021756215021014214,
0.027904709801077843,
0.022115664556622505,
-0.0459718257188797,
0.043966472148895264,
-0.026561500504612923,
-0.0907328724861145,
0.01563609577715397,
-0.000901582243386656,
-0.04775016009807587,
-0.054863497614860535,
0.04332324489951134,
-0.023099424317479134,
-0.04521508887410164,
-0.009080854244530201,
0.0028590504080057144,
0.003769500646740198,
0.0020869411528110504,
0.039161186665296555,
0.040901683270931244,
-0.03596396744251251,
-0.04457186162471771,
-0.003154651029035449,
-0.046047501266002655,
-0.04290703684091568,
0.01282670721411705,
0.019202223047614098,
-0.010433523915708065,
0.048128530383110046,
-0.02298591285943985,
-0.00831465795636177,
0.0010085897520184517,
0.03711799159646034,
0.0064606498926877975,
0.02258862555027008,
0.001535941381007433,
-0.08679783344268799,
0.027545258402824402,
-0.046236686408519745,
-0.0069241514429450035,
-0.08581407368183136,
-0.037023402750492096,
0.013763170689344406,
-0.0014519907999783754,
0.02260754443705082,
-0.007340357638895512,
0.053123001009225845,
-0.03023167885839939,
0.01664823293685913,
0.016572559252381325,
0.008220065385103226,
-0.003523560706526041,
-0.007439679466187954,
-0.017386052757501602,
0.03159380704164505,
0.014160457998514175,
-0.08959776908159256,
-0.006668752525001764,
0.012949677184224129,
0.02396967262029648,
0.002882698317989707,
-0.060236334800720215,
-0.061560627073049545,
0.023610221222043037,
0.04419349133968353,
0.037817977368831635,
0.0769602432847023,
-0.019258979707956314,
-0.013148320838809013,
0.000901582243386656,
0.0297019612044096,
-0.02222917601466179,
-0.03221811726689339,
0.038385529071092606,
-0.024631818756461143,
0.033788345754146576,
-0.009596382267773151,
-0.0090382881462574,
0.08596542477607727,
0.020450841635465622,
-0.06734967231750488,
-0.005481619853526354,
-0.04733395576477051,
-0.02968304418027401,
0.028983060270547867,
0.006891044322401285,
-0.018445486202836037,
0.004379620309919119,
0.030742475762963295,
0.011464579030871391,
0.018331974744796753,
0.058533675968647,
0.03698556497693062,
-0.0019474176224321127,
-0.011256475932896137,
0.02472641132771969,
0.005826881621032953,
-0.028056057170033455,
0.06413353234529495,
-0.00483366334810853,
-0.03760987147688866,
-0.028074976056814194,
0.0029512776527553797,
0.011332149617373943,
0.022153502330183983,
-0.0018540078308433294,
0.01591041497886181,
-0.002394366078078747,
-0.027299318462610245,
-0.012883462943136692,
-0.005576212424784899,
-0.020734617486596107,
0.01129431277513504,
-0.02185080572962761,
0.012609144672751427,
-0.009662596508860588,
-0.043966472148895264,
0.021794050931930542,
-0.0038309856317937374,
0.030156005173921585,
-0.030174924060702324,
0.025199372321367264,
0.020223820582032204,
-0.047220442444086075,
0.04706909507513046,
0.03715582937002182,
-0.05770126357674599,
0.008210605941712856,
-0.021888643503189087,
-0.006687670946121216,
0.06712265312671661,
-0.019618429243564606,
0.0066545638255774975,
-0.08657081425189972,
0.02048867754638195,
0.10745678097009659,
-0.016232026740908623,
-0.012959136627614498,
0.018398189917206764,
0.002530342200770974,
-0.05550672486424446,
0.004332324489951134,
0.009865970350801945,
0.07071715593338013,
0.09095989167690277,
0.013091565109789371,
-0.00327998585999012,
0.01840764842927456,
-0.022304849699139595,
0.08800861984491348,
0.04158274829387665,
-0.01348885241895914,
0.0163549967110157,
0.024556145071983337,
-0.03728825971484184,
-0.013479393906891346,
0.019977880641818047,
0.05842016637325287,
0.057966120541095734,
-0.037061236798763275,
0.015844199806451797,
0.004050912335515022,
0.011001077480614185,
-0.029077652841806412,
-0.016137436032295227,
-0.0026272994000464678,
0.015437453053891659,
-0.030364107340574265,
-0.0062525467947125435,
0.0328802615404129,
0.008740322664380074,
0.046615052968263626,
-0.006839018780738115,
0.000977255986072123,
0.07733861356973648,
0.033220794051885605,
0.000008202920071198605,
-0.022134583443403244,
0.008598433807492256,
-0.019221141934394836,
-0.004303946625441313,
0.04169625788927078,
0.0058126929216086864,
-0.011237557977437973,
-0.03689097240567207,
0.011332149617373943,
-0.04075033590197563,
-0.05195005610585213,
-0.06167413666844368,
0.009156528860330582,
-0.0016163447871804237,
-0.03289917856454849,
-0.025426393374800682,
0.019202223047614098,
0.015219890512526035
] |
21,514 | tempora | _Saved_NS |
Bundle a timedelta with nanoseconds.
>>> _Saved_NS.derive('microseconds', .001)
_Saved_NS(td=datetime.timedelta(0), nanoseconds=1)
| class _Saved_NS:
"""
Bundle a timedelta with nanoseconds.
>>> _Saved_NS.derive('microseconds', .001)
_Saved_NS(td=datetime.timedelta(0), nanoseconds=1)
"""
td = datetime.timedelta()
nanoseconds = 0
multiplier = dict(
seconds=1000000000,
milliseconds=1000000,
microseconds=1000,
)
def __init__(self, **kwargs):
vars(self).update(kwargs)
@classmethod
def derive(cls, unit, value):
if unit == 'nanoseconds':
return _Saved_NS(nanoseconds=value)
try:
raw_td = datetime.timedelta(**{unit: value})
except TypeError:
raise ValueError(f"Invalid unit {unit}")
res = _Saved_NS(td=raw_td)
with contextlib.suppress(KeyError):
res.nanoseconds = int(value * cls.multiplier[unit]) % 1000
return res
def __add__(self, other):
return _Saved_NS(
td=self.td + other.td, nanoseconds=self.nanoseconds + other.nanoseconds
)
def resolve(self):
"""
Resolve any nanoseconds into the microseconds field,
discarding any nanosecond resolution (but honoring partial
microseconds).
"""
addl_micros = round(self.nanoseconds / 1000)
return self.td + datetime.timedelta(microseconds=addl_micros)
def __repr__(self):
return f'_Saved_NS(td={self.td!r}, nanoseconds={self.nanoseconds!r})'
| (**kwargs) | [
-0.008274796418845654,
-0.011836917139589787,
0.0121682770550251,
0.042524538934230804,
0.0336146354675293,
-0.0017258335137739778,
-0.05029308795928955,
-0.009259671904146671,
-0.01641152612864971,
-0.05110308155417442,
0.018758660182356834,
0.05861390754580498,
0.042229995131492615,
-0.009255070239305496,
0.014543023891746998,
0.04786311462521553,
-0.017488446086645126,
0.019016385078430176,
-0.059239812195301056,
-0.0021101192105561495,
0.05507940053939819,
0.03254691883921623,
0.017442423850297928,
0.03254691883921623,
-0.040720466524362564,
-0.02286384254693985,
-0.011993392370641232,
-0.012278730049729347,
-0.027502883225679398,
-0.025827674195170403,
0.03324645757675171,
0.015804031863808632,
-0.023600198328495026,
0.007879004813730717,
0.020562730729579926,
-0.056883472949266434,
-0.02227475866675377,
0.04782629758119583,
-0.07043241709470749,
0.001748844631947577,
0.038290493190288544,
-0.05544757843017578,
-0.016236642375588417,
-0.02037864178419113,
-0.004970400594174862,
0.007566054351627827,
0.0486731082201004,
0.0334305465221405,
0.01742401532828808,
-0.011201810091733932,
0.06126478686928749,
0.006990776397287846,
-0.004850742872804403,
0.0056561315432190895,
-0.07393010705709457,
0.07798006385564804,
0.05437986180186272,
0.03192101791501045,
-0.03749890998005867,
0.06045479699969292,
-0.02564358524978161,
0.027318794280290604,
0.029969673603773117,
-0.012518045492470264,
-0.05121353268623352,
-0.010391819290816784,
-0.05607348307967186,
-0.040720466524362564,
-0.004984206985682249,
0.003983223810791969,
0.04521223530173302,
-0.052575793117284775,
0.011137379333376884,
0.008417465724050999,
0.010999312624335289,
0.02717152237892151,
-0.0122142992913723,
-0.0335041806101799,
-0.0003310723986942321,
0.04090455546975136,
-0.06895970553159714,
-0.050145819783210754,
0.007598269730806351,
0.033375319093465805,
0.046537674963474274,
0.002687697997316718,
0.0037876293063163757,
0.021593628451228142,
-0.02256930060684681,
0.01037340983748436,
-0.028404919430613518,
0.016963792964816093,
0.002963831415399909,
0.013613374903798103,
-0.010161708109080791,
-0.027926286682486534,
-0.037922315299510956,
-0.004993411712348461,
-0.06461520493030548,
-0.01111896988004446,
0.03484803065657616,
-0.03932138904929161,
-0.021796125918626785,
-0.0021319796796888113,
0.028441736474633217,
0.009535805322229862,
0.011128174141049385,
-0.038216859102249146,
0.009765916503965855,
-0.01978955790400505,
-0.004188022576272488,
-0.009572623297572136,
-0.047126758843660355,
-0.008532521314918995,
-0.01709265448153019,
-0.027300385758280754,
0.031810563057661057,
0.03127670660614967,
0.022017033770680428,
0.019145246595144272,
-0.03442462533712387,
0.027042660862207413,
-0.03709391504526138,
0.044991329312324524,
-0.030282625928521156,
-0.039431843906641006,
0.062295686453580856,
0.03895321115851402,
0.002314917976036668,
-0.01671527326107025,
0.01799469068646431,
-0.0030029502231627703,
0.03446144238114357,
0.05765664577484131,
0.048930831253528595,
0.020176144316792488,
0.0335778184235096,
0.08644814789295197,
-0.022458847612142563,
0.08276637643575668,
-0.009563419036567211,
-0.0017338873585686088,
-0.0137054193764925,
0.03862185403704643,
0.020341824740171432,
0.015923690050840378,
-0.04046274349093437,
0.058982085436582565,
-0.06976969540119171,
0.006613394245505333,
-0.05062444880604744,
-0.01680731773376465,
0.03020898997783661,
0.06373158097267151,
0.026895388960838318,
-0.04381316155195236,
0.021814536303281784,
-0.007644291967153549,
-0.07054287195205688,
0.012692930176854134,
-0.021519992500543594,
0.023011112585663795,
-0.004482564982026815,
-0.06748699396848679,
-0.01236157026141882,
0.04517541825771332,
-0.006530554033815861,
-0.033025551587343216,
-0.030043309554457664,
0.022477256134152412,
0.014800747856497765,
-0.014266890473663807,
0.07893732190132141,
0.023673834279179573,
0.0019340841099619865,
0.005370793864130974,
0.03203146904706955,
-0.0213359035551548,
-0.04819447547197342,
-0.024465415626764297,
0.05397486686706543,
-0.005324771627783775,
-0.058098457753658295,
-0.022458847612142563,
-0.005287953652441502,
0.04418133944272995,
-0.033393729478120804,
-0.013640987686812878,
0.01064954325556755,
0.008873085491359234,
0.09867165237665176,
0.03477439656853676,
0.015573921613395214,
0.02439177967607975,
0.019071610644459724,
0.006051922682672739,
-0.007418782915920019,
-0.0426718071103096,
0.06638246029615402,
0.03788549825549126,
-0.059865713119506836,
0.04778948053717613,
0.05150807648897171,
-0.03258373588323593,
0.035878926515579224,
-0.04808402433991432,
-0.025367451831698418,
0.007262307219207287,
-0.07790642231702805,
-0.024907229468226433,
-0.006594985257834196,
-0.01824321039021015,
-0.00511306943371892,
0.049777641892433167,
-0.03133193030953407,
-0.013171561062335968,
-0.004494070541113615,
0.02347133494913578,
-0.0024898024275898933,
-0.03405644744634628,
0.052318066358566284,
-0.02862582542002201,
0.008905300870537758,
-0.002890195930376649,
0.002943121362477541,
-0.018767863512039185,
0.017230721190571785,
-0.00411898922175169,
0.04016819968819618,
-0.024244509637355804,
0.019016385078430176,
-0.026269488036632538,
-0.07488736510276794,
-0.0549321286380291,
0.07577099651098251,
0.016816521063447,
0.009830347262322903,
-0.006558167282491922,
0.06678745895624161,
-0.007253102958202362,
-0.04594859108328819,
-0.005287953652441502,
-0.009199842810630798,
0.008698200806975365,
0.002272347453981638,
-0.04175136610865593,
0.030393078923225403,
0.022366803139448166,
-0.0364680141210556,
0.03696505352854729,
0.005476645193994045,
0.018454913049936295,
0.058356184512376785,
0.028276056051254272,
0.04716357961297035,
0.04418133944272995,
-0.0366705097258091,
0.062369320541620255,
0.0018662012880668044,
-0.0029960470274090767,
0.01706504262983799,
-0.04046274349093437,
0.0009043367463164032,
-0.006944754160940647,
-0.048304930329322815,
0.01037340983748436,
-0.02718993090093136,
-0.043997250497341156,
-0.014865179546177387,
0.021225450560450554,
-0.023268837481737137,
0.00006425134051823989,
-0.023213611915707588,
-0.035805292427539825,
-0.028110375627875328,
-0.030706029385328293,
0.0365048311650753,
0.007879004813730717,
-0.04112546145915985,
-0.0007559150690212846,
-0.03168170154094696,
-0.043187256902456284,
0.038216859102249146,
-0.03939502686262131,
-0.012987472116947174,
0.021280677989125252,
-0.020231371745467186,
0.055594850331544876,
0.046464040875434875,
-0.016393117606639862,
-0.020581139251589775,
-0.004194926004856825,
0.05817209556698799,
0.0212990865111351,
0.0014577540569007397,
0.00838985200971365,
-0.10110162943601608,
-0.020028872415423393,
0.02406042069196701,
0.013917121104896069,
-0.03624710440635681,
0.062037963420152664,
0.0028671848122030497,
0.04856265336275101,
0.007602871861308813,
-0.005071649327874184,
0.031497612595558167,
-0.011533170007169247,
0.03924775496125221,
0.020562730729579926,
-0.02718993090093136,
-0.031147843226790428,
0.009015753865242004,
0.016660045832395554,
0.02378428727388382,
0.017212312668561935,
-0.05117671564221382,
-0.03540029749274254,
0.012711338698863983,
0.06435748189687729,
0.014165641739964485,
0.019752738997340202,
-0.052870333194732666,
0.03617347031831741,
0.018206393346190453,
-0.048341747373342514,
0.0021158719900995493,
0.02987762913107872,
0.010925676673650742,
-0.0518026202917099,
-0.009655463509261608,
-0.0853436142206192,
-0.006222205236554146,
0.019955238327383995,
-0.028828322887420654,
-0.043997250497341156,
0.04966718703508377,
-0.014994041994214058,
0.02037864178419113,
-0.0011367490515112877,
0.03416690230369568,
0.03624710440635681,
-0.09204445034265518,
-0.009600237011909485,
0.01174487266689539,
-0.0365968756377697,
0.011303058825433254,
-0.0083944546058774,
0.08291364461183548,
0.015104494988918304,
-0.029619906097650528,
-0.020047282800078392,
-0.032160330563783646,
0.021832944825291634,
0.05773027986288071,
-0.004599921405315399,
0.030264217406511307,
-0.0457645021378994,
-0.009867165237665176,
-0.03932138904929161,
-0.0289940033107996,
0.051655348390340805,
0.05275988206267357,
-0.019310927018523216,
0.08703723549842834,
-0.011257036589086056,
0.019642286002635956,
-0.004836936015635729,
-0.029803995043039322,
-0.032178740948438644,
-0.03403804078698158,
-0.05110308155417442,
0.04550677910447121,
0.030706029385328293,
0.04731084778904915,
-0.014653476886451244,
-0.035565976053476334,
0.018160371109843254,
-0.04230362921953201,
-0.03720436990261078,
0.06218523159623146,
-0.03385395184159279,
-0.041567277163267136,
0.062037963420152664,
0.0609702467918396,
0.018353663384914398,
0.09174991399049759,
0.0029914446640759706,
0.02588289976119995,
0.030632393434643745,
-0.01647595688700676,
-0.005393804982304573,
0.0064477138221263885,
0.03282305225729942,
-0.0427086278796196,
0.0026094603817909956,
-0.052281249314546585,
-0.01947660557925701,
-0.027871061116456985,
0.03133193030953407,
0.05397486686706543,
-0.04348180070519447,
-0.022624526172876358,
0.051360804587602615,
-0.02131749503314495,
0.00809070747345686,
0.014736317098140717,
-0.023268837481737137,
-0.014312912710011005,
0.06770790368318558,
-0.07105831801891327,
-0.04664812982082367,
0.010336591862142086,
0.001777608529664576,
0.04245090112090111,
-0.024152465164661407,
-0.054158955812454224,
-0.08983539044857025,
-0.008145933970808983,
-0.01799469068646431,
-0.03593415394425392,
-0.0072254897095263,
0.024502234533429146,
0.04635358601808548,
0.04731084778904915,
-0.03416690230369568,
0.02341610938310623,
0.008270193822681904,
-0.005895447451621294,
0.056883472949266434,
0.007340545300394297,
0.009333307854831219,
-0.031239887699484825,
-0.02991444803774357,
0.11634419113397598,
-0.05268624424934387,
0.01340167224407196,
-0.08144093304872513,
-0.031865790486335754,
0.049777641892433167,
-0.03622869774699211,
0.039505477994680405,
0.01803150773048401,
0.020212961360812187,
0.02131749503314495,
-0.060160256922245026,
-0.004365208093076944,
0.034001220017671585,
0.0008013620390556753,
-0.011257036589086056,
0.051655348390340805,
-0.026969024911522865,
0.06678745895624161,
-0.035823702812194824,
0.03392758592963219,
-0.08637451380491257,
-0.014349730685353279,
-0.05150807648897171,
-0.020636366680264473,
-0.03168170154094696,
-0.018390482291579247,
0.020231371745467186,
0.005794198252260685,
0.012260321527719498,
-0.020857272669672966,
0.003684079274535179,
0.035878926515579224,
-0.03876912221312523,
-0.07827460020780563,
0.010005231946706772,
0.0019432884873822331,
0.033393729478120804,
0.02013932727277279,
-0.04381316155195236,
-0.011533170007169247,
-0.011947370134294033,
-0.05147125944495201,
-0.015325401909649372,
-0.019329335540533066,
-0.07396692037582397,
0.0761391744017601,
-0.013769850134849548,
0.01860218495130539,
0.004231743980199099,
0.005867833737283945,
0.0671188160777092,
0.04727403074502945,
0.035492341965436935,
0.08482816815376282,
-0.004567706026136875,
-0.04948309808969498,
0.03770140931010246,
0.008882289752364159,
-0.017746170982718468,
-0.005642325151711702,
-0.010870450176298618,
-0.040720466524362564,
0.01114658359438181,
0.015076881274580956,
-0.01892434060573578,
-0.000439224619185552,
0.0028119580820202827,
0.055668484419584274,
0.033338502049446106,
0.027226749807596207,
0.01712026819586754,
-0.07271511852741241,
0.0732305645942688,
-0.03054034896194935,
-0.026619255542755127,
0.005301760509610176,
-0.004247851669788361,
-0.006976969540119171,
0.008633770048618317,
-0.010787609964609146,
0.007874403148889542,
-0.020507505163550377,
-0.04245090112090111,
0.014055187813937664,
-0.05846663564443588,
0.0019260301487520337,
0.06652972847223282,
0.019274108111858368,
0.011091357097029686,
-0.022311575710773468,
0.001443947316147387,
-0.07702279835939407,
-0.005798800382763147,
0.020875683054327965,
0.03987365588545799,
0.036099836230278015,
-0.05725165084004402,
-0.014294503256678581,
-0.009121605195105076,
-0.009149218909442425,
0.011698850430548191,
-0.023526562377810478,
-0.053238511085510254,
0.03291509672999382,
-0.02923331782221794,
0.003548313630744815,
0.026932207867503166,
0.030043309554457664,
0.01069556549191475,
-0.017516059800982475,
0.08460725843906403,
0.02348974533379078,
0.07098468393087387,
0.05640484020113945,
0.026398349553346634,
-0.0075752586126327515,
-0.02654562145471573,
0.0366705097258091,
-0.002616363577544689,
-0.026950616389513016,
-0.04535950720310211,
-0.011560783721506596,
0.0068573118187487125,
0.003953309264034033,
0.016595615074038506,
-0.0010533337481319904,
0.016089370474219322,
0.07440873980522156,
0.0017937163356691599,
-0.07341465353965759,
0.02251407317817211,
0.010879654437303543,
-0.00883166491985321,
-0.045874956995248795,
0.057398922741413116,
0.0021101192105561495,
-0.00035437115002423525,
0.026619255542755127,
-0.027539700269699097,
-0.06862834841012955,
0.02441019006073475,
-0.009365523234009743,
-0.025201771408319473,
0.008909903466701508,
-0.017571285367012024,
-0.033945996314287186,
0.033945996314287186,
-0.041640911251306534,
-0.05920299142599106,
0.04845220223069191,
0.015988120809197426,
-0.022385211661458015,
0.018721841275691986,
0.015960508957505226,
-0.0028418726287782192,
-0.01404598355293274,
0.011542374268174171,
0.00034516671439632773,
0.009103196673095226,
0.028717869892716408,
-0.06008661910891533,
-0.08806813508272171,
0.01556471735239029,
0.042193178087472916,
0.023213611915707588,
0.02260611765086651,
-0.0044319406151771545,
-0.025772446766495705,
0.019605468958616257,
-0.005062445066869259,
-0.009747507981956005,
0.040683649480342865,
0.0004817951994482428,
-0.004691965878009796,
-0.05644166097044945,
-0.004231743980199099,
0.029730359092354774,
0.0008404809050261974,
0.025735629722476006,
0.016577206552028656,
-0.0548584945499897,
-0.06060206890106201,
-0.013300423510372639,
-0.057398922741413116,
-0.025459496304392815,
-0.10132253170013428,
0.05121353268623352,
-0.026011763140559196,
0.004109784960746765,
-0.026950616389513016,
-0.051323987543582916,
0.018758660182356834,
-0.030945345759391785,
0.007998663000762463,
-0.11317785829305649,
-0.031184660270810127,
0.05507940053939819,
0.0033964402973651886,
-0.09852438420057297,
-0.015168925747275352,
-0.012564067728817463,
-0.009121605195105076,
0.004280067048966885,
-0.008569338358938694,
0.029122864827513695,
0.04837856441736221,
-0.009443760849535465,
-0.04049956053495407,
0.01511369924992323,
-0.04300316795706749,
-0.028883550316095352,
-0.029472634196281433,
-0.07731734216213226,
-0.0036863803397864103,
0.028809914365410805,
-0.026066988706588745,
0.022182714194059372,
0.034645531326532364,
-0.03287827968597412,
-0.01511369924992323,
0.04175136610865593,
0.014901997521519661,
-0.034314174205064774,
0.03689141571521759,
0.013953939080238342,
0.009618645533919334,
-0.035492341965436935,
-0.07197876274585724,
0.014432569965720177,
0.024244509637355804,
0.009701485745608807,
-0.03895321115851402,
0.02192498929798603,
0.07404056191444397,
-0.03569483757019043,
0.032731007784605026,
-0.010815223678946495,
0.008164343424141407,
0.01323599275201559,
-0.01511369924992323,
-0.004928980488330126,
0.007925027050077915,
0.05250215530395508,
0.018372073769569397,
0.004337594844400883,
0.050734903663396835,
-0.03324645757675171,
0.00016999460058286786,
-0.043113622814416885,
-0.033982813358306885,
-0.007538440637290478,
0.02221953123807907,
-0.015012450516223907,
-0.011017721146345139,
-0.06321612745523453,
0.04418133944272995,
0.009301092475652695,
-0.037333231419324875,
0.051986709237098694,
0.013226788491010666,
-0.00709662726148963,
-0.005518064834177494,
0.013245197013020515,
0.020249780267477036,
-0.04480724036693573,
0.024152465164661407,
0.006015105172991753,
0.03142397478222847,
-0.0335594080388546,
0.04458633437752724,
0.06443111598491669,
0.004786311648786068,
-0.01857457123696804,
0.02251407317817211,
0.02930695377290249,
0.016107778996229172,
0.07356192916631699,
0.0012552562402561307,
-0.026895388960838318,
0.010483863763511181,
0.006259022746235132,
0.026066988706588745,
0.006387885194271803,
-0.06733972579240799,
0.0396159328520298,
0.011349081061780453,
0.023066340014338493,
0.026103807613253593,
0.016549592837691307,
-0.07577099651098251,
0.012720543891191483,
0.019900010898709297,
-0.02833128347992897,
0.014138028025627136,
-0.017856623977422714,
-0.017764579504728317,
0.07234694063663483,
0.04112546145915985,
-0.02409723773598671,
0.015233357436954975,
-0.0071012298576533794,
-0.010594316758215427,
-0.017552876845002174,
0.002708408050239086,
0.02533063292503357,
-0.030098536983132362,
0.021483175456523895,
0.04635358601808548,
0.05876117944717407,
-0.06954879313707352,
-0.010189320892095566,
0.01860218495130539,
-0.0023448325227946043,
0.029325362294912338,
0.026343122124671936,
0.017755374312400818,
-0.011836917139589787,
-0.06181705370545387,
-0.001454302342608571,
0.05997616797685623,
-0.03593415394425392,
0.016291867941617966,
-0.02687698043882847,
-0.0091170035302639,
-0.053238511085510254,
-0.04090455546975136,
-0.07308329641819,
0.05824572965502739,
0.05666256695985794,
-0.017552876845002174,
0.015776420012116432,
-0.015923690050840378,
0.004471059422940016
] |
21,515 | tempora | __add__ | null | def __add__(self, other):
return _Saved_NS(
td=self.td + other.td, nanoseconds=self.nanoseconds + other.nanoseconds
)
| (self, other) | [
-0.07583924382925034,
-0.016040274873375893,
0.003698794636875391,
0.09885205328464508,
0.005877713207155466,
-0.0451325923204422,
-0.07872442901134491,
0.019663933664560318,
0.014477464370429516,
-0.049013856798410416,
0.009969357401132584,
-0.03031165339052677,
0.041526105254888535,
0.0596272312104702,
-0.0003853358211927116,
0.032887715846300125,
0.010304245166480541,
-0.011214452795684338,
-0.05502466857433319,
-0.03336858004331589,
-0.008015844039618969,
-0.002799319801852107,
0.008385078981518745,
0.014271379448473454,
-0.006813682150095701,
0.030208611860871315,
0.011884229257702827,
-0.02976209484040737,
-0.03551529720425606,
0.013112151995301247,
0.017568737268447876,
-0.05426902323961258,
-0.050662536174058914,
-0.030500564724206924,
0.04265957325696945,
-0.015842776745557785,
-0.06941626220941544,
0.024936271831393242,
-0.027769939973950386,
0.019749803468585014,
0.043964777141809464,
-0.054131634533405304,
0.0027971731033176184,
0.002009327756240964,
0.013653124682605267,
-0.006023689638823271,
-0.02443823404610157,
0.011626622639596462,
0.0807165876030922,
-0.026687994599342346,
0.010089573450386524,
-0.00331882550381124,
-0.000915575074031949,
0.026670821011066437,
-0.04382738843560219,
0.05790985748171806,
0.047708652913570404,
0.01047598198056221,
-0.07948007434606552,
0.0798235535621643,
0.0407361164689064,
-0.015619518235325813,
0.02876601740717888,
-0.005147829186171293,
-0.010450221598148346,
-0.011197279207408428,
-0.09260081499814987,
0.006268415600061417,
0.02552017942070961,
0.05138383433222771,
0.037988316267728806,
-0.019457848742604256,
0.02608691342175007,
-0.0008796175825409591,
-0.030964255332946777,
0.020488273352384567,
0.0002502267889212817,
0.003275891300290823,
0.026172781363129616,
-0.021072180941700935,
-0.021089354529976845,
-0.021312613040208817,
-0.035583991557359695,
0.023768458515405655,
-0.010733588598668575,
0.014305726625025272,
-0.038572221994400024,
0.0022626405116170645,
-0.06326806545257568,
-0.028628626838326454,
0.012167596258223057,
0.005585759412497282,
-0.017534390091896057,
0.0018719377694651484,
0.04695300757884979,
-0.046609535813331604,
-0.04650649055838585,
-0.0398087315261364,
-0.04276261478662491,
0.015104305930435658,
0.007015473209321499,
0.0022755207028239965,
-0.02280672825872898,
-0.034776825457811356,
0.03579007834196091,
-0.033402927219867706,
0.008217635564506054,
-0.04966646060347557,
0.0032050495501607656,
0.02928122878074646,
0.00032898448989726603,
0.023837152868509293,
-0.04750256985425949,
0.0032694509718567133,
-0.018444597721099854,
-0.027306249365210533,
0.008895997889339924,
0.01693330891430378,
-0.0073589482344686985,
0.06261546164751053,
0.010012291371822357,
0.05138383433222771,
0.028096241876482964,
0.06680585443973541,
-0.0403582938015461,
-0.01854764111340046,
0.0730227455496788,
-0.017293957993388176,
-0.012777263298630714,
-0.09679120779037476,
0.036683112382888794,
-0.03010556846857071,
0.0434839129447937,
0.06890105456113815,
0.033677708357572556,
0.01607462204992771,
0.08284612745046616,
0.0403582938015461,
0.0018633509753271937,
0.010836631059646606,
0.026447562500834465,
0.01035576593130827,
0.017293957993388176,
0.0005565365427173674,
-0.017087873071432114,
0.023545200005173683,
-0.07803747802972794,
0.050353411585092545,
-0.04537302628159523,
0.013369757682085037,
-0.0031449415255337954,
-0.022892598062753677,
0.02366541512310505,
0.028096241876482964,
-0.0037202618550509214,
-0.008758608251810074,
0.027752766385674477,
0.007036940660327673,
-0.023424983024597168,
-0.005190763156861067,
-0.011102823540568352,
0.00003797006866079755,
0.02631017193198204,
-0.026653647422790527,
0.0023248952347785234,
0.02521105296909809,
-0.013524321839213371,
-0.00042263505747541785,
-0.07164885103702545,
-0.014881047420203686,
0.02977926842868328,
-0.07061842828989029,
0.06653107702732086,
0.028044719249010086,
-0.06831714510917664,
-0.04561345651745796,
-0.012124661356210709,
0.017542976886034012,
-0.028783190995454788,
-0.02977926842868328,
0.0644015297293663,
0.003031165339052677,
-0.06773323565721512,
-0.0018912582891061902,
0.01102554239332676,
-0.025142356753349304,
-0.021604565903544426,
0.013550082221627235,
0.07061842828989029,
0.027237553149461746,
0.07556445896625519,
0.03166837990283966,
-0.0036837675143033266,
-0.009617295116186142,
-0.01315508596599102,
-0.019406327977776527,
-0.032080549746751785,
-0.01983567140996456,
0.05268903821706772,
0.10647720098495483,
-0.08222787082195282,
0.009995117783546448,
0.027769939973950386,
-0.025314094498753548,
0.030500564724206924,
-0.05612378567457199,
-0.041216980665922165,
0.036923542618751526,
-0.05038775876164436,
0.01987001858651638,
-0.0013545788824558258,
-0.008436600677669048,
-0.0114205377176404,
0.0687980055809021,
0.01707928627729416,
-0.05110905319452286,
-0.017877865582704544,
-0.0036859142128378153,
0.011274561285972595,
-0.024352366104722023,
0.07370969653129578,
-0.03929352015256882,
-0.01932046003639698,
-0.03609920293092728,
0.01662418246269226,
-0.047708652913570404,
-0.01691613532602787,
-0.005525651387870312,
-0.008767195045948029,
-0.008217635564506054,
0.05526509881019592,
0.01329247560352087,
-0.06240937486290932,
-0.053891200572252274,
0.03537790849804878,
0.06117286905646324,
-0.02333911508321762,
-0.02636169269680977,
-0.014692136086523533,
-0.032080549746751785,
-0.04441129416227341,
-0.006775041110813618,
0.0026383160147815943,
0.01168673112988472,
-0.03436465561389923,
-0.03791962191462517,
0.016890374943614006,
0.045544762164354324,
-0.01933763362467289,
0.04190392792224884,
0.03034600056707859,
0.0050490801222622395,
0.018942637369036674,
0.02790733054280281,
-0.022961292415857315,
0.026464736089110374,
0.008638392202556133,
0.008028724230825901,
-0.0017957293894141912,
-0.00016878567112144083,
0.038778308779001236,
0.024781709536910057,
0.013953665271401405,
-0.03221793845295906,
-0.08305221050977707,
0.043106090277433395,
-0.012545417994260788,
0.008324971422553062,
-0.004252647515386343,
0.013335410505533218,
0.03994612395763397,
-0.025365617126226425,
-0.007577913347631693,
-0.021158048883080482,
-0.010750762186944485,
-0.03764484077692032,
0.015456367284059525,
0.03695789352059364,
-0.05832202732563019,
-0.037782229483127594,
-0.003883412340655923,
0.02223999612033367,
-0.01882242038846016,
-0.0691758319735527,
-0.035583991557359695,
0.02359672077000141,
0.0042225937359035015,
-0.005851952359080315,
0.0007416909793391824,
-0.07109928876161575,
-0.006508848164230585,
0.03120468743145466,
0.0660502091050148,
0.04265957325696945,
0.06501978635787964,
0.012803024612367153,
-0.06392066925764084,
0.005688801873475313,
0.022205647081136703,
0.09198255836963654,
-0.0343131348490715,
0.03647702559828758,
-0.00258464808575809,
0.022686513140797615,
-0.027203205972909927,
-0.006289883051067591,
0.08380785584449768,
0.04884212091565132,
0.018101124092936516,
-0.00867703277617693,
-0.019749803468585014,
0.017929386347532272,
0.009806206449866295,
0.060279831290245056,
0.024266496300697327,
-0.001200015190988779,
-0.05200209096074104,
-0.02069435827434063,
0.005972168408334255,
0.05244860798120499,
0.0031642618123441935,
-0.029882309958338737,
-0.011618035845458508,
-0.013524321839213371,
0.030672302469611168,
-0.05354772508144379,
-0.0034712424967437983,
-0.03202902898192406,
0.03348879516124725,
0.004800060763955116,
-0.04327782988548279,
-0.05289512500166893,
0.02548583224415779,
0.047708652913570404,
-0.03058643452823162,
-0.005285218823701143,
0.027752766385674477,
0.01706211268901825,
-0.0017442081589251757,
0.01287171896547079,
-0.00744481710717082,
0.021690435707569122,
-0.04049568250775337,
-0.007612260989844799,
0.007994377054274082,
-0.06625629216432571,
-0.010012291371822357,
-0.027477987110614777,
0.07391578704118729,
0.01502702385187149,
-0.06395501643419266,
0.003911319654434919,
0.005366794299334288,
0.004602562636137009,
0.06907279044389725,
0.04355260729789734,
-0.0063070566393435,
0.0018869648920372128,
0.011308908462524414,
-0.054406411945819855,
-0.010192615911364555,
0.0387096144258976,
0.021072180941700935,
0.023974543437361717,
-0.015645278617739677,
0.025623222813010216,
-0.04671257734298706,
-0.008767195045948029,
-0.05646726116538048,
-0.04726213589310646,
-0.024764535948634148,
-0.03197750821709633,
0.040117859840393066,
0.0451325923204422,
0.0381600521504879,
0.015482127666473389,
-0.029865136370062828,
0.046369101852178574,
-0.029727745801210403,
-0.05354772508144379,
0.03943090885877609,
0.018616335466504097,
-0.07391578704118729,
0.06471065431833267,
0.0825713500380516,
0.0691758319735527,
0.053891200572252274,
-0.057360295206308365,
0.04626606032252312,
0.04939167946577072,
-0.009187951683998108,
-0.010733588598668575,
0.01581701636314392,
0.019509369507431984,
-0.06965669244527817,
-0.007393295876681805,
-0.028903406113386154,
-0.022634990513324738,
-0.06429848819971085,
-0.00923947338014841,
0.06337110698223114,
-0.024094758555293083,
-0.0017570884665474296,
0.026121260598301888,
-0.01774047501385212,
-0.010982607491314411,
-0.018856767565011978,
-0.047949086874723434,
-0.03840048611164093,
0.05560857430100441,
-0.09782163053750992,
-0.05368511751294136,
-0.005126361735165119,
0.020282188430428505,
-0.022343037649989128,
-0.03141077235341072,
-0.0002125250466633588,
-0.05323860049247742,
0.05794420465826988,
0.028061892837285995,
-0.011523580178618431,
0.029727745801210403,
-0.04777734726667404,
0.02871449664235115,
-0.00365586020052433,
-0.02232586406171322,
-0.000383457459975034,
0.0440334714949131,
-0.038778308779001236,
0.012699982151389122,
0.0114205377176404,
-0.010750762186944485,
0.030157089233398438,
0.026722341775894165,
0.03225228562951088,
-0.024283669888973236,
0.022188473492860794,
-0.11410234123468399,
0.017791995778679848,
0.053066860884428024,
0.010106747038662434,
0.00759508740156889,
-0.009574361145496368,
0.006586129777133465,
-0.0568794310092926,
-0.08621218055486679,
-0.029710572212934494,
-0.022617816925048828,
-0.025674743577837944,
-0.011326082982122898,
0.08277743309736252,
0.009325341321527958,
0.037473104894161224,
0.023236071690917015,
-0.0012311425525695086,
-0.04317478463053703,
-0.00993500929325819,
-0.09315037727355957,
-0.0046326168812811375,
0.0034819759894162416,
-0.029710572212934494,
0.038228750228881836,
-0.004186099395155907,
0.04489216208457947,
-0.01166955754160881,
0.007693835999816656,
0.02768407203257084,
-0.017268197610974312,
-0.021037833765149117,
0.03359183669090271,
0.0015445633325725794,
-0.04502955079078674,
-0.0298136156052351,
-0.06354284286499023,
0.002432231092825532,
0.009359689429402351,
-0.021862173452973366,
-0.027718419209122658,
-0.01851329393684864,
-0.03520616888999939,
0.0407361164689064,
-0.013309650123119354,
-0.025108009576797485,
0.0011216599959880114,
0.038297444581985474,
0.07185493409633636,
0.05014732480049133,
0.033677708357572556,
0.08902867883443832,
0.040186554193496704,
-0.001715227379463613,
0.006251242011785507,
-0.025228226557374,
-0.020041756331920624,
-0.05914636701345444,
0.029092317447066307,
-0.017542976886034012,
-0.016134729608893394,
-0.008771488443017006,
0.0177061278373003,
-0.030981428921222687,
-0.020763052627444267,
-0.023424983024597168,
0.020574143156409264,
0.02011045068502426,
0.030981428921222687,
-0.08435741811990738,
0.015267455950379372,
-0.04004916548728943,
0.019526544958353043,
-0.005074840504676104,
-0.030964255332946777,
-0.013859209604561329,
0.04193827509880066,
0.057635076344013214,
-0.005422608926892281,
-0.017139393836259842,
0.0099521828815341,
-0.03141077235341072,
-0.06258111447095871,
-0.017414173111319542,
0.04135436937212944,
-0.01315508596599102,
-0.057566381990909576,
-0.04963211342692375,
0.04056437686085701,
-0.07941137999296188,
-0.0020876829512417316,
0.0069296048022806644,
0.024901924654841423,
-0.0354122556746006,
-0.026499083265662193,
-0.01531039085239172,
0.00981479324400425,
-0.024781709536910057,
0.03737006336450577,
-0.0024837523233145475,
-0.012116074562072754,
-0.003857651725411415,
-0.04217870905995369,
0.011849882081151009,
-0.00888741109520197,
0.04619736596941948,
-0.007277372758835554,
-0.04156045615673065,
0.0924634262919426,
-0.001537049887701869,
0.004559628199785948,
0.019681107252836227,
0.0032286634668707848,
-0.046849966049194336,
-0.018324382603168488,
0.031290557235479355,
0.02818210981786251,
0.05073123425245285,
0.000041257229895563796,
-0.015791255980730057,
0.006418685894459486,
0.02737494371831417,
0.025623222813010216,
0.0328361950814724,
-0.006195427384227514,
0.0543033704161644,
-0.0007014400325715542,
-0.047090400010347366,
-0.018410250544548035,
-0.016297880560159683,
-0.01883959397673607,
-0.030740996822714806,
0.023545200005173683,
-0.0023549492470920086,
-0.027477987110614777,
-0.012124661356210709,
-0.04410216957330704,
-0.015250282362103462,
0.028010372072458267,
-0.06759584695100784,
0.03230380639433861,
-0.03225228562951088,
0.01959523931145668,
-0.06271850317716599,
0.05282643064856529,
0.011223040521144867,
-0.041732192039489746,
0.03603050857782364,
0.012837371788918972,
-0.047124747186899185,
0.022497601807117462,
0.01804960146546364,
0.010106747038662434,
-0.03579007834196091,
0.00537967449054122,
-0.018702205270528793,
0.02442106045782566,
0.005310979671776295,
-0.05770377069711685,
-0.020848922431468964,
0.035858772695064545,
-0.010518916882574558,
-0.004179659299552441,
0.058699849992990494,
-0.03034600056707859,
0.006332817021757364,
-0.00016127216804306954,
-0.009419796988368034,
0.034261614084243774,
-0.024094758555293083,
0.02928122878074646,
-0.02225716970860958,
-0.03527486324310303,
0.034793999046087265,
0.023253245279192924,
0.013301062397658825,
-0.010252723470330238,
0.025417137891054153,
-0.06100112944841385,
-0.05028471350669861,
-0.007565033156424761,
-0.034776825457811356,
0.03226945921778679,
-0.03901873901486397,
0.032063376158475876,
-0.035858772695064545,
0.00597646227106452,
-0.028096241876482964,
-0.034776825457811356,
0.027615375816822052,
-0.03737006336450577,
0.0403582938015461,
-0.0370609350502491,
-0.043415218591690063,
0.0317370742559433,
0.046300407499074936,
-0.06625629216432571,
0.002775705885142088,
-0.041766539216041565,
-0.00013162063260097057,
0.05674204230308533,
0.015774082392454147,
-0.004748539533466101,
0.015937231481075287,
0.0440334714949131,
-0.08744869381189346,
-0.003247983753681183,
-0.051967740058898926,
-0.008196168579161167,
-0.06546629965305328,
-0.07350361347198486,
0.02069435827434063,
0.011867055669426918,
-0.03386661782860756,
0.010913913138210773,
0.01798090711236,
0.0043535432778298855,
0.005577172618359327,
0.03257858753204346,
0.017293957993388176,
-0.012717155739665031,
0.02737494371831417,
-0.0029495900962501764,
-0.016435271129012108,
-0.02682538516819477,
-0.02282390184700489,
-0.033454447984695435,
0.010304245166480541,
0.019148722290992737,
-0.013532908633351326,
0.026447562500834465,
0.05794420465826988,
-0.03135925158858299,
-0.0009230885771103203,
-0.025932349264621735,
-0.027993198484182358,
0.04674692451953888,
0.006586129777133465,
-0.02174195647239685,
0.026773862540721893,
0.00981479324400425,
0.017542976886034012,
-0.024609971791505814,
0.0028079068288207054,
0.03166837990283966,
0.009608708322048187,
-0.05337598919868469,
-0.05028471350669861,
0.038572221994400024,
0.0037696361541748047,
0.04482346400618553,
0.003735288744792342,
-0.06306198239326477,
0.011231627315282822,
-0.0298136156052351,
0.03250989317893982,
0.02711733803153038,
0.017036352306604385,
0.02819928340613842,
0.007230145391076803,
-0.025657569989562035,
-0.044995203614234924,
-0.01438300870358944,
-0.016031688079237938,
0.0298136156052351,
0.048189517110586166,
-0.034828346222639084,
0.03379792347550392,
0.026207130402326584,
0.007303133606910706,
0.010948260314762592,
0.05341033637523651,
-0.014434529468417168,
0.011463472619652748,
0.04537302628159523,
-0.0414574109017849,
-0.00744481710717082,
0.01756015047430992,
0.026533430442214012,
0.049494724720716476,
0.003834037808701396,
-0.06405805796384811,
0.06814540922641754,
-0.03627094253897667,
0.035343561321496964,
0.09878335893154144,
-0.0048472885973751545,
-0.027563855051994324,
0.019698280841112137,
0.0644015297293663,
-0.06728672236204147,
0.00268983724527061,
0.00023493141634389758,
-0.012579766102135181,
0.07096190005540848,
0.07721313834190369,
-0.013661711476743221,
-0.025983870029449463,
0.010038051754236221,
-0.025932349264621735,
0.012803024612367153,
0.043655652552843094,
0.06343980133533478,
0.005216524004936218,
0.011291734874248505,
0.058184634894132614,
0.001979273743927479,
-0.02119239792227745,
-0.026378866285085678,
0.012236290611326694,
0.007195797748863697,
-0.004289141856133938,
0.03524051606655121,
0.03441617637872696,
0.027048643678426743,
0.02260064333677292,
0.03250989317893982,
0.05234556272625923,
0.05505901575088501,
0.032647281885147095,
-0.023167377337813377,
0.03740441054105759,
-0.039259172976017,
-0.016486791893839836,
-0.05203643813729286,
0.018341556191444397,
0.047914739698171616,
-0.021621741354465485,
0.03658007085323334,
-0.02977926842868328,
0.05660465359687805
] |
21,516 | tempora | __init__ | null | def __init__(self, **kwargs):
vars(self).update(kwargs)
| (self, **kwargs) | [
-0.02703207917511463,
-0.015190593898296356,
0.03967666998505592,
-0.01888144575059414,
-0.05631968006491661,
0.0018710573203861713,
-0.014148269779980183,
0.03176525607705116,
0.039847541600465775,
0.02458859793841839,
-0.051706116646528244,
0.03345689922571182,
-0.022350164130330086,
0.06472662091255188,
-0.010448873043060303,
0.006762291770428419,
0.03533649817109108,
0.05006573721766472,
-0.024486074224114418,
-0.03844638541340828,
0.02267482317984104,
-0.01172187551856041,
-0.017206892371177673,
0.07231337577104568,
0.027237126603722572,
0.03496057912707329,
-0.00832577794790268,
0.010371980257332325,
0.03519980236887932,
0.004066773224622011,
0.014669431373476982,
-0.001816591713577509,
0.007099765818566084,
0.07286016643047333,
0.03800211474299431,
-0.08905891329050064,
-0.04107782617211342,
0.060215581208467484,
-0.06294954568147659,
0.037421148270368576,
0.04497372731566429,
-0.03125263750553131,
-0.03622503578662872,
-0.012191775254905224,
0.010705182328820229,
0.009876448661088943,
0.03179943189024925,
-0.0026463926769793034,
0.007791800424456596,
-0.01814669370651245,
0.009363830089569092,
-0.00954324658960104,
0.03649843484163284,
-0.02344375103712082,
-0.006108703091740608,
0.09363830834627151,
0.016104763373732567,
0.09801264852285385,
-0.05078340321779251,
0.0473659448325634,
-0.05631968006491661,
0.007142483722418547,
-0.009269850328564644,
-0.03174816817045212,
-0.03188486769795418,
-0.03748949617147446,
-0.10225029289722443,
0.005732783116400242,
0.017241068184375763,
0.015583600848913193,
-0.003370466409251094,
0.00026018056087195873,
-0.034447960555553436,
0.007509860210120678,
0.04094112664461136,
-0.0014908653683960438,
-0.07340696454048157,
0.010730813257396221,
0.0010999938240274787,
0.004421334248036146,
-0.019940858706831932,
-0.01797582022845745,
-0.08167720586061478,
0.03519980236887932,
0.014874478802084923,
-0.018693486228585243,
-0.07361201196908951,
-0.012260125018656254,
0.04511042311787605,
-0.011431391350924969,
-0.05642220377922058,
0.06243692710995674,
-0.009116064757108688,
0.037250272929668427,
-0.02375132218003273,
-0.01172187551856041,
0.028928767889738083,
-0.05054417997598648,
-0.007544035091996193,
0.024281026795506477,
-0.029116729274392128,
-0.02686120755970478,
-0.024263940751552582,
-0.04757099226117134,
0.005788316950201988,
-0.027185864746570587,
-0.003968521021306515,
-0.0774395614862442,
0.014609625563025475,
0.007291997782886028,
0.026211891323328018,
-0.01747174561023712,
-0.04962146654725075,
0.07737120985984802,
-0.03229496255517006,
-0.02016299217939377,
-0.02786935679614544,
-0.02983439341187477,
0.06862252205610275,
0.028296539559960365,
-0.05399581044912338,
0.060523152351379395,
-0.037113577127456665,
0.06824660301208496,
0.05361989140510559,
0.020077556371688843,
-0.015190593898296356,
-0.01163643877953291,
0.03308097645640373,
-0.05406415835022926,
0.025972668081521988,
-0.05385911092162132,
-0.03622503578662872,
-0.010295087471604347,
0.017377765849232674,
-0.016403790563344955,
0.019718723371624947,
-0.01325973030179739,
-0.0006519865710288286,
0.020897746086120605,
0.014216618612408638,
0.04063355550169945,
0.02669033408164978,
-0.014669431373476982,
-0.033935341984033585,
0.013174294494092464,
0.011021296493709087,
-0.000808442011475563,
-0.030022354796528816,
0.0076636457815766335,
0.013268274255096912,
-0.011431391350924969,
0.029065467417240143,
0.051466893404722214,
-0.04210306331515312,
-0.027237126603722572,
-0.02993691712617874,
-0.04941641911864281,
0.0035840573254972696,
-0.006860543508082628,
0.03308097645640373,
-0.028980029746890068,
0.0020387263502925634,
-0.03426000103354454,
0.007428695913404226,
0.016950583085417747,
0.021512888371944427,
-0.07702946662902832,
0.012319929897785187,
0.046169836074113846,
0.0013733903178945184,
-0.08488961309194565,
0.012097795493900776,
0.020282603800296783,
-0.04398266226053238,
0.03070584498345852,
-0.02848449908196926,
-0.04418770968914032,
-0.007612383924424648,
0.03513145074248314,
0.030159052461385727,
-0.029116729274392128,
-0.05051000416278839,
0.008603446185588837,
0.08495796471834183,
-0.0442560613155365,
-0.004124442581087351,
0.04422188550233841,
0.03267088159918785,
0.017822034657001495,
0.05895112082362175,
0.013088857755064964,
-0.02641693875193596,
0.0001931663864525035,
-0.013661282137036324,
0.02648528665304184,
-0.0027724115643650293,
-0.03222661465406418,
-0.0037207556888461113,
0.09548372775316238,
-0.04326499626040459,
-0.02351210080087185,
-0.028569934889674187,
-0.029988178983330727,
0.057584140449762344,
0.037284448742866516,
0.0408044308423996,
-0.02655363641679287,
-0.007133940234780312,
-0.05365406349301338,
0.007347531151026487,
-0.020726872608065605,
0.04449528083205223,
-0.025460049510002136,
0.0021647450048476458,
-0.03166273236274719,
0.03208991512656212,
0.004378615878522396,
0.04483702778816223,
0.061035770922899246,
0.10102000832557678,
-0.014609625563025475,
-0.019582025706768036,
-0.012747112661600113,
-0.016540488228201866,
0.005237251985818148,
-0.0013744581956416368,
-0.03943744674324989,
-0.03523397445678711,
-0.031269725412130356,
-0.009594508446753025,
0.0029091096948832273,
-0.007394521031528711,
0.03824133798480034,
0.010773531161248684,
0.006412002723664045,
0.0035477469209581614,
-0.004652012605220079,
-0.051740288734436035,
-0.04111200198531151,
0.04941641911864281,
0.046272359788417816,
-0.027510523796081543,
0.014609625563025475,
-0.011269062757492065,
-0.025870144367218018,
0.019804159179329872,
0.06787068396806717,
0.0028535760939121246,
0.008522281423211098,
0.01255060825496912,
-0.027373826131224632,
-0.02759595960378647,
0.05649055540561676,
-0.041829664260149,
0.06380391120910645,
0.02327287755906582,
0.03212409093976021,
-0.015694668516516685,
-0.04196636378765106,
0.030517885461449623,
-0.014669431373476982,
-0.0102011077105999,
0.040257636457681656,
-0.0001411035773344338,
0.03097924217581749,
0.019616199657320976,
-0.03807046264410019,
-0.07039960473775864,
-0.00893664825707674,
0.08755522966384888,
0.0016596022760495543,
0.04538382217288017,
0.0705363005399704,
-0.01424224954098463,
-0.021427450701594353,
0.004382887855172157,
-0.032072827219963074,
-0.061069946736097336,
-0.005792588461190462,
0.0888538658618927,
0.005318416282534599,
0.02624606527388096,
0.011123820208013058,
0.016087675467133522,
-0.004472596105188131,
-0.017992908135056496,
0.07497899234294891,
-0.02088065817952156,
-0.04360674321651459,
0.030124878510832787,
0.017343591898679733,
0.08393272757530212,
0.06441905349493027,
0.019274454563856125,
0.018642224371433258,
-0.02175210975110531,
0.07962673157453537,
0.004848516080528498,
-0.0034324077423661947,
0.017377765849232674,
-0.05970296263694763,
-0.0002495010267011821,
0.05857520177960396,
0.04111200198531151,
-0.051876988261938095,
0.016130393370985985,
0.023836757987737656,
0.03588329255580902,
-0.0034559026826173067,
0.0725867748260498,
0.07005785405635834,
-0.026878293603658676,
0.04982651397585869,
-0.027715571224689484,
-0.01966746151447296,
0.024879083037376404,
-0.07860149443149567,
-0.021769197657704353,
0.04545217007398605,
-0.015173505991697311,
-0.07395375519990921,
0.022999482229351997,
-0.019616199657320976,
-0.017223980277776718,
0.04104365035891533,
-0.0025759078562259674,
0.0064632645808160305,
0.042581506073474884,
-0.007061319425702095,
-0.08031022548675537,
0.022042592987418175,
0.024366464465856552,
-0.018608050420880318,
-0.024571511894464493,
-0.03834386169910431,
-0.05375658720731735,
0.010192563757300377,
0.020863570272922516,
-0.04962146654725075,
-0.0008944123983383179,
0.01713000051677227,
-0.07477394491434097,
0.008039565756917,
0.013217012397944927,
-0.021837545558810234,
-0.02675868384540081,
-0.026263153180480003,
0.05129602178931236,
-0.04763934016227722,
-0.029065467417240143,
-0.0591219961643219,
0.02084648422896862,
0.026143541559576988,
0.0511593222618103,
0.004720361437648535,
-0.011533915065228939,
-0.004998030140995979,
-0.00391939515247941,
-0.05508939549326897,
0.042171411216259,
0.027442174032330513,
-0.02634858898818493,
0.014712149277329445,
0.036771830171346664,
0.017138544470071793,
-0.008970823138952255,
-0.003645998891443014,
0.01773659884929657,
-0.03557572141289711,
0.04476867988705635,
-0.04955311864614487,
0.003645998891443014,
0.027510523796081543,
-0.00793704204261303,
-0.01232847385108471,
-0.04685332626104355,
0.004810069687664509,
-0.018727660179138184,
-0.019650373607873917,
0.0031056134030222893,
-0.024281026795506477,
0.02323870360851288,
0.005134728271514177,
0.0016264956211671233,
-0.025323351845145226,
0.024776559323072433,
0.004592206794768572,
0.06988698244094849,
0.07668772339820862,
-0.0404626838862896,
-0.006313750520348549,
-0.00446832412853837,
0.00542093999683857,
0.015105157159268856,
-0.019308628514409065,
0.012695850804448128,
-0.012559152208268642,
-0.02513539232313633,
-0.028621196746826172,
0.05307309702038765,
-0.08523136377334595,
0.013823610730469227,
0.020094644278287888,
0.04962146654725075,
-0.001196109689772129,
0.036908529698848724,
0.03936909884214401,
0.054952699691057205,
0.006860543508082628,
0.00007422288035741076,
-0.019769985228776932,
-0.039984241127967834,
-0.037250272929668427,
0.015216224826872349,
-0.005796860437840223,
0.060899071395397186,
-0.025699272751808167,
0.03848055750131607,
-0.0033192045520991087,
0.02634858898818493,
0.01405428908765316,
-0.000007901198841864243,
0.03537067398428917,
0.027305476367473602,
0.02915090322494507,
-0.045554693788290024,
-0.036737654358148575,
0.040394335985183716,
-0.0088170375674963,
-0.09117773920297623,
0.06414565443992615,
-0.002766003832221031,
0.005604628473520279,
0.06407731026411057,
-0.01243099756538868,
0.00001066286404238781,
-0.03800211474299431,
-0.01638670265674591,
0.058028411120176315,
-0.020590174943208694,
-0.04927971959114075,
0.00814208947122097,
-0.0045708478428423405,
-0.039608318358659744,
-0.032072827219963074,
-0.025716358795762062,
0.03198739141225815,
-0.009739750996232033,
-0.03636173531413078,
0.03793376684188843,
0.014917196705937386,
0.015404184348881245,
-0.03550737351179123,
0.021666673943400383,
-0.05085175111889839,
-0.06458992511034012,
-0.02185463346540928,
0.017317960038781166,
-0.017001844942569733,
-0.019479501992464066,
-0.05649055540561676,
-0.01094440370798111,
0.0027959065046161413,
-0.027220040559768677,
0.034208737313747406,
0.03889065235853195,
-0.006296663545072079,
-0.04822031036019325,
-0.0027873627841472626,
-0.0036908527836203575,
0.007928499020636082,
-0.03574659302830696,
-0.05030495673418045,
-0.014942827634513378,
0.010764987207949162,
-0.024537336081266403,
-0.032841756939888,
-0.06677709519863129,
-0.03789959102869034,
-0.019445326179265976,
0.011978184804320335,
0.03468718379735947,
0.022862782701849937,
-0.01756572537124157,
-0.017292330041527748,
0.022110942751169205,
-0.01590825989842415,
0.03263670951128006,
0.04206888750195503,
-0.03338854759931564,
0.03892482817173004,
-0.00011947748134844005,
-0.0031248365994542837,
0.02223055437207222,
0.025921406224370003,
-0.03229496255517006,
0.052013687789440155,
0.01535292249172926,
-0.026741595938801765,
-0.03889065235853195,
-0.007052775472402573,
-0.013088857755064964,
0.009560334496200085,
0.008945192210376263,
-0.03533649817109108,
-0.04962146654725075,
0.014789042063057423,
-0.021974245086312294,
0.024913256987929344,
0.012251581065356731,
0.009842274710536003,
-0.04729759693145752,
-0.004395703319460154,
0.052218735218048096,
-0.026263153180480003,
-0.09787595272064209,
0.01621583104133606,
-0.027408000081777573,
-0.005694336723536253,
0.0034644464030861855,
0.06250527501106262,
0.022008419036865234,
-0.031611472368240356,
-0.013891960494220257,
-0.004656284116208553,
0.029851481318473816,
0.006920349318534136,
0.05348319187760353,
0.012131970375776291,
-0.006775107234716415,
-0.042444806545972824,
-0.05536279454827309,
0.04435858502984047,
0.016403790563344955,
0.060078881680965424,
0.0018422225257381797,
-0.03441378474235535,
-0.022179292514920235,
-0.016429422423243523,
0.04435858502984047,
0.015720298513770103,
0.017138544470071793,
-0.02952682226896286,
-0.01424224954098463,
0.019684549421072006,
-0.05860937759280205,
0.019308628514409065,
-0.042820729315280914,
-0.036942701786756516,
-0.04360674321651459,
-0.06298372149467468,
-0.04370926693081856,
0.057481616735458374,
-0.08290749043226242,
-0.046511583030223846,
0.007851606234908104,
-0.0570373460650444,
0.018966883420944214,
0.03810463845729828,
0.017822034657001495,
-0.0021999876480549574,
0.036976877599954605,
0.019274454563856125,
-0.07518403977155685,
-0.021034443750977516,
-0.004118035081773996,
0.04712672531604767,
-0.07805470377206802,
-0.011508284136652946,
0.016907865181565285,
-0.001312516862526536,
-0.034003689885139465,
0.05895112082362175,
0.0015624182997271419,
0.019479501992464066,
0.019103581085801125,
0.032858844846487045,
0.025357525795698166,
-0.030295750126242638,
-0.0006989766261540353,
0.02344375103712082,
-0.0947318896651268,
-0.011328867636620998,
-0.04726342111825943,
-0.002059017540886998,
0.02212803065776825,
0.0068178256042301655,
0.03523397445678711,
-0.03810463845729828,
-0.0018945523770526052,
0.024708209559321404,
-0.013994484208524227,
-0.003421728266403079,
-0.02706625498831272,
-0.024281026795506477,
-0.00981664378196001,
-0.03854890912771225,
0.01173896249383688,
-0.021769197657704353,
-0.036703482270240784,
0.019582025706768036,
-0.040052589029073715,
0.02405889332294464,
-0.03343981131911278,
-0.03367903083562851,
-0.013900503516197205,
0.0999264270067215,
-0.005130456294864416,
0.008475291542708874,
0.0004512110317591578,
-0.029851481318473816,
0.03304680436849594,
0.05611463263630867,
-0.018368827179074287,
-0.002069697016850114,
-0.0477076917886734,
0.0252379160374403,
0.023563362658023834,
-0.004515314474701881,
-0.08058362454175949,
0.0020301826298236847,
0.013456234708428383,
0.06417983025312424,
-0.023136179894208908,
0.012772743590176105,
0.01922319270670414,
-0.08283914625644684,
-0.017377765849232674,
0.007702092174440622,
0.01595097780227661,
-0.013054683804512024,
0.03195321559906006,
-0.042820729315280914,
0.02274317294359207,
0.0019201833056285977,
0.019411152228713036,
-0.01566903665661812,
-0.0031034776475280523,
0.0250670425593853,
0.02942429855465889,
-0.011175082065165043,
0.03851473331451416,
-0.0158142801374197,
-0.03584911674261093,
0.02340957708656788,
-0.021222403272986412,
-0.02966352179646492,
-0.006236857734620571,
-0.012858179397881031,
0.006711029913276434,
0.02216220460832119,
-0.022914044559001923,
0.06141168996691704,
-0.014079920016229153,
-0.0011704787611961365,
0.0028023142367601395,
0.04401683807373047,
0.0895373597741127,
-0.024366464465856552,
-0.039984241127967834,
0.0149513715878129,
0.03646425902843475,
-0.03133807331323624,
0.026468198746442795,
0.03408912569284439,
-0.037386972457170486,
-0.042171411216259,
0.043059948831796646,
0.030586235225200653,
0.026809945702552795,
0.03263670951128006,
-0.021444538608193398,
0.026946643367409706,
-0.02706625498831272,
-0.02824527770280838,
-0.02175210975110531,
-0.03776289150118828,
0.04514459893107414,
-0.012789830565452576,
0.002242705784738064,
-0.013003421947360039,
0.013926134444773197,
-0.028194015845656395,
-0.012396822683513165,
0.04709254950284958,
-0.017446115612983704,
0.07128813862800598,
0.008201895281672478,
-0.046511583030223846,
-0.009791012853384018,
-0.036976877599954605,
-0.0007854810100980103,
0.036806005984544754,
-0.0024861996062099934,
-0.04169296845793724,
-0.02033386565744877,
-0.11612516641616821,
0.05720822140574455,
-0.04326499626040459,
0.012883810326457024,
0.024366464465856552,
-0.03094506822526455,
0.00731335673481226,
-0.02402471750974655,
0.013276818208396435,
-0.00012034519022563472,
0.003349107224494219,
0.03584911674261093,
-0.011491197161376476,
0.02070978656411171,
0.04968981444835663,
-0.0005708219832740724,
-0.023324139416217804,
0.05584123730659485,
0.046135660260915756,
0.0667087510228157,
-0.024298114702105522,
-0.04364091902971268,
-0.02094900794327259,
0.028945855796337128,
0.01353312749415636,
0.033593595027923584,
0.024947430938482285,
0.06899844110012054,
-0.043435871601104736,
-0.03779706731438637,
-0.03574659302830696,
0.03277340531349182,
-0.052150383591651917,
0.005297057330608368,
-0.026228977367281914,
-0.02016299217939377,
0.0019821247551590204,
-0.0532439686357975,
-0.04466615617275238,
0.018300479277968407,
0.03571242094039917,
-0.034140389412641525,
0.06998950988054276,
-0.033730294555425644,
0.015446903184056282,
0.012405366636812687,
0.05915616825222969,
-0.0007320832228288054,
0.004904049914330244,
0.060899071395397186,
-0.0299027431756258,
0.02554548718035221,
0.003669493831694126,
0.006100159604102373,
0.030859630554914474,
0.010713725350797176,
0.018488438799977303,
0.030791282653808594,
-0.037386972457170486,
-0.029475560411810875,
-0.016702817752957344,
0.027920618653297424,
-0.03354233503341675,
-0.06937436759471893,
-0.09562043100595474,
0.05570453777909279,
0.003748522372916341,
0.03299554064869881,
0.04364091902971268,
0.07504734396934509,
0.022879870608448982
] |
21,517 | tempora | __repr__ | null | def __repr__(self):
return f'_Saved_NS(td={self.td!r}, nanoseconds={self.nanoseconds!r})'
| (self) | [
0.008734057657420635,
-0.0059228502213954926,
0.02240382321178913,
0.06588955968618393,
0.04034405201673508,
-0.05734005570411682,
-0.04652441665530205,
0.03855861350893974,
0.024000419303774834,
-0.07306565344333649,
-0.00413526501506567,
0.006506551057100296,
-0.0034356822725385427,
0.020601216703653336,
0.002542962785810232,
0.033116456121206284,
-0.04274752736091614,
-0.023657064884901047,
-0.04556302726268768,
0.005691086407750845,
-0.01616337150335312,
0.04055006429553032,
0.018747108057141304,
-0.021991800516843796,
0.011236247606575489,
-0.014541026204824448,
0.02523649111390114,
-0.02542533539235592,
-0.013073189184069633,
-0.004021529573947191,
-0.040378388017416,
-0.04559736326336861,
-0.038386937230825424,
0.0012489488581195474,
0.017579706385731697,
-0.003173875156790018,
-0.049442920833826065,
0.0010686881141737103,
-0.07704855501651764,
-0.04357157647609711,
0.022644171491265297,
-0.04975194111466408,
-0.02949407696723938,
-0.004901372827589512,
-0.01511614304035902,
-0.0034700175747275352,
0.047520142048597336,
0.020309366285800934,
0.04075607657432556,
-0.05905682221055031,
-0.007017289754003286,
0.04302220791578293,
-0.03605213016271591,
0.02360556088387966,
-0.07663653045892715,
0.03708219155669212,
0.05270478129386902,
-0.01146801095455885,
-0.02118491940200329,
0.049168240278959274,
-0.010386447422206402,
0.014197672717273235,
0.04772615432739258,
0.010746968910098076,
-0.0013938011834397912,
-0.0036030670162290335,
-0.057649072259664536,
0.026112042367458344,
-0.015708427876234055,
0.014901547692716122,
0.054043859243392944,
-0.05960619077086449,
-0.0065666381269693375,
0.02183729037642479,
-0.026747247204184532,
-0.028498351573944092,
-0.037631556391716,
-0.020790062844753265,
-0.024206429719924927,
0.004523683805018663,
-0.027622798457741737,
-0.019588325172662735,
-0.01690158247947693,
0.023725735023617744,
0.00021124295017216355,
-0.06317706406116486,
0.03447270393371582,
0.03390616923570633,
-0.10939246416091919,
0.032670099288225174,
-0.011674023233354092,
0.001961407484486699,
-0.0499236173927784,
0.02791464887559414,
-0.05177772790193558,
-0.08810453861951828,
-0.029185058549046516,
-0.03725386783480644,
-0.01377706415951252,
-0.04075607657432556,
0.0438462570309639,
-0.07581248134374619,
-0.04030971601605415,
-0.01943381503224373,
-0.012953015975654125,
-0.017665544524788857,
-0.0019217072986066341,
-0.0027489750646054745,
-0.016738489270210266,
-0.0029120680410414934,
-0.022352321073412895,
0.08178683370351791,
-0.024309435859322548,
-0.016137620434165,
0.056172654032707214,
-0.039485666900873184,
0.02111624740064144,
0.004661025479435921,
0.047417134046554565,
0.012549575418233871,
-0.007940053008496761,
0.0397946834564209,
-0.052670445293188095,
0.03622380644083023,
-0.06564921140670776,
0.03335680440068245,
0.027021929621696472,
0.012420817278325558,
0.024584120139479637,
-0.08954662829637527,
0.04278186336159706,
-0.015184814110398293,
0.02331371046602726,
0.07533178478479385,
0.05435287952423096,
0.015450913459062576,
0.05328848212957382,
0.028429679572582245,
-0.01377706415951252,
0.0806194320321083,
-0.0019560426007956266,
-0.013794232159852982,
-0.00809026975184679,
0.014824292622506618,
0.04278186336159706,
0.029185058549046516,
-0.04607805609703064,
0.06784667819738388,
-0.03464438021183014,
-0.032378245145082474,
0.012317811138927937,
-0.008605300448834896,
0.013948741368949413,
0.009734075516462326,
-0.004729696083813906,
0.004974335432052612,
0.024584120139479637,
0.003081598784774542,
-0.02230081893503666,
-0.014077498577535152,
-0.04772615432739258,
-0.01814623922109604,
0.01392298936843872,
-0.07498843222856522,
0.004755447618663311,
0.05785508453845978,
-0.013279201462864876,
-0.033511314541101456,
-0.030901826918125153,
0.027966152876615524,
0.018729940056800842,
-0.05136570334434509,
-0.027124935761094093,
0.04975194111466408,
-0.012257724069058895,
0.01991450972855091,
0.013794232159852982,
0.07313432544469833,
-0.03807791694998741,
0.008613884449005127,
0.06290238350629807,
-0.03335680440068245,
-0.0739583745598793,
0.01991450972855091,
0.034970566630363464,
-0.016480974853038788,
-0.0048284102231264114,
-0.0073134321719408035,
0.027588464319705963,
0.0034678715746849775,
0.04958026483654976,
0.04360590875148773,
-0.006008688360452652,
0.0023970375768840313,
0.008596716448664665,
-0.03934832662343979,
0.006017272360622883,
-0.04357157647609711,
0.05593230575323105,
0.024360939860343933,
-0.006562346126884222,
0.030112113803625107,
0.00791000947356224,
-0.009562398307025433,
-0.012386482208967209,
-0.056172654032707214,
0.015742763876914978,
0.015536751598119736,
-0.01778571866452694,
0.022335153073072433,
-0.0035880454815924168,
0.01050662063062191,
-0.013536716811358929,
0.03622380644083023,
0.029562747105956078,
-0.07114287465810776,
-0.04875621572136879,
0.03337397426366806,
-0.03584611788392067,
0.001037035253830254,
0.04748580604791641,
-0.02321070432662964,
-0.03006060980260372,
-0.07244761288166046,
-0.06825870275497437,
-0.0279318168759346,
0.027159271761775017,
0.0015815726947039366,
-0.006523719057440758,
-0.0319833904504776,
0.0016867247177287936,
-0.017270687967538834,
-0.0518120639026165,
0.008652511052787304,
0.03577744960784912,
0.0571683794260025,
-0.03787190467119217,
-0.0031545613892376423,
0.00010166486026719213,
-0.021030409261584282,
-0.02017202600836754,
0.011759861372411251,
0.0068155694752931595,
0.006472215987741947,
0.0755378007888794,
-0.04058440029621124,
0.05002662166953087,
0.06619857996702194,
-0.05541727691888809,
0.025219323113560677,
0.039210982620716095,
-0.024858802556991577,
-0.0030021981801837683,
0.010051677003502846,
0.03653282672166824,
-0.015794266015291214,
-0.027416786178946495,
0.03105633519589901,
0.04638707637786865,
0.040378388017416,
0.0022232148330658674,
-0.019983181729912758,
0.029751591384410858,
0.020755726844072342,
0.004991503432393074,
0.038283929228782654,
-0.07313432544469833,
-0.022472495213150978,
0.014549610204994678,
-0.0004664780863095075,
0.05785508453845978,
0.02700476348400116,
-0.07505710422992706,
-0.007742624264210463,
-0.04727979376912117,
-0.07636184990406036,
0.008875691331923008,
-0.01607753336429596,
-0.05407819524407387,
-0.04738280177116394,
0.029322398826479912,
-0.03927965462207794,
0.025287995114922523,
-0.017717046663165092,
0.0028154996689409018,
0.011493762955069542,
0.00637779338285327,
-0.0016212728805840015,
0.02542533539235592,
-0.020584050565958023,
-0.002169565763324499,
0.03766589239239693,
0.025648515671491623,
0.04278186336159706,
0.04947725683450699,
-0.04030971601605415,
-0.035262417048215866,
-0.01484146062284708,
0.02044670842587948,
0.08432765305042267,
-0.02599187009036541,
0.004437845665961504,
0.0357431136071682,
0.030455466359853745,
-0.01275558676570654,
0.018506759777665138,
0.006914283614605665,
0.04058440029621124,
0.025871695950627327,
-0.0049400003626942635,
0.011013067327439785,
-0.004429261665791273,
0.03490189462900162,
0.06832737475633621,
0.02369140088558197,
0.04175180196762085,
-0.06437880545854568,
-0.06255903095006943,
0.015253485180437565,
0.09668838232755661,
0.0010182580444961786,
-0.0006158905453048646,
0.0017253520200029016,
0.04611239209771156,
0.04497932642698288,
-0.11831966042518616,
-0.01032636035233736,
-0.011073154397308826,
0.012231972999870777,
0.00917612574994564,
0.005081633571535349,
-0.08879125118255615,
0.01243798527866602,
0.004721112549304962,
0.018850114196538925,
0.009802745655179024,
0.01738227717578411,
0.012498072348535061,
-0.00827053003013134,
-0.03095332905650139,
0.03215506672859192,
0.02157977595925331,
-0.03292761370539665,
0.006768358405679464,
-0.011639688163995743,
-0.007073084823787212,
-0.007768375799059868,
-0.007000122219324112,
0.0781472846865654,
0.018867282196879387,
-0.06046457216143608,
-0.01483287662267685,
-0.013468045741319656,
0.05902248993515968,
0.021974632516503334,
0.028893208131194115,
0.017253519967198372,
0.00509021757170558,
-0.025768689811229706,
-0.006832737009972334,
0.018815778195858,
0.045940715819597244,
0.01915913261473179,
-0.018008897081017494,
0.035056404769420624,
0.0029528411105275154,
-0.011854283511638641,
0.017287855967879295,
0.025974702090024948,
-0.011536682024598122,
-0.07862798124551773,
-0.02616354636847973,
0.0003055310808122158,
0.0026245093904435635,
-0.005098801571875811,
0.04923690855503082,
-0.03873028978705406,
0.023193538188934326,
-0.029373902827501297,
-0.10746968537569046,
0.04477331414818764,
-0.015957359224557877,
-0.026403894647955894,
0.05596664175391197,
0.054318543523550034,
0.04951159283518791,
-0.005515117663890123,
0.012944431975483894,
0.013107524253427982,
0.007940053008496761,
-0.04958026483654976,
0.017923058941960335,
0.006875656545162201,
0.017631208524107933,
-0.011493762955069542,
-0.010935813188552856,
0.004772615619003773,
-0.01489296369254589,
-0.047520142048597336,
0.002772580599412322,
0.016558228060603142,
-0.026026204228401184,
-0.017528202384710312,
0.02801765501499176,
-0.019588325172662735,
0.0008100999402813613,
0.003931398969143629,
-0.027348116040229797,
-0.03421518951654434,
-0.015639757737517357,
-0.013141860254108906,
-0.006588097661733627,
-0.048721879720687866,
-0.016678402200341225,
0.04988928139209747,
0.014918714761734009,
-0.06554620712995529,
-0.031090671196579933,
0.01363972295075655,
-0.00041819398757070303,
-0.07842196524143219,
0.0625246986746788,
0.03615513816475868,
0.054970916360616684,
0.011880035512149334,
0.001539726392365992,
0.0068284450098872185,
0.04480764642357826,
0.03474738821387291,
0.07272230088710785,
-0.030730148777365685,
0.022317985072731972,
-0.0008573110681027174,
0.012429401278495789,
0.05411253124475479,
-0.05795809254050255,
0.0166440661996603,
-0.09359820187091827,
-0.03344264253973961,
0.08645644038915634,
0.008970113471150398,
0.027330948039889336,
0.027416786178946495,
-0.014506691135466099,
-0.007012997753918171,
-0.02791464887559414,
-0.06290238350629807,
-0.00413526501506567,
0.0018240661593154073,
0.009716907516121864,
0.028154997155070305,
0.008884275332093239,
0.0383526012301445,
-0.024549784138798714,
0.0009501238819211721,
-0.056275658309459686,
-0.034798890352249146,
-0.06863638758659363,
-0.010789887979626656,
-0.05301380157470703,
-0.0606362521648407,
0.059949543327093124,
-0.022918853908777237,
0.023451052606105804,
0.017416613176465034,
-0.05394085496664047,
0.05133136734366417,
-0.012995935045182705,
-0.05703103914856911,
-0.01488437969237566,
-0.009193293750286102,
0.014266342855989933,
-0.03474738821387291,
-0.0249618086963892,
-0.003336968133226037,
0.033511314541101456,
-0.03873028978705406,
-0.00010890747944358736,
-0.020807228982448578,
-0.05679069086909294,
-0.008798436261713505,
-0.0525331050157547,
-0.0390736423432827,
0.00912462268024683,
0.017227768898010254,
0.05624132230877876,
0.005806968081742525,
0.043193887919187546,
0.055623289197683334,
-0.011845700442790985,
-0.016867246478796005,
0.08096278458833694,
-0.05685935914516449,
-0.019107628613710403,
0.0053820679895579815,
0.03653282672166824,
-0.027983320876955986,
-0.008553797379136086,
-0.05476490408182144,
0.0039249612018466,
0.000488205929286778,
-0.012463736347854137,
0.0061159864999353886,
-0.020532546564936638,
-0.006626725196838379,
-0.028721529990434647,
-0.022558333352208138,
0.037734564393758774,
-0.01972566545009613,
-0.03721953183412552,
0.03023228608071804,
-0.03445553779602051,
-0.003530104411765933,
0.0178715568035841,
-0.025682851672172546,
-0.034798890352249146,
-0.0045022242702543736,
-0.02755412831902504,
-0.028893208131194115,
0.013476629741489887,
-0.001008064835332334,
0.030901826918125153,
-0.028240835294127464,
-0.03955433890223503,
-0.06345175206661224,
0.04010370373725891,
-0.044086605310440063,
0.03818092495203018,
-0.0022596961352974176,
0.06427580118179321,
0.007489400915801525,
-0.017991729080677032,
0.04285053163766861,
-0.006214700639247894,
-0.025871695950627327,
0.07011280953884125,
-0.0064421724528074265,
-0.008459375239908695,
-0.02738245204091072,
-0.010034509934484959,
0.00811172928661108,
-0.0478978306055069,
0.012034544721245766,
-0.02985459752380848,
0.001406676834449172,
0.024189263582229614,
0.04147711768746376,
0.025682851672172546,
0.0625246986746788,
0.0025622763205319643,
0.03188038244843483,
-0.04360590875148773,
0.03584611788392067,
-0.07031882554292679,
0.002901338040828705,
0.07780393213033676,
0.02036087028682232,
0.004193206317722797,
0.004695361014455557,
-0.01704750768840313,
-0.016463806852698326,
0.022266482934355736,
0.09785578399896622,
0.006588097661733627,
-0.01690158247947693,
0.02662707306444645,
0.010952980257570744,
-0.007098836358636618,
-0.0573057197034359,
0.02166561409831047,
0.009957254864275455,
0.004152433015406132,
0.10266273468732834,
-0.02700476348400116,
-0.005918558221310377,
0.03373449295759201,
-0.0048842052929103374,
0.022420991212129593,
0.0014463771367445588,
-0.020189194008708,
0.0024442486464977264,
0.022867351770401,
0.002208193065598607,
-0.020429540425539017,
0.012317811138927937,
0.02709060162305832,
-0.05390651896595955,
0.005789800547063351,
-0.006077358964830637,
-0.006425004918128252,
-0.034163687378168106,
0.005871347151696682,
-0.005974353291094303,
0.020412372425198555,
0.04642140865325928,
-0.04360590875148773,
-0.00782846286892891,
0.02626655250787735,
0.0021470331121236086,
0.014369348995387554,
0.021785788238048553,
0.025219323113560677,
-0.014240591786801815,
0.01691875047981739,
0.01386290229856968,
-0.037631556391716,
0.032773103564977646,
0.054696232080459595,
-0.012704084627330303,
-0.005897098686546087,
-0.00312022608704865,
0.03742554411292076,
0.0031931886915117502,
-0.015957359224557877,
0.01871277205646038,
-0.046490080654621124,
-0.005480782128870487,
0.01622345857322216,
-0.06444747745990753,
0.02295318990945816,
-0.032481253147125244,
0.049992289394140244,
-0.05095367878675461,
0.006360625848174095,
0.016789991408586502,
-0.028515519574284554,
0.007622450590133667,
-0.01814623922109604,
0.02413775958120823,
-0.11646555364131927,
-0.01373414508998394,
0.042163826525211334,
-0.00931346695870161,
-0.07636184990406036,
-0.01898745633661747,
-0.024206429719924927,
-0.022197812795639038,
0.03493623062968254,
-0.018747108057141304,
0.04367458075284958,
0.002046172972768545,
0.03402634337544441,
-0.047691818326711655,
-0.00939930509775877,
-0.01945098303258419,
0.004216811619699001,
-0.0471767894923687,
-0.07924601435661316,
0.03927965462207794,
-0.008618175983428955,
-0.04865320771932602,
0.03122801147401333,
0.02738245204091072,
-0.005682502407580614,
-0.00018763738626148552,
0.03797491267323494,
-0.014249175786972046,
-0.02056688256561756,
-0.0034485580399632454,
-0.01854109577834606,
-0.06709130108356476,
-0.06513418257236481,
-0.08789853006601334,
-0.04542568325996399,
0.04346856847405434,
0.00742073031142354,
-0.03308212012052536,
0.07031882554292679,
0.026695745065808296,
-0.08473967760801315,
-0.011141825467348099,
0.007270513102412224,
0.0030193659476935863,
-0.01129633467644453,
-0.03390616923570633,
-0.028979046270251274,
0.014644032344222069,
0.03533108904957771,
0.05871346965432167,
-0.010395031422376633,
0.03519374504685402,
0.0010000173933804035,
-0.03215506672859192,
-0.05988087132573128,
-0.009013032540678978,
0.059125494211912155,
0.010060261003673077,
0.05047298222780228,
-0.01285859290510416,
-0.06575221568346024,
-0.04061873257160187,
-0.018678437918424606,
-0.011459426954388618,
0.03412935137748718,
0.027330948039889336,
-0.024446777999401093,
0.05459322780370712,
-0.01943381503224373,
0.030901826918125153,
-0.03383750095963478,
-0.009699739515781403,
0.01267833262681961,
0.050644658505916595,
-0.011914370581507683,
0.0714862272143364,
0.03069581463932991,
0.04357157647609711,
-0.01597452722489834,
-0.017991729080677032,
0.032378245145082474,
0.033322468400001526,
0.08789853006601334,
-0.04158012568950653,
-0.0025794440880417824,
-0.03982901945710182,
0.018729940056800842,
0.009871416725218296,
-0.004266168922185898,
-0.06623291224241257,
0.024309435859322548,
-0.012798506766557693,
0.036361150443553925,
0.06870505958795547,
0.04597505182027817,
-0.003519374644383788,
0.07237894088029861,
-0.0181634072214365,
-0.025047646835446358,
-0.00682415347546339,
-0.014034579508006573,
0.005025838501751423,
0.03873028978705406,
-0.002804769901558757,
-0.03315079212188721,
0.00035488815046846867,
-0.004570895340293646,
0.04267885535955429,
-0.002744683064520359,
0.007639618124812841,
0.06036156788468361,
0.002527941018342972,
0.05565762147307396,
0.02386307716369629,
0.058198440819978714,
-0.03612080216407776,
0.018317915499210358,
-0.00451510027050972,
0.010163267143070698,
0.018008897081017494,
0.022043302655220032,
0.06602690368890762,
0.04803517088294029,
-0.03814658895134926,
0.02082439698278904,
0.07141755521297455,
-0.00816323235630989,
0.03842126950621605,
0.008789853192865849,
0.02065272070467472,
-0.01704750768840313,
-0.037837568670511246,
-0.040241044014692307,
0.018764276057481766,
0.0639667809009552,
-0.06146029755473137,
0.05370050668716431,
-0.041339777410030365,
-0.01261824555695057
] |
21,518 | tempora | resolve |
Resolve any nanoseconds into the microseconds field,
discarding any nanosecond resolution (but honoring partial
microseconds).
| def resolve(self):
"""
Resolve any nanoseconds into the microseconds field,
discarding any nanosecond resolution (but honoring partial
microseconds).
"""
addl_micros = round(self.nanoseconds / 1000)
return self.td + datetime.timedelta(microseconds=addl_micros)
| (self) | [
-0.0317496731877327,
-0.00382220558822155,
-0.005969462916254997,
0.07070643454790115,
0.027743790298700333,
0.005943223834037781,
-0.03162722289562225,
-0.0016782281454652548,
-0.017064355313777924,
-0.04159819334745407,
0.026291877031326294,
-0.00915754958987236,
0.026291877031326294,
-0.014711556024849415,
0.05415811762213707,
0.03108493983745575,
-0.026659227907657623,
0.04509677737951279,
-0.03823954984545708,
-0.016539568081498146,
-0.011615307070314884,
0.014641583897173405,
-0.010906843468546867,
-0.03729493170976639,
-0.029388125985860825,
-0.03099747560918331,
-0.007911178283393383,
-0.034443583339452744,
-0.04796561971306801,
-0.006454891990870237,
0.022758305072784424,
0.02510235831141472,
-0.04534168168902397,
0.00009361452248413116,
0.014772781170904636,
-0.016277173534035683,
-0.015315062366425991,
0.019084788858890533,
-0.03712000325322151,
0.026379341259598732,
0.01258616428822279,
-0.05776166170835495,
-0.020729124546051025,
-0.027009086683392525,
-0.008204185403883457,
-0.011667786166071892,
0.04779069125652313,
0.04422213137149811,
0.029825448989868164,
0.026344355195760727,
0.02681666426360607,
-0.00003573751382646151,
-0.025469709187746048,
0.016189709305763245,
-0.0563972145318985,
0.0536683164536953,
0.02184867300093174,
0.0523388534784317,
-0.0305776447057724,
0.0890040397644043,
-0.01946963369846344,
0.01939966157078743,
-0.009813535027205944,
0.029405618086457253,
-0.028810858726501465,
0.00785870011895895,
0.022006109356880188,
-0.03823954984545708,
0.000700810574926436,
0.01056573074311018,
0.021166447550058365,
-0.05580245330929756,
0.010968068614602089,
-0.0070627713575959206,
0.04296264052391052,
0.012227559462189674,
-0.0059782094322144985,
-0.003203393192961812,
0.006966560147702694,
0.03559811785817146,
-0.040198758244514465,
0.004828049335628748,
0.03113741986453533,
0.0351782850921154,
0.02725398913025856,
-0.02162126451730728,
-0.0027442036662250757,
0.010504505597054958,
-0.042437851428985596,
0.004653119947761297,
-0.008890782482922077,
-0.024280190467834473,
0.00394465634599328,
0.032274458557367325,
-0.03192460164427757,
0.017116833478212357,
-0.0411083921790123,
0.007045278325676918,
-0.06073546037077904,
-0.024350160732865334,
0.07976777106523514,
0.05352837219834328,
-0.022198529914021492,
-0.01960957609117031,
0.04268275573849678,
0.02574959583580494,
0.004762450698763132,
-0.05219890922307968,
0.025277286767959595,
0.03865937888622284,
-0.027219003066420555,
-0.006398039869964123,
-0.010933082550764084,
0.005759547930210829,
-0.043872274458408356,
-0.03816957771778107,
0.04327751323580742,
0.024542583152651787,
0.032256968319416046,
0.04044365882873535,
-0.006507370620965958,
0.02790122665464878,
-0.010338323190808296,
-0.004683732520788908,
-0.05422808974981308,
-0.028093649074435234,
0.02134137786924839,
0.017335494980216026,
-0.004653119947761297,
-0.02861843630671501,
0.028828352689743042,
0.02018684335052967,
0.05898616835474968,
0.04082850366830826,
0.06398914754390717,
0.04422213137149811,
0.011921432800590992,
0.018664957955479622,
0.00542718218639493,
0.05832143500447273,
-0.02459506317973137,
0.008453459478914738,
0.04082850366830826,
-0.018192648887634277,
0.03722495958209038,
0.02653677761554718,
-0.04509677737951279,
0.03206454589962959,
-0.11783239245414734,
-0.015201358124613762,
-0.04534168168902397,
-0.011527841910719872,
0.03851943463087082,
0.03935909643769264,
0.00013844015484210104,
-0.025189822539687157,
0.029300661757588387,
0.018227634951472282,
-0.07647909969091415,
0.02214605174958706,
-0.004596267826855183,
0.009262507781386375,
0.0073951371014118195,
-0.027778776362538338,
-0.03559811785817146,
-0.0028797739651054144,
-0.022408446297049522,
-0.026554271578788757,
-0.03559811785817146,
0.021971123293042183,
0.011335420422255993,
0.020064393058419228,
0.05191902071237564,
0.02422771044075489,
-0.026414327323436737,
-0.006489877589046955,
-0.0013425825163722038,
0.001450820011086762,
-0.05464791879057884,
0.021831179037690163,
0.03293919190764427,
-0.002700471319258213,
-0.018927352502942085,
-0.037469860166311264,
-0.022985713556408882,
0.06346435844898224,
-0.00040397740667685866,
-0.01779905892908573,
-0.002884147223085165,
-0.025837060064077377,
0.08116720616817474,
0.047195930033922195,
0.017755325883626938,
-0.009787295944988728,
0.039848897606134415,
0.0017667860956862569,
-0.009761055931448936,
0.00041846372187137604,
0.024997400119900703,
0.020239321514964104,
-0.07871819287538528,
0.004207049962133169,
-0.0021253912709653378,
-0.01983698457479477,
0.01875242404639721,
-0.019312197342514992,
0.026221904903650284,
0.026134440675377846,
-0.06601832807064056,
-0.06409410387277603,
-0.016600793227553368,
-0.009935985319316387,
0.005094816442579031,
0.0200469009578228,
-0.04572652280330658,
-0.030752575024962425,
-0.06902711093425751,
-0.03757481649518013,
0.02914322540163994,
0.00004882304710918106,
0.03021029382944107,
-0.04646122828125954,
0.054333046078681946,
-0.04974989965558052,
-0.004674986004829407,
-0.0027966825291514397,
-0.021953629329800606,
-0.0015448445919901133,
0.03180215135216713,
-0.05401817336678505,
-0.0013425825163722038,
-0.004736211150884628,
-0.08557542413473129,
-0.025977004319429398,
0.07836833596229553,
0.016102243214845657,
-0.004069293383508921,
0.017466692253947258,
0.017213044688105583,
0.0019165694247931242,
-0.06549353897571564,
0.018699944019317627,
-0.0200469009578228,
0.0280411709100008,
-0.00851468462496996,
-0.04947001114487648,
0.017125580459833145,
0.008899529464542866,
-0.005960716400295496,
0.061540134251117706,
-0.010661941953003407,
0.005759547930210829,
0.08270658552646637,
0.030385222285985947,
0.026344355195760727,
-0.057516761124134064,
-0.013941867277026176,
0.02928316779434681,
-0.0030240905471146107,
0.014221753925085068,
-0.002392158377915621,
-0.02762134000658989,
-0.004749331157654524,
0.007950537838041782,
-0.057726677507162094,
0.022670840844511986,
-0.04912015423178673,
-0.012717361561954021,
-0.0242976825684309,
0.02748139575123787,
-0.0611552894115448,
-0.035860512405633926,
-0.042297910898923874,
-0.048210520297288895,
-0.00893451552838087,
-0.01983698457479477,
0.01730925589799881,
0.032344430685043335,
-0.04537666589021683,
0.035440679639577866,
-0.052093952894210815,
-0.009988464415073395,
0.01911977492272854,
-0.015524976886808872,
-0.0360354408621788,
0.0005193214165046811,
0.006218737456947565,
0.10187883675098419,
-0.03367389366030693,
-0.01041704136878252,
-0.03694507107138634,
-0.03274676948785782,
0.05692199990153313,
0.005951970349997282,
-0.03809960559010506,
0.015804864466190338,
-0.05069451779127121,
-0.009673591703176498,
0.015971047803759575,
0.00955114047974348,
-0.07263065129518509,
0.047335874289274216,
-0.03409372642636299,
0.06839736551046371,
0.005803280044347048,
0.0006619981722906232,
0.011729011312127113,
-0.025557173416018486,
0.011676532216370106,
0.02919570356607437,
-0.05489281937479973,
-0.020729124546051025,
0.009979717433452606,
0.022373460233211517,
0.005575872026383877,
0.020939039066433907,
-0.06175005063414574,
0.051884036511182785,
0.019434647634625435,
0.01796524040400982,
-0.034006260335445404,
0.018909860402345657,
0.01681070774793625,
0.029370633885264397,
0.0007937417831271887,
0.001624656026251614,
-0.009393704123795033,
0.019854478538036346,
-0.019801998510956764,
-0.023912837728857994,
-0.00944618321955204,
-0.08991367369890213,
0.009035099297761917,
0.0022740811109542847,
-0.042577795684337616,
-0.058006562292575836,
0.06923702359199524,
-0.02207607962191105,
0.06570345163345337,
0.02573210373520851,
0.00528286537155509,
0.04953998327255249,
-0.0543680340051651,
0.009761055931448936,
0.003041583579033613,
-0.011571574956178665,
0.03509082272648811,
-0.0024424507282674313,
0.07056649029254913,
0.012454967945814133,
0.020239321514964104,
-0.03684011474251747,
-0.00006672596646239981,
0.052968598902225494,
0.06563348323106766,
0.0679425448179245,
-0.0025277286767959595,
-0.002936626086011529,
-0.020466729998588562,
-0.009070085361599922,
-0.061190277338027954,
0.031119925901293755,
0.06472384929656982,
-0.032344430685043335,
0.09222273528575897,
0.007989896461367607,
-0.007158982567489147,
0.02725398913025856,
-0.010434534400701523,
-0.004976739175617695,
-0.07011166960000992,
-0.012962263077497482,
0.060175687074661255,
0.02205858752131462,
0.03718997538089752,
-0.034286145120859146,
-0.020536702126264572,
0.04054861515760422,
-0.04709097370505333,
-0.04649621248245239,
0.011501602828502655,
0.007242073770612478,
-0.07654906809329987,
0.04418714717030525,
0.016557060182094574,
0.03014032170176506,
0.07011166960000992,
-0.03265930339694023,
0.01629466563463211,
0.0056677102111279964,
-0.014186767861247063,
-0.055417608469724655,
-0.00020991518977098167,
0.016408370807766914,
-0.07514963299036026,
-0.0017569463234394789,
-0.021218925714492798,
-0.010714421048760414,
0.0030678228940814734,
-0.01939966157078743,
0.05279367044568062,
-0.057656705379486084,
0.00557149900123477,
0.07389014214277267,
-0.007307672407478094,
0.020169351249933243,
0.06265968084335327,
0.033778853714466095,
-0.014055570587515831,
0.025049878284335136,
-0.1094357818365097,
-0.049085166305303574,
0.006879095453768969,
0.0039512161165475845,
-0.02819860726594925,
0.019627070054411888,
-0.0601406991481781,
-0.10544739663600922,
0.01146661676466465,
-0.012822318822145462,
-0.040863487869501114,
-0.03223947435617447,
-0.03232693672180176,
0.02162126451730728,
0.05524268001317978,
-0.034286145120859146,
0.07126620411872864,
0.09047344326972961,
-0.04131830483675003,
0.0608404166996479,
-0.004994232207536697,
0.006371800322085619,
-0.02826857753098011,
-0.016828199848532677,
0.10425787419080734,
0.0030503300949931145,
0.02062416635453701,
-0.04044365882873535,
-0.03201206400990486,
0.006848482880741358,
0.007744995877146721,
0.09201282262802124,
0.02653677761554718,
-0.05947596952319145,
0.028181113302707672,
-0.05037964507937431,
-0.03150476887822151,
0.014694062992930412,
-0.04292765632271767,
-0.028793366625905037,
0.02300320565700531,
-0.0421229787170887,
0.06563348323106766,
-0.04047864302992821,
-0.013084713369607925,
-0.06175005063414574,
0.018979830667376518,
-0.0390792116522789,
-0.005199774168431759,
-0.028460999950766563,
-0.028006184846162796,
0.010005957446992397,
0.05783163383603096,
0.0012649575946852565,
-0.028513479977846146,
0.033201586455106735,
0.02503238618373871,
-0.053248483687639236,
-0.09642104059457779,
0.013312120921909809,
0.029458098113536835,
0.011116757988929749,
0.013180924579501152,
-0.05394820123910904,
-0.03600045293569565,
-0.011134251020848751,
-0.011973911896348,
0.039044223725795746,
0.04341745749115944,
-0.05685202777385712,
0.008510311134159565,
-0.06717286258935928,
0.044746920466423035,
0.011239209212362766,
0.033201586455106735,
0.049155138432979584,
0.021743714809417725,
-0.025574667379260063,
0.032851725816726685,
-0.07032158970832825,
-0.04376731440424919,
0.030770067125558853,
0.01078439224511385,
0.00156889739446342,
-0.01507016085088253,
-0.014151781797409058,
0.001331649487838149,
-0.05737681686878204,
0.00391404377296567,
0.020431743934750557,
0.0080336295068264,
0.007390763610601425,
0.057726677507162094,
0.0001065975520759821,
0.044816892594099045,
-0.009026353247463703,
-0.03171468526124954,
0.03405873849987984,
-0.036385297775268555,
-0.008064242079854012,
-0.002805429045110941,
0.006030688527971506,
-0.03281674161553383,
0.01550748385488987,
0.0163034126162529,
0.03351645916700363,
-0.018490029498934746,
-0.049295082688331604,
-0.008169199340045452,
-0.042367883026599884,
-0.04607638344168663,
0.04824550822377205,
0.03848445042967796,
0.010731914080679417,
0.017143072560429573,
0.012507446110248566,
-0.10152897983789444,
0.02935313992202282,
-0.002936626086011529,
0.001815984956920147,
0.00800738949328661,
-0.07528957724571228,
-0.027603846043348312,
-0.0351782850921154,
0.018560001626610756,
0.0013906881213188171,
-0.028950802981853485,
-0.0465661846101284,
-0.0536683164536953,
0.009288746863603592,
-0.019224733114242554,
-0.008733346126973629,
0.04831547662615776,
-0.00966484472155571,
0.004386352840811014,
0.018769916146993637,
-0.029388125985860825,
0.04572652280330658,
0.09334228932857513,
0.034863412380218506,
-0.009428690187633038,
0.003463600529357791,
0.06164509430527687,
0.010005957446992397,
-0.026309369131922722,
-0.023685429245233536,
-0.030770067125558853,
-0.005134175531566143,
-0.015306315384805202,
-0.0025342884473502636,
0.04667114466428757,
0.022408446297049522,
0.11181481927633286,
0.03281674161553383,
-0.07934793829917908,
0.017335494980216026,
0.020099379122257233,
0.034356117248535156,
-0.022513404488563538,
0.01326838880777359,
-0.005059830378741026,
-0.0006352121126838028,
-0.013250895775854588,
0.004226729739457369,
-0.047265902161598206,
-0.004561282228678465,
0.01258616428822279,
-0.010758153162896633,
0.006778511218726635,
-0.036665186285972595,
-0.03307913616299629,
-0.0032864846289157867,
0.009997210465371609,
-0.03841447830200195,
0.011991404928267002,
-0.014151781797409058,
0.04397723078727722,
0.0322919525206089,
0.0448518767952919,
-0.03461851179599762,
-0.020239321514964104,
-0.05485783517360687,
-0.0014202074380591512,
0.0397789292037487,
0.029912913218140602,
-0.01283106580376625,
-0.1263689398765564,
0.06755770742893219,
0.017930256202816963,
0.021743714809417725,
0.06916705518960953,
0.00009641612268751487,
0.004274835344403982,
0.004373232834041119,
-0.011973911896348,
-0.012070123106241226,
0.020169351249933243,
-0.017466692253947258,
0.00491988705471158,
-0.0253122728317976,
0.06846733391284943,
0.02935313992202282,
0.016854440793395042,
0.04870032146573067,
0.029405618086457253,
-0.06916705518960953,
-0.06769764423370361,
-0.013941867277026176,
-0.06244976818561554,
0.011632800102233887,
-0.06007072702050209,
0.06948192417621613,
0.010898096486926079,
-0.02387785166501999,
-0.010312083177268505,
0.0014059944078326225,
0.03258933126926422,
-0.06587838381528854,
0.012638643383979797,
-0.05954594165086746,
0.00034466543002054095,
0.03528324514627457,
-0.011239209212362766,
-0.04159819334745407,
-0.051674120128154755,
-0.0021986428182572126,
-0.01623344048857689,
-0.004285768140107393,
-0.000440603238530457,
-0.008405353873968124,
0.034583527594804764,
0.016119737178087234,
-0.07095133513212204,
0.009253760799765587,
-0.011090518906712532,
0.004688106011599302,
-0.06063050404191017,
-0.06087540462613106,
-0.021743714809417725,
0.07102130353450775,
-0.024717513471841812,
0.021009011194109917,
0.05006477236747742,
0.013670726679265499,
-0.00011568568152142689,
0.03872935101389885,
-0.003979641944169998,
-0.012699868530035019,
0.02503238618373871,
0.028600944206118584,
0.036525242030620575,
-0.03841447830200195,
-0.03029775805771351,
-0.02027430757880211,
0.037679776549339294,
-0.03202955797314644,
-0.04429210349917412,
0.03528324514627457,
0.001806145184673369,
-0.001077455235645175,
0.0036975685507059097,
-0.047335874289274216,
0.01695065200328827,
0.01463283784687519,
0.048280492424964905,
0.024507597088813782,
-0.011746504344046116,
0.06028064340353012,
0.014580358751118183,
0.02235596813261509,
0.049714911729097366,
-0.028391029685735703,
-0.009761055931448936,
-0.014440415427088737,
-0.03872935101389885,
-0.018577493727207184,
0.03554563969373703,
0.013040981255471706,
-0.00638054683804512,
-0.04709097370505333,
0.06654311716556549,
-0.0373649038374424,
-0.049085166305303574,
0.0638841912150383,
0.029458098113536835,
0.006782884243875742,
-0.013417079113423824,
0.0018367578741163015,
0.04450201988220215,
0.004727465100586414,
0.042437851428985596,
0.0003763713757507503,
0.02790122665464878,
-0.04348742961883545,
0.027358945459127426,
0.06755770742893219,
0.0795578584074974,
-0.02027430757880211,
-0.026571763679385185,
0.009210028685629368,
0.00944618321955204,
0.02573210373520851,
-0.005855759140104055,
0.024752499535679817,
0.011475363746285439,
0.009970971383154392,
0.027341453358530998,
0.0066079553216695786,
-0.009629858657717705,
0.04709097370505333,
-0.009096324443817139,
0.026309369131922722,
0.022915741428732872,
0.05485783517360687,
-0.026554271578788757,
0.04803559184074402,
0.007294552866369486,
0.01207886915653944,
-0.0215687844902277,
0.010355816222727299,
0.016775721684098244,
0.053248483687639236,
0.06168007850646973,
-0.0621698796749115,
-0.007298925891518593,
0.013968106359243393,
0.025224808603525162,
0.019959434866905212,
-0.013758190907537937,
-0.015909822657704353,
-0.06416407227516174,
-0.01974952034652233,
-0.004967992659658194,
0.03232693672180176,
-0.045551594346761703,
-0.022810783237218857,
0.014379190281033516,
0.012402488850057125,
0.030682602897286415,
-0.019312197342514992,
0.017178058624267578,
-0.01046077348291874,
-0.04810556396842003,
-0.005309104919433594,
0.0334639772772789,
-0.05471789091825485,
0.0061225262470543385,
0.039044223725795746,
-0.010495759546756744,
-0.015131385996937752,
0.006323695182800293,
-0.03834450617432594,
0.029685506597161293,
0.0506245456635952,
-0.05524268001317978,
0.010294590145349503,
-0.03323657065629959,
0.028356043621897697
] |
21,519 | tempora | _check_unmatched |
Ensure no words appear in unmatched text.
| def _check_unmatched(matches, text):
"""
Ensure no words appear in unmatched text.
"""
def check_unmatched(unmatched):
found = re.search(r'\w+', unmatched)
if found:
raise ValueError(f"Unexpected {found.group(0)!r}")
pos = 0
for match in matches:
check_unmatched(text[pos : match.start()])
yield match
pos = match.end()
check_unmatched(text[pos:])
| (matches, text) | [
0.022372325882315636,
-0.029920712113380432,
0.010449513792991638,
0.039688143879175186,
-0.061551179736852646,
-0.045945119112730026,
0.00643886486068368,
0.004201631993055344,
0.0374327227473259,
0.002375922864302993,
-0.02497333660721779,
0.067771777510643,
-0.01569700613617897,
-0.0703909769654274,
-0.028538357466459274,
-0.006529808975756168,
-0.014423784799873829,
0.06464329361915588,
0.016651922836899757,
-0.04605425149202347,
-0.011804585345089436,
0.09414565563201904,
-0.0353773795068264,
0.07813943922519684,
-0.02115367166697979,
-0.04368969798088074,
-0.03232164680957794,
-0.007434706203639507,
-0.011586318723857403,
0.01296867337077856,
0.010704157873988152,
0.01450563408434391,
0.050637852400541306,
-0.004829148296266794,
0.0032899142242968082,
-0.02675584703683853,
-0.006843567360192537,
0.02973882481455803,
0.013123279437422752,
-0.03066645748913288,
0.01140442956238985,
-0.0008940972620621324,
0.045435830950737,
-0.04401709884405136,
0.007343761622905731,
-0.007962184026837349,
-0.034868087619543076,
0.026064669713377953,
-0.06791728734970093,
0.03306739032268524,
0.05118351802229881,
-0.01446016225963831,
-0.0257918369024992,
0.01447835098952055,
-0.0030966573394834995,
0.07864873111248016,
-0.025573570281267166,
0.025664513930678368,
0.0188982505351305,
-0.029193157330155373,
-0.0220631156116724,
-0.00004025000816909596,
-0.028356468304991722,
0.004856431856751442,
0.01051317434757948,
0.0008912552730180323,
0.030793778598308563,
-0.09138094633817673,
0.0026442089583724737,
0.007948542013764381,
-0.024664126336574554,
0.028447413817048073,
-0.026028292253613472,
0.015596967190504074,
0.01836167834699154,
0.00984018575400114,
0.002403206191956997,
0.08556050807237625,
0.049728404730558395,
-0.015087679028511047,
-0.037359967827796936,
0.02049887180328369,
0.013423395343124866,
-0.0173158161342144,
0.007953088730573654,
0.03061189129948616,
0.0055657983757555485,
-0.036505088210105896,
0.001088490942493081,
-0.002133783418685198,
-0.06486155837774277,
0.020935405045747757,
0.04074309766292572,
-0.0025487171951681376,
-0.020880836993455887,
0.03432242199778557,
0.007875786162912846,
0.014214612543582916,
-0.06133291497826576,
0.026137424632906914,
0.03823303058743477,
0.07813943922519684,
0.017161210998892784,
0.01649731770157814,
0.03859680891036987,
-0.05314791575074196,
-0.030302679166197777,
-0.09443668276071548,
0.05311153829097748,
0.02359098196029663,
-0.030357245355844498,
-0.11633609980344772,
0.026046480983495712,
0.01884368248283863,
0.013650757260620594,
-0.057476870715618134,
-0.04758211970329285,
-0.03939712047576904,
-0.013605284504592419,
-0.042016319930553436,
0.044198986142873764,
-0.05100162699818611,
-0.042707499116659164,
-0.034940846264362335,
0.026955924928188324,
-0.022154059261083603,
-0.035668399184942245,
-0.0173158161342144,
0.031575899571180344,
0.015606061555445194,
-0.026246558874845505,
0.035813912749290466,
-0.03675973415374756,
-0.0534389391541481,
-0.03208519145846367,
0.062351491302251816,
0.004099319688975811,
0.003007986582815647,
0.00525658717378974,
-0.008030392229557037,
-0.008344150148332119,
-0.007534744683653116,
0.03710532188415527,
0.042016319930553436,
-0.02049887180328369,
0.055876247584819794,
-0.04707282781600952,
0.06839019805192947,
0.027156002819538116,
-0.01724306121468544,
-0.014951261691749096,
-0.026392068713903427,
0.009676486253738403,
0.029429612681269646,
-0.023882003501057625,
0.016324521973729134,
-0.0027942671440541744,
-0.00984018575400114,
-0.0353773795068264,
0.007575669791549444,
0.08279579877853394,
-0.016133539378643036,
0.009376369416713715,
0.0547485388815403,
0.023227203637361526,
0.01729762740433216,
-0.005897745490074158,
-0.009922035969793797,
0.001604032120667398,
-0.02671946957707405,
-0.030284490436315536,
0.020717138424515724,
-0.042598363012075424,
-0.03614130988717079,
-0.059841424226760864,
0.019898638129234314,
-0.06282440572977066,
0.028356468304991722,
0.006520714610815048,
0.031139368191361427,
-0.005188378971070051,
-0.022099493071436882,
-0.02113548293709755,
-0.044344495981931686,
0.02515522576868534,
0.02964787930250168,
-0.034959033131599426,
0.013241507112979889,
-0.0028465602081269026,
0.027919935062527657,
0.021371938288211823,
-0.05543971434235573,
0.00382648641243577,
0.01018577441573143,
0.04441725090146065,
0.04685456305742264,
-0.025391681119799614,
0.04914636164903641,
0.05536695942282677,
-0.052202094346284866,
-0.08214099705219269,
-0.0862153097987175,
-0.015042206272482872,
0.029902523383498192,
0.02813820168375969,
-0.004710920620709658,
-0.04128876328468323,
0.01724306121468544,
-0.03472257778048515,
-0.041870810091495514,
0.006529808975756168,
-0.005179284606128931,
0.05776789411902428,
0.05023769661784172,
0.004285755567252636,
0.01875273883342743,
0.06384298205375671,
-0.024500425904989243,
-0.05824080482125282,
-0.012704934924840927,
-0.015887988731265068,
-0.002664671279489994,
0.0009640108328312635,
-0.03599580004811287,
0.03199424594640732,
0.026173802092671394,
0.028865758329629898,
0.04616338387131691,
-0.013514339923858643,
-0.008071317337453365,
-0.00041493389289826155,
0.000532593228854239,
0.008566964417696,
-0.015569684095680714,
-0.015624250285327435,
-0.06857208907604218,
-0.005038320552557707,
-0.04365332052111626,
0.061514802277088165,
-0.031084802001714706,
-0.03381313383579254,
0.016269955784082413,
-0.028465602546930313,
0.00042175472481176257,
0.033212900161743164,
-0.03677792102098465,
-0.04288938641548157,
0.0030420906841754913,
0.02415483631193638,
0.021462881937623024,
0.01891643926501274,
0.02362735942006111,
0.013341546058654785,
-0.014323745854198933,
0.0519474521279335,
-0.06417038291692734,
-0.04750936105847359,
-0.02264515869319439,
0.05340256169438362,
0.00918083917349577,
0.08730664104223251,
0.09938405454158783,
-0.03845129907131195,
0.03303101286292076,
-0.03695981204509735,
0.03219432383775711,
0.023118071258068085,
0.008153166621923447,
-0.03424966707825661,
0.012486668303608894,
0.037796501070261,
-0.02500971406698227,
0.015387794934213161,
0.014387406408786774,
-0.05631278082728386,
0.06959066540002823,
0.0076393308117985725,
-0.015942556783556938,
-0.015442362055182457,
0.05234760418534279,
-0.024882392957806587,
0.02044430375099182,
0.003935619723051786,
0.013805362395942211,
0.026392068713903427,
0.024045703932642937,
0.02357279323041439,
-0.03057551197707653,
-0.011886435560882092,
-0.027992691844701767,
0.029465990141034126,
-0.03903334215283394,
0.08679734915494919,
-0.0006979983882047236,
-0.03661422058939934,
0.026919547468423843,
0.0019314320525154471,
-0.00826684758067131,
-0.03368581086397171,
-0.014778467826545238,
0.006366109009832144,
0.02655576914548874,
-0.0010333559475839138,
-0.03268542140722275,
-0.023372715339064598,
-0.021790282800793648,
-0.01597893424332142,
0.02430034801363945,
-0.02275429293513298,
-0.054457515478134155,
-0.045835986733436584,
-0.019061949104070663,
-0.0014823939418420196,
-0.04325316473841667,
-0.04634527489542961,
-0.0016711036441847682,
0.07632055133581161,
-0.007862145081162453,
-0.01022215187549591,
-0.009403652511537075,
0.050492338836193085,
-0.02426397055387497,
0.004178896080702543,
0.02282704785466194,
0.02495514787733555,
-0.06093275919556618,
0.0036605126224458218,
-0.006611659191548824,
0.017197588458657265,
0.047363851219415665,
0.028665680438280106,
-0.03870594501495361,
-0.014187328517436981,
0.00002126181061612442,
-0.02191760390996933,
-0.008580605499446392,
0.017397666350007057,
0.0020189660135656595,
0.0631154254078865,
-0.012113796547055244,
-0.036486901342868805,
0.035722967237234116,
-0.04405347630381584,
-0.07741189002990723,
0.04834605008363724,
0.0346316322684288,
-0.04725471884012222,
0.01569700613617897,
0.012386629357933998,
-0.010022074915468693,
0.024882392957806587,
0.03583209961652756,
0.020207848399877548,
-0.019734937697649002,
0.059186626225709915,
0.05631278082728386,
-0.024809636175632477,
-0.010631402023136616,
-0.009949319064617157,
0.010804196819663048,
-0.015196812339127064,
0.01884368248283863,
-0.0196439940482378,
0.018616322427988052,
0.00009108652011491358,
-0.04678180813789368,
0.003555926727131009,
-0.006907228380441666,
-0.10011161118745804,
-0.024827824905514717,
-0.026137424632906914,
-0.021353749558329582,
0.0297024454921484,
-0.0004248809418641031,
0.08948930352926254,
-0.04645440727472305,
0.0289567019790411,
-0.008144072256982327,
-0.01596074551343918,
0.03264904394745827,
-0.0010430187685415149,
0.032485343515872955,
0.032448966056108475,
-0.019116515293717384,
-0.004101593047380447,
-0.003994733560830355,
-0.017324911430478096,
0.02812001295387745,
0.018388960510492325,
0.06278802454471588,
0.01951667107641697,
-0.04449000954627991,
-0.011795490980148315,
0.0439443401992321,
-0.0019098327029496431,
-0.015624250285327435,
-0.03186692297458649,
-0.030411813408136368,
-0.07471993565559387,
-0.022335948422551155,
-0.0020121452398598194,
0.02495514787733555,
-0.10171223431825638,
0.004158433526754379,
-0.002973882481455803,
0.1022215262055397,
-0.015424173325300217,
-0.007284647785127163,
0.04521756246685982,
0.014960356056690216,
-0.04780038446187973,
-0.01688837818801403,
0.0007508598500862718,
-0.08519672602415085,
-0.043544188141822815,
-0.020171470940113068,
0.012386629357933998,
0.02184484899044037,
-0.017906956374645233,
0.021772094070911407,
0.041943565011024475,
-0.05784064903855324,
0.08665183931589127,
0.034267857670784,
0.06507982313632965,
-0.022135870531201363,
-0.014960356056690216,
-0.06726249307394028,
0.04408985376358032,
-0.026846790686249733,
-0.029556935653090477,
-0.012259307317435741,
-0.014387406408786774,
-0.05249311774969101,
-0.00012433806841727346,
-0.030775589868426323,
-0.012332063168287277,
-0.00489735696464777,
-0.003810571040958166,
0.05402098223567009,
-0.041070498526096344,
0.02902945689857006,
0.037359967827796936,
0.049619272351264954,
0.06035071611404419,
-0.03363124653697014,
-0.001955304993316531,
0.018152505159378052,
0.018643604591488838,
0.07268277555704117,
-0.009767429903149605,
0.013687134720385075,
-0.056822072714567184,
-0.07457441836595535,
0.02906583622097969,
0.029229534789919853,
0.03228526934981346,
-0.0047882236540317535,
-0.00588410347700119,
0.06966342031955719,
0.04303489625453949,
0.004988301079720259,
0.008253205567598343,
0.038051143288612366,
-0.0022758839186280966,
0.012295684777200222,
0.019080137833952904,
-0.046490784734487534,
-0.03448612242937088,
0.001368713448755443,
0.01138624083250761,
0.005306606646627188,
0.03690524399280548,
-0.03830578923225403,
0.019280215725302696,
-0.05514869466423988,
-0.08061312884092331,
0.03355848789215088,
0.05736773833632469,
-0.03936074301600456,
-0.0075938585214316845,
0.02984795719385147,
-0.014405595138669014,
0.009694674983620644,
-0.0499102957546711,
-0.02751978114247322,
0.00395153509452939,
-0.0785759761929512,
0.005111075937747955,
-0.03541375696659088,
-0.027938123792409897,
-0.06809917837381363,
0.01378717366605997,
0.01690656691789627,
-0.053002405911684036,
-0.009603730402886868,
-0.018161600455641747,
0.0202987939119339,
0.020844459533691406,
-0.02515522576868534,
0.020189659669995308,
0.011995568871498108,
-0.02051706053316593,
-0.012359346263110638,
0.03148495778441429,
0.010895141400396824,
0.021462881937623024,
-0.05889560282230377,
0.023736491799354553,
-0.038669563829898834,
-0.0858515277504921,
-0.07966730743646622,
0.028447413817048073,
-0.0004876894236076623,
-0.027137814089655876,
-0.03859680891036987,
-0.03688705340027809,
-0.052893273532390594,
0.03657784312963486,
0.002421395154669881,
-0.019971393048763275,
0.02981157973408699,
0.0014687522780150175,
-0.03852405399084091,
0.015351417474448681,
-0.040415696799755096,
-0.032467156648635864,
0.014933072961866856,
0.052856896072626114,
-0.07442890852689743,
-0.002428215928375721,
-0.0035763890482485294,
0.02266334928572178,
-0.04332591965794563,
-0.0086124362424016,
-0.014651145786046982,
0.02350003644824028,
-0.0486006960272789,
0.015033111907541752,
0.071882463991642,
0.022226816043257713,
-0.009321802295744419,
0.03661422058939934,
0.009530974552035332,
-0.013741700910031796,
0.05645829439163208,
-0.06242424622178078,
-0.014878506772220135,
-0.08228650689125061,
0.04099774360656738,
-0.05860458314418793,
-0.027901746332645416,
-0.0312848798930645,
0.003962902817875147,
0.0013812183169648051,
0.01019486878067255,
-0.016806527972221375,
0.04845518618822098,
0.04052483290433884,
-0.0004558588843792677,
0.04063396528363228,
-0.022990748286247253,
-0.0007622278644703329,
-0.054421138018369675,
0.020971782505512238,
0.007380139548331499,
0.042743876576423645,
0.0515836738049984,
0.005383909214287996,
0.0670442208647728,
-0.019734937697649002,
0.02262696996331215,
-0.004222094547003508,
-0.030884724110364914,
-0.044344495981931686,
0.020698949694633484,
-0.002105363178998232,
-0.011804585345089436,
-0.01575157232582569,
-0.05878647044301033,
0.07704810798168182,
-0.006316089536994696,
-0.01642456091940403,
-0.045872364193201065,
0.0009714000625535846,
-0.07573851197957993,
0.013568907044827938,
0.0033831321634352207,
-0.006216050591319799,
0.019334781914949417,
0.032412588596343994,
0.006984530948102474,
0.030248112976551056,
-0.019734937697649002,
0.005752234254032373,
0.041143253445625305,
0.02575545944273472,
0.014814845286309719,
0.01726124994456768,
-0.0153150400146842,
0.046745430678129196,
0.020717138424515724,
0.0020019139628857374,
-0.010649590753018856,
0.05311153829097748,
0.038778699934482574,
-0.0066662258468568325,
-0.02435491420328617,
-0.024846013635396957,
0.014951261691749096,
0.02433672547340393,
0.027065057307481766,
0.028429225087165833,
-0.07097302377223969,
-0.021444693207740784,
0.0008355518220923841,
-0.06027795746922493,
0.021662959828972816,
0.013241507112979889,
0.04325316473841667,
0.01221383549273014,
-0.06278802454471588,
-0.05889560282230377,
0.01566062867641449,
0.026137424632906914,
0.020153282210230827,
0.014360123313963413,
0.05071060732007027,
-0.032412588596343994,
-0.026246558874845505,
-0.02742883563041687,
-0.047545742243528366,
0.021317370235919952,
0.019371161237359047,
-0.05798615887761116,
0.06991806626319885,
0.0344497449696064,
-0.04845518618822098,
-0.0015062668826431036,
0.009349086321890354,
-0.03852405399084091,
-0.030048035085201263,
-0.008803419768810272,
0.009421841241419315,
-0.04379883036017418,
0.049619272351264954,
-0.027719857171177864,
0.0028147296980023384,
-0.020135093480348587,
-0.0018063834868371487,
0.07024546712636948,
0.038778699934482574,
0.02593734674155712,
-0.04383520781993866,
-0.024118458852171898,
0.024682315066456795,
-0.027174191549420357,
0.007730275392532349,
-0.029484178870916367,
0.013450679369270802,
0.012150174006819725,
0.023718303069472313,
0.03906971961259842,
0.04168891906738281,
0.05340256169438362,
-0.0060750870034098625,
0.07308293133974075,
0.004158433526754379,
-0.006047803442925215,
0.031703222543001175,
0.0041106874123215675,
0.04798227548599243,
0.03508635610342026,
-0.010958801954984665,
-0.030138978734612465,
0.03213975578546524,
-0.0047427513636648655,
-0.00419481098651886,
0.0017859209328889847,
0.01018577441573143,
-0.014878506772220135,
-0.005388456862419844,
-0.03586847707629204,
-0.01653369516134262,
-0.017752349376678467,
0.03210337832570076,
-0.033376600593328476,
0.029302291572093964,
0.09538250416517258,
-0.07097302377223969,
-0.045690473169088364,
-0.03697799891233444,
-0.001356208580546081,
0.03585029020905495,
-0.04958289489150047,
0.05096524953842163,
0.013950873166322708,
-0.028520168736577034,
0.05329342931509018,
0.0015028564957901835,
0.021517448127269745,
0.028665680438280106,
0.02122642658650875,
0.007243722677230835,
-0.02422759309411049,
-0.019116515293717384,
-0.0351954884827137,
-0.021371938288211823,
-0.016824716702103615,
0.003751457203179598,
-0.02111729420721531,
-0.033303845673799515,
-0.03346754610538483,
0.03746910020709038,
0.026446636766195297,
-0.08228650689125061,
0.028447413817048073,
0.004415351431816816,
0.060750868171453476,
-0.019207460805773735,
0.026101047173142433,
0.06118740141391754,
-0.011177068576216698,
-0.015005828812718391,
-0.029938900843262672,
0.028520168736577034,
-0.04136152192950249,
-0.03621406480669975,
0.05016493797302246,
0.009339991956949234,
-0.0031262142583727837,
0.029338669031858444,
0.00790307018905878,
0.023991137742996216,
-0.0023224931210279465,
0.022226816043257713,
0.01670648902654648,
-0.028592923656105995,
0.05249311774969101,
-0.012750406749546528,
-0.026864981278777122,
0.021008159965276718,
0.012186551466584206,
-0.0017302174819633365,
-0.0532570481300354,
0.01450563408434391,
0.006129653658717871,
0.0705728679895401,
-0.023263581097126007,
0.020899027585983276,
0.06569824367761612,
-0.0327763669192791,
-0.0009878837736323476,
0.031830545514822006,
0.059914182871580124,
0.08032210916280746,
0.05252949520945549,
-0.08257752656936646,
-0.041870810091495514,
0.010995179414749146,
0.04532669857144356,
0.05503956228494644,
0.016933850944042206,
0.010649590753018856,
-0.04150703176856041,
-0.019334781914949417,
0.0005979595589451492,
0.061478424817323685
] |
21,520 | tempora | _parse_timedelta_composite | null | def _parse_timedelta_composite(raw_value, unit):
if unit != 'seconds':
raise ValueError("Cannot specify units with composite delta")
values = raw_value.split(':')
units = 'hours', 'minutes', 'seconds'
composed = ' '.join(f'{value} {unit}' for value, unit in zip(values, units))
return _parse_timedelta_nanos(composed)
| (raw_value, unit) | [
0.0050397468730807304,
0.02242443896830082,
-0.04251262918114662,
0.02304389886558056,
0.0022676647640764713,
-0.024318216368556023,
0.00728750042617321,
0.0606362484395504,
-0.026459775865077972,
-0.024141227826476097,
0.030495112761855125,
0.0708661824464798,
0.016964344307780266,
-0.015212158672511578,
0.034512750804424286,
0.04736211523413658,
0.028282757848501205,
-0.007437940686941147,
-0.03787553310394287,
-0.012849362567067146,
0.04159228876233101,
-0.03454814851284027,
-0.026742957532405853,
0.04070734977722168,
-0.008898095227777958,
-0.02463679574429989,
-0.011017532087862492,
-0.032636672258377075,
-0.0496983639895916,
-0.053273528814315796,
0.039008259773254395,
0.05532659590244293,
-0.03601715341210365,
-0.01638028211891651,
-0.010336127132177353,
0.025911111384630203,
-0.041840072721242905,
0.010769748128950596,
-0.039362236857414246,
0.05868937820196152,
0.0523177906870842,
-0.04753910377621651,
-0.04028257727622986,
-0.008433500304818153,
0.03576936945319176,
0.0031017230357974768,
0.03649502247571945,
0.05281335860490799,
-0.03136235848069191,
0.0192563459277153,
0.034583546221256256,
0.027928780764341354,
-0.012150258757174015,
0.009309593588113785,
-0.07075998932123184,
0.01647762581706047,
0.003741093911230564,
0.09387468546628952,
-0.001394890365190804,
0.04853023961186409,
-0.03240658715367317,
0.07497231662273407,
-0.01781388930976391,
0.06576891243457794,
-0.04601700231432915,
-0.06591050326824188,
0.051185064017772675,
-0.014654645696282387,
-0.019486431032419205,
-0.023521767929196358,
0.01228300016373396,
0.0010221083648502827,
-0.020300578325986862,
-0.03794632852077484,
0.022459836676716805,
-0.004322943277657032,
-0.005566287320107222,
0.004150379449129105,
0.0034357886761426926,
0.03038891963660717,
-0.06672465056180954,
0.0048804571852087975,
0.01197327021509409,
0.022052763029932976,
-0.0029911051969975233,
-0.0015497553395107388,
0.017424514517188072,
0.026406679302453995,
-0.025981906801462173,
0.04913200065493584,
-0.04258342459797859,
-0.06194596365094185,
-0.006491051986813545,
0.012734320014715195,
-0.013999788090586662,
0.04860103502869606,
-0.0682467520236969,
0.007809616159647703,
-0.06406982988119125,
-0.06339727342128754,
0.03688439726829529,
-0.04499046877026558,
-0.020725350826978683,
-0.040601156651973724,
0.03619414195418358,
0.01669001206755638,
-0.017150182276964188,
-0.04838864877820015,
0.032495081424713135,
0.0024402285926043987,
0.03438885882496834,
-0.03571627289056778,
-0.05401688069105148,
0.019610323011875153,
-0.023521767929196358,
0.003482248168438673,
0.030371220782399178,
0.0068848514929413795,
0.004103919956833124,
-0.031822528690099716,
0.023769551888108253,
-0.009566226974129677,
0.01537144836038351,
0.011645841412246227,
-0.07575106620788574,
0.014840483665466309,
-0.017256375402212143,
0.014698892831802368,
0.01909705623984337,
0.024194324389100075,
-0.02346867136657238,
0.00595123739913106,
0.05330892652273178,
0.014902429655194283,
0.021203218027949333,
0.013902444392442703,
0.01576082408428192,
0.02153949625790119,
-0.01345997303724289,
0.058264605700969696,
0.008937917649745941,
-0.019486431032419205,
-0.035203006118535995,
0.006876002065837383,
-0.0151590621098876,
-0.008389253169298172,
-0.04771609231829643,
0.039645418524742126,
-0.048636432737112045,
0.04587541148066521,
-0.08233503997325897,
0.03975161164999008,
0.05599915236234665,
0.020123589783906937,
0.07660061120986938,
-0.04941518232226372,
0.031238464638590813,
0.004387101624161005,
-0.010752049274742603,
0.005446820054203272,
0.04845944419503212,
0.002763232449069619,
-0.0010812889086082578,
0.01190247479826212,
0.008052975870668888,
0.023344779387116432,
0.03837110102176666,
-0.03067210130393505,
-0.05649472028017044,
0.02208816073834896,
0.03173403441905975,
0.02339787594974041,
0.07263606786727905,
0.042406436055898666,
0.028353553265333176,
-0.08665355294942856,
0.020459868013858795,
-0.04049496352672577,
-0.04300819709897041,
-0.0889190062880516,
-0.03122076578438282,
0.01609710231423378,
0.0007815147400833666,
-0.0002549740020185709,
-0.019468732178211212,
0.005199036095291376,
0.007269801571965218,
-0.004214537795633078,
-0.009380389004945755,
-0.06835294514894485,
0.006982195191085339,
0.04159228876233101,
-0.0401763841509819,
0.04173387959599495,
0.01436261460185051,
0.019079357385635376,
0.005809646565467119,
0.017256375402212143,
0.08169788122177124,
0.022689921781420708,
-0.13592714071273804,
-0.013769702985882759,
-0.01578737236559391,
-0.019981998950242996,
0.03507911413908005,
-0.05837079882621765,
-0.017592653632164,
0.03681360185146332,
-0.04608779773116112,
-0.0668308436870575,
-0.011628142558038235,
0.01650417409837246,
0.013690058141946793,
0.05720267444849014,
-0.02401733584702015,
0.013964390382170677,
-0.03605255112051964,
-0.02339787594974041,
0.012575031258165836,
-0.022813813760876656,
0.02527395449578762,
0.030990680679678917,
0.10456478595733643,
-0.040459565818309784,
0.02194656990468502,
-0.004920279607176781,
0.021504098549485207,
0.002820753725245595,
-0.025592532008886337,
0.027327019721269608,
0.02539784461259842,
-0.059786707162857056,
-0.025716423988342285,
0.012513085268437862,
0.018601488322019577,
-0.010415771044790745,
0.004015426151454449,
-0.05741506069898605,
0.04325598105788231,
-0.022583728656172752,
-0.05323813110589981,
-0.051822222769260406,
-0.05560977756977081,
0.007703423034399748,
0.04187547042965889,
-0.07044140994548798,
0.005929113831371069,
-0.007420241832733154,
-0.017911233007907867,
0.046689558774232864,
-0.02394654043018818,
0.07929083704948425,
0.016344884410500526,
0.029857955873012543,
-0.019911203533411026,
-0.023592563346028328,
-0.023008501157164574,
-0.009955601766705513,
0.02950397878885269,
-0.02263682521879673,
0.007194581441581249,
-0.043999332934617996,
-0.014044035226106644,
-0.006623793393373489,
-0.011619293130934238,
-0.01128301490098238,
0.034654341638088226,
-0.013716606423258781,
-0.03169863671064377,
-0.003230039495974779,
-0.08438809961080551,
-0.0803527683019638,
-0.06647686660289764,
0.0018793962663039565,
-0.024141227826476097,
0.037273772060871124,
0.03490212559700012,
0.006876002065837383,
-0.007057415321469307,
-0.022955404594540596,
-0.04056575894355774,
0.019150152802467346,
0.01598205976188183,
-0.03737996518611908,
0.010601609013974667,
0.0606362484395504,
-0.00442249933257699,
0.0006166942184790969,
-0.016592668369412422,
0.02527395449578762,
-0.02235364355146885,
-0.09267116338014603,
0.030229629948735237,
-0.0454152412712574,
-0.02256602980196476,
0.050300125032663345,
-0.07660061120986938,
-0.04810546711087227,
-0.02076074853539467,
-0.027433212846517563,
-0.056176140904426575,
0.05904335528612137,
-0.0520700067281723,
0.03737996518611908,
-0.05387528985738754,
-0.010867091827094555,
0.021362507715821266,
-0.0190262608230114,
-0.01350422017276287,
-0.05203460901975632,
0.020548362284898758,
0.01384049840271473,
0.009079508483409882,
0.0210439283400774,
0.03555698320269585,
0.05408767610788345,
-0.03157474473118782,
-0.025521736592054367,
0.009884806349873543,
0.028707530349493027,
-0.017778491601347923,
-0.034229569137096405,
-0.04222944751381874,
0.010787446983158588,
0.033610109239816666,
0.022530632093548775,
0.008022002875804901,
0.025150062516331673,
-0.0033362326212227345,
0.0052432832308113575,
-0.027079235762357712,
-0.006429105997085571,
0.021610291674733162,
0.025698725134134293,
-0.006654766388237476,
-0.05511420965194702,
0.01322103850543499,
-0.009920204058289528,
0.031822528690099716,
-0.04261882230639458,
0.05114966630935669,
0.02456600032746792,
-0.0034999470226466656,
-0.018743079155683517,
0.0180705226957798,
-0.015114814974367619,
0.0248491819947958,
0.01932714134454727,
0.0922463908791542,
-0.023769551888108253,
-0.01678735576570034,
0.017778491601347923,
-0.008628187701106071,
0.04736211523413658,
0.03253047913312912,
0.05911415070295334,
-0.018371403217315674,
-0.037627749145030975,
0.009645871818065643,
-0.03723837435245514,
0.05886636674404144,
0.020778445526957512,
0.0761050432920456,
-0.03330922871828079,
0.041238315403461456,
-0.026742957532405853,
0.011982119642198086,
-0.04290200397372246,
-0.01588471606373787,
0.010964435525238514,
0.0010796296410262585,
0.006101677659898996,
0.12707772850990295,
0.009619323536753654,
0.03017653338611126,
-0.02582261711359024,
0.012159108184278011,
-0.00032328051747754216,
-0.025433242321014404,
-0.03996399790048599,
0.03385789319872856,
-0.024548301473259926,
-0.006172473076730967,
0.04948597773909569,
-0.023238586261868477,
0.004418074619024992,
0.03584016487002373,
-0.012920157983899117,
-0.024424409493803978,
0.031946420669555664,
-0.028282757848501205,
-0.03953922539949417,
-0.005318503361195326,
0.018955465406179428,
0.008066250011324883,
0.011990969069302082,
-0.030017243698239326,
-0.05019393190741539,
-0.024689892306923866,
-0.024955375120043755,
0.04633558169007301,
-0.062052156776189804,
-0.009495431557297707,
0.041698481887578964,
0.0009341672994196415,
-0.04456569626927376,
0.03939763456583023,
0.05741506069898605,
-0.04014098644256592,
0.0031216342467814684,
-0.04435331001877785,
-0.03576936945319176,
0.02950397878885269,
0.0033008349128067493,
-0.03265437111258507,
-0.0012444502208381891,
-0.06775118410587311,
-0.04937978461384773,
-0.019981998950242996,
0.007039716467261314,
-0.013769702985882759,
-0.026831451803445816,
-0.0034269392490386963,
0.005513190757483244,
0.020371373742818832,
0.02465449459850788,
0.03497292101383209,
-0.013159092515707016,
-0.008309608325362206,
0.016751958057284355,
0.02582261711359024,
0.030070340260863304,
-0.04187547042965889,
-0.03214110806584358,
0.06003448739647865,
0.007269801571965218,
0.003926931880414486,
0.03145085275173187,
0.060530055314302444,
0.0494505800306797,
-0.05752125382423401,
0.05752125382423401,
0.014964375644922256,
0.05702568590641022,
0.053415119647979736,
-0.06983964890241623,
-0.008951191790401936,
0.0010674616787582636,
-0.01766344904899597,
-0.0007704529562033713,
0.029203098267316818,
-0.03522070497274399,
0.0007311836234293878,
-0.0454152412712574,
0.08969775587320328,
-0.015990909188985825,
-0.005004349164664745,
0.000028363094315864146,
-0.010221084579825401,
-0.01705283857882023,
0.02180497907102108,
0.04948597773909569,
0.027734093368053436,
0.015282954089343548,
-0.056176140904426575,
0.01918555051088333,
0.01999969780445099,
-0.04548603668808937,
-0.06099022552371025,
0.037556953728199005,
-0.041309110820293427,
-0.00007432133133988827,
-0.004108344670385122,
0.050972677767276764,
-0.03996399790048599,
-0.024389011785387993,
0.05228239297866821,
0.013123694807291031,
-0.013194490224123001,
-0.021840376779437065,
0.02382264845073223,
-0.028229661285877228,
0.007849439047276974,
0.021150121465325356,
0.008389253169298172,
0.07029981911182404,
0.017990877851843834,
-0.007774218451231718,
0.04714972898364067,
-0.03320303559303284,
-0.061025623232126236,
0.03833570331335068,
0.0361410453915596,
-0.006654766388237476,
-0.007207855582237244,
-0.037415362894535065,
-0.003196854144334793,
-0.025114664807915688,
0.011344960890710354,
-0.010982134379446507,
0.014150228351354599,
0.04187547042965889,
0.0692024901509285,
-0.02146870084106922,
0.02042447030544281,
-0.004086221102625132,
0.02955707535147667,
0.003966754302382469,
-0.04014098644256592,
-0.04152149707078934,
-0.025220857933163643,
-0.0011371509172022343,
0.005906990263611078,
0.005663631018251181,
-0.029521677643060684,
0.010221084579825401,
0.014663495123386383,
-0.0290084108710289,
-0.012468838132917881,
-0.013327231630682945,
0.041025929152965546,
-0.01467234455049038,
0.00979631207883358,
0.034087978303432465,
-0.02603500336408615,
-0.028955314308404922,
-0.06651226431131363,
0.008358280174434185,
0.0017842650413513184,
-0.05960971862077713,
0.03642422705888748,
-0.024105830118060112,
0.023645659908652306,
-0.025769520550966263,
-0.015707727521657944,
-0.007924659177660942,
-0.04845944419503212,
-0.01847759634256363,
-0.037273772060871124,
-0.006411407142877579,
0.004557453095912933,
0.027875684201717377,
0.043362174183130264,
0.024459807202219963,
-0.026530571281909943,
0.05794602632522583,
0.04845944419503212,
0.02458369918167591,
0.005743275862187147,
0.03975161164999008,
-0.009097207337617874,
0.033804796636104584,
-0.01574312523007393,
0.04265422001481056,
-0.04187547042965889,
-0.07079538702964783,
0.002550846431404352,
-0.02677835524082184,
-0.01588471606373787,
0.01747761107981205,
0.07907845079898834,
-0.02499077282845974,
0.05734426528215408,
0.032565876841545105,
-0.011362659744918346,
0.0018417863175272942,
-0.008557392284274101,
-0.025327051058411598,
-0.026123497635126114,
0.06591050326824188,
-0.023203188553452492,
-0.03653042018413544,
-0.03716757893562317,
-0.02851284295320511,
0.004831785336136818,
-0.04626478627324104,
0.012017517350614071,
0.004254360217601061,
-0.026884548366069794,
0.009406937286257744,
-0.02596420794725418,
0.03445965424180031,
0.04952137544751167,
-0.0354330912232399,
0.00224664737470448,
0.028088070452213287,
0.06530874222517014,
-0.004318518564105034,
-0.006752110086381435,
-0.0043716151267290115,
0.019645720720291138,
0.005668055731803179,
0.008805176243185997,
0.019008561968803406,
0.032707467675209045,
-0.05854778736829758,
-0.04265422001481056,
0.001806388609111309,
-0.009026411920785904,
0.06831754744052887,
0.02748630940914154,
-0.043716151267290115,
0.015212158672511578,
0.09529059380292892,
-0.04686654731631279,
-0.011964420787990093,
0.05780443549156189,
-0.04608779773116112,
-0.028778325766324997,
0.0017555044032633305,
0.06856533139944077,
0.012592730112373829,
0.006101677659898996,
0.06707862764596939,
0.013805100694298744,
-0.03545079007744789,
-0.04254802688956261,
0.0037897655274719,
-0.013539617881178856,
-0.03060130588710308,
-0.043362174183130264,
0.039362236857414246,
-0.06513175368309021,
0.03371630236506462,
-0.030300425365567207,
-0.04838864877820015,
0.01322103850543499,
0.0006260967347770929,
-0.03688439726829529,
-0.08580400794744492,
0.024194324389100075,
0.07355640828609467,
-0.008787477388978004,
-0.008482172153890133,
-0.07645902037620544,
-0.004334005061537027,
-0.012530784122645855,
-0.030123436823487282,
-0.0197342149913311,
0.0027388965245336294,
0.037061385810375214,
-0.03592865914106369,
-0.009194551035761833,
0.030778294429183006,
-0.05093728005886078,
-0.019504129886627197,
0.02332708053290844,
-0.03801712393760681,
-0.03985780477523804,
0.07532629370689392,
0.01069010328501463,
0.07185731828212738,
0.018866971135139465,
-0.0231854896992445,
0.0071060871705412865,
-0.029468581080436707,
0.011813980527222157,
0.0037986149545758963,
-0.009088357910513878,
0.06304329633712769,
0.056600913405418396,
-0.028282757848501205,
0.01945103332400322,
0.07355640828609467,
0.002235585590824485,
-0.01159274484962225,
0.02700844034552574,
0.029132302850484848,
0.03819411247968674,
-0.008769778534770012,
0.025911111384630203,
-0.04268961772322655,
0.026689860969781876,
0.03854808956384659,
0.02470759116113186,
-0.026265088468790054,
0.034849029034376144,
0.01726522482931614,
0.03667201101779938,
0.0044025881215929985,
0.01992890238761902,
0.018866971135139465,
-0.010167988017201424,
-0.019132453948259354,
0.009194551035761833,
-0.03932683914899826,
0.021999666467308998,
0.0036304760724306107,
0.024105830118060112,
-0.11504250764846802,
0.05560977756977081,
0.022176655009388924,
-0.09359150379896164,
0.04845944419503212,
-0.06831754744052887,
0.011990969069302082,
0.000680852506775409,
0.042335640639066696,
0.028778325766324997,
0.03812331706285477,
-0.007468913681805134,
-0.02380494959652424,
0.0032167653553187847,
-0.04166308417916298,
0.056600913405418396,
0.010716651566326618,
0.05745045840740204,
-0.03861888498067856,
0.07737936079502106,
-0.04332677647471428,
0.019698817282915115,
0.07245907932519913,
-0.009168002754449844,
-0.025769520550966263,
0.037627749145030975,
-0.019628021866083145,
0.01847759634256363,
0.02810576930642128,
0.0197342149913311,
0.004641522653400898,
-0.01835370436310768,
0.051539041101932526,
0.001366129727102816,
0.014486506581306458,
-0.051539041101932526,
-0.0015508615178987384,
0.013964390382170677,
-0.010221084579825401,
-0.012380343861877918,
0.004734441637992859,
-0.047397512942552567,
0.0570610836148262,
0.012530784122645855,
-0.03159244358539581,
0.029326990246772766,
0.03847729414701462,
0.0006780870608054101,
0.02242443896830082,
-0.032017216086387634,
0.022884609177708626,
-0.014999773353338242,
-0.013070598244667053,
0.047185126692056656,
-0.00920340046286583,
-0.07168032974004745,
-0.028778325766324997,
-0.01909705623984337,
0.030619004741311073,
-0.00913260504603386,
-0.004765414632856846,
0.0006260967347770929,
-0.04077814519405365,
-0.08028197288513184,
0.0034689740277826786,
0.022318245843052864,
-0.0523177906870842,
-0.02187577448785305,
0.029026109725236893,
-0.050300125032663345,
-0.0022787265479564667,
-0.013583865016698837,
-0.00526098208501935,
0.08134390413761139,
0.0523177906870842,
-0.0027455335948616266,
-0.004057460464537144,
-0.02527395449578762,
0.010167988017201424
] |
21,521 | tempora | _parse_timedelta_nanos | null | def _parse_timedelta_nanos(str):
parts = re.finditer(r'(?P<value>[\d.:]+)\s?(?P<unit>[^\W\d_]+)?', str)
chk_parts = _check_unmatched(parts, str)
deltas = map(_parse_timedelta_part, chk_parts)
return sum(deltas, _Saved_NS())
| (str) | [
-0.002501476090401411,
0.05495883896946907,
-0.024603262543678284,
0.014675326645374298,
-0.004143137484788895,
0.00700846454128623,
-0.02207363210618496,
0.07082967460155487,
-0.023529035970568657,
0.0009226223337464035,
0.012951365672051907,
0.03905334696173668,
0.0031815310940146446,
-0.01841779425740242,
0.042345333844423294,
0.0374939851462841,
0.00344359059818089,
0.03302381560206413,
-0.04889465495944023,
-0.01007520966231823,
-0.020375659689307213,
0.013566447421908379,
-0.01855640485882759,
0.027184873819351196,
-0.023823581635951996,
-0.049691662192344666,
0.018400467932224274,
-0.032867878675460815,
-0.05436974763870239,
-0.01404291857033968,
0.03697419911623001,
0.04432052746415138,
-0.053849957883358,
0.004353218246251345,
-0.022333525121212006,
-0.017369557172060013,
-0.00785311870276928,
-0.010109862312674522,
-0.03693954646587372,
0.03586531803011894,
0.015203776769340038,
-0.06130024418234825,
-0.026145298033952713,
-0.00687418645247817,
-0.022420156747102737,
-0.019942503422498703,
0.029350653290748596,
0.035137616097927094,
-0.04948374629020691,
0.019682610407471657,
0.03829099237918854,
0.005570386536419392,
-0.022108284756541252,
0.003937388304620981,
-0.025400269776582718,
0.05939435586333275,
0.027202198281884193,
0.056864723563194275,
0.0018160067265853286,
0.042241375893354416,
-0.02096475288271904,
0.057627078145742416,
-0.030234292149543762,
0.05814686790108681,
-0.04432052746415138,
-0.023529035970568657,
0.025989362969994545,
-0.020704858005046844,
-0.01470997929573059,
-0.020358333364129066,
-0.01836581528186798,
-0.025850752368569374,
-0.03274659812450409,
-0.007064775098115206,
0.020670205354690552,
0.0008960915729403496,
0.012249652296304703,
0.013713720254600048,
-0.02207363210618496,
0.07630477100610733,
-0.08628468215465546,
0.02760070189833641,
0.03449654579162598,
0.006285094190388918,
0.013332542963325977,
0.04577593132853508,
0.01836581528186798,
0.04338490962982178,
-0.03184563294053078,
0.01855640485882759,
-0.03596927598118782,
-0.03562275320291519,
0.017326241359114647,
-0.015021851286292076,
-0.07685920596122742,
0.07228507846593857,
-0.030806057155132294,
-0.0204449649900198,
-0.03569205850362778,
-0.03707815706729889,
0.032971836626529694,
-0.00433372613042593,
-0.005657017696648836,
-0.020029135048389435,
0.0020174242090433836,
0.006371725350618362,
-0.030113007873296738,
-0.037043504416942596,
0.046954113990068436,
0.007354989647865295,
0.023546362295746803,
-0.0104563869535923,
-0.01749950461089611,
0.005760975182056427,
-0.010335102677345276,
-0.01419019140303135,
0.01846977323293686,
-0.025019092485308647,
0.00813900213688612,
-0.016433939337730408,
-0.032677292823791504,
0.05163219943642616,
-0.04102854058146477,
0.01885095052421093,
-0.013453826308250427,
-0.0048470161855220795,
0.021657802164554596,
0.031516432762145996,
0.009260876104235649,
0.05942900851368904,
0.0045697963796556,
0.037909816950559616,
0.03978104889392853,
0.03721676766872406,
-0.0008132504881359637,
0.03134316951036453,
0.011262057349085808,
0.023840907961130142,
-0.016459928825497627,
-0.033491626381874084,
-0.015463670715689659,
-0.01579286903142929,
-0.01374837290495634,
-0.006934828124940395,
-0.01211970578879118,
0.035518795251846313,
-0.03662767633795738,
0.03456585109233856,
-0.05447370186448097,
-0.009278202429413795,
-0.06317147612571716,
-0.0011197084095329046,
0.008277611806988716,
0.015108482912182808,
0.03745933249592781,
-0.04276116564869881,
0.02957589365541935,
-0.003190194256603718,
-0.03184563294053078,
0.006575308740139008,
-0.0037944468203932047,
-0.00992793682962656,
0.027566051110625267,
-0.04511753097176552,
0.023286469280719757,
0.023823581635951996,
0.02096475288271904,
0.01841779425740242,
-0.09169047325849533,
0.05977553129196167,
0.03153375908732414,
0.08143333345651627,
0.04976096376776695,
0.020548922941088676,
0.02952391467988491,
-0.05395391583442688,
0.024880481883883476,
0.016347309574484825,
-0.04899860918521881,
-0.04515218362212181,
0.0077318353578448296,
0.028934823349118233,
-0.038984041661024094,
0.002711556851863861,
-0.018140574917197227,
0.00039471342461183667,
-0.013445163145661354,
0.019942503422498703,
-0.05225594341754913,
-0.037390030920505524,
0.014181528240442276,
0.04404330626130104,
0.012396926060318947,
0.035518795251846313,
-0.00007546390406787395,
0.06362196058034897,
0.01485725212842226,
0.021657802164554596,
0.04837486520409584,
-0.023529035970568657,
-0.04449378699064255,
-0.028432361781597137,
-0.01695372723042965,
-0.035553447902202606,
0.020704858005046844,
-0.0860767662525177,
-0.03331836313009262,
0.014995861798524857,
-0.055998411029577255,
-0.04043944925069809,
-0.024707220494747162,
0.016806453466415405,
-0.026266582310199738,
0.03371686488389969,
-0.0317416749894619,
0.03231343999505043,
-0.023529035970568657,
0.021987000480294228,
0.0010601493995636702,
-0.012596177868545055,
0.03919195756316185,
0.030164986848831177,
0.06722581386566162,
-0.012570188380777836,
0.009676706045866013,
0.0060035428032279015,
0.011981096118688583,
0.025954710319638252,
0.03543216362595558,
-0.0028306746389716864,
-0.00020344796939752996,
-0.061854682862758636,
0.008494189940392971,
0.017075011506676674,
0.0894727110862732,
-0.013575110584497452,
0.026024015620350838,
-0.0553053617477417,
0.05038471147418022,
-0.07387909293174744,
-0.07304743677377701,
-0.02437802217900753,
-0.07159203290939331,
0.006575308740139008,
0.03518959507346153,
-0.019024213775992393,
0.01769009232521057,
-0.025261659175157547,
0.0132285850122571,
0.04899860918521881,
0.03274659812450409,
0.04490961879491806,
0.04366212710738182,
0.008463868871331215,
0.008576489984989166,
0.020548922941088676,
0.023095879703760147,
0.028432361781597137,
0.04071666672825813,
-0.0006177888135425746,
0.052151985466480255,
-0.1139373630285263,
-0.029645198956131935,
-0.008949004113674164,
-0.023598341271281242,
0.014181528240442276,
0.03025161847472191,
-0.03520692139863968,
-0.007545578293502331,
-0.01771608181297779,
0.01389564573764801,
-0.09633390605449677,
-0.06999801844358444,
-0.02914273738861084,
-0.03129119053483009,
0.011937780305743217,
0.05648354813456535,
-0.022333525121212006,
0.009035634808242321,
0.009659379720687866,
-0.04813230037689209,
0.0048470161855220795,
0.03214017674326897,
-0.04289977252483368,
0.00949478056281805,
0.08302734792232513,
0.021311277523636818,
-0.015065167099237442,
-0.03721676766872406,
0.016893085092306137,
0.003268162254244089,
-0.05391926318407059,
0.011582592502236366,
-0.05038471147418022,
0.0033699539490044117,
0.0471273772418499,
-0.08247291296720505,
-0.038498908281326294,
-0.007935418747365475,
-0.015281745232641697,
-0.041132498532533646,
0.042969077825546265,
-0.020947426557540894,
0.027375461533665657,
-0.016945064067840576,
0.017369557172060013,
0.015671584755182266,
0.008923014625906944,
0.024793852120637894,
-0.046191759407520294,
0.001700137392617762,
0.009477454237639904,
0.002300058491528034,
-0.01701436936855316,
0.026197277009487152,
0.07484935969114304,
-0.017456188797950745,
0.014744631946086884,
-0.009694032371044159,
0.037147462368011475,
0.013185270130634308,
0.008923014625906944,
-0.027323482558131218,
-0.01671116054058075,
0.03163771703839302,
-0.01457136869430542,
-0.0051545570604503155,
0.019388064742088318,
0.0022101786453276873,
-0.010924194939434528,
0.029887765645980835,
-0.0731167420744896,
-0.01793265901505947,
0.006475682836025953,
0.050523318350315094,
-0.04244929179549217,
-0.012518209405243397,
-0.03707815706729889,
0.018140574917197227,
-0.011521950364112854,
0.0678149089217186,
-0.012760777026414871,
-0.011097457259893417,
-0.009286865592002869,
0.03773655369877815,
-0.024741873145103455,
0.05828547477722168,
-0.004483164753764868,
0.0745028406381607,
0.046676892787218094,
-0.008390231989324093,
0.04601849615573883,
-0.0025317969266325235,
0.023494383320212364,
0.002189603867009282,
0.05863200128078461,
-0.005882258992642164,
-0.0069434912875294685,
0.017126990482211113,
-0.044978924095630646,
-0.05752312019467354,
0.03867217153310776,
0.08351248502731323,
-0.011331361718475819,
0.052671775221824646,
-0.051043108105659485,
0.054127179086208344,
-0.021138014271855354,
0.004760385025292635,
-0.00046428912901319563,
-0.03525890037417412,
0.014969872310757637,
0.0697207972407341,
-0.025261659175157547,
0.060849759727716446,
0.02326914295554161,
0.03721676766872406,
-0.008009054698050022,
-0.03884543478488922,
-0.04986492171883583,
-0.0008830968872644007,
-0.045949190855026245,
-0.021987000480294228,
0.04889465495944023,
0.03260798752307892,
0.02321716398000717,
0.05419648438692093,
0.003120889188721776,
-0.021224645897746086,
0.022576091811060905,
-0.004288244992494583,
-0.014337465167045593,
0.01595746912062168,
0.054127179086208344,
-0.005015946924686432,
-0.0012085053604096174,
-0.028726909309625626,
-0.01541169174015522,
-0.027773965150117874,
0.003079739399254322,
0.05977553129196167,
-0.029056107625365257,
-0.023251816630363464,
0.050904497504234314,
0.0012225828832015395,
0.006068516056984663,
0.011504624038934708,
0.00018909967911895365,
-0.0485827811062336,
0.013211258687078953,
-0.015325061045587063,
-0.035796016454696655,
0.04452843964099884,
-0.03408071771264076,
-0.03227878734469414,
0.01389564573764801,
-0.047820426523685455,
-0.020115766674280167,
0.0009551090770401061,
-0.0374939851462841,
-0.028259100392460823,
-0.08288873732089996,
0.006856860127300024,
0.0194746945053339,
0.06535458564758301,
0.018816297873854637,
0.052775733172893524,
-0.01394762471318245,
-0.02321716398000717,
0.05086984485387802,
0.010976173914968967,
0.07082967460155487,
-0.03255600854754448,
-0.051805462688207626,
0.06525062769651413,
-0.009347507730126381,
-0.005197872407734394,
-0.04948374629020691,
0.030927341431379318,
0.0625477284193039,
-0.04362747445702553,
0.06563179939985275,
0.016780463978648186,
0.04851347580552101,
0.0831659585237503,
-0.03867217153310776,
0.021311277523636818,
0.000703878584317863,
0.007649535778909922,
0.0026942305266857147,
-0.020756836980581284,
-0.06258238106966019,
0.007562904618680477,
-0.04158297926187515,
0.08732425421476364,
-0.001651407335884869,
0.03971174731850624,
0.017482178285717964,
-0.02966252528131008,
-0.019301433116197586,
0.004383539315313101,
0.056137021631002426,
0.038984041661024094,
0.022662723436951637,
-0.04536009952425957,
0.031221887096762657,
0.01630399376153946,
-0.0485827811062336,
-0.07685920596122742,
0.034652482718229294,
-0.034063391387462616,
-0.01389564573764801,
0.015429018065333366,
0.027184873819351196,
-0.029541241005063057,
-0.03307579457759857,
0.04601849615573883,
0.007458947133272886,
0.0013178772060200572,
-0.026075992733240128,
0.04927583038806915,
-0.059740882366895676,
0.042345333844423294,
0.009304191917181015,
-0.050003532320261,
0.028778886422514915,
0.008723762817680836,
-0.05010749027132988,
0.04549871012568474,
-0.08891826868057251,
-0.07277021557092667,
-0.003302814671769738,
0.03357825428247452,
-0.036038581281900406,
0.018053943291306496,
-0.03298916295170784,
0.01744752563536167,
-0.013072649016976357,
0.006726913154125214,
-0.01072494313120842,
0.005934237502515316,
0.08621537685394287,
0.04307303577661514,
-0.014848588965833187,
-0.006700923666357994,
0.0013980111107230186,
0.011322698555886745,
-0.005592044442892075,
-0.04487496614456177,
-0.050003532320261,
-0.02169245481491089,
0.01836581528186798,
-0.05163219943642616,
0.015810195356607437,
-0.05062727630138397,
0.027184873819351196,
0.0495183989405632,
-0.056379590183496475,
-0.028345730155706406,
-0.008537505753338337,
0.004201613366603851,
-0.034652482718229294,
-0.005210867151618004,
0.0014673160621896386,
-0.03304114192724228,
0.0039178961887955666,
-0.10042289644479752,
0.0019470363622531295,
0.03246937692165375,
-0.04217207059264183,
0.04525614157319069,
-0.02865760400891304,
-0.006506003905087709,
-0.07193855196237564,
-0.0005005659186281264,
-0.028588298708200455,
0.01822720654308796,
-0.017863355576992035,
-0.0591517873108387,
0.03307579457759857,
-0.0159834586083889,
-0.047439247369766235,
0.02630123496055603,
0.05918643996119499,
0.03337034210562706,
0.056518200784921646,
0.01784602925181389,
0.06989406049251556,
0.012232326902449131,
0.04293442517518997,
0.006159478798508644,
0.03693954646587372,
-0.02302657440304756,
0.03357825428247452,
-0.009243549779057503,
-0.0677802562713623,
0.000647568260319531,
-0.014675326645374298,
0.0030407554004341364,
0.0019914349541068077,
0.009815315715968609,
-0.038256339728832245,
0.03870682418346405,
-0.022801334038376808,
-0.08455205708742142,
0.01744752563536167,
-0.03371686488389969,
-0.05648354813456535,
-0.029645198956131935,
0.09598737955093384,
0.007515257224440575,
-0.0394345261156559,
-0.0071600694209337234,
-0.07103759050369263,
-0.03231343999505043,
-0.02510572411119938,
-0.00852017942816019,
-0.009252212941646576,
0.0016708994517102838,
-0.01098483707755804,
0.011374677531421185,
0.0778987780213356,
0.0374939851462841,
-0.012353610247373581,
-0.010716279968619347,
0.016026772558689117,
0.01942271739244461,
-0.007896434515714645,
0.002280566608533263,
0.03645441308617592,
0.027184873819351196,
0.008216969668865204,
0.037632595747709274,
0.017620787024497986,
-0.013540457934141159,
-0.04071666672825813,
-0.051389630883932114,
0.025400269776582718,
0.04730064049363136,
0.03832564502954483,
0.047196682542562485,
0.0017586135072633624,
0.004730063956230879,
0.031568411737680435,
0.0029909424483776093,
0.016962390393018723,
0.054508354514837265,
-0.017075011506676674,
0.025850752368569374,
0.007874776609241962,
0.08434414118528366,
-0.027912575751543045,
0.011236067861318588,
0.043246299028396606,
-0.010239808820188046,
-0.022194914519786835,
-0.03645441308617592,
0.024170106276869774,
-0.0024278396740555763,
-0.00434672087430954,
-0.016485918313264847,
0.0262146033346653,
0.011617245152592659,
-0.01668517105281353,
0.01308131217956543,
-0.07727503776550293,
-0.007614883128553629,
-0.022385504096746445,
0.007294347509741783,
-0.09799721837043762,
-0.007350658066570759,
0.03456585109233856,
-0.011478634551167488,
-0.054127179086208344,
-0.06958218663930893,
0.03432328253984451,
-0.06247842684388161,
-0.07678990066051483,
-0.05405787378549576,
0.012726124376058578,
0.032434724271297455,
0.006302420515567064,
-0.008619804866611958,
0.023788928985595703,
-0.021467212587594986,
-0.013687730766832829,
-0.021675128489732742,
-0.0031447128858417273,
0.035466816276311874,
0.08247291296720505,
-0.004738727118819952,
0.029402632266283035,
-0.010378418490290642,
-0.04355817288160324,
-0.03919195756316185,
0.00553140277042985,
-0.027150221168994904,
0.02538294345140457,
-0.021865716204047203,
0.025608185678720474,
0.008433547802269459,
-0.05170150473713875,
-0.026266582310199738,
0.08475997298955917,
-0.0015030514914542437,
-0.01007520966231823,
-0.009780663065612316,
0.050038184970617294,
0.0831659585237503,
-0.03811773285269737,
0.024516630917787552,
-0.013505805283784866,
0.04629571735858917,
0.07380978763103485,
0.05436974763870239,
-0.0023585346061736345,
0.04276116564869881,
0.018487099558115005,
0.02313053235411644,
0.04345421493053436,
0.00786611344665289,
-0.00037792863440699875,
0.016641855239868164,
-0.04054340347647667,
-0.02158849686384201,
-0.016641855239868164,
0.040612708777189255,
0.03842960298061371,
0.025088397786021233,
-0.030927341431379318,
0.029402632266283035,
0.01404291857033968,
-0.028068510815501213,
0.0673297718167305,
0.016078751534223557,
0.009867294691503048,
-0.00824729073792696,
0.042865119874477386,
0.04962235689163208,
-0.01010119915008545,
-0.010802911594510078,
-0.03333568945527077,
-0.03884543478488922,
-0.02865760400891304,
0.05132032558321953,
-0.004751721862703562,
0.023927539587020874,
-0.031620390713214874,
-0.026041340082883835,
-0.034305959939956665,
-0.024793852120637894,
0.052879687398672104,
-0.04899860918521881,
-0.031031299382448196,
0.017178967595100403,
0.023355772718787193,
0.038013774901628494,
-0.013575110584497452,
-0.012561525218188763,
-0.03234809264540672,
-0.02760070189833641,
0.01866036280989647,
-0.035553447902202606,
0.05125102400779724,
-0.0885024443268776,
-0.0019188812002539635,
-0.06019136309623718,
0.0058476063422858715,
0.012977355159819126,
0.005267177242785692,
-0.0305288378149271,
0.059844836592674255,
0.0447363555431366,
-0.09661111980676651,
-0.013705057092010975,
-0.004769048187881708,
-0.007354989647865295,
-0.0015550301177427173,
-0.02702893689274788,
-0.0005885507562197745,
-0.03290253132581711,
0.007030122447758913,
-0.0014326636446639895,
0.03444456681609154,
-0.055755846202373505,
-0.033439647406339645,
-0.03337034210562706,
0.05132032558321953,
-0.004920652601867914,
-0.03380349650979042,
0.0005793462041765451,
-0.0682653933763504,
-0.05991414189338684,
-0.02749674580991268,
-0.013999602757394314,
-0.043974000960588455,
0.03569205850362778,
-0.006583971902728081,
-0.016745813190937042,
0.019543999806046486,
-0.013739709742367268,
-0.03919195756316185,
0.06337939202785492,
0.04983026906847954,
-0.03621184453368187,
-0.02389288693666458,
-0.05776568874716759,
0.00020236508862581104
] |
21,522 | tempora | _parse_timedelta_part | null | def _parse_timedelta_part(match):
unit = _resolve_unit(match.group('unit'))
if not unit.endswith('s'):
unit += 's'
raw_value = match.group('value')
if ':' in raw_value:
return _parse_timedelta_composite(raw_value, unit)
value = float(raw_value)
if unit == 'months':
unit = 'years'
value = value / 12
if unit == 'years':
unit = 'days'
value = value * days_per_year
return _Saved_NS.derive(unit, value)
| (match) | [
0.06544962525367737,
0.05223524197936058,
-0.03647681698203087,
0.0071791429072618484,
-0.02018762193620205,
-0.02287808433175087,
0.020809905603528023,
0.03312746807932854,
-0.09370863437652588,
0.007760246284306049,
0.04645166173577309,
0.03440864011645317,
0.01451385673135519,
-0.0013429435202851892,
0.033328793942928314,
0.058567896485328674,
0.009901635348796844,
0.028332220390439034,
-0.03770308196544647,
0.03484789654612541,
0.026373855769634247,
-0.021816540509462357,
-0.03647681698203087,
0.052308451384305954,
-0.023463763296604156,
-0.06797536462545395,
0.016865724697709084,
-0.05728672444820404,
-0.019400615245103836,
-0.05238166078925133,
0.03208422660827637,
0.04451160132884979,
-0.03938690945506096,
0.05003894492983818,
-0.038544997572898865,
0.0024365161079913378,
-0.02309771440923214,
-0.01511783804744482,
-0.017762545496225357,
0.03589113801717758,
0.021487096324563026,
-0.012784273363649845,
-0.009311380796134472,
0.028057683259248734,
-0.025367220863699913,
0.013507220894098282,
0.027087651193141937,
0.007357591763138771,
-0.008538100868463516,
0.026245739310979843,
0.03374975174665451,
-0.004486392252147198,
-0.02699613943696022,
-0.009480678476393223,
-0.05172277241945267,
0.05937320366501808,
0.016545429825782776,
0.049343451857566833,
0.0008716550073586404,
0.01991308480501175,
-0.008007329888641834,
0.04630524292588234,
-0.013900724239647388,
0.10132245719432831,
-0.06003209203481674,
-0.02924734354019165,
0.05322357639670372,
-0.009590492583811283,
-0.04066808149218559,
-0.01261955127120018,
-0.004262187052518129,
-0.036403607577085495,
0.007339289411902428,
-0.00781515333801508,
0.04213228076696396,
0.036678146570920944,
-0.010606279596686363,
-0.033328793942928314,
0.021523701027035713,
0.04681771248579025,
-0.05875091999769211,
0.0315900593996048,
0.004946242086589336,
0.014495554380118847,
0.02699613943696022,
0.02392132580280304,
0.023994535207748413,
0.011658672243356705,
-0.035799626260995865,
0.034756384789943695,
-0.035250551998615265,
-0.037886109203100204,
0.0025646332651376724,
0.010377499274909496,
-0.0025143015664070845,
0.03620228171348572,
-0.0398261696100235,
0.0008024488342925906,
-0.08602159470319748,
-0.016005508601665497,
0.02606271393597126,
-0.03122401051223278,
-0.04154660180211067,
-0.0051384177058935165,
0.019821573048830032,
-0.04352326691150665,
-0.037556663155555725,
-0.05315036699175835,
0.025769874453544617,
0.006387561094015837,
0.03559830039739609,
-0.0013132020831108093,
-0.09458715468645096,
0.052454873919487,
-0.02688632532954216,
-0.005600554868578911,
-0.0021047836635261774,
-0.01727752946317196,
-0.00246168184094131,
-0.032560091465711594,
-0.004140933509916067,
0.020004596561193466,
-0.027014441788196564,
0.046890921890735626,
0.005509042646735907,
-0.038544997572898865,
0.008629613555967808,
0.015840785577893257,
0.030766448006033897,
0.024378886446356773,
-0.03839857876300812,
0.012729366309940815,
0.005879667587578297,
-0.052857525646686554,
-0.005541072227060795,
0.036678146570920944,
0.013132020831108093,
0.0226584542542696,
-0.020480461418628693,
0.03539697080850601,
-0.030418701469898224,
0.02463512122631073,
-0.056810859590768814,
-0.05618857592344284,
-0.0017673320835456252,
-0.021706726402044296,
-0.03078475035727024,
0.06435147672891617,
-0.0708671510219574,
0.06998863816261292,
-0.07200190424919128,
0.019711757078766823,
0.05238166078925133,
0.016417313367128372,
0.058128636330366135,
-0.050844255834817886,
0.038105737417936325,
-0.025422127917408943,
0.001555709750391543,
-0.014339983463287354,
0.030620027333498,
-0.014211866073310375,
0.006415015086531639,
-0.03418900817632675,
0.06863425672054291,
0.038544997572898865,
0.02084651030600071,
-0.015575399622321129,
-0.037886109203100204,
0.017744243144989014,
-0.00979182031005621,
0.03358502686023712,
0.022640151903033257,
0.018997961655259132,
0.013461465016007423,
-0.0530039444565773,
0.03664154186844826,
-0.030693238601088524,
-0.011310924775898457,
-0.018357375636696815,
0.012592097744345665,
0.04026542976498604,
-0.014495554380118847,
0.05666444078087807,
-0.024323979392647743,
0.0025623454712331295,
-0.045133884996175766,
0.026868022978305817,
-0.035250551998615265,
-0.03439033776521683,
0.049526479095220566,
-0.003198356134817004,
-0.015657760202884674,
0.03265160322189331,
-0.02254864014685154,
0.04992913082242012,
0.02331734448671341,
0.028442034497857094,
0.0692199319601059,
-0.012592097744345665,
-0.05765277147293091,
-0.057469747960567474,
-0.0343354307115078,
-0.0032647026237100363,
-0.019766664132475853,
-0.05984906852245331,
-0.014998871833086014,
0.007348440587520599,
-0.09466036409139633,
-0.03248687833547592,
-0.051649563014507294,
-0.01886984333395958,
0.026245739310979843,
0.08360566943883896,
0.0023724574130028486,
-0.037886109203100204,
-0.10659357160329819,
-0.0007469694828614593,
0.022109379991889,
-0.017799150198698044,
0.015017174184322357,
0.024708330631256104,
0.04981931671500206,
-0.01963854767382145,
0.04231530427932739,
-0.03034549206495285,
-0.003500347025692463,
0.012628702446818352,
-0.03631209582090378,
0.008689096197485924,
0.0008218951988965273,
-0.06204536557197571,
0.0365317240357399,
-0.003109131706878543,
0.0807504877448082,
-0.0036330397706478834,
0.026264041662216187,
-0.013132020831108093,
0.06819499284029007,
-0.027911262586712837,
-0.030986078083515167,
-0.0513567253947258,
-0.05443153902888298,
0.02161521464586258,
-0.006387561094015837,
-0.005129266530275345,
0.0026881748344749212,
-0.013562128879129887,
-0.00015499902656301856,
0.04110734164714813,
-0.013452313840389252,
0.04868456348776817,
0.04894080013036728,
0.08177542686462402,
0.01838482916355133,
0.031205706298351288,
0.0010884248185902834,
0.02809428796172142,
0.026794811710715294,
-0.041070736944675446,
0.020260831341147423,
-0.005994058214128017,
0.018796633929014206,
-0.02743539959192276,
-0.03993598371744156,
0.01229010708630085,
0.02243882603943348,
-0.022255800664424896,
-0.0381789468228817,
-0.02123086154460907,
-0.031736478209495544,
-0.06149629130959511,
-0.04857474938035011,
0.010038903914391994,
-0.035689812153577805,
-0.004474953282624483,
0.02787465788424015,
-0.03450015187263489,
0.005916272755712271,
0.01404714398086071,
-0.06570585817098618,
-0.01650882512331009,
0.021487096324563026,
-0.012939844280481339,
-0.0116037642583251,
0.0552002415060997,
0.01678336225450039,
0.03636700287461281,
0.004525285214185715,
0.021047838032245636,
-0.08455739915370941,
-0.07266079634428024,
0.028515243902802467,
-0.009910786524415016,
-0.033548422157764435,
0.057359933853149414,
-0.0881446823477745,
-0.04835512116551399,
0.015813332051038742,
-0.0026286919601261616,
-0.040082402527332306,
0.06771913170814514,
-0.024378886446356773,
0.06599869579076767,
-0.04319382458925247,
0.07247777283191681,
0.06720665842294693,
0.013681094162166119,
0.0171677153557539,
-0.0392770953476429,
0.015721820294857025,
-0.003175478195771575,
-0.03363993391394615,
-0.010276835411787033,
0.0032372488640248775,
0.0601419098675251,
-0.05531005561351776,
0.010789304971694946,
0.01772593893110752,
0.025824781507253647,
-0.011347529478371143,
0.01067033875733614,
-0.032944440841674805,
0.014760940335690975,
0.08506987243890762,
-0.04480443894863129,
-0.012802575714886189,
0.018503794446587563,
0.012729366309940815,
0.01963854767382145,
-0.010633734054863453,
-0.037776291370391846,
0.01135668158531189,
0.001657517277635634,
0.01860445737838745,
-0.060654375702142715,
-0.008748579770326614,
0.01283918134868145,
-0.009974844753742218,
0.03631209582090378,
0.07178227603435516,
0.017021294683218002,
-0.02090141735970974,
-0.01684742048382759,
0.05391906946897507,
-0.012939844280481339,
0.026044411584734917,
0.026264041662216187,
0.05820184573531151,
0.004685431718826294,
-0.03523224964737892,
0.0035072104074060917,
0.01711280643939972,
0.004982846789062023,
0.030437003821134567,
0.011164505034685135,
0.013278440572321415,
-0.03993598371744156,
-0.021926356479525566,
-0.04388931766152382,
-0.0048043979331851006,
0.02035234309732914,
0.04480443894863129,
-0.01705789938569069,
0.06321672350168228,
-0.07430801540613174,
-0.009068872779607773,
-0.05454135313630104,
0.018238408491015434,
0.014834149740636349,
-0.016911480575799942,
-0.016472220420837402,
0.061093635857105255,
-0.015703517943620682,
0.042278699576854706,
0.012079628184437752,
0.015520492568612099,
0.031205706298351288,
-0.04000919312238693,
-0.015923146158456802,
0.03938690945506096,
0.018723424524068832,
-0.036568328738212585,
0.10388480871915817,
0.01650882512331009,
-0.0015602853382006288,
0.04191265255212784,
-0.019949689507484436,
-0.005509042646735907,
0.035634905099868774,
0.014211866073310375,
0.03548848628997803,
0.019876480102539062,
0.029430367052555084,
0.016966387629508972,
0.0075497678481042385,
-0.053040552884340286,
-0.06676740199327469,
-0.028460336849093437,
0.008167476393282413,
0.02600780688226223,
-0.047000735998153687,
-0.030931171029806137,
0.05600555241107941,
0.018339073285460472,
-0.013003903441131115,
0.017094504088163376,
0.049636293202638626,
-0.07518653571605682,
-0.007494860328733921,
-0.004323957953602076,
-0.08214147388935089,
0.019382312893867493,
-0.006986966822296381,
-0.012509736232459545,
-0.020938022062182426,
0.004772368352860212,
-0.028679966926574707,
-0.018302466720342636,
-0.024067744612693787,
-0.002846033778041601,
-0.018018778413534164,
0.005875091999769211,
0.019492128863930702,
0.03252348303794861,
0.016746757552027702,
0.031205706298351288,
-0.003552966518327594,
-0.0030267706606537104,
0.017094504088163376,
0.014468100853264332,
0.0015579975442960858,
-0.05886073410511017,
-0.022512035444378853,
0.09239085763692856,
-0.00984672736376524,
-0.006552283186465502,
0.008021056652069092,
0.02161521464586258,
0.014696881175041199,
-0.05706709250807762,
0.07884702831506729,
0.05040499567985535,
0.03309085965156555,
0.033713147044181824,
-0.0626310408115387,
0.012436526827514172,
-0.0036032982170581818,
-0.07621147483587265,
-0.03512243553996086,
0.0037428545765578747,
-0.0158590879291296,
0.004740339238196611,
-0.03180968761444092,
0.07072073221206665,
-0.012244351208209991,
0.021651819348335266,
-0.029046015813946724,
0.001195379882119596,
-0.042388513684272766,
0.023244133219122887,
0.05457795783877373,
0.028606757521629333,
-0.0024205013178288937,
-0.01146649569272995,
0.024214165285229683,
0.02013271488249302,
-0.054394934326410294,
-0.065376415848732,
-0.003873259760439396,
-0.04528030380606651,
0.02013271488249302,
0.04033863916993141,
0.04828190803527832,
-0.01985817775130272,
-0.013388254679739475,
0.03221234306693077,
-0.0028895020950585604,
-0.03781289979815483,
0.002896365476772189,
0.06808517873287201,
-0.016920631751418114,
0.012463980354368687,
0.04571956396102905,
-0.030473608523607254,
0.057909008115530014,
0.0259528998285532,
0.005646311212331057,
0.010752699337899685,
-0.06072758883237839,
-0.046232033520936966,
-0.0008739428012631834,
0.032340459525585175,
-0.027032744139432907,
0.020315738394856453,
-0.032285552471876144,
0.003690235083922744,
-0.014889057725667953,
-0.021377282217144966,
-0.005120115354657173,
-0.024818146601319313,
0.033768054097890854,
0.05289413034915924,
0.011493949219584465,
-0.015383224003016949,
0.003596434835344553,
-0.004147796891629696,
0.02199956588447094,
-0.0015042340382933617,
-0.025879688560962677,
-0.019290801137685776,
0.008661642670631409,
-0.051283515989780426,
0.0168931782245636,
-0.013278440572321415,
0.033658236265182495,
0.025367220863699913,
-0.03363993391394615,
-0.012299258261919022,
-0.04110734164714813,
0.02079160325229168,
-0.034097496420145035,
0.030052652582526207,
-0.04674450308084488,
0.009302228689193726,
0.0008133159135468304,
-0.1114986315369606,
0.02139558456838131,
0.033383700996637344,
-0.05710369721055031,
0.048428330570459366,
-0.03363993391394615,
0.02578817680478096,
-0.016087869182229042,
0.0010672626085579395,
-0.018997961655259132,
-0.019492128863930702,
-0.06116684526205063,
-0.0980280190706253,
-0.014989720657467842,
-0.014834149740636349,
0.013351649977266788,
0.001555709750391543,
0.010706943459808826,
0.010496465489268303,
0.0953192487359047,
0.02721576951444149,
0.02600780688226223,
-0.0013841241598129272,
0.047879256308078766,
-0.04520709440112114,
0.02672160230576992,
0.016765059903264046,
0.022402219474315643,
-0.025367220863699913,
-0.02661178819835186,
-0.023500367999076843,
-0.026135923340916634,
0.010386650450527668,
-0.03795931860804558,
0.037446849048137665,
-0.009329683147370815,
0.04535351321101189,
0.0697690099477768,
-0.052454873919487,
-0.05238166078925133,
-0.03616567701101303,
-0.03724552318453789,
-0.03633039817214012,
0.08646085858345032,
-0.0232075285166502,
0.0010889967670664191,
0.019400615245103836,
-0.024378886446356773,
-0.020334040746092796,
-0.04169302061200142,
0.0011010078014805913,
0.009636249393224716,
0.003088541328907013,
0.001540838973596692,
-0.0013715411769226193,
0.061972156167030334,
0.031846292316913605,
-0.005033178720623255,
-0.003957908600568771,
0.014010539278388023,
0.031571757048368454,
0.016993841156363487,
-0.019675152376294136,
0.0008133159135468304,
-0.002459394047036767,
0.02232901006937027,
0.010569674894213676,
0.034207310527563095,
-0.014349134638905525,
-0.08053085952997208,
-0.045024070888757706,
0.030583422631025314,
0.024891356006264687,
0.006337229628115892,
0.02364678867161274,
-0.010716094635426998,
0.005920848343521357,
0.05344320461153984,
-0.007504011504352093,
0.0072157480753958225,
0.07390536367893219,
0.004529860801994801,
-0.0010209345491603017,
-0.02853354625403881,
0.07302684336900711,
-0.039533328264951706,
0.01832077093422413,
0.01223520003259182,
0.028112590312957764,
-0.024836448952555656,
0.002115078968927264,
0.0031274340581148863,
-0.027783146128058434,
-0.05014876276254654,
-0.06698703020811081,
0.04066808149218559,
-0.034646570682525635,
0.012528039515018463,
0.03891104459762573,
-0.04894080013036728,
0.011173656210303307,
-0.005692067556083202,
-0.01385496836155653,
-0.1378541886806488,
-0.0010815614368766546,
0.05973925441503525,
-0.02315262146294117,
-0.027581818401813507,
-0.02167012169957161,
0.03182798996567726,
-0.0171677153557539,
-0.05611536651849747,
-0.004218718968331814,
-0.012711063958704472,
0.07482048869132996,
-0.004614509642124176,
-0.02243882603943348,
0.01903456635773182,
-0.028661664575338364,
-0.03847178816795349,
-0.01369024533778429,
-0.04711055010557175,
-0.004339972510933876,
0.08331283181905746,
0.007389621343463659,
0.018183501437306404,
-0.011027236469089985,
-0.020315738394856453,
-0.014257621951401234,
-0.01739649474620819,
0.039643146097660065,
-0.017460554838180542,
-0.03199271485209465,
0.05962944030761719,
-0.05995888262987137,
-0.009192414581775665,
-0.04692752659320831,
0.057359933853149414,
0.036952681839466095,
-0.023939628154039383,
0.0013189215678721666,
0.023774905130267143,
0.036238886415958405,
-0.0034500150941312313,
-0.019510431215167046,
-0.012033872306346893,
0.031205706298351288,
0.07456425577402115,
-0.02606271393597126,
-0.040192220360040665,
0.06720665842294693,
0.025989504531025887,
0.058128636330366135,
0.05509042739868164,
0.035799626260995865,
-0.001545414561405778,
0.007787699811160564,
-0.009755215607583523,
0.0010552516905590892,
0.02463512122631073,
-0.034756384789943695,
0.0028780631255358458,
0.05919018015265465,
-0.04279116913676262,
0.029100922867655754,
-0.006026087328791618,
-0.0975155457854271,
0.02968660183250904,
-0.03850839287042618,
-0.016874875873327255,
-0.03270651027560234,
0.07449104636907578,
0.04590258747339249,
0.022310707718133926,
-0.02496456541121006,
-0.029649997130036354,
0.014330832287669182,
-0.04681771248579025,
0.0480622798204422,
-0.04495086148381233,
-0.007902090437710285,
-0.02886299230158329,
0.001322353258728981,
-0.011631217785179615,
0.008249836973845959,
0.021688424050807953,
-0.03122401051223278,
-0.01121941301971674,
0.05805542692542076,
0.004818124696612358,
0.0032166587188839912,
0.014541310258209705,
0.014330832287669182,
0.001545414561405778,
-0.00946237612515688,
-0.029448671266436577,
0.0174422524869442,
0.028075985610485077,
-0.07200190424919128,
0.024598516523838043,
-0.003063375595957041,
0.010048055090010166,
0.047696229070425034,
0.03126061335206032,
-0.03636700287461281,
0.0785541906952858,
0.04571956396102905,
-0.0747106745839119,
0.016774211078882217,
0.0232075285166502,
-0.01947382465004921,
-0.00010531068255659193,
-0.0015820194967091084,
0.025385523214936256,
-0.0354335755109787,
0.022731665521860123,
0.010706943459808826,
0.016325801610946655,
-0.041290365159511566,
0.006044390145689249,
-0.025879688560962677,
0.019180985167622566,
-0.033713147044181824,
-0.00043325373553670943,
-0.004726612474769354,
-0.06845122575759888,
-0.04264475032687187,
-0.002269505988806486,
0.019730059430003166,
-0.033328793942928314,
0.039862774312496185,
-0.04630524292588234,
-0.025806479156017303,
-0.004545875359326601,
-0.007407923694700003,
-0.013479767367243767,
0.030967775732278824,
0.0508076511323452,
-0.01930910348892212,
-0.03902086243033409,
-0.0017787710530683398,
0.024543609470129013
] |
21,523 | tempora | _prorated_values |
Given a rate (a string in units per unit time), and return that same
rate for various time periods.
>>> for period, value in _prorated_values('20/hour'):
... print('{period}: {value:0.3f}'.format(**locals()))
minute: 0.333
hour: 20.000
day: 480.000
month: 14609.694
year: 175316.333
| def _prorated_values(rate: str) -> Iterable[Tuple[str, Number]]:
"""
Given a rate (a string in units per unit time), and return that same
rate for various time periods.
>>> for period, value in _prorated_values('20/hour'):
... print('{period}: {value:0.3f}'.format(**locals()))
minute: 0.333
hour: 20.000
day: 480.000
month: 14609.694
year: 175316.333
"""
match = re.match(r'(?P<value>[\d.]+)/(?P<period>\w+)$', rate)
res = cast(re.Match, match).groupdict()
value = float(res['value'])
value_per_second = value / get_period_seconds(res['period'])
for period in ('minute', 'hour', 'day', 'month', 'year'):
period_value = value_per_second * get_period_seconds(period)
yield period, period_value
| (rate: str) -> Iterable[Tuple[str, numbers.Number]] | [
0.07377470284700394,
-0.013293509371578693,
-0.034682851284742355,
-0.022406071424484253,
0.032915450632572174,
-0.0045729102566838264,
0.005325955804437399,
-0.0730145275592804,
0.01783553697168827,
0.0900803953409195,
0.048536986112594604,
0.03422674909234047,
0.04367188736796379,
0.011022495105862617,
-0.03690635412931442,
0.02725216932594776,
0.030197836458683014,
0.060167621821165085,
-0.05708892270922661,
0.013616582378745079,
0.029608702287077904,
0.028240393847227097,
-0.024800613522529602,
0.013312513940036297,
-0.020030533894896507,
-0.016666773706674576,
0.0020049537997692823,
0.013303011655807495,
-0.055910658091306686,
-0.03835068270564079,
0.07286249846220016,
0.05138763412833214,
-0.03700137510895729,
-0.018111100420355797,
-0.03215527907013893,
0.002072656759992242,
-0.010604401119053364,
0.008509176783263683,
-0.08149044960737228,
0.03192722797393799,
0.025142692029476166,
-0.03380865231156349,
-0.03301047161221504,
-0.009278850629925728,
-0.0650327205657959,
0.007140866480767727,
0.05423827841877937,
0.0012234019814059138,
-0.021512869745492935,
-0.029418660327792168,
0.02261511981487274,
0.027328185737133026,
-0.0458383783698082,
-0.0053069512359797955,
-0.020752698183059692,
0.05081750452518463,
-0.005539753939956427,
0.04013708606362343,
0.04967724531888962,
-0.0007286962354555726,
0.021455857902765274,
0.004831844009459019,
-0.040061067789793015,
0.0065469820983707905,
-0.021037762984633446,
-0.06039567291736603,
0.024762606248259544,
-0.020752698183059692,
-0.015231948345899582,
-0.027689268812537193,
0.008304880000650883,
-0.05450433865189552,
-0.03690635412931442,
-0.0032901198137551546,
-0.012267276644706726,
0.03968098387122154,
0.0421135351061821,
0.002151049440726638,
0.038996826857328415,
-0.003342381678521633,
-0.02725216932594776,
0.037666525691747665,
0.028012340888381004,
-0.01183968037366867,
-0.0033875168301165104,
0.011288555338978767,
-0.019707461819052696,
-0.00943563599139452,
0.03363761678338051,
0.13690699636936188,
-0.06222008541226387,
-0.02143685333430767,
0.03629821911454201,
0.0003563306527212262,
-0.043215781450271606,
0.037609513849020004,
-0.013445544056594372,
0.0018469806527718902,
-0.06852951645851135,
0.025123687461018562,
-0.0023779133334755898,
0.00185648282058537,
-0.031319089233875275,
0.00158923480194062,
0.010414357297122478,
0.0037343453150242567,
-0.014737836085259914,
-0.04093526676297188,
0.0757131427526474,
0.009730203077197075,
-0.05480840802192688,
0.01857670582830906,
-0.007074351422488689,
0.0013196112122386694,
0.0074164289981126785,
0.007497197017073631,
-0.012333791702985764,
0.03333354741334915,
0.01103199739009142,
-0.03346657752990723,
-0.011136520653963089,
0.060319654643535614,
-0.02734719030559063,
0.09403328597545624,
0.001618928974494338,
0.004028912167996168,
0.0426456555724144,
-0.016647769138216972,
0.0038911309093236923,
0.08939623832702637,
0.0011337253963574767,
0.08605147898197174,
0.03508194163441658,
-0.040821243077516556,
0.013017946854233742,
-0.00447313766926527,
0.004634674172848463,
-0.020923737436532974,
0.03656427934765816,
-0.002291206270456314,
-0.02430650219321251,
-0.02947567217051983,
-0.02468658797442913,
-0.005007633473724127,
0.04895508289337158,
-0.002715239766985178,
0.003777105128392577,
0.11128919571638107,
0.0037747295573353767,
0.050513435155153275,
-0.02324226126074791,
0.0698598176240921,
0.1125054657459259,
0.026244942098855972,
0.05822918191552162,
-0.07160820811986923,
0.016400713473558426,
0.0453062579035759,
0.008998537436127663,
-0.01709436997771263,
0.037134405225515366,
0.002788881305605173,
0.00658499076962471,
-0.0013433665735647082,
0.004316352307796478,
0.043367817997932434,
-0.033181510865688324,
-0.03097701258957386,
0.0037581007927656174,
-0.03618419170379639,
0.07069600373506546,
-0.020695684477686882,
-0.021835943683981895,
-0.0011087822495028377,
0.04260764643549919,
-0.04120132699608803,
-0.014566797763109207,
-0.0014942132402211428,
-0.010376349091529846,
-0.010072280652821064,
0.07415478676557541,
-0.02217802032828331,
-0.056594811379909515,
0.0327824205160141,
-0.029551690444350243,
-0.002513319021090865,
-0.014519287273287773,
-0.011630632914602757,
-0.0554545521736145,
0.016647769138216972,
-0.032649390399456024,
0.005687037482857704,
-0.0026225936599075794,
0.036925360560417175,
0.036127179861068726,
-0.013939655385911465,
-0.0016605008859187365,
-0.011611628346145153,
-0.006565986201167107,
0.026187928393483162,
-0.02202598564326763,
-0.0559866726398468,
-0.012428813613951206,
-0.004254588391631842,
0.00471781799569726,
-0.014785347506403923,
-0.024059446528553963,
0.000059722504374803975,
-0.048384953290224075,
0.0037628519348800182,
-0.013797122985124588,
-0.013787621632218361,
0.010737430304288864,
0.03050190582871437,
-0.01756947673857212,
0.0012222141958773136,
0.0202585868537426,
0.014775845222175121,
-0.002086909953504801,
-0.016277184709906578,
0.028297405689954758,
-0.048118893057107925,
0.03827466443181038,
0.03439778834581375,
0.07065799832344055,
0.025921868160367012,
-0.00699833407998085,
-0.030368875712156296,
-0.07776560634374619,
0.030292857438325882,
0.015269956551492214,
-0.010708924382925034,
-0.004936367738991976,
-0.01479484885931015,
0.01710387133061886,
-0.06621099263429642,
0.018206121399998665,
-0.001895679160952568,
0.038578733801841736,
-0.004584787879139185,
0.01710387133061886,
0.005687037482857704,
-0.039757002145051956,
-0.009012790396809578,
-0.023926416411995888,
-0.059255413711071014,
-0.045458290725946426,
0.01857670582830906,
-0.003722467692568898,
-0.03447380289435387,
-0.012096238322556019,
0.033352550119161606,
0.023983430117368698,
0.034359779208898544,
-0.004772455431520939,
-0.04078323394060135,
-0.012827903963625431,
0.057773079723119736,
0.03855973109602928,
-0.0005935875233262777,
0.01522244606167078,
-0.008162347599864006,
0.011583122424781322,
-0.026796065270900726,
0.0002742261567618698,
-0.026358967646956444,
-0.0004157191142439842,
-0.020030533894896507,
-0.0005618146969936788,
0.026568014174699783,
-0.04895508289337158,
0.0064139519818127155,
-0.04332980886101723,
-0.026320958510041237,
-0.018880775198340416,
-0.014671321026980877,
0.07852577418088913,
0.017997074872255325,
0.00937387254089117,
-0.011687645688652992,
-0.04199950769543648,
-0.02261511981487274,
0.03673531487584114,
-0.018947290256619453,
-0.0010387039510533214,
0.055910658091306686,
0.00394101720303297,
0.016229674220085144,
0.04089725762605667,
0.005373466294258833,
-0.018529195338487625,
-0.06647705286741257,
-0.0442420169711113,
0.015431493520736694,
0.03850271552801132,
0.04682660102844238,
0.02947567217051983,
-0.10794443637132645,
0.02858247049152851,
-0.030463896691799164,
0.02468658797442913,
0.04804287478327751,
0.055530570447444916,
0.0890161544084549,
0.00008923113637138158,
0.031851209700107574,
0.016020627692341805,
-0.012846908532083035,
-0.011070005595684052,
-0.008338137529790401,
0.015279458835721016,
0.04066920652985573,
-0.02436351589858532,
0.02613091468811035,
0.0692896842956543,
-0.04462210088968277,
-0.055644597858190536,
0.014386257156729698,
0.0031499629840254784,
-0.005154917016625404,
-0.023052219301462173,
0.03390367701649666,
0.04120132699608803,
0.027214160189032555,
0.001426510396413505,
0.0320032462477684,
-0.032972466200590134,
0.022159015759825706,
-0.0325353667140007,
0.012485826388001442,
-0.03287744149565697,
0.003168967319652438,
-0.017845040187239647,
0.029722727835178375,
0.05032339319586754,
0.023964425548911095,
-0.00844741240143776,
-0.02858247049152851,
0.021626895293593407,
-0.034948911517858505,
0.035328999161720276,
-0.03774254396557808,
-0.022957196459174156,
-0.01244781818240881,
-0.054200269281864166,
-0.038787782192230225,
0.006898561492562294,
0.017445949837565422,
0.05701290816068649,
0.001989512937143445,
0.012495328672230244,
-0.0263969749212265,
0.009388125501573086,
0.07609322667121887,
0.013312513940036297,
-0.007497197017073631,
-0.038844794034957886,
-0.06738925725221634,
-0.027632255107164383,
0.0012174631701782346,
0.07959001511335373,
0.028886539861559868,
0.06514675170183182,
-0.0234513096511364,
0.020011531189084053,
-0.011203035712242126,
0.02964671142399311,
0.008361892774701118,
-0.00048342192894779146,
0.03768553212285042,
-0.005116908345371485,
-0.011298057623207569,
0.055416546761989594,
-0.005074148532003164,
0.013293509371578693,
0.011012992821633816,
0.014785347506403923,
-0.022273041307926178,
-0.03456882759928703,
0.005302200559526682,
0.024819618090987206,
-0.04207552596926689,
0.0639684796333313,
0.05336407944560051,
0.042037516832351685,
-0.036716312170028687,
0.04872703179717064,
-0.028924547135829926,
-0.0607757568359375,
0.05982554331421852,
-0.02867749147117138,
-0.0005656749126501381,
-0.05849524214863777,
0.023223256692290306,
-0.014224720187485218,
-0.01039535365998745,
-0.018586207181215286,
-0.011516607366502285,
-0.03386566787958145,
0.008632704615592957,
0.024268493056297302,
-0.07822170853614807,
-0.04184747487306595,
-0.02548476867377758,
-0.009739705361425877,
-0.03511995077133179,
0.019004302099347115,
0.013122471049427986,
-0.009635181166231632,
-0.013578574173152447,
-0.010404855944216251,
-0.03179419785737991,
0.05047542601823807,
-0.013683097437024117,
0.028354419395327568,
-0.04249361902475357,
-0.03050190582871437,
-0.006846299860626459,
-0.036336224526166916,
0.03337155655026436,
0.061231862753629684,
-0.10079881548881531,
-0.024819618090987206,
0.06351237744092941,
0.05754502862691879,
-0.006124136503785849,
0.037248432636260986,
-0.000023328522729570977,
0.025788838043808937,
0.0799701064825058,
-0.022957196459174156,
0.0011135333916172385,
-0.09448938816785812,
-0.030996017158031464,
0.04180946573615074,
-0.020182568579912186,
0.039528947323560715,
0.08544334024190903,
0.012457320466637611,
-0.023850400000810623,
-0.024800613522529602,
0.0677313357591629,
0.014813853427767754,
-0.010718426667153835,
0.04735872149467468,
-0.025522777810692787,
0.015146428719162941,
0.02633996307849884,
-0.032383330166339874,
-0.053668148815631866,
-0.03443579748272896,
-0.03764752298593521,
0.05427628755569458,
-0.009635181166231632,
0.07179825752973557,
0.06959375739097595,
0.03608917072415352,
-0.031756188720464706,
0.008694468066096306,
0.04226556792855263,
0.08323884755373001,
0.03508194163441658,
0.033827658742666245,
-0.03930089622735977,
-0.028335414826869965,
-0.022577110677957535,
0.036393240094184875,
-0.013312513940036297,
-0.006081376690417528,
-0.0039101350121200085,
0.014471775852143764,
0.03960496559739113,
0.01540298666805029,
0.01951741799712181,
-0.06883358210325241,
-0.011374074965715408,
0.013550067320466042,
0.04553430899977684,
-0.02943766489624977,
-0.03316250815987587,
-0.02126581408083439,
-0.05667082965373993,
-0.005539753939956427,
0.00902229268103838,
-0.0005923997377976775,
-0.012875414453446865,
-0.013407534919679165,
-0.014443269930779934,
0.01567854918539524,
-0.05370615795254707,
-0.07799365371465683,
-0.03829367086291313,
0.03198423981666565,
-0.02318524941802025,
-0.08703970164060593,
-0.03599414974451065,
0.029722727835178375,
-0.0010339528089389205,
0.024458536878228188,
-0.018947290256619453,
0.004342482890933752,
-0.03762852028012276,
-0.009777713567018509,
-0.019498413428664207,
0.06583090126514435,
0.049715254455804825,
0.0030145575292408466,
-0.01167814340442419,
-0.01644822396337986,
-0.03166116774082184,
-0.022729145362973213,
0.018652722239494324,
-0.0522618293762207,
0.026739053428173065,
-0.04420400783419609,
-0.025408752262592316,
0.04101128503680229,
-0.06206805258989334,
-0.03690635412931442,
-0.042721670120954514,
0.02932363748550415,
-0.008765734732151031,
0.022102003917098045,
0.05796312168240547,
-0.0009139881585724652,
-0.01683781109750271,
-0.06894760578870773,
-0.02442052774131298,
0.023926416411995888,
-0.0405171737074852,
0.05762104317545891,
0.006399698555469513,
0.040707215666770935,
-0.0069175660610198975,
0.0030525659676641226,
-0.034530818462371826,
0.058723293244838715,
-0.06313229352235794,
-0.08559537678956985,
0.07616924494504929,
0.013721106573939323,
0.04473612830042839,
0.015640540048480034,
-0.014832857996225357,
0.06275220960378647,
-0.048270925879478455,
0.010091284289956093,
-0.032554369419813156,
0.039642974734306335,
-0.04937317594885826,
0.07027790695428848,
-0.01908032037317753,
0.014177209697663784,
0.028031345456838608,
-0.01833915151655674,
-0.015621536411345005,
0.04253162816166878,
0.025921868160367012,
-0.018595710396766663,
-0.056594811379909515,
0.028829526156187057,
-0.057392992079257965,
-0.009411880746483803,
0.013445544056594372,
-0.04659854993224144,
-0.017227400094270706,
-0.033447571098804474,
0.05480840802192688,
-0.044964179396629333,
0.008295377716422081,
0.0007631414919160306,
0.025522777810692787,
0.050247374922037125,
-0.030900996178388596,
0.03567107394337654,
-0.03781856223940849,
-0.025712821632623672,
-0.052375856786966324,
-0.038255661725997925,
0.010775439441204071,
-0.0026368468534201384,
0.041087303310632706,
-0.01426272839307785,
-0.05191975459456444,
-0.031756188720464706,
0.054998449981212616,
-0.02938065119087696,
0.029361646622419357,
0.0453062579035759,
0.0394529327750206,
-0.0032948709558695555,
-0.0015037154080346227,
-0.005164419300854206,
-0.0060671232640743256,
-0.006404449697583914,
-0.013265002518892288,
-0.050931528210639954,
0.0170658640563488,
-0.04298773035407066,
0.021550878882408142,
-0.0463704988360405,
0.059901561588048935,
-0.012618856504559517,
0.03546202927827835,
0.0025489521212875843,
-0.03472086042165756,
0.06119385361671448,
-0.010290829464793205,
0.01993551291525364,
-0.005772556643933058,
0.008898764848709106,
0.02212100848555565,
0.03481588140130043,
0.03112904727458954,
0.06708518415689468,
0.01916583813726902,
-0.06415852159261703,
-0.0064139519818127155,
-0.016904326155781746,
-0.04872703179717064,
-0.05849524214863777,
-0.0005843822727911174,
-0.04367188736796379,
0.02810736373066902,
-0.023223256692290306,
-0.015260454267263412,
0.02046763338148594,
-0.057659052312374115,
-0.02713814377784729,
-0.11638234555721283,
0.03764752298593521,
0.025142692029476166,
-0.006057621445506811,
-0.053174037486314774,
-0.08757182210683823,
0.06780735403299332,
-0.024268493056297302,
-0.03247835114598274,
-0.025446761399507523,
0.0057583036832511425,
0.04580036923289299,
-0.0030786970164626837,
0.0029052826575934887,
-0.026796065270900726,
0.0020655300468206406,
0.007981806993484497,
-0.06256216019392014,
-0.021303823217749596,
0.006922317203134298,
0.04990529641509056,
-0.029418660327792168,
-0.004368613939732313,
0.02462957613170147,
0.002527572214603424,
-0.0015714182518422604,
0.007150368764996529,
0.008219360373914242,
-0.034530818462371826,
-0.014699827879667282,
0.04154340550303459,
-0.039262887090444565,
-0.005107406061142683,
-0.0023387169931083918,
0.04610443860292435,
-0.04804287478327751,
-0.004107304848730564,
-0.06104181706905365,
0.058191172778606415,
-0.025180701166391373,
-0.003701087785884738,
0.05841922387480736,
0.027043122798204422,
0.014224720187485218,
0.02297620102763176,
0.02670104429125786,
0.04473612830042839,
-0.02383139543235302,
0.017816534265875816,
-0.025465764105319977,
0.011849182657897472,
0.004708315711468458,
-0.015992119908332825,
0.036488261073827744,
-0.0258648544549942,
-0.017198894172906876,
-0.045078203082084656,
-0.011868186295032501,
0.03280142694711685,
0.013692599721252918,
-0.03160415589809418,
0.0038127382285892963,
-0.035157959908246994,
-0.030577922239899635,
-0.007625476457178593,
-0.06465263664722443,
0.0062856730073690414,
-0.018795255571603775,
0.02436351589858532,
0.076777383685112,
0.03502492979168892,
-0.06636302173137665,
-0.009036545641720295,
0.04142937809228897,
0.0036535770632326603,
0.023223256692290306,
-0.0031000766903162003,
0.022634124383330345,
-0.004551530349999666,
0.02542775683104992,
-0.025598794221878052,
-0.006518475711345673,
0.020695684477686882,
-0.07772759348154068,
-0.03124307282269001,
-0.011820675805211067,
0.004964874126017094,
-0.03555705025792122,
0.015982618555426598,
0.0341317281126976,
0.019631443545222282,
0.020505642518401146,
0.05458035692572594,
0.0029646712355315685,
0.005644277669489384,
-0.07388872653245926,
0.043367817997932434,
-0.029665715992450714,
0.06115584447979927,
0.013255501165986061,
-0.014889870770275593,
-0.035214971750974655,
0.02938065119087696,
-0.03903483599424362,
-0.06309428066015244,
0.011155525222420692,
-0.0032996218651533127,
-0.007221634965389967,
0.014281732961535454,
0.03128108009696007,
0.01335052214562893,
-0.04013708606362343,
0.018177615478634834,
-0.04146738722920418,
0.001781653380021453,
-0.03234532102942467,
-0.003128583310171962,
0.008580442517995834,
0.02250109426677227,
-0.04439404979348183,
-0.008091081865131855,
-0.026054898276925087,
-0.051045555621385574,
-0.03930089622735977,
0.007197879254817963,
0.015925604850053787,
-0.031015021726489067,
0.012305285781621933,
-0.034359779208898544,
-0.06279021501541138,
-0.013065457344055176,
0.008247867226600647,
0.029608702287077904,
0.05028538405895233,
0.04074522480368614,
-0.004960122983902693,
-0.028886539861559868,
-0.03551904112100601,
0.009388125501573086
] |
21,524 | tempora | _resolve_unit | null | def _resolve_unit(raw_match):
if raw_match is None:
return 'second'
text = raw_match.lower()
return _unit_lookup.get(text, text)
| (raw_match) | [
0.0474175326526165,
-0.012909571640193462,
0.029232017695903778,
0.055364418774843216,
-0.010180920362472534,
-0.06951054185628891,
0.061860423535108566,
0.008268390782177448,
-0.003072824329137802,
-0.06205827370285988,
0.012068717740476131,
0.03262840583920479,
-0.026049965992569923,
-0.04313082993030548,
0.015151847153902054,
0.02811088040471077,
0.023444969207048416,
0.028325214982032776,
-0.03775596246123314,
0.01450059749186039,
-0.025654269382357597,
0.07214850932359695,
0.00025413656840100884,
-0.008820716291666031,
-0.018630672246217728,
-0.0072667864151299,
0.005585079547017813,
-0.0658833310008049,
-0.037854887545108795,
-0.08942722529172897,
0.017245735973119736,
-0.02197759784758091,
-0.015052923001348972,
0.051308538764715195,
0.005989018827676773,
-0.0010417925659567118,
0.006953527219593525,
0.02115323208272457,
-0.03828355669975281,
-0.010609590448439121,
-0.014517084695398808,
0.0007682060822844505,
0.037920836359262466,
0.016817066818475723,
-0.046791013330221176,
0.024252846837043762,
-0.025522371754050255,
-0.018729595467448235,
-0.0183503869920969,
0.09364797919988632,
0.049758732318878174,
-0.06136580556631088,
-0.07030193507671356,
-0.005976653657853603,
-0.015646466985344887,
0.0401301346719265,
-0.024516643956303596,
0.024566106498241425,
0.006784532219171524,
0.04586772248148918,
0.01739412173628807,
-0.005201749503612518,
-0.059057578444480896,
0.04448278993368149,
-0.03266138210892677,
-0.02822629176080227,
0.07452268898487091,
0.02357686683535576,
-0.005848876666277647,
0.011879113502800465,
-0.0042619723826646805,
0.006116795819252729,
-0.034986093640327454,
-0.0066979737021028996,
0.09582430124282837,
0.017080863937735558,
-0.02090592123568058,
-0.03478824347257614,
0.048208922147750854,
0.044647663831710815,
0.0013169246958568692,
0.01257158163934946,
0.010939336381852627,
-0.045834749937057495,
-0.046197470277547836,
-0.017888741567730904,
0.04322975128889084,
-0.03173809126019478,
-0.029528789222240448,
-0.05981599539518356,
-0.05364973843097687,
-0.008837203495204449,
0.017558995634317398,
0.06416864693164825,
0.02083997242152691,
0.03426064923405647,
0.001114955055527389,
-0.019669372588396072,
-0.04817594960331917,
-0.014393430203199387,
0.023329557850956917,
0.04365842416882515,
-0.0278141088783741,
0.0031057989690452814,
0.04441684111952782,
0.024912340566515923,
-0.0006445511826314032,
-0.0019011941039934754,
-0.03597533330321312,
0.06482814252376556,
-0.03848140314221382,
-0.11152023077011108,
-0.09509886056184769,
0.059354349970817566,
-0.027385437861084938,
-0.015737146139144897,
0.008540431968867779,
0.027072180062532425,
-0.01798766665160656,
0.048274870961904526,
0.0280449315905571,
-0.005519130267202854,
-0.05454005300998688,
-0.034161727875471115,
0.0162977147847414,
-0.007934522815048695,
-0.015085897408425808,
-0.01286835316568613,
0.04395519569516182,
0.06528978794813156,
0.06707041710615158,
0.010527153499424458,
-0.017888741567730904,
0.008301365189254284,
0.005754074547439814,
0.10499124974012375,
-0.005049241706728935,
-0.0009598711621947587,
-0.008837203495204449,
0.05051714926958084,
0.0010819804156199098,
-0.00455874390900135,
-0.014706688933074474,
-0.05427625775337219,
-0.009463721886277199,
0.04204266518354416,
-0.036535900086164474,
0.04045988246798515,
-0.03736026585102081,
-0.012827134691178799,
-0.03492014482617378,
-0.02692379243671894,
0.03132590651512146,
0.054408155381679535,
0.037558116018772125,
-0.04075665399432182,
0.02083997242152691,
0.003460276173427701,
-0.007547070737928152,
-0.0015199248446151614,
0.05486980080604553,
-0.03561260923743248,
-0.017179787158966064,
-0.021994084119796753,
0.017608458176255226,
-0.009628594852983952,
-0.020114529877901077,
0.021004846319556236,
0.011664778925478458,
-0.017476558685302734,
-0.038382481783628464,
0.0015869045164436102,
-0.055892013013362885,
0.04346057400107384,
0.011359763331711292,
-0.0042619723826646805,
-0.035645585507154465,
-0.04913221299648285,
-0.013717450201511383,
-0.018119564279913902,
-0.005869485903531313,
0.03736026585102081,
-0.028687937185168266,
-0.018300924450159073,
-0.01414612028747797,
0.046659115701913834,
0.019751809537410736,
0.0012056352570652962,
0.009158706292510033,
0.00750585226342082,
0.02328009530901909,
0.023197658360004425,
-0.010708514600992203,
0.005527373868972063,
0.035052042454481125,
-0.010593103244900703,
0.017839280888438225,
0.03607425466179848,
-0.0030439714901149273,
-0.027237052097916603,
-0.0784136950969696,
-0.012843621894717216,
-0.019751809537410736,
0.08718495070934296,
-0.01032930612564087,
-0.013692718930542469,
0.04181184247136116,
0.06403674930334091,
-0.052924297749996185,
-0.031012648716568947,
-0.056617457419633865,
0.011054747737944126,
-0.0016023614443838596,
0.045900698751211166,
0.010411742143332958,
-0.020691586658358574,
-0.043097853660583496,
0.02204354666173458,
0.0031573218293488026,
0.029858537018299103,
0.0038848246913403273,
-0.012101693078875542,
0.1342727392911911,
0.002578204730525613,
0.013189855962991714,
-0.02514316327869892,
-0.02173028700053692,
0.03887709975242615,
-0.010387011803686619,
0.019141778349876404,
0.009356553666293621,
-0.05576011538505554,
0.06255289167165756,
-0.012340758927166462,
-0.006265181582421064,
-0.05252860113978386,
-0.006162135861814022,
0.023725252598524094,
0.051902081817388535,
-0.00031171340378932655,
-0.04876949265599251,
-0.04253728687763214,
-0.034161727875471115,
0.027665723115205765,
-0.029380403459072113,
-0.030419105663895607,
-0.008614624850451946,
-0.037788938730955124,
-0.009373040869832039,
0.025868603959679604,
-0.027204077690839767,
0.06380593031644821,
0.03203486278653145,
0.013371216133236885,
0.014236800372600555,
-0.10004505515098572,
-0.038679253309965134,
0.008363192901015282,
0.04408709332346916,
-0.002780174370855093,
-0.053748663514852524,
0.03604128211736679,
0.026049965992569923,
-0.02590158022940159,
-0.09338417649269104,
0.011343276128172874,
-0.02966068871319294,
0.02829224057495594,
0.030485054478049278,
-0.014550060033798218,
-0.004010540433228016,
-0.04276810586452484,
-0.03345277160406113,
0.02234031818807125,
-0.0010263356380164623,
0.034029826521873474,
0.0314578078687191,
0.041613996028900146,
0.0496927835047245,
-0.0056345416232943535,
-0.041482098400592804,
0.04375734552741051,
-0.031902965158224106,
-0.015275501646101475,
-0.011054747737944126,
0.002609118353575468,
0.03304059058427811,
-0.045537978410720825,
0.003524164669215679,
0.007542948704212904,
-0.03891007602214813,
-0.057870492339134216,
0.00988414790481329,
0.011912088841199875,
-0.052792396396398544,
-0.004810175392776728,
-0.03923982009291649,
-0.007526461500674486,
0.04656019061803818,
-0.005758196581155062,
-0.08547026664018631,
0.02685784362256527,
-0.020872946828603745,
-0.0027348340954631567,
-0.04939601197838783,
0.00842502061277628,
-0.0011994525557383895,
-0.017493046820163727,
0.004752469714730978,
-0.0037158296909183264,
-0.03795380890369415,
0.008944370783865452,
-0.0006239420035853982,
-0.003571565728634596,
-0.0006960740429349244,
0.07610546797513962,
-0.02389012649655342,
0.0649600401520729,
0.05299024656414986,
0.0428670309484005,
0.018267950043082237,
0.004744226112961769,
-0.01623176597058773,
0.039041973650455475,
0.034095779061317444,
0.020872946828603745,
-0.059354349970817566,
0.009068026207387447,
0.03788786008954048,
-0.005226480308920145,
-0.03848140314221382,
-0.058628909289836884,
0.021697312593460083,
-0.03266138210892677,
0.0038044489920139313,
-0.018251463770866394,
0.01119489036500454,
0.007312126457691193,
0.02174677513539791,
0.009867660701274872,
0.04346057400107384,
-0.012439683079719543,
-0.024104461073875427,
0.025934554636478424,
0.05213290452957153,
0.034524448215961456,
0.019405575469136238,
-0.0008114852826111019,
0.06753206253051758,
-0.08237064629793167,
-0.0608711838722229,
-0.07808394730091095,
0.016545025631785393,
-0.009389529004693031,
0.030897237360477448,
0.07069762796163559,
0.00029857506160624325,
-0.023214146494865417,
-0.016017431393265724,
0.0014817978953942657,
0.007200837135314941,
-0.026544585824012756,
-0.0392068475484848,
-0.04454873874783516,
-0.01976829580962658,
-0.047087784856557846,
-0.0068793343380093575,
0.02400553785264492,
-0.02662702091038227,
-0.006310521624982357,
-0.019191240891814232,
-0.00004340802115621045,
0.02149946428835392,
0.01988370716571808,
-0.03203486278653145,
0.006937040016055107,
0.05549632012844086,
-0.0008939218823798001,
-0.039932288229465485,
-0.0611020065844059,
0.027500849217176437,
0.03914089873433113,
-0.09239494055509567,
0.07788609713315964,
-0.03325492516160011,
-0.006809263024479151,
-0.03732729330658913,
0.007303882855921984,
-0.0098017118871212,
0.023395506665110588,
0.028803348541259766,
-0.0367007739841938,
0.06904889643192291,
-0.014780881814658642,
0.01947152428328991,
0.041844818741083145,
-0.027978980913758278,
-0.05299024656414986,
-0.030468566343188286,
0.0185812097042799,
0.0017775391461327672,
-0.05163828656077385,
-0.04580177366733551,
0.030534517019987106,
0.006174501497298479,
0.022538166493177414,
0.05526549741625786,
0.04550500214099884,
-0.07082952558994293,
-0.010016046464443207,
-0.10050670057535172,
-0.04843974485993385,
-0.006087942980229855,
-0.07834774255752563,
-0.10255113244056702,
-0.01623176597058773,
0.005898338742554188,
0.0182349756360054,
-0.006141526624560356,
0.017674406990408897,
-0.031655654311180115,
-0.03597533330321312,
0.014525328762829304,
0.020163992419838905,
0.04395519569516182,
0.004311433993279934,
0.04055880755186081,
-0.02459908090531826,
0.02227436937391758,
0.029380403459072113,
-0.045834749937057495,
-0.007126643788069487,
-0.05401245877146721,
-0.0503852479159832,
0.058694858103990555,
-0.007761405780911446,
0.001917681423947215,
0.0061085522174835205,
-0.013832861557602882,
-0.011722484603524208,
0.001323107397183776,
0.05981599539518356,
-0.015201308764517307,
0.07880938798189163,
-0.043394625186920166,
-0.07702875882387161,
-0.020213454961776733,
-0.03429362550377846,
-0.051902081817388535,
-0.016314202919602394,
-0.029050657525658607,
-0.0426362082362175,
-0.04688993841409683,
-0.009496696293354034,
0.08843798190355301,
-0.017526021227240562,
-0.04778025299310684,
0.04609854519367218,
0.03358466923236847,
-0.03455742076039314,
-0.009595620445907116,
0.07551192492246628,
0.06670769304037094,
0.04075665399432182,
-0.015761878341436386,
0.04290000721812248,
0.03139185532927513,
-0.013602038845419884,
-0.030287206172943115,
0.006454785820096731,
-0.026758920401334763,
0.013024982996284962,
0.029792586341500282,
-0.006174501497298479,
-0.00795513205230236,
-0.0007872694986872375,
-0.04049285873770714,
0.030237745493650436,
0.013874080032110214,
-0.014739664271473885,
-0.0013024982763454318,
0.009496696293354034,
0.02947932854294777,
0.02357686683535576,
0.01750953309237957,
-0.007217324338853359,
0.0013911175774410367,
0.005964288022369146,
-0.047318607568740845,
-0.044812534004449844,
-0.03459039703011513,
0.07221446186304092,
0.028918759897351265,
0.0020629758946597576,
-0.006125039421021938,
-0.0029739004094153643,
0.027204077690839767,
-0.008886665105819702,
-0.015448618680238724,
0.015300232917070389,
0.06106903403997421,
-0.020592661574482918,
0.03782191127538681,
-0.014855075627565384,
0.0009521426982246339,
-0.04375734552741051,
-0.016421370208263397,
-0.019817758351564407,
0.015448618680238724,
0.05259454995393753,
0.0048720031045377254,
0.03956956788897514,
0.003322195028886199,
-0.06898294389247894,
0.027616260573267937,
0.06594927608966827,
0.024582594633102417,
-0.04497740790247917,
-0.021004846319556236,
0.014327481389045715,
-0.0364699512720108,
-0.013214587233960629,
0.00455874390900135,
-0.02954527735710144,
0.05391353741288185,
-0.022736014798283577,
-0.0446806363761425,
0.0250772126019001,
-0.00842502061277628,
-0.06594927608966827,
-0.004501038230955601,
-0.03246353194117546,
-0.004369139671325684,
0.017311686649918556,
0.0645313709974289,
-0.013882323168218136,
-0.030336668714880943,
-0.03521691635251045,
-0.06552060693502426,
0.016042161732912064,
-0.008647599257528782,
-0.02512667514383793,
-0.0028069661930203438,
-0.029347429051995277,
0.04609854519367218,
0.018894469365477562,
-0.04900031536817551,
0.007584167178720236,
-0.06317941099405289,
0.05097879469394684,
-0.041185323148965836,
0.0059230695478618145,
0.027863571420311928,
-0.003612783970311284,
-0.01625649817287922,
0.024087974801659584,
-0.03736026585102081,
0.016099868342280388,
0.00982644222676754,
0.03152375668287277,
0.020147504284977913,
0.0036375150084495544,
0.045603927224874496,
0.07129117101430893,
-0.014080171473324299,
-0.08487672358751297,
-0.003872459288686514,
0.009331823326647282,
0.05127556622028351,
0.02377471514046192,
0.009570889174938202,
-0.013181611895561218,
0.033205460757017136,
0.012703480198979378,
-0.0734015479683876,
-0.013231074437499046,
0.0556282177567482,
-0.009315336123108864,
0.031243471428751945,
-0.02501126378774643,
-0.005193505901843309,
0.03983336314558983,
0.03121049702167511,
-0.005209993105381727,
-0.028440626338124275,
-0.03508501499891281,
0.015506324358284473,
-0.0032644893508404493,
-0.027550311759114265,
-0.048868417739868164,
-0.022060034796595573,
-0.02382417768239975,
0.02514316327869892,
0.0364699512720108,
-0.007464634254574776,
0.0004662820138037205,
-0.023197658360004425,
0.04187779128551483,
0.03157321736216545,
0.008730036206543446,
0.05371568724513054,
-0.023659303784370422,
0.047912150621414185,
0.030765339732170105,
0.06515789031982422,
0.04042690992355347,
-0.001233457587659359,
-0.050055503845214844,
-0.022241394966840744,
0.00929060485213995,
0.06034358963370323,
-0.012316027656197548,
0.03597533330321312,
0.013783399015665054,
0.00124273169785738,
-0.03574451059103012,
0.012035743333399296,
-0.04890139028429985,
-0.032199736684560776,
0.02966068871319294,
-0.05391353741288185,
0.04965980723500252,
-0.043394625186920166,
-0.00988414790481329,
0.020938895642757416,
0.02484639175236225,
0.025390472263097763,
-0.02806141786277294,
0.022422755137085915,
-0.048802465200424194,
-0.014657227322459221,
0.05150638893246651,
0.001825970713980496,
-0.04745050519704819,
-0.037195391952991486,
-0.013181611895561218,
0.02555534616112709,
-0.0034932508133351803,
-0.0344255231320858,
0.017130324617028236,
-0.013973003253340721,
0.0373932421207428,
-0.004575231112539768,
0.05707910284399986,
-0.028506575152277946,
-0.032018374651670456,
-0.028902271762490273,
-0.026313763111829758,
-0.0020124835427850485,
0.05111069232225418,
-0.02501126378774643,
0.0392068475484848,
0.028720911592245102,
0.042372412979602814,
0.04224051162600517,
-0.012283053249120712,
0.02966068871319294,
-0.006566075142472982,
-0.0024318797513842583,
0.038382481783628464,
-0.06205827370285988,
0.020988358184695244,
0.0013158941874280572,
0.029462840408086777,
0.007934522815048695,
-0.04675804078578949,
0.04174589365720749,
-0.050121452659368515,
-0.04204266518354416,
-0.04807702451944351,
0.02268655225634575,
-0.019850732758641243,
0.04801107570528984,
-0.0280449315905571,
-0.032793279737234116,
0.017163299024105072,
0.0444498136639595,
0.0264456607401371,
0.06641092151403427,
0.03134239464998245,
0.05450708046555519,
-0.03152375668287277,
-0.017707381397485733,
-0.016610974445939064,
0.034095779061317444,
0.09417556971311569,
-0.043988168239593506,
-0.013841104693710804,
0.0556282177567482,
-0.07287395000457764,
0.05097879469394684,
-0.05582606419920921,
-0.058332137763500214,
0.028753885999321938,
-0.04903328791260719,
0.012423195876181126,
-0.001998057123273611,
0.02924850583076477,
0.002287615556269884,
0.03061695210635662,
0.033864956349134445,
-0.04745050519704819,
0.010032533667981625,
-0.08039217442274094,
0.011153671890497208,
0.015390913002192974,
-0.014179094694554806,
0.014607765711843967,
0.005016266833990812,
-0.032133787870407104,
0.016883015632629395,
-0.03515096753835678,
-0.010790950618684292,
-0.003283037571236491,
0.033864956349134445,
-0.00795513205230236,
-0.05635365843772888,
0.05747479572892189,
0.021532440558075905,
0.021878672763705254,
-0.0014828282874077559,
-0.03950361907482147,
0.039041973650455475,
0.029166068881750107,
0.01929016411304474,
0.04919816181063652,
0.019966144114732742,
-0.03233163431286812,
-0.018779058009386063,
0.06304751336574554,
-0.04306488111615181,
0.05424328148365021,
-0.008672330528497696,
0.0062981559894979,
0.00018857371469493955,
0.03325492516160011,
-0.024879366159439087,
-0.014005978591740131,
0.017558995634317398,
0.023032786324620247,
-0.030270719900727272,
0.035414762794971466,
0.025324523448944092,
-0.011565854772925377,
-0.034986093640327454,
0.054045435041189194,
-0.0032871593721210957,
0.022307343780994415,
-0.01080743782222271,
-0.014492354355752468,
0.015737146139144897,
-0.011846139095723629,
0.01924070157110691,
0.04504335671663284,
-0.001473554177209735,
-0.046659115701913834,
0.01229954045265913,
0.027599774301052094,
-0.005638663191348314,
0.03590938076376915,
0.004995658062398434,
-0.0006059089791961014,
0.0021093464456498623,
0.038019757717847824,
-0.07801799476146698,
-0.021944623440504074,
-0.012827134691178799,
0.022191932424902916
] |
21,525 | tempora | calculate_prorated_values |
>>> monkeypatch = getfixture('monkeypatch')
>>> import builtins
>>> monkeypatch.setattr(builtins, 'input', lambda prompt: '3/hour')
>>> calculate_prorated_values()
per minute: 0.05
per hour: 3.0
per day: 72.0
per month: 2191.454166666667
per year: 26297.45
| def calculate_prorated_values():
"""
>>> monkeypatch = getfixture('monkeypatch')
>>> import builtins
>>> monkeypatch.setattr(builtins, 'input', lambda prompt: '3/hour')
>>> calculate_prorated_values()
per minute: 0.05
per hour: 3.0
per day: 72.0
per month: 2191.454166666667
per year: 26297.45
"""
rate = input("Enter the rate (3/hour, 50/month)> ")
for period, value in _prorated_values(rate):
print(f"per {period}: {value}")
| () | [
0.0680374875664711,
-0.016597025096416473,
-0.02097354084253311,
-0.011648843064904213,
0.030570013448596,
0.0034979330375790596,
-0.012089306488633156,
-0.11560750752687454,
-0.023953694850206375,
0.09551489353179932,
0.04056009277701378,
0.008467200212180614,
0.045733191072940826,
-0.005613561719655991,
-0.038910698145627975,
0.04430871456861496,
0.06316427886486053,
0.02897684834897518,
-0.0233351718634367,
-0.013748071156442165,
0.06826240569353104,
-0.0049247522838413715,
-0.027421170845627785,
0.030101435258984566,
-0.03761742264032364,
-0.01006504986435175,
-0.008584344759583473,
0.009708931669592857,
-0.017112459987401962,
-0.039285559207201004,
0.07077398151159286,
0.060652706772089005,
-0.013326351530849934,
-0.007956450805068016,
0.008879548870027065,
-0.037973541766405106,
0.013176406733691692,
0.03510584682226181,
-0.08434399962425232,
0.056229330599308014,
0.019455349072813988,
-0.0007731533260084689,
0.004146913066506386,
0.011086549609899521,
-0.06578832119703293,
0.01395424548536539,
0.05885336548089981,
0.039960309863090515,
0.035949286073446274,
-0.05120617896318436,
0.024759648367762566,
0.028470784425735474,
-0.012698457576334476,
-0.014778942801058292,
0.0009236839250661433,
0.03377508372068405,
0.027964720502495766,
-0.002902839332818985,
0.04310915246605873,
-0.04858214408159256,
-0.00024175683211069554,
-0.008710860274732113,
-0.005800992716103792,
-0.015575524419546127,
-0.004821665119379759,
-0.06391400843858719,
0.01841510646045208,
0.003141813911497593,
-0.007843991741538048,
-0.024984566494822502,
0.01168632972985506,
-0.02307276986539364,
-0.018227674067020416,
-0.02588423527777195,
-0.011751930229365826,
0.018902426585555077,
0.058515992015600204,
-0.04029768705368042,
0.010393055155873299,
0.0011035006027668715,
-0.017318634316325188,
0.010327453725039959,
0.00019899911421816796,
0.010186880826950073,
-0.009999449364840984,
-0.026652703061699867,
-0.005369901191443205,
-0.020992282778024673,
0.055292174220085144,
0.1341256946325302,
-0.04232194274663925,
0.022341787815093994,
0.030063949525356293,
0.013363838195800781,
-0.04539581388235092,
0.0168031994253397,
-0.03817971423268318,
0.027252482250332832,
-0.041422273963689804,
0.051581040024757385,
-0.016362736001610756,
0.050643883645534515,
-0.0005754720768891275,
0.019399119541049004,
0.0017524808645248413,
0.00036607636138796806,
-0.006292999256402254,
-0.02841455489397049,
0.05068137124180794,
0.01181753072887659,
-0.049856673926115036,
0.031957004219293594,
-0.026746418327093124,
-0.024722162634134293,
0.019980154931545258,
0.04029768705368042,
-0.06871224194765091,
0.05004410445690155,
0.04082249477505684,
-0.011864389292895794,
-0.03666152432560921,
0.029389197006821632,
0.03161962702870369,
0.050756342709064484,
0.008186053484678268,
0.007590959779918194,
0.005800992716103792,
0.006972437258809805,
-0.0032214720267802477,
0.08112018555402756,
-0.01801212877035141,
0.04899448901414871,
0.03639912232756615,
-0.031825803220272064,
0.04112238436937332,
0.01829327642917633,
0.04393384978175163,
-0.0230915118008852,
0.03864829242229462,
0.016334621235728264,
0.006953693926334381,
0.00380250858142972,
-0.0440463088452816,
0.0028020949102938175,
0.02802095003426075,
0.018180817365646362,
0.039960309863090515,
0.1318015456199646,
-0.031957004219293594,
0.022173099219799042,
0.01494763046503067,
0.048619627952575684,
0.07977067679166794,
0.010074421763420105,
0.08351930230855942,
-0.020748622715473175,
0.014329107478260994,
0.028751932084560394,
-0.025996694341301918,
-0.03578059747815132,
-0.0064991735853254795,
0.0005775220924988389,
0.043821390718221664,
0.019811468198895454,
0.01046802755445242,
0.06166483461856842,
-0.014319736510515213,
-0.061852265149354935,
0.02989526093006134,
-0.008045480586588383,
0.044646088033914566,
-0.03966042026877403,
-0.003800165606662631,
-0.010561742819845676,
0.0576912946999073,
-0.037842340767383575,
-0.01975523866713047,
-0.050381481647491455,
0.0001521413360023871,
-0.023859979584813118,
0.0378798246383667,
-0.03909812867641449,
-0.05049394071102142,
0.007623760029673576,
-0.04164719209074974,
-0.004388230852782726,
-0.026240354403853416,
-0.029201766476035118,
-0.05379272624850273,
0.03437486290931702,
-0.021948182955384254,
0.023541346192359924,
0.009291896596550941,
-0.0006630375282838941,
0.012707828544080257,
-0.041834622621536255,
-0.02204189822077751,
-0.007975193671882153,
-0.018208932131528854,
-0.01174255833029747,
-0.034356120973825455,
0.004891952034085989,
-0.016072217375040054,
-0.008837376721203327,
0.005932194646447897,
-0.0220231544226408,
-0.03628666326403618,
-0.013063947670161724,
-0.04295920953154564,
-0.007497244048863649,
-0.0007555816555395722,
-0.001579107018187642,
0.013129549100995064,
-0.012511026114225388,
-0.04640794172883034,
0.044233739376068115,
0.09131643176078796,
-0.012960860505700111,
-0.020205073058605194,
0.012764058075845242,
0.006995866075158119,
-0.0389481820166111,
0.043296586722135544,
0.015472437255084515,
0.07298567146062851,
-0.00868274550884962,
-0.009006064385175705,
0.005196527577936649,
-0.07238589227199554,
-0.014085447415709496,
0.010299338959157467,
0.02189195342361927,
-0.0376361645758152,
-0.0220231544226408,
-0.010983462445437908,
-0.059565603733062744,
-0.009099780581891537,
-0.028058435767889023,
0.0032238150015473366,
0.06548842787742615,
0.040260199457407,
0.02054244838654995,
0.02882690355181694,
-0.008003308437764645,
-0.07283572852611542,
-0.013082691468298435,
-0.03454355150461197,
0.028377069160342216,
-0.0008703831699676812,
-0.03096361830830574,
-0.00653665978461504,
0.017993386834859848,
-0.029839031398296356,
0.0365678071975708,
0.007909592241048813,
0.009905734099447727,
-0.02123594470322132,
0.0847938284277916,
0.04269680380821228,
0.001063085743226111,
-0.005126240663230419,
-0.00020441705419216305,
0.01681257039308548,
-0.020917311310768127,
-0.005215270444750786,
-0.01061797235161066,
-0.029407940804958344,
-0.0211984571069479,
0.015959758311510086,
-0.007136439438909292,
-0.0760970264673233,
0.026633959263563156,
-0.015125690028071404,
-0.04374641925096512,
0.006555402651429176,
0.030063949525356293,
0.06927453726530075,
0.04906946420669556,
0.0000621231592958793,
-0.027571115642786026,
0.0026662074960768223,
-0.04123484343290329,
0.03013892099261284,
-0.019586550071835518,
-0.011180265806615353,
0.042359430342912674,
0.010842889547348022,
0.044383686035871506,
0.08209482580423355,
0.00496692443266511,
-0.02001764252781868,
-0.05019405111670494,
0.0037322218995541334,
0.02228555828332901,
0.04577067494392395,
-0.006316428072750568,
0.005927508696913719,
-0.14162294566631317,
0.012239251285791397,
-0.0004164484853390604,
-0.02243550308048725,
0.015163176693022251,
0.016231533139944077,
0.04644542932510376,
0.0009687845013104379,
0.023653805255889893,
0.042621832340955734,
-0.03013892099261284,
0.009268468245863914,
-0.030757443979382515,
0.019005514681339264,
0.05547960847616196,
-0.016859427094459534,
0.006719405297189951,
0.0336063988506794,
-0.07054907083511353,
-0.0410848967730999,
0.01115215104073286,
0.0047982363030314445,
-0.028058435767889023,
-0.02762734517455101,
0.034506067633628845,
0.030082691460847855,
0.030926132574677467,
-0.01654079556465149,
0.015706727281212807,
0.0017958242679014802,
0.06961191445589066,
-0.033568911254405975,
-0.009469956159591675,
-0.07103639096021652,
0.004587376490235329,
-0.006208655424416065,
0.035986773669719696,
0.03780485317111015,
0.013157663866877556,
-0.015125690028071404,
-0.05536714941263199,
0.023560089990496635,
-0.023822493851184845,
0.055329661816358566,
-0.03345645219087601,
-0.019399119541049004,
0.011845645494759083,
-0.05368026718497276,
0.0060399672947824,
0.046482913196086884,
0.07924587279558182,
0.027983464300632477,
-0.02174200862646103,
0.01161135733127594,
-0.006086824927479029,
-0.00039448391180485487,
0.049969132989645004,
0.01866813749074936,
-0.015163176693022251,
0.0025490629486739635,
-0.061327457427978516,
-0.0262965839356184,
-0.00967144500464201,
0.06241455674171448,
0.009493385441601276,
0.045695703476667404,
0.016372106969356537,
0.008471885696053505,
-0.01333572342991829,
0.028358325362205505,
0.02121720090508461,
0.023934952914714813,
0.01281091570854187,
-0.017028115689754486,
-0.008003308437764645,
0.038760751485824585,
0.002631064038723707,
0.008724917657673359,
0.058403532952070236,
0.03589305654168129,
-0.024478502571582794,
-0.04160970449447632,
0.04333407059311867,
0.03120727837085724,
-0.026577729731798172,
0.0019352261442691088,
0.03606174513697624,
0.02509702555835247,
-0.015809813514351845,
0.009240353479981422,
-0.024459758773446083,
-0.019848953932523727,
0.032350607216358185,
-0.008467200212180614,
-0.01602535881102085,
-0.014516538940370083,
0.0024342613760381937,
-0.03178831562399864,
0.022116869688034058,
-0.010140023194253445,
-0.02573429048061371,
-0.06099008023738861,
0.04179713502526283,
0.051843442022800446,
-0.046108052134513855,
0.007834619842469692,
-0.04955678433179855,
-0.022772878408432007,
-0.05911577120423317,
0.0006565945805050433,
-0.011358325369656086,
0.005894708447158337,
-0.007628445979207754,
-0.016625139862298965,
-0.027046307921409607,
0.02136714570224285,
-0.023560089990496635,
0.038385890424251556,
-0.07932084053754807,
-0.03452480956912041,
-0.06601323187351227,
-0.02389746531844139,
0.03414994850754738,
0.0552172027528286,
-0.07909592241048813,
-0.030588755384087563,
0.07909592241048813,
0.07924587279558182,
0.005341786425560713,
0.01433847937732935,
0.01682194136083126,
0.0201300997287035,
0.0829944908618927,
0.015294377692043781,
-0.014741456136107445,
-0.10511136054992676,
-0.01333572342991829,
0.033175304532051086,
-0.017262404784560204,
0.040485117584466934,
0.0829944908618927,
0.01736549101769924,
-0.024066153913736343,
-0.027140023186802864,
0.05071885511279106,
0.06642558425664902,
-0.006325799971818924,
-0.0014561053831130266,
-0.021292174234986305,
0.02573429048061371,
-0.004943495150655508,
-0.06545094400644302,
-0.045733191072940826,
0.0006337514496408403,
0.0001306160556850955,
0.03666152432560921,
0.002469404833391309,
0.04112238436937332,
0.015041345730423927,
0.005102811846882105,
-0.016240905970335007,
0.01346692442893982,
0.03939801827073097,
0.05109371989965439,
0.06001543998718262,
0.0363241471350193,
-0.021966924890875816,
-0.047457557171583176,
-0.02616538293659687,
-0.004186742473393679,
-0.016597025096416473,
-0.004067255184054375,
0.024066153913736343,
0.03988533839583397,
0.03405623137950897,
-0.03242558240890503,
0.01067420095205307,
-0.0547298826277256,
-0.04044763371348381,
0.010355568490922451,
0.03544322028756142,
-0.03527453541755676,
-0.02402866818010807,
-0.022454246878623962,
-0.027008822187781334,
-0.0010683572618290782,
0.019455349072813988,
-0.010786660015583038,
-0.02882690355181694,
-0.03741125017404556,
-0.01181753072887659,
0.018058987334370613,
-0.04198456555604935,
-0.04472106322646141,
-0.001965683652088046,
0.05484234169125557,
-0.037298791110515594,
-0.10023815184831619,
-0.054654911160469055,
0.07887101173400879,
0.023560089990496635,
0.06095259636640549,
-0.030063949525356293,
-0.003943081945180893,
-0.00011736408487195149,
0.003289415966719389,
-0.02684013359248638,
0.026915106922388077,
0.02042999118566513,
0.011480155400931835,
-0.0029450112488120794,
-0.008012679405510426,
-0.002025427296757698,
0.0052902428433299065,
-0.01693440042436123,
0.0059790522791445255,
0.003781422507017851,
-0.026727676391601562,
-0.05986549332737923,
0.008584344759583473,
-0.03165711462497711,
-0.042246971279382706,
-0.012398567982017994,
0.05338037759065628,
0.0009717131033539772,
-0.01333572342991829,
-0.016915656626224518,
0.008921721018850803,
0.01829327642917633,
-0.024628447368741035,
-0.017440464347600937,
-0.015453694388270378,
-0.010514885187149048,
0.05240573734045029,
0.010908490046858788,
0.029464170336723328,
0.023260200396180153,
-0.0033901601564139128,
0.005651047918945551,
0.0023382031358778477,
-0.0864432230591774,
-0.0718235969543457,
0.05562955141067505,
-0.00753473024815321,
0.05420507490634918,
0.015463066287338734,
-0.04033517464995384,
0.07122381776571274,
-0.048094820231199265,
0.015978502109646797,
-0.053717754781246185,
0.03686769679188728,
-0.03456229716539383,
0.028358325362205505,
-0.053717754781246185,
0.03429989144206047,
0.01586604304611683,
-0.0038657665718346834,
0.028227124363183975,
0.06503859162330627,
0.025190740823745728,
0.006930265109986067,
-0.02187320962548256,
-0.004306229762732983,
-0.03572436794638634,
0.007075524423271418,
0.018227674067020416,
-0.04288423806428909,
-0.04577067494392395,
-0.020879825577139854,
0.09341566264629364,
-0.07617200165987015,
-0.005313671659678221,
0.010130651295185089,
0.05188092961907387,
0.060540247708559036,
-0.04018522799015045,
0.015041345730423927,
-0.029314225539565086,
-0.026502758264541626,
-0.04228445887565613,
-0.021142229437828064,
0.016878170892596245,
-0.0295016560703516,
0.002304231049492955,
-0.049031976610422134,
-0.10661081224679947,
-0.015613011084496975,
0.039173100143671036,
-0.03165711462497711,
0.004793550353497267,
0.0011275152210146189,
0.03214443475008011,
-0.08366924524307251,
-0.014347851276397705,
-0.05941566079854965,
-0.00044046310358680785,
-0.008931091986596584,
0.023560089990496635,
-0.08194487541913986,
-0.0030668415129184723,
-0.012501654215157032,
-0.015575524419546127,
-0.07216097414493561,
0.06728776544332504,
-0.05551709234714508,
0.010430540889501572,
0.02359757572412491,
-0.05233076587319374,
0.021385889500379562,
-0.02884564734995365,
0.00464126281440258,
-0.03400000184774399,
-0.012126792222261429,
0.04659537225961685,
0.022079383954405785,
0.07583462446928024,
0.07508490234613419,
0.02241675928235054,
-0.041684675961732864,
-0.029932746663689613,
0.02307276986539364,
-0.03757993504405022,
-0.05896582454442978,
0.02721499651670456,
-0.05191841721534729,
0.015003859996795654,
-0.030869903042912483,
-0.010439912788569927,
0.0021484289318323135,
-0.06391400843858719,
-0.011658214963972569,
-0.08651819825172424,
0.04041014611721039,
0.04232194274663925,
0.022191843017935753,
-0.04258434846997261,
-0.06732524931430817,
0.06702536344528198,
-0.010336825624108315,
-0.026127895340323448,
-0.04085998237133026,
-0.03733627498149872,
0.004615490790456533,
0.0028044378850609064,
0.030757443979382515,
-0.040222715586423874,
0.012164278887212276,
0.006222712807357311,
-0.08674311637878418,
-0.00933406874537468,
0.03098236210644245,
0.022716650739312172,
-0.04389636591076851,
-0.056266818195581436,
0.022772878408432007,
0.022360531613230705,
-0.024797135964035988,
-0.048919517546892166,
0.04577067494392395,
-0.02093605510890484,
0.03298787400126457,
-0.007853363640606403,
-0.06863726675510406,
0.024590961635112762,
-0.03853583335876465,
0.018096473067998886,
-0.02134840190410614,
-0.011311466805636883,
-0.07482250034809113,
0.017946528270840645,
-0.04442116990685463,
0.017702868208289146,
0.07474752515554428,
0.002987183164805174,
0.029051821678876877,
0.022491732612252235,
0.011826902627944946,
0.004097712691873312,
-0.03349393978714943,
0.04693274945020676,
-0.005655733402818441,
0.005866593681275845,
0.04198456555604935,
-0.04419625550508499,
0.0031043277122080326,
0.009755789302289486,
0.0244035292416811,
-0.018452592194080353,
0.021329659968614578,
0.013242007233202457,
-0.01000882126390934,
-0.011255238205194473,
-0.02041124738752842,
-0.03746747598052025,
-0.020654907450079918,
-0.006222712807357311,
-0.014703970402479172,
-0.02442227303981781,
-0.041834622621536255,
0.05592944100499153,
0.03248181194067001,
0.032631754875183105,
-0.024253584444522858,
0.043184127658605576,
0.04693274945020676,
-0.012323594652116299,
-0.025790520012378693,
0.016062846407294273,
0.0011679300805553794,
-0.007248898036777973,
0.022079383954405785,
-0.04858214408159256,
0.012857773341238499,
0.04742006957530975,
-0.031188536435365677,
-0.017046859487891197,
0.014254135079681873,
0.02444101683795452,
-0.05360529571771622,
0.034768469631671906,
0.023054026067256927,
-0.005463616922497749,
0.024722162634134293,
0.03733627498149872,
-0.0055057886056602,
-0.047869905829429626,
-0.06597574800252914,
0.02922050841152668,
-0.02039250358939171,
0.018349505960941315,
0.05026902258396149,
0.020711136981844902,
-0.043708935379981995,
-0.009230981580913067,
-0.0346747525036335,
-0.04550827294588089,
0.03909812867641449,
-0.000033953583624679595,
-0.01181753072887659,
-0.020355017855763435,
0.01006504986435175,
-0.01761852391064167,
-0.02937045320868492,
0.005988423712551594,
-0.009718302637338638,
-0.006447630003094673,
0.028452042490243912,
0.02281036600470543,
-0.0027927234768867493,
-0.01555678155273199,
0.02509702555835247,
0.004346058703958988,
-0.010711687617003918,
-0.026765162125229836,
-0.020992282778024673,
-0.000020536885131150484,
0.04764498770236969,
0.02710253745317459,
0.0004647705645766109,
-0.02734619751572609,
-0.019436605274677277,
0.022454246878623962,
-0.007689360994845629,
0.029389197006821632,
0.054504964500665665,
0.03639912232756615,
0.025134511291980743,
-0.02028004638850689,
-0.037036385387182236,
-0.01613781787455082
] |
21,528 | tempora | date_range |
Much like the built-in function range, but works with dates
>>> range_items = date_range(
... datetime.datetime(2005,12,21),
... datetime.datetime(2005,12,25),
... )
>>> my_range = tuple(range_items)
>>> datetime.datetime(2005,12,21) in my_range
True
>>> datetime.datetime(2005,12,22) in my_range
True
>>> datetime.datetime(2005,12,25) in my_range
False
>>> from_now = date_range(stop=datetime.datetime(2099, 12, 31))
>>> next(from_now)
datetime.datetime(...)
| def date_range(start=None, stop=None, step=None):
"""
Much like the built-in function range, but works with dates
>>> range_items = date_range(
... datetime.datetime(2005,12,21),
... datetime.datetime(2005,12,25),
... )
>>> my_range = tuple(range_items)
>>> datetime.datetime(2005,12,21) in my_range
True
>>> datetime.datetime(2005,12,22) in my_range
True
>>> datetime.datetime(2005,12,25) in my_range
False
>>> from_now = date_range(stop=datetime.datetime(2099, 12, 31))
>>> next(from_now)
datetime.datetime(...)
"""
if step is None:
step = datetime.timedelta(days=1)
if start is None:
start = datetime.datetime.now()
while start < stop:
yield start
start += step
| (start=None, stop=None, step=None) | [
0.01648096926510334,
-0.04590986296534538,
-0.03983065485954285,
-0.044686123728752136,
-0.04733097553253174,
0.042357075959444046,
-0.0035552510526031256,
-0.011635366827249527,
-0.04768625274300575,
-0.024297093972563744,
0.0412122905254364,
0.032823774963617325,
0.056489262729883194,
0.03146187588572502,
0.0026078419759869576,
0.008141796104609966,
-0.0054179951548576355,
0.02018178626894951,
-0.03975170478224754,
0.04188337177038193,
-0.011615629307925701,
0.04993635043501854,
0.03523177281022072,
0.0283235814422369,
0.0069772726856172085,
0.05585765466094017,
0.006686141714453697,
0.04460717365145683,
0.0322316437959671,
0.008102321065962315,
-0.020645622164011,
0.014872347936034203,
0.04563353210687637,
-0.040778063237667084,
0.024573421105742455,
-0.007855599746108055,
0.004700036719441414,
0.015523691661655903,
0.03726475313305855,
0.06766079366207123,
0.0031333579681813717,
-0.04014645516872406,
-0.011536678299307823,
0.03035656362771988,
-0.02706036902964115,
-0.03906088322401047,
0.028422269970178604,
-0.05423916503787041,
-0.03756082057952881,
-0.0206061452627182,
0.051475889980793,
0.06031837314367294,
0.043383438140153885,
-0.07808229327201843,
-0.06031837314367294,
0.03685026243329048,
-0.060634177178144455,
0.0514364130795002,
0.0058966344222426414,
0.049778446555137634,
0.03250797092914581,
-0.0257182065397501,
0.0398503914475441,
-0.03392908349633217,
0.015020380727946758,
-0.024830011650919914,
-0.036672621965408325,
-0.07547691464424133,
-0.02186935767531395,
0.05644978582859039,
-0.04535720497369766,
0.01311569381505251,
-0.026053747162222862,
0.006671338342130184,
0.03144213557243347,
0.034876495599746704,
-0.018286967650055885,
0.059884145855903625,
-0.0023796248715370893,
-0.035172559320926666,
0.02346811071038246,
0.01624411717057228,
-0.03882403299212456,
-0.03913983330130577,
0.012444611638784409,
0.03065262921154499,
-0.06651600450277328,
-0.007663157302886248,
0.017704706639051437,
0.02141539193689823,
-0.018089590594172478,
0.03631734475493431,
0.028264367952942848,
0.03173820301890373,
-0.00881781242787838,
0.021829882636666298,
-0.007781583350151777,
0.028165679425001144,
-0.07831914722919464,
0.013332808390259743,
0.00933099165558815,
-0.005536421202123165,
-0.04946264624595642,
0.0004558172367978841,
0.0031062185298651457,
-0.07085829973220825,
-0.04354133829474449,
-0.04740992560982704,
0.023093095049262047,
-0.00042127625783905387,
0.010826122015714645,
0.010539925657212734,
0.03677131235599518,
0.07180570811033249,
-0.08289828896522522,
-0.0025412272661924362,
0.03706737607717514,
-0.011783399619162083,
0.008803009055554867,
-0.05451549217104912,
-0.09158287197351456,
-0.008205943740904331,
-0.0012632120633497834,
0.03651472181081772,
0.03688973933458328,
-0.01209920272231102,
0.04523878172039986,
-0.027613025158643723,
-0.02319178357720375,
-0.014339430257678032,
0.026843255385756493,
-0.03659367188811302,
0.002590571530163288,
0.010974154807627201,
-0.02137591503560543,
-0.013095955364406109,
-0.0193231962621212,
0.051594316959381104,
-0.03268561139702797,
0.05246277526021004,
-0.02295493148267269,
0.004603815730661154,
-0.03452121466398239,
0.0514364130795002,
-0.03183688968420029,
-0.04918631911277771,
-0.040541209280490875,
0.04496245086193085,
0.024297093972563744,
0.09047756344079971,
-0.017931688576936722,
-0.008008566685020924,
0.06221318989992142,
0.04539668187499046,
-0.03602128103375435,
-0.03704763948917389,
0.01864224672317505,
0.0015198019100353122,
-0.020645622164011,
-0.0019577317871153355,
-0.0334751196205616,
0.03493570536375046,
-0.03163951262831688,
0.02419840544462204,
0.041370194405317307,
0.04717307537794113,
-0.034323837608098984,
0.005807814653962851,
0.020744308829307556,
-0.004065963439643383,
-0.03171846270561218,
0.015642117708921432,
0.07105567306280136,
-0.03477780520915985,
-0.0044829221442341805,
-0.02295493148267269,
0.03685026243329048,
0.03274482488632202,
0.00848720595240593,
-0.01895804889500141,
0.040008291602134705,
0.042120225727558136,
-0.04022540897130966,
-0.03503439575433731,
-0.04192284867167473,
-0.022323325276374817,
-0.06718708574771881,
0.0160566084086895,
0.012938054278492928,
0.03173820301890373,
0.010687957517802715,
0.013875594362616539,
0.007036485709249973,
-0.015898708254098892,
-0.050844281911849976,
0.036416035145521164,
-0.013569660484790802,
0.08526681363582611,
0.012168284505605698,
0.04535720497369766,
-0.013707824051380157,
-0.006005191244184971,
-0.027652500197291374,
-0.021514080464839935,
0.0799376368522644,
0.05250224843621254,
-0.01108271162956953,
-0.04267287999391556,
0.0053933230228722095,
-0.021000899374485016,
0.02342863567173481,
-0.0321526937186718,
-0.0463835671544075,
0.0489889420568943,
0.026981418952345848,
0.02828410640358925,
-0.015612510964274406,
-0.07425317913293839,
-0.05854198336601257,
-0.012128809466958046,
0.061936862766742706,
-0.014003889635205269,
0.006469027139246464,
-0.045988813042640686,
0.07156885415315628,
-0.007707566954195499,
-0.0022069201804697514,
-0.04575195908546448,
-0.008062845095992088,
0.005852224305272102,
0.009636926464736462,
-0.03758055716753006,
0.02678404189646244,
-0.0039919475093483925,
0.03163951262831688,
0.0270406324416399,
0.03317905217409134,
0.04010698199272156,
0.007416435983031988,
0.03578442707657814,
-0.04819943383336067,
0.0489099882543087,
0.036672621965408325,
-0.03858717903494835,
0.04350186511874199,
-0.048002056777477264,
-0.04062016308307648,
0.0027040631975978613,
-0.024810273200273514,
0.01339202094823122,
-0.03963327780365944,
0.03037630207836628,
-0.0030519398860633373,
0.000659362121950835,
0.026665616780519485,
0.019244246184825897,
0.028777549043297768,
-0.04279130697250366,
0.043857142329216,
0.03598180413246155,
0.06556859612464905,
-0.00832436978816986,
-0.005235421471297741,
0.03858717903494835,
-0.017240870743989944,
0.020961424335837364,
-0.00912868045270443,
-0.01079651527106762,
0.003594726324081421,
0.05285752937197685,
0.05846302956342697,
-0.0009936692658811808,
0.021218014881014824,
0.02779066376388073,
0.04685727134346962,
-0.00604466674849391,
0.015148675069212914,
-0.04405451938509941,
-0.021040374413132668,
0.00014942046254873276,
-0.03831085190176964,
0.03921878710389137,
-0.05787089839577675,
-0.013549922965466976,
-0.016342805698513985,
-0.035902854055166245,
-0.023566799238324165,
0.08041133731603622,
0.03811347484588623,
0.003236980875954032,
-0.025580042973160744,
-0.010934678837656975,
-0.018336310982704163,
-0.07421370595693588,
0.03272508457303047,
0.06359483301639557,
0.05708139389753342,
0.01812906563282013,
0.01569146104156971,
-0.01945149153470993,
0.0037254884373396635,
0.01469470839947462,
0.008669779635965824,
0.046225663274526596,
-0.03556731343269348,
-0.014734183438122272,
-0.022797029465436935,
-0.0037871687673032284,
-0.054041787981987,
-0.05885778367519379,
-0.02725774608552456,
-0.03862665593624115,
0.037995047867298126,
-0.08605632185935974,
-0.00063469004817307,
-0.05885778367519379,
-0.027139320969581604,
0.002505452837795019,
-0.06391063332557678,
0.020270604640245438,
-0.05250224843621254,
0.03037630207836628,
0.020961424335837364,
0.0019256582017987967,
-0.02648797631263733,
0.07070039957761765,
0.004660561680793762,
0.032527707517147064,
-0.002124268561601639,
0.04788362979888916,
-0.033850133419036865,
0.029902596026659012,
0.04993635043501854,
0.1055571511387825,
0.0029803907964378595,
0.007524993270635605,
0.02751433663070202,
0.025303715839982033,
0.009597450494766235,
-0.018652115017175674,
0.05171274021267891,
0.01994493417441845,
-0.017497459426522255,
-0.05976571887731552,
0.04472560063004494,
-0.017517197877168655,
-0.020546933636069298,
0.010510318912565708,
0.06260794401168823,
0.002279703039675951,
0.00954317208379507,
0.07263468950986862,
-0.0062025683000683784,
-0.04843628406524658,
-0.004031422547996044,
-0.0050331102684140205,
0.0488705150783062,
-0.03681078925728798,
-0.0073374854400753975,
0.02109958790242672,
0.012415005825459957,
0.02856043353676796,
-0.019204769283533096,
-0.021020637825131416,
-0.011062974110245705,
0.002525190357118845,
-0.017625754699110985,
-0.002940915524959564,
-0.01274067722260952,
0.060871027410030365,
0.006034797988831997,
0.022481225430965424,
-0.014270348474383354,
-0.003708217991515994,
0.04243602976202965,
-0.06568702310323715,
-0.012799890711903572,
0.007895074784755707,
-0.042120225727558136,
0.026882730424404144,
-0.015701331198215485,
-0.0026917271316051483,
0.05719981715083122,
0.05250224843621254,
0.016323067247867584,
-0.056252408772706985,
0.05491024628281593,
0.021573292091488838,
0.014971036463975906,
0.0372450165450573,
-0.01658952608704567,
-0.03619891777634621,
-0.02289571799337864,
0.019846245646476746,
-0.03894245624542236,
-0.0900828093290329,
0.057831425219774246,
-0.013490709476172924,
0.0374029166996479,
-0.08574051409959793,
0.03238954395055771,
0.06031837314367294,
-0.045436158776283264,
0.0167178213596344,
0.019293589517474174,
0.021711455658078194,
-0.016234248876571655,
-0.04950211942195892,
-0.017497459426522255,
-0.0000061824835029256064,
-0.021435128524899483,
-0.10492555052042007,
0.006557846907526255,
0.02034955658018589,
0.040778063237667084,
-0.0180205088108778,
-0.03679104894399643,
-0.015346052125096321,
0.01635267399251461,
0.007569403387606144,
0.02575768157839775,
-0.09292503446340561,
0.032784298062324524,
-0.017694836482405663,
-0.019865982234477997,
-0.04709412157535553,
0.08945120126008987,
-0.04938369616866112,
0.004394102841615677,
0.007554600015282631,
-0.008531615138053894,
-0.0021329037845134735,
-0.06371325254440308,
-0.03061315417289734,
0.0047370451502501965,
-0.04016619548201561,
-0.09466195106506348,
0.009005320258438587,
0.025619518011808395,
0.00515647092834115,
-0.026369551196694374,
-0.03495544567704201,
0.04480455070734024,
0.012138677760958672,
-0.007515124510973692,
-0.0199646707624197,
-0.01376703754067421,
-0.027178796008229256,
0.03473833203315735,
0.013707824051380157,
-0.02753407508134842,
0.025441879406571388,
-0.0008727758540771902,
-0.03558705002069473,
0.06825292110443115,
-0.05329175665974617,
-0.04425189644098282,
-0.03286324813961983,
0.018395524471998215,
0.024849748238921165,
0.05613398551940918,
-0.02526424080133438,
-0.0038685868494212627,
-0.04859418794512749,
-0.00003666121119749732,
0.016678346320986748,
-0.005482142791152,
0.007090764120221138,
-0.026330076158046722,
-0.07685855776071548,
0.04496245086193085,
0.06620020419359207,
0.033850133419036865,
-0.051120612770318985,
0.009794827550649643,
0.030455252155661583,
-0.03217243030667305,
0.04709412157535553,
0.013480840250849724,
-0.052620675414800644,
0.011714317835867405,
-0.022461488842964172,
0.03619891777634621,
0.054199691861867905,
-0.03742265701293945,
-0.035389672964811325,
0.006957534700632095,
0.010352416895329952,
-0.0027188665699213743,
-0.033633019775152206,
0.028205156326293945,
-0.10318863391876221,
-0.00824048463255167,
-0.05644978582859039,
-0.011122186668217182,
-0.0643448606133461,
0.04480455070734024,
0.0031802349258214235,
0.014734183438122272,
-0.0038118408992886543,
-0.000503002607729286,
-0.0011842612875625491,
0.08984595537185669,
0.04808100685477257,
0.05123903602361679,
0.05348913371562958,
0.03112633340060711,
-0.0541207380592823,
0.0010522655211389065,
-0.06122630834579468,
0.022204898297786713,
-0.0008881959365680814,
0.013480840250849724,
0.005205815192312002,
0.03509360924363136,
-0.012543300166726112,
0.017260607331991196,
-0.01990545727312565,
-0.03906088322401047,
-0.0296262688934803,
-0.014783527702093124,
-0.025047125294804573,
0.045712485909461975,
0.06797659397125244,
-0.018336310982704163,
-0.021691719070076942,
-0.04938369616866112,
-0.045988813042640686,
0.019500834867358208,
-0.01908634416759014,
0.042357075959444046,
-0.006779895629733801,
0.018464606255292892,
-0.06671338528394699,
-0.036416035145521164,
0.007653288543224335,
0.011102449148893356,
-0.03546862304210663,
0.05491024628281593,
0.04575195908546448,
0.03274482488632202,
0.023507585749030113,
0.004347225651144981,
0.09647781401872635,
-0.007944419048726559,
0.03685026243329048,
-0.01299726776778698,
0.03499491885304451,
0.0348370186984539,
-0.016234248876571655,
-0.016964541748166084,
0.005748601630330086,
0.01686585322022438,
0.029902596026659012,
-0.0643053874373436,
-0.044922977685928345,
0.03651472181081772,
0.03400803729891777,
-0.032784298062324524,
0.018997523933649063,
0.0160566084086895,
0.056489262729883194,
-0.0296262688934803,
0.00047956412890926003,
-0.047015171498060226,
0.005945978220552206,
0.027356434613466263,
-0.0015765478601679206,
-0.0096714673563838,
0.0017147116595879197,
-0.015020380727946758,
0.003883389988914132,
-0.019056737422943115,
0.054949723184108734,
0.04251497983932495,
0.021296964958310127,
-0.00505038071423769,
-0.03815295174717903,
-0.07804282009601593,
-0.07512164115905762,
-0.05506815016269684,
0.029724957421422005,
0.018306706100702286,
-0.057515621185302734,
-0.006029863376170397,
0.005358782131224871,
-0.05269962549209595,
-0.008413189090788364,
0.002563432091847062,
-0.009029991924762726,
0.0901617556810379,
-0.0007901242934167385,
-0.05072585865855217,
-0.010905072093009949,
0.004700036719441414,
-0.024790536612272263,
-0.02261939086019993,
-0.042120225727558136,
-0.05222592130303383,
0.016194771975278854,
0.016688214614987373,
0.04575195908546448,
-0.005200880579650402,
0.0618579126894474,
-0.02212594822049141,
0.06264741718769073,
0.010766908526420593,
-0.05948939174413681,
-0.003399816807359457,
-0.022343061864376068,
-0.024376044049859047,
-0.03398829698562622,
0.03396856039762497,
0.06296322494745255,
0.0042830780148506165,
0.005575896706432104,
-0.03264613449573517,
0.07350315153598785,
-0.0045125288888812065,
0.0270406324416399,
-0.006587453186511993,
-0.04717307537794113,
0.029172303155064583,
0.016559919342398643,
-0.0005279831239022315,
-0.016747428104281425,
0.0244352575391531,
-0.005728863645344973,
0.048554711043834686,
-0.015079593285918236,
-0.012306448072195053,
0.02364574931561947,
-0.004514995962381363,
-0.06327902525663376,
-0.02216542325913906,
0.027139320969581604,
-0.01739877089858055,
-0.05431811511516571,
-0.029547318816184998,
0.003283857833594084,
-0.03158029913902283,
0.07441107928752899,
0.0016493304865434766,
0.009054664522409439,
-0.012602513656020164,
0.026369551196694374,
-0.0009868843480944633,
-0.021928571164608,
0.022303586825728416,
-0.06004204601049423,
0.009518499486148357,
0.023231258615851402,
0.03189610317349434,
-0.00845266506075859,
-0.039001669734716415,
-0.001618490437977016,
-0.015425003133714199,
-0.06592387706041336,
0.0193429347127676,
0.01723100058734417,
0.037935834378004074,
0.03910036012530327,
0.013836119323968887,
-0.02080352231860161,
-0.06406853348016739,
0.05968676880002022,
-0.015020380727946758,
0.04650199040770531,
-0.009646794758737087,
0.052936479449272156,
-0.0016974410973489285,
0.04085701331496239,
0.009646794758737087,
0.023566799238324165,
0.037955574691295624,
-0.01624411717057228,
-0.0034491608384996653,
-0.03919904679059982,
-0.057041916996240616,
-0.023744437843561172,
-0.0361199676990509,
-0.019648868590593338,
-0.03779767081141472,
0.006878584157675505,
0.009972467087209225,
0.037718720734119415,
-0.03556731343269348,
-0.04914684221148491,
0.038192424923181534,
0.050607431679964066,
0.05941044166684151,
0.021296964958310127,
-0.029172303155064583,
0.01233605481684208,
0.01002674549818039,
0.023586537688970566,
-0.0463046170771122,
0.0000533534366695676,
0.01079651527106762,
-0.011951169930398464,
0.005867027677595615,
0.010727433487772942,
0.017309952527284622,
0.06714761257171631,
-0.007130239624530077,
-0.06406853348016739,
-0.0038513164035975933,
0.008294763043522835,
0.05475234612822533,
0.022560177370905876,
0.05072585865855217,
0.02447473257780075,
0.010076089762151241,
-0.0436992421746254,
0.037462130188941956,
-0.0771743580698967,
-0.05167326703667641,
-0.027218271046876907,
-0.006735485978424549,
0.008724058046936989,
0.023586537688970566,
0.00527489697560668,
-0.043146584182977676,
-0.07113462686538696,
-0.02883676253259182,
0.005235421471297741,
-0.07385842502117157,
0.02111932635307312,
-0.057791948318481445,
0.02475105971097946,
0.010263597592711449,
0.03142239898443222,
0.017438247799873352,
-0.002317944774404168,
-0.02261939086019993,
-0.005965716205537319,
-0.04251497983932495,
0.025836633518338203,
-0.001443318440578878,
0.00681443652138114,
-0.01197090744972229,
0.011911694891750813,
0.0017196460394188762,
-0.00921256560832262,
-0.053686510771512985,
-0.029705220833420753,
0.0013804045738652349,
0.0016888058744370937,
-0.037225279957056046,
-0.001081255148164928,
0.005126864183694124,
-0.04204127565026283,
-0.01939227804541588,
0.008176336996257305,
-0.0007364624761976302,
-0.032823774963617325,
-0.023843126371502876,
-0.016530312597751617,
0.0002114091330440715,
0.02656692825257778,
0.017033623531460762,
0.03521203622221947,
0.011783399619162083,
-0.004144914448261261,
-0.0321526937186718,
-0.015020380727946758,
0.0013927406398579478,
0.02956705540418625
] |
21,530 | tempora | datetime_mod |
Find the time which is the specified date/time truncated to the time delta
relative to the start date/time.
By default, the start time is midnight of the same day as the specified
date/time.
>>> datetime_mod(datetime.datetime(2004, 1, 2, 3),
... datetime.timedelta(days = 1.5),
... start = datetime.datetime(2004, 1, 1))
datetime.datetime(2004, 1, 1, 0, 0)
>>> datetime_mod(datetime.datetime(2004, 1, 2, 13),
... datetime.timedelta(days = 1.5),
... start = datetime.datetime(2004, 1, 1))
datetime.datetime(2004, 1, 2, 12, 0)
>>> datetime_mod(datetime.datetime(2004, 1, 2, 13),
... datetime.timedelta(days = 7),
... start = datetime.datetime(2004, 1, 1))
datetime.datetime(2004, 1, 1, 0, 0)
>>> datetime_mod(datetime.datetime(2004, 1, 10, 13),
... datetime.timedelta(days = 7),
... start = datetime.datetime(2004, 1, 1))
datetime.datetime(2004, 1, 8, 0, 0)
| def datetime_mod(dt, period, start=None):
"""
Find the time which is the specified date/time truncated to the time delta
relative to the start date/time.
By default, the start time is midnight of the same day as the specified
date/time.
>>> datetime_mod(datetime.datetime(2004, 1, 2, 3),
... datetime.timedelta(days = 1.5),
... start = datetime.datetime(2004, 1, 1))
datetime.datetime(2004, 1, 1, 0, 0)
>>> datetime_mod(datetime.datetime(2004, 1, 2, 13),
... datetime.timedelta(days = 1.5),
... start = datetime.datetime(2004, 1, 1))
datetime.datetime(2004, 1, 2, 12, 0)
>>> datetime_mod(datetime.datetime(2004, 1, 2, 13),
... datetime.timedelta(days = 7),
... start = datetime.datetime(2004, 1, 1))
datetime.datetime(2004, 1, 1, 0, 0)
>>> datetime_mod(datetime.datetime(2004, 1, 10, 13),
... datetime.timedelta(days = 7),
... start = datetime.datetime(2004, 1, 1))
datetime.datetime(2004, 1, 8, 0, 0)
"""
if start is None:
# use midnight of the same day
start = datetime.datetime.combine(dt.date(), datetime.time())
# calculate the difference between the specified time and the start date.
delta = dt - start
# now aggregate the delta and the period into microseconds
# Use microseconds because that's the highest precision of these time
# pieces. Also, using microseconds ensures perfect precision (no floating
# point errors).
def get_time_delta_microseconds(td):
return (td.days * seconds_per_day + td.seconds) * 1000000 + td.microseconds
delta, period = map(get_time_delta_microseconds, (delta, period))
offset = datetime.timedelta(microseconds=delta % period)
# the result is the original specified time minus the offset
result = dt - offset
return result
| (dt, period, start=None) | [
0.04796862229704857,
0.004638200160115957,
0.011602800339460373,
-0.002642751904204488,
-0.008901645429432392,
-0.0238480381667614,
-0.005266035906970501,
0.016547618433833122,
-0.008385748602449894,
0.0050762249156832695,
0.007899054326117039,
-0.029941454529762268,
0.04185573756694794,
0.022835712879896164,
0.01686883717775345,
0.041738931089639664,
0.013082352466881275,
0.04757926985621452,
-0.04676162078976631,
0.004606564994901419,
0.07900027185678482,
0.07132996618747711,
-0.008054796606302261,
0.027722127735614777,
-0.01038606371730566,
0.022757841274142265,
0.011018767021596432,
0.013033682480454445,
0.0015452555380761623,
-0.022310081869363785,
0.08768291026353836,
0.04177786782383919,
0.039558541029691696,
-0.05345853790640831,
-0.024587813764810562,
-0.00782118272036314,
0.041738931089639664,
0.05123921111226082,
0.029221145436167717,
0.046800557523965836,
-0.05178431048989296,
-0.02641778439283371,
0.020966805517673492,
-0.018221847712993622,
-0.012673528864979744,
-0.024373667314648628,
0.07475629448890686,
0.0491366907954216,
-0.02669033408164978,
0.04181680455803871,
0.00804992951452732,
0.0460997149348259,
0.0038375873118638992,
-0.051044534891843796,
-0.05170643702149391,
-0.005562919657677412,
-0.044659100472927094,
0.03422436863183975,
0.01037632953375578,
0.03632688894867897,
0.019574858248233795,
-0.009957772679626942,
0.016460012644529343,
0.01273193210363388,
-0.03788430988788605,
0.0014004638651385903,
-0.04189467430114746,
-0.05575573816895485,
-0.045982908457517624,
0.005168697331100702,
-0.06284201145172119,
0.008741036057472229,
-0.02641778439283371,
-0.06584005057811737,
-0.01794929802417755,
0.07701455801725388,
0.04462016373872757,
-0.033990755677223206,
0.051394954323768616,
0.003613707609474659,
-0.010035643354058266,
0.0037378149572759867,
0.0007044905214570463,
0.03726134076714516,
0.03225811943411827,
0.05992184579372406,
-0.04399719461798668,
-0.02626204304397106,
0.008205671794712543,
-0.03295896202325821,
0.012877940200269222,
0.05357534810900688,
0.056962739676237106,
-0.01786169409751892,
-0.010512604378163815,
0.044152937829494476,
0.000019021015759790316,
-0.012819536961615086,
-0.05649551376700401,
0.01060020923614502,
0.00334602571092546,
0.031751956790685654,
-0.01757941022515297,
0.04804649576544762,
0.041583191603422165,
0.004759873729199171,
-0.004059033468365669,
-0.012439914979040623,
0.03747548907995224,
-0.056690193712711334,
-0.023614423349499702,
0.015301679261028767,
-0.04181680455803871,
0.023439213633537292,
0.0052709029987454414,
-0.04072660952806473,
-0.006833192892372608,
-0.004095535259693861,
-0.013325699605047703,
-0.03615167737007141,
-0.038137391209602356,
0.01670335978269577,
-0.0024334732443094254,
0.0006065432098694146,
0.1016218438744545,
-0.05610615760087967,
0.03040868043899536,
-0.007587569300085306,
0.007159278262406588,
-0.0574299693107605,
-0.03408809378743172,
0.04863052815198898,
-0.05957142263650894,
0.02986358292400837,
0.025249717757105827,
0.03453585132956505,
-0.03630742058157921,
0.07639159262180328,
-0.025152379646897316,
0.01290714181959629,
-0.0075291660614311695,
-0.048825208097696304,
-0.001885941717773676,
0.0654117614030838,
-0.008395482785999775,
-0.07362716645002365,
0.005246568471193314,
-0.024373667314648628,
-0.04057086631655693,
0.09149859100580215,
-0.008025594986975193,
-0.06003865227103233,
0.023302938789129257,
0.010142716579139233,
-0.03971428424119949,
-0.0004705728788394481,
0.0026938547380268574,
-0.03554817661643028,
-0.040337253361940384,
0.024412604048848152,
-0.021901259198784828,
-0.015788374468684196,
-0.027624787762761116,
0.015330880880355835,
0.06144032999873161,
0.022913584485650063,
0.04045405983924866,
-0.03083697333931923,
-0.021706581115722656,
-0.04512632638216019,
0.034243833273649216,
0.02889019437134266,
0.06097310408949852,
-0.07487310469150543,
-0.005231967195868492,
-0.0015099701704457402,
-0.0045943972654640675,
-0.025678008794784546,
-0.02809201553463936,
-0.0717971920967102,
0.03747548907995224,
0.036735713481903076,
-0.031401537358760834,
0.02077212743461132,
-0.037767503410577774,
0.008473353460431099,
-0.03788430988788605,
0.04169999808073044,
-0.01855280064046383,
-0.01820237934589386,
0.026885012164711952,
-0.0312652625143528,
0.018942154943943024,
-0.00936400517821312,
-0.025132911279797554,
0.0262425746768713,
-0.003056442365050316,
0.05120027810335159,
0.030272407457232475,
0.04018151015043259,
-0.0540815070271492,
-0.025522267445921898,
0.02104467712342739,
-0.01334516704082489,
0.04637226462364197,
0.0668523758649826,
0.028072547167539597,
0.019506720826029778,
-0.04329635575413704,
-0.0850352868437767,
-0.015778640285134315,
-0.061985429376363754,
0.029396357014775276,
-0.020285433158278465,
-0.003304656594991684,
0.012868206016719341,
-0.04185573756694794,
-0.04454229399561882,
-0.05365321785211563,
-0.010580741800367832,
-0.08962968736886978,
-0.028773387894034386,
0.02924061380326748,
0.0029299017041921616,
0.07775433361530304,
-0.00975822750478983,
-0.013870797120034695,
-0.037689633667469025,
-0.008741036057472229,
-0.07105741649866104,
0.05610615760087967,
-0.03147941082715988,
-0.012147897854447365,
-0.04878627136349678,
0.06424368917942047,
-0.00742209330201149,
-0.006541176233440638,
-0.014493766240775585,
0.044853776693344116,
0.010794887319207191,
0.020188093185424805,
0.03510041907429695,
0.02040223963558674,
0.0041977413929998875,
-0.02351708523929119,
-0.009402940049767494,
0.0031975838355720043,
-0.003355759661644697,
0.0019187936559319496,
0.004818276967853308,
-0.03268641233444214,
0.019029760733246803,
0.043529968708753586,
0.019925279542803764,
0.06864341348409653,
0.05123921111226082,
0.024704620242118835,
0.02349761687219143,
-0.00808399822562933,
0.020110223442316055,
0.009378605522215366,
-0.03385448083281517,
-0.012031091377139091,
-0.06708598881959915,
0.0075291660614311695,
-0.0018640405032783747,
-0.013987603597342968,
-0.0012289040023460984,
-0.018134241923689842,
0.029396357014775276,
0.10722856223583221,
0.01972086727619171,
0.0558336079120636,
-0.026651399210095406,
0.03383501246571541,
0.035645514726638794,
0.02517184615135193,
0.03465265780687332,
0.05524957552552223,
0.012761133722960949,
-0.004550594836473465,
-0.033542994409799576,
-0.031421005725860596,
-0.015116735361516476,
-0.044191874563694,
-0.0334261879324913,
0.009349403902888298,
0.05197898671030998,
0.06638514995574951,
0.04240083694458008,
-0.03075910173356533,
0.015535293146967888,
0.005231967195868492,
-0.04648907110095024,
-0.054237250238657,
0.0789613425731659,
-0.0015440387651324272,
-0.04757926985621452,
0.004489758051931858,
0.004226943012326956,
-0.015875978395342827,
0.022602099925279617,
-0.04251764342188835,
0.012274438515305519,
-0.03438010811805725,
-0.017082981765270233,
0.03825419768691063,
-0.0004952118033543229,
0.03005826100707054,
-0.04205041751265526,
-0.014279620721936226,
-0.04824117198586464,
0.03700825944542885,
-0.015486623160541058,
0.022076468914747238,
-0.022816244512796402,
0.04057086631655693,
0.05026582255959511,
0.02696288377046585,
0.0788055956363678,
-0.057663582265377045,
0.07148570567369461,
0.03665784001350403,
0.0770534947514534,
0.038040053099393845,
-0.04641120135784149,
0.04064873605966568,
0.04975965991616249,
-0.026709802448749542,
0.044191874563694,
-0.04956498369574547,
-0.034243833273649216,
0.02589215524494648,
0.04041512310504913,
-0.028072547167539597,
-0.006891596131026745,
0.04816330224275589,
-0.052017923444509506,
0.03073963336646557,
-0.0017740019829943776,
0.1147041916847229,
0.022757841274142265,
-0.020791595801711082,
-0.06474985182285309,
0.02916274219751358,
-0.005660258699208498,
0.036365821957588196,
0.019925279542803764,
0.03640475869178772,
0.05824761465191841,
0.03223865479230881,
0.002132939174771309,
0.0025502799544483423,
-0.06969467550516129,
-0.04964285343885422,
-0.01545742154121399,
0.02236848510801792,
-0.017968766391277313,
-0.03216078132390976,
-0.013705321587622166,
0.016323737800121307,
0.06619047373533249,
0.022037534043192863,
0.00006391669739969075,
-0.019662464037537575,
0.005407177377492189,
-0.04399719461798668,
-0.019935011863708496,
0.006156687159091234,
0.004319414962083101,
-0.013500909321010113,
-0.031498875468969345,
0.013890265487134457,
-0.030681230127811432,
0.09648234397172928,
-0.003443364519625902,
-0.04337422549724579,
0.012556721456348896,
-0.027799997478723526,
0.027060221880674362,
0.04216722398996353,
-0.021531371399760246,
0.007461029104888439,
0.02306932583451271,
-0.017306862398982048,
-0.002942069200798869,
0.10302352160215378,
0.016041455790400505,
0.03870195895433426,
-0.005022688768804073,
-0.042829129844903946,
-0.04310167580842972,
0.010551540181040764,
0.029396357014775276,
-0.04995433986186981,
-0.019740335643291473,
-0.01821211352944374,
-0.0505773089826107,
-0.01803690381348133,
-0.025308120995759964,
0.09118711203336716,
-0.002540546003729105,
-0.0036210082471370697,
0.06436049938201904,
0.02943529188632965,
0.05813080817461014,
-0.023828569799661636,
0.004567629192024469,
-0.0652560144662857,
-0.007972057908773422,
-0.07981792092323303,
-0.015369816683232784,
-0.038585152477025986,
0.007558367680758238,
0.05999971553683281,
-0.028734451159834862,
-0.019555389881134033,
-0.05400363728404045,
0.02986358292400837,
-0.00848308764398098,
0.008560958318412304,
-0.08269915729761124,
0.022426888346672058,
-0.03788430988788605,
-0.009183928370475769,
0.024081651121377945,
0.05707954615354538,
-0.03332884982228279,
-0.0658789873123169,
0.02581428363919258,
0.0022156774066388607,
0.006443837191909552,
-0.06319243460893631,
-0.005251435097306967,
0.012741665355861187,
-0.007884453050792217,
-0.01644054427742958,
0.03173249214887619,
0.004441088531166315,
0.017890894785523415,
-0.014172548428177834,
0.029299017041921616,
0.008020727895200253,
-0.017121916636824608,
0.013228360563516617,
0.037417083978652954,
0.011252379976212978,
0.000647303881123662,
-0.03241386264562607,
-0.0007860118639655411,
0.02271890640258789,
0.04185573756694794,
0.06957786530256271,
0.003973861690610647,
0.009519747458398342,
-0.13152435421943665,
-0.02236848510801792,
0.002280164510011673,
0.004115003161132336,
0.0002768075792118907,
-0.010249788872897625,
0.017725419253110886,
0.014698178507387638,
0.011641736142337322,
-0.007772513665258884,
-0.017871426418423653,
-0.008463620208203793,
0.01444509718567133,
-0.05038262903690338,
-0.01609985902905464,
0.05151176080107689,
0.0131602231413126,
0.021609243005514145,
0.02836456336081028,
0.03356246277689934,
0.02182338759303093,
0.03570391982793808,
-0.0054315123707056046,
0.05283556878566742,
-0.038760360330343246,
-0.027469046413898468,
-0.04726778343319893,
0.025697477161884308,
-0.011826680041849613,
0.020616384223103523,
-0.039986830204725266,
-0.03163515031337738,
0.04734565317630768,
0.027371706441044807,
-0.03802058473229408,
0.01501939631998539,
-0.013666385784745216,
-0.024763023480772972,
0.011252379976212978,
-0.023302938789129257,
-0.0702008381485939,
-0.01643081195652485,
0.02412058599293232,
0.036015402525663376,
-0.014571637846529484,
-0.002411572029814124,
0.0756128802895546,
0.08160895854234695,
0.01987660862505436,
0.0023848037235438824,
0.021901259198784828,
-0.03767016530036926,
0.008906511589884758,
0.014036273583769798,
-0.051122404634952545,
-0.010892226360738277,
-0.0050372895784676075,
0.029824648052453995,
0.02766372263431549,
-0.00775304576382041,
-0.008376014418900013,
0.032024506479501724,
0.030097195878624916,
0.005314705427736044,
-0.06930531561374664,
0.032472267746925354,
-0.00206601875834167,
0.03305630013346672,
0.017959032207727432,
-0.05914313346147537,
0.015048597939312458,
-0.060583747923374176,
-0.06911063939332962,
-0.02579481527209282,
-0.02429579570889473,
0.013150488957762718,
-0.042361900210380554,
-0.019662464037537575,
-0.05489915609359741,
0.05665125697851181,
0.05396470054984093,
-0.04921456053853035,
-0.030603358522057533,
0.03951960429549217,
0.03364033252000809,
-0.023925907909870148,
-0.0376506969332695,
-0.018309451639652252,
0.05310811847448349,
-0.040337253361940384,
0.06724172830581665,
0.008351679891347885,
0.06105097755789757,
0.005825734697282314,
0.04329635575413704,
-0.014776049181818962,
-0.02367282658815384,
0.027975207194685936,
0.040843416005373,
-0.04933137074112892,
-0.055989351123571396,
-0.0013420605100691319,
-0.008560958318412304,
-0.0029907384887337685,
0.020012883469462395,
0.041738931089639664,
0.043880388140678406,
0.0658789873123169,
-0.006808857899159193,
-0.048825208097696304,
-0.025132911279797554,
0.042361900210380554,
0.031693555414676666,
-0.06303668767213821,
0.012206302024424076,
-0.042361900210380554,
0.08994116634130478,
-0.0789613425731659,
0.018523598089814186,
0.028676047921180725,
0.029902519658207893,
0.007767646573483944,
-0.04886414110660553,
-0.020655320957303047,
-0.02474355511367321,
-0.05715741962194443,
-0.03759229555726051,
0.014357492327690125,
-0.028676047921180725,
-0.028345096856355667,
-0.06147926673293114,
-0.00782604981213808,
-0.03447744995355606,
0.033192574977874756,
-0.014357492327690125,
-0.018533332273364067,
0.009378605522215366,
-0.01444509718567133,
0.0015708069549873471,
0.07292632758617401,
-0.01917576976120472,
-0.09360111504793167,
-0.005319572519510984,
-0.00896491575986147,
0.0038935572374612093,
0.020557980984449387,
-0.04267338663339615,
0.008935713209211826,
0.059259939938783646,
-0.010347127914428711,
0.012303640134632587,
0.04154425486922264,
-0.012605391442775726,
0.0016620622482150793,
-0.057313162833452225,
-0.006604446098208427,
-0.011992155574262142,
0.0427512563765049,
0.015798108652234077,
-0.022037534043192863,
-0.0424397736787796,
-0.0641268864274025,
0.042556580156087875,
0.019312042742967606,
-0.055093832314014435,
-0.050771985203027725,
0.017034312710165977,
-0.0033630600664764643,
0.01741393469274044,
-0.034243833273649216,
-0.01170987356454134,
0.010541805997490883,
-0.028169885277748108,
0.017657281830906868,
-0.05521063879132271,
-0.017014844343066216,
0.01750153861939907,
0.035042013972997665,
-0.051394954323768616,
-0.010434732772409916,
0.007855251431465149,
-0.0034530984703451395,
-0.059182070195674896,
-0.025055039674043655,
0.037086132913827896,
0.028403500095009804,
-0.022095937281847,
-0.003477433230727911,
-0.0177448857575655,
-0.027469046413898468,
0.01757941022515297,
-0.009398073889315128,
-0.019808471202850342,
-0.03545083850622177,
-0.02729383483529091,
-0.0029980388935655355,
0.014338023960590363,
0.016391875222325325,
-0.06089523434638977,
-0.010171918198466301,
-0.02075265906751156,
0.03165461868047714,
-0.0853467732667923,
0.000970955821685493,
0.02112254686653614,
0.06299775093793869,
-0.01696617528796196,
-0.0026865543331950903,
-0.002423739293590188,
0.008998983539640903,
0.050888791680336,
-0.03702772781252861,
-0.017199788242578506,
0.030077729374170303,
-0.013452240265905857,
-0.01828998513519764,
0.0006874561659060419,
-0.021414564922451973,
0.011953220702707767,
0.040609799325466156,
-0.04497058317065239,
0.012391245923936367,
0.032472267746925354,
-0.02155083790421486,
-0.015496357344090939,
0.02219327539205551,
-0.02094733715057373,
0.040687672793865204,
0.0022631301544606686,
0.03188823163509369,
0.017959032207727432,
-0.015330880880355835,
-0.0724201649427414,
-0.02597002685070038,
-0.03973374888300896,
0.04512632638216019,
0.002293548546731472,
-0.036015402525663376,
0.017920097336173058,
0.022310081869363785,
-0.0071446774527430534,
-0.05579467490315437,
-0.00998697429895401,
0.01722899079322815,
0.027371706441044807,
0.024782491847872734,
-0.026554059237241745,
0.027274368330836296,
-0.01820237934589386,
-0.023205600678920746,
-0.03587912768125534,
0.01907842978835106,
0.009495412930846214,
-0.0238480381667614,
0.02192072756588459,
0.02906540408730507,
0.04072660952806473,
0.01971113309264183,
-0.03870195895433426,
0.08316638320684433,
-0.05867590755224228,
-0.08028514683246613,
-0.033173106610774994,
-0.021628709509968758,
0.02447100728750229,
-0.009607352316379547,
0.024003779515624046,
0.015116735361516476,
-0.00005825126572744921,
-0.03685251995921135,
-0.0427512563765049,
-0.04602184519171715,
0.007358822971582413,
-0.022115403786301613,
0.00994803849607706,
-0.009008717723190784,
-0.015837043523788452,
0.01777408830821514,
-0.05061624199151993,
0.04629439488053322,
0.013471707701683044,
-0.002100087469443679,
-0.034964144229888916,
0.02669033408164978,
0.014240684919059277,
-0.014123878441751003,
-0.005377975758165121,
-0.002981004770845175,
-0.009631686843931675,
-0.06599579006433487,
-0.0075291660614311695,
-0.010483402758836746,
0.0040030633099377155,
-0.005874404218047857,
-0.030252939090132713,
-0.012225769460201263,
-0.058909520506858826,
-0.03545083850622177,
-0.019458051770925522,
0.05478234961628914,
-0.000901601801160723,
-0.009417541325092316,
0.03235546126961708,
0.0114859938621521,
0.0016085257520899177,
-0.012362044304609299,
-0.023653360083699226,
0.017968766391277313,
0.033523526042699814,
-0.028150418773293495,
-0.00971442461013794,
-0.002487009624019265,
0.024276329204440117
] |
21,531 | tempora | datetime_round |
Find the nearest even period for the specified date/time.
>>> datetime_round(datetime.datetime(2004, 11, 13, 8, 11, 13),
... datetime.timedelta(hours = 1))
datetime.datetime(2004, 11, 13, 8, 0)
>>> datetime_round(datetime.datetime(2004, 11, 13, 8, 31, 13),
... datetime.timedelta(hours = 1))
datetime.datetime(2004, 11, 13, 9, 0)
>>> datetime_round(datetime.datetime(2004, 11, 13, 8, 30),
... datetime.timedelta(hours = 1))
datetime.datetime(2004, 11, 13, 9, 0)
| def datetime_round(dt, period, start=None):
"""
Find the nearest even period for the specified date/time.
>>> datetime_round(datetime.datetime(2004, 11, 13, 8, 11, 13),
... datetime.timedelta(hours = 1))
datetime.datetime(2004, 11, 13, 8, 0)
>>> datetime_round(datetime.datetime(2004, 11, 13, 8, 31, 13),
... datetime.timedelta(hours = 1))
datetime.datetime(2004, 11, 13, 9, 0)
>>> datetime_round(datetime.datetime(2004, 11, 13, 8, 30),
... datetime.timedelta(hours = 1))
datetime.datetime(2004, 11, 13, 9, 0)
"""
result = datetime_mod(dt, period, start)
if abs(dt - result) >= period // 2:
result += period
return result
| (dt, period, start=None) | [
0.018841521814465523,
-0.0025894397404044867,
0.010191592387855053,
-0.01321029756218195,
0.005658918526023626,
-0.018186083063483238,
0.00893149059265852,
-0.0013212605845183134,
-0.033879660069942474,
0.03803383931517601,
-0.004731151275336742,
-0.04372045397758484,
0.024906625971198082,
0.010099276900291443,
0.027306821197271347,
0.05908169224858284,
-0.0031664094422012568,
0.03746148571372032,
-0.053173523396253586,
0.004059558734297752,
0.07292896509170532,
0.04490208625793457,
-0.04202185571193695,
-0.002055166056379676,
0.0014943514252081513,
-0.0010045041562989354,
0.023448046296834946,
0.03363963961601257,
-0.012942583300173283,
-0.022783378139138222,
0.0840437114238739,
0.0447174571454525,
0.07023335993289948,
-0.01762296073138714,
0.011511698365211487,
0.03153485432267189,
0.0379599891602993,
0.03415660560131073,
-0.018823057413101196,
0.03035322017967701,
-0.0587124340236187,
-0.009600775316357613,
-0.015592028386890888,
0.01823224127292633,
-0.029614698141813278,
0.02217409759759903,
0.041431035846471786,
0.07518145442008972,
0.011908654123544693,
0.04652683436870575,
-0.010071582160890102,
0.017133690416812897,
-0.01960773766040802,
-0.006688232533633709,
-0.040064774453639984,
-0.03616907447576523,
-0.07200581580400467,
-0.009166894480586052,
0.016247466206550598,
0.02660522423684597,
0.02440812438726425,
-0.034618180245161057,
0.05125337094068527,
0.02815612033009529,
-0.016247466206550598,
0.030962500721216202,
-0.05863858014345169,
-0.02285723015666008,
-0.055979903787374496,
-0.006965177599340677,
-0.02878386341035366,
0.004384969361126423,
-0.03190411627292633,
-0.06982717663049698,
-0.040175553411245346,
0.10331910848617554,
0.03866158425807953,
-0.03489512577652931,
0.017309090122580528,
0.0023251876700669527,
0.0230418611317873,
-0.013182602822780609,
0.009189972653985023,
0.024998942390084267,
-0.02741759829223156,
0.057493872940540314,
-0.0029517768416553736,
-0.029873181134462357,
-0.02854384295642376,
-0.010754714719951153,
0.02067859284579754,
0.060411032289266586,
0.0654698982834816,
-0.052730411291122437,
-0.0031917961314320564,
0.04582523927092552,
-0.00744521664455533,
0.013108750805258751,
-0.06687308847904205,
-0.032125670462846756,
-0.01741986721754074,
-0.00479115592315793,
-0.05021943897008896,
0.02461121790111065,
0.037812285125255585,
0.003281803335994482,
-0.0077313934452831745,
-0.01255485974252224,
0.009896183386445045,
-0.029688550159335136,
-0.029060808941721916,
-0.004726535640656948,
-0.032384153455495834,
0.04434819519519806,
-0.01308105606585741,
-0.045197494328022,
0.00686824694275856,
0.011908654123544693,
0.02752837724983692,
-0.053875118494033813,
-0.03903084248304367,
0.020438574254512787,
-0.024463513866066933,
0.00769908307120204,
0.09113351255655289,
-0.05014558881521225,
0.018813826143741608,
0.01033929642289877,
0.019940070807933807,
-0.01849072426557541,
0.010754714719951153,
0.04379430413246155,
-0.0097115533426404,
-0.03541209176182747,
-0.0025986714754253626,
0.03565210849046707,
-0.050810255110263824,
0.055979903787374496,
-0.022340266034007072,
-0.009093041531741619,
-0.017567573115229607,
-0.04781924560666084,
-0.05915554612874985,
0.04789309948682785,
0.027676081284880638,
-0.05095795914530754,
-0.0323287658393383,
0.01593359373509884,
-0.002931005787104368,
0.09541693329811096,
0.0036326011177152395,
-0.016395170241594315,
0.054170526564121246,
-0.002926390152424574,
-0.015305851586163044,
-0.0569399818778038,
0.008608387783169746,
-0.018841521814465523,
-0.05764157697558403,
0.009406913071870804,
0.0013420314062386751,
-0.010662399232387543,
0.002637905301526189,
0.00209901574999094,
0.06698387116193771,
0.0006744775455445051,
-0.02555283159017563,
-0.020623203366994858,
0.01785374991595745,
-0.042132630944252014,
-0.002129018073901534,
0.01573050022125244,
0.03417506814002991,
-0.0713411420583725,
0.019496958702802658,
-0.025405127555131912,
-0.018093768507242203,
-0.024241957813501358,
-0.02036472037434578,
-0.07894791662693024,
0.0578262060880661,
0.027011411264538765,
-0.00771293044090271,
0.030260905623435974,
-0.043314266949892044,
0.02828535996377468,
-0.03698144853115082,
0.01999546028673649,
-0.03947395831346512,
-0.016284391283988953,
0.026623688638210297,
0.008179121650755405,
0.03103635273873806,
-0.012397924438118935,
-0.040064774453639984,
-0.00968385860323906,
-0.025774389505386353,
0.06783317029476166,
-0.0013824193738400936,
0.042612671852111816,
-0.06783317029476166,
-0.03855080530047417,
0.03066709078848362,
-0.0343412347137928,
0.029300827533006668,
0.017272163182497025,
-0.0036579875741153955,
0.008294516243040562,
0.014604256488382816,
-0.03472895920276642,
-0.01542586088180542,
-0.02235872857272625,
-0.006794394925236702,
-0.027140652760863304,
0.0006208193372003734,
0.017410635948181152,
-0.028008416295051575,
-0.046674538403749466,
-0.05915554612874985,
-0.006923635955899954,
-0.11099973320960999,
-0.03478434681892395,
0.07252278178930283,
-0.01567511260509491,
0.06960561871528625,
-0.004412664100527763,
-0.026125187054276466,
-0.04925936087965965,
0.008289899677038193,
-0.05465056747198105,
0.053875118494033813,
-0.0497024729847908,
-0.008243742398917675,
-0.055241383612155914,
0.05369048938155174,
-0.057420022785663605,
-0.008216047659516335,
-0.027713006362318993,
0.01973697915673256,
0.030833259224891663,
0.05151185020804405,
0.020512426272034645,
-0.04324041306972504,
-0.016884440556168556,
0.0030879415571689606,
-0.022340266034007072,
-0.04327734187245369,
-0.032808803021907806,
0.03098096325993538,
0.021564818918704987,
-0.007666772697120905,
-0.005488135386258364,
0.028710011392831802,
0.010071582160890102,
0.05324737727642059,
0.026402132585644722,
-0.033251915127038956,
0.03999092057347298,
-0.002718681003898382,
0.05302581936120987,
0.03358425199985504,
0.01979236677289009,
-0.008336057886481285,
-0.06402978301048279,
0.008663776330649853,
0.010680862702429295,
-0.04298193380236626,
-0.03040860965847969,
0.017973758280277252,
0.020567813888192177,
0.0957861989736557,
-0.01816762052476406,
0.03552286699414253,
-0.009730016812682152,
0.07104573398828506,
0.05250885337591171,
0.02571900002658367,
0.017687581479549408,
0.07784013450145721,
0.008534534834325314,
0.008843790739774704,
-0.009536154568195343,
-0.01754910871386528,
0.01033929642289877,
-0.029836256057024002,
0.016016677021980286,
0.013514937832951546,
0.055426012724637985,
0.07968643307685852,
0.01997699774801731,
-0.03221798688173294,
0.02230333909392357,
-0.0005215805722400546,
-0.011317837052047253,
-0.0447174571454525,
0.08596386760473251,
0.00808680709451437,
-0.02736220881342888,
0.02461121790111065,
0.003182564629241824,
-0.00257559260353446,
0.026199039071798325,
-0.0119640426710248,
0.05638609081506729,
0.0013039514888077974,
0.022894157096743584,
0.008880716748535633,
-0.010265444405376911,
0.006300508510321379,
-0.03147946670651436,
-0.016339780762791634,
-0.05775235593318939,
0.0740736722946167,
-0.03485820069909096,
0.024518903344869614,
-0.025146646425127983,
-0.003397197462618351,
0.028137655928730965,
0.011871728114783764,
0.024906625971198082,
-0.07193196564912796,
0.08995188027620316,
0.0424649678170681,
0.05051484704017639,
0.06524834781885147,
-0.028396138921380043,
0.06447289884090424,
0.056164536625146866,
-0.06450982391834259,
0.04545597732067108,
-0.011271679773926735,
-0.011770181357860565,
0.01704137586057186,
0.04346197098493576,
-0.029485458508133888,
0.020955538377165794,
0.0646575316786766,
-0.031128667294979095,
0.030316293239593506,
0.0013074132148176432,
0.09349677711725235,
0.02736220881342888,
0.019256940111517906,
-0.0645836740732193,
0.0018520726589486003,
0.017392173409461975,
0.020198553800582886,
0.034507401287555695,
0.023078786209225655,
0.011003965511918068,
0.025331275537610054,
0.022063320502638817,
0.03421199321746826,
-0.04719150438904762,
-0.05620146170258522,
0.015638185665011406,
0.02684524469077587,
0.0035195150412619114,
0.0011412459425628185,
-0.022838767617940903,
0.027196042239665985,
0.061740368604660034,
0.021158631891012192,
0.010736251249909401,
-0.005340431351214647,
0.05553679168224335,
-0.039363179355859756,
-0.01043161191046238,
-0.009231514297425747,
0.03077786974608898,
-0.055979903787374496,
-0.03373195603489876,
0.033251915127038956,
-0.034138139337301254,
0.11240292340517044,
0.02828535996377468,
-0.02597748301923275,
-0.0029771635308861732,
-0.00024506787303835154,
0.035689037293195724,
0.03258724510669708,
-0.025275887921452522,
0.012665637768805027,
0.04058173671364784,
-0.0017643732717260718,
-0.019441569223999977,
0.08456067740917206,
0.03565210849046707,
0.042132630944252014,
-0.044495899230241776,
-0.07820939272642136,
-0.008631465956568718,
0.002794841071590781,
0.05191803723573685,
-0.062294259667396545,
0.007380595896393061,
-0.022968009114265442,
-0.032384153455495834,
-0.011604013852775097,
-0.019626200199127197,
0.07060262560844421,
0.01617361418902874,
0.021066315472126007,
0.00484192930161953,
0.030740942806005478,
0.06624534726142883,
-0.022395653650164604,
-0.009970035403966904,
-0.037683043628931046,
-0.052804265171289444,
-0.06835013628005981,
-0.010034656152129173,
-0.036446020007133484,
0.018573807552456856,
0.0478561706840992,
0.013902661390602589,
0.002003238769248128,
0.00005192726894165389,
0.016644420102238655,
-0.022451043128967285,
0.02341112121939659,
-0.09002573043107986,
-0.013154908083379269,
-0.005755849182605743,
0.004537289496511221,
0.004098792560398579,
0.07651079446077347,
-0.024906625971198082,
-0.06787009537220001,
0.021971004083752632,
-0.00030925573082640767,
-0.007814477197825909,
-0.1065686047077179,
-0.006254351232200861,
0.010265444405376911,
-0.008169890381395817,
-0.0012797187082469463,
0.001393958693370223,
0.00020136241801083088,
0.016192076727747917,
-0.030390145257115364,
0.03866158425807953,
0.0006231272127479315,
0.0046272967010736465,
0.016413632780313492,
0.011548624373972416,
0.013598021119832993,
0.002750991377979517,
-0.020955538377165794,
-0.026531372219324112,
0.006923635955899954,
-0.048114653676748276,
0.05250885337591171,
0.024518903344869614,
-0.019016919657588005,
-0.12938891351222992,
-0.02317110262811184,
-0.006748237181454897,
-0.009499228559434414,
0.023632677271962166,
-0.002180945361033082,
0.004805003292858601,
0.005128106568008661,
0.0031271756161004305,
-0.034304309636354446,
-0.02173098549246788,
-0.016210539266467094,
0.014355005696415901,
-0.03317806497216225,
-0.041246406733989716,
0.06639305502176285,
0.016644420102238655,
0.03666757792234421,
0.017373710870742798,
0.04615757241845131,
0.03378734365105629,
0.04028632864356041,
0.015878204256296158,
0.03917854651808739,
-0.02571900002658367,
-0.04896395280957222,
-0.05088410899043083,
0.0054742880165576935,
-0.010385453701019287,
-0.01093011349439621,
-0.03914162144064903,
-0.07990799099206924,
0.026125187054276466,
0.021029390394687653,
-0.030020885169506073,
0.029023882001638412,
-0.011243985034525394,
-0.03415660560131073,
0.008977647870779037,
0.007219044491648674,
-0.04501286521553993,
-0.010791640728712082,
0.053616635501384735,
0.04733920842409134,
-0.029633162543177605,
0.010625473223626614,
0.04534519836306572,
0.042871154844760895,
0.04316656291484833,
-0.002351728267967701,
0.027620691806077957,
-0.08603771775960922,
-0.0067205424420535564,
0.002891771961003542,
-0.023706529289484024,
0.02623596414923668,
0.016219770535826683,
0.018343020230531693,
0.03847695142030716,
0.031313296407461166,
-0.005677381530404091,
0.07259663194417953,
-0.026642151176929474,
-0.024205030873417854,
-0.05250885337591171,
0.023134175688028336,
-0.028396138921380043,
0.04944399371743202,
0.03903084248304367,
-0.04301885887980461,
0.00270944950170815,
-0.034378159791231155,
-0.03411967679858208,
-0.012499471195042133,
-0.014558098278939724,
0.02335573174059391,
-0.009637701325118542,
-0.026716003194451332,
-0.04959169775247574,
0.051179517060518265,
0.05158570408821106,
-0.0323287658393383,
-0.003111020429059863,
0.0840437114238739,
0.02848845347762108,
-0.06487908214330673,
-0.04866854473948479,
-0.008280668407678604,
0.0690886527299881,
-0.00871455017477274,
0.06000484526157379,
0.0014066520379856229,
0.05265656113624573,
0.00707133999094367,
0.015462786890566349,
0.0033302688971161842,
0.015259693376719952,
0.05793698504567146,
0.023466510698199272,
-0.044311270117759705,
-0.06905172765254974,
0.003722608322277665,
-0.016819819808006287,
-0.0020240095909684896,
-0.000847568444442004,
0.012314840219914913,
0.05483519658446312,
0.05472441762685776,
-0.025755925104022026,
-0.012628711760044098,
-0.027214504778385162,
0.025866704061627388,
0.009757710620760918,
-0.05051484704017639,
0.03821847215294838,
-0.0031917961314320564,
0.04682224243879318,
-0.05878628417849541,
-0.003681066446006298,
0.045677535235881805,
0.019515421241521835,
0.016847513616085052,
-0.030260905623435974,
-0.05945095419883728,
-0.049924030900001526,
-0.04065559059381485,
-0.03354732319712639,
0.015822816640138626,
-0.02330034226179123,
-0.05708768591284752,
-0.09201973676681519,
0.0015958980657160282,
-0.012204062193632126,
0.012868731282651424,
-0.03046399913728237,
-0.025091256946325302,
0.024057326838374138,
-0.029134660959243774,
-0.009886952117085457,
0.0510687381029129,
-0.06078029051423073,
-0.08987803012132645,
0.01093011349439621,
-0.003143330803140998,
0.012887194752693176,
0.015001211315393448,
0.007551379036158323,
-0.005958942696452141,
0.04985018074512482,
-0.003787228837609291,
0.03373195603489876,
0.011502467095851898,
-0.013108750805258751,
-0.016330549493432045,
-0.033750418573617935,
0.014595024287700653,
0.03910469636321068,
0.027140652760863304,
0.005423514638096094,
-0.01999546028673649,
-0.036187537014484406,
-0.05302581936120987,
0.042317263782024384,
0.010985502041876316,
-0.055795274674892426,
-0.03633524104952812,
-0.00023843270901124924,
-0.0016962907975539565,
0.02036472037434578,
-0.04028632864356041,
-0.013358001597225666,
0.031257908791303635,
-0.024518903344869614,
0.022875692695379257,
-0.0492224358022213,
-0.007643694058060646,
0.016893671825528145,
0.030131664127111435,
-0.058417025953531265,
-0.06580223888158798,
0.03373195603489876,
0.004006477538496256,
-0.03317806497216225,
-0.04165259376168251,
0.0505887009203434,
0.04172644764184952,
-0.01433654222637415,
0.014179606921970844,
0.013321075588464737,
-0.00009909454092849046,
0.019256940111517906,
-0.007528300397098064,
0.01442885771393776,
-0.03447047621011734,
-0.0069882567040622234,
-0.010311601683497429,
-0.0023436506744474173,
0.031442537903785706,
-0.0609649233520031,
0.01997699774801731,
-0.03910469636321068,
0.05188111215829849,
-0.05439208447933197,
-0.022561822086572647,
0.02516510896384716,
0.0155827971175313,
-0.014918128028512001,
-0.04324041306972504,
0.013782651163637638,
-0.03397197276353836,
0.07130421698093414,
-0.06380823254585266,
-0.043055783957242966,
-0.04172644764184952,
-0.057161539793014526,
0.016395170241594315,
0.030759407207369804,
0.007408290635794401,
0.029873181134462357,
0.04102485254406929,
-0.056681498885154724,
-0.03029783070087433,
0.023208027705550194,
-0.06044795736670494,
-0.020955538377165794,
-0.012139441445469856,
-0.031627170741558075,
0.01905384659767151,
-0.017124459147453308,
0.010754714719951153,
0.019958535209298134,
-0.008192969486117363,
-0.05878628417849541,
-0.023374194279313087,
-0.034692030400037766,
0.01849072426557541,
0.0002705987717490643,
-0.04741305857896805,
0.029928570613265038,
0.007371364627033472,
-0.08264052122831345,
-0.06059566140174866,
0.04028632864356041,
0.027214504778385162,
0.030316293239593506,
0.030187053605914116,
-0.02366960421204567,
0.03520899638533592,
-0.05225037410855293,
0.01599821448326111,
-0.04128333181142807,
0.03266109898686409,
0.017392173409461975,
0.005538908764719963,
0.015084294602274895,
0.03646448254585266,
0.023152638226747513,
-0.01879536360502243,
-0.027509912848472595,
0.03151639178395271,
-0.014096522703766823,
-0.08522534370422363,
-0.03589212894439697,
-0.05328430235385895,
-0.007925255224108696,
-0.03807076811790466,
0.003464125795289874,
-0.013884197920560837,
-0.026217501610517502,
-0.01643209531903267,
-0.011853264644742012,
-0.0011920193210244179,
0.034378159791231155,
-0.022321801632642746,
0.014484246261417866,
-0.0051558008417487144,
-0.03267956152558327,
0.00924074649810791,
-0.0456036813557148,
0.022894157096743584,
0.03965858742594719,
0.017502952367067337,
-0.03195950388908386,
0.007662157062441111,
0.010579315945506096,
-0.011234753765165806,
-0.015573564916849136,
0.024758921936154366,
-0.007819092832505703,
-0.060743365436792374,
-0.022580284625291824,
0.0016524411039426923,
-0.02230333909392357,
0.02461121790111065,
-0.03203335404396057,
-0.029707014560699463,
-0.03192257881164551,
0.015028906054794788,
-0.009942341595888138,
0.005206574220210314,
0.025257423520088196,
-0.04253881797194481,
0.063697449862957,
0.01698598638176918,
0.01654287427663803,
0.01892460510134697,
-0.003999553620815277,
0.015342777594923973,
0.022875692695379257,
-0.02036472037434578,
-0.011003965511918068,
0.0009156508604064584,
0.021878689527511597
] |
21,532 | tempora | ensure_datetime |
Given a datetime or date or time object from the ``datetime``
module, always return a datetime using default values.
| def ensure_datetime(ob: AnyDatetime) -> datetime.datetime:
"""
Given a datetime or date or time object from the ``datetime``
module, always return a datetime using default values.
"""
if isinstance(ob, datetime.datetime):
return ob
date = cast(datetime.date, ob)
time = cast(datetime.time, ob)
if isinstance(ob, datetime.date):
time = datetime.time()
if isinstance(ob, datetime.time):
date = datetime.date(1900, 1, 1)
return datetime.datetime.combine(date, time)
| (ob: Union[datetime.datetime, datetime.date, datetime.time]) -> datetime.datetime | [
0.03152875602245331,
0.026434343308210373,
-0.011405824683606625,
0.05426493659615517,
-0.04313270002603531,
-0.049887511879205704,
-0.02433997392654419,
0.030906107276678085,
0.022396549582481384,
-0.03622693940997124,
0.024717338383197784,
0.028453242033720016,
-0.027170203626155853,
-0.022207867354154587,
-0.01678326167166233,
0.03671751171350479,
-0.04211381450295448,
0.0674726739525795,
0.01632099039852619,
0.039623212069272995,
0.03215140849351883,
-0.034868426620960236,
-0.04928373172879219,
0.04203834384679794,
-0.009047300554811954,
0.03832130879163742,
-0.008929374627768993,
0.023094672709703445,
0.026906048879027367,
-0.011547336354851723,
0.026434343308210373,
-0.002395081799477339,
0.04452894628047943,
0.025453198701143265,
0.04701954871416092,
-0.02337769605219364,
0.017462516203522682,
0.050566766411066055,
-0.0709444209933281,
-0.02196258120238781,
-0.029207969084382057,
-0.004976486787199974,
-0.001695779268629849,
-0.028528714552521706,
-0.03845338523387909,
-0.01180205773562193,
0.011924700811505318,
0.08203892409801483,
-0.04298175126314163,
0.018528569489717484,
0.021547481417655945,
-0.030849501490592957,
0.028849473223090172,
0.049057312309741974,
-0.0723029300570488,
0.024830548092722893,
-0.0007299633580259979,
0.0771331861615181,
-0.051472440361976624,
0.03143441677093506,
-0.0012028475757688284,
0.019868211820721626,
-0.024849414825439453,
-0.04645350202918053,
0.013066226616501808,
0.007132178638130426,
-0.026321135461330414,
-0.0350005067884922,
0.023660719394683838,
0.03579296916723251,
-0.006325562950223684,
0.021358799189329147,
-0.012330367229878902,
0.03043440170586109,
0.05558570846915245,
0.04022699594497681,
-0.015424750745296478,
0.016245517879724503,
0.026472080498933792,
0.004615632817149162,
0.000267987372353673,
-0.011792623437941074,
-0.06796324253082275,
0.034755218774080276,
-0.02575508877635002,
0.01248131226748228,
-0.064566969871521,
0.04135908931493759,
0.021000303328037262,
-0.03390615060925484,
-0.0024622997734695673,
0.015292673371732235,
0.03201933205127716,
0.050453558564186096,
0.015245502814650536,
0.023358827456831932,
0.002424563281238079,
0.0016403539339080453,
-0.018198376521468163,
0.015132294036448002,
-0.01960405707359314,
-0.028755132108926773,
-0.07279350608587265,
-0.026226794347167015,
-0.008457669056952,
-0.045094989240169525,
0.08151061087846756,
-0.03224574774503708,
0.027623040601611137,
-0.03824583441019058,
-0.04203834384679794,
-0.050529032945632935,
-0.07354823499917984,
-0.0001084921314031817,
0.024660734459757805,
-0.02515130676329136,
0.016349293291568756,
-0.027245676144957542,
0.02826455980539322,
0.026340004056692123,
-0.05411398783326149,
-0.02118898555636406,
0.013330381363630295,
-0.012811506167054176,
0.11336012929677963,
-0.003985906485468149,
-0.01175488717854023,
-0.024660734459757805,
0.013509629294276237,
-0.017849314957857132,
-0.014849270693957806,
0.040981724858284,
-0.05400077998638153,
-0.02356637828052044,
-0.049812041223049164,
0.010188826359808445,
-0.03988736867904663,
0.0265852902084589,
-0.006778399925678968,
-0.03935905918478966,
-0.0034693896304816008,
-0.04543462023139,
0.03388728201389313,
0.010905818082392216,
0.03379294276237488,
0.0070897252298891544,
-0.005188754294067621,
-0.031075920909643173,
-0.03377407416701317,
0.06324619799852371,
0.013386986218392849,
0.04569877311587334,
-0.06305751204490662,
0.007160480599850416,
-0.07924642413854599,
-0.06683115661144257,
-0.0035472209565341473,
-0.06826514005661011,
-0.030849501490592957,
0.01884932816028595,
-0.029358914121985435,
-0.009353908710181713,
0.05101960524916649,
-0.02969854138791561,
0.08686918020248413,
0.029434386640787125,
-0.0008702955674380064,
-0.006292543839663267,
0.057510264217853546,
-0.03126460313796997,
-0.03630241006612778,
-0.022245604544878006,
0.015264371410012245,
-0.04411384463310242,
0.021792767569422722,
0.014368131756782532,
-0.031057052314281464,
-0.0007883368525654078,
0.012075645849108696,
0.01292471494525671,
0.06834060698747635,
0.01455681398510933,
-0.04305722564458847,
0.06879344582557678,
-0.0027972101233899593,
0.04630255699157715,
-0.022924859076738358,
-0.003403350943699479,
-0.004497706424444914,
0.056680064648389816,
0.03535900264978409,
0.057510264217853546,
0.01339641958475113,
0.022415418177843094,
0.03356652334332466,
-0.02345316857099533,
0.019264429807662964,
-0.008302006870508194,
0.01857573911547661,
0.08090683072805405,
-0.031868383288383484,
-0.044981781393289566,
0.027623040601611137,
-0.031660836189985275,
0.04875542223453522,
-0.022302208468317986,
-0.0025684332940727472,
0.020622938871383667,
-0.06871797144412994,
-0.031755175441503525,
-0.02743435837328434,
-0.03450993075966835,
-0.04128361493349075,
0.0007222981657832861,
-0.00978315994143486,
-0.01138695701956749,
-0.0013879917096346617,
-0.051208287477493286,
-0.03290613740682602,
-0.005325548816472292,
0.001405680668540299,
0.03147215396165848,
-0.0423402339220047,
-0.031038183718919754,
0.12339800596237183,
0.020755017176270485,
-0.012792637571692467,
-0.05249132588505745,
0.022453155368566513,
-0.03688732534646988,
0.039434533566236496,
-0.03473635017871857,
-0.07124631106853485,
-0.040302470326423645,
0.03996284306049347,
-0.0059859356842935085,
0.06022728607058525,
-0.04849126562476158,
-0.009485986083745956,
-0.03147215396165848,
0.039623212069272995,
-0.009443532675504684,
-0.011632243171334267,
-0.0027217373717576265,
0.025245647877454758,
-0.006311411969363689,
-0.032377827912569046,
0.01735874079167843,
-0.06135937571525574,
-0.0375099740922451,
-0.015264371410012245,
0.0562649630010128,
0.009273719042539597,
-0.026207925751805305,
0.014736061915755272,
0.020604072138667107,
0.03594391420483589,
-0.058340463787317276,
-0.0066510397009551525,
-0.00007355648995144293,
-0.0018054506508633494,
0.08664276450872421,
-0.0003319623356219381,
0.0009599195327609777,
-0.045887455344200134,
-0.028472108766436577,
-0.04954788461327553,
0.05117055028676987,
-0.009297303855419159,
0.03920811414718628,
0.053623415529727936,
-0.013066226616501808,
0.03501937538385391,
-0.024887152016162872,
-0.0328684002161026,
0.03126460313796997,
0.0005492414347827435,
-0.009811462834477425,
-0.049623358994722366,
0.05460456386208534,
-0.02571735344827175,
0.009820896200835705,
-0.007306709419935942,
0.0008691163384355605,
-0.10800155997276306,
-0.023717323318123817,
-0.04958562180399895,
0.01336811762303114,
-0.0659254789352417,
-0.001311339670792222,
-0.04211381450295448,
0.019887080416083336,
0.051472440361976624,
-0.008235967718064785,
-0.06003860384225845,
0.04067983478307724,
0.011896397918462753,
-0.03124573454260826,
0.04203834384679794,
-0.009283153340220451,
0.0005356799229048193,
0.0692085474729538,
-0.03375520557165146,
0.011009592562913895,
0.05649138242006302,
-0.0355665497481823,
-0.005221773404628038,
-0.06260468065738678,
-0.054491352289915085,
0.0032618395052850246,
-0.01888706535100937,
-0.04766106605529785,
0.037340160459280014,
0.023698454722762108,
0.040264733135700226,
0.030340060591697693,
0.01767006702721119,
0.006217070855200291,
-0.009622780606150627,
0.059963129460811615,
-0.02045312523841858,
0.007184065878391266,
0.010462415404617786,
-0.025283383205533028,
0.004186381120234728,
-0.070378378033638,
0.0012759618693962693,
0.03535900264978409,
-0.028472108766436577,
0.09426551312208176,
-0.0518120676279068,
0.027019258588552475,
0.016462501138448715,
0.011575639247894287,
0.038283571600914,
0.03977416083216667,
0.009934105910360813,
-0.02515130676329136,
0.022924859076738358,
0.049661096185445786,
0.01525493711233139,
0.04139682278037071,
0.03339670971035957,
0.000821945839561522,
0.008268987759947777,
-0.01599079743027687,
-0.012613389641046524,
-0.0009233623859472573,
0.026377739384770393,
-0.0242645014077425,
-0.06317072361707687,
0.026094716042280197,
-0.01967952959239483,
-0.007778414059430361,
0.014849270693957806,
0.021453140303492546,
0.020849358290433884,
0.043321382254362106,
0.00605197437107563,
0.0021273891907185316,
-0.0037830735091120005,
0.006905760150402784,
0.03917037695646286,
-0.03977416083216667,
0.022528627887368202,
0.035547684878110886,
0.027566436678171158,
-0.00045077301911078393,
-0.0390571691095829,
-0.03988736867904663,
-0.021698426455259323,
-0.006754814647138119,
0.001207564608193934,
-0.09403909742832184,
0.07388786226511002,
0.001467002322897315,
-0.029358914121985435,
0.054529089480638504,
-0.023830533027648926,
0.007745394948869944,
0.04049115255475044,
-0.043396852910518646,
0.016594579443335533,
-0.016537975519895554,
0.000577248923946172,
-0.044906310737133026,
0.062415994703769684,
0.04366100952029228,
-0.02652868442237377,
-0.04007605090737343,
-0.009377493523061275,
-0.056000810116529465,
0.01324547454714775,
0.013547365553677082,
-0.010141655802726746,
-0.013302079401910305,
0.01059449277818203,
0.006438772194087505,
-0.05554797127842903,
0.005424606613814831,
0.0009327965090051293,
0.017773842439055443,
-0.0078774718567729,
0.013896427117288113,
0.0032099520321935415,
0.09388814866542816,
-0.025283383205533028,
0.016405897215008736,
-0.02201918512582779,
0.010736004449427128,
-0.03301934525370598,
-0.03226461634039879,
0.03913263976573944,
-0.003742978675290942,
0.04875542223453522,
0.027075862511992455,
-0.00045961749856360257,
0.004929316695779562,
0.02362298220396042,
-0.028019271790981293,
-0.00905673485249281,
-0.01956631988286972,
0.00509913032874465,
0.03466087952256203,
0.021453140303492546,
0.017528554424643517,
0.020038025453686714,
0.010037880390882492,
-0.007165197748690844,
-0.03147215396165848,
0.023283354938030243,
-0.013453024439513683,
-0.057548001408576965,
-0.04792521893978119,
0.044340264052152634,
0.030887238681316376,
0.0038750560488551855,
0.01857573911547661,
0.03241556137800217,
0.017028547823429108,
-0.02424563281238079,
0.0179813914000988,
0.011349220760166645,
0.0044293091632425785,
0.004405723884701729,
0.023094672709703445,
-0.0006721795070916414,
0.04913278669118881,
-0.023245619609951973,
0.032528772950172424,
0.02041538991034031,
0.02339656464755535,
0.028528714552521706,
-0.03856659308075905,
0.011377522721886635,
-0.060831066220998764,
-0.04320817068219185,
-0.0006191126885823905,
-0.0016273820074275136,
0.005278378259390593,
-0.005825555883347988,
-0.018670080229640007,
-0.01097185630351305,
-0.07049158215522766,
0.008976545184850693,
0.02583056129515171,
-0.049774304032325745,
-0.02124558947980404,
-0.056114017963409424,
0.015047387219965458,
0.004398648627102375,
-0.02107577584683895,
0.03352878615260124,
-0.03428351506590843,
-0.004195815417915583,
-0.04018925875425339,
0.03273632377386093,
0.03447219729423523,
0.05705742910504341,
0.0023809305857867002,
0.016254952177405357,
0.04535914584994316,
0.007023686543107033,
0.018509700894355774,
0.0045637451112270355,
0.01487757358700037,
-0.015217200852930546,
-0.03730242699384689,
-0.012745467014610767,
0.0305476114153862,
-0.0005117998225614429,
0.006830287165939808,
-0.05343473330140114,
0.0000721561154932715,
0.024792810901999474,
-0.00566045893356204,
-0.0438874252140522,
0.011330352164804935,
0.02424563281238079,
-0.023773929104208946,
-0.01606626994907856,
-0.0037241103127598763,
-0.0425289161503315,
0.048793159425258636,
0.010839778929948807,
-0.020604072138667107,
-0.05430267006158829,
-0.023868270218372345,
0.025396592915058136,
-0.04596292972564697,
-0.05486871674656868,
0.016170045360922813,
0.009070885367691517,
0.04452894628047943,
0.050566766411066055,
-0.02279278263449669,
0.0425289161503315,
-0.03232122212648392,
-0.0031038185115903616,
-0.05418946221470833,
0.009773725643754005,
0.03758544847369194,
0.02730228193104267,
-0.02988722361624241,
0.005386870354413986,
-0.0013820953899994493,
-0.02583056129515171,
-0.00170521333348006,
0.03445332869887352,
-0.006943496409803629,
0.05117055028676987,
-0.0330570824444294,
-0.014047373086214066,
0.036528829485177994,
0.037094876170158386,
0.01566060446202755,
-0.019302165135741234,
-0.036434490233659744,
0.0018137054285034537,
-0.051472440361976624,
-0.033264633268117905,
-0.018962537869811058,
0.04932146891951561,
0.06094427779316902,
-0.008754843845963478,
0.027566436678171158,
0.00420053256675601,
0.06407639384269714,
-0.05720837414264679,
0.019358770921826363,
-0.06905759871006012,
-0.05977444723248482,
0.03432125225663185,
0.09252963960170746,
-0.08520878106355667,
-0.0566423274576664,
0.004073171876370907,
-0.006943496409803629,
0.014009635895490646,
-0.04011378809809685,
0.03658543527126312,
0.011434127576649189,
0.028623055666685104,
0.04007605090737343,
-0.05562344565987587,
-0.04535914584994316,
0.004910448100417852,
0.0469818115234375,
-0.02515130676329136,
0.025604143738746643,
-0.03371746838092804,
0.01884932816028595,
-0.015566262416541576,
-0.03224574774503708,
0.027792854234576225,
0.04449120908975601,
-0.06101974844932556,
0.020019156858325005,
-0.09449192881584167,
-0.03152875602245331,
0.029453255236148834,
-0.0031934422440826893,
0.02418902888894081,
-0.06769908964633942,
0.02279278263449669,
-0.10241657495498657,
-0.005693478509783745,
-0.03437785431742668,
-0.03737789765000343,
-0.08317101001739502,
-0.016604013741016388,
0.05652911961078644,
0.006377450656145811,
0.02669849805533886,
0.043547797948122025,
-0.01446247287094593,
-0.020566334947943687,
-0.02109464444220066,
0.012236026115715504,
-0.04090625047683716,
0.00763690285384655,
0.00216512568295002,
-0.022434286773204803,
0.05184980481863022,
-0.01956631988286972,
0.026264529675245285,
0.009981276467442513,
-0.04294401779770851,
0.0305476114153862,
-0.05034035071730614,
0.016622882336378098,
0.052944160997867584,
0.03705713897943497,
0.008056719787418842,
0.0006273675244301558,
-0.05932161211967468,
-0.11766207963228226,
0.0361514650285244,
-0.014651155099272728,
0.021736163645982742,
-0.0008832674939185381,
-0.022490890696644783,
-0.022339945659041405,
0.030717425048351288,
0.006646322552114725,
-0.011981304734945297,
-0.014122845605015755,
-0.04867994785308838,
-0.0013455383013933897,
-0.031679701060056686,
0.06792551279067993,
-0.01846253126859665,
0.016264386475086212,
-0.0003001222503371537,
-0.044981781393289566,
0.0421515516936779,
-0.014283224940299988,
0.008500122465193272,
0.043472327291965485,
0.04803843051195145,
0.02654755301773548,
0.017566291615366936,
0.06543491035699844,
0.005589703563600779,
0.00027948516071774065,
-0.04686859995126724,
-0.05381209775805473,
-0.03154762461781502,
-0.00509913032874465,
0.011868095956742764,
-0.004228834528476,
0.03513258323073387,
0.041962869465351105,
-0.023755060508847237,
-0.04396289959549904,
-0.018358755856752396,
0.016151176765561104,
-0.07132178544998169,
0.02503809705376625,
0.035698629915714264,
-0.0011256058933213353,
-0.00017261452740058303,
0.043547797948122025,
0.013500194996595383,
0.02283051796257496,
-0.027811722829937935,
-0.029340047389268875,
-0.021660691127181053,
-0.0013066226383671165,
0.0023997987154871225,
-0.03935905918478966,
-0.008669937029480934,
0.04301948845386505,
0.04362327232956886,
0.05169885978102684,
-0.02341543324291706,
0.06905759871006012,
0.012273762375116348,
0.012056778185069561,
-0.021622953936457634,
0.11245445162057877,
-0.026377739384770393,
-0.06384997814893723,
0.00489157997071743,
-0.019028576090931892,
-0.06351035088300705,
-0.013905861414968967,
-0.038717541843652725,
0.045774247497320175,
-0.013849256560206413,
0.07475579530000687,
-0.023736191913485527,
-0.01171714998781681,
0.00012411735951900482,
0.013188869692385197,
-0.04686859995126724,
-0.07705771923065186,
0.05803857371211052,
0.01101902686059475,
0.023717323318123817,
0.0711330994963646,
0.030264588072896004,
-0.030075905844569206,
0.058264993131160736,
0.028528714552521706,
-0.021490875631570816,
-0.04634029045701027,
0.04381195455789566,
0.03841564804315567,
-0.05573665350675583,
-0.007792565505951643,
0.03273632377386093,
-0.018009694293141365,
-0.0013337456621229649,
0.022566363215446472,
-0.0566423274576664,
-0.01339641958475113,
0.03284953162074089,
-0.05505739897489548,
-0.009641648270189762,
-0.02830229513347149,
0.020604072138667107,
0.024736206978559494,
-0.013886992819607258,
0.04762332886457443,
0.023207882419228554,
-0.052076224237680435,
-0.05162338539958,
0.01919838972389698,
0.03920811414718628,
0.04803843051195145,
0.026811707764863968,
0.04384969174861908,
0.015424750745296478,
0.027830591425299644,
0.017462516203522682,
0.027113599702715874,
0.0075614298693835735,
0.004426950588822365,
0.024773942306637764,
-0.038755275309085846,
-0.032585375010967255,
0.021679557859897614,
-0.01654740795493126,
-0.03367973119020462,
-0.062265049666166306,
-0.01597192883491516,
0.004816107451915741,
-0.028660790994763374,
0.08407668769359589,
0.01873612031340599,
-0.04362327232956886,
-0.011509600095450878,
-0.021566350013017654,
0.10883176326751709,
0.02505696564912796,
-0.03988736867904663,
0.015368146821856499,
0.020679544657468796,
0.02441544644534588,
-0.006462357472628355,
0.008839750662446022,
0.007622751407325268,
-0.0035047675482928753,
-0.029226837679743767,
-0.011226577684283257,
-0.04000057652592659,
0.04932146891951561
] |
21,534 | tempora | get_date_format_string |
For a given period (e.g. 'month', 'day', or some numeric interval
such as 3600 (in secs)), return the format string that can be
used with strftime to format that time to specify the times
across that interval, but no more detailed.
For example,
>>> get_date_format_string('month')
'%Y-%m'
>>> get_date_format_string(3600)
'%Y-%m-%d %H'
>>> get_date_format_string('hour')
'%Y-%m-%d %H'
>>> get_date_format_string(None)
Traceback (most recent call last):
...
TypeError: period must be a string or integer
>>> get_date_format_string('garbage')
Traceback (most recent call last):
...
ValueError: period not in (second, minute, hour, day, month, year)
| def get_date_format_string(period):
"""
For a given period (e.g. 'month', 'day', or some numeric interval
such as 3600 (in secs)), return the format string that can be
used with strftime to format that time to specify the times
across that interval, but no more detailed.
For example,
>>> get_date_format_string('month')
'%Y-%m'
>>> get_date_format_string(3600)
'%Y-%m-%d %H'
>>> get_date_format_string('hour')
'%Y-%m-%d %H'
>>> get_date_format_string(None)
Traceback (most recent call last):
...
TypeError: period must be a string or integer
>>> get_date_format_string('garbage')
Traceback (most recent call last):
...
ValueError: period not in (second, minute, hour, day, month, year)
"""
# handle the special case of 'month' which doesn't have
# a static interval in seconds
if isinstance(period, str) and period.lower() == 'month':
return '%Y-%m'
file_period_secs = get_period_seconds(period)
format_pieces = ('%Y', '-%m-%d', ' %H', '-%M', '-%S')
seconds_per_second = 1
intervals = (
seconds_per_year,
seconds_per_day,
seconds_per_hour,
seconds_per_minute,
seconds_per_second,
)
mods = list(map(lambda interval: file_period_secs % interval, intervals))
format_pieces = format_pieces[: mods.index(0) + 1]
return ''.join(format_pieces)
| (period) | [
0.037521541118621826,
0.012712376192212105,
-0.0011267454829066992,
-0.002814115723595023,
0.007455452345311642,
-0.022200245410203934,
0.016689268872141838,
-0.03701343759894371,
-0.0012201829813420773,
-0.02712494693696499,
0.038928598165512085,
0.007631334476172924,
-0.03933899104595184,
-0.02415449172258377,
0.01917116343975067,
0.04459591582417488,
0.03455108776688576,
-0.005779685452580452,
-0.014266002923250198,
-0.009756578132510185,
0.08371993899345398,
-0.0011279669124633074,
-0.034629255533218384,
-0.027613509446382523,
0.011334632523357868,
-0.007484765723347664,
0.007460337597876787,
-0.03603631258010864,
-0.019522927701473236,
-0.030662134289741516,
0.061793290078639984,
0.03220599144697189,
-0.017041033133864403,
0.0029728980734944344,
-0.05811930447816849,
0.026225993409752846,
0.014705708250403404,
-0.031052984297275543,
-0.03488330915570259,
0.047058265656232834,
-0.015555805526673794,
-0.03199102357029915,
0.044205065816640854,
-0.04787905141711235,
-0.030368996784090996,
0.007328425999730825,
0.04049199819564819,
0.04096101596951485,
-0.03343716636300087,
0.0014388143317773938,
0.042094480246305466,
-0.0258546881377697,
-0.018164725974202156,
-0.049520619213581085,
-0.10138633102178574,
0.03400389850139618,
0.00210814387537539,
0.05245198681950569,
0.03247958421707153,
0.011324861086905003,
-0.017959529533982277,
-0.0008128446061164141,
0.009189845994114876,
0.03640761971473694,
-0.06574086844921112,
0.0030095402617007494,
-0.0037081835325807333,
-0.02986089326441288,
0.028629718348383904,
-0.025092530995607376,
0.04655016213655472,
-0.012204272672533989,
-0.04733186215162277,
-0.00661512603983283,
0.016200706362724304,
0.04381421580910683,
-0.02286469005048275,
-0.0225520096719265,
0.051240354776382446,
0.06015172228217125,
0.005398607347160578,
-0.025835145264863968,
0.003866966115310788,
-0.0013972865417599678,
0.06992295384407043,
-0.04361879080533981,
-0.035801805555820465,
-0.03244049847126007,
0.0010992638999596238,
0.032225530594587326,
-0.028688345104455948,
-0.012008847668766975,
0.09435104578733444,
0.007303997874259949,
-0.04600297287106514,
-0.0007933021406643093,
-0.02100815437734127,
-0.0036593275144696236,
-0.03640761971473694,
0.009209388867020607,
-0.012898029759526253,
-0.05972178652882576,
-0.04944244772195816,
0.007333311717957258,
0.013513618148863316,
0.01013277005404234,
-0.0250143613666296,
-0.02399815246462822,
0.05077133700251579,
-0.0596827007830143,
-0.04545578360557556,
-0.013845839537680149,
-0.020519593730568886,
-0.027379000559449196,
0.058940086513757706,
-0.002946027321740985,
-0.03212781995534897,
-0.01301528513431549,
0.028492920100688934,
-0.061988715082407,
-0.03244049847126007,
0.03330036997795105,
-0.035078734159469604,
-0.025913314893841743,
0.07050923258066177,
-0.049637872725725174,
-0.04025748744606972,
-0.04185996949672699,
0.10193352401256561,
-0.012976199388504028,
-0.02028508298099041,
0.05417172610759735,
0.003942693118005991,
-0.05612597241997719,
0.045377615839242935,
-0.05483616888523102,
-0.04944244772195816,
0.04819172993302345,
-0.04483042657375336,
0.13804800808429718,
0.019757436588406563,
-0.05460165813565254,
-0.05557878315448761,
0.06253590434789658,
0.008520516566932201,
-0.001578054390847683,
0.0474100299179554,
-0.0008439904195256531,
-0.004040405619889498,
0.04819172993302345,
0.03087710216641426,
-0.007836529985070229,
-0.004494768101722002,
-0.013474532403051853,
0.05811930447816849,
-0.050224147737026215,
0.00003084045965806581,
-0.0001335147680947557,
-0.039944808930158615,
-0.060503486543893814,
0.06300491839647293,
0.015018387697637081,
-0.004152774810791016,
-0.0029704554472118616,
0.030114945024251938,
0.03570409119129181,
0.06902400404214859,
0.007948899641633034,
0.04819172993302345,
-0.0005474945064634085,
0.014705708250403404,
-0.017920443788170815,
-0.05698584020137787,
0.0027848018798977137,
-0.015819629654288292,
0.054210811853408813,
-0.008862510323524475,
-0.012741690501570702,
-0.02444762922823429,
-0.022747434675693512,
0.04647199437022209,
-0.034785594791173935,
-0.060229890048503876,
0.028336580842733383,
-0.021359918639063835,
0.012985970824956894,
-0.0411173552274704,
-0.007929356768727303,
-0.04326702654361725,
-0.011598455719649792,
-0.004814776126295328,
-0.01165708340704441,
-0.009468326345086098,
0.04944244772195816,
-0.0029386989772319794,
-0.01793021522462368,
-0.029821809381246567,
-0.02470168098807335,
0.03412115201354027,
-0.026909980922937393,
0.006590697914361954,
0.05217839404940605,
0.025072988122701645,
-0.03533278405666351,
0.0390653982758522,
0.03175651282072067,
0.01729508489370346,
-0.0059164827689528465,
-0.07207262516021729,
0.00020198975107632577,
-0.0005801670486107469,
-0.08497066050767899,
-0.027379000559449196,
0.008457004092633724,
0.010543162003159523,
0.05956544727087021,
0.001147509436123073,
0.042798008769750595,
-0.11115756630897522,
-0.009072591550648212,
-0.09028621017932892,
0.00942924153059721,
0.032225530594587326,
0.0067226095125079155,
0.038361866027116776,
0.024838479235768318,
0.029372332617640495,
-0.01127600483596325,
-0.018076784908771515,
-0.008193179965019226,
0.06280949711799622,
-0.03816644474864006,
-0.006898491643369198,
-0.006839864421635866,
0.04029657319188118,
-0.055227018892765045,
-0.0002616858691908419,
-0.01772502064704895,
0.05858832225203514,
-0.02743762731552124,
0.019405672326683998,
0.00840814784169197,
0.019689038395881653,
-0.0003551233094185591,
0.06112884357571602,
-0.04502585157752037,
-0.025248870253562927,
0.003737497376278043,
-0.04733186215162277,
-0.007699733134359121,
-0.009903146885335445,
0.03658350184559822,
-0.01420737523585558,
-0.0022046349477022886,
0.012135873548686504,
-0.039241280406713486,
-0.02071501687169075,
0.046511076390743256,
-0.004785462282598019,
0.028102071955800056,
0.023783184587955475,
-0.008256693370640278,
-0.00581877026706934,
-0.04514310508966446,
0.022649722173810005,
-0.07559027522802353,
-0.025913314893841743,
0.013376820832490921,
-0.0014937774976715446,
0.009991087950766087,
0.028258411213755608,
0.009380385279655457,
-0.0011530057527124882,
-0.024389002472162247,
-0.020343711599707603,
0.01465685199946165,
0.032499127089977264,
0.005994652397930622,
0.07273707538843155,
0.03423840552568436,
-0.01399240829050541,
-0.00932664331048727,
0.011119665578007698,
-0.01015231292694807,
0.024506255984306335,
0.03441428765654564,
-0.013806754723191261,
-0.055227018892765045,
0.04041382670402527,
0.10177718102931976,
-0.00458515202626586,
0.003737497376278043,
-0.013894695788621902,
-0.01779341883957386,
-0.07281523942947388,
0.006258476059883833,
0.10224620252847672,
-0.10474763810634613,
0.04455683007836342,
-0.04115644097328186,
-0.03914356604218483,
0.10623286664485931,
0.015184498392045498,
-0.0023573103826493025,
-0.03933899104595184,
-0.031072527170181274,
0.0028043442871421576,
-0.055656954646110535,
-0.005432806443423033,
-0.028981482610106468,
0.002503878902643919,
-0.06144152581691742,
0.05788479372859001,
0.03769742324948311,
0.05475800111889839,
0.020050574094057083,
-0.04014023393392563,
-0.01659155637025833,
0.0031243523117154837,
0.005442577879875898,
-0.01566328853368759,
0.05827564373612404,
0.006810550577938557,
0.0167283546179533,
0.06769511103630066,
-0.02315782569348812,
-0.04815264418721199,
0.05725943669676781,
-0.008124781772494316,
0.04592480510473251,
-0.012126102112233639,
-0.012174958363175392,
0.0189073383808136,
-0.01301528513431549,
-0.03517644479870796,
-0.008901595138013363,
0.042641669511795044,
-0.08606503903865814,
0.008740369230508804,
0.017578450962901115,
0.0868467316031456,
-0.0049784439615905285,
-0.051670290529727936,
-0.03638807684183121,
0.0027335030026733875,
-0.003798567457124591,
0.03447291627526283,
0.027965273708105087,
0.01292734406888485,
-0.011530056595802307,
0.006317103281617165,
-0.00557448947802186,
-0.02059776335954666,
0.03560638055205345,
-0.043931473046541214,
0.01648407243192196,
0.05069316551089287,
0.012380154803395271,
-0.022747434675693512,
0.049364279955625534,
0.047058265656232834,
0.015770772472023964,
0.04060925170779228,
-0.042798008769750595,
0.01121737714856863,
0.03845958039164543,
0.025522464886307716,
-0.007953785359859467,
0.042915262281894684,
-0.04049199819564819,
-0.009311987087130547,
-0.011696168221533298,
0.0713300108909607,
-0.06316126137971878,
0.0020910443272441626,
0.009097019210457802,
-0.014402800239622593,
0.04096101596951485,
-0.023529132828116417,
-0.057493943721055984,
0.030095404013991356,
-0.018555574119091034,
0.021750768646597862,
0.03160017356276512,
-0.01456891093403101,
-0.0032880206126719713,
0.018682600930333138,
-0.041664544492959976,
0.011227148585021496,
0.018868254497647285,
-0.03699389472603798,
-0.03212781995534897,
0.006898491643369198,
0.031052984297275543,
-0.0354500412940979,
-0.013728585094213486,
-0.02841475047171116,
-0.01328887976706028,
-0.0030290826689451933,
0.03234278783202171,
0.04248533025383949,
-0.01992354728281498,
0.027476713061332703,
-0.005276466719806194,
-0.0606207400560379,
0.08981718868017197,
0.008935794234275818,
-0.001681873807683587,
-0.023099198937416077,
0.011119665578007698,
0.004257815424352884,
-0.003517644479870796,
-0.08418896049261093,
-0.03373030200600624,
0.07648922502994537,
-0.03539141267538071,
-0.03212781995534897,
-0.0061509921215474606,
0.0217116829007864,
0.024603968486189842,
-0.07218988239765167,
-0.043657876551151276,
0.03142429143190384,
0.07148635387420654,
-0.011969762854278088,
0.02671455591917038,
-0.0025991485454142094,
0.03982755169272423,
-0.027261745184659958,
0.07187720388174057,
-0.016874922439455986,
0.05077133700251579,
-0.10099548101425171,
-0.013454990461468697,
0.0431106872856617,
-0.0010247582104057074,
0.024779850617051125,
0.07441772520542145,
0.004059948027133942,
-0.019708581268787384,
0.02984135039150715,
0.041938140988349915,
-0.004050176590681076,
0.034805137664079666,
-0.029489586129784584,
0.013796983286738396,
-0.029235534369945526,
-0.0009905588813126087,
-0.05557878315448761,
0.011129436083137989,
-0.006610240321606398,
0.06519367545843124,
-0.00972237903624773,
-0.016874922439455986,
0.05127944052219391,
-0.07007929682731628,
0.06058165431022644,
0.012585350312292576,
0.004130789544433355,
0.024056779220700264,
-0.0006809329497627914,
0.07484766095876694,
0.014471198432147503,
0.040921930223703384,
0.024623511359095573,
-0.042055394500494,
0.008784339763224125,
-0.025072988122701645,
-0.057962965220212936,
-0.006268247030675411,
-0.012888258323073387,
0.05546152964234352,
-0.05014597624540329,
0.03673984110355377,
-0.015057472512125969,
-0.010826528072357178,
0.03799056261777878,
0.021379461511969566,
-0.0010772786336019635,
-0.0014559139963239431,
-0.014119434170424938,
-0.01571214571595192,
-0.00785607285797596,
0.03374984487891197,
0.049794211983680725,
0.0019371473463252187,
0.026265079155564308,
0.023763643577694893,
-0.039241280406713486,
-0.03160017356276512,
-0.02241521328687668,
-0.019298188388347626,
-0.006957119330763817,
0.008119896054267883,
0.003290463238954544,
-0.04385330155491829,
-0.05933093652129173,
-0.0054376921616494656,
-0.029489586129784584,
-0.016034595668315887,
0.00894067995250225,
0.013112996704876423,
0.03539141267538071,
-0.009194731712341309,
0.028668802231550217,
-0.020187370479106903,
0.009160532616078854,
0.03961258754134178,
0.06284858286380768,
-0.07848256081342697,
-0.0030193114653229713,
-0.011256462894380093,
-0.04846532270312309,
-0.003363747615367174,
-0.019747665151953697,
-0.013327964581549168,
0.07680190354585648,
-0.06183237209916115,
0.023919982835650444,
0.03861591964960098,
0.027633052319288254,
0.012497409246861935,
-0.0025002146139740944,
-0.004802561830729246,
-0.050497740507125854,
-0.024936191737651825,
0.007211171090602875,
-0.020206913352012634,
-0.01335727795958519,
-0.018819397315382957,
0.02358776144683361,
0.05190479755401611,
0.04033565893769264,
0.030623050406575203,
0.015673059970140457,
-0.0018748557195067406,
-0.05299917608499527,
-0.04557304084300995,
-0.024897105991840363,
0.025072988122701645,
-0.044517744332551956,
0.023763643577694893,
0.030114945024251938,
-0.023548675701022148,
0.022200245410203934,
-0.007768131792545319,
0.05690767243504524,
0.02513161674141884,
0.06503733992576599,
-0.008833196014165878,
-0.0008678077720105648,
0.017754333093762398,
0.029040109366178513,
0.009097019210457802,
-0.009658865630626678,
0.004323771223425865,
0.01044545043259859,
0.025796059519052505,
0.03331990912556648,
-0.007660647854208946,
-0.02841475047171116,
0.060073550790548325,
0.04057016596198082,
-0.015321295708417892,
-0.03296814486384392,
-0.010806986130774021,
0.010191397741436958,
0.03566500544548035,
-0.051670290529727936,
-0.006449014879763126,
-0.017900902777910233,
0.03861591964960098,
-0.01983560621738434,
-0.02427174709737301,
0.012135873548686504,
0.03226461634039879,
0.02216115966439247,
-0.027906646952033043,
0.06140244007110596,
0.05620414391160011,
-0.0010632325429469347,
-0.010230482555925846,
0.02655821666121483,
-0.057923879474401474,
-0.0440487265586853,
0.03814690187573433,
-0.017304856330156326,
-0.028102071955800056,
0.016835836693644524,
-0.0010601789690554142,
-0.01641567423939705,
-0.0021154722198843956,
0.05186571553349495,
0.0006213894812390208,
0.06746060401201248,
0.027633052319288254,
-0.0225520096719265,
0.005725943483412266,
-0.021926650777459145,
-0.01278077531605959,
-0.005804113578051329,
0.04502585157752037,
-0.01665995456278324,
0.07047014683485031,
0.01765662059187889,
0.00045375170884653926,
0.04756636917591095,
0.03427749127149582,
-0.002684646751731634,
0.024975275620818138,
-0.04299343377351761,
-0.010308653116226196,
0.0072746844962239265,
-0.00046199618373066187,
0.001156669924966991,
-0.013562473468482494,
-0.03158063068985939,
0.0061509921215474606,
-0.003578714793547988,
-0.08160935342311859,
-0.03400389850139618,
0.04768362641334534,
-0.04185996949672699,
0.06159786507487297,
-0.009903146885335445,
0.010709273628890514,
-0.006707952823489904,
-0.01129554770886898,
-0.04858257994055748,
-0.09161509573459625,
-0.006268247030675411,
0.019395900890231133,
0.001321559539064765,
-0.06894583255052567,
-0.04326702654361725,
0.009443898685276508,
-0.007025517988950014,
0.007230713963508606,
-0.0497160442173481,
0.03158063068985939,
0.03187376633286476,
-0.02241521328687668,
0.009614895097911358,
-0.06671798974275589,
-0.02112540975213051,
0.01120760664343834,
-0.006966890301555395,
-0.007953785359859467,
-0.0047708055935800076,
-0.04948153346776962,
-0.024115407839417458,
-0.04717552289366722,
0.02272789180278778,
-0.04041382670402527,
-0.0768800750374794,
-0.007719275541603565,
0.02902056649327278,
-0.059526361525058746,
0.0037961245980113745,
0.007196514401584864,
0.042368073016405106,
-0.026401875540614128,
0.04182088375091553,
0.024252204224467278,
-0.00972237903624773,
-0.04557304084300995,
-0.027515796944499016,
0.016288649290800095,
0.022337041795253754,
-0.006659096572548151,
0.007172086276113987,
-0.031502459198236465,
0.06988386809825897,
-0.008833196014165878,
0.029685011133551598,
0.02859063260257244,
0.05577420815825462,
0.0440487265586853,
-0.006097250618040562,
-0.013914238661527634,
0.10248070955276489,
-0.026499588042497635,
0.004213844891637564,
-0.0020531807094812393,
0.01156914234161377,
0.02313828468322754,
-0.05217839404940605,
-0.0367593839764595,
-0.03070122003555298,
-0.039964351803064346,
0.010416136123239994,
-0.007054831366986036,
-0.024936191737651825,
0.0002705410588532686,
0.03986663743853569,
-0.030075861141085625,
-0.06386478990316391,
0.08098399639129639,
0.04955970123410225,
-0.012810088694095612,
0.005540289916098118,
-0.029548214748501778,
0.0417427159845829,
0.0004699353303294629,
-0.010875384323298931,
-0.04354062303900719,
0.016679497435688972,
-0.011715710163116455,
-0.018027927726507187,
-0.03496147692203522,
0.017607765272259712,
0.0457293801009655,
0.0125071806833148,
-0.008862510323524475,
0.06019080802798271,
-0.07078282535076141,
-0.06804688274860382,
-0.009732149541378021,
0.01157891284674406,
0.00661512603983283,
0.03828369826078415,
0.024115407839417458,
-0.031346119940280914,
-0.027085863053798676,
-0.036935266107320786,
-0.024936191737651825,
0.0035567295271903276,
-0.0012995742727071047,
0.027515796944499016,
-0.01713874563574791,
0.016112765297293663,
0.030623050406575203,
0.006864292547106743,
0.0205586776137352,
0.06910217553377151,
0.03570409119129181,
0.007675305008888245,
-0.014735021628439426,
0.016288649290800095,
0.024486714974045753,
-0.03259683772921562,
0.01894642412662506,
-0.05147486552596092,
0.006444129161536694,
0.032049648463726044,
0.00190294801723212,
0.003532301401719451,
0.007069488521665335,
-0.07101733237504959,
0.005906711332499981,
-0.015194269828498363,
-0.08418896049261093,
-0.07840438932180405,
0.005882283207029104,
0.021828938275575638,
-0.048817090690135956,
-0.0434233658015728,
0.011989304795861244,
-0.03347625210881233,
-0.008813654072582722,
-0.016239792108535767,
0.008877166546881199,
0.02384181320667267,
0.031248409301042557,
-0.015057472512125969,
-0.0055647180415689945,
-0.032499127089977264,
-0.0015670617576688528
] |
21,535 | tempora | get_nearest_year_for_day |
Returns the nearest year to now inferred from a Julian date.
>>> freezer = getfixture('freezer')
>>> freezer.move_to('2019-05-20')
>>> get_nearest_year_for_day(20)
2019
>>> get_nearest_year_for_day(340)
2018
>>> freezer.move_to('2019-12-15')
>>> get_nearest_year_for_day(20)
2020
| def get_nearest_year_for_day(day):
"""
Returns the nearest year to now inferred from a Julian date.
>>> freezer = getfixture('freezer')
>>> freezer.move_to('2019-05-20')
>>> get_nearest_year_for_day(20)
2019
>>> get_nearest_year_for_day(340)
2018
>>> freezer.move_to('2019-12-15')
>>> get_nearest_year_for_day(20)
2020
"""
now = time.gmtime()
result = now.tm_year
# if the day is far greater than today, it must be from last year
if day - now.tm_yday > 365 // 2:
result -= 1
# if the day is far less than today, it must be for next year.
if now.tm_yday - day > 365 // 2:
result += 1
return result
| (day) | [
-0.02078203484416008,
0.04219608008861542,
-0.04606250673532486,
0.010521137155592442,
0.003994221333414316,
-0.022845366969704628,
-0.03881295770406723,
0.03593172878026962,
0.009508059360086918,
-0.001020048395730555,
0.021581344306468964,
-0.04951998218894005,
0.0014150558272376657,
0.04885079339146614,
0.026656026020646095,
0.0032460312359035015,
0.03239990025758743,
0.08491264283657074,
-0.04067181795835495,
-0.014145910739898682,
0.03176788613200188,
-0.019629541784524918,
-0.018253987655043602,
-0.007993089966475964,
-0.033831220120191574,
0.01721302606165409,
0.05327487736940384,
0.043013978749513626,
-0.00314147025346756,
-0.02442539669573307,
0.052010852843523026,
0.00971253402531147,
0.05070965364575386,
0.027901461347937584,
0.007783968932926655,
0.056397758424282074,
0.025559300556778908,
0.014945220202207565,
-0.06145385280251503,
-0.04174995422363281,
-0.032976143062114716,
-0.030410919338464737,
0.029518667608499527,
0.0005364548414945602,
-0.04606250673532486,
-0.006673301104456186,
-0.0630524680018425,
-0.03299473226070404,
-0.0017484885174781084,
0.013960025273263454,
-0.0584796778857708,
-0.07985654473304749,
0.00835556723177433,
0.002150466665625572,
-0.04156406968832016,
0.005153684411197901,
-0.003887337166815996,
0.05673235282301903,
0.011032323352992535,
0.06855469197034836,
0.00484697287902236,
-0.05268004164099693,
-0.010205131955444813,
0.017659153789281845,
-0.007718908600509167,
-0.01624642126262188,
-0.01099514588713646,
-0.03310626372694969,
-0.061007726937532425,
-0.00942441076040268,
-0.017380325123667717,
0.03442605212330818,
-0.002686050022020936,
-0.01735244132578373,
-0.01860717125236988,
0.020057080313563347,
-0.02399786002933979,
-0.05271722003817558,
0.03948214650154114,
-0.02245500683784485,
0.03234413266181946,
-0.03858989477157593,
0.043794699013233185,
-0.02721368335187435,
0.002676755888387561,
0.029574433341622353,
0.0362105593085289,
0.029909027740359306,
-0.01946224458515644,
0.00665935967117548,
-0.006747655104845762,
-0.0016183684347197413,
0.04141535982489586,
-0.010363134555518627,
-0.02721368335187435,
0.04145253822207451,
0.04052310809493065,
0.06308964639902115,
0.014173793606460094,
-0.001247758511453867,
0.03563431277871132,
0.026042602956295013,
-0.03078269213438034,
-0.004786559846252203,
-0.024090802296996117,
0.03641503304243088,
-0.020131435245275497,
-0.04052310809493065,
-0.013904259540140629,
-0.023049842566251755,
-0.057327188551425934,
-0.05126731097698212,
0.0406346395611763,
0.046508632600307465,
-0.03989109769463539,
-0.04706628993153572,
-0.00831839069724083,
0.03282743692398071,
0.029332783073186874,
0.0028626415878534317,
-0.03634067624807358,
0.04699193686246872,
-0.05602598562836647,
0.018021630123257637,
0.08223588764667511,
0.04334857314825058,
0.04673169553279877,
0.03459335118532181,
-0.0182168111205101,
0.05401841923594475,
0.019294947385787964,
0.01742679625749588,
0.06703042984008789,
-0.040225692093372345,
0.0035945670679211617,
0.013458133675158024,
-0.06115643307566643,
0.022808190435171127,
-0.07056225836277008,
-0.042902447283267975,
-0.0008748251129873097,
-0.029258428141474724,
0.04892514646053314,
-0.009257113561034203,
0.036972690373659134,
0.03977956622838974,
-0.028589239344000816,
0.03180506452918053,
0.03321779519319534,
0.02000131458044052,
0.048330314457416534,
0.006775537971407175,
0.07517222315073013,
0.04554202780127525,
-0.020930742844939232,
-0.09264549612998962,
-0.034983713179826736,
-0.038255300372838974,
-0.011692218482494354,
0.017305970191955566,
0.038366831839084625,
-0.026860501617193222,
-0.011655041016638279,
-0.06405625492334366,
0.03955650329589844,
-0.020986508578062057,
-0.054613254964351654,
0.03466770425438881,
-0.014071556739509106,
-0.010009951889514923,
-0.0494084507226944,
0.032864611595869064,
-0.006914952304214239,
-0.004110400099307299,
-0.0033807982690632343,
0.020986508578062057,
0.010827848687767982,
-0.008992226794362068,
0.013374485075473785,
-0.020726269111037254,
0.016952786594629288,
0.0626806989312172,
-0.020689092576503754,
0.0810462161898613,
0.003531830618157983,
0.08193846791982651,
-0.02535482682287693,
0.02046602964401245,
0.0671047791838646,
0.007895500399172306,
0.010260897688567638,
0.05673235282301903,
-0.002221335656940937,
-0.03453758358955383,
-0.028087347745895386,
-0.0038060122169554234,
-0.0007952427840791643,
0.03109869733452797,
-0.06621252745389938,
0.03544842451810837,
-0.02264089323580265,
0.04509589821100235,
0.011720101349055767,
-0.06513439118862152,
0.018913881853222847,
-0.005553338676691055,
-0.04609968513250351,
0.021767228841781616,
-0.04966869205236435,
0.014396856538951397,
0.09167888760566711,
0.021116629242897034,
-0.04896232485771179,
-0.025447769090533257,
0.011998930014669895,
-0.06152820587158203,
0.009029403328895569,
-0.011562097817659378,
0.006473473738878965,
0.028217468410730362,
-0.08372297137975693,
-0.01451768260449171,
0.09643756598234177,
-0.040411576628685,
0.06636124104261398,
-0.12030529975891113,
-0.012891181744635105,
-0.017612680792808533,
-0.001873961417004466,
-0.10573185235261917,
-0.037827763706445694,
-0.11881821602582932,
-0.005599810276180506,
-0.07019048929214478,
-0.014722157269716263,
-0.04780983179807663,
0.030968578532338142,
0.009312879294157028,
-0.029983382672071457,
0.020651914179325104,
0.03191659599542618,
-0.005492926109582186,
0.002065656241029501,
0.008262624964118004,
-0.00016047173994593322,
0.013755550608038902,
-0.0038060122169554234,
-0.03267872706055641,
-0.04334857314825058,
-0.024834346026182175,
-0.025484945625066757,
-0.0030299387872219086,
0.05684388428926468,
0.035764433443546295,
0.012277758680284023,
-0.014675685204565525,
-0.010298074223101139,
-0.010186542756855488,
-0.018932471051812172,
0.0030554982367902994,
0.009833360090851784,
0.021525578573346138,
-0.05409277230501175,
-0.05160190537571907,
-0.06587793678045273,
0.003443534718826413,
-0.00794197153300047,
-0.02699062041938305,
0.055728569626808167,
-0.00016933036386035383,
0.055542681366205215,
-0.022380651906132698,
-0.0630524680018425,
0.022510772570967674,
0.03533689305186272,
-0.0077096144668757915,
0.021897349506616592,
0.07703108340501785,
0.06922388076782227,
0.054613254964351654,
-0.008843517862260342,
-0.0006140040932223201,
-0.04442670941352844,
0.004103429615497589,
-0.07565552741289139,
0.0313403494656086,
0.00700789550319314,
0.033942751586437225,
0.05881427228450775,
0.00744472723454237,
-0.03963085636496544,
-0.0033807982690632343,
0.02613554708659649,
0.012407878413796425,
0.028793713077902794,
0.04996610805392265,
0.03035515360534191,
0.018309753388166428,
0.02199029177427292,
-0.01174798421561718,
0.020373085513710976,
0.041229475289583206,
-0.01796586439013481,
0.003459799801930785,
0.011664335615932941,
0.009438352659344673,
-0.002030802657827735,
-0.05669517442584038,
-0.024667048826813698,
0.04431517794728279,
0.011413389816880226,
-0.04342292621731758,
0.05312616750597954,
-0.04003980755805969,
-0.040151339024305344,
-0.052940282970666885,
0.00010122064122697338,
-0.04996610805392265,
-0.011636452749371529,
0.038366831839084625,
0.0037711586337536573,
0.0030043795704841614,
0.05948346108198166,
0.008467098698019981,
0.016413718461990356,
-0.032938968390226364,
0.04230761155486107,
0.04583944380283356,
-0.03775341063737869,
0.00910375826060772,
-0.02000131458044052,
0.006914952304214239,
-0.02570800855755806,
-0.017594093456864357,
0.11056488752365112,
-0.029444314539432526,
0.029109720140695572,
-0.05320052057504654,
0.007272782735526562,
-0.024053625762462616,
0.016014063730835915,
-0.07193781435489655,
-0.006608240772038698,
-0.00973112229257822,
-0.007314607035368681,
0.005158331710845232,
-0.03453758358955383,
0.03028080053627491,
0.05178778991103172,
-0.04795854166150093,
0.0294629018753767,
0.07297877222299576,
-0.045133076608181,
-0.016199950128793716,
-0.02609836868941784,
0.03948214650154114,
-0.024258099496364594,
-0.0025605771224945784,
0.05149037390947342,
-0.009010815061628819,
-0.09197630733251572,
-0.03554137051105499,
0.0339985154569149,
-0.011227503418922424,
-0.014331797137856483,
0.026116957888007164,
-0.04253067448735237,
-0.014108734205365181,
0.010084305889904499,
0.010400312021374702,
-0.04044875502586365,
0.005051447078585625,
0.06617534905672073,
-0.022547949105501175,
0.00759808300063014,
0.010418900288641453,
-0.0024467220064252615,
0.03067116066813469,
-0.01174798421561718,
-0.017194438725709915,
0.03500229865312576,
-0.01155280414968729,
0.013430250808596611,
0.03955650329589844,
0.007486551534384489,
-0.046471454203128815,
0.028737947344779968,
0.0028370823711156845,
-0.07896429300308228,
-0.03713998571038246,
0.020484616979956627,
-0.03818094730377197,
0.07985654473304749,
-0.007663142867386341,
0.00035231170477345586,
0.03966803476214409,
-0.015056751668453217,
-0.0062364693731069565,
-0.00700789550319314,
0.016367247328162193,
0.07327619194984436,
0.048255957663059235,
-0.014787216670811176,
-0.0013999525690451264,
-0.017259499058127403,
0.03020644560456276,
0.042902447283267975,
0.009647473692893982,
-0.05576574429869652,
0.0249272882938385,
-0.07375949621200562,
-0.010483960621058941,
-0.00035608751932159066,
0.029946206137537956,
0.015865353867411613,
0.04487283527851105,
-0.032009538263082504,
-0.017417501658201218,
0.030541040003299713,
-0.015595820732414722,
-0.04253067448735237,
-0.07799769192934036,
-0.04684322699904442,
0.02427668869495392,
0.027009209617972374,
-0.01592111960053444,
0.06398189812898636,
-0.018793055787682533,
-0.05952063947916031,
0.03911037743091583,
0.021525578573346138,
-0.00816038716584444,
-0.06308964639902115,
-0.026767557486891747,
-0.0044775246642529964,
0.013495310209691525,
0.016265008598566055,
0.05297745764255524,
0.015289108268916607,
-0.061007726937532425,
0.0028789066709578037,
0.03444464132189751,
0.028236055746674538,
0.011636452749371529,
-0.05866556614637375,
-0.010883614420890808,
0.05026352405548096,
0.006701183971017599,
-0.07483763247728348,
-0.028775125741958618,
0.0227524247020483,
-0.06624970585107803,
0.001395305385813117,
0.038404010236263275,
0.021116629242897034,
-0.00910375826060772,
-0.05769895762205124,
-0.0136254308745265,
0.021153805777430534,
-0.019518010318279266,
0.020763445645570755,
-0.025150351226329803,
0.12350253760814667,
0.026024015620350838,
-0.004698263946920633,
-0.0084438631311059,
-0.003582949284464121,
-0.02167428657412529,
-0.011487743817269802,
-0.01473145093768835,
0.04766112565994263,
0.010112188756465912,
0.011190325953066349,
-0.023830562829971313,
-0.011682923883199692,
-0.016441600397229195,
-0.04182431101799011,
0.00232938164845109,
0.024220922961831093,
-0.015224048867821693,
-0.08067444711923599,
-0.00641770800575614,
0.029593022540211678,
-0.05268004164099693,
-0.0005077006644569337,
-0.00530239287763834,
-0.05223391577601433,
-0.030503863468766212,
0.008936461061239243,
0.020484616979956627,
0.0010002980707213283,
0.020112846046686172,
-0.0294257253408432,
-0.06940976530313492,
-0.006506003905087709,
-0.037864942103624344,
-0.005376747343689203,
0.04431517794728279,
-0.011859515681862831,
-0.006427002139389515,
-0.006696536671370268,
-0.030801281332969666,
-0.0017229291843250394,
-0.022046057507395744,
0.03035515360534191,
0.0014220265438780189,
-0.048293136060237885,
-0.04966869205236435,
0.012603058479726315,
0.02449975162744522,
0.019610954448580742,
0.03176788613200188,
0.008843517862260342,
0.005623045843094587,
0.05580292269587517,
0.014787216670811176,
0.060003943741321564,
0.03143329173326492,
0.06922388076782227,
-0.006203939206898212,
0.01727808639407158,
-0.013876376673579216,
0.04494719207286835,
0.06416778266429901,
-0.023198550567030907,
0.03559713438153267,
-0.024890111759305,
0.01831904798746109,
0.027269449084997177,
0.0029648789204657078,
-0.023719031363725662,
-0.042976800352334976,
-0.03730728477239609,
0.02113521844148636,
0.026823323220014572,
-0.035113830119371414,
0.009326821193099022,
-0.034295935183763504,
0.030410919338464737,
0.014480505138635635,
-0.02803158201277256,
-0.023904915899038315,
0.03814376890659332,
0.06279222667217255,
0.03121022880077362,
0.06123078987002373,
-0.0170364361256361,
0.0015742204850539565,
0.035299718379974365,
0.014945220202207565,
-0.02842194214463234,
0.034760650247335434,
0.052828751504421234,
0.02078203484416008,
-0.03570866584777832,
-0.057290010154247284,
-0.020224377512931824,
0.008072092197835445,
-0.043013978749513626,
-0.009233877994120121,
0.0002683726488612592,
-0.008913225494325161,
0.03416581451892853,
-0.03397992625832558,
0.038255300372838974,
0.012296346947550774,
0.015251931734383106,
-0.03420298919081688,
0.024667048826813698,
0.011273974552750587,
-0.027548277750611305,
0.03881295770406723,
0.0041870782151818275,
-0.010205131955444813,
0.05691823735833168,
0.03691692277789116,
-0.061044901609420776,
-0.043645989149808884,
-0.010130777023732662,
-0.004777265712618828,
0.014173793606460094,
-0.05134166404604912,
0.031117286533117294,
-0.006975365336984396,
-0.038441188633441925,
-0.021060863509774208,
-0.030559629201889038,
-0.009494118392467499,
0.011450566351413727,
-0.043869052082300186,
-0.0010734905954450369,
0.007035778369754553,
-0.06271787732839584,
-0.004159195348620415,
0.0014022761024534702,
-0.03985391929745674,
-0.07799769192934036,
-0.0057903435081243515,
0.01953659951686859,
0.018542110919952393,
-0.05494784936308861,
-0.018867410719394684,
-0.02810593694448471,
0.05424148216843605,
-0.008058150298893452,
0.012714589945971966,
0.043794699013233185,
-0.03528112918138504,
-0.004242843948304653,
-0.03299473226070404,
0.007807204499840736,
-0.004949209745973349,
0.0012419496197253466,
-0.0628294050693512,
-0.02132110297679901,
-0.007440079934895039,
0.023700442165136337,
-0.02609836868941784,
-0.03195377066731453,
-0.0026116957888007164,
-0.011348329484462738,
-0.00632941210642457,
0.03732587397098541,
-0.020763445645570755,
-0.01588394306600094,
-0.00851821806281805,
0.0811205729842186,
0.04780983179807663,
-0.008936461061239243,
0.010251603089272976,
-0.007867617532610893,
0.014313207939267159,
0.03228836879134178,
-0.08625102043151855,
-0.05342358350753784,
0.08617666363716125,
-0.00646417960524559,
-0.04595097526907921,
-0.037586111575365067,
0.05253133177757263,
0.008987579494714737,
0.07688237726688385,
0.0033784748520702124,
0.01660889759659767,
-0.02264089323580265,
0.014461916871368885,
0.00901546236127615,
0.02174864150583744,
-0.040969233959913254,
-0.035652901977300644,
0.004630880430340767,
0.01849563978612423,
0.031619176268577576,
-0.03420298919081688,
0.0023317052982747555,
-0.037400227040052414,
0.02070767991244793,
-0.0016369570512324572,
0.003833895083516836,
-0.027808519080281258,
0.07554399967193604,
0.028514884412288666,
0.045467671006917953,
-0.01849563978612423,
0.001428997260518372,
-0.003373827552422881,
-0.0022608363069593906,
-0.020261554047465324,
0.026042602956295013,
-0.06736502051353455,
-0.018049513921141624,
0.02028014324605465,
0.021451223641633987,
-0.016432305797934532,
0.036935511976480484,
-0.015344874933362007,
0.011394800618290901,
0.03981674090027809,
0.02156275510787964,
-0.01226846408098936,
0.008058150298893452,
0.023756207898259163,
0.044798482209444046,
0.03520677611231804,
-0.03453758358955383,
0.007049719803035259,
-0.0036294206511229277,
0.02028014324605465,
0.04728935286402702,
-0.053832534700632095,
-0.013281541876494884,
0.023719031363725662,
-0.0036851863842457533,
-0.01019583735615015,
-0.02000131458044052,
-0.07007895410060883,
-0.04003980755805969,
0.08580489456653595,
-0.027083564549684525,
-0.03992827236652374,
0.05613751709461212,
0.00691959960386157,
0.07223522663116455,
-0.00953594222664833,
-0.002885877387598157,
-0.006445590872317553,
0.025522124022245407,
0.040188513696193695,
-0.016060534864664078,
-0.032622963190078735,
0.0031530882697552443,
-0.015307697467505932,
-0.05037505552172661,
0.019518010318279266,
0.008113916032016277,
0.03663809597492218,
-0.07651060074567795,
-0.03877578303217888,
-0.008573983795940876,
-0.007691025733947754,
-0.04052310809493065,
-0.021730052307248116,
0.021376868709921837,
-0.006519945338368416,
-0.019202005118131638,
-0.05595163255929947,
0.042976800352334976,
-0.017863627523183823,
-0.021655697375535965,
0.04688040539622307,
0.012937652878463268,
0.0003764187858905643,
0.030113503336906433,
-0.026897678151726723,
-0.020930742844939232,
0.06543181091547012,
0.05955781787633896,
0.009610297158360481,
0.04974304512143135,
-0.04435235634446144,
-0.0027278743218630552,
0.040151339024305344,
-0.0026024014223366976,
-0.04502154514193535,
0.0455048494040966,
0.03474206104874611,
-0.025150351226329803,
-0.06918670237064362,
0.022194767370820045,
-0.026823323220014572,
-0.007272782735526562,
0.0005149618373252451,
0.0065757110714912415,
-0.021544165909290314,
-0.060041118413209915,
-0.05215956270694733,
0.015233342535793781,
0.0339985154569149,
0.02648872882127762,
0.03176788613200188,
0.04409211501479149,
-0.01058619748800993,
-0.030652571469545364,
0.02660026028752327,
0.015205459669232368,
0.005200156010687351,
-0.03442605212330818,
0.02357032150030136
] |
21,536 | tempora | get_period_seconds |
return the number of seconds in the specified period
>>> get_period_seconds('day')
86400
>>> get_period_seconds(86400)
86400
>>> get_period_seconds(datetime.timedelta(hours=24))
86400
>>> get_period_seconds('day + os.system("rm -Rf *")')
Traceback (most recent call last):
...
ValueError: period not in (second, minute, hour, day, month, year)
| def get_period_seconds(period):
"""
return the number of seconds in the specified period
>>> get_period_seconds('day')
86400
>>> get_period_seconds(86400)
86400
>>> get_period_seconds(datetime.timedelta(hours=24))
86400
>>> get_period_seconds('day + os.system("rm -Rf *")')
Traceback (most recent call last):
...
ValueError: period not in (second, minute, hour, day, month, year)
"""
if isinstance(period, str):
try:
name = 'seconds_per_' + period.lower()
result = globals()[name]
except KeyError:
msg = "period not in (second, minute, hour, day, month, year)"
raise ValueError(msg)
elif isinstance(period, numbers.Number):
result = period
elif isinstance(period, datetime.timedelta):
result = period.days * get_period_seconds('day') + period.seconds
else:
raise TypeError('period must be a string or integer')
return result
| (period) | [
0.012552812695503235,
0.0320267379283905,
0.027400022372603416,
0.006665126420557499,
0.042550623416900635,
0.04694979637861252,
-0.021275311708450317,
-0.01256229355931282,
-0.010457517579197884,
0.019739393144845963,
0.04372626543045044,
-0.0015560652827844024,
0.02277330495417118,
-0.059540532529354095,
-0.012391636148095131,
0.0436883382499218,
0.05912337079644203,
0.04547076299786568,
-0.06082994490861893,
-0.008656132034957409,
0.03540196642279625,
0.03485206887125969,
-0.029523760080337524,
0.0030623553320765495,
-0.003695210674777627,
0.005266682244837284,
0.024138566106557846,
-0.019265344366431236,
-0.0070017012767493725,
-0.047594502568244934,
0.06682192534208298,
0.052297066897153854,
-0.054837968200445175,
0.001992190256714821,
-0.06094371899962425,
0.0703488439321518,
0.0071107326075434685,
0.0009498753352090716,
-0.03682411462068558,
0.04141290485858917,
-0.04425719752907753,
-0.01796645112335682,
0.010618694126605988,
0.02766549028456211,
0.003074206644669175,
-0.030244315043091774,
0.06409139931201935,
-0.022356143221259117,
-0.018061259761452675,
-0.021616626530885696,
0.053358934819698334,
-0.030054695904254913,
-0.040388960391283035,
-0.01650637947022915,
-0.047594502568244934,
0.023797251284122467,
-0.016933023929595947,
0.06249859556555748,
-0.03451075404882431,
0.06325707584619522,
0.02743794582784176,
-0.026755316182971,
-0.013785339891910553,
0.032064661383628845,
-0.047063566744327545,
-0.013481948524713516,
0.008205785416066647,
0.0029746564105153084,
-0.015416068024933338,
-0.06075409799814224,
0.019910050556063652,
-0.050855956971645355,
-0.03845484182238579,
-0.02743794582784176,
0.0549517385661602,
0.013946516439318657,
0.02315254509449005,
-0.032955873757600784,
0.0015951743116602302,
0.03902370110154152,
0.009125439450144768,
0.0016508750850334764,
0.02309565804898739,
0.05991977080702782,
0.05878205597400665,
0.037298161536455154,
-0.010002430528402328,
-0.012979457154870033,
-0.055179283022880554,
0.055368904024362564,
-0.034965842962265015,
0.010410112328827381,
0.04645678400993347,
0.0026167496107518673,
-0.02129427343606949,
0.02707766927778721,
-0.030661478638648987,
0.000979503383859992,
-0.0508938804268837,
-0.04035103693604469,
0.006470766384154558,
0.04160252586007118,
0.021104654297232628,
0.0025290504563599825,
0.05021125078201294,
0.01724589616060257,
-0.024460919201374054,
-0.08631481230258942,
0.07880587875843048,
-0.0190283190459013,
-0.003451075404882431,
0.03361954167485237,
-0.018013855442404747,
-0.006138932425528765,
-0.006285887211561203,
-0.0161461029201746,
-0.0054468209855258465,
-0.00009266172855859622,
-0.04710149019956589,
-0.0112159950658679,
-0.02764652669429779,
0.07091770321130753,
0.0008432143367826939,
0.040085569024086,
0.05768226087093353,
0.031192412599921227,
-0.034074630588293076,
-0.012865684926509857,
0.04839090257883072,
0.08510124683380127,
0.02800680510699749,
-0.02728625014424324,
0.08548048138618469,
-0.017207972705364227,
0.06378801167011261,
0.00359328999184072,
-0.02690701186656952,
0.08904533088207245,
-0.04516737163066864,
0.001985079376026988,
0.01609869860112667,
0.05404156446456909,
-0.06951452046632767,
0.03523130714893341,
0.021427007392048836,
0.02186313271522522,
-0.0022268444299697876,
0.007693812251091003,
-0.03214051201939583,
0.06659437716007233,
-0.02673635445535183,
-0.014117173850536346,
0.050514642149209976,
0.040009722113609314,
0.026641543954610825,
-0.0313061848282814,
0.0100213922560215,
0.0069732582196593285,
-0.06697361916303635,
-0.07641667127609253,
-0.012780356220901012,
0.01642105169594288,
-0.05965430289506912,
-0.04899768531322479,
0.07076600939035416,
-0.016838213428854942,
0.066935695707798,
0.030244315043091774,
-0.0005152318044565618,
0.006878448650240898,
0.019739393144845963,
0.00938616693019867,
0.014060287736356258,
-0.009476236067712307,
-0.004403913393616676,
0.020365137606859207,
0.01203135959804058,
-0.028480853885412216,
0.00013302995648700744,
-0.02929621748626232,
0.025162512436509132,
0.00796402059495449,
-0.03627421706914902,
0.03286106511950493,
-0.004083930514752865,
0.009163363836705685,
-0.020327214151620865,
-0.0006405584863387048,
-0.03737400844693184,
-0.007087029982358217,
0.023247353732585907,
0.04148875176906586,
-0.0008521027630195022,
0.05131104588508606,
0.006437582895159721,
0.0003519812598824501,
-0.027039745822548866,
-0.02129427343606949,
0.013955997303128242,
0.014856690540909767,
0.009381426498293877,
0.03052874468266964,
0.013093228451907635,
-0.003982010297477245,
0.00373076437972486,
-0.013662086799740791,
-0.015472954139113426,
0.03181815892457962,
-0.052676305174827576,
-0.05548267439007759,
-0.025769293308258057,
-0.05381402373313904,
0.021275311708450317,
-0.005442080553621054,
0.01136769074946642,
0.040199339389801025,
0.03126826137304306,
-0.04175421968102455,
-0.013150114566087723,
-0.03248182684183121,
0.0026167496107518673,
0.006954296492040157,
0.0654945895075798,
0.009144402109086514,
0.02546590380370617,
-0.04353664442896843,
-0.015776345506310463,
-0.04376418888568878,
-0.009073294699192047,
-0.01936015486717224,
0.04315740615129471,
-0.017748387530446053,
-0.007466269191354513,
-0.012846723198890686,
0.07618913054466248,
-0.07429293543100357,
-0.011614196002483368,
-0.005868724547326565,
0.08108130842447281,
-0.05131104588508606,
-0.00886471290141344,
-0.001599914743565023,
-0.010410112328827381,
0.05115934833884239,
0.011879663914442062,
0.0066746072843670845,
0.0315716527402401,
-0.002612008946016431,
-0.05688586086034775,
0.008883674629032612,
0.00898322556167841,
-0.019796278327703476,
0.0019969306886196136,
0.004811595659703016,
0.03166646137833595,
0.01970146968960762,
0.034207362681627274,
0.0888177901506424,
-0.004648048896342516,
0.050704263150691986,
0.02673635445535183,
-0.022640572860836983,
0.008314816281199455,
-0.048732221126556396,
-0.009571045637130737,
-0.020896071568131447,
-0.003275677328929305,
0.004335176665335894,
-0.02838604338467121,
0.015861673280596733,
0.018061259761452675,
-0.03149580582976341,
-0.021559741348028183,
-0.045622460544109344,
-0.0004912330769002438,
-0.042929861694574356,
0.013681049458682537,
0.053738176822662354,
0.09450637549161911,
0.03824625909328461,
-0.05480004474520683,
0.0018416796810925007,
-0.014932538382709026,
-0.032254282385110855,
-0.036425910890102386,
0.04835297912359238,
0.022849153727293015,
-0.018715446814894676,
0.03581912815570831,
0.06041278317570686,
-0.057720184326171875,
-0.020839186385273933,
-0.002692597219720483,
-0.027494831010699272,
-0.0626123696565628,
0.07645459473133087,
-0.03358161821961403,
-0.088286854326725,
0.04228515550494194,
0.01654430478811264,
-0.002815850079059601,
0.043081555515527725,
-0.06318122893571854,
0.02887905389070511,
-0.05798565223813057,
0.008390664122998714,
0.026622582226991653,
-0.02491600625216961,
0.018677523359656334,
0.01894299127161503,
-0.024972891435027122,
-0.016174545511603355,
0.03600874915719032,
0.054686274379491806,
0.03762051463127136,
0.02925829403102398,
-0.03739297017455101,
-0.01345350593328476,
-0.01455329917371273,
0.045091524720191956,
0.004256958607584238,
0.02656569704413414,
0.04122328758239746,
0.03238701447844505,
0.05438288301229477,
0.02275434322655201,
-0.00555111188441515,
0.045091524720191956,
0.034415945410728455,
-0.013794820755720139,
-0.018630119040608406,
-0.00867509376257658,
0.0278361476957798,
-0.00870827678591013,
0.00944779347628355,
-0.009561564773321152,
0.010248935781419277,
-0.015482435002923012,
0.010533364489674568,
0.0026167496107518673,
0.10595939308404922,
-0.04895976185798645,
-0.03682411462068558,
-0.018193993717432022,
0.0010589065495878458,
-0.03644487261772156,
0.027703413739800453,
0.0018796036019921303,
0.06572213023900986,
-0.052676305174827576,
0.006503949873149395,
0.022811230272054672,
-0.016942504793405533,
0.05991977080702782,
-0.04751865565776825,
0.042209308594465256,
0.05043879523873329,
-0.02330424077808857,
-0.0028727359604090452,
-0.03543988987803459,
0.00497277220711112,
0.05316931754350662,
0.04899768531322479,
-0.03272832930088043,
0.01425938867032528,
0.04069235175848007,
0.019910050556063652,
-0.055368904024362564,
-0.0016650964971631765,
-0.013292329385876656,
0.009471495635807514,
-0.006537133362144232,
0.054269108921289444,
-0.05965430289506912,
0.02618645690381527,
0.04645678400993347,
-0.008575542829930782,
0.009130180813372135,
0.0010612767655402422,
-0.0034629267174750566,
0.02999780885875225,
-0.0599956177175045,
-0.014268869534134865,
0.06500157713890076,
0.0023263946641236544,
-0.011870183050632477,
-0.034567639231681824,
-0.03653968498110771,
0.018317246809601784,
0.032254282385110855,
-0.04638093709945679,
-0.008883674629032612,
-0.02258368581533432,
-0.02224237099289894,
-0.03815145045518875,
0.008490214124321938,
-0.03978217765688896,
-0.027400022372603416,
-0.009879177436232567,
0.012382155284285545,
0.04088196903467178,
-0.041299134492874146,
0.04827713221311569,
0.06382593512535095,
-0.001755165751092136,
0.04569830745458603,
0.0006844080053269863,
-0.021256349980831146,
-0.003944086376577616,
-0.0034463349729776382,
-0.004707304760813713,
-0.027741337195038795,
-0.012856204062700272,
-0.00850443635135889,
0.00017213898536283523,
-0.06488780677318573,
-0.03902370110154152,
-0.010637655854225159,
0.045432839542627335,
-0.043460797518491745,
-0.034567639231681824,
-0.0907139852643013,
0.029770266264677048,
0.04387795925140381,
0.039820101112127304,
0.07482386380434036,
0.04748073220252991,
0.04243684932589531,
-0.01705627702176571,
0.06409139931201935,
-0.03210258483886719,
0.07220711559057236,
-0.11877767741680145,
-0.048694293946027756,
0.06200558692216873,
0.02347489818930626,
-0.014041326008737087,
0.05347270891070366,
-0.011244438588619232,
-0.001236082287505269,
0.012590737082064152,
0.0657600536942482,
-0.003531663678586483,
0.02529524452984333,
-0.003154794918373227,
-0.032974835485219955,
-0.01545399148017168,
0.009419349953532219,
-0.045584533363580704,
-0.06029900908470154,
-0.007305092643946409,
-0.02997884713113308,
0.05635492503643036,
-0.000574191624764353,
0.018288804218173027,
-0.006266925483942032,
0.014657589606940746,
0.01678132824599743,
0.009277135133743286,
-0.020668528974056244,
-0.017786312848329544,
0.02440403401851654,
0.018952472135424614,
-0.01136769074946642,
-0.046494707465171814,
-0.022507838904857635,
-0.004804485011845827,
-0.03335407376289368,
0.005152910947799683,
0.05316931754350662,
0.024081680923700333,
0.06780794262886047,
-0.029770266264677048,
-0.0006524096825160086,
-0.022109637036919594,
-0.008566061966121197,
0.00974644348025322,
0.017852678894996643,
-0.017321744933724403,
0.0012171203270554543,
-0.01058076974004507,
-0.03054770641028881,
0.005750212352722883,
0.04209553450345993,
0.00551318796351552,
-0.032443903386592865,
-0.045091524720191956,
0.014761880040168762,
0.035857051610946655,
-0.06371216475963593,
-0.012524370104074478,
-0.02074437588453293,
0.01836465112864971,
-0.04858052358031273,
-0.015567763708531857,
-0.059540532529354095,
-0.03481414541602135,
0.062422748655080795,
-0.019388597458600998,
0.008992706425487995,
-0.03557262569665909,
0.03917539492249489,
0.03543988987803459,
-0.020668528974056244,
0.014164579100906849,
0.02237510494887829,
-0.030111581087112427,
0.03020639158785343,
0.033316150307655334,
-0.04698771983385086,
-0.036767225712537766,
0.04482605680823326,
-0.02076333947479725,
-0.010173087939620018,
-0.022526800632476807,
-0.03183712065219879,
0.055179283022880554,
-0.030604591593146324,
0.010002430528402328,
-0.00009940211020875722,
0.03619837015867233,
-0.01953081227838993,
-0.01724589616060257,
0.06265029311180115,
-0.005546371452510357,
-0.03526923432946205,
-0.08214318007230759,
-0.06481195241212845,
-0.007712774444371462,
0.013140633702278137,
0.04573623090982437,
-0.023967908695340157,
0.00826267059892416,
-0.004240366630256176,
0.061512574553489685,
-0.03940293937921524,
-0.03392293304204941,
-0.07201749831438065,
-0.0026973378844559193,
0.04046480730175972,
-0.05510343611240387,
-0.01932222954928875,
0.04353664442896843,
0.09344450384378433,
0.04141290485858917,
-0.009561564773321152,
-0.017871640622615814,
0.02603476122021675,
0.02599683776497841,
0.03798079118132591,
0.01644001342356205,
-0.027229364961385727,
-0.018402574583888054,
-0.0012621550122275949,
-0.008741460740566254,
-0.03815145045518875,
0.0002442832919768989,
-0.018307765945792198,
0.010874680243432522,
-0.015814268961548805,
-0.0058450219221413136,
-0.048163361847400665,
0.030775249004364014,
-0.027058707550168037,
-0.03037704899907112,
-0.07300351560115814,
0.030851097777485847,
-0.024271300062537193,
-0.06101956591010094,
-0.010798832401633263,
-0.009684817865490913,
0.07933681458234787,
-0.0014351828722283244,
0.021351158618927002,
0.05218329653143883,
0.007252946961671114,
0.01227786485105753,
-0.005764433648437262,
0.008978485129773617,
0.03257663547992706,
-0.01136769074946642,
0.017103681340813637,
-0.05787188187241554,
0.002135589951649308,
-0.054989662021398544,
0.006375956814736128,
-0.022450951859354973,
-0.054648347198963165,
0.024271300062537193,
0.023531783372163773,
-0.025257321074604988,
-0.01492305751889944,
-0.004126594867557287,
0.014363679103553295,
0.021047767251729965,
0.01464810874313116,
-0.04611546918749809,
0.023057734593749046,
-0.024840159341692924,
0.03464348986744881,
-0.06636683642864227,
-0.009869696572422981,
0.04933900013566017,
0.06659437716007233,
0.01291309017688036,
-0.00934350211173296,
0.0408061221241951,
0.0139180738478899,
0.007295611314475536,
-0.02491600625216961,
0.010201530531048775,
-0.059881847351789474,
0.030661478638648987,
0.026888050138950348,
0.05385194718837738,
0.012552812695503235,
-0.03528819605708122,
-0.026110609993338585,
0.028575662523508072,
-0.02385413646697998,
-0.0917000025510788,
0.019587697461247444,
-0.020270327106118202,
-0.02207171358168125,
-0.051766131073236465,
0.006935334298759699,
-0.016221951693296432,
-0.03794286772608757,
-0.03737400844693184,
-0.11157213151454926,
-0.025807218626141548,
0.013766378164291382,
0.0472911112010479,
-0.10216700285673141,
-0.05707547813653946,
0.02781718596816063,
-0.008257930167019367,
-0.026470886543393135,
-0.046001698821783066,
0.039327092468738556,
0.0835084393620491,
0.03671034052968025,
-0.03633110225200653,
-0.023986870422959328,
-0.022507838904857635,
-0.04012349247932434,
-0.022488877177238464,
-0.010760908015072346,
0.03020639158785343,
0.005020176991820335,
-0.0444088950753212,
-0.014742918312549591,
0.0068120816722512245,
-0.03989594802260399,
-0.019549774006009102,
-0.05707547813653946,
0.03138203173875809,
-0.0513489693403244,
-0.012458003126084805,
-0.008646650239825249,
0.0250866636633873,
-0.0007910690037533641,
-0.027741337195038795,
0.032083623111248016,
-0.02332320250570774,
-0.07455839961767197,
-0.04475020989775658,
0.035136498510837555,
0.038909927010536194,
-0.05290384963154793,
0.07690968364477158,
-0.024479880928993225,
0.035705357789993286,
-0.004332806449383497,
-0.0122968265786767,
0.047973740845918655,
0.007105991709977388,
0.01545399148017168,
0.02311462163925171,
0.024347146973013878,
-0.005209796596318483,
-0.01202187780290842,
0.02309565804898739,
-0.03526923432946205,
-0.002255287254229188,
0.014998904429376125,
-0.0021628476679325104,
-0.06177804246544838,
-0.020289290696382523,
-0.022337181493639946,
-0.04133705794811249,
0.012382155284285545,
-0.06352254003286362,
0.017037315294146538,
0.03409359231591225,
-0.057530567049980164,
-0.0451294481754303,
0.07763023674488068,
0.06492573022842407,
0.045774154365062714,
-0.00695903692394495,
-0.04050273075699806,
0.032804179936647415,
-0.030756287276744843,
-0.0018073112005367875,
-0.0377911739051342,
0.01085571851581335,
-0.02584514208137989,
0.006314330268651247,
-0.040730275213718414,
-0.002078704070299864,
0.010960008949041367,
0.0278361476957798,
0.04239892587065697,
0.0031713866628706455,
0.029391027987003326,
-0.08267411589622498,
0.013263885863125324,
0.017634617164731026,
0.011765891686081886,
0.022014828398823738,
0.0035766984801739454,
0.02834811992943287,
0.033676426857709885,
-0.05169028416275978,
-0.011784853413701057,
0.03951670974493027,
0.04645678400993347,
0.05878205597400665,
0.010334264487028122,
-0.044522665441036224,
-0.015084234066307545,
-0.023057734593749046,
-0.047822047024965286,
-0.003323082346469164,
0.0415266789495945,
0.01968250796198845,
-0.013254404999315739,
0.017890602350234985,
0.001343928393907845,
-0.01399392168968916,
0.03428320959210396,
-0.029334140941500664,
-0.007708034012466669,
0.010362707078456879,
-0.05313139408826828,
-0.01650637947022915,
-0.012429560534656048,
0.025541750714182854,
-0.05620322749018669,
-0.0408061221241951,
-0.053776100277900696,
-0.0626123696565628,
0.0030410231556743383,
-0.016022849828004837,
-0.0463050901889801,
-0.009917101822793484,
0.003154794918373227,
-0.016857177019119263,
0.022014828398823738,
0.020915035158395767,
0.018374131992459297,
0.041109513491392136,
0.04061650484800339,
0.04930107668042183,
-0.015387624502182007,
-0.01726485788822174,
-0.025579674169421196
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.