if self.model is None when the user clicks on a dashboard button (because the user forgot to compile the network, say), a simple error message should be printed ("Please compile the network first") rather than an ugly Exception (+ stacktrace) being generated.
if self.model is None when the user clicks on a dashboard button (because the user forgot to compile the network, say), a simple error message should be printed ("Please compile the network first") rather than an ugly Exception (+ stacktrace) being generated.