Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2024
1 parent 3c2f0f2 commit 5fd3b36
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions fluorescence_assay/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,13 @@ def plot_corrected_spectrum(
color: Optional[tuple] = (0, 0, 0),
label: Optional[str] = None,
) -> None:

foreground = np.array(list(self._plate_read.get_well(section, well_foreground, cycle).values()))
background = np.array(list(self._plate_read.get_well(section, well_background, cycle).values()))

foreground = np.array(
list(self._plate_read.get_well(section, well_foreground, cycle).values())
)
background = np.array(
list(self._plate_read.get_well(section, well_background, cycle).values())
)

difference = foreground - background

Expand All @@ -118,16 +122,20 @@ def plot_dose_response(
color: Optional[tuple] = (0, 0, 0),
label: Optional[str] = None,
) -> None:

differences = []

for i in range(len(concentrations)):

foreground = self._plate_read.get_well(section, f"{row_foreground}{i+1}", cycle)[wavelength]
background = self._plate_read.get_well(section, f"{row_background}{i+1}", cycle)[wavelength]
foreground = self._plate_read.get_well(
section, f"{row_foreground}{i+1}", cycle
)[wavelength]
background = self._plate_read.get_well(
section, f"{row_background}{i+1}", cycle
)[wavelength]

difference = foreground - background

differences.append(difference)

axes.plot(concentrations, differences, ".", color=color, label=label)
axes.plot(concentrations, differences, ".", color=color, label=label)

0 comments on commit 5fd3b36

Please sign in to comment.