mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-11 05:49:54 +08:00
fixed formatting changes from quantified code, test links in docs
This commit is contained in:
+2
-2
@@ -171,7 +171,7 @@ class TensorView(object):
|
||||
iz = ix + iy*nX
|
||||
if iz < self.nCz:
|
||||
ax.text((ix+1)*(self.vectorNx[-1]-self.x0[0])-pad,(iy)*(self.vectorNy[-1]-self.x0[1])+pad,
|
||||
'#{0:d}'.format(iz),color=annotationColor,verticalalignment='bottom',horizontalalignment='right',size='x-large')
|
||||
'#{0:.0f}'.format(iz),color=annotationColor,verticalalignment='bottom',horizontalalignment='right',size='x-large')
|
||||
|
||||
ax.set_title(vType)
|
||||
if showIt: plt.show()
|
||||
@@ -295,7 +295,7 @@ class TensorView(object):
|
||||
|
||||
ax.set_xlabel('y' if normal == 'X' else 'x')
|
||||
ax.set_ylabel('y' if normal == 'Z' else 'z')
|
||||
ax.set_title('Slice {0:d}'.format(ind))
|
||||
ax.set_title('Slice {0:.0f}'.format(ind))
|
||||
return out
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ Numpy and Matlab
|
||||
Lessons in Python
|
||||
-----------------
|
||||
|
||||
* `Software Carpentry <http://software-carpentry.org/v4/python/index.html>`_
|
||||
* `Software Carpentry <http://swcarpentry.github.io/python-novice-inflammation/>`_
|
||||
* `Introduction to NumPy and Matplotlib <http://www.youtube.com/watch?v=3Fp1zn5ao2M>`_
|
||||
|
||||
Editing Python
|
||||
|
||||
@@ -29,15 +29,15 @@ class Doc_Test(unittest.TestCase):
|
||||
# "%s"%(latex_path)])
|
||||
# assert check == 0
|
||||
|
||||
# def test_linkcheck(self):
|
||||
# doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
|
||||
# link_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build'])
|
||||
def test_linkcheck(self):
|
||||
doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
|
||||
link_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build'])
|
||||
|
||||
# check = subprocess.call(["sphinx-build", "-nW", "-b", "linkcheck", "-d",
|
||||
# "%s"%(doctrees_path),
|
||||
# "%s"%(self.path_to_docs),
|
||||
# "%s"%(link_path)])
|
||||
# assert check == 0
|
||||
check = subprocess.call(["sphinx-build", "-nW", "-b", "linkcheck", "-d",
|
||||
"%s"%(doctrees_path),
|
||||
"%s"%(self.path_to_docs),
|
||||
"%s"%(link_path)])
|
||||
assert check == 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user