Ejemplo n.º 1
0
 def update(self, dataset_id, description, render_format):
     """
     Update dataset record.
     """
     # pylint: disable=no-self-use
     dataset = Dataset.update(dataset_id, description)
     print(render(dataset, render_format))
     print("Dataset updated successfully.")
Ejemplo n.º 2
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.º 3
0
 def get(self, dataset_id, render_format):
     """
     Display dataset record.
     """
     # pylint: disable=no-self-use
     dataset = Dataset.get(dataset_id)
     print(render(dataset, render_format))
     if render_format == 'table':
         datafiles = DataFile.list(dataset_id)
         print(render(datafiles, render_format))
Ejemplo n.º 4
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))
Ejemplo n.º 5
0
 def create(self, experiment_id, description, instrument_id, params,
            render_format):
     """
     Create dataset record.
     """
     # pylint: disable=too-many-arguments
     # pylint: disable=no-self-use
     dataset = Dataset.create(experiment_id, description, instrument_id,
                              params)
     print(render(dataset, render_format))
     print("Dataset created successfully.")