Пример #1
0
    begin,end = 20000101,20090101
    tbegin = 20010701
    
    dates,sdata,idata,catalogs = prepare_all(begin,end,[],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH601988','SH600050'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH601988'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH600050'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH601398'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SZ000630'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,get_codes(),[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH600000'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,get_codes(source='SZSE'),[ref_code])
    import psyco
    psyco.full()

    prepare_next(sdata,idata,catalogs)
    #prepare_order(sdata.values())
    #prepare_order(catalogs)
    #dummy_catalogs('catalog',catalogs)
    
    #cruiser = Svama3MMCruiser(psize=16,maxstep=1,goal=0)
    #cruiser = Svama3MMCruiser(psize=100,maxstep=50,goal=2000000)    #goal不能太小
    #cruiser = Svama2MMCruiser(psize=100,maxstep=50,goal=2000000)
    #cruiser = Svama2sMMCruiser(psize=100,maxstep=50,goal=200000000)
    #cruiser = Svama2xMMCruiser(psize=100,maxstep=50,goal=20000000)
    #cruiser = Svama2cMMCruiser(psize=100,maxstep=50,goal=20000000)
    #cruiser = Vama3MMCruiser(psize=100,maxstep=50,goal=200000000)
    #cruiser = Vama2MMCruiser(psize=100,maxstep=50,goal=20000000)
    #cruiser = Ma3MMCruiser(psize=100,maxstep=50,goal=200000000)
    #cruiser = Vama2xMMCruiser(psize=100,maxstep=50,goal=20000000)
    print 'before cruiser,array number:',get_obj_number(np.ndarray),',tuple number:',get_obj_number(tuple),',list number:',get_obj_number(list)
Пример #2
0
 def test_prepare_next(self):
     begin,end = 20010101,20010701
     dates,sdata,idata,catalogs = prepare_all(begin,end,['SH600000'],[ref_code])
     run.prepare_next(sdata,idata,catalogs,None,None)        
     self.assertTrue(True)
Пример #3
0
    begin, end = 20000101, 20090101
    tbegin = 20010701

    dates, sdata, idata, catalogs = prepare_all(begin, end, [], [ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH601988','SH600050'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH601988'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH600050'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH601398'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SZ000630'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,get_codes(),[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,['SH600000'],[ref_code])
    #dates,sdata,idata,catalogs = prepare_all(begin,end,get_codes(source='SZSE'),[ref_code])
    import psyco
    psyco.full()

    prepare_next(sdata, idata, catalogs)
    #prepare_order(sdata.values())
    #prepare_order(catalogs)
    #dummy_catalogs('catalog',catalogs)

    #cruiser = Svama3MMCruiser(psize=16,maxstep=1,goal=0)
    #cruiser = Svama3MMCruiser(psize=100,maxstep=50,goal=2000000)    #goal不能太小
    #cruiser = Svama2MMCruiser(psize=100,maxstep=50,goal=2000000)
    #cruiser = Svama2sMMCruiser(psize=100,maxstep=50,goal=200000000)
    #cruiser = Svama2xMMCruiser(psize=100,maxstep=50,goal=20000000)
    #cruiser = Svama2cMMCruiser(psize=100,maxstep=50,goal=20000000)
    #cruiser = Vama3MMCruiser(psize=100,maxstep=50,goal=200000000)
    #cruiser = Vama2MMCruiser(psize=100,maxstep=50,goal=20000000)
    #cruiser = Ma3MMCruiser(psize=100,maxstep=50,goal=200000000)
    #cruiser = Vama2xMMCruiser(psize=100,maxstep=50,goal=20000000)
    print 'before cruiser,array number:', get_obj_number(
Пример #4
0
 def test_prepare_next(self):
     begin, end = 20010101, 20010701
     dates, sdata, idata, catalogs = prepare_all(begin, end, ['SH600000'],
                                                 [ref_code])
     run.prepare_next(sdata, idata, catalogs, None, None)
     self.assertTrue(True)