-
Notifications
You must be signed in to change notification settings - Fork 3
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
Augment model with python script #17
Comments
In short, I think it's an okay modification ,but I have some reservations on the implementation that I think we should consider. When we first set out to do the refactor, we were aiming to make the package more similar to the So what I imagine would your current python script is something like this:
And essentially the augment_model object would just carry out the
Then this would make more sense to want to handle it automatically, as how you construct the enm might change a lot depending on your specific model (Ca vs CaCb, cutoff distances, etc.). We don't need to add a helper function in the Some thoughts on this:
|
I should provide a little more context that led me to this idea. I was using my In response to your thoughts:
I will wait to implement this for the time being. |
I want to add a feature that allows the user to modify the model object (e.g. by adding interactions) using an external python script. I am proposing a solution but I want to get feedback (mainly from @TensorDuck ) about how to implement it without disrupting recent changes to
inputs.py
.I have found this to be necessary when creating the model of SNARE that @gsc4 has been using, which required a harmonic interaction between the endpoints to model the effects of the pulling potential. However, I think this solution will solve all these kinds of 'tinkering' problems we may have.
Specifically, I want to add an argument to the
.ini
file that defines the path to an external python script that the user has created (e.x.path_to_py = /home/ajk8/scratch/modify.py
). The external script has a function that takes in amodel
object and returns amodel
object.I basically just want to add the following code to
inputs.py
,The text was updated successfully, but these errors were encountered: