Skip to content

verify.compare

Compare two dumps, verify compare, and list the data outside of the simulation.

compare

compare(args)

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

diff_lines(a, b)

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

json_paths(a, b, path='')

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).

ranges

ranges(args)

List the fit mappings whose data lie outside of the simulated range.