Skip to content

YAGIRO practice

Keep both readings from columns with the same name

A kiln sheet labels two measurements Reading. Keep both by position, then see why naming the passes still leaves one row too short for row objects.

Read the kiln sheet by position

Open glaze-readings.csv. Tile A has 4 in column 2 and 5 in column 3. Both headings say Reading. A record with just one field called Reading would leave you guessing which measurement it contains.

Compare the two output modes

Paste the original sheet, choose comma and try Row objects. Columns 2 and 3 repeat a name. Logical record 4, the row for tile C, also has only two fields for three headings. Choose Table matrix and convert the same text.

Compare the matrix with expected.json. The header array has Reading at two distinct positions. Tile B ends with a comma, so its third element is an empty string. Tile C ends immediately after 8, so its row has two elements. The matrix keeps that distinction.

Give the passes documented names

In this exercise the kiln record identifies column 2 as the first pass and column 3 as the second pass. glaze-labelled.csv uses FirstPass and SecondPass in the header and keeps the original rows. Try it with Row objects. The heading issue clears. Tile C still has a width issue.

Leave the missing reading open

Ask whether the export omitted a field or whether the second pass took place. Until the underlying record answers that question, keep the short row and the original sheet together. Adding a final comma would record an explicit empty third field, a different representation from what the source supplied.

Files for this exercise

Fictional practice data. CSV and TSV files are the inputs. Compare your result with expected.json, which contains the expected JSON output and is not a tool input.

Reference sources

Continue with a check