Skip to content

Commit 0a6e4d9

Browse files
committed
Remove dependence on local files.
1 parent 3605d76 commit 0a6e4d9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

DigiPyRo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def start():
280280

281281
global width, height, numFrames, fps, fourcc, video_writer, spinlab, npts
282282
npts = 0
283-
spinlab = cv2.imread('/Users/sammay/Desktop/SPINLab/DigiRo/spinlogo.png')
283+
#spinlab = cv2.imread('/Users/sammay/Desktop/SPINLab/DigiRo/spinlogo.png')
284284
width = int(vid.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH))
285285
height = int(vid.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT))
286286
#width = 1280
@@ -450,7 +450,7 @@ def start():
450450
#plt.plot(t, modelTheta, 'b')
451451
plt.xlabel(r"$t$ (s)")
452452
plt.ylabel(r"$\theta$")
453-
plt.savefig('/Users/sammay/Desktop/SPINLab/DigiRo/'+fileName+'_polar.pdf', format = 'pdf', dpi = 1200)
453+
plt.savefig(fileName+'_polar.pdf', format = 'pdf', dpi = 1200)
454454

455455
#modelX = modelR*np.cos(modelTheta)
456456
#modelY = modelR*np.sin(modelTheta)
@@ -467,7 +467,7 @@ def start():
467467
#plt.plot(t, modelY, 'k')
468468
plt.xlabel(r"$t$ (s)")
469469
plt.ylabel(r"$y$")
470-
plt.savefig('/Users/sammay/Desktop/SPINLab/DigiRo/'+fileName+'_cartesian.pdf', format = 'pdf', dpi =1200)
470+
plt.savefig(fileName+'_cartesian.pdf', format = 'pdf', dpi =1200)
471471

472472
ux = calcDeriv(ballX, t)
473473
uy = calcDeriv(ballY, t)
@@ -517,7 +517,7 @@ def start():
517517
plt.ylabel(r"$u_{\theta}$")
518518
plt.ylim([-3*np.abs(totOmega), 3*np.abs(totOmega)])
519519
plt.tight_layout(pad = 1, h_pad = 0.5, w_pad = 0.5)
520-
plt.savefig('/Users/sammay/Desktop/SPINLab/DigiRo/'+fileName+'_derivs.pdf', format = 'pdf', dpi =1200)
520+
plt.savefig(fileName+'_derivs.pdf', format = 'pdf', dpi =1200)
521521

522522
cv2.destroyAllWindows()
523523
vid.release()

0 commit comments

Comments
 (0)