-
Notifications
You must be signed in to change notification settings - Fork 37
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
metals.json updated #57
Conversation
Do I need to do anything else on this branch? |
Giving some description about how the file was updated may help. I need to do some tests. |
I added some description. |
I just wondered why some MAD values were so different from the old metals.json. For example, K-O distance:
For coord = 8, it was 0.04 and now is 0.028, despite the same counts. Cs-Cl is much more different:
Has the calculation method been changed? |
I checked and recognized that in the previous version deprecated "mad" function from pandas was used which is actually Mean Absolute Error. In the last calculation mediad absolute deviation (np.median(np.abs(distances - np.median(distances)))) was used. |
Thank you! Could you provide a link to the calculation code, if available on Github? |
It is not available on Github. I can post it here |
This metals.json has some inappropriate values. For example, the longest Mg-O distance has too small std/mad, which causes very strong force in (servalcat) refinement if Mg-O distance is long in the model.
Servalcat was fixed to cap the sigma in 0.4.94, but not released. Probably it is better to fix metals.json as well? |
It looks like that there is one example in the COD: Mg with coordination 12. And all these values came from that example. Capping is a good practice. |
New metal-ligand distance file. New file contains distance statistics for all metal-non metal "bonds" depending on coordination number. If the distance distribution have multiple modes then all they are listed (small modes may be absent)