Ejemplo n.º 1
0
def test_experiment_list_has_fret_returns_list_with_fret():
	p = Pulling(trap, fret)
	mol = ExpList([p,p])
	has_fret = mol.has_attr('fret')
	eq_(has_fret, mol)
	print type(has_fret)
	assert_is_instance(has_fret, ExpList)
Ejemplo n.º 2
0
def test_explist_collapses_trap_data():
	p = Pulling(trap, None, meta)
	mol = ExpList([p,p])
	collapsed = mol.collapse().trap
	aggregated = TrapData.aggregate([trap,trap], 'ext')
	print "Collapsed using ExpList.collapse():", collapsed.data
	print "Aggregated using TrapData.aggregate():", aggregated.data
	ok_(all(collapsed.data==aggregated.data), "Data is stacked and sorted by ext")
	eq_(aggregated.metadata, {}, "Metadata is ignored when aggregated")
Ejemplo n.º 3
0
def test_experiment_list_nofret():
	p = Pulling(trap)
	mol = ExpList([p,p])
	has_fret = mol.has_attr('fret')
	eq_(has_fret, [])