Skip to content

Commit 3e9b6a4

Browse files
author
Sarah Wagner
committed
Merge branch 'main' into dependabot/github_actions/actions-7921bc0373
dependabot manual merge
2 parents fd5108e + 52f80ef commit 3e9b6a4

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: "v5.0.0"
3+
rev: "v6.0.0"
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
@@ -16,7 +16,7 @@ repos:
1616
- id: trailing-whitespace
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: "v0.12.5"
19+
rev: "v0.12.9"
2020
hooks:
2121
# id: ruff-check would go here if using both
2222
- id: ruff-format

src/lightcurves/LC.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def plot_lc(
509509
axtop.set_xbound(ax.get_xbound())
510510
axtop.set_xlim(ax.get_xlim())
511511
format_labels = astropy.time.Time(
512-
list(t for t in ax.get_xticks()), format=self.time_format
512+
list(ax.get_xticks()), format=self.time_format
513513
)
514514
if new_time_format == "isot":
515515
new_labels = [
@@ -785,9 +785,8 @@ def get_bblocks_above(
785785
self.block_val > threshold, self.block_val, threshold
786786
)
787787
except AttributeError:
788-
raise AttributeError(
789-
"Initialize Bayesian blocks with lc.get_bblocks() first!"
790-
)
788+
msg = "Initialize Bayesian blocks with lc.get_bblocks() first!"
789+
raise AttributeError(msg) from err
791790

792791
# Merge neighbouring threshold blocks and delete edges
793792
block_mask = np.ones(len(self.block_val), dtype=bool)
@@ -858,9 +857,8 @@ def plot_bblocks(
858857
**kwargs,
859858
)
860859
except AttributeError:
861-
raise AttributeError(
862-
"Initialize Bayesian blocks with .get_bblocks() first!"
863-
)
860+
msg = "Initialize Bayesian blocks with .get_bblocks() first!"
861+
raise AttributeError(msg) from err
864862

865863
# -------------------------------------------------------------------------
866864
def bb_i(self, t: float):
File renamed without changes.

0 commit comments

Comments
 (0)