fixed formatting changes from quantified code, test links in docs

This commit is contained in:
Lindsey Heagy
2016-07-21 14:38:05 -07:00
parent 57d0c84b41
commit 44ec0623d6
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+8 -8
View File
@@ -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()