Skip to content
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

Update analysis and converter unit tests so they check against reference values #647

Open
wants to merge 8 commits into
base: protos
Choose a base branch
from

Conversation

ChiCheng45
Copy link
Collaborator

@ChiCheng45 ChiCheng45 commented Jan 28, 2025

Description of work
Updated analysis unit tests so they check against reference values.
Updated converter unit tests so they check certain values against already converted files. improvedase has not been updated as I find that the trajectories they converted didn't look correct, this should be updated when improvedase is fixed.
Updated IR unit tests so that charges are specified.
Updated the DCD converter so the time series starts from zero.

This change should reduce some of the manual testing that we'll need to do, especially when we need to test results against previous versions.

Reference results for scattering-related jobs have not been added because of the dependence on the randomly generated qvectors. We could set the seed but I believe this still might lead to different qvectors if different library version are used and etc.

To test
Unit tests should pass. The CHARMM and NAMD trajectory converters should work as usual except the times should start from zero.

@ChiCheng45 ChiCheng45 self-assigned this Jan 28, 2025
@ChiCheng45 ChiCheng45 changed the title Update analysis unit tests so they check against reference values Update analysis and converter unit tests so they check against reference values Jan 28, 2025
@ChiCheng45 ChiCheng45 marked this pull request as ready for review January 29, 2025 13:51
@ChiCheng45
Copy link
Collaborator Author

ChiCheng45 commented Jan 29, 2025

If #616 gets merged before this one then we will need to change the van Hove function distinct results since #616 changes how it is calculated by adding both g_ij(r,t) and g_ji(r,t). Also the solvent-accessible surface and voronoi calculation since they were fixed or updated.

@ChiCheng45 ChiCheng45 marked this pull request as draft January 30, 2025 14:02
# Conflicts:
#	MDANSE/Tests/UnitTests/Analysis/test_dynamics.py
#	MDANSE/Tests/UnitTests/Analysis/test_infrared.py
#	MDANSE/Tests/UnitTests/Analysis/test_structure.py
#	MDANSE/Tests/UnitTests/Analysis/test_thermodynamics.py
@ChiCheng45 ChiCheng45 marked this pull request as ready for review January 30, 2025 17:11
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