diff options
author | Frederick Muriuki Muriithi | 2022-02-03 03:30:52 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-02-08 10:12:27 +0300 |
commit | 5ca7e792083f25b487890f9f38ae57bd3f9c29c4 (patch) | |
tree | a2058667d892c7d0acc34e77d9b2250d9e180cb2 /gn3/computations/rqtl.py | |
parent | 834821b086d6a963b60bddb4bf41aee94af5f0db (diff) | |
download | genenetwork3-5ca7e792083f25b487890f9f38ae57bd3f9c29c4.tar.gz |
Remove unnecessary computation
In Python3 when slicing,
seq[:min(some_val, len(seq))] == seq[:some_val]
because Python3 will just return a copy of the entire sequence if `some_val`
happens to be larger/greater than the length of the sequence.
This commit removes the unnecessary call to `min()`
Diffstat (limited to 'gn3/computations/rqtl.py')
0 files changed, 0 insertions, 0 deletions