<commit_before>'''
Created on Sep 28, 2012

@author: dstrauss
'''

import forward.flat
import numpy as np
import scipy.io as spio
import time
from superSolve import wrapCvxopt

def test(ica):
    flavor = 'TE3D'
    freq = 1e4
    incAng = ica*np.pi/180.0
    
    strt = time.time()
    fwd = forward.flat.makeMeA(flavor, freq, incAng)
    
    bkgSig=0.005
    numSensors=4
    
    fwd.setspace(31,31,31,5.0,5.0,5.0)
    fwd.setmats(1,bkgSig,31/2)
    fwd.setOperators()
    fwd.makeGradOper()
    
    fwd.setMs(numSensors)
    # for 31 use:
    fwd.setMd([8,22], [8,15], [8,22])
    # for 21 use:
    # fwd.setMd([7,13], [7,9], [7,13])
    
    
    # fwd.sigmap[1] += self.Md.T*p
    # fwd.pointSource(10,10,10)
#        self.planeWave()
    fwd.planeWave()
    fwd.fwd_solve(0)
    <commit_msg> 31^3 is out of memory range, 21^3 must still be in, however.<commit_after>'''
Created on Sep 28, 2012

@author: dstrauss
'''

import forward.flat
import numpy as np
import scipy.io as spio
import time
from superSolve import wrapCvxopt

def test(ica):
    flavor = 'TE3D'
    freq = 1e4
    incAng = ica*np.pi/180.0
    
    strt = time.time()
    fwd = forward.flat.makeMeA(flavor, freq, incAng)
    
    bkgSig=0.005
    numSensors=4
    
    fwd.setspace(21,21,21,5.0,5.0,5.0)
    fwd.setmats(1,bkgSig,21/2)
    fwd.setOperators()
    fwd.makeGradOper()
    
    fwd.setMs(numSensors)
    # for 31 use:
    # fwd.setMd([8,22], [8,15], [8,22])
    # for 21 use:
    # fwd.setMd([7,13], [7,9], [7,13])
    
    
    # fwd.sigmap[1] += self.Md.T*p
    # fwd.pointSource(10,10,10)
#        self.planeWave()
    fwd.planeWave()
    fwd.fwd_solve(0)
    
{'fraction_non_alphanumeric': 0.15375302663438256, 'fraction_numerical': 0.07990314769975787, 'mean_word_length': 2.5245202558635396, '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': '177162', 'n_tokens_mistral': 803, 'n_tokens_neox': 736, 'n_words': 138}