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

Too many outputs requested. #4

Open
GillesC opened this issue Dec 13, 2017 · 1 comment
Open

Too many outputs requested. #4

GillesC opened this issue Dec 13, 2017 · 1 comment

Comments

@GillesC
Copy link

GillesC commented Dec 13, 2017

I get the following error when calling data = readNPY('../recordings/iq_time_samples_13_57_53.npy');

Too many outputs requested.  Most likely cause is missing [] around left hand side that has a comma separated list expansion.

Error in readNPYheader (line 54)
    dataType = dtypesMatlab{strcmp(dtNPY(2:3), dtypesNPY)};

Error in readNPY (line 10)
[shape, dataType, fortranOrder, littleEndian, totalHeaderLength, ~] = readNPYheader(filename);

Error in main (line 90)
    data = readNPY('../recordings/iq_time_samples_13_57_53.npy');

More information:

K>> dtNPY(2:3)

ans =

    'c1'

K>> dtypesNPY

dtypesNPY =

  1×11 cell array

    {'u1'}    {'u2'}    {'u4'}    {'u8'}    {'i1'}    {'i2'}    {'i4'}    {'i8'}    {'f4'}    {'f8'}    {'b1'}

K>> strcmp(dtNPY(2:3), dtypesNPY)

ans =

  1×11 logical array

   0   0   0   0   0   0   0   0   0   0   0

K>> dtypesMatlab

dtypesMatlab =

  1×11 cell array

  Columns 1 through 9

    {'uint8'}    {'uint16'}    {'uint32'}    {'uint64'}    {'int8'}    {'int16'}    {'int32'}    {'int64'}    {'single'}

  Columns 10 through 11

    {'double'}    {'logical'}
@nsteinme
Copy link
Contributor

What is the data type of the file? Is it complex, is that what 'c1' is? If you want to try to implement support for complex types, I'm happy to review a pull request on it.

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