0.19.0
0.19.0 - 2022-11-22
Changed
-
BREAKING CHANGE (#65)
- Register functions to substratools can be done with a decorator.
def my_function1: pass def my_function2: pass if __name__ == '__main__': tools.execute(my_function1, my_function2)
become
@tools.register def my_function1: pass @tools.register def my_function2: pass if __name__ == '__main__': tools.execute()
-
BREAKING CHANGE (#63)
- Rename algo to function.
tools.algo.execute
becometools.execute
- The previous algo class pass to the function
tools.algo.execute
is now several functions pass as arguments totools.execute
. The function given by the cli--function-name
is executed.
if __name__ == '__main__': tools.algo.execute(MyAlgo())
become
if __name__ == '__main__': tools.execute(my_function1, my_function2)