Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converting raw data to hdf5 #3

Open
mrmartin opened this issue Dec 14, 2016 · 0 comments
Open

converting raw data to hdf5 #3

mrmartin opened this issue Dec 14, 2016 · 0 comments

Comments

@mrmartin
Copy link

First of all, thank you for making this code available!

Am I right that the link
https://github.com/szcom/rnnlib/blob/master/examples/online_prediction/training_set.txt
should be? :
https://raw.githubusercontent.com/szcom/rnnlib/master/examples/online_prediction/training_set.txt

More importantly, data_raw2hdf5.py gives the following error:
Traceback (most recent call last):

  File "./data_raw2hdf5.py", line 87, in <module>
    res = read_file(file_path)
  File "./data_raw2hdf5.py", line 70, in read_file
    pts.append(diff)
AttributeError: Element instance has no attribute 'append'

Isn't there a problem with initializing
pts = []
and then using
for pts in trace.getElementsByTagName('Point'):

The following fixes the error:

        for pti in trace.getElementsByTagName('Point'):
            pt = np.array([pti.getAttribute('x').strip(),
                           pti.getAttribute('y').strip(), 0],
                          dtype='float32')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant