Skip to content

Commit

Permalink
Use same value for preeq and sim condition. Closes #300
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardSchmiester committed Nov 2, 2020
1 parent 58678d2 commit 16654ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/parpe/hdf5_pe_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,11 @@ def _set_initial_concentration(condition_id, species_id,
condition_scale_map_sim[init_par_id] = ptc.LIN

if preeq_cond_idx != NO_PREEQ_CONDITION_IDX:
value = petab.to_float_if_float(
self.petab_problem.condition_df.loc[
preeq_cond_id, species_id])
if isinstance(value, float):
condition_map_sim[init_par_id] = value
_set_initial_concentration(
preeq_cond_id, species_id, init_par_id,
condition_map_preeq,
Expand Down

0 comments on commit 16654ea

Please sign in to comment.