-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made a new branch called logLmax with the updated anesthetic.examples… (
#348) * Made a new branch called logLmax with the updated anesthetic.examples.perfect_ns.correlated_gaussian. * Changed Version from 2.4.2 to 2.4.3 * Trying to fix flake8 error * Added a test, tests.test_examples.test_perfect_ns_correlated_gaussian, which checks that the logLmax functionality is working * Updated the tests/test_ns_correlated_gaussian.py to follow the format of the other tests. I am using numpy.testing.assert_allclose() but not sure what to put for rtol and atol. I have also updated the .gitignore file to exclude the .DS_Store file. In the __init__.py, I added a temporary line in line 12 to check if the correct anesthetic is being imported locally. This line will need to be removed later. * Fixed the flake8 compliance issue * Updated tests/test_perfect_ns_correlated_guassian.py and added absolute tolerance to the assert_allclose function in test_logLmax. The test is passed. I previously accidentally deleted tests/test.ipynb so I added it back. Deleted the line, print test logLmax in anesthetic/__init__.py * Removed tests/test.ipynb file. Move the test logLmax function from test_perfect_ns_correlated_gaussian.py to tests/test_examples.py, then removed test_perfect_ns_correlated_gaussian.py. Added logLmax variable to gaussian() in anesthetic/examples/perfect_ns.py. Changed version number to 2.5.0 becuase we have added functionality. Modified the planck_gaussian() function in examples/perfect_ns.py, added logLmax when calling the correlated_gaussian() function. * Removed the lines for printing out the test results of test_logLmax(). * Changed version number from 2.5.0 to 2.6.0 * Updated planck_gaussian function in perfect_ns.py * Deleted unused lines in planck_gaussian function in perfect_ns.py * Fixing flake issues. * Added the option to pass arguments to NestedSamples constructor * Updated the logL_mean test * flake8 correction * Added myself Dily Ong as one of the authors of anesthetic. * Added LogLmax to guassian function's docstring in perfect_ns.py * Added LogLmax to correlated_guassian function's docstring in perfect_ns.py * Solved flake8 issue. --------- Co-authored-by: Will Handley <[email protected]>
- Loading branch information
1 parent
7c30e72
commit b93dec5
Showing
7 changed files
with
65 additions
and
33 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ plikHM_TTTEEE_lowl_lowE_lensing_NS/ | |
*~ | ||
.pytest_cache/* | ||
.coverage | ||
|
||
.DS_Store |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '2.6.0' | ||
__version__ = '2.7.0' |
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 |
---|---|---|
|
@@ -25,6 +25,7 @@ authors = [ | |
{ name="Aleksandr Petrosyan", email="[email protected]" }, | ||
{ name="Liangliang Su", email="[email protected]"}, | ||
{ name="David Yallup", email="[email protected]" }, | ||
{ name="Dily Ong", email="[email protected]" } | ||
] | ||
description = "nested sampling post-processing" | ||
readme = "README.rst" | ||
|
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