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

Catch HOOMD errors in the main thread #8

Open
ctk3b opened this issue Apr 14, 2015 · 2 comments
Open

Catch HOOMD errors in the main thread #8

ctk3b opened this issue Apr 14, 2015 · 2 comments

Comments

@ctk3b
Copy link
Member

ctk3b commented Apr 14, 2015

We need to catch and raise HOOMD errors instead of just logging them and proceeding.

Currently, not doing this gives no information relevant to where the actual failure occurred and instead failures somewhere in the RDF calculation when it realizes that there's no trajectory to read.

@tcmoore3
Copy link
Collaborator

Agreed. Can the multiprocessing pool get return values/output to catch this?

@ctk3b
Copy link
Member Author

ctk3b commented Apr 14, 2015

We can use PIPE to get the results back into variables instead of logging to a file. I'm not exactly sure what happens to errors raised on subprocesses but I guess we'll find out.

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

No branches or pull requests

2 participants