Skip to content

Commit 822c9df

Browse files
committed
[CSV][Fixed] Copy rows instead of recycle them
1 parent d5b9ac3 commit 822c9df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kicost/edas/generic_csv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ def get_part_groups(in_file, distributors):
203203
# Get the values for the fields in each library part (if any).
204204
refs, fields, gen_cntr = extract_fields(row, header, header_file, dialect, gen_cntr)
205205
for ref in refs:
206-
accepted_components[ref] = fields
206+
fields['ref'] = ref
207+
accepted_components[ref] = fields.copy()
207208

208209
# No project information in CSVs
209210
prj_info = {'title': os.path.basename(in_file),

0 commit comments

Comments
 (0)