Skip to content

Commit ea1321f

Browse files
committed
do not overwrite files
1 parent f6071ec commit ea1321f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/perplex/create_lo_res_table.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ def create_table(
138138
temperature_range_total[0] + (i_T + 1) * delta_T,
139139
]
140140
if n_splits_pressure > 1 or n_splits_temperature > 1:
141+
split_project_name = f"{project_name}_P{i_P + 1:02d}_T{i_T + 1:02d}"
141142
outfile = f"{outfile_base}_P{i_P + 1:02d}_T{i_T + 1:02d}.dat"
142143
else:
144+
split_project_name = project_name
143145
outfile = f"{outfile_base}.dat"
144146

145147
print(
@@ -148,7 +150,7 @@ def create_table(
148150
# Create the table for the current split
149151
create_table(
150152
perplex_bindir,
151-
project_name,
153+
split_project_name,
152154
database,
153155
perplex_option_file,
154156
composition,

0 commit comments

Comments
 (0)