# HG changeset patch # User luca_milaz # Date 1731951766 0 # Node ID 79d6d5ca91fd76b60c3981d10c72ab23c78e3f20 # Parent d717f69d460eb3373fd57d60674a2386279d09d2 Uploaded diff -r d717f69d460e -r 79d6d5ca91fd COBRAxy/flux_simulation.py --- a/COBRAxy/flux_simulation.py Mon Nov 18 17:34:52 2024 +0000 +++ b/COBRAxy/flux_simulation.py Mon Nov 18 17:42:46 2024 +0000 @@ -238,7 +238,7 @@ model_input.reactions.get_by_id(rxn_index).lower_bound = row.lower_bound model_input.reactions.get_by_id(rxn_index).upper_bound = row.upper_bound - name = cell_name.split('.')[0] + name = cell_name.rsplit('.', 1)[0] if ARGS.algorithm == 'OPTGP': OPTGP_sampler(model_input, name, ARGS.n_samples, ARGS.thinning, ARGS.n_batches, ARGS.seed)