Skip to content

keys issues? #4

@pa36651

Description

@pa36651

Using wvfreader with the example code on a wvf from a 750DL I get the following errors:
//
File "C:\Users\palmhage\Anaconda3\lib\site-packages\wvfreader.py", line 188, in getitem
out.append([v for k,v in self.items() if k.lower().replace(' ','')==key.lower().replace(' ','')][0])

IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\palmhage\Yoko_read.py", line 30, in
files = datafiles[['file1','file2']]

File "C:\Users\palmhage\Anaconda3\lib\site-packages\wvfreader.py", line 190, in getitem
raise Exception('Key '+key+' does not exist.\nAvailable Keys:\n'+'\n'.join([k for k in self.keys()]))

Exception: Key file1 does not exist.
Available Keys:
ISG30000
//
The HDR-file:
ISG30000.HDR.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions