Skip to content

Commit

Permalink
style(gui): ruff lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jul 8, 2024
1 parent a1c360e commit 09714d6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions gui/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
from data import generate_data, read_csv
from plots import plot_predictions

EMPTY_DF = lambda: pd.DataFrame(
{
"Equation": [],
"Loss": [],
"Complexity": [],
}
)

def empty_df():
return pd.DataFrame(
{
"Equation": [],
"Loss": [],
"Complexity": [],
}
)


def pysr_fit(queue: mp.Queue, out_queue: mp.Queue):
Expand Down Expand Up @@ -138,7 +140,7 @@ def processing(
try:
X, y = read_csv(file_input, force_run)
except ValueError as e:
return (EMPTY_DF(), plot_predictions([], []), str(e))
return (empty_df(), plot_predictions([], []), str(e))
else:
X, y = generate_data(test_equation, num_points, noise_level, data_seed)

Expand Down

0 comments on commit 09714d6

Please sign in to comment.