Skip to content

Commit

Permalink
Rename readlevel() to _readlevel(). Closes #230.
Browse files Browse the repository at this point in the history
  • Loading branch information
polyatail committed Mar 26, 2019
1 parent f1a00af commit 632bbf3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion onecodex/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def classifications(ctx, classifications, results, readlevel, readlevel_path):
log.error('Could not find classification {} (404 status code)'
.format(classifications[0]))
return
tsv_url = classification.readlevel()['url']
tsv_url = classification._readlevel()['url']
log.info("Downloading tsv data from: {}".format(tsv_url))
download_file_helper(tsv_url, readlevel_path)

Expand Down
2 changes: 1 addition & 1 deletion onecodex/models/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def results(self, json=True):
else:
return self._table()

def readlevel(self):
def _readlevel(self):
return self._resource.readlevel()

def _table(self):
Expand Down
2 changes: 1 addition & 1 deletion onecodex/scripts/subset_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def cli(ctx, classification_id, fastx, reverse, tax_ids, with_children,
tax_ids = set(tax_ids)

# pull the classification result TSV
tsv_url = classification.readlevel()['url']
tsv_url = classification._readlevel()['url']
readlevel_path = get_download_dest('./', tsv_url)
if not os.path.exists(readlevel_path):
download_file_helper(tsv_url, './')
Expand Down

0 comments on commit 632bbf3

Please sign in to comment.