Automatic type id for spin samples