Skip to content

Commit d7fd94a

Browse files
authored
Merge pull request #884 from danforthcenter/update-4x
Update 4x
2 parents 6001bde + 06635cf commit d7fd94a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plantcv/utils/converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def json2csv(json_file, csv_file):
7373
row = [sample, var, obs[var]["value"][i], obs[var]["label"][i]]
7474
csv.write(",".join(map(str, meta_row + row)) + "\n")
7575
else:
76-
csv.write(",".join(map(str, meta_row + [var, "NA", "NA"])) + "\n")
76+
csv.write(",".join(map(str, meta_row + [sample, var, "NA", "NA"])) + "\n")
7777
csv.close()
7878
else:
7979
# If the file does not exist raise an error

0 commit comments

Comments
 (0)