def newsim(paramfile=None, ndim=None, sim=None): '''Create a new simulation object. Need to specify either the parameter file, or the number of dimensions and the simulation type. Note that it is not possible to change the number of dimensions afterwards or simulation type afterwards. ''' return SimBuffer.newsim(paramfile=paramfile, ndim=ndim, simtype=sim)