-
Notifications
You must be signed in to change notification settings - Fork 12
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
Jupyter Kernal Crashing Upon running Radex() #38
Comments
I suspect we're having a similar problem, so I'll post some information in this issue. When the Python kernel dies in Jupyter, I suspect that's from a fatal error in the wrapped Fortran part pyradex: the function
When using different values for HCO+ instead of CO, it didn't error per se, but produced similar very small radiation temperatures and level populations as your SiO trials. The error above comes from trying to solve a singular matrix, i.e. on that is not invertable and is degenerate. This is probably because it's getting a bunch of small, practically random numbers (although given the next test below, I'm not so sure). The way Running the code for the HCO+ test example in the RADEX source with
Unfortunately these numbers (the first four rows and columns of the rate matrix) after first adding the radiative terms and then adding the collisional terms, are precisely what they should be. The next step calls |
@autocorr what version of numpy + f2py are you using? The weirdest thing is that Savannah encountered these errors when running exactly the version I was running - i.e., the same executable on the same machine. That leads me to suspect that the problem comes from different versions of libraries getting pulled in depending on which global PATHs are set, which hints perhaps at a version mismatch between the compiled version and the libraries. But I don't really know how to track that sort of thing down when fortran's involved. |
@keflavich I'm running this on numpy Unfortunately I'm not sure how to inspect what libs it's using at runtime either... |
I am worried about specific versions of numpy doing weird things with the compiled fortran too - there are occasional changes in small things. Also, not so sure if changing the version of numpy (upgrading it) without re-compiling the fortran has any possible effects. |
@autocorr you ever get anywhere further with this? I'm still encountering the same issue:
but it affects linux (redhat), not mac. So is this a difference in the version of the slatec library? Or more fundamentally how nix is handling floats? |
I've been having an issue where I run the following code:
Using jupyter lab, the kernal will either crash and restart, or gives the attached table of values with zeroes as brightness temperatures.
Using ipython on my local machine and running the same code, ipython will crash and give the same error in Issue #30. Once, instead of crashing it gave the same attached table of values with zeroes as brightness temperatures.
Run correctly, the table should look something like this:
The text was updated successfully, but these errors were encountered: