[style] fixed whitespace in dataset.py
@@ -8,7 +8,6 @@ Definition of RSA Dataset class and subclasses
import numpy as np
-import pickle
from pyrsa.util.data_utils import get_unique_unsorted
from pyrsa.util.descriptor_utils import check_descriptor_length_error
from pyrsa.util.descriptor_utils import subset_descriptor
@@ -375,7 +374,6 @@ class TemporalDataset(Dataset):
"""
TemporalDataset for spatio-temporal datasets
-
Args:
measurements (numpy.ndarray): n_obs x n_channel x time 3d-array,
descriptors (dict): descriptors (metadata)
@@ -404,7 +402,6 @@ class TemporalDataset(Dataset):
self.measurements = measurements
self.n_obs, self.n_channel, self.n_time = self.measurements.shape
-
if time_descriptors is None:
time_descriptors = {'time': np.arange(self.n_time)}
elif 'time' not in time_descriptors:
@@ -572,7 +569,6 @@ class TemporalDataset(Dataset):
obs_descriptors=self.obs_descriptors,
channel_descriptors=self.channel_descriptors,
time_descriptors=time_descriptors)
-
return dataset
def subset_obs(self, by, value):
@@ -659,7 +655,6 @@ class TemporalDataset(Dataset):
time_descriptors=time_descriptors)
return dataset
-
def sort_by(self, by):
""" sorts the dataset by a given observation descriptor
@@ -739,8 +734,6 @@ class TemporalDataset(Dataset):
return data_dict
-
-
def load_dataset(filename, file_type=None):
""" loads a Dataset object from disc
