Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
Conv TTL Blocking
Commits
1208fcbc
Commit
1208fcbc
authored
Feb 07, 2017
by
Projects
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pulsegen: Accept number of pulses/samples using E notation
parent
616dae19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
conv-ttl-blo-gw
conv-ttl-blo-gw
+1
-1
pulsegen.py
software/utils/pulsegen.py
+2
-2
No files found.
conv-ttl-blo-gw
@
adbbd31b
Subproject commit
103510645fb5ebdffccb1d2ef5894d832d947da5
Subproject commit
adbbd31b1af412639786a8478fbeec9b78188dc2
software/utils/pulsegen.py
View file @
1208fcbc
...
@@ -262,13 +262,13 @@ if __name__ == '__main__':
...
@@ -262,13 +262,13 @@ if __name__ == '__main__':
if
opt
in
(
'-b'
,
'--baud'
):
if
opt
in
(
'-b'
,
'--baud'
):
baud
=
int
(
arg
)
baud
=
int
(
arg
)
elif
opt
in
(
'-c'
,
'--count'
):
elif
opt
in
(
'-c'
,
'--count'
):
count
=
int
(
arg
)
count
=
int
(
float
(
arg
)
)
elif
opt
in
(
'-d'
,
'--device'
):
elif
opt
in
(
'-d'
,
'--device'
):
device
=
arg
device
=
arg
elif
opt
in
(
'-f'
,
'--freq'
):
elif
opt
in
(
'-f'
,
'--freq'
):
freq
=
float
(
arg
)
freq
=
float
(
arg
)
elif
opt
in
(
'-s'
,
'--samples'
):
elif
opt
in
(
'-s'
,
'--samples'
):
samples
=
int
(
arg
)
samples
=
int
(
float
(
arg
)
)
if
samples
>
65536
:
if
samples
>
65536
:
print
(
'ERROR: Samples number limit is 65536'
)
print
(
'ERROR: Samples number limit is 65536'
)
...
...
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