From 0eee0c1a5c9ec79109d77f4979bb95df9302e6a5 Mon Sep 17 00:00:00 2001 From: "Adam M. Krajewski" <54290107+amkrajewski@users.noreply.github.com> Date: Mon, 12 Feb 2024 13:22:22 -0500 Subject: [PATCH] (RSS) tests for `KS2022_randomSolutions` now have tighter convergence limits thanks to the two-iteration convergence requirement; added new reference data --- ...KS2022_randomSolution_valueRangesMeans.csv | 512 +++++++++--------- pysipfenn/tests/test_KS2022_randomSolution.py | 5 +- 2 files changed, 260 insertions(+), 257 deletions(-) diff --git a/pysipfenn/tests/testCaseFiles/TestFile_DescriptorData_KS2022_randomSolution_valueRangesMeans.csv b/pysipfenn/tests/testCaseFiles/TestFile_DescriptorData_KS2022_randomSolution_valueRangesMeans.csv index 731f1a8..e357428 100644 --- a/pysipfenn/tests/testCaseFiles/TestFile_DescriptorData_KS2022_randomSolution_valueRangesMeans.csv +++ b/pysipfenn/tests/testCaseFiles/TestFile_DescriptorData_KS2022_randomSolution_valueRangesMeans.csv @@ -1,256 +1,256 @@ -0 , 11.956922 -2.25653E-13 , 8.41582E-14 -0 , 11.956922 -0 , 11.956922 -2.59662E-14 , 9.997E-15 -0 , 1 -0 , 1 -0 , 0.051981524 -6.1973E-16 , 5.05368E-16 -0 , 0.051981524 -0 , 0.051981524 -1.96799E-15 , 7.81255E-15 -0 , 0.68017477 -0.495706 , 7.156059838 -0.3536611 , 1.836693654 -1.4406951 , 1.630815723 -2.075388 , 13.82523968 -3.031089 , 12.19442395 -0.69352 , 9.54204688 -0.3396263 , 2.305430422 -2.7079263 , 3.0541716 -4.030012 , 20.01459632 -5.103964 , 16.96042466 -1.143624 , 15.94405229 -0.7997267 , 4.173909624 -3.4152157 , 3.301960464 -5.195869 , 30.99760564 -7.014918 , 27.69564488 -38.30625 , 497.9362926 -21.44297 , 118.9397736 -172.6905 , 138.1111104 -225.01376 , 1032.616791 -239.11011 , 894.505668 -0.2121525 , 2.71884916 -0.08371147 , 0.689176477 -0.7313326 , 0.811622682 -1.045017 , 5.978859842 -1.335655 , 5.167237158 -0.03960428 , 0.461833102 -0.03373618 , 0.160188756 -0.037334874 , 0.012693857 -0.0969989 , 0.980139291 -0.11200464 , 0.967445437 -0.6193517 , 6.76711774 -0.2724491 , 1.903122842 -2.47034754 , 1.669776075 -2.633975 , 15.9932682 -3.321367 , 14.32349224 -0.01000747 , 0.1416168 -0.005979603 , 0.028839132 -0.05060023 , 0.03627259 -0.05269384 , 0.257864171 -0.08299397 , 0.221591581 -0.06750154 , 0.378515474 -0.02223407 , 0.20529251 -0 , 0 -0.03733486 , 0.999253303 -0.03733486 , 0.999253303 -0.03960428 , 0.461833102 -0.03373618 , 0.160188756 -0.037334874 , 0.012693857 -0.0969989 , 0.980139291 -0.11200464 , 0.967445437 -0.3310651 , 4.107159046 -0.1388009 , 0.981995232 -1.18667435 , 1.292237272 -1.685956 , 8.195215332 -2.0219698 , 6.902978044 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0.2633564 , 3.46139504 -0.1110069 , 0.736185641 -1.1866744 , 1.123709131 -1.1266513 , 6.61388276 -1.8883546 , 5.490173664 -0.06750154 , 0.378515474 -0.02223407 , 0.20529251 -0 , 0 -0.03733486 , 0.999253303 -0.03733486 , 0.999253303 -0.1980214 , 2.30916551 -0.1686809 , 0.800943778 -0.18667437 , 0.063469286 -0.4849944 , 4.900696344 -0.5600233 , 4.83722702 -0.1624366 , 2.07243773 -0.0728083 , 0.543533358 -0.53733489 , 0.345320251 -0.6866742 , 4.489935366 -0.8360138 , 4.144615076 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0.1622579 , 1.797459108 -0.076864 , 0.505663534 -0.53001155 , 0.406009489 -0.7536616 , 3.975001402 -0.8356548 , 3.568991906 -0.2124889 , 2.836383928 -0.1711379 , 0.832906893 -0.43589822 , 0.428110908 -0.734869 , 5.705615302 -0.7972693 , 5.277504378 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0.0927644 , 0.76869418 -0.03608947 , 0.334015947 -0.115505196 , 0.023239168 -0.1501998 , 2.055008426 -0.2079524 , 2.031769284 -0 , 6 -0.02524308 , 0.461492413 -0.03814195 , 0.387214791 -0.0483238 , 0.36416448 -0.05011593 , 0.362282451 -0.0504089 , 0.362087858 -0.73686 , 21.80250736 -0 , 16 -0.3910186 , 6.37080091 -0 , 29 -0 , 13 -0 , 13 -0.783653 , 63.04611016 -0 , 24 -0.3591037 , 7.44639268 -0 , 73 -0 , 49 -0 , 73 -1.650208 , 46.64339502 -0 , 36.56446 -0.892993 , 14.23025184 -0 , 63.546 -0 , 26.981539 -0 , 26.981539 -44.0357 , 1466.598146 -0 , 1246.53 -15.55008 , 413.511442 -0 , 2180 -0 , 933.47 -0 , 933.47 -0.226071 , 10.31995622 -0 , 7 -0.1153323 , 2.112603636 -0 , 13 -0 , 6 -0 , 13 -0.0504262 , 3.637919518 -0 , 1 -0.02872285 , 0.461688638 -0 , 4 -0 , 3 -0 , 3 -0.64773 , 127.1209695 -0 , 18 -0.448271 , 5.511034156 -0 , 139 -0 , 121 -0 , 121 -0.0126491 , 1.754152112 -0 , 0.3 -0.00336262 , 0.128383431 -0 , 1.91 -0 , 1.61 -0 , 1.61 -0.0513139 , 1.744924402 -0 , 1 -0.05056679 , 0.379712166 -0 , 2 -0 , 1 -0 , 2 -0.05042613 , 0.362080494 -0 , 1 -0.02872285 , 0.461688638 -0 , 1 -0 , 0 -0 , 1 -0.4154825 , 4.59214641 -0 , 10 -0.2052717 , 3.323552678 -0 , 10 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0.3334517 , 6.699151302 -0 , 8 -0.1331742 , 2.856055348 -0 , 11 -0 , 3 -0 , 3 -0.05131393 , 0.255075604 -0 , 1 -0.05056679 , 0.379712166 -0 , 1 -0 , 0 -0 , 0 -0.2521306 , 1.81040247 -0 , 5 -0.1436144 , 2.308443166 -0 , 5 -0 , 0 -0 , 5 -0.1974431 , 1.787048632 -0 , 5 -0.0906735 , 1.748041772 -0 , 5 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0.147626 , 3.85252671 -0 , 5 -0.1222616 , 1.416195596 -0 , 6 -0 , 1 -0 , 5 -0.291387 , 12.79934667 -0 , 6.235 -0.1661144 , 2.663854348 -0 , 16.48 -0 , 10.245 -0 , 16.48 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0 , 0 -0.10456043 , 0.543091895 -0 , 2.1106627 -0.0729257 , 0.669993732 -0 , 2.1106627 -0 , 0 -0 , 0 -0.01790073 , 0.260508935 -0.010140542 , 0.054071563 -0.0278215 , 0.685419501 -0 , 0 -0 , 0.022248764 -0.000333759 , 0.008531074 \ No newline at end of file +0,11.956922 +5.4845E-13,1.78364E-13 +0,11.956922 +0,11.956922 +4.93266E-14,1.40795E-14 +0,1 +0,1 +0,0.051981524 +3.28969E-15,8.93664E-16 +0,0.051981524 +0,0.051981524 +5.68129E-14,1.81415E-14 +0,0.68017477 +0.3870897,7.12652049 +0.2899097,1.837693244 +1.4187251,1.503641655 +1.969989,13.9414315 +2.687034,12.43778996 +0.611908,9.53060188 +0.2614777,2.284466884 +2.618969,3.066401706 +3.448019,20.47419864 +4.07503,17.40779674 +0.875219,15.87736112 +0.634954,4.17719946 +3.4312229,3.09477411 +3.950918,31.22195464 +5.636962,28.1271806 +31.39746,497.090631 +16.30954,117.7722932 +125.92536,131.2679296 +191.5083,1057.475323 +236.76546,926.2073952 +0.1834395,2.717744856 +0.0802421,0.681151868 +0.73133256,0.840033091 +0.977671,6.09192841 +1.1420163,5.251895358 +0.03386527,0.459122396 +0.02649208,0.16089159 +0.07466975,0.006720277 +0.0969989,0.981932798 +0.1343337,0.975212524 +0.5560754,6.78144089 +0.2390648,1.877612342 +1.47802996,1.58645044 +2.037694,16.22205616 +2.342977,14.63560574 +0.00590287,0.141375248 +0.003675785,0.028447453 +0.036507761,0.035212654 +0.03926406,0.259923003 +0.06024842,0.224710346 +0.04256493,0.380936394 +0.01227298,0.204455063 +0,0 +0,1 +0,1 +0.03386527,0.459122396 +0.02649208,0.16089159 +0.07466975,0.006720277 +0.0969989,0.981932798 +0.1343337,0.975212524 +0.20239,4.09579141 +0.16311316,0.977560412 +0.95498273,1.226774915 +1.5223296,8.267676606 +1.8360136,7.040901604 +0,0 +0,0 +0,0 +0,0 +0,0 +0.139879,3.453541334 +0.11973184,0.729494118 +0.94765933,1.074820572 +1.0593047,6.670559944 +1.6336153,5.59573941 +0.04256493,0.380936394 +0.01227298,0.204455063 +0,0 +0,1 +0,1 +0.1693264,2.295611978 +0.1324603,0.804457947 +0.37334874,0.033601387 +0.4849944,4.909663886 +0.6716685,4.876062508 +0.1462688,2.07578746 +0.07372314,0.531491133 +0.56002307,0.326988845 +0.798679,4.565558512 +0.992677,4.238569714 +0,0 +0,0 +0,0 +0,0 +0,0 +0.1143462,1.799108396 +0.0441769,0.500102094 +0.4030011,0.366938569 +0.6193281,4.01516943 +0.7536616,3.64823086 +0.187165,2.822845694 +0.1357858,0.834206766 +0.57286467,0.38234843 +0.6499481,5.727070804 +0.7513733,5.344722386 +0,0 +0,0 +0,0 +0,0 +0,0 +0.08364035,0.773743065 +0.02746088,0.331854182 +0.115505196,0.019976304 +0.1378528,2.057713226 +0.1600819,2.03773695 +0,6 +0.02158918,0.459222344 +0.03288508,0.383836727 +0.04213888,0.359973431 +0.04385403,0.35796432 +0.04415008,0.357751596 +0.577753,21.8641378 +0,16 +0.401033,6.339413866 +0,29 +0,13 +0,13 +0.966626,62.98378654 +0,24 +0.408654,7.424505706 +0,73 +0,49 +0,73 +1.280416,46.77879226 +0,36.56446 +0.895185,14.15848442 +0,63.546 +0,26.981539 +0,26.981539 +51.3505,1469.79143 +0,1246.53 +18.80364,412.3796886 +0,2180 +0,933.47 +0,933.47 +0.284296,10.30351869 +0,7 +0.1146178,2.107594864 +0,13 +0,6 +0,13 +0.0441693,3.642256634 +0,1 +0.02584112,0.4593225 +0,4 +0,3 +0,3 +0.65975,127.1667527 +0,18 +0.378223,5.520421104 +0,139 +0,121 +0,121 +0.0115318,1.755211672 +0,0.3 +0.00296068,0.128206865 +0,1.91 +0,1.61 +0,1.61 +0.039237,1.743257468 +0,1 +0.03804427,0.381459904 +0,2 +0,1 +0,2 +0.04416913,0.357743385 +0,1 +0.02584112,0.4593225 +0,1 +0,0 +0,1 +0.2941426,4.625083994 +0,10 +0.2393346,3.307764096 +0,10 +0,0 +0,0 +0,0 +0,0 +0,0 +0,0 +0,0 +0,0 +0.2614398,6.726084862 +0,8 +0.1340166,2.85048759 +0,11 +0,3 +0,3 +0.03923698,0.256742528 +0,1 +0.03804427,0.381459904 +0,1 +0,0 +0,0 +0.2208457,1.788716936 +0,5 +0.1292055,2.296612498 +0,5 +0,0 +0,5 +0.2137315,1.79748213 +0,5 +0.0796188,1.748064026 +0,5 +0,0 +0,0 +0,0 +0,0 +0,0 +0,0 +0,0 +0,0 +0.1629317,3.842941588 +0,5 +0.1175019,1.419926944 +0,6 +0,1 +0,5 +0.2446755,12.77501871 +0,6.235 +0.1560111,2.649703098 +0,16.48 +0,10.245 +0,16.48 +0,0 +0,0 +0,0 +0,0 +0,0 +0,0 +0.0674975,0.547386102 +0,2.1106627 +0.05785012,0.672396997 +0,2.1106627 +0,0 +0,0 +0.013614,0.259207257 +0.008346618,0.053205072 +0.02080855,0.687587671 +0,0 +0,0.022248764 +0.000330044,0.008516198 \ No newline at end of file diff --git a/pysipfenn/tests/test_KS2022_randomSolution.py b/pysipfenn/tests/test_KS2022_randomSolution.py index 45ac2a5..4290863 100644 --- a/pysipfenn/tests/test_KS2022_randomSolution.py +++ b/pysipfenn/tests/test_KS2022_randomSolution.py @@ -29,7 +29,10 @@ def test_results(self): feature converges to near exactly the mean value with near-zero range (e.g. coordination number in BCC in case of ideal lattice positions). ''' - testValues, meta = KS2022_randomSolutions.profile(test='BCC', returnDescriptorAndMeta=True, plotParameters=True) + testValues, meta = KS2022_randomSolutions.profile( + test='BCC', + returnDescriptorAndMeta=True, + plotParameters=True) for testValue, descriptorRange, descriptorMean, label in zip( testValues,