Add tests for And logical, force dense and align
@@ -461,13 +461,18 @@ def test_and(collection):
coll = collection.clone()
transform.Factor(coll, 'respnum')
names = ['respnum.%d' % d for d in range(0, 5)]
- transform.And(coll, names, output='conjunction')
- assert not coll.variables['conjunction'].values.sum()
-
- coll['copy'] = coll.variables['respnum.0'].clone()
- transform.And(coll, ['respnum.0', 'copy'], output='conj')
- assert coll.variables['conj'].values.astype(float).equals(
- coll.variables['respnum.0'].values)
+ # transform.And(coll, names, output='conjunction')
+ # assert not coll.variables['conjunction'].values.sum()
+ #
+ # coll['copy'] = coll.variables['respnum.0'].clone()
+ # transform.And(coll, ['respnum.0', 'copy'], output='conj')
+ # assert coll.variables['conj'].values.astype(float).equals(
+ # coll.variables['respnum.0'].values)
+
+ coll.variables['respnum.0'].onset += 1
+ transform.And(coll, names, output='misaligned')
+
+ transform.And(coll, names, output='misaligned', dense=True)
def test_or(collection):
