Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Testing
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
FMC ADC 100M 14b 4cha - Testing
Commits
791a0072
Commit
791a0072
authored
Aug 08, 2013
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test09: Fix a bug in the frequency response check.
parent
5fa36d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test09.py
test/fmcadc100m14b4cha/python/test09.py
+1
-1
No files found.
test/fmcadc100m14b4cha/python/test09.py
View file @
791a0072
...
...
@@ -262,7 +262,7 @@ def main (default_directory='.'):
error
=
0
for
i
in
range
(
len
(
points
)):
for
ch
in
range
(
NB_CHANNELS
):
if
((
ch_att
[
ch
][
i
]
<
points
[
j
][
1
]
-
points
[
j
][
2
])
|
(
ch_att
[
ch
][
i
]
>
points
[
i
][
1
]
+
points
[
i
][
2
])):
if
((
ch_att
[
ch
][
i
]
<
points
[
i
][
1
]
-
points
[
i
][
2
])
|
(
ch_att
[
ch
][
i
]
>
points
[
i
][
1
]
+
points
[
i
][
2
])):
print
"Channel
%
d frequency response is out of range at freq:
%2.3
fMHz"
%
(
ch
+
1
,
points
[
i
][
0
]
/
1E6
)
print
"Attenuation:
%3.3
fdB, expected:
%2.1
f +/-
%2.1
fdB"
%
(
ch_att
[
ch
][
i
],
points
[
i
][
1
],
points
[
i
][
2
])
error
+=
1
...
...
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