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 FakeDFT to only import relevant frame #355

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

ProodjePindakaas
Copy link
Contributor

The FakeDFT method appeared to be really slow for large input files.
This was because the calculate method in FakeDFT read the entire file each call and then selects the frame it needs.
Here, the calculate method was changed to only read the frame from the file it actually needs.
This speeds up the FakeDFT calculator significantly.

changed the extxyz import in calculate method of FakeDFT to read only the relevant frame from the file instead of the entire file on each call. This makes the FakeDFT method significantly faster.
@YuuuXie YuuuXie merged commit 3aaf8b9 into mir-group:development Jul 11, 2023
0 of 8 checks passed
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.

2 participants