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

load_file for ICP data doesn't work if temperature isn't included in the data #19

Closed
js54434 opened this issue Feb 9, 2015 · 2 comments
Assignees
Labels

Comments

@js54434
Copy link

js54434 commented Feb 9, 2015

I'm trying to load some BT9 files, but I get this error:

data1.load_file(filename, mode='ICP')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/johnschneeloch/anaconda/lib/python2.7/site-packages/neutronpy/core.py", line 373, in load_file
    output[key] = args[headers.index(value)]
ValueError: 'Tact' is not in list

The data file happens not to have a temperature column, which I think is what's causing the error.

@pseudocubic pseudocubic self-assigned this Feb 19, 2015
@pseudocubic pseudocubic added this to the 0.3 File type support milestone Mar 9, 2015
@pseudocubic
Copy link
Contributor

This issue will be covered in the upcoming Data class rewrite that is currently in progress.

@pseudocubic
Copy link
Contributor

Fixed by 2e125c7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants