Example #1
0
 def _view_theta_fired(self):
     """Create viewer for theta parameters."""
     theta_view = ParametersTabularView(
         title = 'Model B-with-Theta, parameters Theta',
         data=[self.model.theta.tolist()]
     )
     theta_view.edit_traits()
Example #2
0
 def _view_gamma_fired(self):
     """Create viewer for gamma parameters."""
     gamma_view = ParametersTabularView(
         title = 'Model B-with-Theta, parameters Gamma',
         data=[self.gamma]
     )
     gamma_view.edit_traits()
Example #3
0
 def _view_omega_fired(self):
     """Create viewer for parameters omega."""
     omega_view = ParametersTabularView(
         title = 'Model A, parameters Omega',
         data = [self.model.omega.tolist()]
     )
     omega_view.edit_traits()
Example #4
0
 def _view_pi_fired(self):
     """Create viewer for parameters pi."""
     pi_view = ParametersTabularView(
         title = 'Model B, parameters Pi',
         data = [self.model.pi.tolist()]
     )
     pi_view.edit_traits()
Example #5
0
 def _view_omega_fired(self):
     """Create viewer for parameters omega."""
     omega_view = ParametersTabularView(title='Model A, parameters Omega',
                                        data=[self.model.omega.tolist()])
     omega_view.edit_traits()
Example #6
0
 def _create_theta_j_view(self, j):
     return ParametersTabularView(
         data = self.theta[j,:,:].tolist(),
     )