Example #1
0
def h5preserve_experiment_repr():
    return DatasetContainer(attrs={
        "time started": "2000-01-01",
        "_h5preserve_namespace": "experiment",
        "_h5preserve_label": "Experiment",
        "_h5preserve_version": 1,
    },
                            data=np.random.rand(1000))
Example #2
0
 def _exp_dump(experiment):
     return DatasetContainer(
         data=experiment.data,
         attrs={"time started": experiment.time_started})