Skip to content

Commit d28df0b

Browse files
committed
fix
1 parent cb156f3 commit d28df0b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

networks/get_naux.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

networks/update_headers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)