`test1` is presumbly the python way to apply the rules, where `test2` is numpy way. Would be helpeful to see both versions and compare.