Skip to content

Commit d895b29

Browse files
author
Xing Han Lu
authored
Merge pull request #608 from plotly/update-turbine-maintenance
Update Turbine Maintenance app from original repo Former-commit-id: bf5d924
2 parents 34ad345 + 53f40eb commit d895b29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/dash-turbine-maintenance/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def update_graph(selected_column, start_date, end_date, n_get_new_info, n_pred):
831831
y_pred = model.predict(x_test)
832832
df_out = pd.DataFrame()
833833
df_out["pred"] = y_pred
834-
value_rul = int(max(df_out["pred"]))
834+
value_rul = round(max(df_out["pred"]))
835835
information_update = "RUL is estimated based on the readings from the last week: " "from " + str(
836836
x_test.index[0]
837837
) + " to " + str(

apps/dash-turbine-maintenance/data_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def data_preprocessing():
9393
if i in list(df):
9494
df_trimmed.drop(i, axis=1, inplace=True)
9595

96-
df_trimmed = df_trimmed.head(38140)
96+
df_trimmed = df_trimmed.head(39298)
9797
df_trimmed.set_index("Time", inplace=True)
9898

9999
df = df_trimmed.copy()

0 commit comments

Comments
 (0)