Skip to content

Commit e63737b

Browse files
committed
small update
1 parent ec92d8c commit e63737b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/amuse/community/mesa_r15140/download.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def src_directory(self):
2626
return os.path.join(self.directory(), 'src')
2727

2828
def unpack_downloaded_file(self, filename):
29-
print("unpacking", filename)
29+
print(f"unpacking {filename}")
3030
if self.unpack:
3131
if self.zip:
3232
arguments = ['unzip']
3333
else:
34-
arguments = ['tar','xvf']
34+
arguments = ['tar', 'xvf']
3535
arguments.append(filename)
3636
subprocess.call(
3737
arguments,
@@ -48,7 +48,7 @@ def start(self):
4848
url = self.url_template.format(version=self.version)
4949
filename = self.filename_template.format(version=self.version)
5050
filepath = os.path.join(self.src_directory(), filename)
51-
print("downloading version", self.version, "from", url, "to", filename)
51+
print(f"downloading version {self.version} from {url} to {filename}")
5252
urllib.request.urlretrieve(url, filepath)
5353
print("downloading finished")
5454
self.unpack_downloaded_file(filename)
@@ -71,32 +71,32 @@ def get_crlibm():
7171
instance.url_template = 'http://www.astro.wisc.edu/~townsend/resource/download/sdk2/src/crlibm-{version}.tar.gz'
7272
instance.filename_template='crlibm-{version}.tar.gz'
7373
instance.version = '1.0beta4'
74-
instance.zip=False
74+
instance.zip = False
7575
instance.start()
7676

7777
def get_fpx3deps():
7878
instance = GetCodeFromHttp()
7979
instance.url_template = 'https://raw.githubusercontent.com/rhdtownsend/sdk2/master/profile/common/fpx3/fpx3_deps'
8080
instance.filename_template='fpx3_deps'
8181
instance.version = ''
82-
instance.zip=False
83-
instance.unpack=False
82+
instance.zip = False
83+
instance.unpack = False
8484
instance.start()
8585

8686
def get_fpx3():
8787
instance = GetCodeFromHttp()
8888
instance.url_template = 'http://www.astro.wisc.edu/~townsend/resource/download/sdk2/src/fpx3.tar.gz'
8989
instance.filename_template='fpx3.tar.gz'
9090
instance.version = ''
91-
instance.zip=False
91+
instance.zip = False
9292
instance.start()
9393

9494
def get_lapack95():
9595
instance = GetCodeFromHttp()
9696
instance.url_template = 'http://www.astro.wisc.edu/~townsend/resource/download/sdk2/src/lapack95.tgz'
9797
instance.filename_template='lapack95.tar.gz'
9898
instance.version = ''
99-
instance.zip=False
99+
instance.zip = False
100100
instance.start()
101101

102102
def get_mesa():
@@ -107,15 +107,15 @@ def get_mesa():
107107
else:
108108
instance.url_template = "https://zenodo.org/record/4311514/files/mesa-r{version}.zip"
109109

110-
instance.version='15140'
110+
instance.version = '15140'
111111
instance.start()
112112

113113
def get_hdf5():
114114
instance = GetCodeFromHttp()
115115
instance.url_template = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-{version}/src/hdf5-{version}.tar.bz2"
116116
instance.filename_template='hdf-{version}.tar.bz2'
117117
instance.version = '1.12.0'
118-
instance.zip=False
118+
instance.zip = False
119119
instance.start()
120120

121121

0 commit comments

Comments
 (0)