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

KeyError in mkbins.py #4

Open
vargatn opened this issue Jun 25, 2019 · 2 comments
Open

KeyError in mkbins.py #4

vargatn opened this issue Jun 25, 2019 · 2 comments

Comments

@vargatn
Copy link
Owner

vargatn commented Jun 25, 2019

From Maria Elidaiana da S. Pereira

`Traceback (most recent call last):
File "mkbins.py", line 22, in
randoms = parbins.prepare_random()
File "/home/s1/mariaeli/mylibs/xpipe/xpipe/xhandle/parbins.py", line 568, in prepare_random
data, fullcat = load_randcat(params, fullpaths)
File "/home/s1/mariaeli/mylibs/xpipe/xpipe/xhandle/parbins.py", line 366, in load_randcat
qlist[:, ival] = randcat[randkey[colname]]
KeyError: 'q2'

edit the file /xpipe/xpipe/xhandle/parbins.py by changing the line "nq = len(randkey.keys()) - 3" to "nq = len(randkey.keys()) - 4"`

@hywu
Copy link

hywu commented Jul 25, 2019

Would it be possible to check whether the key e.g. 'q2' exists?

@vargatn
Copy link
Owner Author

vargatn commented Sep 3, 2019

After some digging I think this might be due to some setting in the config files, could you post them somewhere? I could not reproduce the problem with my own settings

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