File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 11repos :
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
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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments