| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| 1 | #! /usr/bin/env python |
||
| 18 | class Point3D(rdkit.Geometry.rdGeometry.Point3D, ChemicalObject): |
||
| 19 | |||
| 20 | """ Class representing a point in scikit-chem """ |
||
| 21 | |||
| 22 | def to_dict(self, two_d=True): |
||
| 23 | |||
| 24 | """ Return a dictionary representation of the point """ |
||
| 25 | |||
| 26 | if two_d: |
||
| 27 | return {"x": round(self.x), "y": round(self.y)} |
||
| 28 | else: |
||
| 29 | return {"x": round(self.x), "y": round(self.y), "z": round(self.z)} |
||
| 30 | |||
| 31 | def __repr__(self): |
||
| 32 | return '<{klass} coords="({x:.2f}, {y:.2f}, {z:.2f})" at {address}>'.format( |
||
| 33 | klass=self.__class__.__name__, \ |
||
| 34 | x=self.x, \ |
||
| 35 | y=self.y, \ |
||
| 36 | z=self.z, \ |
||
| 37 | address=hex(id(self))) |
||
| 38 | |||
| 39 | def __str__(self): |
||
| 40 | return '({x:.2f}, {y:.2f}, {z:.2f})'.format(x=self.x, y=self.y, z=self.z) |
||
| 41 |
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.