Total Complexity | 5 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | #! /usr/bin/env python |
||
17 | class UFF(ForceField): |
||
18 | |||
19 | def __init__(self): |
||
20 | pass |
||
21 | |||
22 | def optimize(self, mol): |
||
23 | res = UFFOptimizeMolecule(mol) |
||
24 | |||
25 | if res == -1: |
||
26 | msg = 'Failed to optimize molecule \'{}\' using MMFF'.format(mol.name) |
||
27 | if self.error_on_fail: |
||
28 | raise RuntimeError(msg) |
||
29 | elif self.warn_on_fail: |
||
30 | warnings.warn(msg) |
||
31 | else: |
||
32 | pass |
||
33 | |||
34 | return mol |
||
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.