| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | #! /usr/bin/env python |
||
| 22 | class PhysicochemicalFingerprinter(Fingerprinter): |
||
| 23 | |||
| 24 | """ Physicochemical descriptor generator using RDKit descriptor """ |
||
| 25 | |||
| 26 | NAME = 'physchem' |
||
| 27 | |||
| 28 | def __init__(self, descriptors='all'): |
||
| 29 | |||
| 30 | """ Create a physicochemical descriptor generator. |
||
| 31 | |||
| 32 | Args: |
||
| 33 | descriptors (list<(str, func)> or 'all'): |
||
| 34 | Descriptors to calculate, or if 'all', use all descriptors.""" |
||
| 35 | |||
| 36 | if descriptors == 'all': |
||
| 37 | self.descriptors = DESCRIPTORS |
||
| 38 | else: |
||
| 39 | self.descriptors = descriptors |
||
| 40 | self.descriptor_names, _ = zip(*self.descriptors) |
||
| 41 | |||
| 42 | @property |
||
| 43 | def index(self): |
||
| 44 | return self.descriptor_names |
||
| 45 | |||
| 46 | def _transform(self, mol): |
||
| 47 | |||
| 48 | return np.array([f(mol) for (n, f) in self.descriptors]) |
||
| 49 |
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__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.