<commit_before>'''
Created on Jul 23, 2012

@author: dstrauss
'''


import numpy as np


D = {'solverType':'splitField', 'flavor':'TE', 'numRuns':3600, 'expt':'incConds', 'numProcs':16}


def getMyVars(parseNumber, D):
    '''routine to return the parameters to test at the current iteration.'''
    # noFreqs,noPhis,bkg = np.meshgrid(range(1,7), range(1,7), range(100))
    noFreqs,noPhis,bkg = np.mgrid[1:7,1:7,0:100]
    noFreqs = noFreqs.flatten()
    noPhis = noPhis.flatten() 
    bkg = bkg.flatten()
    
    D['freqs'] = np.round(np.logspace(np.log10(1000), np.log10(50000), noFreqs[parseNumber]))
    D['inc'] = np.round(np.linspace(-180,180,noPhis[parseNumber]))
    D['bkgNo'] = bkg[parseNumber]
    D['numProcs'] = len(D['freqs'])*len(D['inc'])
    
        
    return D<commit_msg>ehrm. changed the limits of the incident angles-- whoops -180 doesn't make much sense. and hopfully process will be allocated correctly?<commit_after>'''
Created on Jul 23, 2012

@author: dstrauss
'''


import numpy as np


D = {'solverType':'splitField', 'flavor':'TE', 'numRuns':3600, 'expt':'incConds', 'numProcs':16}


def getMyVars(parseNumber, D):
    '''routine to return the parameters to test at the current iteration.'''
    # noFreqs,noPhis,bkg = np.meshgrid(range(1,7), range(1,7), range(100))
    noFreqs,noPhis,bkg = np.mgrid[1:7,1:7,0:100]
    noFreqs = noFreqs.flatten()
    noPhis = noPhis.flatten() 
    bkg = bkg.flatten()
    
    D['freqs'] = np.round(np.logspace(np.log10(1000), np.log10(50000), noFreqs[parseNumber]))
    D['inc'] = np.round(np.linspace(-75,75,noPhis[parseNumber]))
    D['bkgNo'] = bkg[parseNumber]
    D['numProcs'] = len(D['freqs'])*len(D['inc'])
    
        
    return D
{'fraction_non_alphanumeric': 0.18293395675043833, 'fraction_numerical': 0.054354178842782, 'mean_word_length': 4.219512195121951, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '889420', 'n_tokens_mistral': 741, 'n_tokens_neox': 679, 'n_words': 131}