-
Notifications
You must be signed in to change notification settings - Fork 6
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
Simplify Chemical System #616
base: protos
Are you sure you want to change the base?
Conversation
…to maciej/atom-database-in-trajectory
…to maciej/atom-database-in-trajectory
…to maciej/atom-database-in-trajectory
…base-in-trajectory
Two problems had to be addressed:
|
I'm not sure how this happened since the PDF function is the same on protos and this branch but there are some issues wth the SSF calculation on this branch. This worked before, I think d500f10 should be the first bad commit. |
I completely missed that SSF also inherits from DistanceHistogram. PDF needed a change of one scaling factor in this PR. Now SSF has it too. For the trajectories I checked, the results matched those from protos. |
I have compared the results from protos to the current branch. It was correct for:
I think that the read_com_trajectory method in MdanseTrajectory was the main source of problems before, and it has been fixed now. |
I've done some more testing and it looks like there might be some issues with loading h5md files in this branch. I'm using MDANSE\Tests\UnitTests\Data\Ar_mdmc_h5md.h5. When I load the h5md file I also get the following error. "KeyError: "Unable to synchronously open object (object 'chemical_system' doesn't exist)"" but it seems to continue to work anyway. Anyway here are the following results for PACF, RMSD, and RMSF. |
True, this message was not really meant to be this dramatic. Now there is just a warning that MdanseTrajectory class could not read the file, so we will try H5MD instead.
I corrected it, now the results match for me. |
This is fixed when you load an already converted trajectory but I found one more edge case. When you convert with autoload and then delete it from the GUI the trajectory file is still locked so it can't be deleted or moved. |
When does it go away? Do you have to switch off the GUI, or is it enough just to wait? As far as I know this issue is Windows-specific. |
Description of work
Most of the classes derived from ChemicalEntity were only used for a very specific case of a trajectory created by GROMACS with a PDB file describing the topology. Since MDANSE is moving to MDAnalysis for loading GROMACS trajectories, the selection mechanism based on fixed databases needs to be replaced with a more general solution. This is provided by rdkit and substructure matching. Since rdkit introduces its own indexing of atoms, not guaranteed to be consistent with the internal indexing of the ChemicalSystem class, changes are necessary to improve the consistency of the atom indexing.
closes #545
closes #351
closes #641
closes #478
Fixes
To test
All unit tests must pass.
A detailed comparison of the results between this and main branches is necessary due to the fundamental changes to the way the code operates.
Please run TrajectoryEditor with molecule detection on a trajectory and check if all the expected Atom Selection options are working correctly in the GUI.
Jobs that require the most attention: