Skip to content

Commit

Permalink
add warning that report timings will be retired
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Oct 30, 2023
1 parent 8e09f42 commit e81b6b4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cylc/flow/scripts/report_timings.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
import sys
from typing import TYPE_CHECKING


from cylc.flow import LOG
from cylc.flow.exceptions import CylcError
from cylc.flow.id_cli import parse_id
from cylc.flow.option_parsers import (
Expand Down Expand Up @@ -123,6 +125,8 @@ def main(parser: COP, options: 'Values', workflow_id: str) -> None:
constraint='workflows',
)

LOG.warning('Cylc report-timings is will be retired soon.')

output_options = [
options.show_raw, options.show_summary, options.html_summary
]
Expand Down Expand Up @@ -243,11 +247,6 @@ def write_category(self, buf, category, df_reshape, df_describe):
pass

def _check_imports(self):
if sys.version_info > (3, 11):
raise CylcError(
'Cylc Report Timings is deprecated: It is incompatible'
' with Python > 3.11'
)
try:
import pandas
except ImportError:
Expand Down

0 comments on commit e81b6b4

Please sign in to comment.