Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Perepelkin
hppca
Commits
6ef8bc0d
Commit
6ef8bc0d
authored
Nov 13, 2016
by
Vladislav Perepelkin
Browse files
added script to gather maximum of waves
parent
26aa0b28
Changes
1
Hide whitespace changes
Inline
Side-by-side
system/build_max.py
0 → 100644
View file @
6ef8bc0d
#!/usr/bin/python
import
sys
if
len
(
sys
.
argv
)
<
2
:
print
'usage:'
,
sys
.
argv
[
0
],
'<file1> <file2> ... <fileN>'
sys
.
exit
()
for
f
in
sys
.
argv
[
1
:]:
lines
=
open
(
f
).
readlines
()
top
=
None
for
ln
in
lines
:
key
,
val
=
ln
.
split
(
'
\t
'
)
val
=
float
(
val
)
if
top
is
None
or
val
>
top
:
top
=
val
print
top
,
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