Skip to content

Commit 1396089

Browse files
authored
Merge pull request #11 from Bayer-Group/m-lueb-patch-1
Updated dataset.py
2 parents c8a3513 + 45948dc commit 1396089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mocca2/dataset/dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def get_concentrations(self) -> Tuple[pd.DataFrame, List[int]]:
568568
column_names.append(name)
569569
columns.append(
570570
[
571-
None if c_id not in ints else ints[c_id] * conc_factor
571+
None if c_id not in ints or ints[c_id] is None else ints[c_id] * conc_factor
572572
for ints in integrals
573573
]
574574
)
@@ -640,7 +640,7 @@ def get_relative_concentrations(self) -> Tuple[pd.DataFrame, List[int]]:
640640
column_names.append(name)
641641
columns.append(
642642
[
643-
None if c_id not in ints else ints[c_id] * conc_factor
643+
None if c_id not in ints or ints[c_id] is None else ints[c_id] * conc_factor
644644
for ints in integrals
645645
]
646646
)

0 commit comments

Comments
 (0)