Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattias Fält
moberg
Commits
b9631c5f
Commit
b9631c5f
authored
Apr 03, 2019
by
Anders Blomdell
Browse files
Modified python example
parent
a8aa6cf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/example.py
View file @
b9631c5f
#!/usr/bin/python3
import
moberg
import
math
def
scan
():
result
=
[[],
[],
[],
[],
[]]
...
...
@@ -23,6 +24,8 @@ def main():
for
c
in
channels
:
print
(
len
(
c
))
pass
for
c
in
channels
[
1
]:
print
(
c
[
0
],
c
[
1
].
write
(
math
.
inf
),
c
[
1
].
write
(
-
math
.
inf
),
c
[
1
].
write
(
0
))
pass
if
__name__
==
'__main__'
:
...
...
Write
Preview
Supports
Markdown
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