예제 #1
0
class Test_SimpleStore(Harness_Store):
	def setUp(self):
		self.s = SimpleStore()
		self.s.initialize(np.array([1.,0]), name=None)

	def test_openappend(self):
		with self.s.open() as events:
			self.s.append(np.array([1.,1]))
		nt.assert_equal(len(self.s),1)
		with self.s.open() as events:
			nt.assert_equal(events.dtype, float)
예제 #2
0
	def setUp(self):
		self.s = SimpleStore()
		self.s.initialize(np.array([1.,0]), name=None)