Spartan: A distributed array language.
Start a cluster with num_workers workers.
If use_cluster_workers is True, then use the remote workers defined in spartan.config. Otherwise, workers are all spawned on the localhost.
Parameters: |
|
---|
Configuration options and flags.
Options may be specified on the command line, or via a configuration file. Configuration files should be placed in $HOME/.config/spartanrc.
Bases: object
Assertion helper functions.
a = 'foo'
b = 'bar'
Assert.eq(a, b)
# equivalent to:
# assert a == b, 'a == b failed (%s vs %s)' % (a, b)
Bases: object
Lazy timer.
Prints elapsed time when destroyed.
Bases: threading.Thread
Watchdog for a file (typically sys.stdin or sys.stdout).
When the file closes, terminate the process. (This occurs when an ssh connection is terminated, for example.)
Decorator: count calls to fn and print after each 100. :param fn:
Function decorator to check return type.
Usage:
@rtype_check(int)
def fn(x, y, z):
return x + y
Decorator: execution of this function is serialized by an threading.RLock. :param fn:
Run f and log the amount of time taken.
Parameters: |
|
---|