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

A bit unclear on the dimensions of the "times" array #9

Open
hedgy123 opened this issue Jun 28, 2016 · 1 comment
Open

A bit unclear on the dimensions of the "times" array #9

hedgy123 opened this issue Jun 28, 2016 · 1 comment

Comments

@hedgy123
Copy link

Hello,

I am trying to reproduce your drosophila example. I was unable to get the kalinka dataset through urlretrieve but I got it from a thread on the GP's github page. Unfortunately, I get stuck here:

replicates, times = np.loadtxt('/Users/n593117/GPclust/data/kalinka09_pdata.csv', delimiter=',').T

with this error:

  /Library/Python/2.7/site-packages/numpy/lib/npyio.pyc in floatconv(x)
    657         if b'0x' in x:
    658             return float.fromhex(asstr(x))
--> 659         return float(x)
    660 
    661     typ = dtype.type

 ValueError: could not convert string to float: an

This is too bad because now I can't print out 'times', and I am a bit confused as to what the dimensions of 'times' are supposed to be. At first I thought it would be just a 57x1 array for the 57 time values, but I think it's a bit more involved than that. Could you please help?

@zoesuns
Copy link

zoesuns commented Jun 22, 2017

There may be something "not a number" in that file (which is "an"). Try manually change it or use genfromtxt instead.

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

2 participants