1010
1111
1212URLS = [
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