2015-05-24 49 views
0

有沒有一種方法來禁用從NEST生成的輸出:由nest.Simulate()產生巢倡議:禁止模擬輸出

... 
94 %: network time: 38604.0 ms, realtime factor: 2.1404 
94 %: network time: 38605.0 ms, realtime factor: 2.1404 
94 %: network time: 38606.0 ms, realtime factor: 2.1403 
94 %: network time: 38607.0 ms, realtime factor: 2.1405 
94 %: network time: 38608.0 ms, realtime factor: 2.1404 
94 %: network time: 38609.0 ms, realtime factor: 2.1404 

for t in range(int(Tsim/10000.)): 
    nest.Simulate(Tsim) 

回答

0

您可以在內核字典禁用時間郵票印刷:

nest.SetKernelStatus({'print_time': False}) 

對於一般的輸出,你可能也有興趣與nest.set_verbosity()設置詳細程度。等級0顯示所有消息,100顯示全部消息。