Commit Graph

6 Commits

Author SHA1 Message Date
Derek Bankieris
03f79dbbe0 Fix Pylint issues
I have discovered Pylint! May our Python forevermore be compliant.

Refs #365
2017-03-28 16:16:34 -05:00
Derek Bankieris
3db5056db3 Fix timeout error in VariableServer.fromPID
After calculating the remaining timeout, make sure it's still
non-negative.

Refs #365
2017-02-08 08:32:23 -06:00
Derek Bankieris
39af68cc1d Improve asynchronous error handling
Add the ability to register callbacks for errors that occur on the
asynchronous variable sampling thread. Implement __del__ and call
close in case the user forgot. Join the asynchronous sampling thread
in close before returning.

Refs #365
2017-01-30 09:33:28 -06:00
Derek Bankieris
4146b440b8 Make trick (Python package) a namespace package
Namespace packages are a mechanism for splitting a single Python
package across multiple directories on disk. With the addition of
$(TRICK_HOME)/pymods/trick, there now exists a package named 'trick' at
$(TRICK_HOME)/pymods and in each SIM_* directory. This change allows sims
to import modules from both locations.

Refs #365
2017-01-20 10:30:21 -06:00
Derek Bankieris
fc63f5c6b1 Add option to connect via PID (variable_server.py)
Refs #365
2017-01-20 09:47:08 -06:00
Derek Bankieris
a8c41d7cb5 Move new Python modules to intended location
They're supposed to be at the top level, not in share. Oops!

Refs #365
2017-01-12 14:52:43 -06:00