Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
labjack-module
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2a16cf3c
authored
Oct 11, 2018
by
John Donnal
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
updated version
parent
ac0f3040
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
joulelabjack/u3_module.py
setup.py
joulelabjack/u3_module.py
View file @
2a16cf3c
#!/usr/bin/python3
#!/usr/bin/python3
-u
from
joule.util
s.time
import
now
as
time_now
from
joule.util
ities
import
time_now
from
joule.client
import
ReaderModule
import
asyncio
import
numpy
as
np
...
...
@@ -78,9 +78,6 @@ ARGS_DESC = """
#data rate in Hz
rate = 500
[Inputs]
#none
[Outputs]
output = /path/to/output
---
...
...
@@ -97,11 +94,10 @@ class U3Reader(ReaderModule):
grp
.
add_argument
(
"--rate"
,
type
=
float
,
required
=
True
,
help
=
"sample rate in Hz"
)
#--channels
grp
.
add_argument
(
"--channels"
)
grp
.
add_argument
(
"--channels"
,
required
=
True
)
parser
.
description
=
textwrap
.
dedent
(
ARGS_DESC
)
async
def
run
(
self
,
parsed_args
,
output
):
channels
=
[
int
(
x
)
for
x
in
parsed_args
.
channels
.
split
(
','
)]
rate
=
parsed_args
.
rate
data_ts_inc
=
1e6
/
rate
...
...
setup.py
View file @
2a16cf3c
...
...
@@ -13,7 +13,7 @@ except IOError:
setup
(
name
=
PROJECT
,
version
=
'0.5.
3
'
,
# versioneer.get_version(),
version
=
'0.5.
4
'
,
# versioneer.get_version(),
#cmdclass=versioneer.get_cmdclass(),
description
=
'Use the LabJack U3 with Joule'
,
long_description
=
long_description
,
...
...
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