CIDARLAB / clotho3

Clotho is a framework for engineering synthetic biological systems and managing the data used to create them. You can author data schemas, run functions and algorithms, and tie Clotho into existing applications.
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Returning object to a variable after run call #389

Closed jcaucb closed 9 years ago

jcaucb commented 10 years ago

this command bar statement works:

clotho.run("org.andersonlab.py_fetchRegistry", ["BBa_b0015"]);

The data shows up as normal looking json in the activity log, but this fails:

var bob = clotho.run("org.andersonlab.py_fetchRegistry", ["BBa_b0015"]);

The browser (or, more likely the Mind's scriptengine) hangs up as though it is waiting for something that is never received.

maxbates commented 10 years ago

It is likely on the server. Check the browser console and post it if there is an issue there. But I think it's the run hacks you introduced.. Which likely requires we add our own basic language interpreter.

On Mon, Jul 14, 2014 at 8:32 PM, J. Christopher Anderson notifications@github.com wrote:

this command bar statement works: clotho.run("org.andersonlab.py_fetchRegistry", ["BBa_b0015"]); The data shows up as normal looking json in the activity log, but this fails: var bob = clotho.run("org.andersonlab.py_fetchRegistry", ["BBa_b0015"]);

The browser (or, more likely the Mind's scriptengine) hangs up as though it is waiting for something that is never received.

Reply to this email directly or view it on GitHub: https://github.com/CIDARLAB/clotho3/issues/389

maxbates commented 10 years ago

@jcaucb - if we use terminal as console, and command bar as simple sloppy search, will you just removing your submit hacks be enough to close this?

jcaucb commented 10 years ago

No, I don't think this bug is in that part of the code. I think the problem is in run, not in submit. On Jul 24, 2014 1:13 AM, "Maxwell Bates" notifications@github.com wrote:

@jcaucb https://github.com/jcaucb - if we use terminal as console, and command bar as simple sloppy search, will you just removing your submit hacks be enough to close this?

— Reply to this email directly or view it on GitHub https://github.com/CIDARLAB/clotho3/issues/389#issuecomment-49971134.

maxbates commented 10 years ago

ok, then in run. Is this a matter of removing some code, or more refactoring? Can you assign yourself if you're going to do this?

jcaucb commented 10 years ago

Is this blocking something you are trying to do? On Jul 24, 2014 5:17 PM, "Maxwell Bates" notifications@github.com wrote:

ok, then in run. Is this a matter of removing some code, or more refactoring? Can you assign yourself if you're going to do this?

— Reply to this email directly or view it on GitHub https://github.com/CIDARLAB/clotho3/issues/389#issuecomment-50085912.

maxbates commented 10 years ago

Not too soon, just github cleaning. Will in a few weeks when refining command bar.

jcaucb commented 10 years ago

I think this is python-specific. Kelvin could probably fix it easily. I'm sure anyone at bu could fix it. I may be able to fix it when I get home. On Jul 24, 2014 5:31 PM, "Maxwell Bates" notifications@github.com wrote:

Not too soon, just github cleaning. Will in a few weeks when refining command bar.

— Reply to this email directly or view it on GitHub https://github.com/CIDARLAB/clotho3/issues/389#issuecomment-50087077.

maxbates commented 9 years ago

this is working for me, so closing. Run it in the terminal, then type bob and you should see something.