Skip to content

Commit f42be17

Browse files
committed
fix nd=2 mode
1 parent 6e44217 commit f42be17

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

navicat_mikimo/km_volcanic.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,14 +1265,6 @@ def main():
12651265
combinations = list(itertools.product(range(len(xint)), range(len(yint))))
12661266
num_chunks = total_combinations // ncore + (total_combinations % ncore > 0)
12671267

1268-
initial_conc = np.array([])
1269-
last_row_index = df_network.index[-1]
1270-
if isinstance(last_row_index, str):
1271-
if last_row_index.lower() in ["initial_conc", "c0", "initial conc"]:
1272-
initial_conc = df_network.iloc[-1:].to_numpy()[0]
1273-
df_network = df_network.drop(df_network.index[-1])
1274-
rxn_network_all = df_network.to_numpy()[:, :]
1275-
12761268
# MKM
12771269
for chunk_index in tqdm(range(num_chunks)):
12781270
start_index = chunk_index * ncore
@@ -1284,9 +1276,10 @@ def main():
12841276
coord,
12851277
grids,
12861278
n_target,
1279+
temperature,
12871280
t_span,
1288-
rxn_network_all,
1289-
initial_conc,
1281+
df_network,
1282+
tags,
12901283
states,
12911284
report_as_yield,
12921285
quality,

0 commit comments

Comments
 (0)