diff --git a/grblc/convert/convert.py b/grblc/convert/convert.py index 7aac25b..61236f6 100644 --- a/grblc/convert/convert.py +++ b/grblc/convert/convert.py @@ -5,7 +5,6 @@ import glob2 import numpy as np import pandas as pd -from astropy import constants as const from astropy import units as u from astropy.time import Time diff --git a/grblc/search/ads/search.py b/grblc/search/ads/search.py index ddb185d..3a91ff9 100644 --- a/grblc/search/ads/search.py +++ b/grblc/search/ads/search.py @@ -234,7 +234,7 @@ def getArticle(articlelist, article, GRB, firsttry=True, debug=False): for record in records: linktype = record["link_type"] link = record["url"] - if "PDF" in linktype and not "doi.org" in link and not "$" in link: + if "PDF" in linktype and "doi.org" not in link and "$" not in link: # switch any arxiv url to export.arxiv.org so we don't get locked out url = link.replace("arxiv.org", "export.arxiv.org") q = requests.get(url, stream=True, headers=pdf_header) @@ -245,7 +245,7 @@ def getArticle(articlelist, article, GRB, firsttry=True, debug=False): return except: linktype = deserialized["link_type"] - if "PDF" in linktype and not "doi.org" in link and not "$" in link: + if "PDF" in linktype and "doi.org" not in link and "$" not in link: # switch any arxiv url to export.arxiv.org so we don't get locked out url = deserialized["link"].replace("arxiv.org", "export.arxiv.org") q = requests.get(url, stream=True, headers=pdf_header)