Skip to content

Commit

Permalink
Add import statements for Message and MessagesList
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Dec 31, 2023
1 parent 88b8895 commit 72128fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sparkles/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from sparkles import checks
from sparkles.aca_checks_table import ACAChecksTable
from sparkles.messages import Message, MessagesList
from sparkles.roll_optimize import RollOptimizeMixin

CACHE = {}
Expand Down Expand Up @@ -556,7 +557,7 @@ def get_summary_text(acas):
)

# Warnings
for category in reversed(checks.MessagesList.categories):
for category in reversed(MessagesList.categories):
msgs = aca.messages == category
if msgs:
text = stylize(f" {category.capitalize()}: {len(msgs)}", category)
Expand Down Expand Up @@ -773,7 +774,7 @@ def make_roll_options_report(self):
msgs_summaries = []
for aca in acas:
texts = []
for category in reversed(checks.MessagesList.categories):
for category in reversed(MessagesList.categories):
msgs = aca.messages == category
if msgs:
text = stylize(f"{category.capitalize()}: {len(msgs)}", category)
Expand Down Expand Up @@ -1034,7 +1035,7 @@ def from_ocat(cls, obsid, t_ccd=-5, man_angle=5, date=None, roll=None, **kwargs)

def check_catalog(acar: ACAChecksTable) -> None:
"""Perform all star catalog checks."""
msgs: list[checks.Message] = []
msgs: list[Message] = []
for entry in acar:
entry_type = entry["type"]
is_guide = entry_type in ("BOT", "GUI")
Expand Down

0 comments on commit 72128fb

Please sign in to comment.