Skip to content

Commit

Permalink
fix lint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Iara Ota committed Nov 30, 2023
1 parent d3b171a commit 2028714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gwsumm/plot/segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ class SegmentBarPlot(BarPlot, SegmentDataPlot):
}

def draw(self, outputfile=None):
# Check if ylabel has been previously defined
# Check if ylabel has been previously defined
# to avoid overwriting it
if 'ylabel' in self.pargs:
set_ylabel = False

Check warning on line 1213 in gwsumm/plot/segments.py

View check run for this annotation

Codecov / codecov/patch

gwsumm/plot/segments.py#L1212-L1213

Added lines #L1212 - L1213 were not covered by tests
Expand Down Expand Up @@ -1238,7 +1238,7 @@ def draw(self, outputfile=None):
if set_ylabel:
try:
self.pargs.setdefault('ylabel',

Check warning on line 1240 in gwsumm/plot/segments.py

View check run for this annotation

Codecov / codecov/patch

gwsumm/plot/segments.py#L1238-L1240

Added lines #L1238 - L1240 were not covered by tests
f'Livetime [{self.SCALE_UNIT[scale]}]')
f'Livetime [{self.SCALE_UNIT[scale]}]')
except KeyError:
self.pargs.setdefault('ylabel', 'Livetime')

Check warning on line 1243 in gwsumm/plot/segments.py

View check run for this annotation

Codecov / codecov/patch

gwsumm/plot/segments.py#L1242-L1243

Added lines #L1242 - L1243 were not covered by tests

Expand Down

0 comments on commit 2028714

Please sign in to comment.