From 25808a7631f01ce11543d452d02c3802f9e47360 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Wed, 29 Jun 2022 16:51:56 +0800 Subject: [PATCH] 0.0.96 --- PyPI/setup.cfg | 2 +- PyPI/src/guan/__init__.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index fe8b99d..53c4dfa 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.95 +version = 0.0.96 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan/__init__.py b/PyPI/src/guan/__init__.py index d148035..76cdb78 100644 --- a/PyPI/src/guan/__init__.py +++ b/PyPI/src/guan/__init__.py @@ -2,7 +2,7 @@ # With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing. -# The current version is guan-0.0.95, updated on June 29, 2022. +# The current version is guan-0.0.96, updated on June 29, 2022. # Installation: pip install --upgrade guan @@ -2279,7 +2279,8 @@ def download_with_scihub(address=None, num=1): print('\nResponse:', r) print('Address:', r.url) soup = BeautifulSoup(r.text, features='lxml') - pdf_URL = soup.iframe['src'] + pdf_URL = soup.embed['src'] + # pdf_URL = soup.iframe['src'] # This is a code line of history version which fails to get pdf URL. if re.search(re.compile('^https:'), pdf_URL): pass else: