Skip to content

Commit

Permalink
Linter fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
calina-c committed Apr 30, 2024
1 parent cec3544 commit 723ecf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pdr_dash_plots/callbacks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from dash import Input, Output, State
import time

from dash import Input, Output, State

from pdr_backend.sim.sim_plotter import SimPlotter
from pdr_dash_plots.util import get_figures_by_state, get_latest_run_id
from pdr_dash_plots.view_elements import (
Expand All @@ -14,7 +15,7 @@


def wait_for_state(sim_plotter, run_id, set_ts):
for i in range(5):
for _ in range(5):
try:
st, ts = sim_plotter.load_state(run_id, set_ts)
return st, ts
Expand Down
3 changes: 1 addition & 2 deletions pdr_dash_plots/view_elements.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from datetime import datetime
from dash import dcc, html
from plotly.graph_objs import Figure

Expand Down Expand Up @@ -106,8 +107,6 @@ def arrange_figures(figures):


def format_ts(s):
from datetime import datetime

base = s.replace("_", "")[:-4]
return datetime.strptime(base, "%Y%m%d%H%M%S").strftime("%H:%M:%S")

Expand Down

0 comments on commit 723ecf8

Please sign in to comment.