Ejemplo n.º 1
0
 def get(self, experiment_id, render_format):
     """
     Display experiment record.
     """
     # pylint: disable=no-self-use
     experiment = Experiment.get(experiment_id)
     print(render(experiment, render_format))
     if render_format == 'table':
         datasets = Dataset.list(experiment_id=experiment_id)
         print(render(datasets, render_format, display_heading=False))
Ejemplo n.º 2
0
 def list(self, experiment_id, filters, limit, offset, order_by,
          render_format):
     """
     Display list of dataset records.
     """
     # pylint: disable=too-many-arguments
     # pylint: disable=no-self-use
     datasets = Dataset.list(experiment_id, filters,
                             limit, offset, order_by)
     print(render(datasets, render_format))