Skip to content

Commit bea1a08

Browse files
plakrisenkodilpath
andauthored
Update scripts/overview.py
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
1 parent 991910b commit bea1a08

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/overview.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def get_summary(
4848
petab_problem.measurement_df.columns or
4949
pd.isnull(petab_problem.measurement_df[
5050
petab.PREEQUILIBRATION_CONDITION_ID]).all()
51-
else sum([cond is not np.nan for cond in
52-
petab_problem.measurement_df[
53-
petab.PREEQUILIBRATION_CONDITION_ID].unique()]),
51+
else (pd.isnull(petab_problem.measurement_df[
52+
petab.PREEQUILIBRATION_CONDITION_ID].unique() == False
53+
).sum(),
5454
'postequilibration':
5555
petab.measurements.get_simulation_conditions(
5656
petab_problem.measurement_df[

0 commit comments

Comments
 (0)