Total Complexity | 4 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | #! /usr/bin/env python |
||
17 | class MMFF(ForceField): |
||
18 | def optimize(self, mol): |
||
19 | res = MMFFOptimizeMolecule(mol) |
||
20 | |||
21 | if res == -1: |
||
22 | msg = 'Failed to optimize molecule \'{}\' using MMFF'.format(mol.name) |
||
23 | if self.error_on_fail: |
||
24 | raise RuntimeError(msg) |
||
25 | elif self.warn_on_fail: |
||
26 | warnings.warn(msg) |
||
27 | else: |
||
28 | pass |
||
29 | |||
30 | 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.