-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More testing of CosmoSIS module #313
Merged
marcpaterno
merged 41 commits into
master
from
add-more-testing-for-the-cosmosis-module
Sep 18, 2023
Merged
Changes from 7 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
b3dc69a
More testing of CosmoSIS module
marcpaterno 813c0c6
Bugfix for and more testing of CosmoSIS module
marcpaterno d1ecccf
Remove extraneous import
marcpaterno d0c0346
FIx oddly-formatted concatenated strings
marcpaterno c0402d1
Specify "utf-8" encoding for all open calls
marcpaterno c798d58
Improve fixture name
marcpaterno 8e0d578
Test CosmoSIS module with derived parameters
marcpaterno 8a69250
Fix weird string concatenations
marcpaterno ea01567
Do not insert derived_param0 in data from sampler
marcpaterno aad088a
Fix documentation
marcpaterno 7ee871d
Add len support for RequiredParameters
marcpaterno e225bfe
Improve error message on CosmoSIS misconfiguration
marcpaterno cecbe38
Improve error report due to a missing parameter
marcpaterno f30773f
Remove extraneous import, fix mypy typing error
marcpaterno a1c54a7
Improve docstring
marcpaterno a6d9942
If sacc_tracer is not found, raise an error
marcpaterno 6a14e92
Remove unused import
marcpaterno 9e732b0
Make get_data_vector, compute_theory_vector abstract
marcpaterno cf90a76
Fix spelling error
marcpaterno 20030f9
Introduce StatisticUnreadError
marcpaterno acd29e7
Unpack tuple at call site
marcpaterno fc0bb03
FIx documentation
marcpaterno 3d33ee5
Add GuardedStatistic
marcpaterno 48fbca2
Make use of GuardedStatistic
marcpaterno 98bc182
Add read method to GuardedStatistic
marcpaterno 80e6f1e
Remove unneeded methods
marcpaterno 7d2cc25
Move TrivialStatistic
marcpaterno ef17c05
More error checking in GaussFamily.read
marcpaterno 4ce8213
Adjusting tests and fixtures; still not complete
marcpaterno b45dbb8
Fix string interpolation
marcpaterno 3d3d984
Update use of mypy
marcpaterno 6598d8a
Relax pylint rules, and apply everywhere
marcpaterno 875acee
Add docstrings
marcpaterno 6aee9e3
Fix pylint complaints in srd_sn examples
marcpaterno c390b58
Fix example so that it runs
marcpaterno a2d3600
WIP
marcpaterno c641382
Refactoring guided by pylint
marcpaterno fc56496
Improve comments
marcpaterno 2acf0b8
Attempt to diagnose some statistic read failures
marcpaterno 47523c9
Fix malformed SACC object (add tag to data points)
marcpaterno 607dbff
Remove incorrect type hint
marcpaterno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
distances: | ||
d_m: [0.0, 30.599016773238837, 61.164969838209146, 91.69730457953247, 122.19546576621251, 152.65889770161618, 183.08704437377514, 213.47934960593844, 243.83525720727596, 274.1542111236613, 304.43565558844614, 334.67903527312603, 364.8837954378314, 395.04938208154766, 425.17524209196944, 455.26082339491893, 485.30557510322814, 515.3089476650088, 545.2703930112107, 575.1893647023988, 605.0653180746485, 634.8977103844911, 664.6860009528034, 694.4296513075827, 724.1281253255095, 753.780889372219, 783.3874124412047, 812.9471662912787, 842.4596255824987, 871.9242680104995, 901.3405744391514, 930.7080290314592, 960.0261193786538, 989.2943366273881, 1018.512175604976, 1047.6791349426137, 1076.7947171965068, 1105.8584289668547, 1134.8697810146282, 1163.8282883760776, 1192.7334704749217, 1221.5848512321663, 1250.381959173494, 1279.124327534182, 1307.811494361507, 1336.4430026145776, 1365.0184002615756, 1393.5372403743443, 1421.9990812203082, 1450.4034863516767, 1478.7500246919053, 1507.0382706193889, 1535.26780404836, 1563.4382105069606, 1591.549081212481, 1619.600013143741, 1647.5906091105878, 1675.52047782052, 1703.389233942409, 1731.1964981673086, 1758.9418972663686, 1786.6250641458269, 1814.2456378990812, 1841.8032638558682, 1869.297593628516, 1896.7282851553073, 1924.095002740947, 1951.3974170941488, 1978.6352053623566, 2005.808051163614, 2032.9156446155973, 2059.957682361837, 2086.9338675951485, 2113.843910078286, 2140.6875261618634, 2167.4644387995504, 2194.1743775605864, 2220.81707863964, 2247.3922848640364, 2273.8997456984016, 2300.339217246755, 2326.7104622520724, 2353.013250093383, 2379.247356780422, 2405.4125649458747, 2431.5086638352805, 2457.535449294613, 2483.492723755584, 2509.3802962187356, 2535.1979822343474, 2560.945603881203, 2586.622989743288, 2612.2299748844357, 2637.766400820986, 2663.2321154925203, 2688.6269732306846, 2713.9508347261917, 2739.203566994024, 2764.385043336902, 2789.495143307066] | ||
h: [0.0003299327135551882, 0.00033028642429886265, 0.00033064689311028655, 0.0003310141692726998, 0.0003313883014348929, 0.00033176933760470134, 0.0003321573251426722, 0.00033255231075590697, 0.0003329543404920849, 0.0003333634597336719, 0.000333779713192319, 0.00033420314490345386, 0.00033463379822107017, 0.0003350717158127181, 0.0003355169396546992, 0.00033596951102746967, 0.0003364294705112553, 0.00033689685798188004, 0.00033737171260681264, 0.0003378540728414326, 0.000338343976425519, 0.0003388414603799634, 0.00033934656100371036, 0.00033985931387092586, 0.0003403797538283965, 0.0003409079149931599, 0.00034144383075036957, 0.00034198753375139245, 0.0003425390559121421, 0.00034309842841164797, 0.0003436656816908607, 0.0003442408454516933, 0.0003448239486562996, 0.0003454150195265885, 0.00034601408554397507, 0.00034662117344936585, 0.00034723630924338015, 0.0003478595181868038, 0.0003484908248012773, 0.0003491302528702132, 0.00034977782543994503, 0.0003504335648211034, 0.0003510974925902181, 0.0003517696295915456, 0.00035244999593911667, 0.00035313861101900494, 0.00035383549349181175, 0.0003545406612953651, 0.00035525413164763013, 0.0003559759210498276, 0.0003567060452897582, 0.0003574445194453269, 0.0003581913578882677, 0.00035894657428806097, 0.00035971018161604334, 0.000360482192149704, 0.0003612626174771633, 0.0003620514685018326, 0.00036284875544724657, 0.00036365448786206757, 0.00036446867462525617, 0.0003652913239514028, 0.00036612244339621805, 0.0003669620398621739, 0.00036781011960429515, 0.0003686666882360922, 0.00036953175073563445, 0.00037040531145175553, 0.00037128737411038935, 0.00037217794182102905, 0.0003730770170833059, 0.0003739846017936815, 0.000374900697252251, 0.0003758253041696485, 0.00037675842267405384, 0.0003777000523182926, 0.0003786501920870262, 0.0003796088404040263, 0.00038057599513952853, 0.0003815516536176613, 0.00038253581262394495, 0.0003835284684128543, 0.00038452961671544254, 0.0003855392527470207, 0.00038655737121488646, 0.0003875839663260999, 0.0003886190317953005, 0.0003896625608525598, 0.000390714546251268, 0.0003917749802760464, 0.00039284385475068433, 0.0003939211610460946, 0.00039500689008828416, 0.00039610103236633395, 0.0003972035779403871, 0.00039831451644963803, 0.00039943383712032053, 0.00040056152877369016, 0.0004016975798339982, 0.0004028419783364516] | ||
z: [0.0, 0.010101010101010102, 0.020202020202020204, 0.030303030303030304, 0.04040404040404041, 0.05050505050505051, 0.06060606060606061, 0.07070707070707072, 0.08080808080808081, 0.09090909090909091, 0.10101010101010102, 0.11111111111111112, 0.12121212121212122, 0.13131313131313133, 0.14141414141414144, 0.15151515151515152, 0.16161616161616163, 0.17171717171717174, 0.18181818181818182, 0.19191919191919193, 0.20202020202020204, 0.21212121212121213, 0.22222222222222224, 0.23232323232323235, 0.24242424242424243, 0.25252525252525254, 0.26262626262626265, 0.27272727272727276, 0.2828282828282829, 0.29292929292929293, 0.30303030303030304, 0.31313131313131315, 0.32323232323232326, 0.33333333333333337, 0.3434343434343435, 0.3535353535353536, 0.36363636363636365, 0.37373737373737376, 0.38383838383838387, 0.393939393939394, 0.4040404040404041, 0.4141414141414142, 0.42424242424242425, 0.43434343434343436, 0.4444444444444445, 0.4545454545454546, 0.4646464646464647, 0.4747474747474748, 0.48484848484848486, 0.494949494949495, 0.5050505050505051, 0.5151515151515152, 0.5252525252525253, 0.5353535353535354, 0.5454545454545455, 0.5555555555555556, 0.5656565656565657, 0.5757575757575758, 0.5858585858585859, 0.595959595959596, 0.6060606060606061, 0.6161616161616162, 0.6262626262626263, 0.6363636363636365, 0.6464646464646465, 0.6565656565656566, 0.6666666666666667, 0.6767676767676768, 0.686868686868687, 0.696969696969697, 0.7070707070707072, 0.7171717171717172, 0.7272727272727273, 0.7373737373737375, 0.7474747474747475, 0.7575757575757577, 0.7676767676767677, 0.7777777777777778, 0.787878787878788, 0.797979797979798, 0.8080808080808082, 0.8181818181818182, 0.8282828282828284, 0.8383838383838385, 0.8484848484848485, 0.8585858585858587, 0.8686868686868687, 0.8787878787878789, 0.888888888888889, 0.8989898989898991, 0.9090909090909092, 0.9191919191919192, 0.9292929292929294, 0.9393939393939394, 0.9494949494949496, 0.9595959595959597, 0.9696969696969697, 0.9797979797979799, 0.98989898989899, 1.0] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not necessary to insert this parameter into the DataBlock provided by the sampler. It will be inserted by Firecrown.