lava-nc / lava

A Software Framework for Neuromorphic Computing
https://lava-nc.org
Other
529 stars 136 forks source link

Process.run and Runtime.start should accept an int or None as conditions #768

Open tim-shea opened 11 months ago

tim-shea commented 11 months ago

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