src/taurenmd/libs/libcalc.py
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert coords.shape[0] > 3
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert p4_vecs.shape[1] == 3
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert coords.shape[1] == 3
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert n1.shape == (3,)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert n2.shape == p4_vecs.shape, f'{n2.shape}, {p4_vecs.shape}'
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert u2.shape == p4_vecs.shape
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert q1x2.shape == (3,)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert theta.size == p4_vecs.shape[0]
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert q2x3s.shape == q3s.shape
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert q3s.shape == p4_vecs.shape
- Exclude checks
Function calc_planes_angle
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def calc_planes_angle(a1, b1, c1, a2, b2, c2, aunit='radians'):
Remove this commented out code. Open
Open
# rmsds[:, ii] = R.rmsd[:, 2][self._fslicer]
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"