def TPAGB_properties(self):
peak_lum_model,h1_mass_min_DUP_model=self.find_TP_attributes( <NUM_LIT:3>, t0_model=self.find_first_TP(), color='<STR_LIT:r>', marker_type='<STR_LIT:o>')<EOL>print('<STR_LIT>')<EOL>print(self.find_first_TP())<EOL>print('<STR_LIT>')<EOL>print(peak_lum_model)<EOL>print(h1_mass_min_DUP_model)<EOL>TPmods=peak_lum_model<EOL>DUPmods=h1_mass_min_DUP_model<EOL>DUPmods1=[]<EOL>for k in range(len(DUPmods)):<EOL><INDENT>DUPmods1.append(int(float(DUPmods[k]))+<NUM_LIT:100>) <EOL><DEDENT>DUPmods=DUPmods1<EOL>TPstart=[]<EOL>models=self.get('<STR_LIT>')<EOL>mx2b_array=self.get('<STR_LIT>')<EOL>mx2t_array=self.get('<STR_LIT>')<EOL>massbot=mx2b_array<EOL>masstop=mx2t_array<EOL>massenv=np.array(self.get('<STR_LIT>'))*np.array(self.get('<STR_LIT>'))   <EOL>for k in range(len(TPmods)):<EOL><INDENT>idx=list(models).index(TPmods[k])<EOL>mx2b=mx2b_array[:idx]<EOL>for i in range(len(mx2b)-<NUM_LIT:1>,<NUM_LIT:0>,-<NUM_LIT:1>):<EOL><INDENT>if mx2b[i]==<NUM_LIT:0.>:<EOL><INDENT>startTP=models[i]<EOL>TPstart.append(int(float(startTP)))<EOL>break<EOL><DEDENT><DEDENT><DEDENT>TPend=[]<EOL>max_m_TP=[]<EOL>min_m_TP=[]<EOL>DUP_m=[]<EOL>TP_max_env=[]<EOL>DUPm_min_h=[]<EOL>flagdecline=False<EOL>for k in range(len(TPmods)):<EOL><INDENT>idx=list(models).index(TPmods[k])<EOL>mx2b=mx2b_array[idx:]<EOL>mx2t=mx2t_array[idx:]<EOL>refsize=mx2t[<NUM_LIT:0>]-mx2b[<NUM_LIT:0>]<EOL>for i in range(len(mx2b)):<EOL><INDENT>if i==<NUM_LIT:0>:<EOL><INDENT>continue<EOL><DEDENT>if ((mx2t[i]-mx2b[i])<(<NUM_LIT:0.5>*refsize)) and (flagdecline==False):<EOL><INDENT>flagdecline=True<EOL>refmasscoord=mx2t[i]<EOL>print('<STR_LIT>')<EOL>continue<EOL><DEDENT>if flagdecline==True:<EOL><INDENT>if (mx2t[i]-mx2b[i])<(<NUM_LIT:0.1>*refsize):<EOL><INDENT>if refmasscoord<mx2t[i]:<EOL><INDENT>endTP=models[idx+i-<NUM_LIT:1>]<EOL>TPend.append(int(float(endTP)))<EOL>print('<STR_LIT>',endTP)<EOL>break<EOL><DEDENT>if (mx2t[i]-mx2b[i])<<NUM_LIT>:<EOL><INDENT>endTP=models[idx+i-<NUM_LIT:1>]<EOL>TPend.append(int(float(endTP)))<EOL>print('<STR_LIT>',endTP)<EOL>break<EOL><DEDENT><DEDENT><DEDENT><DEDENT>print('<STR_LIT>',TPstart[-<NUM_LIT:1>],TPend[-<NUM_LIT:1>])<EOL>mtot=self.get('<STR_LIT>')<EOL>masstop_tot=np.array(masstop)*np.array(mtot)<EOL>idx_tpext=list(masstop_tot).index(max(masstop_tot[TPstart[k]:(TPend[k]-<NUM_LIT:10>)]))<EOL>print('<STR_LIT>',k+<NUM_LIT:1>,TPmods[k])<EOL>print(TPstart[k],TPend[k])<EOL>print('<STR_LIT>',idx_tpext,models[idx_tpext])<EOL>print(max(masstop_tot[TPstart[k]:(TPend[k]-<NUM_LIT:10>)]))<EOL>mtot=self.get('<STR_LIT>')[idx_tpext]<EOL>max_m_TP.append(masstop[idx_tpext]*mtot)<EOL>min_m_TP.append(massbot[idx_tpext]*mtot)<EOL>TP_max_env.append(massenv[idx_tpext])<EOL>if k> (len(DUPmods)-<NUM_LIT:1>):<EOL><INDENT>continue<EOL><DEDENT>idx=list(models).index(DUPmods[k])<EOL>mtot=self.get('<STR_LIT>')[idx]<EOL>try:<EOL><INDENT>h1_bndry=self.get("<STR_LIT>")[t0_idx:]<EOL><DEDENT>except:<EOL><INDENT>try:<EOL><INDENT>h1_bndry=self.get('<STR_LIT>')[t0_idx:]<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>if h1_bndry[idx]>=max_m_TP[-<NUM_LIT:1>]:<EOL><INDENT>print('<STR_LIT>',k+<NUM_LIT:1>,'<STR_LIT>',TPmods[k],'<STR_LIT>')<EOL>print(h1_bndry[idx],max_m_TP[-<NUM_LIT:1>])<EOL>DUPmods[k] = -<NUM_LIT:1><EOL>DUPm_min_h.append( -<NUM_LIT:1>)<EOL>continue<EOL><DEDENT>DUPm_min_h.append(h1_bdy[idx])<EOL><DEDENT>for k in range(len(TPmods)):<EOL><INDENT>print('<STR_LIT>')<EOL>print('<STR_LIT>',k+<NUM_LIT:1>)<EOL>print('<STR_LIT>',TPstart[k])<EOL>print('<STR_LIT>' , TPmods[k],TP_max_env[k])<EOL>print('<STR_LIT>',min_m_TP[k],'<STR_LIT>',max_m_TP[k])<EOL>print('<STR_LIT>',TPend[k])<EOL>if k <=(len(DUPmods)-<NUM_LIT:1>):<EOL><INDENT>print(len(DUPmods),k)<EOL>print('<STR_LIT>',DUPmods[k])<EOL>print(DUPm_min_h[k])<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>return TPstart,TPmods,TP_max_env,TPend,min_m_TP,max_m_TP,DUPmods,DUPm_min_h<EOL><DEDENT>
Temporary, use for now same function in nugrid_set.py!
Returns many TPAGB parameters which are
TPstart,TPmods,TP_max_env,TPend,min_m_TP,max_m_TP,DUPmods,DUPm_min_h
Same function in nugrid_set.py.

Parameters
----------