Skip to content

Commit

Permalink
Started implementing download_manager in adhesome download
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 13, 2024
1 parent 650b9c9 commit 38f25c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pypath/inputs/adhesome.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import csv
import collections

import download_manager as dm

import pypath.share.curl as curl
import pypath.share.common as common
import pypath.resources.urls as urls
Expand All @@ -35,9 +37,14 @@ def adhesome_interactions():

url = urls.urls['adhesome']['interactions']

c = curl.Curl(url, large = True, silent = False)
dmanager = dm.DownloadManager(pkg='pypath')
desc, item, downloader, dest = dmanager._download(url)

data = csv.DictReader(c.result, delimiter = ',')
#c = curl.Curl(url, large = True, silent = False)

c = item.open(large=True)

data = csv.DictReader(c, delimiter = ',')

result = []

Expand Down

0 comments on commit 38f25c3

Please sign in to comment.