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
Fan Fangfei
phy-exp
Commits
a1e92bd4
There was an error fetching the commit references. Please try again later.
Commit
a1e92bd4
authored
7 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
f
parent
063c2bfa
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
phySpider.py
+0
-1
0 additions, 1 deletion
phySpider.py
va/va.py
+15
-0
15 additions, 0 deletions
va/va.py
va/va1.py
+0
-10
0 additions, 10 deletions
va/va1.py
va/va3.py
+0
-10
0 additions, 10 deletions
va/va3.py
with
15 additions
and
21 deletions
phySpider.py
+
0
−
1
View file @
a1e92bd4
#!/bin/env python3
#!/bin/env python3
# -*- coding: UTF-8 -*-
# -*- coding: UTF-8 -*-
# Scan if there's any empty seat to play physics exp..
# Scan if there's any empty seat to play physics exp..
# License: Unauthorized copy is strictly FORBIDDEN.
# By Recolic Keghart, Apr 26, 2017
# By Recolic Keghart, Apr 26, 2017
import
urllib.parse
,
urllib
.
request
import
urllib.parse
,
urllib
.
request
...
...
This diff is collapsed.
Click to expand it.
va/va
2
.py
→
va/va.py
+
15
−
0
View file @
a1e92bd4
...
@@ -2,9 +2,14 @@ import numpy
...
@@ -2,9 +2,14 @@ import numpy
import
sys
import
sys
from
quickmap
import
GetMap
as
draw
from
quickmap
import
GetMap
as
draw
print
(
'
Usage: python va.py path/va-dat.in <Voltmeter range(V)> <Ammeter range(mA)> <fit line>
'
)
print
(
'
Example: python3 va.py va-dat.in 1 15 true
'
)
dat
=
numpy
.
loadtxt
(
sys
.
argv
[
1
],
delimiter
=
'
'
)
dat
=
numpy
.
loadtxt
(
sys
.
argv
[
1
],
delimiter
=
'
'
)
Uraw
,
Iraw
=
dat
[:,
0
],
dat
[:,
1
]
Uraw
,
Iraw
=
dat
[:,
0
],
dat
[:,
1
]
U
=
[
utrue
/
100
*
5
for
utrue
in
Uraw
]
U
=
[
utrue
/
100
*
float
(
sys
.
argv
[
2
])
for
utrue
in
Uraw
]
I
=
[
itrue
/
150
*
7.5
for
itrue
in
Iraw
]
I
=
[
itrue
/
150
*
float
(
sys
.
argv
[
3
])
for
itrue
in
Iraw
]
# 1V 15mA. Edit it to adjust Ammeter/Voltmeter range.
# 1V 15mA. Edit it to adjust Ammeter/Voltmeter range.
draw
(
I
,
U
)
if
sys
.
argv
[
4
]
==
'
true
'
:
draw
(
I
,
U
,
line
=
True
,
passO
=
True
)
else
:
draw
(
I
,
U
)
This diff is collapsed.
Click to expand it.
va/va1.py
deleted
100644 → 0
+
0
−
10
View file @
063c2bfa
import
numpy
import
sys
from
quickmap
import
GetMap
as
draw
dat
=
numpy
.
loadtxt
(
sys
.
argv
[
1
],
delimiter
=
'
'
)
Uraw
,
Iraw
=
dat
[:,
0
],
dat
[:,
1
]
U
=
[
utrue
/
100
*
2.5
for
utrue
in
Uraw
]
I
=
[
itrue
/
150
*
30
for
itrue
in
Iraw
]
draw
(
I
,
U
,
line
=
True
,
passO
=
True
)
This diff is collapsed.
Click to expand it.
va/va3.py
deleted
100644 → 0
+
0
−
10
View file @
063c2bfa
import
numpy
import
sys
from
quickmap
import
GetMap
as
draw
dat
=
numpy
.
loadtxt
(
sys
.
argv
[
1
],
delimiter
=
'
'
)
Uraw
,
Iraw
=
dat
[:,
0
],
dat
[:,
1
]
U
=
[
utrue
/
100
*
5
for
utrue
in
Uraw
]
I
=
[
itrue
/
150
*
15
for
itrue
in
Iraw
]
# 1V 15mA. Edit it to adjust Ammeter/Voltmeter range.
draw
(
I
,
U
)
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