Closed SamSweere closed 3 years ago
@SamSweere what versions of yt and pyxsim are you using?
yt: Version: 3.6.1 pyxsim: Version: 2.3.0
@SamSweere First off, this is not correct:
emission_measure_field=("PartType0", "ElectronAbundance")
This argument needs the actual emission measure field and not the electron abundance field. If you have the ("PartType0", "ElectronAbundance")
field then you should not need to set the emission_measure_field
at all because it will be auto-detected.
That indeed fixes the problem. My bad. Thank you a lot for the help!
Hi @jzuhone,
I think I found a bug with the PhotonList.from_data_source(). After hours of debugging and getting inconsistent results I found that I need to run twice in order to get any generated photons.
I am currently in the progress of converting Illustrius TNG data to x-ray simput files. The code to re-create the bug is shown below. In order to run it you need the Illustrius TNG cutout which you can download from: https://drive.google.com/file/d/17Easa8wQ8PTG2Sb_tOqeGxH8cG-SLgz5/view?usp=sharing
Thanks in advance! Sam