Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7004a14

Browse files
committedNov 22, 2024·
MAINT: Adapt to numbering of heterogeneous labels.
1 parent 93430d0 commit 7004a14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/darsia/presets/analysis/multichromatictracer.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,8 @@ def calibrate(self, colors, concentrations) -> None:
163163
concentrations (list): list of concentrations
164164
165165
"""
166-
for i, _ in enumerate(darsia.Masks(self.labels)):
167-
168-
self.model[0][i].update(supports=colors[i], values=concentrations[i])
166+
for i, (_, label) in enumerate(darsia.Masks(self.labels, return_label=True)):
167+
self.model[0][label].update(supports=colors[i], values=concentrations[i])
169168

170169
def calibrate_from_image(
171170
self,

0 commit comments

Comments
 (0)
Please sign in to comment.