verify.compare¶
Compare two dumps, verify compare, and list the data outside of the simulation.
report_simulators
¶
Report the simulators of two dumps, their engines and what else differs.
A dump says which engine and which settings of the integrator its numbers
came from (simulator_metadata, #549), which is what a difference of two
dumps is read against: the engines are reported whenever one of the dumps
names them, and of the settings of the integrator those which differ, so
that a compare of two tolerances says so. A dump written before #549 names
nothing, which is reported as unknown.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
old
|
Dump
|
the old dump. |
required |
new
|
Dump
|
the new dump. |
required |
compare
¶
Compare two dumps; the exit code is 1 if they differ beyond the threshold.
An expected difference (expected of the renames) is printed and not
counted; an expected difference which does not occur is counted. A row at a
time which only one dump has is compared with the other dump interpolated
at its time when the time lies between two rows of the other dump (the
steps of the integrator of another run, matched_rows), and an array
whose resolution there (the spread of the interpolants,
ArrayDifference.resolution) is coarser than the threshold is unresolved
on this grid, which counts as a difference unless expected names it; a
row outside of the times of the other dump, or a change the other dump
does not have, is a difference: one of the new dump is expected with the
pattern of the variable time of its task (experiment/task/time, a
changed output grid), one of the old dump always counts.
Raises:
| Type | Description |
|---|---|
UsageError
|
for renames which cannot be read or applied. |
diff_lines
¶
Describe the difference of two lists or dicts line by line.
The values of a dict are compared exactly, json values (the specification of a figure) by the paths of their elements which differ.
json_paths
¶
Get the paths of the elements in which two json values differ.
A key which only one object has is named with its value, also a null one
(a field which one version of sbmlsim added to a figure).