你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 12:36:51 +08:00
Removed pyfiglet dependancy.
这个提交包含在:
@@ -14,5 +14,4 @@ dependencies:
|
|||||||
- lxml
|
- lxml
|
||||||
|
|
||||||
- pip:
|
- pip:
|
||||||
- psutil
|
- psutil
|
||||||
- pyfiglet
|
|
@@ -19,8 +19,6 @@
|
|||||||
import sys
|
import sys
|
||||||
import decimal as d
|
import decimal as d
|
||||||
|
|
||||||
from pyfiglet import Figlet
|
|
||||||
|
|
||||||
|
|
||||||
class ListStream(object):
|
class ListStream(object):
|
||||||
"""A list can be streamed into. Required when temporarily redirecting stdio to capture output from users Python code blocks."""
|
"""A list can be streamed into. Required when temporarily redirecting stdio to capture output from users Python code blocks."""
|
||||||
@@ -56,12 +54,21 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with gprMax. If not, see <http://www.gnu.org/licenses/>."""
|
along with gprMax. If not, see <http://www.gnu.org/licenses/>."""
|
||||||
|
|
||||||
|
gprMaxlogo = """
|
||||||
|
__ __
|
||||||
|
__ _ _ __ _ __| \/ | __ ___ __
|
||||||
|
/ _` | '_ \| '__| |\/| |/ _` \ \/ /
|
||||||
|
| (_| | |_) | | | | | | (_| |> <
|
||||||
|
\__, | .__/|_| |_| |_|\__,_/_/\_\\
|
||||||
|
|___/|_|
|
||||||
|
"""
|
||||||
|
|
||||||
width = 65
|
width = 65
|
||||||
url = 'www.gprmax.com'
|
url = 'www.gprmax.com'
|
||||||
|
|
||||||
print('\nElectromagnetic modelling software based on the Finite-Difference \nTime-Domain (FDTD) method')
|
print('\nElectromagnetic modelling software based on the Finite-Difference \nTime-Domain (FDTD) method')
|
||||||
print('\n{} {} {}'.format('*'*round((width - len(url))/2), url, '*'*round((width - len(url))/2)))
|
print('\n{} {} {}'.format('*'*round((width - len(url))/2), url, '*'*round((width - len(url))/2)))
|
||||||
gprMaxlogo = Figlet(font='standard', width=width, justify='center')
|
print('{}'.format(gprMaxlogo))
|
||||||
print('{}'.format(gprMaxlogo.renderText('gprMax')))
|
|
||||||
print('{} v{} {}'.format('*'*round((width - len(version))/2), (version), '*'*round((width - len(version))/2)))
|
print('{} v{} {}'.format('*'*round((width - len(version))/2), (version), '*'*round((width - len(version))/2)))
|
||||||
print(licenseinfo)
|
print(licenseinfo)
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户