Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phy-exp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
recolic-hust
phy-exp
Commits
95666e34
There was an error fetching the commit references. Please try again later.
Commit
95666e34
authored
7 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
init
parent
a1e92bd4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
va/va.py
+3
-3
3 additions, 3 deletions
va/va.py
with
4 additions
and
4 deletions
README.md
+
1
−
1
View file @
95666e34
#
phy-exp
#
HUST physics experiment - script for data processing
Pick what you want.
...
...
This diff is collapsed.
Click to expand it.
va/va.py
100644 → 100755
+
3
−
3
View file @
95666e34
#!/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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment