finite representation code working for simple error boxes and no expansion
attempting to merge vineyards.py with copy from sciclone