JHao2830 commited on
Commit
65b5434
·
1 Parent(s): 47efa97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,7 +88,7 @@ class SingleDataset(Dataset):
88
  # label = label.view(1,1)
89
 
90
  return features, label
91
-
92
 
93
  def test(use_default, csv_path, pos):
94
 
@@ -120,7 +120,7 @@ def test(use_default, csv_path, pos):
120
  min_val, max_val = pickle.load(f)
121
 
122
 
123
- global max_cycle_index
124
  test_data = pd.read_csv(csv_path)
125
  max_cycle_index = test_data['Cycle_Index'].max()
126
  test_data['SOH'] = test_data['cycle capacity'] / test_data['cycle capacity'].values[0]
 
88
  # label = label.view(1,1)
89
 
90
  return features, label
91
+ global max_cycle_index
92
 
93
  def test(use_default, csv_path, pos):
94
 
 
120
  min_val, max_val = pickle.load(f)
121
 
122
 
123
+
124
  test_data = pd.read_csv(csv_path)
125
  max_cycle_index = test_data['Cycle_Index'].max()
126
  test_data['SOH'] = test_data['cycle capacity'] / test_data['cycle capacity'].values[0]