Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Change methods not using its bound instance to staticmethods #79

Merged
merged 1 commit into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ifpd2/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ def reduce_probe_list(self, probe_list):
print(e)
raise

def select_probe_from_pair(self, probeA, probeB):
@staticmethod
def select_probe_from_pair(probeA, probeB):
if probeA.size < probeB.size:
return probeA
else:
Expand Down
3 changes: 2 additions & 1 deletion ifpd2/probe_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ def __init__(self, out_path):
shutil.rmtree(out_path)
os.mkdir(out_path)

def __build_probe_set_list(self, window_list, i):
@staticmethod
def __build_probe_set_list(window_list, i):
probe_set_list = [(p,) for p in window_list[i]]

for w in window_list[(i + 1) :]:
Expand Down