提交 ad1d4a71 编辑于 作者: Mijian Xu's avatar Mijian Xu 😷
浏览文件

Merge branch 'patch' into 'master'

Patch

See merge request !3
# 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"
......@@ -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):
......
......@@ -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')
......
......@@ -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):
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册