Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
NJU Geophy
MGPro
提交
3a8a56b1
提交
3a8a56b1
编辑于
3月 09, 2020
作者:
Mijian Xu
😷
浏览文件
update rasing error
上级
375d84c7
流水线
#1158
已通过 ,包含阶段
in 54 second
变更
2
流水线
1
Hide whitespace changes
Inline
Side-by-side
mgpro/client.py
浏览文件 @
3a8a56b1
...
...
@@ -201,9 +201,19 @@ Syntax: plot [data|result]
Specify 'data' or 'result' to draw map view of the raw data or the result (default)
'''
if
arg
.
lower
()
==
'data'
:
self
.
mg
.
pltmap
(
self
.
mg
.
data_expand
[
self
.
mg
.
row_begin
:
self
.
mg
.
row_end
+
1
,
self
.
mg
.
col_begin
:
self
.
mg
.
col_end
+
1
])
try
:
self
.
mg
except
:
print
(
'Error: please read data first'
)
return
else
:
self
.
mg
.
pltmap
(
self
.
mg
.
data
)
elif
arg
.
lower
()
==
'result'
or
arg
==
''
:
self
.
mg
.
pltmap
(
self
.
result
)
if
self
.
result
is
not
None
:
self
.
mg
.
pltmap
(
self
.
result
)
else
:
print
(
'Error: No result in the memory'
)
return
else
:
print
(
'Error: argument should be in
\'
data
\'
and
\'
result
\'
'
)
...
...
@@ -222,14 +232,14 @@ Syntax: powspec [w1, w2]
try
:
w1
,
w2
=
[
float
(
w
)
for
w
in
arg
.
split
()]
except
:
print
(
'arguments should be in float type'
)
print
(
'
Error:
arguments should be in float type'
)
return
if
w1
>=
w2
:
print
(
'w1 should be less than w2'
)
print
(
'
Error:
w1 should be less than w2'
)
self
.
mg
.
power_fit
(
w1
,
w2
)
self
.
mg
.
plotpower
()
else
:
print
(
'
O
nly two arguments can be accepted'
)
print
(
'
Error: o
nly two arguments can be accepted'
)
def
completedefault
(
self
,
*
args
):
readline
.
set_completer_delims
(
'
\t\n
;'
)
...
...
setup.py
浏览文件 @
3a8a56b1
...
...
@@ -5,7 +5,7 @@ packages = find_packages()
with
open
(
"README.md"
,
"r"
)
as
fh
:
long_description
=
fh
.
read
()
VERSION
=
"0.1.1
6
"
VERSION
=
"0.1.1
7
"
setup
(
name
=
'mgpro'
,
version
=
VERSION
,
author
=
'Mijian Xu'
,
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录