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

Calculate energy with orca Issue #176

Open
Joe-Anslow opened this issue Apr 26, 2024 · 1 comment
Open

Calculate energy with orca Issue #176

Joe-Anslow opened this issue Apr 26, 2024 · 1 comment

Comments

@Joe-Anslow
Copy link

Joe-Anslow commented Apr 26, 2024

when using the below code:

orca = stko.OrcaEnergy(
    orca_path='/home/cmja2/orca',
    output_dir='./Polymer2_ORCA',
    topline='! SP B97-3c',
    write_input_only=False,
    discard_output=False,
)

orca.get_results(polymer)

this error occurs:

  File "/home/cmja2/anaconda3/lib/python3.11/site-packages/stko/_internal/calculators/orca_calculators.py", line 202, in _check_outcome
    if "****ORCA TERMINATED NORMALLY****" not in lines[-2]:
                                                 ~~~~~^^^^
IndexError: list index out of range

I think that maybe orca itself was at fault and I ran the orca input indendently which was successful. When using stko, the output file is there but is empty. This would mean there is no line -2. could it be that stko is not waiting for the orca run to finish before looking at line -2? The error with orca does happen almost immediately whilst the orca calculation itself takes around a couple of minutes.

@andrewtarzia
Copy link
Member

Editted to include code formatting

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

No branches or pull requests

2 participants