Skip to content

Commit

Permalink
fix for petab tests 10 and 17?
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Sep 23, 2024
1 parent 74fa0a1 commit 06f9e40
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python/parpe/hdf5_pe_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,15 @@ def _set_initial_concentration(condition_id, species_id,

if condition_map_preeq:
fixed_parameter_matrix[:,
self.condition_map[condition_idx, 0]] = \
np.array([condition_map_preeq_fix[par_id]
self.condition_map[condition_idx, 0]] = (
# the parameter might not be present if it is only used
# in the simulation condition. any value should be fine
# in this case. only NaN is problematic, because it will
# propagate through multiplication with the indicator
# variable.
np.array([condition_map_preeq_fix.get(par_id, 0.0)
for par_id in fixed_par_ids])
)

# write to file
self.create_fixed_parameter_dataset_and_write_attributes(
Expand Down

0 comments on commit 06f9e40

Please sign in to comment.