Skip to content

Commit

Permalink
Change get_verts() rounding
Browse files Browse the repository at this point in the history
Now rounds the vert positions to 4 decimal places. Reduces data
required for storing the snapshots, but there was also floating
point errors when testing on my mac laptops after 5-8 decimal places
that were slightly different to other machines.

This level of accurary should be more than enough, as each vert
is being tested on 3 degrees of freedom.
  • Loading branch information
BradyAJohnston committed May 17, 2023
1 parent f897fde commit 1511433
Show file tree
Hide file tree
Showing 7 changed files with 410 additions and 403 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ logs/side-packages-install.log
*.pyc
.Rproj.user
/.quarto/
*egg*/*
*egg*/*
build/*
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
docs-build:
cd docs && quartodoc build
quarto render docs

test:
pip3 install .
pytest -vv
200 changes: 100 additions & 100 deletions tests/snapshots/test_load/test_local_pdb/1L58_verts.txt
Original file line number Diff line number Diff line change
@@ -1,100 +1,100 @@
0.4432099759578705,-0.031849998980760574,0.08902999758720398
0.43863996863365173,-0.01833999902009964,0.09049999713897705
0.42454999685287476,-0.018890000879764557,0.09569999575614929
0.41769999265670776,-0.028359999880194664,0.09260999411344528
0.43845000863075256,-0.011779999360442162,0.07677999883890152
0.4330199658870697,0.0021199998445808887,0.0777599960565567
0.44582000374794006,0.01440999936312437,0.07534999400377274
0.4609299600124359,0.005640000104904175,0.07897000014781952
0.4204399883747101,-0.008979999460279942,0.10371000319719315
0.40703997015953064,-0.0081599997356534,0.10928000509738922
0.40323999524116516,0.006399999838322401,0.10958999395370483
0.4115000069141388,0.01480999868363142,0.10649999231100082
0.40650999546051025,-0.014739999547600746,0.12330999970436096
0.41644999384880066,-0.008659999817609787,0.13331998884677887
0.4159099757671356,0.0031900000758469105,0.13628000020980835
0.4256899952888489,-0.016529999673366547,0.1385899931192398
0.3910199999809265,0.009340000338852406,0.11362999677658081
0.3859799802303314,0.022830000147223473,0.1141899973154068
0.39458999037742615,0.032739996910095215,0.12239000201225281
0.3958800137042999,0.04455999657511711,0.11897999793291092
0.370959997177124,0.023420000448822975,0.11772000044584274
0.3649899959564209,0.03773000091314316,0.11576999723911285
0.3686000108718872,0.018149999901652336,0.13198000192642212
0.36583998799324036,0.043769996613264084,0.10154999792575836
0.39976999163627625,0.028469998389482498,0.13376998901367188
0.4076499938964844,0.03756999969482422,0.14207999408245087
0.420879989862442,0.04171000048518181,0.1353899985551834
0.4250299632549286,0.0532200001180172,0.13600000739097595
0.410209983587265,0.030619999393820763,0.15557999908924103
0.3977999687194824,0.030169999226927757,0.16367000341415405
0.3898300230503082,0.018639998510479927,0.16356000304222107
0.39395999908447266,0.04127999767661095,0.17135000228881836
0.37797999382019043,0.018300000578165054,0.1712000072002411
0.38223996758461,0.040939997881650925,0.17910999059677124
0.374239981174469,0.029360000044107437,0.17899999022483826
0.4280199706554413,0.03183000162243843,0.12962999939918518
0.4402199983596802,0.03473999723792076,0.1224299967288971
0.43710997700691223,0.04317999631166458,0.11020000278949738
0.44477999210357666,0.05178000032901764,0.10655999928712845
0.44682997465133667,0.021889997646212578,0.11748000234365463
0.4511699974536896,0.01249999925494194,0.1290299892425537
0.4560999870300293,-0.0008699999307282269,0.12395000457763672
0.4562999904155731,-0.003930000122636557,0.11222999542951584
0.46004000306129456,-0.008790000341832638,0.13348999619483948
0.425849974155426,0.04065999761223793,0.10373999178409576
0.4223899841308594,0.04839999973773956,0.09212999790906906
0.42027997970581055,0.0630199983716011,0.09583999216556549
0.42524999380111694,0.07263999432325363,0.08966999500989914
0.4088899791240692,0.04374999925494194,0.08653999865055084
0.40550997853279114,0.04908999800682068,0.07248000055551529
0.3881700038909912,0.04663999751210213,0.0699400007724762
0.3863600194454193,0.046509999781847,0.051750000566244125
0.4121599793434143,0.06502999365329742,0.10589999705553055
0.40925997495651245,0.07902000099420547,0.10977999120950699
0.4214400053024292,0.08575999736785889,0.11598999798297882
0.4229699969291687,0.09789999574422836,0.11507999897003174
0.3975299894809723,0.07986000180244446,0.11941000074148178
0.38395997881889343,0.0791499987244606,0.1123099997639656
0.37307998538017273,0.07578999549150467,0.12251000106334686
0.38110998272895813,0.0927099958062172,0.10565999895334244
0.4300599992275238,0.07785999774932861,0.12255999445915222
0.44210997223854065,0.0837399959564209,0.12835000455379486
0.4513700008392334,0.08888999372720718,0.11721999943256378
0.45792996883392334,0.09923999756574631,0.11890000104904175
0.44842997193336487,0.07461999356746674,0.13878999650478363
0.4625599980354309,0.07818000018596649,0.142209991812706
0.46310001611709595,0.08776000142097473,0.15393999218940735
0.4765700101852417,0.09247999638319016,0.1571899950504303
0.48534998297691345,0.09862000495195389,0.14907999336719513
0.483240008354187,0.10131999850273132,0.13604998588562012
0.49698999524116516,0.10218000411987305,0.15446999669075012
0.4511299729347229,0.082349993288517,0.1054299995303154
0.45893001556396484,0.08706999570131302,0.09415999799966812
0.4527899920940399,0.10001999884843826,0.0884300023317337
0.45941999554634094,0.11015000194311142,0.08652999997138977
0.4614199697971344,0.07612999528646469,0.083529993891716
0.47175997495651245,0.06546999514102936,0.08756999671459198
0.463809996843338,0.0814799964427948,0.06938000023365021
0.4690999984741211,0.05227000266313553,0.0807499960064888
0.43967998027801514,0.10034999251365662,0.08678000420331955
0.432919979095459,0.1120699942111969,0.08114999532699585
0.43236997723579407,0.12443999946117401,0.08998999744653702
0.4318599998950958,0.13583999872207642,0.08529999852180481
0.41849997639656067,0.10802999883890152,0.07679999619722366
0.4188399910926819,0.09939999133348465,0.06435000151395798
0.42803001403808594,0.09965000301599503,0.0565200001001358
0.40849998593330383,0.09154999256134033,0.06265999376773834
0.4315199851989746,0.12229999154806137,0.10300999134778976
0.42986997961997986,0.13369999825954437,0.11173000186681747
0.442330002784729,0.13864000141620636,0.11858999729156494
0.44294998049736023,0.1501999944448471,0.12267999351024628
0.4194599688053131,0.1302099972963333,0.12254999577999115
0.4059000015258789,0.12719999253749847,0.11620999872684479
0.39812999963760376,0.13898999989032745,0.11142999678850174
0.3876599669456482,0.1377899944782257,0.10604999214410782
0.4032000005245209,0.15053999423980713,0.11420999467372894
0.4516400098800659,0.12960000336170197,0.120899997651577
0.4637099802494049,0.1327499896287918,0.1282700002193451
0.4609999656677246,0.13284000754356384,0.14337000250816345
0.45009997487068176,0.12982000410556793,0.14757999777793884
0.4432,-0.0318,0.089
0.4386,-0.0183,0.0905
0.4245,-0.0189,0.0957
0.4177,-0.0284,0.0926
0.4385,-0.0118,0.0768
0.433,0.0021,0.0778
0.4458,0.0144,0.0753
0.4609,0.0056,0.079
0.4204,-0.009,0.1037
0.407,-0.0082,0.1093
0.4032,0.0064,0.1096
0.4115,0.0148,0.1065
0.4065,-0.0147,0.1233
0.4164,-0.0087,0.1333
0.4159,0.0032,0.1363
0.4257,-0.0165,0.1386
0.391,0.0093,0.1136
0.386,0.0228,0.1142
0.3946,0.0327,0.1224
0.3959,0.0446,0.119
0.371,0.0234,0.1177
0.365,0.0377,0.1158
0.3686,0.0181,0.132
0.3658,0.0438,0.1015
0.3998,0.0285,0.1338
0.4076,0.0376,0.1421
0.4209,0.0417,0.1354
0.425,0.0532,0.136
0.4102,0.0306,0.1556
0.3978,0.0302,0.1637
0.3898,0.0186,0.1636
0.394,0.0413,0.1714
0.378,0.0183,0.1712
0.3822,0.0409,0.1791
0.3742,0.0294,0.179
0.428,0.0318,0.1296
0.4402,0.0347,0.1224
0.4371,0.0432,0.1102
0.4448,0.0518,0.1066
0.4468,0.0219,0.1175
0.4512,0.0125,0.129
0.4561,-0.0009,0.124
0.4563,-0.0039,0.1122
0.46,-0.0088,0.1335
0.4258,0.0407,0.1037
0.4224,0.0484,0.0921
0.4203,0.063,0.0958
0.4252,0.0726,0.0897
0.4089,0.0437,0.0865
0.4055,0.0491,0.0725
0.3882,0.0466,0.0699
0.3864,0.0465,0.0518
0.4122,0.065,0.1059
0.4093,0.079,0.1098
0.4214,0.0858,0.116
0.423,0.0979,0.1151
0.3975,0.0799,0.1194
0.384,0.0791,0.1123
0.3731,0.0758,0.1225
0.3811,0.0927,0.1057
0.4301,0.0779,0.1226
0.4421,0.0837,0.1284
0.4514,0.0889,0.1172
0.4579,0.0992,0.1189
0.4484,0.0746,0.1388
0.4626,0.0782,0.1422
0.4631,0.0878,0.1539
0.4766,0.0925,0.1572
0.4853,0.0986,0.1491
0.4832,0.1013,0.136
0.497,0.1022,0.1545
0.4511,0.0823,0.1054
0.4589,0.0871,0.0942
0.4528,0.1,0.0884
0.4594,0.1102,0.0865
0.4614,0.0761,0.0835
0.4718,0.0655,0.0876
0.4638,0.0815,0.0694
0.4691,0.0523,0.0807
0.4397,0.1003,0.0868
0.4329,0.1121,0.0811
0.4324,0.1244,0.09
0.4319,0.1358,0.0853
0.4185,0.108,0.0768
0.4188,0.0994,0.0644
0.428,0.0997,0.0565
0.4085,0.0915,0.0627
0.4315,0.1223,0.103
0.4299,0.1337,0.1117
0.4423,0.1386,0.1186
0.4429,0.1502,0.1227
0.4195,0.1302,0.1225
0.4059,0.1272,0.1162
0.3981,0.139,0.1114
0.3877,0.1378,0.106
0.4032,0.1505,0.1142
0.4516,0.1296,0.1209
0.4637,0.1327,0.1283
0.461,0.1328,0.1434
0.4501,0.1298,0.1476
Loading

0 comments on commit 1511433

Please sign in to comment.