Closed debanjan-cosmo closed 2 years ago
Thank you @debanjan-cosmo! Code-wise, this looks excellent. Physics-wise, I'll get @BradGreig, @andreimesinger or @qyx268 to review.
The only thing I'd like to see is some tests. I think the appropriate thing to do here is to run a lightcone with and without the new features (perhaps one at a time), and show the difference in the power spectra, global Tb, global xH etc. You can make those plots and put them in comments in this PR, to justify that your code is working as expected. Then you'll want to add new test(s) to the tests/produce_integration_test_data.py
file and run that file.
So, for example you might add the following entries to the OPTIONS
dictionary in that module:
"lyman_alpha_heating": [
8,
{"N_THREADS": 4, "USE_Lya_HEATING": True},
],
"cmb_heating": [
8,
{"N_THREADS": 4, "USE_CMB_HEATING": True},
],
Then you would do
cd tests
python produce_integration_test_data.py go --names lyman_alpha_heating --names cmb_heating --no-pt --no-halo
This will produce a few new files in the tests directory which you then add to git and upload.
Thanks, Steven. I'll do the tests and upload the results.
Best, Debanjan
On Wed, 18 May 2022 at 16:33, Steven Murray @.***> wrote:
Thank you @debanjan-cosmo https://github.com/debanjan-cosmo! Code-wise, this looks excellent. Physics-wise, I'll get @BradGreig https://github.com/BradGreig, @andreimesinger https://github.com/andreimesinger or @qyx268 https://github.com/qyx268 to review.
The only thing I'd like to see is some tests. I think the appropriate thing to do here is to run a lightcone with and without the new features (perhaps one at a time), and show the difference in the power spectra, global Tb, global xH etc. You can make those plots and put them in comments in this PR, to justify that your code is working as expected. Then you'll want to add new test(s) to the tests/produce_integration_test_data.py file and run that file.
So, for example you might add the following entries to the OPTIONS dictionary in that module:
"lyman_alpha_heating": [ 8, {"N_THREADS": 4, "USE_Lya_HEATING": True}, ],"cmb_heating": [ 8, {"N_THREADS": 4, "USE_CMB_HEATING": True}, ],
Then you would do
cd tests python produce_integration_test_data.py go --names lyman_alpha_heating --names cmb_heating --no-pt --no-halo
This will produce a few new files in the tests directory which you then add to git and upload.
— Reply to this email directly, view it on GitHub https://github.com/21cmfast/21cmFAST/pull/284#issuecomment-1130024220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUR6I2GHJO4ZZR7OSNR37ITVKTWSXANCNFSM5WHOEHUQ . You are receiving this because you were mentioned.Message ID: @.***>
Hi,
I tried to conduct the test and I am getting the following error message.
File "produce_integration_test_data.py", line 699, in
I could not locate the error. Can you please help me with this?
Hi @debanjan-cosmo, it looks like you're trying to set an integer value on one of the InputStructs with a non-integer. What exact code are you running?
Hi,
Actually I pushed a wrong file and it created problem. I faced some problem locally with that branch. So I deleted it and created a fresh branch. I have performed the test on this new branch and it generated two files. I have pushed the changes and new files in the new branch. I’ll try a pull request tomorrow once I have the results which I can show with the PR comment.
Thanks for the help.
Best, @debanjan-cosmo
On Thu, 19 May 2022 at 16:19 Steven Murray @.***> wrote:
Hi @debanjan-cosmo https://github.com/debanjan-cosmo, it looks like you're trying to set an integer value on one of the InputStructs with a non-integer. What exact code are you running?
— Reply to this email directly, view it on GitHub https://github.com/21cmfast/21cmFAST/pull/284#issuecomment-1131679440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUR6I2EKW6R4PUDJMXSQOJDVKY5W7ANCNFSM5WHOEHUQ . You are receiving this because you were mentioned.Message ID: @.***>
-- DEBANJAN SARKAR
----------------------------------------------------------- Department of Physics Ben-Gurion University of the Negev Beer-Sheva, Israel Mob: +972-53-8540546 Email: @. @.
Hi,
I have added CMB and Lyman-alpha heating to this code. I have done some basic testing and the code seems to work fine. Please check and let me know if anything needs to be done.
CMB heating term is calculated following https://arxiv.org/pdf/2105.14516.pdf. The Lyman-alpha heating is implemented as described in https://doi.org/10.1093/mnras/stab2089.
Best, Debanjan