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

Fix allocation-based unit tests #336

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Fix allocation-based unit tests #336

merged 4 commits into from
Apr 11, 2024

Conversation

Alexsp32
Copy link
Member

@Alexsp32 Alexsp32 commented Apr 8, 2024

I'm not particularly proud of this "temporary" fix to the failing tests for LargeDiabaticCalculator and RingPolymerLargeDiabaticCalculator, but here we are. Until we decide on a better unit test to replace these ones, we can whitelist different values for different Julia versions.

@Alexsp32 Alexsp32 self-assigned this Apr 8, 2024
@Alexsp32 Alexsp32 requested a review from Nhertl April 8, 2024 12:50
Copy link

@Nhertl Nhertl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this test work when somebody applies an older version than Julia v1.8? I mean, we could state that NQCD requires Julia v1.8 minimum to remedy this. I just wanted to point out, that the if case here does not account for older versions than Julia v1.8 and consequently might break.

@Alexsp32
Copy link
Member Author

Alexsp32 commented Apr 8, 2024

Good point, I've made it catch-all now. Minimum Julia version enforced at the moment is 1.7.

Copy link

@Nhertl Nhertl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that looks good now. :)

Alexsp32 added a commit that referenced this pull request Apr 11, 2024
@Alexsp32 Alexsp32 merged commit a262d2f into main Apr 11, 2024
10 of 11 checks passed
Alexsp32 added a commit that referenced this pull request Apr 15, 2024
* Stopgap fix for failing unit tests based on memory allocation

* Add allocation test debug messages

* Fixed version logic to be defined for all Julia versions
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