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

remote invocation of builtin functions #42

Open
mckenzig opened this issue Sep 27, 2016 · 1 comment
Open

remote invocation of builtin functions #42

mckenzig opened this issue Sep 27, 2016 · 1 comment

Comments

@mckenzig
Copy link

Hi - not an issue, just a support request but I do not see details of support.

Let's say I want to call a remote function from python and pass it a dictionary. Inside the dict I have an entry 'starttime' which a pass a QTemporal for, all good.

Now I do not want to pass a concrete time, I want to pass .z.p i.e. have the server use the current time. Is that possible in qpython?

Thanks.

@SKolodynski
Copy link
Collaborator

If you want the server to use .z.p value in that entry the best way is to have
d[starttime]:.z.p;`
as the first line of your remote function (where d is the name of the parameter you pass to the function).
If you don't control the code of the remote function the only way to do that from qPython is to first query the server for .z.p and than call the remote function with the resulting value in the parameter. This may not be accurate though if the server is busy or the network latency significant.
The best place to ask questions like this is the exxeleron group on Google groups (registration required).

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