@@ -37,20 +37,30 @@ class CustomFormatter(
3737parser .add_argument (
3838 "-r" ,
3939 "--release" ,
40- choices = ["b7.1" , "b8.0" ],
41- default = "b8.0 " ,
40+ choices = ["b7.1" , "b8.0" , "2019" ],
41+ default = "2019 " ,
4242 help = "The nuclear data library release version. The currently supported "
4343 "options are b7.1 and b8.0." ,
4444)
45+ parser .add_argument (
46+ "-l" ,
47+ "--library" ,
48+ choices = ["endf" , "tendl" ],
49+ default = "tendl" ,
50+ help = "The nuclear data library. The currently supported options are endf and tendl" ,
51+ )
4552parser .add_argument (
4653 "-b" ,
4754 "--branching_ratios" ,
4855 choices = ["None" , "SFR" , "PWR" , "FNS" ],
4956 default = "FNS" ,
5057 help = "The nuclear data library release version. The currently supported "
51- "options are b7.1 and b8.0 with branching ratio options of None, SFR "
52- "(sodium fast reactor), PWR (pressurized water reactor) or FNS "
53- "(fusion neutron source)" ,
58+ "options are endf b7.1 and b8.0 with branching ratio options of None, "
59+ "SFR (sodium fast reactor), PWR (pressurized water reactor) or tendl "
60+ "2019 with FNS (fusion neutron source) branching ratio. The tendl "
61+ "chains are processed with neutron induced fission yields from"
62+ "ENDF/B-VIII.0. There is an option to use JEFF 3.3 if you generate"
63+ "your own chain file with the generate_tendl_chain command line tool." ,
5464)
5565
5666parser .set_defaults ()
@@ -59,11 +69,10 @@ class CustomFormatter(
5969
6070def main ():
6171
62- library_name = 'endf'
63- details = all_chain_release_details [library_name ][args .release ][args .branching_ratios ]["chain" ]
72+ details = all_chain_release_details [args .library ][args .release ][args .branching_ratios ]["chain" ]
6473
6574 if args .filename is None :
66- args .filename = Path ("-" .join (["chain" , library_name , args .release ])+ ".xml" )
75+ args .filename = Path ("-" .join (["chain" , args . library , args .release ])+ ".xml" )
6776 print (f'Using default filename { args .filename } ' )
6877
6978 download (
0 commit comments