CSULA-Qdots / filter

Data filtering for the CSULA quantum-dot spectroscopy experiment
3 stars 2 forks source link

Return Codes #17

Closed jbouzanquet closed 11 years ago

jbouzanquet commented 11 years ago

Right now MCP just plows on through steps whatever happens or doesn't happen in previous steps. If we added return codes, even just a generic code 1 means don't continue, then it could know to stop and avoid cluttering up a cli when you just want to read the first error. I haven't used such codes in shell before, is my commented out example on line 20 of MCP correct?

blackdjinn commented 11 years ago

Filter has IIRC only one fatal error condition, but I can have it return an exit code on that... The code catches most operator errors and chugs on. Tclsh will return an error code on an actual error.

If you are trying to avoid screen spam, I can add an option to suppress echoing log stuff to STDOUT.

blackdjinn commented 11 years ago

Oh... and I'll look at your MCP thing...

blackdjinn commented 11 years ago

Can we even /get/ error codes from MATLAB stuff?

jbouzanquet commented 11 years ago

I don't think we can. The file matlab, the one you invoke to start the environment and that our scripts start with redirected input, is actually a wrapper. The executable that controls the interface, and presumably performs or launches mathematical evaluation, is MATLAB. And although I'm not entirely sure, I think matlab may close before MATLAB.

blackdjinn commented 11 years ago

Since the rest of this isn't going to be implemented... Closing this as fixed in mainline.