attempt to simplify DatasetBase constructor
@@ -35,11 +35,9 @@ class DatasetBase:
"""
def __init__(self, measurements, descriptors=None,
obs_descriptors=None, channel_descriptors=None):
- if measurements is not None:
if measurements.ndim != 2:
raise AttributeError(
"measurements must be in dimension n_obs x n_channel")
- else:
self.measurements = measurements
self.n_obs, self.n_channel = self.measurements.shape
check_descriptors_dimension(obs_descriptors, "obs_descriptors",
