Releases: PaulSchweizer/flowpipe
Releases · PaulSchweizer/flowpipe
Event System
StatsReporter and LogObserver are replaced by a unified and simplified Event system.
Original Issue: #97
How to use:
# Simple functions serve as listeners
def omitted_listener(node):
print("Omitted:", node.name)
def started_listener(node):
print("Started:", node.name)
def finished_listener(node):
print("Finished:", node.name)
# Connect the listeners
INode.EVENTS['evaluation-omitted'].register(omitted_listener)
INode.EVENTS['evaluation-started'].register(started_listener)
INode.EVENTS['evaluation-finished'].register(finished_listener)
my_node = MyNode()
my_node.evaluate()
# Inspect the node's stats after evaluation
print(my_node.stats)
>> {"eval_time": 0.123, "start_time": 1573121193}
Bugfixes
v0.5.7 Bump to v0.5.7
Fixing threading returning too early
Threading will now wait for all nodes to finish evaluation
Unifying the evaluate interface
Revamped the Graph.evaluate
interface:
- evaluation modes are now accessible through the
mode
keyword. Options arelinear
,threading
andmultiprocessing
SubOutputs inform their parent when values set
v0.5.4 Bump to version 0.5.4
Enable py3.6 type-hint support for nodes
v0.5.3 Bump version to 0.5.3
Numpy data support
This will alleviate issues with numpy arrays without creating any additional dependencies and should handle a lot more types:
#69
Allow non-json-serializable types
v0.5.1 Update setup.py
Compound Plugs
Compound Plugs are now possible
Improving pypi information
travis multiple version fix (#41) * updated travis.yml for autodeploy on tag * Added install instruction to readme, updated version nr to correspond to github tag number, added readme as long_description, added pypi version badge * fixed travis for multiple python configs, fixed typo in README * changed rst badge syntax to proper markdown