EMAN2 has wrapped standard assert call as Assert. The header file is "emassert.h" instead of standard <cassert> or <assert.h>. The assert call will only be available when you enable "DEBUG" in the cmake compilation configurations. it will not be compiled into the release mode (default mode).