Skip to content

If Radex.datapath is not set explicitly, an OSError occurs #11

@tomr-stargazer

Description

@tomr-stargazer

Hey,
I just started using pyradex, and wanted to log the following unhandled error. I was following the example hosted here:
http://nbviewer.jupyter.org/github/keflavich/pyradex/blob/master/examples/FittingTheGrid.ipynb

and when I ran the following line:

R = pyradex.Radex(species='oh2co-h2', abundance=1e-8, column=1e14, temperature=20)

I got this error:
https://gist.github.com/tomr-stargazer/9f6448b4bfc5e93011f463bfe6980003

It looks like the code somehow mishandles the fact that self.datapath is set to None, so I wonder if there is a more elegant way to handle this (at least to throw a more sensible error).

I'd be happy to attempt to solve this myself as I get more comfortable and familiar with pyradex!

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