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

update compatibilities to new version of pandas and matplotlib

上级 ab1a512e
......@@ -58,15 +58,17 @@ class RFFigure(Figure):
self.axr.set_ylim(self.rfidx[self.ipage][0], self.rfidx[self.ipage][0]+self.maxidx+1)
self.axr.set_yticks(np.arange(self.rfidx[self.ipage][0], self.rfidx[self.ipage][0]+self.maxidx+1))
ylabels = self.filenames[self.rfidx[self.ipage][0]::]
ylabels.insert(0, '')
self.axr.set_yticklabels(ylabels)
ticklabels = [''] * (self.maxidx+1)
ticklabels[1: len(ylabels)+1] = ylabels
self.axr.set_yticklabels(ticklabels)
self.axt.set_ylim(self.axr.get_ylim())
self.axt.set_yticks(self.axr.get_yticks())
self.axb.set_ylim(self.axr.get_ylim())
self.axb.set_yticks(self.axr.get_yticks())
self.azi_label = ['%5.2f' % self.baz[i] for i in self.rfidx[self.ipage]]
self.azi_label.insert(0, "")
self.axb.set_yticklabels(self.azi_label)
ticklabels = [''] * (self.maxidx+1)
ticklabels[1: len(self.azi_label)+1] = self.azi_label
self.axb.set_yticklabels(ticklabels)
def set_page(self):
self.set_ylabels()
......
......@@ -381,7 +381,7 @@ class RF(object):
evla=row['evla'], evlo=row['evlo'], evdp=row['evdp'], baz=row['bazi'],
mag=row['mag'], gcarc=row['dis'], gauss=self.para.gauss, only_r=self.para.only_r)
good_lst.append(i)
self.eqs = self.eqs.ix[good_lst]
self.eqs = self.eqs.loc[good_lst]
def prf():
......
......@@ -11,7 +11,14 @@ setup(name='seispy',
packages=find_packages(),
package_dir={'seispy': 'seispy'},
package_data={'': ['data/*']},
install_requires=['netcdf4', 'pyerf', 'obspy', 'pandas', 'numpy', 'scipy', 'matplotlib'],
install_requires=[
'netcdf4>=1.5.2',
'pyerf>=1.0.1',
'obspy>=1.2.0',
'pandas>=1.0.0',
'numpy>=1.19.0',
'scipy>=1.1.0',
'matplotlib>=3.2.0'],
entry_points={'console_scripts': ['gen_rayp_lib=seispy.psrayp:gen_rayp_lib',
'prf=seispy.rf:prf',
'setpar=seispy.rf:setpar',
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册