Skip to content
GitLab
菜单
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
NJU Geophy
seispy
提交
ad1d4a71
提交
ad1d4a71
编辑于
8月 13, 2021
作者:
Mijian Xu
😷
浏览文件
Merge branch 'patch' into 'master'
Patch See merge request
!3
上级
49a07905
f386928e
变更
5
Hide whitespace changes
Inline
Side-by-side
.github/workflows/doc_build.yml
0 → 100644
浏览文件 @
ad1d4a71
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name
:
Seispy docs
on
:
push
:
branches
:
[
master
]
pull_request
:
branches
:
[
master
]
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
fetch-depth
:
1
-
name
:
dispatch event to doc-post repository
env
:
GITHUB_TOKEN
:
${{ secrets.API_TOKEN_GITHUB }}
EVENT
:
doc_build
ORG
:
xumi1993
REPO
:
seispy-doc.post
run
:
|
curl -d "{\"event_type\": \"${EVENT}\"}" -H "Content-Type: application/json" -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/${ORG}/${REPO}/dispatches"
seispy/pickfigure.py
浏览文件 @
ad1d4a71
...
...
@@ -142,7 +142,7 @@ class RFFigure(Figure):
self
.
baz
=
self
.
baz
[
idx
]
self
.
rrf
=
[
self
.
rrf
[
i
]
for
i
in
idx
]
self
.
trf
=
[
self
.
trf
[
i
]
for
i
in
idx
]
self
.
gcarc
=
[
self
.
rrf
[
i
].
stats
.
sac
.
gcarc
for
i
in
idx
]
self
.
gcarc
=
[
self
.
rrf
[
i
].
stats
.
sac
.
gcarc
for
i
in
range
(
self
.
evt_num
)
]
self
.
filenames
=
[
self
.
filenames
[
i
]
for
i
in
idx
]
def
plotwave
(
self
):
...
...
seispy/plotRT.py
浏览文件 @
ad1d4a71
...
...
@@ -124,18 +124,16 @@ def set_fig(axr, axt, axb, axr_sum, axt_sum, stadata, station, xmin=-2, xmax=30,
def
plotrt
(
rfpath
,
enf
=
3
,
out_path
=
'./'
,
outformat
=
'g'
,
xmax
=
30
):
"""
[summary]
"""
Plot PRFs with R and T components
:param rfpath:
[description]
:type rfpath:
[type]
:param enf:
[description]
, defaults to 3
:param rfpath:
Path to PRFs
:type rfpath:
str
:param enf:
The enlarge factor
, defaults to 3
:type enf: int, optional
:param out_path:
[description], defaults to './'
:param out_path:
The output path, defaults to current directory
:type out_path: str, optional
:param outformat:
[description]
, defaults to 'g'
:param outformat:
File format of the image file, g as
\'
png
\'
, f as
\'
pdf
\'
, defaults to 'g'
:type outformat: str, optional
:raises FileExistsError: [description]
:raises FileExistsError: [description]
"""
station
=
basename
(
rfpath
)
lst
=
join
(
rfpath
,
station
+
'finallist.dat'
)
...
...
seispy/rpickfigure.py
浏览文件 @
ad1d4a71
...
...
@@ -62,7 +62,7 @@ class RPickFigure(RFFigure):
idx
=
np
.
argsort
(
self
.
baz
)
self
.
baz
=
self
.
baz
[
idx
]
self
.
rrf
=
[
self
.
rrf
[
i
]
for
i
in
idx
]
self
.
gcarc
=
[
self
.
rrf
[
i
].
stats
.
sac
.
gcarc
for
i
in
idx
]
self
.
gcarc
=
[
self
.
rrf
[
i
].
stats
.
sac
.
gcarc
for
i
in
range
(
self
.
evt_num
)
]
self
.
filenames
=
[
self
.
filenames
[
i
]
for
i
in
idx
]
def
set_figure
(
self
):
...
...
setup.py
浏览文件 @
ad1d4a71
...
...
@@ -5,7 +5,7 @@ packages = find_packages()
with
open
(
"README.md"
,
"r"
)
as
fh
:
long_description
=
fh
.
read
()
VERSION
=
"1.2.
3
"
VERSION
=
"1.2.
5
"
setup
(
name
=
'python-seispy'
,
version
=
VERSION
,
author
=
'Mijian Xu'
,
...
...
@@ -38,7 +38,8 @@ setup(name='python-seispy',
'pickrf=seispy.pickui:main'
,
'rfani=seispy.scripts:rfani'
,
'ccp3d=seispy.scripts:ccp3d'
,
'get_pierce_points=seispy.scripts:get_pierce_points'
]},
'get_pierce_points=seispy.scripts:get_pierce_points'
,
'veltxt2mod=seispy.modcreator:veltxt2mod'
]},
# include_package_data=True,
zip_safe
=
False
,
classifiers
=
[
'Programming Language :: Python'
,
...
...
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录