org-arl / arlpy

ARL Python Tools
BSD 3-Clause "New" or "Revised" License
119 stars 37 forks source link

Saving bellhop output file #104

Closed yor-b closed 1 month ago

yor-b commented 1 month ago

I have to use some program which requires the bellhop output arrivals file as an input for some further processing. Is there some function to save these outputs to a file?

mchitre commented 1 month ago

Yes. Set debug to True and it will not delete the files until you have had a chance to explore them.

yor-b commented 1 month ago

Thanks for the quick reply. Okay, I tried this in eigenray rays = pm.compute_eigenrays(env, debug=True) pm.plot_rays(rays, env=env, width=900)

I got this in the output:

[DEBUG] Model: bellhop [DEBUG] Bellhop working files: /tmp/tmpvh4rktyt.*

image

when I click the hyperlink, I get some error saying the file was not found image

yor-b commented 1 month ago

Okay to answer my own question, I found these files when I actually ran this from a terminal. It works from vscode too, but the hyperlink does not. Is there any way to save these files to a specific directory and not in /tmp?

mchitre commented 1 month ago

They should be there. The .* refers to multiple files with different extensions. VSCode presumably doesn't understand that convention and tries opening a file with .* in its name.