简体   繁体   中英

NEST-Initiative: Disable simulation output

Is there a way to disable the output generated from NEST:

 ...
 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

that is generated by nest.Simulate() ?

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

You can disable the printing of time stamps in the kernel dictionary:

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

Regarding output in general, you might also be interested in setting the verbosity with nest.set_verbosity() . A level of 0 displays all messages, 100 suppresses all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM