def test__create_from_quantities_array(self):
        data = np.arange(10.0) * pq.mV
        rate = 5000*pq.Hz
        signal = AnalogSignal(data, sampling_rate=rate)
        assert_neo_object_is_compliant(signal)
        self.assertEqual(signal.t_start, 0*pq.ms)
        self.assertEqual(signal.t_stop, data.size/rate)
        self.assertEqual(signal[9], 0.009*pq.V)
dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/test/coretest/test_analogsignal.py/TestAnalogSignalConstructor.test__create_from_quantities_array/original