Skip to content

Commit ad1229e

Browse files
authored
Fix erroneous bitwise comparison in petab.visualize.DataProvider (#68)
* Fix erroneous bitwise comparison in petab.visualize.DataProvider * Update petab/visualize/plotting.py
1 parent 9f9ce94 commit ad1229e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

petab/visualize/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def get_data_series(self, data_df: pd.DataFrame, data_col: str,
476476
measurements_to_plot.at[var_cond_id, 'sd'] = np.std(
477477
data_measurements)
478478

479-
if provided_noise & sum(subset):
479+
if provided_noise and np.any(subset):
480480
if len(single_m_data.loc[
481481
subset, NOISE_PARAMETERS].unique()) > 1:
482482
raise NotImplementedError(

0 commit comments

Comments
 (0)