Mercurial > repos > bimib > cobraxy
changeset 479:a036b8d3642f draft
Uploaded
author | luca_milaz |
---|---|
date | Mon, 22 Sep 2025 16:21:14 +0000 |
parents | 78b28b2ee1f0 |
children | ecaf3c9852b3 |
files | COBRAxy/flux_simulation_beta.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/flux_simulation_beta.py Mon Sep 22 16:10:30 2025 +0000 +++ b/COBRAxy/flux_simulation_beta.py Mon Sep 22 16:21:14 2025 +0000 @@ -203,7 +203,7 @@ # Save as numpy array (more memory efficient) batch_filename = f"{ARGS.output_path}/{model_name}_{i}_OPTGP.npy" - np.save(batch_filename, samples.values) + np.save(batch_filename, samples.to_numpy()) seed += 1 @@ -282,7 +282,7 @@ # Save as numpy array (more memory efficient) batch_filename = f"{ARGS.output_path}/{model_name}_{i}_CBS.npy" utils.logWarning(batch_filename, ARGS.out_log) - np.save(batch_filename, samples.values) + np.save(batch_filename, samples.to_numpy()) # Merge all batches into a single DataFrame all_samples = []