Commit 2a16cf3c by John Donnal

updated version

parent ac0f3040
Showing with 4 additions and 8 deletions
#!/usr/bin/python3 #!/usr/bin/python3 -u
from joule.utils.time import now as time_now from joule.utilities import time_now
from joule.client import ReaderModule from joule.client import ReaderModule
import asyncio import asyncio
import numpy as np import numpy as np
...@@ -78,9 +78,6 @@ ARGS_DESC = """ ...@@ -78,9 +78,6 @@ ARGS_DESC = """
#data rate in Hz #data rate in Hz
rate = 500 rate = 500
[Inputs]
#none
[Outputs] [Outputs]
output = /path/to/output output = /path/to/output
--- ---
...@@ -97,11 +94,10 @@ class U3Reader(ReaderModule): ...@@ -97,11 +94,10 @@ class U3Reader(ReaderModule):
grp.add_argument("--rate", type=float, required=True, grp.add_argument("--rate", type=float, required=True,
help="sample rate in Hz") help="sample rate in Hz")
#--channels #--channels
grp.add_argument("--channels") grp.add_argument("--channels", required=True)
parser.description = textwrap.dedent(ARGS_DESC) parser.description = textwrap.dedent(ARGS_DESC)
async def run(self, parsed_args, output): async def run(self, parsed_args, output):
channels = [int(x) for x in parsed_args.channels.split(',')] channels = [int(x) for x in parsed_args.channels.split(',')]
rate = parsed_args.rate rate = parsed_args.rate
data_ts_inc = 1e6 / rate data_ts_inc = 1e6 / rate
......
...@@ -13,7 +13,7 @@ except IOError: ...@@ -13,7 +13,7 @@ except IOError:
setup( setup(
name=PROJECT, name=PROJECT,
version='0.5.3', # versioneer.get_version(), version='0.5.4', # versioneer.get_version(),
#cmdclass=versioneer.get_cmdclass(), #cmdclass=versioneer.get_cmdclass(),
description='Use the LabJack U3 with Joule', description='Use the LabJack U3 with Joule',
long_description=long_description, long_description=long_description,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment