def mslike(pop, **kwargs):
import fwdpy11<EOL>if isinstance(pop, fwdpy11.DiploidPopulation) is False:<EOL><INDENT>raise ValueError("<STR_LIT>" + str(type(pop)))<EOL><DEDENT>defaults = {'<STR_LIT>': <NUM_LIT:10>*pop.N,<EOL>'<STR_LIT>': <NUM_LIT:0.0>,<EOL>'<STR_LIT:end>': <NUM_LIT:1.0>,<EOL>'<STR_LIT>': <NUM_LIT>,<EOL>'<STR_LIT>': <NUM_LIT:1.0>,<EOL>'<STR_LIT>': <NUM_LIT>,<EOL>'<STR_LIT>': None<EOL>}<EOL>for key, value in kwargs.items():<EOL><INDENT>if key in defaults:<EOL><INDENT>defaults[key] = value<EOL><DEDENT><DEDENT>import numpy as np<EOL>params = {'<STR_LIT>': np.array([pop.N]*defaults['<STR_LIT>'],<EOL>dtype=np.uint32),<EOL>'<STR_LIT>': [fwdpy11.Region(defaults['<STR_LIT>'],<EOL>defaults['<STR_LIT:end>'], <NUM_LIT:1.0>)],<EOL>'<STR_LIT>': [fwdpy11.Region(defaults['<STR_LIT>'],<EOL>defaults['<STR_LIT:end>'], <NUM_LIT:1.0>)],<EOL>'<STR_LIT>': ((defaults['<STR_LIT>']*defaults['<STR_LIT>'])/(<NUM_LIT>*pop.N),<EOL>((<NUM_LIT:1.0>-defaults['<STR_LIT>'])*defaults['<STR_LIT>']) /<EOL>(<NUM_LIT>*pop.N),<EOL>defaults['<STR_LIT>']/(<NUM_LIT>*float(pop.N))),<EOL>'<STR_LIT>': fwdpy11.Multiplicative(<NUM_LIT>)<EOL>}<EOL>if defaults['<STR_LIT>'] is None:<EOL><INDENT>params['<STR_LIT>'] = []<EOL><DEDENT>else:<EOL><INDENT>params['<STR_LIT>'] = [defaults['<STR_LIT>']]<EOL><DEDENT>return params<EOL>
Function to establish default parameters
for a single-locus simulation for standard pop-gen
modeling scenarios.

:params pop: An instance of :class:`fwdpy11.DiploidPopulation`
:params kwargs: Keyword arguments.