Open foff1nho opened 1 week ago
Thanks for reporting this bug. Actually, the file molparam.txt
could be further updated with the new HITRAN version here: https://hitran.org/media/molparam.txt. Notably, the partition function at 296 K are also changed a bit but I'm not sure this is used anyway. @erwanp do you know if only the molar mass and abundance are used?
Concerning the assert statement assert isinstance(out, float)
, I guess this works because it verifies that there is only a single entry that matches the isotopologue request.
@foff1nho do you want to create a PR on this?
š Describe the bug
There is an error in the handling of the isotopes of NO2. Error 1: In the molparam.txt file: The data format should be:
But for NO2 is written as:
Note the second row of the second column for NO2, the isotope should be 2 rather than 1.
Error 2: In the molparam.py file:
Only one of the isotopes of NO2 is present, error is on line 62:
the correct version should be:
Finally, after implementing these changes this result in a further error on line 357 of molparam.py:
The assert statement does not work anymore as self.df.loc always returns a float64. In keeping with the original intention, I fixed this with the following:
š” Possible solutions
As described above
š² Radis version
0.15.2
š» Operating system
MacOS