Skip to content

Jupyter Kernal Crashing Upon running Radex() #38

@SpacialTree

Description

@SpacialTree

I've been having an issue where I run the following code:

import pyradex
# The path should refer to where the molecular data files are stored.
data='./data/'
R = pyradex.Radex(density=10**5, column=10**15, temperature=50, species='sio', datapath=data)
Tlvg = R(escapeProbGeom='lvg')
Tlvg

Using jupyter lab, the kernal will either crash and restart, or gives the attached table of values with zeroes as brightness temperatures.
image

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:

<Table length=20>
       Tex                  tau           frequency  upperstateenergy upperlevel lowerlevel     upperlevelpop          lowerlevelpop            brightness                T_B
        K                                    GHz            K                                                                              erg / (cm2 Hz s sr)             K
     float64              float64          float64       float64        bytes6     bytes6          float64                float64                float64                float64
------------------ --------------------- ----------- ---------------- ---------- ---------- ---------------------- ---------------------- ---------------------- ----------------------
 43.00127043761652    1.6551126000974052   43.423853             2.08     01         00        0.08887736421923301   0.031096939370898864 1.8814463305880553e-14      32.47605365459304
 38.87877786030384     6.776549531318966   86.846985             6.25     02         01         0.1330701596849882    0.08887736421923301  8.257497311145349e-14      35.63420519567343
37.340311997153876    13.843238069818273  130.268683             12.5     03         02        0.15757756362185393     0.1330701596849882 1.7516230636607365e-13      33.59609010935477
 37.58801347625897      20.1529917602968  173.688238            20.84     04         03        0.16230317399422695    0.15757756362185393  3.073500959343751e-13      33.16046879773295
 36.18337967090943    25.386539729231924  217.104919            31.26     05         04        0.14873642779677212    0.16230317399422695 4.4875517508389066e-13      30.98833701318935
 33.51212300554245     28.42799825707387  260.518009            43.76     06         05         0.1210428844252477    0.14873642779677212  5.738125559477095e-13     27.518367974592817
29.562182976653645    28.566256610346066  303.926812            58.35     07         06        0.08527102613157889     0.1210428844252477  6.469563663579779e-13      22.79633808098519
24.270021493757877     25.43467910467738  347.330581            75.02     08         07        0.04862666783083065    0.08527102613157889  6.243387188244012e-13      16.84466393116842
  17.9407230793653    18.787824978339522  390.728631            93.77     09         08       0.019109279304423483    0.04862666783083065  4.760644179573459e-13     10.149470338438322
12.327633352016502       9.2313583198246  434.120218            114.6     10         09       0.003896931916487397   0.019109279304423483  2.723271071224652e-13      4.703259867462964
 9.028588435853798    2.1165525894261155  477.504635           137.52     11         10      0.0003372015797760192   0.003896931916487397 1.2080733290093796e-13     1.7245120799255027
11.336345434950275   0.17620777896751225  520.881187           162.52     12         11     4.0403250404407386e-05  0.0003372015797760192  4.167265836377032e-14     0.4999217007303331
18.662274525439337  0.018110530772826736  564.249098            189.6     13         12     1.0224944523856482e-05 4.0403250404407386e-05  1.454685604294231e-14       0.14871525549452
21.264971660003923  0.004455645988704638  607.607719           218.76     14         13       2.78705125200321e-06 1.0224944523856482e-05  5.000528684488013e-15    0.04408567405930072
22.188434559698436 0.0012267247511957037   650.95629            250.0     15         14      7.288317528932284e-07   2.78705125200321e-06  1.614841142844157e-15   0.012403786367217581
22.918630347532385 0.0003247326221445022  694.294114           283.32     16         15     1.8128792048655494e-07  7.288317528932284e-07   4.88530158972442e-16   0.003298621917150412
23.599749117026015 8.171601144834894e-05  737.620462           318.72     17         16      4.290102895084982e-08 1.8128792048655494e-07  1.388757804192125e-16  0.0008307851564600045
 24.17809073361704 1.958266336001464e-05  780.934648            356.2     18         17      9.624760931550455e-09  4.290102895084982e-08  3.704610742103023e-17 0.00019771577695101698
23.698298801769916 4.519659897618835e-06    824.2359           395.76     19         18     1.9113073923531206e-09  9.624760931550455e-09  8.662373284063449e-18    4.1501325634804e-05
 22.68989207929122  9.28309376935288e-07 867.5235458           437.39     20         19      3.207320330689684e-10 1.9113073923531206e-09 1.6974743004721564e-18   7.34122936961071e-06

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions