Replaced post processing "alt" script#15
Replaced post processing "alt" script#15arn-all wants to merge 13 commits intotomswinburne:masterfrom
Conversation
|
I packaged the python script with setuptools to make it installable. All installation details are in |
|
Hi Arnaud, This is very nice, apologies I just looked at the code in more detail. Putting everything in classes is for sure better Given that we will only ever use this with PAFI, I think the code could remain self-contained in a jupyter notebook, or keep it as an external python file as you have done. I don't think it's required to install everything, however, putting things in this format will help if we want to host online with binder etc |
|
If you check out the notebook in |
|
where are your pre-processing scripts? |
|
Final thing- the new config file is designed to allow for general parameter sweeps - i.e. with <Parameters>
<ReactionCoordinate>0.0 1.0 9</ReactionCoordinate>
<Temperature>0. 800. 5</Temperature> <!-- steps of 200K -->
<Stress>0 500 6</Stress><!-- steps of 100MPa-->
</Parameters>You could then have a parameter |
|
Hi Tom,
I guess this process would be better performed internally, with direct access to LAMMPS for relaxation after adding knots, and could be much simplified.
|
Hi Tom,
Based on the script you added a while ago, I wrote a python script that simplifies post processing of PAFI runs. It also allows plotting the profile directly with
PafiResult.plot(), which returns the plt.ax for further modification.It also allows plotting the activated free energy vs temperature very easily:
ax is also returned for further modification or export.
I made the script importable from the main pafi directory (with the
pafi/__init__.pyfile), but it is not necessary. I could also write asetup.pyfile to make the script installable, i.e importable from anywhere, if you think it is a good idea. I also have some pre-processing scripts that I used to deal with the spline issues we discussed, by remove images or adding new ones. I guess a more general python script for pre-processing a MEP for best result with PAFI could be written based on that and the pafi-path-test you added recently.I kept the older alt_sample_plot script for now.
Let me know if it is good for you,
Arnaud