Skip to content

bespokefit 0.4.3 failed with "forming a nearly linear angle" for the compound working fine with bespokefit 0.2.3 #412

@okbckim

Description

@okbckim

Description

bespokefit job failed for the structure attached when the version 0.4.3 is used. This job worked fine with the version 0.2.3

Error message:

 [null, null, {"type": "ValueError", "message": "TorsionDrive error at
 60:\ngeomeTRIC run_json error:\nTraceback (most recent call last):\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/run_json.py\", line 269, in geometric_run_json\n
 progress = geometric.optimize.Optimize(coords, M, IC, engine, dirname, params,
 print_info = (ic==0))\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/optimize.py\", line 1116, in Optimize\n
 return optimizer.optimizeGeometry()\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/optimize.py\", line 1029, in optimizeGeometry\n
 self.calcEnergyForce()\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/optimize.py\", line 306, in calcEnergyForce\n
 self.checkStructure()\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/optimize.py\", line 1067, in checkStructure\n
 raise LinearTorsionError(\"A constrained torsion has three consecutive
 atoms\\n\"\ngeometric.errors.LinearTorsionError: A constrained torsion has
 three consecutive atoms\nforming a nearly linear angle, making the torsion
 angle poorly defined.\n> Atoms Angle\n> 4-5-6 179.99\n\n", "traceback":
 "Traceback (most recent call last):\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/celery/app/trace.py\", line 453, in trace_task\n    R =
 retval = fun(*args, **kwargs)\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/celery/app/trace.py\", line 736, in __protected_call__\n
 return self.run(*args, **kwargs)\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/openff/bespokefit/executor/services/qcgenerator/worker.py\
 ", line 151, in compute_torsion_drive\n    return_value =
 qcengine.compute_procedure(\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/qcengine/compute.py\", line 181, in compute_procedure\n
 return handle_output_metadata(output_data, metadata, raise_error=raise_error,
 return_dict=return_dict)\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/qcengine/util.py\", line 186, in handle_output_metadata\n
 raise ValueError(output_fusion[\"error\"][\"error_message\"])\nValueError:
 TorsionDrive error at 60:\ngeomeTRIC run_json error:\nTraceback (most recent
 call last):\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/run_json.py\", line 269, in geometric_run_json\n
 progress = geometric.optimize.Optimize(coords, M, IC, engine, dirname, params,
 print_info = (ic==0))\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/optimize.py\", line 1116, in Optimize\n
 return optimizer.optimizeGeometry()\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/optimize.py\", line 1029, in optimizeGeometry\n
 self.calcEnergyForce()\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/optimize.py\", line 306, in calcEnergyForce\n
 self.checkStructure()\n  File
 \"/home/byungchan_kim_neurolambdatx_com/miniforge3/envs/bespokefit-env/lib/pyth
 on3.10/site-packages/geometric/optimize.py\", line 1067, in checkStructure\n
 raise LinearTorsionError(\"A constrained torsion has three consecutive
 atoms\\n\"\ngeometric.errors.LinearTorsionError: A constrained torsion has
 three consecutive atoms\nforming a nearly linear angle, making the torsion
 angle poorly defined.\n> Atoms Angle\n> 4-5-6 179.99\n\n\n"}, null, null, null,
 null, null, null, null]

Please describe what you were trying to do, what you expected to happen, and what happened instead.
structure.offxml

Reproduction

Please include a minimally reproducing example of this bug.

Output

Please include the output, including full tracebacks of any errors, resulting from the reproduction.

Software versions

openff-bespokefit         0.4.3              pyhd8ed1ab_0    conda-forge
  • Which operating system and version are you using? Linux
  • How did you install BespokeFit?
mamba create -n bespokefit-env -y -c conda-forge  python=3.10 openff-bespokefit "qcportal <0.50" psi4 dftd3-python ambertools cuda-version=12.4
  • Are you using Apple Silicon? If so, are you running BespokeFit in Rosetta (osx-64) or natively (osx-arm64)? No
  • What is the output of running conda list?
Output of conda list

Please place the output of conda list here

openff-bespokefit         0.4.3              pyhd8ed1ab_0    conda-forge
forcebalance              1.9.6           py310h256d06d_2    conda-forge
openff-forcefields        2024.09.0          pyhff2d567_0    conda-forge
xtb                       6.7.1                h8876d29_4    conda-forge
xtb-python                22.1            py310ha75aee5_2    conda-forge
openff-amber-ff-ports     0.0.4              pyhca7485f_0    conda-forge
openff-bespokefit         0.4.3              pyhd8ed1ab_0    conda-forge
openff-forcefields        2024.09.0          pyhff2d567_0    conda-forge
openff-fragmenter-base    0.2.2              pyhd8ed1ab_0    conda-forge
openff-interchange        0.3.29             pyhd8ed1ab_0    conda-forge
openff-interchange-base   0.3.29             pyhd8ed1ab_0    conda-forge
openff-models             0.1.2              pyhca7485f_0    conda-forge
openff-qcsubmit           0.50.0             pyhd8ed1ab_0    conda-forge
openff-toolkit            0.16.5             pyhd8ed1ab_0    conda-forge
openff-toolkit-base       0.16.5             pyhd8ed1ab_0    conda-forge
openff-units              0.2.2              pyhd8ed1ab_1    conda-forge
openff-utilities          0.1.15             pyhd8ed1ab_0    conda-forge

023.tgz
043.tgz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions