lava
lava copied to clipboard
Process.run and Runtime.start should accept an int or None as conditions
User story
As a user, I want to be able to pass an int or None to the runtime.start method and process.run, rather than an AbstractRunCondition. If I pass an int, runtime.start should create a RunSteps condition with the value of the int as the number of steps. If I pass None, runtime.start should create a RunContinuous condition. This will reduce the need to import or know about the RunCondition classes for the vast majority of use cases.
Conditions of satisfaction
- User can pass an AbstractRunCondition, int, or None for the condition parameter of Process.run
- User can pass an AbstractRunCondition, int, or None for the condition parameter of Runtime.start
- If the condition is an int, that will be used as the number of steps to run the process.
- If the condition is None, the process will run with a RunContinuous condition.