jrleeman / rsfmodel

Rate and state frictional solver
MIT License
31 stars 12 forks source link

Enable Model Completeness Checking #6

Closed jrleeman closed 9 years ago

jrleeman commented 9 years ago

Add content to the empty readyCheck method that will verify that all things are set before the model will try to run.

def readyCheck(self):
    return True
jrleeman commented 9 years ago

Any recommendations on the best way to implement this, or if it should even be? @dopplershift

dopplershift commented 9 years ago

One way is to initialize all required parameters to None, and check all are no longer None for readyCheck().

You could eliminate the need by providing good defaults for some and requiring others in the constructors.