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

Dictionary method model_site.adp_matrix_beta does not compile #3

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

Comments

@jamesrhester
Copy link
Contributor

Error is:

failed to compile defn meth. _model_site.adp_matrix_beta

 [label,symop] =   _model_site.id

 a = atom_site[label]
 s = space_group_symop[SymKey(symop)]

 _model_site.adp_matrix_beta =  s.R * a.tensor_beta * s.RT

TypeError: basis is undefined

@jamesrhester
Copy link
Contributor Author

jamesrhester commented Jun 29, 2016

This error occurs because the system fails to pick up the internal typing of _model_site.id. By changing the dictionary definition to _type.purpose Encode, _type.contents Text and _type.dimension [2], the routine compiles normally. I think we should abandon trying to specify the internal types of lists in such detail.

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

1 participant