GithubHelp home page GithubHelp logo

undaqtools's Issues

Error

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.

DAQ file

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

Code and Error

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'



Any plan to release the package for python 3?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.