-
Hi everyone, I am currently working on the neutron magnetic scattering for the HighNESS project. I have implemented the magnetic model in a plugin named "MagScat" which is compatible with the latest NCrystal 3.0.0 version: https://github.com/XuShuqi7/ncplugin-MagScat The verification is presented in the .ipynb file. Now I would like to use the Google Colab notebook to share these results. While I confront some troubles when trying to compile the plugin in NCrystal: %cd -q /content/ These commands are based on a code provided by Ignacio. My modified !cmake command line is probably wrong. Does someone know how to correct it? Thank you very much for your help. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Dear Shuqi, Thanks for your question. I am not an expert in google-collab, but here are a few observations:
Afterwards you should activate the installation by sourcing setup.sh, and asking ncrystal-config to provide a summary in order to verify everything makes sense:
I hope this helps. I verified the above commands locally, but not on google collab. Please let us know if it works (or if there are things that needs to be changed) here, for the benefit of other google-collab + NCrystal users. Cheers, |
Beta Was this translation helpful? Give feedback.
-
UPDATE SEPTEMBER 2024: There is now an example notebook which compiles the texture plugin in the https://github.com/mctools/ncrystal-notebooks repo . Indeed, the plugins need cmake-3.15. I am not sure how the google collab environment works, or what platform it is emulating, but you can try to add the following commands at the top:
That works locally on my linux machine. |
Beta Was this translation helpful? Give feedback.
UPDATE SEPTEMBER 2024: There is now an example notebook which compiles the texture plugin in the https://github.com/mctools/ncrystal-notebooks repo .
Indeed, the plugins need cmake-3.15.
I am not sure how the google collab environment works, or what platform it is emulating, but you can try to add the following commands at the top:
That works locally on my linux machine.