learn/htc_files/htc_prep.py
def main():
    """
    Populates the necessary htc param.txt files
    
    """
    # nuclide concentration lists
    dblist = ['sim_grams_nuc29.pkl']
    txtfiles = ['_nuc29_param.txt']
    outfiles = ['_nuc29']
    #for i, traindb in enumerate(dblist):
    #    make_paramstxt(traindb, txtfiles[i], outfiles[i])
    
    # activity lists
    dblist = ['d1_hpge_spectra_short_peaks_trainset.pkl',
              'd1_hpge_spectra_long_peaks_trainset.pkl',
              'd1_hpge_spectra_auto_peaks_trainset.pkl',
              'd2_hpge_spectra_short_peaks_trainset.pkl',
              'd2_hpge_spectra_long_peaks_trainset.pkl',
              'd2_hpge_spectra_auto_peaks_trainset.pkl',
              'd3_czt_spectra_short_peaks_trainset.pkl',
              'd3_czt_spectra_long_peaks_trainset.pkl',
              'd3_czt_spectra_auto_peaks_trainset.pkl',
              'd4_nai_spectra_short_peaks_trainset.pkl',
              'd4_nai_spectra_long_peaks_trainset.pkl',
              'd4_nai_spectra_auto_peaks_trainset.pkl',
              'd5_labr3_spectra_short_peaks_trainset.pkl',
              'd5_labr3_spectra_long_peaks_trainset.pkl',
              'd5_labr3_spectra_auto_peaks_trainset.pkl',
              'd6_sri2_spectra_short_peaks_trainset.pkl',
              'd6_sri2_spectra_long_peaks_trainset.pkl',
              'd6_sri2_spectra_auto_peaks_trainset.pkl',
              ]
    txtfile = ['_short_param.txt',
               '_long_param.txt',
               '_auto_param.txt',
               ]
    txtfiles = txtfile * 6
    outfile = ['_d1_hpge',
               '_d2_hpge',
               '_d3_czt',
               '_d4_nai',
               '_d5_labr3',
               '_d6_sri2',
               ]
    outfiles = [i for i in outfile for j in range (0, 3)]
    
    for i, traindb in enumerate(dblist):
        make_paramstxt(traindb, txtfiles[i], outfiles[i])
    
    dblist2 = ['nuc7_activities_scaled_1g_reindex.pkl',
               'nuc12_activities_scaled_1g_reindex.pkl',
               'nuc32_activities_scaled_1g_reindex.pkl',
               'sim_grams_nuc29.pkl',
               ]
    txtfiles = ['_act7_param.txt',
                '_act12_param.txt',
                '_act32_param.txt',
                '_nuc29_param.txt',
                ]
    outfiles = ['_act7',
                '_act12',    
                '_act32',    
                '_nuc29',    
                ]
    
    for i, traindb in enumerate(dblist2):
        make_paramstxt(traindb, txtfiles[i], outfiles[i])
    

    return

    Populates the necessary htc param.txt files
    
    
