你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Disable geometry cmd progress on Windows as it doesn't update properly when messages are printed in between.
这个提交包含在:
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from shutil import get_terminal_size
|
from shutil import get_terminal_size
|
||||||
|
import sys
|
||||||
|
|
||||||
import h5py
|
import h5py
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@@ -41,8 +42,13 @@ def process_geometrycmds(geometry, G):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# Disable progress bar if on Windows as it does not update properly when messages are printed
|
||||||
for object in tqdm(geometry, desc='Processing geometry cmds', unit='cmds', ncols=get_terminal_size()[0] - 1):
|
if sys.platform == 'win32':
|
||||||
|
tqdmbar = True
|
||||||
|
else:
|
||||||
|
tqdmbar = False
|
||||||
|
|
||||||
|
for object in tqdm(geometry, desc='Processing geometry cmds', unit='cmds', ncols=get_terminal_size()[0] - 1, disable=tqdmbar):
|
||||||
tmp = object.split()
|
tmp = object.split()
|
||||||
|
|
||||||
if tmp[0] == '#geometry_objects_file:':
|
if tmp[0] == '#geometry_objects_file:':
|
||||||
|
在新工单中引用
屏蔽一个用户