Example #1
0

from nrnDoAll import nrnDoAll

#nrnDoAll( nrnType="cIN", nrnNumber="961104", nrnVersion="1.4", nrnDate="" )
nrnDoAll( nrnType="dIN", nrnNumber="1438", nrnDate="100826"     )
Example #2
0
#            ('cIN', '961104 1.4', '100331 V2'),
#            ]
            
from StringIO import StringIO
import traceback
      
for c in cells:
    print c
    assert c in fDicts["ns"] 
    assert c in fDicts["nrn"]
    if c in ignores: continue
    
    #nrnDoAll( nrnType = c[0], nrnNumber=c[1], nrnVersion="",nrnDate=c[2])
    
    try:
        nrnDoAll( nrnType = c[0], nrnNumber=c[1], nrnVersion="",nrnDate=c[2])
        okConversions.append( c )
    except Exception as e:
        obj = StringIO()
        traceback.print_exc(file=obj)
        problemConversions.append( (c,obj.getvalue() ) )
        #raise e

        
fCP = open(problemConversionLoc,"w")
for pc in problemConversions:
    fCP.write("Problem Converting file: " + str(pc[0]) +"\n" )
    fCP.write("Stack Trace:\n" )
    fCP.write(pc[1] )
    fCP.write("\n\n\n")
fCP.close()