File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ def main():
3939 micro_path = args .microphysics_path
4040 net = args .net
4141
42- if args .net_custom_path is None :
43- base_path = Path (micro_path ) / "networks" / "net"
42+ if len (args .net_custom_path .strip ()) == 0 :
43+ # our network lives in Microphysics/networks
44+ base_path = Path (micro_path ) / "networks" / f"{ net } "
4445 else :
46+ # our network is standalone (outside of Microphysics/)
4547 base_path = Path (args .net_custom_path )
4648
4749 net_file = base_path / "pynucastro.net"
Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ def main():
2727 net = args .net
2828
2929
30- if args .net_custom_path is None :
31- base_path = Path (micro_path ) / "networks" / "net"
30+ if len (args .net_custom_path .strip ()) == 0 :
31+ # our network lives in Microphysics/networks
32+ base_path = Path (micro_path ) / "networks" / f"{ net } "
3233 else :
34+ # our network is standalone (outside of Microphysics/)
3335 base_path = Path (args .net_custom_path )
3436
3537 net_file = base_path / "pynucastro.net"
You can’t perform that action at this time.
0 commit comments