From 7653d2154fc33c90a74e048bcef42b25c6d2155b Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Fri, 1 Nov 2024 20:06:21 +0200 Subject: [PATCH 1/2] Update Python MacOS download page (#3169) Signed-off-by: Emmanuel Ferdman --- docs/install/mac_pkg.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/mac_pkg.md b/docs/install/mac_pkg.md index 86cee22d88..cc93bd80c5 100644 --- a/docs/install/mac_pkg.md +++ b/docs/install/mac_pkg.md @@ -162,7 +162,7 @@ generally only for the architecture indicated by ```uname -m```. That is ok for openmpi but since the various python libraries are linked against during build to create the version specific neuron modules, those python installers also have to be universal. Fortunately, universal python versions -can be found at [python.org](http://python.org/Downloads/macOS) at least for +can be found at [python.org](https://www.python.org/downloads/macos) at least for (as of 2022-01-01) python3.8, python3.9, and python3.10. - ```xcode-select --install```: From 0e95fe9a606701b2a0e53fedffab12b3872a5bdf Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Mon, 4 Nov 2024 14:57:22 +0100 Subject: [PATCH 2/2] Debugging RXD with checksums --- share/lib/python/neuron/tests/test_rxd.json | 667 +------------------- share/lib/python/neuron/tests/test_rxd.py | 15 + 2 files changed, 16 insertions(+), 666 deletions(-) diff --git a/share/lib/python/neuron/tests/test_rxd.json b/share/lib/python/neuron/tests/test_rxd.json index 10c681c18f..ebc5f0b3ef 100644 --- a/share/lib/python/neuron/tests/test_rxd.json +++ b/share/lib/python/neuron/tests/test_rxd.json @@ -1,666 +1 @@ -{ - "trivial_ecs_data": { - "False": [ - 1.0, - 0.9999975013886804, - 0.9999774378669442, - 0.9998977298459816, - 0.999683249239208, - 0.999233095122319, - 0.9984342775161097, - 0.9971750000657644, - 0.9953548976762606, - 0.9928916564339986, - 0.9897243754423741, - 0.985814368310196, - 0.9811441475925942, - 0.9757152507508027, - 0.9695454356132381, - 0.9626656387440524, - 0.9551169704970437, - 0.9469479227048566, - 0.9382118896237476, - 0.928965047713157, - 0.9192646017261445, - 0.9091673798703476, - 0.8987287461912615, - 0.8880017910312052, - 0.8770367581645542, - 0.8658806682496021, - 0.8545771012638642, - 0.8431661046665001, - 0.8316841985149556, - 0.8201644532317675, - 0.8086366199145236, - 0.7971272968665187, - 0.7856601193366658, - 0.7742559622858297, - 0.7629331483660402, - 0.7517076552500634, - 0.7405933180308322, - 0.729602023674572, - 0.7187438955075627, - 0.7080274664897305, - 0.6974598406190147, - 0.6870468422535746, - 0.6767931534640339, - 0.666702439759881, - 0.6567774646932262, - 0.6470201939460375, - 0.6374318895671022, - 0.6280131950530249, - 0.618764211972033, - 0.6096845688168512, - 0.6007734827485834, - 0.592029814861357, - 0.5834521195604474, - 0.5750386886069674, - 0.566787590341624, - 0.5586967045597302, - 0.5507637534704564, - 0.542986329135765, - 0.5353619177489981, - 0.5278879210798492, - 0.520561675381579, - 0.5133804680278274, - 0.5063415521201762, - 0.4994421592836728, - 0.4926795108456907, - 0.4860508275736653, - 0.47955333812926787, - 0.47318428638032217, - 0.4669409376970896, - 0.46082058434632084, - 0.4548205500845658, - 0.44893819404152296, - 0.4431709139745962, - 0.437516148967192, - 0.4319713816355469, - 0.4265341399019367, - 0.42120199838589845, - 0.4159725794595267, - 0.41084355400792044, - 0.40581264193139277, - 0.40087761242206477, - 0.3960362840438892, - 0.3912865246419576, - 0.38662625110408755, - 0.3820534289951289, - 0.3775660720821487, - 0.37316224176661034, - 0.3688400464378394, - 0.3645976407604392, - 0.3604332249068622, - 0.356345043745043, - 0.3523313859898391, - 0.34839058332598377, - 0.3445210095093366, - 0.3407210794523858, - 0.33698924829922156, - 0.33332401049454546, - 0.3297238988506902, - 0.32618748361610794, - 0.3227133715483166, - 0.319300204993885 - ], - "0.01": [ - 1.0, - 1.0, - 1.0, - 0.9999999999993757, - 0.999999999994894, - 0.9999999999684935, - 0.9999999997476527, - 0.9999999928933891, - 0.9999999611564773, - 0.9999998797767268, - 0.9999996998881439, - 0.9999993374567407, - 0.9999984853833065, - 0.9999969740580187, - 0.9999944882384337, - 0.999990631594901, - 0.9999849509581288, - 0.9999769206381163, - 0.9999582122018839, - 0.99992971528816, - 0.9998885520830331, - 0.9998315279906315, - 0.9996818635176349, - 0.9994522087548297, - 0.9991215537513378, - 0.9986688188931263, - 0.9980737640971887, - 0.9973169807956457, - 0.9963810719470815, - 0.9952501731851596, - 0.9939108695612834, - 0.9923517494757513, - 0.990563762843154, - 0.9885402079277492, - 0.9862765182500737, - 0.9837701825347182, - 0.9810207339245086, - 0.9780291325294735, - 0.9747989764631944, - 0.9713343413786614, - 0.9676399370120405, - 0.961066451151739, - 0.9539287981955907, - 0.9462557577841545, - 0.9380908351574285, - 0.9295048630248105, - 0.9272938750656939, - 0.9250579717836777, - 0.9227970935562565, - 0.916466538640017, - 0.9099911643714976, - 0.903362145740033, - 0.896607665570261, - 0.8897506341029571, - 0.882783639668767, - 0.875743025331908, - 0.8686235564310014, - 0.8614266253277882, - 0.8541863694353786, - 0.8468993821613305, - 0.8395705411269264, - 0.8322240727536439, - 0.8248512178576504, - 0.8174717412783322, - 0.8101012803420092, - 0.8027295128162794, - 0.795382570912665, - 0.7880520562862553, - 0.7807347758418224, - 0.7734449586662135, - 0.7661975818043348, - 0.7589799271016704, - 0.7518171027828684, - 0.7446977692713531, - 0.7376160661849058, - 0.7305954685552188, - 0.7236266087584206, - 0.7167068363521265, - 0.7140993659873981, - 0.7115003569088247, - 0.7053989759513706, - 0.6937157033260776, - 0.6892286429757224, - 0.6847738597616794, - 0.680346043973446, - 0.6736943892225341, - 0.6671180984407125, - 0.662236424428377, - 0.6573969190546712, - 0.6525933206930011, - 0.6478347503609198, - 0.6431166994074956, - 0.6384369406609263, - 0.629051615757503, - 0.6198222188768284, - 0.6175428046075583, - 0.6152735586037428, - 0.6111170811525735, - 0.6031212235932468, - 0.5952593537962105, - 0.5921305073271925, - 0.589021543706074, - 0.5843049292559478, - 0.5796335964525046, - 0.57501603797955, - 0.5704420014938749, - 0.5659178448897603, - 0.5614455517225058, - 0.5591788147005415, - 0.5569248277948933, - 0.5506074431348664, - 0.5478382336692825, - 0.5450878675432425, - 0.5387888979259772, - 0.5362404522913171, - 0.5337094641249713, - 0.5282374991063938, - 0.5259248453123049, - 0.5236262813729924, - 0.5182614252948405, - 0.5158555311460749, - 0.5134660721175922, - 0.5077709278071862, - 0.5053179819941784, - 0.5028817741460606, - 0.49744076421889366, - 0.49520127183112733, - 0.4929770110029178, - 0.4880637158772831, - 0.4859684631915766, - 0.4838861487508862, - 0.4790294757925702, - 0.47687065162757547, - 0.47472669028331466, - 0.4696849124713687, - 0.4675266379954105, - 0.4653827515472591, - 0.46059622403775785, - 0.45860850681188087, - 0.4566341643290534, - 0.45222826180913167, - 0.4503369914749967, - 0.4484573582920104, - 0.4440766399353272, - 0.44214365209440704, - 0.4402239033393764, - 0.4357529446107943, - 0.4338466468246234, - 0.4319526748954548, - 0.42771940093115685, - 0.4259480291636831, - 0.42418839478752657, - 0.4202300998323772, - 0.4185239107729718, - 0.4168280791675472, - 0.4128821813954716, - 0.411151841187283, - 0.40943320175716824, - 0.4054591322631254, - 0.4037685048216922, - 0.40208843869666, - 0.39832558823662206, - 0.39674079574945603, - 0.3951663234845347, - 0.3916025661247801, - 0.3900627879465062, - 0.38853217065630374, - 0.3849784483231059, - 0.38342810283841006, - 0.38188806435279576, - 0.3783453864065237, - 0.37683971858666915, - 0.3753431215943966, - 0.37198272430919915, - 0.3705596473205069, - 0.369145673011817, - 0.36593017118156906, - 0.36453932880580625, - 0.363156559348617, - 0.35995389116692217, - 0.358562523467025, - 0.3571802314864285, - 0.35401195406372227, - 0.3526654576925955, - 0.35132677928092004, - 0.34831289231094187, - 0.34703074630323383, - 0.3457566587383628, - 0.3428492728160761, - 0.34159142512656304, - 0.34034067750180974, - 0.3374508889913977, - 0.33619956600663337, - 0.3349562466940476, - 0.33211336362253635, - 0.3309044582410871, - 0.3297023177069934, - 0.32698870975793815, - 0.32583004833643353, - 0.3246785486149972, - 0.322044467574018, - 0.3209052709390766, - 0.31977231337146067 - ], - "1e-05": [ - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 0.9999999999999994, - 0.999999999999973, - 0.9999999999998286, - 0.9999999999994353, - 0.9999999999985202, - 0.9999999999965848, - 0.999999999991421, - 0.9999999999815654, - 0.999999999964278, - 0.999999999935795, - 0.9999999998244792, - 0.9999999995977931, - 0.9999999987558622, - 0.9999999969054565, - 0.9999999933717028, - 0.9999999871894636, - 0.9999999770945371, - 0.9999999615055236, - 0.9999999384936957, - 0.9999999057511308, - 0.9999998222204166, - 0.9999996889877318, - 0.9999994874837334, - 0.999999195494715, - 0.9999987869759616, - 0.9999978778927708, - 0.9999965094234947, - 0.9999945377974364, - 0.9999917976154723, - 0.9999881018395208, - 0.9999832421044165, - 0.99997698930736, - 0.9999690944252602, - 0.9999592894154012, - 0.9999401848217758, - 0.9999149868024333, - 0.9998825523031787, - 0.9998416677700266, - 0.999791059592578, - 0.9997294043566004, - 0.9996553389790277, - 0.9995674703998882, - 0.9994643850266823, - 0.9993446578768971, - 0.9992068613209312, - 0.9990495732666511, - 0.9988713847468418, - 0.9986709069017091, - 0.9984467774205655, - 0.9981976664057219, - 0.9979222816860815, - 0.9976193735297934, - 0.9972877388223238, - 0.9969262246908328, - 0.996533731653732, - 0.9961092162614316, - 0.9956516933112639, - 0.995160237588464, - 0.9946339852522628, - 0.9940721347820276, - 0.9934739476576494, - 0.9928387486094244, - 0.9921659257088754, - 0.9914549300102379, - 0.9907052751690002, - 0.9899165365563947, - 0.9890883505202034, - 0.9882204130405648, - 0.9873124787416938, - 0.9863643591450846, - 0.9853759215363472, - 0.9843470868598637, - 0.9832778285393545, - 0.9821681700454686, - 0.9810181837632249, - 0.9798279882523508, - 0.9785977472498147, - 0.9773276666315711, - 0.9760179936337368, - 0.9746690135138534, - 0.973281049070232, - 0.9718544574226932, - 0.970389628347756, - 0.9688869823638351, - 0.9662560899384262, - 0.9635203094788997, - 0.9606821993780256, - 0.9577444920812167, - 0.9547100690683178, - 0.9515819411366752, - 0.9483632227757351, - 0.9450571205495613, - 0.9416669020994433, - 0.9381959000999215, - 0.9346474739514014, - 0.9310250019996876, - 0.9273318651890746, - 0.9235714575523157, - 0.9197471440736972, - 0.9158622774695346, - 0.9119201741117782, - 0.9079241163948638, - 0.9038773101093882, - 0.8997829152661703, - 0.8956440506833048, - 0.8914637634703556, - 0.8872450198182428, - 0.8829907105064231, - 0.8787036576202755, - 0.8707492329414495, - 0.8687467372991504, - 0.8667391782827082, - 0.8647268018964069, - 0.862709850134354, - 0.8585978518713738, - 0.8544698540373321, - 0.8503277143424198, - 0.8461732532162092, - 0.8420082064910313, - 0.8378342644221053, - 0.8336530592192254, - 0.8294661713938566, - 0.8252750957253966, - 0.8210812732955917, - 0.8168861005800381, - 0.8126909232910099, - 0.808497028390498, - 0.801870527941527, - 0.7952548736200997, - 0.7886543612287468, - 0.7820730076362225, - 0.775514525626251, - 0.7689823476263041, - 0.76247965836786, - 0.756009378236416, - 0.749574210390875, - 0.743176642418555, - 0.7368189633320615, - 0.7305032399754438, - 0.724231346521673, - 0.7180049651772312, - 0.7118256478753264, - 0.7056948259233441, - 0.7032583360819944, - 0.700829860418756, - 0.6984094703765288, - 0.6959972339923495, - 0.6935932151265922, - 0.6889317429731345, - 0.6817668349582598, - 0.6746798126979188, - 0.6676718056770632, - 0.6607437321602112, - 0.6538963342916061, - 0.6471301405555971, - 0.6404455882961573, - 0.638787241606903, - 0.6371340113764097, - 0.6354859019485614, - 0.632317967018681, - 0.6291691359121044, - 0.624349241554268, - 0.619574789517913, - 0.614845708115443, - 0.6101619207501211, - 0.6055232995513015, - 0.6009296921089062, - 0.5963809255909179, - 0.5884265027887375, - 0.5806112287452613, - 0.5729337321697969, - 0.5653924576034643, - 0.5579857024960585, - 0.5561548262393686, - 0.5543322220611878, - 0.5525178614766851, - 0.5497619522652349, - 0.5470251014903538, - 0.5421958421956508, - 0.5374261214848611, - 0.5327153071436265, - 0.5280627574430141, - 0.5234678232476324, - 0.518929844460602, - 0.5144481596200524, - 0.5100220936639072, - 0.5056509822652775, - 0.501334134582734, - 0.497070898714232, - 0.492860583575257, - 0.488702496136303, - 0.4845959780644786, - 0.4805403496661883, - 0.4765349345681554, - 0.47257907275051975, - 0.46867209134329857, - 0.46481334795798307, - 0.4610021777856322, - 0.45723791746718145, - 0.4535199242983486, - 0.44984757092630373, - 0.4462202100082472, - 0.44263723745342903, - 0.4390980178177817, - 0.4356019204361891, - 0.43214835473501945, - 0.4287367135374875, - 0.4253663990336738, - 0.4220368326096732, - 0.41874742793163006, - 0.4154976298562691, - 0.41228686587129565, - 0.4091145679414439, - 0.40436315170089987, - 0.3996975358470319, - 0.3951158478239174, - 0.39061627014508404, - 0.3861970390853348, - 0.3841086119821148, - 0.3820380229802458, - 0.37998508572555983, - 0.3779496187417315, - 0.3745426919167079, - 0.3711844376968717, - 0.3678740151003091, - 0.3646106064268745, - 0.36139339169632445, - 0.3582215708412834, - 0.35509431859041374, - 0.35201085923465375, - 0.34897048346845855, - 0.345972428841367, - 0.3430159436132327, - 0.3401003270324417, - 0.3372248854371575, - 0.33438895086942516, - 0.33159183891956634, - 0.32883286088925856, - 0.32611135696096716, - 0.32342673756054513, - 0.320778362376132 - ] - }, - "scalar_bistable_data": [ - 4.666144368739565e-24, - 2.888704007378301e-23, - 1.9865049531958455e-22, - 1.3417088797559409e-21, - 8.872570814175612e-21, - 5.740880124662936e-20, - 3.632196361482048e-19, - 2.2456041210043948e-18, - 1.3557115052023306e-17, - 7.986451339137776e-17, - 4.587323676899687e-16, - 2.567045965818934e-15, - 1.398326895049454e-14, - 7.407949505967694e-14, - 3.8132509319176133e-13, - 1.905347304599464e-12, - 9.231798364410495e-12, - 4.33273265966826e-11, - 1.9674719569026998e-10, - 8.63399030466642e-10, - 3.657079221471436e-09, - 1.4932070567139546e-08, - 5.869401066025267e-08, - 2.218029569259483e-07, - 8.04721279962928e-07, - 2.79921382956858e-06, - 9.323183477925758e-06, - 2.969562407156746e-05, - 9.035408030381584e-05, - 0.0002623954841897342, - 0.0007269141545185264, - 0.0019207269099111785, - 0.004841879243431059, - 0.01164965343224167, - 0.02674863273052536, - 0.05846777500048251, - 0.12067994530088386, - 0.23084596756508963, - 0.3962758789592411, - 0.5900229199038892, - 0.7586218889021915, - 0.8722981880509894, - 0.9370823930113995, - 0.9705058492437157, - 0.9867204567968437, - 0.9942426940783657, - 0.9975977799681778, - 0.9990359504416326, - 0.9996249801006252, - 0.9998477834074035, - 0.9999041758657206, - 0.9998477834074035, - 0.9996249801006252, - 0.9990359504416326, - 0.9975977799681778, - 0.9942426940783657, - 0.9867204567968437, - 0.9705058492437147, - 0.9370823930113918, - 0.8722981880509718, - 0.75862188890219, - 0.5900229199038813, - 0.39627587895923605, - 0.2308459675650862, - 0.12067994530088234, - 0.058467775000481934, - 0.026748632730525093, - 0.011649653432241593, - 0.0048418792434310265, - 0.0019207269099111698, - 0.0007269141545185239, - 0.00026239548418973194, - 9.035408030381517e-05, - 2.9695624071567297e-05, - 9.323183477925707e-06, - 2.799213829568571e-06, - 8.04721279962927e-07, - 2.2180295692594684e-07, - 5.869401066025244e-08, - 1.4932070567139493e-08, - 3.6570792214714333e-09, - 8.633990304666437e-10, - 1.967471956902688e-10, - 4.332732659668245e-11, - 9.231798364410489e-12, - 1.9053473045994673e-12, - 3.813250931917625e-13, - 7.407949505967726e-14, - 1.3983268950494506e-14, - 2.5670459658189344e-15, - 4.587323676899693e-16, - 7.986451339137798e-17, - 1.3557115052023379e-17, - 2.2456041210043886e-18, - 3.632196361482047e-19, - 5.740880124662945e-20, - 8.872570814175644e-21, - 1.341708879755948e-21, - 1.9865049531958394e-22, - 2.8887040073782976e-23, - 4.66614436873957e-24 - ] -} \ No newline at end of file +{"scalar_bistable_data":[4.666144368739553e-24,2.888704007378294e-23,1.986504953195841e-22,1.341708879755938e-21,8.87257081417559e-21,5.740880124662921e-20,3.632196361482038e-19,2.245604121004388e-18,1.355711505202327e-17,7.986451339137754e-17,4.587323676899676e-16,2.567045965818926e-15,1.39832689504945e-14,7.40794950596767e-14,3.8132509319176e-13,1.905347304599457e-12,9.231798364410461e-12,4.332732659668245e-11,1.967471956902693e-10,8.633990304666386e-10,3.657079221471421e-09,1.493207056713948e-08,5.869401066025243e-08,2.218029569259474e-07,8.04721279962925e-07,2.79921382956857e-06,9.32318347792573e-06,2.969562407156739e-05,9.035408030381566e-05,0.0002623954841897339,0.0007269141545185255,0.001920726909911178,0.004841879243431064,0.01164965343224173,0.02674863273052559,0.05846777500048252,0.1206799453008834,0.2308459675650935,0.3962758789592548,0.5900229199039158,0.7586218889022415,0.8722981880510015,0.9370823930114011,0.9705058492437171,0.9867204567968444,0.9942426940783661,0.9975977799681778,0.9990359504416327,0.9996249801006252,0.9998477834074035,0.9999041758657206,0.9998477834074035,0.9996249801006252,0.9990359504416326,0.9975977799681777,0.9942426940783655,0.9867204567968437,0.970505849243716,0.9370823930113995,0.8722981880509845,0.7586218889021992,0.5900229199038706,0.3962758789592359,0.2308459675650852,0.1206799453008814,0.05846777500048142,0.02674863273052497,0.01164965343224158,0.00484187924343102,0.001920726909911166,0.0007269141545185224,0.0002623954841897313,9.035408030381501e-05,2.969562407156726e-05,9.323183477925702e-06,2.799213829568569e-06,8.047212799629269e-07,2.218029569259469e-07,5.869401066025247e-08,1.493207056713951e-08,3.657079221471437e-09,8.633990304666446e-10,1.967471956902691e-10,4.332732659668252e-11,9.231798364410503e-12,1.905347304599471e-12,3.813250931917631e-13,7.407949505967741e-14,1.398326895049453e-14,2.56704596581894e-15,4.587323676899705e-16,7.986451339137816e-17,1.355711505202341e-17,2.245604121004394e-18,3.632196361482056e-19,5.740880124662959e-20,8.872570814175665e-21,1.341708879755951e-21,1.986504953195844e-22,2.888704007378305e-23,4.666144368739581e-24],"trivial_ecs_data":{"false":[1.0,0.9999975013886804,0.9999774378669442,0.9998977298459814,0.9996832492392076,0.9992330951223182,0.9984342775161091,0.9971750000657639,0.995354897676259,0.9928916564339932,0.9897243754423555,0.985814368310137,0.9811441475924241,0.9757152507503439,0.9695454356120868,0.9626656387413414,0.9551169704910168,0.9469479226921377,0.9382118895981384,0.9289650476637475,0.919264601634446,0.9091673797060952,0.8987287459064514,0.8880017905518656,0.8770367573796769,0.8658806669966089,0.8545770993099358,0.8431661016850746,0.8316841940567001,0.820164446689343,0.80863661048051,0.797127283483932,0.7856601006415908,0.7742559365417961,0.7629331133899011,0.7517076083292696,0.7405932558321451,0.7296019421444131,0.7187437897643434,0.7080273307086645,0.6974596679100502,0.6870466245332152,0.6767928813219394,0.6667021023212317,0.6567770494779278,0.6470196867258985,0.6374312742221647,0.628012453428258,0.6187633237355973,0.6096835113211366,0.6007722308951912,0.5920283409711493,0.5834503932497362,0.5750366766708355,0.5667852566452943,0.5586940099388136,0.5507606556408047,0.5429827826135633,0.5353578737816238,0.527883327587924,0.5205564769125375,0.5133746057212193,0.5063349636848303,0.4994347789867492,0.492671269513561,0.4860416526044784,0.4795431535169798,0.4731730127498988,0.4669284923505265,0.4608068813190689,0.4548055002118984,0.4489217050343421,0.4431528905041363,0.4374964927580476,0.4319499915664357,0.4265109121135835,0.4211768263954196,0.4159453542806875,0.4108141642766345,0.4057809740358395,0.4008435506368045,0.3959997106673694,0.3912473201368166,0.3865842942396779,0.3820085969917059,0.3775182407561858,0.3731112856767305,0.3687858390308746,0.3645400545171554,0.3603721314869148,0.3562803141307546,0.352262890628416,0.3483181922698216,0.3444445925540838,0.3406405062724689,0.3369043885805584,0.3332347340641985,0.3296300758032397,0.3260889844365475,0.322610067231298,0.3191919671591613],"1e-05":[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,0.9999999999999994,0.999999999999973,0.9999999999998286,0.9999999999994353,0.9999999999985202,0.9999999999965848,0.999999999991421,0.9999999999815654,0.999999999964278,0.999999999935795,0.9999999998244792,0.9999999995977931,0.9999999987558622,0.9999999969054565,0.9999999933717028,0.9999999871894636,0.9999999770945371,0.9999999615055236,0.9999999384936957,0.9999999057511308,0.9999998222204165,0.9999996889877317,0.9999994874837332,0.9999991954947148,0.9999987869759613,0.9999978778927705,0.9999965094234943,0.9999945377974357,0.9999917976154713,0.9999881018395195,0.9999832421044147,0.9999769893073577,0.9999690944252573,0.9999592894153977,0.999940184821771,0.9999149868024271,0.9998825523031706,0.9998416677700163,0.999791059592565,0.9997294043565842,0.9996553389790078,0.9995674703998642,0.9994643850266534,0.9993446578768627,0.9992068613208905,0.9990495732666037,0.9988713847467867,0.9986709069016458,0.9984467774204933,0.9981976664056399,0.9979222816859891,0.9976193735296895,0.9972877388222079,0.996926224690704,0.9965337316535895,0.9961092162612745,0.9956516933110915,0.9951602375882754,0.9946339852520572,0.994072134781804,0.9934739476574072,0.9928387486091628,0.9921659257085935,0.9914549300099351,0.9907052751686757,0.9899165365560477,0.9890883505198331,0.9882204130401707,0.9873124787412751,0.9863643591446407,0.9853759215358775,0.9843470868593674,0.9832778285388312,0.9821681700449177,0.9810181837626457,0.979827988251743,0.9785977472491776,0.9773276666309043,0.9760179936330398,0.9746690135131258,0.9732810490694735,0.9718544574219034,0.9703896283469345,0.9688869823629818,0.9662560899379753,0.963520309478886,0.9606821993784824,0.9577444920821762,0.9547100690698106,0.9515819411387303,0.9483632227783803,0.9450571205528219,0.9416669021033438,0.9381959001044843,0.9346474739566473,0.9310250020056358,0.9273318651957428,0.9235714575597201,0.9197471440818522,0.915862277478453,0.9119201741214706,0.90792411640534,0.9038773101206564,0.8997829152782374,0.8956440506961761,0.8914637634840353,0.8872450198327338,0.8829907105217275,0.8787036576363941,0.8707492329602121,0.8687467373185769,0.8667391783027991,0.8647268019171629,0.8627098501557753,0.8585978518951599,0.8544698540634895,0.8503277143709528,0.8461732532471191,0.8420082065243172,0.837834264457764,0.8336530592572513,0.8294661714342418,0.8252750957681314,0.8210812733406646,0.816886100627436,0.812690923340718,0.8084970284424999,0.8018705279973948,0.795254873679783,0.7886543612921902,0.7820730077033664,0.7755145256970315,0.7689823477006539,0.7624796584457091,0.7560093783176929,0.7495742104755058,0.7431766425064636,0.7368189634231701,0.7305032400696735,0.7242313466189446,0.7180049652774664,0.7118256479784464,0.7056948260292686,0.7032583361895295,0.7008298605278855,0.698409470487237,0.6959972341046202,0.6935932152404094,0.6889317430774708,0.681766835048953,0.6746798127752269,0.6676718057412527,0.6607437322115557,0.6538963343303841,0.6471301405820917,0.6404455883106537,0.6387872416184449,0.637134011385015,0.6354859019542481,0.6323179670207283,0.6291691359105558,0.6243492415503886,0.6195747895117473,0.6148457081070352,0.6101619207395151,0.6055232995385412,0.6009296920940354,0.5963809255739797,0.5884265027623434,0.5806112287097513,0.5729337321255051,0.5653924575507177,0.5579857024351769,0.5561548261765027,0.5543322219963571,0.552517861409909,0.5497619521958399,0.5470251014183799,0.5421958421339816,0.537426121433255,0.5327153071018452,0.5280627574108234,0.5234678232248013,0.5189298444469039,0.5144481596152644,0.5100220936678099,0.505650982277656,0.5013341346033774,0.4970708987429328,0.492860583611812,0.4887024961805134,0.4845959781161491,0.4805403497251276,0.4765349346341766,0.4725790728234394,0.4686720914229373,0.4648133480441644,0.461002177878184,0.4572379175659361,0.4535199244031417,0.4498475710369739,0.4462202101246375,0.442637237575384,0.4390980179451507,0.435601920568826,0.43214835487278,0.4287367136802313,0.425366399181264,0.4220368327619753,0.4187474280885136,0.4154976300176047,0.4122868660369579,0.4091145681113114,0.4043631518312791,0.3996975359393022,0.3951158478794149,0.3906162701651016,0.3861970390711226,0.3841086119708872,0.3820380229719526,0.3799850857201517,0.37794961873916,0.3745426919402392,0.3711844377457629,0.3678740151738357,0.3646106065243293,0.361393391817019,0.3582215709845467,0.3550943187555968,0.3520108594211252,0.3489704836755959,0.345972429068568,0.3430159438599149,0.3401003272980346,0.3372248857211048,0.3343889511711801,0.3315918392385992,0.3288328612250609,0.3261113573130471,0.3234267379284118,0.3207783627593125],"0.01":[1.0,1.0,1.0,0.9999999999993757,0.999999999994894,0.9999999999684935,0.9999999997476527,0.9999999928933891,0.9999999611564773,0.9999998797767268,0.9999996998881439,0.9999993374567406,0.9999984853833063,0.9999969740580184,0.9999944882384333,0.9999906315949002,0.9999849509581277,0.9999769206381147,0.9999582122018814,0.9999297152881566,0.9998885520830283,0.999831527990625,0.9996818635176246,0.9994522087548142,0.9991215537513162,0.9986688188930973,0.9980737640971513,0.9973169807955987,0.996381071947024,0.9952501731850908,0.9939108695612021,0.9923517494756579,0.990563762843048,0.9885402079276301,0.9862765182499404,0.98377018253457,0.9810207339243457,0.9780291325292961,0.9747989764630028,0.9713343413784561,0.9676399370118218,0.961066451151455,0.9539287981952346,0.9462557577837218,0.9380908351569157,0.9295048630242134,0.9272938750650753,0.9250579717830375,0.9227970935555948,0.916466538639512,0.9099911643711576,0.9033621457398684,0.896607665570279,0.8897506341031615,0.8827836396691656,0.8757430253325005,0.8686235564317917,0.861426625328783,0.854186369436575,0.8468993821627302,0.8395705411285332,0.8322240727554534,0.8248512178596673,0.8174717412805539,0.8101012803444277,0.8027295128188973,0.7953825709154709,0.7880520562892473,0.7807347758450052,0.7734449586695845,0.7661975818078829,0.7589799271053987,0.7518171027867613,0.7446977692754075,0.737616066189128,0.7305954685595947,0.7236266087629475,0.7167068363568081,0.7140993659912696,0.711500356911891,0.7053989759515575,0.6937157033233743,0.6892286429728892,0.6847738597587193,0.6803460439703601,0.6736943892201644,0.6671180984390447,0.6622364244386257,0.6573969190766189,0.6525933207264888,0.6478347504056896,0.643116699463345,0.638436940727696,0.629051615789364,0.6198222188748919,0.6175428045973979,0.6152735585854211,0.6111170811451881,0.6031212236479893,0.595259353911038,0.5921305074751056,0.5890215438866859,0.5843049294344698,0.5796335966290896,0.5750160381540556,0.5704420016665088,0.565917845060501,0.5614455518912613,0.5591788148460601,0.5569248279174298,0.5506074431743505,0.5478382336868175,0.5450878675391179,0.5387888979310328,0.5362404523147913,0.5337094641666161,0.5282374991972423,0.5259248454152894,0.5236262814879684,0.518261425402789,0.5158555312376837,0.5134660721930772,0.5077709278344216,0.505317982010449,0.5028817741515068,0.4974407642335685,0.4952012718592664,0.492977011044339,0.4880637159524582,0.4859684632733423,0.4838861488391641,0.4790294758699501,0.4768706516921771,0.4747266903353097,0.4696849124915995,0.4675266380099869,0.4653827515562493,0.4605962240576634,0.4586085068420688,0.456634164369385,0.4522282618718538,0.4503369915407668,0.4484573583607938,0.4440766399922996,0.4421436521416536,0.4402239033770282,0.4357529446279363,0.4338466468392896,0.4319526749076715,0.4277194009540304,0.4259480291942094,0.4241883948256027,0.4202300998848154,0.4185239108263153,0.4168280792217872,0.4128821814385824,0.4111518412231812,0.4094332017859506,0.4054591322790473,0.4037685048369686,0.4020884387112946,0.3983255882607288,0.3967407957791139,0.3951663235196693,0.3916025661686941,0.39006278799011,0.3885321706996029,0.384978448356714,0.3834281028668022,0.3818880643760414,0.378345386422035,0.376839718602517,0.3753431216105738,0.3719827243333056,0.3705596473485314,0.3691456730437073,0.3659301712184497,0.3645393288417587,0.3631565593836533,0.3599538911939479,0.3585625234903733,0.3571802315061479,0.3540119540790766,0.3526654577087503,0.3513267792978637,0.3483128923342382,0.3470307463292109,0.3457566587669847,0.3428492728471916,0.3415914251565042,0.3403406775305906,0.3374508890138111,0.336199566026523,0.3349562467114465,0.3321133636377239,0.3309044582572311,0.3297023177240813,0.3269887097799309,0.3258300483601927,0.3246785486404988,0.322044467600435,0.3209052709642934,0.3197723133954909]}} \ No newline at end of file diff --git a/share/lib/python/neuron/tests/test_rxd.py b/share/lib/python/neuron/tests/test_rxd.py index dc6cd2aef8..02c5828b73 100644 --- a/share/lib/python/neuron/tests/test_rxd.py +++ b/share/lib/python/neuron/tests/test_rxd.py @@ -2,9 +2,11 @@ import neuron import unittest import sys +import hashlib import os import json from multiprocessing import Process, Lock +from pathlib import Path try: import multiprocessing as mp @@ -18,6 +20,19 @@ test_data = json.load(open(os.path.join(fdir, "test_rxd.json"), "r")) +def get_file_checksum(file_path, hash_type="sha256"): + hash_func = hashlib.new(hash_type) + with open(file_path, "rb") as f: + hash_func.update(f.read()) + return hash_func.hexdigest() + + +assert ( + get_file_checksum(Path(fdir) / "test_rxd.json") + == "c68b98b308e8b6bbfee1f9dd43d354bfd455de76c3efc570a370734a555f6e69" +) + + def scalar_bistable(lock, path=None): from neuron import rxd