| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| 1 | #! /usr/bin/env python |
||
| 16 | class Conformer(rdkit.Chem.rdchem.Conformer, ChemicalObject): |
||
| 17 | |||
| 18 | """ Class representing a Conformer in scikit-chem. """ |
||
| 19 | #should use a view, list for now |
||
| 20 | @property |
||
| 21 | def atom_positions(self): |
||
| 22 | |||
| 23 | """ Return the atom positions in the conformer for the atoms in the molecule. """ |
||
| 24 | |||
| 25 | return [Point3D.from_super(self.GetAtomPosition(i)) for i in range(self.GetNumAtoms())] |
||
| 26 | |||
| 27 | @atom_positions.setter |
||
| 28 | def atom_positions(self, value): |
||
| 29 | |||
| 30 | """ Set the atom positions in the conformer. Not implemented. """ |
||
| 31 | |||
| 32 | raise NotImplementedError |
||
| 33 | |||
| 34 | @property |
||
| 35 | def is_three_d(self): |
||
| 36 | |||
| 37 | """ Return whether the conformer is three dimensional. """ |
||
| 38 | |||
| 39 | return self.is3D() |
||
| 40 | |||
| 41 | @is_three_d.setter |
||
| 42 | def is_three_d(self, value): |
||
| 43 | |||
| 44 | """ Set whether the conformer is three dimensional. """ |
||
| 45 | |||
| 46 | self.set3D(value) |
||
| 47 | |||
| 48 | def __repr__(self): |
||
| 49 | return '<{klass} id="{id}" at {address}>'.format(klass=self.__class__.__name__, \ |
||
| 50 | id=self.GetId(), address=hex(id(self))) |
||
| 51 | |||
| 52 |
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.