

def setUp(self):
    self.lat = np.array([10, 12, 14, 16, 18])
    self.lon = np.array([100, 102, 104, 106, 108])
    self.time = np.array([dt.datetime(2000, x, 1) for x in range(1, 13)])
    flat_array = np.array(range(300))
    self.value = flat_array.reshape(12, 5, 5)
    self.variable = 'prec'
    self.name = 'foo'
    self.origin = {
        'path': '/a/fake/file/path',
    }
    self.test_dataset = Dataset(self.lat, self.lon, self.time, self.value, variable=self.variable, name=self.name, origin=self.origin)

dataset/ETHPy150Open apache/climate/ocw/tests/test_dataset.py TestDatasetAttributes.setUp/original