Commit 94d58eb
Fix test assertions for scalar temperature/density in Cell.from_xml_element
Cell.from_xml_element now converts single-element lists to scalars
(via `elif len(values) == 1: values = values[0]`), so temperature and
density round-trip as scalars when a single value is specified. Update
test assertions accordingly and fix XML serialization check to use
attribute lookup instead of sub-element for scalar temperature.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ceed0c0 commit 94d58eb
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
| 394 | + | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
0 commit comments