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
ce983675
Commit
ce983675
authored
Aug 02, 2018
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
y_origin must be subtracted
parent
5cc95244
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Keysight_DSO_S_254A.py
sw/lib/Keysight_DSO_S_254A.py
+1
-1
No files found.
sw/lib/Keysight_DSO_S_254A.py
View file @
ce983675
...
...
@@ -327,7 +327,7 @@ def raw_to_scipy_array (waveform_raw, byte_order, preamble):
#Convert to unit values.
y_data
=
scipy
.
array
(
struct
.
unpack
(
format_string
,
waveform_raw
),
dtype
=
scipy
.
float64
)
*
preamble
[
"y_increment"
]
+
preamble
[
"y_origin"
]
dtype
=
scipy
.
float64
)
*
preamble
[
"y_increment"
]
-
preamble
[
"y_origin"
]
x_data
=
scipy
.
arange
(
preamble
[
"points"
])
*
preamble
[
"x_increment"
]
+
preamble
[
"x_origin"
]
#create array with x,y axis values.
...
...
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