Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
saketkc committed Sep 16, 2023
1 parent bec2509 commit 5bfd190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pysradb/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,8 @@ def search(self):
try:
root = Et.fromstring(r.text)
uids_from_geo = [
elem.text for elem in root.findall(".//LinkSet/LinkSetDb/Link/Id")
elem.text
for elem in root.findall(".//LinkSet/LinkSetDb/Link/Id")
]
except (Et.ParseError, TypeError, ValueError):

Check warning on line 1699 in pysradb/search.py

View check run for this annotation

Codecov / codecov/patch

pysradb/search.py#L1699

Added line #L1699 was not covered by tests
uids_from_geo = []
Expand Down
2 changes: 1 addition & 1 deletion tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ def test_geo_search_1():
instance.search()
df = instance.get_df()
assert not df.empty

experiment_accessions = instance.get_df()["experiment_accession"].to_list()
assert len(experiment_accessions) > 10
# with open("./tests/data/test_search/geo_search_test1.txt", "r") as f:
Expand Down

0 comments on commit 5bfd190

Please sign in to comment.