Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Calibration
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Calibration
Commits
09049e8d
Commit
09049e8d
authored
Feb 27, 2017
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
library path now relative with respect to __file__ (not relative to curretn working directory)
parent
9eab9b59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
edge_edge.py
sw/ab_cal_scripts/edge_edge.py
+4
-1
edge_sfd.py
sw/ab_cal_scripts/edge_sfd.py
+4
-1
tic_gui.py
sw/ab_cal_scripts/tic_gui.py
+4
-1
No files found.
sw/ab_cal_scripts/edge_edge.py
View file @
09049e8d
...
...
@@ -34,6 +34,7 @@ Options:
"""
import
os
import
sys
import
vxi11
import
scipy
...
...
@@ -41,7 +42,9 @@ import numpy
import
matplotlib.pyplot
as
plt
# Add parent directory (containing 'lib') to the module search path
sys
.
path
.
insert
(
0
,
'..'
)
lib_path
=
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
lib_path
=
os
.
path
.
join
(
lib_path
,
".."
)
sys
.
path
.
insert
(
0
,
lib_path
)
# private imports:
from
lib.docopt
import
docopt
...
...
sw/ab_cal_scripts/edge_sfd.py
View file @
09049e8d
...
...
@@ -66,6 +66,7 @@ Options:
-m,--meas=<i> : <int> number of measurements to be taken [default: 1]
"""
import
os
import
sys
import
vxi11
import
scipy
...
...
@@ -73,7 +74,9 @@ import numpy
import
matplotlib.pyplot
as
plt
# Add parent directory (containing 'lib') to the module search path
sys
.
path
.
insert
(
0
,
'..'
)
lib_path
=
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
lib_path
=
os
.
path
.
join
(
lib_path
,
".."
)
sys
.
path
.
insert
(
0
,
lib_path
)
# private imports:
from
lib.docopt
import
docopt
...
...
sw/ab_cal_scripts/tic_gui.py
View file @
09049e8d
...
...
@@ -53,6 +53,7 @@ Options:
--version Show version.
"""
import
os
import
sys
import
time
import
struct
...
...
@@ -65,7 +66,9 @@ import numpy
import
matplotlib.pyplot
as
plt
# Add parent directory (containing 'lib') to the module search path
sys
.
path
.
insert
(
0
,
'..'
)
lib_path
=
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
lib_path
=
os
.
path
.
join
(
lib_path
,
".."
)
sys
.
path
.
insert
(
0
,
lib_path
)
# private imports:
from
lib.docopt
import
docopt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment