Skip to content

Commit 701a26f

Browse files
committed
Changes need for GUI update
1 parent 0c23104 commit 701a26f

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

swolfpy_inputdata/CommonData.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,37 @@
1010

1111

1212
class CommonData(InputData):
13+
# Recycling products index
14+
Reprocessing_Index = ['Al', 'Fe',
15+
'OCC', 'Mixed_Paper', 'ONP', 'OFF', 'Fiber_Other',
16+
'Brown_glass', 'Clear_glass', 'Green_glass', 'Mixed_Glass',
17+
'PET', 'HDPE_P', 'HDPE_T', 'LDPE_Film']
18+
19+
# Collection products index
20+
Collection_Index = ['RWC', 'SSR', 'DSR', 'MSR', 'LV', 'SSYW', 'SSO',
21+
'SSO_HC', 'ORG', 'DryRes', 'REC', 'WetRes',
22+
'MRDO', 'SSYWDO', 'MSRDO']
23+
24+
# Waste products index
25+
Waste_Pr_Index = ['Bottom_Ash', 'Fly_Ash', 'Unreacted_Ash', 'Separated_Organics',
26+
'Other_Residual', 'Separated_Recyclables', 'RDF']
27+
28+
# all waste_pr_index
29+
All_Waste_Pr_Index = (Waste_Pr_Index
30+
+ Collection_Index
31+
+ Reprocessing_Index)
32+
33+
# Materials
34+
Index = ['Yard_Trimmings_Leaves', 'Yard_Trimmings_Grass', 'Yard_Trimmings_Branches', 'Food_Waste_Vegetable',
35+
'Food_Waste_Non_Vegetable', 'Wood', 'Wood_Other', 'Textiles', 'Rubber_Leather', 'Newsprint',
36+
'Corr_Cardboard', 'Office_Paper', 'Magazines', 'Third_Class_Mail', 'Folding_Containers', 'Paper_Bags',
37+
'Mixed_Paper', 'Paper_Non_recyclable', 'HDPE_Translucent_Containers', 'HDPE_Pigmented_Containers',
38+
'PET_Containers', 'Plastic_Other_1_Polypropylene', 'Plastic_Other_2', 'Mixed_Plastic', 'Plastic_Film',
39+
'Plastic_Non_Recyclable', 'Ferrous_Cans', 'Ferrous_Metal_Other', 'Aluminum_Cans', 'Aluminum_Foil',
40+
'Aluminum_Other', 'Ferrous_Non_recyclable', 'Al_Non_recyclable', 'Glass_Brown', 'Glass_Green',
41+
'Glass_Clear', 'Mixed_Glass', 'Glass_Non_recyclable', 'Misc_Organic', 'Misc_Inorganic', 'E_waste',
42+
'Bottom_Ash', 'Fly_Ash', 'Diapers_and_sanitary_products']
43+
1344
def __init__(self, input_data_path=None, process_name='CommonData'):
1445
if input_data_path:
1546
self.input_data_path = input_data_path
@@ -19,17 +50,6 @@ def __init__(self, input_data_path=None, process_name='CommonData'):
1950
# Initialize the superclass
2051
super().__init__(self.input_data_path, process_name)
2152

22-
### Materials
23-
self.Index = ['Yard_Trimmings_Leaves', 'Yard_Trimmings_Grass', 'Yard_Trimmings_Branches', 'Food_Waste_Vegetable',
24-
'Food_Waste_Non_Vegetable', 'Wood', 'Wood_Other', 'Textiles', 'Rubber_Leather', 'Newsprint',
25-
'Corr_Cardboard', 'Office_Paper', 'Magazines', 'Third_Class_Mail', 'Folding_Containers', 'Paper_Bags',
26-
'Mixed_Paper', 'Paper_Non_recyclable', 'HDPE_Translucent_Containers', 'HDPE_Pigmented_Containers',
27-
'PET_Containers', 'Plastic_Other_1_Polypropylene', 'Plastic_Other_2', 'Mixed_Plastic', 'Plastic_Film',
28-
'Plastic_Non_Recyclable', 'Ferrous_Cans', 'Ferrous_Metal_Other', 'Aluminum_Cans', 'Aluminum_Foil',
29-
'Aluminum_Other', 'Ferrous_Non_recyclable', 'Al_Non_recyclable', 'Glass_Brown', 'Glass_Green',
30-
'Glass_Clear', 'Mixed_Glass', 'Glass_Non_recyclable', 'Misc_Organic', 'Misc_Inorganic', 'E_waste',
31-
'Bottom_Ash', 'Fly_Ash', 'Diapers_and_sanitary_products']
32-
3353
### Read Material properties
3454
self.Material_Properties = pd.read_csv(Path(__file__).parent / "Data/Material properties.csv",
3555
index_col=0,
@@ -40,23 +60,3 @@ def __init__(self, input_data_path=None, process_name='CommonData'):
4060
index_col=0,
4161
header=0,
4262
nrows=3)
43-
44-
# Recycling products index
45-
self.Reprocessing_Index = ['Al', 'Fe',
46-
'OCC', 'Mixed_Paper', 'ONP', 'OFF', 'Fiber_Other',
47-
'Brown_glass', 'Clear_glass', 'Green_glass', 'Mixed_Glass',
48-
'PET', 'HDPE_P', 'HDPE_T', 'LDPE_Film']
49-
50-
# Collection products index
51-
self.Collection_Index = ['RWC', 'SSR', 'DSR', 'MSR', 'LV', 'SSYW', 'SSO',
52-
'SSO_HC', 'ORG', 'DryRes', 'REC', 'WetRes',
53-
'MRDO', 'SSYWDO', 'MSRDO']
54-
55-
# Waste products index
56-
self.Waste_Pr_Index = ['Bottom_Ash', 'Fly_Ash', 'Unreacted_Ash', 'Separated_Organics',
57-
'Other_Residual', 'Separated_Recyclables', 'RDF']
58-
59-
# all waste_pr_index
60-
self.All_Waste_Pr_Index = (self.Waste_Pr_Index
61-
+ self.Collection_Index
62-
+ self.Reprocessing_Index)

0 commit comments

Comments
 (0)