You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/CEC Module and Inverter Libraries/CEC Modules/CEC Modules 2024-11-14/Bad Modules 2024-Nov-15_09-53.csv
Copy file name to clipboardExpand all lines: samples/CEC Module and Inverter Libraries/CEC Modules/CEC Modules 2024-11-14/CEC Modules 2024-Nov-15_09-53.csv
Copy file name to clipboardExpand all lines: samples/CEC Module and Inverter Libraries/CEC Modules/CEC Modules 2024-11-14/PV_Module_List_Full_Data_ADA-2024-11-12.csv
Copy file name to clipboardExpand all lines: samples/CEC Module and Inverter Libraries/CEC Modules/CEC Modules 2024-11-14/cec_modules_test_2024-9-11_2024-Nov-16.csv
Copy file name to clipboardExpand all lines: samples/CEC Module and Inverter Libraries/CEC Modules/readme.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ This document explains how to build the SAM CEC module library file from the CEC
12
12
13
13
2. Go to https://solarequipment.energy.ca.gov/Home/PVModuleList and click the **Download Excel file** link to the working folder.
14
14
15
-
3. Change the Excel file name with the last CEC update date in the file name `PV_Module_List_Full_Data_ADA-yyyy-m-d.xlsx`.
15
+
3. Change the Excel file name with the last CEC update date (from Row 2 in the workbook) in the file name `PV_Module_List_Full_Data_ADA-yyyy-m-d.xlsx`.
16
16
17
17
### Step 2: Manually process CEC xlsx file
18
18
@@ -30,29 +30,37 @@ This step could be automated in Excel, but this process is a good excuse to do a
30
30
31
31
5. Delete soft line breaks LF `\n` in header rows so that there is one header row that begins with "Manufacturer" and ends with "Last Update." Show hidden characters in text editor to find single LF in first row. (Note remaining lines use CRLF.) (This step is new after CEC added in-cell linebreaks to some header cells after 3/1/2019.)
32
32
33
-
5. Search and replace LF followed by comma `\n,` with nothing to remove soft line breaks from columns (assumes Windows CRLF line endings).
33
+
5. Search and replace LF followed by comma `\n,` with nothing to remove soft line breaks from columns (assumes Windows CRLF line endings). Repeat until all instances are found.
34
+
35
+
6. Search and replace comma followed by LF `,\n` with nothing to remove soft line breaks from columns (assumes Windows CRLF line endings). Repeat until all instances are found.
36
+
37
+
6. Search and replace space followed by LF ` \n` with comma `,` to fix some Excel cells with empty line in cell (see Trina modules).
38
+
39
+
6. Search and replace space followed by comma space ` ,` with comma `,`.
40
+
41
+
6. Search and replace comma followed by space `, ` with comma `,`.
34
42
35
43
5. Search and replace Greek characters in column headings row: alpha, beta, gamma. For example, replace βVoc with betaVoc. Should be one instance of gamma, and two instances each of alpha and beta.
36
44
37
-
5. Use regular expression option to replace `[^\x00-\x7F]+` with empty string. This removes non-ASCII characters that cause problems in SAM UI (and may cause problems with LK reading data from file).
45
+
5. Use regular expression search option to replace `[^\x00-\x7F]+` with empty string. This removes non-ASCII characters that cause problems in SAM UI (and may cause problems with LK reading data from file).
38
46
39
-
6. Save file and close text editor.
47
+
6. Save CSV file and close text editor.
40
48
41
-
7. Open file in Excel.
49
+
7. Open CSV file in Excel.
42
50
43
51
8. Search and replace all commas `,` with nothing. (Can't do this in text editor because don't want to change column delimiters, only commas in some text fields.)
44
52
45
53
9. Delete units row, Row 2.
46
54
47
-
10. Save and close the file.
55
+
10. Save and close CSV file.
48
56
49
57
11. Open CSV file in text editor remove double quotes `"` by replacing them with nothing. (If the file is tab-delimited, replace tabs `\t` with commas `,`.)
50
58
51
-
12. Save file and close editor.
59
+
12. Save CSV file and close editor.
52
60
53
61
### Step 3: Run LK script to convert worksheet data into SAM library file
54
62
55
-
1. Start SAM and open the latest version of the Update CEC Modules script (`update_cec_modules_2020.lk` as of this writing).
63
+
1. Start SAM and open the latest version of the Update CEC Modules script (`update_cec_modules_2023.lk` as of this writing).
56
64
57
65
2. Set `version` to the SAM version you are using to run the script.
0 commit comments