Skip to content
This repository has been archived by the owner on May 28, 2020. It is now read-only.

RASPA2 & IPython Notebook #43

Open
almolsim opened this issue Feb 13, 2019 · 4 comments
Open

RASPA2 & IPython Notebook #43

almolsim opened this issue Feb 13, 2019 · 4 comments

Comments

@almolsim
Copy link

Hi everyone,

I am using RASPA2 without any problem from the command line (simulate sim_isotherme.input) but I am having trouble lauching it from IPython Notebook. Being in the right directory, the following commands do not produce any result or error (the program is just running empty) :
import RASPA2
RASPA2.run_script("sim_isotherme.input", structure=None, stream=True)

Can anybody help? Thank you very much!

@KunhuanLiu
Copy link

Instead of calling simulate, the binary file of compiled Raspa program, you are now using the Python wrapper instead. If you look at the python function run_script, you should notice that the output is directed to the stream (stdout) instead of generating an output file in the folder.

The output (streamed, which only works under linux system) should be a return value of your invoked function.

Let me know if this helps.

@almolsim
Copy link
Author

Thanks for the answer. The non-streamed version works from IPython Notebook (outputs are created in the current directory), but the streamed version is "running empty" (there is no return value). I add that I am using an emulated version of Linux with VirtualBox. Any idea?

@KunhuanLiu
Copy link

I don't use IPython or emulated Linux, so I unfortunately cannot help resolve the issue. Based on what you have said, it seems that the streaming will not work with the emulated Linux system. You can confirm if this is causing the problem instead of IPython environment by trying in your command line
"simulate -s XXX" (XXX as your usual inputs, -s tells the program to run in stream mode).

@almolsim
Copy link
Author

The command "simulate -s -c XXX.cif XXX.input" works in the command line. Strange ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants