def calc_DUP_parameter(self, modeln, label, fig=<NUM_LIT:10>, color='<STR_LIT:r>', marker_type='<STR_LIT:*>',<EOL>h_core_mass=False):
number_DUP=(old_div(len(modeln),<NUM_LIT:2>) -<NUM_LIT:1>) <EOL>try:<EOL><INDENT>h1_bnd_m=self.get('<STR_LIT>')<EOL><DEDENT>except:<EOL><INDENT>try:<EOL><INDENT>h1_bnd_m=self.get('<STR_LIT>')<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>star_mass=self.get('<STR_LIT>')<EOL>age=self.get("<STR_LIT>")<EOL>firstTP=h1_bnd_m[modeln[<NUM_LIT:0>]]<EOL>first_m_dredge=h1_bnd_m[modeln[<NUM_LIT:1>]]<EOL>DUP_parameter=np.zeros(number_DUP)<EOL>DUP_xaxis=np.zeros(number_DUP)<EOL>j=<NUM_LIT:0><EOL>for i in np.arange(<NUM_LIT:2>,len(modeln),<NUM_LIT:2>):<EOL><INDENT>TP=h1_bnd_m[modeln[i]]<EOL>m_dredge=h1_bnd_m[modeln[i+<NUM_LIT:1>]]<EOL>if i ==<NUM_LIT:2>:<EOL><INDENT>last_m_dredge=first_m_dredge<EOL><DEDENT>if h_core_mass==True:<EOL><INDENT>DUP_xaxis[j]=h1_bnd_m[modeln[i]]                        <EOL><DEDENT>else:<EOL><INDENT>DUP_xaxis[j]=star_mass[modeln[i]]<EOL><DEDENT>DUP_parameter[j]=old_div((TP-m_dredge),(TP-last_m_dredge))<EOL>last_m_dredge=m_dredge<EOL>j+=<NUM_LIT:1><EOL><DEDENT>pl.figure(fig)<EOL>pl.rcParams.update({'<STR_LIT>': <NUM_LIT>})<EOL>pl.rc('<STR_LIT>', labelsize=<NUM_LIT>)<EOL>pl.rc('<STR_LIT>', labelsize=<NUM_LIT>)<EOL>pl.plot(DUP_xaxis,DUP_parameter,marker=marker_type,markersize=<NUM_LIT:12>,mfc=color,color='<STR_LIT:k>',linestyle='<STR_LIT:->',label=label)<EOL>if h_core_mass==True:<EOL><INDENT>pl.xlabel("<STR_LIT>",fontsize=<NUM_LIT:20>)<EOL><DEDENT>else:<EOL><INDENT>pl.xlabel("<STR_LIT>",fontsize=<NUM_LIT>)<EOL><DEDENT>pl.ylabel("<STR_LIT>",fontsize=<NUM_LIT>)<EOL>pl.minorticks_on()<EOL>pl.legend()<EOL>
Method to calculate the DUP parameter evolution for different
TPs specified specified by their model number.

Parameters
----------
fig : integer
    Figure number to plot.
modeln : list
    Array containing pairs of models each corresponding to a
    TP. First model where h boundary mass will be taken before
    DUP, second model where DUP reaches lowest mass.
leg : string
    Plot label.
color : string
    Color of the plot.
marker_type : string
    marker type.
h_core_mass : boolean, optional
    If True: plot dependence from h free core , else star mass.
    The default is False.