Skip to content

Commit e409aec

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 525b34c commit e409aec

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

backend/proteins/util/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def spectra_fig(
459459
if not xlim:
460460
xlim = (min([s.min_wave for s in spectra]), max([s.max_wave for s in spectra]))
461461
for spec in spectra:
462-
color = colr if colr else spec.color()
462+
color = colr or spec.color()
463463
if fill:
464464
alpha = 0.5 if not alph else float(alph)
465465
ax.fill_between(

packages/spectra/src/Components/EfficiencyTable.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ const EfficiencyTable = ({ initialTranspose }) => {
190190
const handleExportCSV = () => {
191191
const csvContent = [
192192
// Header row
193-
columns
194-
.map((col) => col.header)
195-
.join(","),
193+
columns.map((col) => col.header).join(","),
196194
// Data rows
197195
...sortedRows.map((row) => columns.map((col) => row[col.accessorKey] || "").join(",")),
198196
].join("\n")

0 commit comments

Comments
 (0)