Skip to content

Commit

Permalink
MAINT: Adapt to numbering of heterogeneous labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwboth committed Nov 22, 2024
1 parent cb3811f commit 41f0584
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/darsia/presets/analysis/multichromatictracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ def calibrate(self, colors, concentrations) -> None:
concentrations (list): list of concentrations
"""
for i, _ in enumerate(darsia.Masks(self.labels)):

self.model[0][i].update(supports=colors[i], values=concentrations[i])
for i, (_, label) in enumerate(darsia.Masks(self.labels, return_label=True)):
self.model[0][label].update(supports=colors[i], values=concentrations[i])

def calibrate_from_image(
self,
Expand Down

0 comments on commit 41f0584

Please sign in to comment.