Ejemplo n.º 1
0
 def prepare_parameters(datatype_group_gid,
                        back_page,
                        color_metric=None,
                        size_metric=None):
     pse_model = PSEDiscreteGroupModel(datatype_group_gid, color_metric,
                                       size_metric, back_page)
     return pse_model.pse_context
Ejemplo n.º 2
0
    def launch(self, view_model):
        # type: (DiscretePSEAdapterModel) -> dict
        """
        Launch the visualizer.
        """
        pse_model = PSEDiscreteGroupModel(view_model.datatype_group.hex, None, None, '')
        pse_context = pse_model.pse_context
        pse_context.prepare_individual_jsons()

        return self.build_display_result('pse_discrete/view', pse_context,
                                         pages=dict(controlPage="pse_discrete/controls"))