-
Notifications
You must be signed in to change notification settings - Fork 876
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 timeout in command_line.enumlib_caller.EnumlibAdaptor
#4276
base: master
Are you sure you want to change the base?
Fix timeout in command_line.enumlib_caller.EnumlibAdaptor
#4276
Conversation
b980d67
to
6947ffc
Compare
with pytest.raises(TimeoutError, match="Enumeration took too long"): | ||
adaptor._run_multienum() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original test command is incorrect, a bare _run_multienum
doesn't generate the necessary input files, and _gen_input_file
is needed (therefore Fortran runtime error: Cannot open file 'struct_enum.in': No such file or directory
), so perhaps just use run
instead.
After fixing this, the run time on my local Apple M4 machine is around 0.04 s
Hi @fraricci sorry for the late response, can you help me test if this patch works? I don't have a "slow enough" enumlib job to test with (the unit test job last only 0.04 s and I'm not sure if it's really validating the behaviour), thanks a lot! |
Summary
command_line.enumlib_caller.EnumlibAdaptor
, to fix Timeout in MagneticStructureEnumerator (and EnumlibAdaptor) does not work #4185Fortran runtime error: Cannot open file 'struct_enum.in': No such file or directory
)