Populates the necessary htc param.txt files
Populates the necessary htc param . txt files
def main():
    dblist = ['sim_grams_nuc29.pkl']
    txtfiles = ['_nuc29_param.txt']
    outfiles = ['_nuc29']
    dblist = ['d1_hpge_spectra_short_peaks_trainset.pkl',
              'd1_hpge_spectra_long_peaks_trainset.pkl',
              'd1_hpge_spectra_auto_peaks_trainset.pkl',
              'd2_hpge_spectra_short_peaks_trainset.pkl',
              'd2_hpge_spectra_long_peaks_trainset.pkl',
              'd2_hpge_spectra_auto_peaks_trainset.pkl',
              'd3_czt_spectra_short_peaks_trainset.pkl',
              'd3_czt_spectra_long_peaks_trainset.pkl',
              'd3_czt_spectra_auto_peaks_trainset.pkl',
              'd4_nai_spectra_short_peaks_trainset.pkl',
              'd4_nai_spectra_long_peaks_trainset.pkl',
              'd4_nai_spectra_auto_peaks_trainset.pkl',
              'd5_labr3_spectra_short_peaks_trainset.pkl',
              'd5_labr3_spectra_long_peaks_trainset.pkl',
              'd5_labr3_spectra_auto_peaks_trainset.pkl',
              'd6_sri2_spectra_short_peaks_trainset.pkl',
              'd6_sri2_spectra_long_peaks_trainset.pkl',
              'd6_sri2_spectra_auto_peaks_trainset.pkl',
              ]
    txtfile = ['_short_param.txt',
               '_long_param.txt',
               '_auto_param.txt',
               ]
    txtfiles = txtfile * 6
    outfile = ['_d1_hpge',
               '_d2_hpge',
               '_d3_czt',
               '_d4_nai',
               '_d5_labr3',
               '_d6_sri2',
               ]
    outfiles = [i for i in outfile for j in range (0, 3)]
    for i, traindb in enumerate(dblist):
        make_paramstxt(traindb, txtfiles[i], outfiles[i])
    dblist2 = ['nuc7_activities_scaled_1g_reindex.pkl',
               'nuc12_activities_scaled_1g_reindex.pkl',
               'nuc32_activities_scaled_1g_reindex.pkl',
               'sim_grams_nuc29.pkl',
               ]
    txtfiles = ['_act7_param.txt',
                '_act12_param.txt',
                '_act32_param.txt',
                '_nuc29_param.txt',
                ]
    outfiles = ['_act7',
                '_act12',    
                '_act32',    
                '_nuc29',    
                ]
    for i, traindb in enumerate(dblist2):
        make_paramstxt(traindb, txtfiles[i], outfiles[i])
    return
def main ( ) : dblist = [ 'sim_grams_nuc29.pkl' ] txtfiles = [ '_nuc29_param.txt' ] outfiles = [ '_nuc29' ] dblist = [ 'd1_hpge_spectra_short_peaks_trainset.pkl' , 'd1_hpge_spectra_long_peaks_trainset.pkl' , 'd1_hpge_spectra_auto_peaks_trainset.pkl' , 'd2_hpge_spectra_short_peaks_trainset.pkl' , 'd2_hpge_spectra_long_peaks_trainset.pkl' , 'd2_hpge_spectra_auto_peaks_trainset.pkl' , 'd3_czt_spectra_short_peaks_trainset.pkl' , 'd3_czt_spectra_long_peaks_trainset.pkl' , 'd3_czt_spectra_auto_peaks_trainset.pkl' , 'd4_nai_spectra_short_peaks_trainset.pkl' , 'd4_nai_spectra_long_peaks_trainset.pkl' , 'd4_nai_spectra_auto_peaks_trainset.pkl' , 'd5_labr3_spectra_short_peaks_trainset.pkl' , 'd5_labr3_spectra_long_peaks_trainset.pkl' , 'd5_labr3_spectra_auto_peaks_trainset.pkl' , 'd6_sri2_spectra_short_peaks_trainset.pkl' , 'd6_sri2_spectra_long_peaks_trainset.pkl' , 'd6_sri2_spectra_auto_peaks_trainset.pkl' , ] txtfile = [ '_short_param.txt' , '_long_param.txt' , '_auto_param.txt' , ] txtfiles = txtfile * 6 outfile = [ '_d1_hpge' , '_d2_hpge' , '_d3_czt' , '_d4_nai' , '_d5_labr3' , '_d6_sri2' , ] outfiles = [ i for i in outfile for j in range ( 0 , 3 ) ] for i , traindb in enumerate ( dblist ) : make_paramstxt ( traindb , txtfiles [ i ] , outfiles [ i ] ) dblist2 = [ 'nuc7_activities_scaled_1g_reindex.pkl' , 'nuc12_activities_scaled_1g_reindex.pkl' , 'nuc32_activities_scaled_1g_reindex.pkl' , 'sim_grams_nuc29.pkl' , ] txtfiles = [ '_act7_param.txt' , '_act12_param.txt' , '_act32_param.txt' , '_nuc29_param.txt' , ] outfiles = [ '_act7' , '_act12' , '_act32' , '_nuc29' , ] for i , traindb in enumerate ( dblist2 ) : make_paramstxt ( traindb , txtfiles [ i ] , outfiles [ i ] ) return
Populates the necessary htc param.txt files
Populates the necessary htc param . txt files
"""
    Populates the necessary htc param.txt files
    
    """ # nuclide concentration lists #for i, traindb in enumerate(dblist): #    make_paramstxt(traindb, txtfiles[i], outfiles[i]) # activity lists