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

Commit

Permalink
Remove assert statement from non-test files (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] committed Oct 19, 2021
1 parent 9e02ab3 commit 2157cf9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ifpd2/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@ def select_probe_from_pair(probeA, probeB):
@staticmethod
def import_probes(ipath):
# Imports output from given directory path
assert os.path.isdir(ipath)
if not os.path.isdir(ipath):
raise AssertionError

pPath = os.path.join(ipath, "probe_paths.tsv")
if not os.path.isfile(pPath):
Expand All @@ -603,7 +604,8 @@ def import_probes(ipath):
@staticmethod
def export_probes(probe_list, opath):
# Exports a list of probes to a directory
assert os.path.isdir(opath)
if not os.path.isdir(opath):
raise AssertionError

probe_df = pd.concat([p.featDF for p in probe_list], ignore_index=True)
probe_df.sort_values("start", inplace=True)
Expand Down

0 comments on commit 2157cf9

Please sign in to comment.