Skip to content

Commit

Permalink
Fun never ends
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Nov 6, 2024
1 parent 5f49591 commit 154c92e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions kadi/commands/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def set_transitions(cls, transitions_list: list[Transition], cmds, start, stop):
attrs = [attrs]

for cmd in state_cmds:
transitions_list.append(Transition(cmd["date"], zip(attrs, vals)))
transitions_list.append(Transition(cmd["date"], zip(attrs, vals))) # noqa: PERF401


class ParamTransition(BaseTransition):
Expand Down Expand Up @@ -878,7 +878,7 @@ def set_transitions(cls, transitions_list: list[Transition], cmds, start, stop):
state_cmds = cls.get_state_changing_commands(cmds)

for cmd in state_cmds:
transitions_list.append(
transitions_list.append( # noqa: PERF401
Transition(cmd["date"], sun_pos_mon=TransitionCallback(cls.callback))
)

Expand Down Expand Up @@ -933,7 +933,7 @@ def set_transitions(cls, transitions_list: list[Transition], cmds, start, stop):
state_cmds = cls.get_state_changing_commands(cmds)

for cmd in state_cmds:
transitions_list.append(
transitions_list.append( # noqa: PERF401
Transition(
cmd["date"], eclipse_enable_spm=TransitionCallback(cls.callback)
)
Expand Down Expand Up @@ -990,7 +990,7 @@ def set_transitions(cls, transitions_list: list[Transition], cmds, start, stop):
state_cmds = cls.get_state_changing_commands(cmds)

for cmd in state_cmds:
transitions_list.append(
transitions_list.append( # noqa: PERF401
Transition(cmd["date"], battery_connect=cmd["date"])
)

Expand Down Expand Up @@ -1171,7 +1171,7 @@ def set_transitions(cls, transitions_list: list[Transition], cmds, start, stop):
# Now with the dates, finally make all the transition dicts which will
# call `update_pitch_state` during state processing.
for date in dates:
transitions_list.append(
transitions_list.append( # noqa: PERF401
Transition(
date,
update_sun_vector=TransitionCallback(cls.update_sun_vector_state),
Expand Down Expand Up @@ -1365,7 +1365,7 @@ def set_transitions(cls, transitions_list: list[Transition], cmds, start, stop):
state_cmds = cls.get_state_changing_commands(cmds)

for cmd in state_cmds:
transitions_list.append(
transitions_list.append( # noqa: PERF401
Transition(
cmd["date"], maneuver_transition=TransitionCallback(cls.callback)
)
Expand Down Expand Up @@ -1561,7 +1561,7 @@ def set_transitions(cls, transitions_list: list[Transition], cmds, start, stop):
state_cmds = cls.get_state_changing_commands(cmds)

for cmd in state_cmds:
transitions_list.append(
transitions_list.append( # noqa: PERF401
Transition(
cmd["date"],
maneuver_transition=TransitionCallback(
Expand Down Expand Up @@ -1611,7 +1611,7 @@ def set_transitions(cls, transitions_list: list[Transition], cmds, start, stop):
state_cmds = cls.get_state_changing_commands(cmds)

for cmd in state_cmds:
transitions_list.append(
transitions_list.append( # noqa: PERF401
Transition(
cmd["date"],
maneuver_transition=TransitionCallback(
Expand Down
2 changes: 1 addition & 1 deletion validate/states-regression/states-regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"metadata": {},
"outputs": [],
"source": [
"git_branch = subprocess.getoutput([\"git branch --show-current\"])\n"
"git_branch = subprocess.getoutput([\"git branch --show-current\"])"
]
},
{
Expand Down

0 comments on commit 154c92e

Please sign in to comment.