Skip to content
Snippets Groups Projects
Commit 95666e34 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

init

parent a1e92bd4
No related branches found
No related tags found
No related merge requests found
# phy-exp
# HUST physics experiment - script for data processing
Pick what you want.
......
va/va.py 100644 → 100755
#!/bin/env python3
import numpy
import sys
from quickmap import GetMap as draw
......@@ -8,8 +9,7 @@ dat=numpy.loadtxt(sys.argv[1], delimiter=' ')
Uraw,Iraw=dat[:,0],dat[:,1]
U=[utrue/100*float(sys.argv[2]) for utrue in Uraw]
I=[itrue/150*float(sys.argv[3]) for itrue in Iraw]
# 1V 15mA. Edit it to adjust Ammeter/Voltmeter range.
if sys.argv[4] == 'true':
draw(I,U,line=True,passO=True)
draw(U,I,6,4,line=True,passO=True)
else:
draw(I,U)
draw(U,I,6,4)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment