rogerlew / undaqtools Goto Github PK
View Code? Open in Web Editor NEWUnofficial NADS DAQ Toolkit
Home Page: http://pythonhosted.org/undaqTools/
License: Other
Unofficial NADS DAQ Toolkit
Home Page: http://pythonhosted.org/undaqTools/
License: Other
Hi Roger,
Thank you for your awesome package. I am trying to read in a DAQ file since the automation updates to the simulator. But some, not all, files produce an error. I am not sure if it is because something is outdated in undaqTools. Could you please have a look? Thank you.
I have 2 DAQ files that I am trying to read in. The WithTraffic
file is successfully read in, but the NoTraffic
file produces the error below. You can download both files here
I have the following script that I run with python 02_convert_daq_files_to_hdf5.py
. But it produces the error below.
# Changing directory to the folder where DAQ files reside ----------------------------
import os
os.chdir("C:\\Users\\HP\\Desktop\\driving_sim\\data\\daq")
# Getting the names of all DAQ files
import glob
ctnames = glob.glob('*.daq')
#print(ctnames)
# Importing and using undaq tools to convert all DAQ files to HDF5 format
# import sys
from undaqTools import Daq
for n in ctnames:
daq = Daq()
x = daq.read(n)
daq.write_hd5(x)
# print(type(x))
Traceback (most recent call last):
File "02_convert_daq_files_to_hdf5.py", line 30, in
x = daq.read(n)
File "C:\Python27\lib\site-packages\undaqTools\daq.py", line 295, in read_daq
self._interpolate_missing_frames()
File "C:\Python27\lib\site-packages\undaqTools\daq.py", line 559, in _interpolate_missing_frames
for j in xrange(elem.numvalues)]
File "C:\Python27\lib\site-packages\numpy\lib\function_base.py", line 1412, in interp
return interp_func(x, xp, fp, left, right)
TypeError: Cannot cast array data from dtype('S1') to dtype('float64') according to the rule 'safe'
I am trying to make your awesome tool undaqTools
accessible to R language users by wrapping Daq()
. However, python 2 support is going to end in R (via reticulate
package). Do you have any plans to release the package for python 3?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.