未验证 提交 61e81af2 编辑于 作者: Mijian Xu's avatar Mijian Xu 😷 提交者: GitHub
浏览文件

Merge pull request #10 from xumi1993/patch

Fix a bug of gcarc arrange in pickrf
......@@ -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')
......
......@@ -5,7 +5,7 @@ packages = find_packages()
with open("README.md", "r") as fh:
long_description = fh.read()
VERSION = "1.2.4"
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.
先完成此消息的编辑!
想要评论请 注册