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

Conventions and utilities for Python Operations #208

Open
eirrgang opened this issue Dec 7, 2018 · 0 comments
Open

Conventions and utilities for Python Operations #208

eirrgang opened this issue Dec 7, 2018 · 0 comments
Assignees

Comments

@eirrgang
Copy link
Collaborator

eirrgang commented Dec 7, 2018

Users should be able to easily map arbitrary Python functions into work graphs. In order to allow serialization and remote dispatching, Python code needs to be loadable from a module, so a driver script can't easily provide arbitrary functions. But a user can put the function in a .py file and the session launcher can import it. To make this easy, we should have a base class in the package that automatically fits the updated data flow and launch stuff being developed in #190.

It is plausible that the driver script could be an importable module, such that a function defined in the driver script could be wrapped, but that could be a whole can of recursion worms that we shouldn't try to tackle right out of the gate.

@eirrgang eirrgang changed the title provide base class for Python Operation nodes Conventions and utilities for Python Operations Dec 31, 2018
@eirrgang eirrgang self-assigned this Dec 31, 2018
@eirrgang eirrgang added this to the gmxapi_workspec_0_2 milestone Dec 31, 2018
@eirrgang eirrgang added this to To do in 0.0.7.2 via automation Dec 31, 2018
eirrgang added a commit to eirrgang/gmxapi that referenced this issue Jan 4, 2019
Supports kassonlab#208

* Enumerate new work graph and Python operations.
* Design notes on work graph grammar and semantics.
* New object model and execution formalism.
* Create gmx.operation module for base classes and/or tools to wrap
  Python functionality in gmxapi-compatible Operations.
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

1 participant