Skip to content
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

Examples not woking #87

Closed
sismasamuel opened this issue Dec 9, 2022 · 1 comment
Closed

Examples not woking #87

sismasamuel opened this issue Dec 9, 2022 · 1 comment

Comments

@sismasamuel
Copy link

I installed ATRS and Testexample .py worked. But when I tried to run absorption.ipynb its showing like this


Exception Traceback (most recent call last)
/tmp/ipykernel_12347/2548510084.py in
5
6 # Call ARTS to calculate absorption cross sections
----> 7 freq, abs_xsec = calculate_absxsec(species, pressure, temperature)

~/arts-2.4.0/controlfiles-python/example/01-rotational_spectra/absorption_module.py in calculate_absxsec(species, pressure, temperature, fmin, fmax, fnum, lineshape, normalization, verbosity)
59
60 ws.abs_lines_per_speciesReadSpeciesSplitCatalog(
---> 61 basename="spectroscopy/Artscat/"
62 )
63

~/arts-2.4.0/build/python/pyarts/workspace/workspace.py in call(self, *args, **kwargs)
269
270 def call(self, *args, **kwargs):
--> 271 self.m.call(self.ws, *args, **kwargs)
272
273 def repr(self):

~/arts-2.4.0/build/python/pyarts/workspace/methods.py in call(*args, **kwargs)
456 if (e_ptr):
457 raise Exception("Call to ARTS WSM " + self.name + " failed with error: "
--> 458 + e_ptr.decode("utf8").format())
459
460 # Remove temporaries from workspace (in reverse order).

Exception: Call to ARTS WSM abs_lines_per_speciesReadSpeciesSplitCatalog failed with error: Cannot find any bands in the directory you are reading

@olemke
Copy link
Member

olemke commented Dec 12, 2022

The current version of the arts-lectures requires ARTS 2.5.8. You can either follow the instructions in the README to install the pre-compiled conda package of PyARTS or download the ARTS source code from the ARTS releases page.

@olemke olemke closed this as completed Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants