Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/b/1/B1python-0.8.7/src/B1macros.py   B1python(Download)
        fsns=[fsns]
    for fsn in fsns:
        A,Aerr,param=B1io.read2dintfile(fsn,dirs=dirs)
        if len(A)<1:
            continue
            for p in sdparams:
                print 'Loading 2d intensity for FSN %d' % p['FSN']
                data,dataerr,tmp=B1io.read2dintfile(p['FSN'],dirs=dirs);
                if len(data)<1:
                    continue
                if waxsprefix=='': # ONLY IN SAXS MODE:
                    # load 2D data
                    int2d,err2d,temp=B1io.read2dintfile(p['FSN'],dirs=dirs)
                    if len(int2d)<1:
                        print "Cannot load 2D intensity file for FSN %d, skipping." % p['FSN']
        for f in ps1['FSNs']:
            print "Loading FSN",f
            A,Aerr,p=B1io.read2dintfile(f,dirs=dirs)
            q0,I0,E0,A0=utils2d.radintC(A[0],Aerr[0],p[0]['EnergyCalibrated'],p[0]['Dist'],p[0]['PixelSize'],p[0]['BeamPosX'],p[0]['BeamPosY'],(1-mask1).astype(np.uint8),qrange,returnavgq=True)
            if q1 is None:
        for f in ps2['FSNs']:
            print "Loading FSN",f
            A,Aerr,p=B1io.read2dintfile(f,dirs=dirs)
            q0,I0,E0,A0=utils2d.radintC(A[0],Aerr[0],p[0]['EnergyCalibrated'],p[0]['Dist'],p[0]['PixelSize'],p[0]['BeamPosX'],p[0]['BeamPosY'],(1-mask2).astype(np.uint8),qrange,returnavgq=True)
            if q2 is None: