Skip to content

Commit a7abd08

Browse files
committed
Use Uniform Quotation Types
1 parent 5685ac8 commit a7abd08

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

depletion/endfb71/generate_endf71_chain.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111

1212
URLS = [
13-
'https://www.nndc.bnl.gov/endf-b7.1/zips/ENDF-B-VII.1-neutrons.zip',
14-
'https://www.nndc.bnl.gov/endf-b7.1/zips/ENDF-B-VII.1-decay.zip',
15-
'https://www.nndc.bnl.gov/endf-b7.1/zips/ENDF-B-VII.1-nfy.zip'
13+
"https://www.nndc.bnl.gov/endf-b7.1/zips/ENDF-B-VII.1-neutrons.zip",
14+
"https://www.nndc.bnl.gov/endf-b7.1/zips/ENDF-B-VII.1-decay.zip",
15+
"https://www.nndc.bnl.gov/endf-b7.1/zips/ENDF-B-VII.1-nfy.zip"
1616
]
1717

1818
def main():
@@ -24,8 +24,8 @@ def main():
2424
else:
2525
for url in URLS:
2626
basename = download(url)
27-
with ZipFile(basename, 'r') as zf:
28-
print('Extracting {}...'.format(basename))
27+
with ZipFile(basename, "r") as zf:
28+
print("Extracting {}...".format(basename))
2929
zf.extractall()
3030
endf_dir = Path(".")
3131

@@ -44,8 +44,8 @@ def main():
4444
raise IOError("No {} endf files found in {}".format(ftype, endf_dir))
4545

4646
chain = openmc.deplete.Chain.from_endf(decay_files, nfy_files, neutron_files)
47-
chain.export_to_xml('chain_endfb71.xml')
47+
chain.export_to_xml("chain_endfb71.xml")
4848

4949

50-
if __name__ == '__main__':
50+
if __name__ == "__main__":
5151
main()

depletion/endfb80/generate_endf80_chain.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111

1212
URLS = [
13-
'https://www.nndc.bnl.gov/endf-b8.0/zips/ENDF-B-VIII.0_neutrons.zip',
14-
'https://www.nndc.bnl.gov/endf-b8.0/zips/ENDF-B-VIII.0_decay.zip',
15-
'https://www.nndc.bnl.gov/endf-b8.0/zips/ENDF-B-VIII.0_nfy.zip'
13+
"https://www.nndc.bnl.gov/endf-b8.0/zips/ENDF-B-VIII.0_neutrons.zip",
14+
"https://www.nndc.bnl.gov/endf-b8.0/zips/ENDF-B-VIII.0_decay.zip",
15+
"https://www.nndc.bnl.gov/endf-b8.0/zips/ENDF-B-VIII.0_nfy.zip"
1616
]
1717

1818

@@ -25,11 +25,11 @@ def main():
2525
else:
2626
for url in URLS:
2727
basename = download(url)
28-
with ZipFile(basename, 'r') as zf:
29-
print('Extracting {}...'.format(basename))
28+
with ZipFile(basename, "r") as zf:
29+
print("Extracting {}...".format(basename))
3030
zf.extractall()
31-
os.rename(str(basename).split('.zip')[0],
32-
str(basename).split('.zip')[0].split('_')[1])
31+
os.rename(str(basename).split(".zip")[0],
32+
str(basename).split(".zip")[0].split("_")[1])
3333
endf_dir = Path(".")
3434

3535
decay_files = list((endf_dir / "decay").glob("*endf"))
@@ -43,8 +43,8 @@ def main():
4343
raise IOError("No {} endf files found in {}".format(ftype, endf_dir))
4444

4545
chain = openmc.deplete.Chain.from_endf(decay_files, nfy_files, neutron_files)
46-
chain.export_to_xml('chain_endfb80.xml')
46+
chain.export_to_xml("chain_endfb80.xml")
4747

4848

49-
if __name__ == '__main__':
49+
if __name__ == "__main__":
5050
main()

0 commit comments

Comments
 (0)