Skip to content

Refactor pydiscamb interface #1060

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

viljarjf
Copy link

@viljarjf viljarjf commented Apr 14, 2025

Hello!

This PR aims to make use of the existing structure factor + gradient framework in cctbx when using TAAM with pydiscamb.

I refactored the algorithm selection slightly, and added TAAM as an option. Currently, the actual implementation is in pydiscamb: https://github.com/viljarjf/pyDiSCaMB/blob/main/pydiscamb/cctbx_interface.py
I would like some input on this solution, if maybe the gradients_taam and from_scatterers_taam classes should be in cctbx and the results classes in pydiscamb?
The runtime measurement still needs to be added to the taam classes, regardless.

Extra parameters can be passed to DiSCaMB by means of a phil scope. I put this in pydiscamb, to more easily support / update the options if and when they change in DiSCaMB. The extra-scope is meant to allow for other algorithms in the future, with a discamb subscope defined in pydiscamb. Here, I also have the option to add more parameter sets for other available calculators in DiSCaMB.

Happy for any input on this! I have not been able to test this much, as I'm having difficulties properly installing cctbx.

@viljarjf viljarjf marked this pull request as ready for review April 24, 2025 12:07
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

Successfully merging this pull request may close these issues.

1 participant