mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-22 06:07:31 +02:00
Stopped script from crashing if area is not included in the model dataset
This commit is contained in:
@@ -42,8 +42,11 @@ def get_data(file_name):
|
||||
feature_names = row[0].split(',')
|
||||
input_list = [[] for _ in range(len(feature_names)-removed_items)]
|
||||
scaled_list = [[] for _ in range(len(feature_names)-removed_items)]
|
||||
# Save to remove area
|
||||
area_ind = feature_names.index('area')
|
||||
try:
|
||||
# Save to remove area
|
||||
area_ind = feature_names.index('area')
|
||||
except ValueError:
|
||||
area_ind = -1
|
||||
|
||||
try:
|
||||
process_ind = feature_names.index('process')
|
||||
|
||||
Reference in New Issue
Block a user