Repository navigation
pip install bngsim==0.18.0
Added
-
bngsim runandbngsim checkcompute forward sensitivities (issue #1925).--sensitivity-params NAME,...and--sensitivity-ic SPECIES,...areSimulator'ssensitivity_paramsandsensitivity_ic. They are repeatable, and a comma inside parentheses, as inR(l,d), is part of a name. The digest then ranks, for each column, the parameters and initial amounts that move it most (Result.digest(sensitivities=True)), and.npzand.h5--outfiles hold the sensitivities. Sobngsim checknow reaches thesensitivityandsensitivity_fdchecks, and exits 6 when they find a diff. A stochastic method, a name given twice, and a.csvor.tsv--outbeside one (it holds no sensitivities) are refused with exit 2.bngsim check --helpnow lists every check--checkstakes, sensitivity checks included, read frombngsim._check. -
Result.check("all")checks a run's forward sensitivities against AMICI where it is installed (issue #1923).
The other sensitivity checks read the model as bngsim loaded it, so a defect
the loader and the sensitivity code share passed them both. The new
"sensitivity_second_engine"check builds the model file in AMICI and
compares each parameter column series by series, on the rules of the other
sensitivity checks, and the states too. It skips, saying why, where AMICI does
not import (it is no dependency or extra) and for a model with an event or a
switch in its math, which AMICI reads differently; an initial-amount column
is named as not judged.
The report names AMICI's version and commit. Builds, and models whose
generated C++ does not compile, are cached, unpruned, in
~/.cache/bngsim/amici($BNGSIM_AMICI_CACHE_DIR)."second_engine"now
skips a model file that changed since the run's model was loaded from it. -
Result.check()now checks a run's forward sensitivities (issue #1893).
It used to judge the trajectory alone, so a wrongdY/dθcolumn passed. A
run made withsensitivity_params=orsensitivity_ic=now gets a
"sensitivity"check by default: the sensitivities of the tolerance check's
run, judged series by series on each one's own peak and the absolute
tolerance the solver held it to.check("all")adds"sensitivity_fd":
central difference quotients at two steps, of runs made with the
sensitivities off, which widen themselves near a switch or event time a
parameter moves. Each verdict names the worst series, each column's worst
species, and the series it does not resolve.check("all")on a
sensitivity run no longer reports thebackendcheck as an exception. -
The
bngsimcommand runs every run call, notrun()alone (issue #1890).bngsim run-until(stop conditions,--stop-when; a condition met exits 0 with the run it cut),run-batch(--paramsas JSON,.json,.csvor.tsv),parameter-scan,steady-state,steady-state-batch,steady-statesandrun-bngl(a.bnglfile's own actions). Each followsrun's rules: one JSON object on standard output with--json, arrays only to--out, a wall-clock limit (--timeout, exit 5), and an option the call would not use refused (exit 2). A steady state's JSON gives the solver's verdict and the values there. Where a call takes no time limit of its own, the command ends the process past--timeout. -
Three new documentation pages: checking a result, known limitations, and compatibility between releases. "Check a result before you rely on it" walks through
Result.check()on passing, failing and unresolved runs, says what each status means, when a result has been checked against libRoadRunner or AMICI, and that a stochastic run's check judges nothing. "Known limitations" points to the open issues that can give a wrong answer with no error, lists what BNGsim refuses and where it departs from other simulators on purpose, and says what is known about each disagreement in the published benchmarks. "Compatibility between releases" says what stays the same across 0.x releases and how a change is announced. The docs no longer say thatsteady_states()finds every steady state: it searches from many starts and can miss one. -
bngsim skill --out FILEwrites the agent guide as aSKILL.mdfile itself, and the README says where to put it. For Claude Code,bngsim skill --out ~/.claude/skills/bngsim/SKILL.mdinstalls it for every project.--outmakes the folder, writes the bytes the command prints, and expands a leading~even where the shell does not; a path it cannot write is a usage error. A redirect (bngsim skill > FILE) works in a POSIX shell, but PowerShell before 7.4 reads it in the console's code page, and 5.1 writes it as UTF-16.bngsim guide --out FILEworks the same way, and the--jsonoutput of both now always has"text"and"out".
Changed
-
Result.check()of a stochastic run is no longerok, and itszis in one draw's standard deviations (check_version2). Thereplicatescheck reruns an SSA or PSA run at other seeds and reports each observable's mean at the last time. It judges nothing, but its status waspass, so the report wasokand printed "OK: 1 passed", which a caller readingoktook for a check of the run. Its status is nowinfo, new for a check that reports and neither passes nor fails: a stochastic run's report is notok, its text andn_infosay 1 judged nothing,nextsays the run is not checked, andbngsim checkof one exits 6.zwas in standard errors of the reruns' mean, so a correct run'szwas sqrt(11) times too large:bindingat seed 1, whosezis now 2.6, had 8.5. It is now oversd·sqrt(1 + 1/n), a draw's spread about the mean of the others, so a correct run'szis about a t-statistic onn - 1degrees of freedom. Each column also givessd_last. A reader that took a stochastic run'sokorpassas a check should report a mean over replicates instead. -
Run-time messages no longer cite issue numbers. Error, warning, notice and log text, the
bngsimcommand's output andcapabilities()["missing"]said what happened with an "(issue #1548)" or "GH #210" a user or an agent has no use for; about 480 such references are gone from the Python and C++ messages, and each message still says what happened and what to do. Comments, docstrings and the text of generated code keep theirs. A test now scans the package's strings and the C++ string literals so new ones do not creep in. A program that matched a message's issue number should branch on the error's or notice'scodeinstead.
Fixed
-
Result.check()no longer calls a column "not resolved" when it is near zero only at the run's output points (issue #1974). An oscillation sampled at its zero crossings stayed within 100 times its atol of zero at the points, so the check named it, did not judge it, andnextsaid it "stays" near zero and to lower the atol. Neither was true. A column or sensitivity series near zero at the points is now looked at on the grid check's run at 8x the points. If it is more than 100 atol there, it is resolved and judged on the values beside each point, as #1926 does, with a difference at each point counted only past 100 atol over the larger of 100 atol and what it reaches beside that point, so noise beside a short transient is no failure; only a column near zero between the points as well is named. Where the budget runs out before that run, the check is a timeout.check(["tolerance"])orcheck(["sensitivity"])alone now makes that run where a column is near zero at the points. -
Result.check()'s"sensitivity"check judges each series by its move to the run at rtol/100 as well as rtol/10, so an error about the same at rtol and rtol/10 is no longer passed (issue #1967). On BIOMD0000000810 at rtol 5.151e-9 and 1.314e-8, gamma_C series 0.8% to 0.9% off moved only 5e-4 to 8e-4 of their peaks at rtol/10, and the check passed; to rtol/100 they move 7e-3 to 9e-3, and it reports a diff. The verdict gives both moves (value_10,value_100). The run at rtol/100 is the one the"tolerance"check already makes, so a defaultcheck()makes no new run. Abudget=that runs out before it makes the verdict atimeout. A series past the bound only at rtol/100 is no longer taken to be held by a floor: three runs cannot tell its error from floor noise that happens to agree at rtol and rtol/10. -
Result.check()'s"sensitivity"check no longer passes a sensitivity that converges slowly as one held by a floor (issue #1962). A series that moved at rtol/100 at least half as far as at rtol/10 was taken to be held by the solver's arithmetic floor, judged on its column's largest peak, and passed. On BIOMD0000000810 the check passed runs at rtols from 2e-8 to 2.8e-7 whose gamma_C series were 0.4% to 3.5% off against rtol 1e-12. A series is now taken to be held only if its move is also within 100 of the floor the solver held it to; those series move 3e2 to 1e9 times their floor, and each of those runs is a diff. -
parity_checks/tests/test_rr_known_artifact_evidence.pyfailed with
ModuleNotFoundErrorinstead of skipping where RoadRunner is not installed
(issue #1938). Its RoadRunner reference importedroadrunnerbefore the
file's skip check ran, so a checkout without RoadRunner, such as a venv from
uv sync --extra test, saw three failures where every other RoadRunner test
skips. The check now runs first. -
The
BNGSIM_SSA_PROP_CC=1propensity ablation built arm64 under Rosetta 2 and cached it under a name with no architecture (issue #1927). On macOS its compile now passes-arch, as the Python codegen has since #1759: under Rosetta 2 it built arm64 for an x86_64 Python, the load failed, and the run fell back to interpreted propensities, so the ablation measured nothing. The library is nowssa_prop_<machine>_v2_<hash>.so, with the compile command in the hash, so a native and a Rosetta process sharing a cache, or two compilers, no longer take each other's library, and one an older bngsim built is not reused. It is written underBNGSIM_CODEGEN_CACHE_DIRwhen that is set, as the Python codegen's libraries are. The Python codegen now reads that variable the same way:import bngsimno longer fails when it names a~userthe system does not know, and an emptyHOMEno longer puts the cache at the read-only/.cache. -
Result.check()no longer fails a correct run because its output points miss part of a column's trajectory (issue #1926). The"tolerance"and"sensitivity"checks judged each column on its peak at the run's points. Fory = -sin(πt)sampled at integer times, that peak is the integration error, and a run right to 2e-5 was a diff. A column past the bound there is now judged point by point on the largest value it reaches beside each point, read from the grid check's run at 8x the points. That covers zero crossings and the first point after a fast transient. The report'sn_betweencounts them, andnextsays to rerun with more points. -
Simulator(sensitivity_params=..., sensitivity_ic=...)andsteady_state(sensitivity_params=...)reported a name the model does not have only once the solve had started, as a failed run (run.failed) (issue #1925). A single name passed as a string met a raw pybind11TypeErrorthere (steady_stateread it as one-letter names), as a dict did in the constructor, and a NumPy array of two or more names a rawValueError. Each call now refuses a missing name at once, with the error class and codeset_paramorset_concentrationraises for it (ParameterErrorparam.not_found,ModelErrorspecies.not_found) and its close matches. A species given as a parameter, a parameter as a species, and an observable of one species are pointed at the keyword that takes them, by the model's own spelling. A string, bytes, a value that does not iterate and a name that is not a string raiseArgumentTypeError(usage.wrong_type), so[b"k1"], which ran, is now refused. A false value is no names, as before, and anything else that iterates (a dict's keys, a set, a NumPy array) is taken in its order. -
Simulator(xml_path=...)andEvaluationSpec(model_source=...)refused thepathlib.Paththatbngsim.examples.path()returns (issue #1924). The Simulator raised a raw pybind11TypeErrornaming a core class; the spec accepted thePathand failed only atto_json(). A spec built from aPathnow stores itsstr, so it equals, serializes and loads as one built from thestr. Anxml_pathormodel_sourcethat is neither astrnor anos.PathLike, or a path given to a*_stringformat, is refused withUsageError(usage.invalid_argument). -
Result.check()'s"second_engine"read an Antimony file again differently from the load (issue #1923).
Under a decimal-commaLC_NUMERIC,k = 0.5reached libRoadRunner as 0, so
a correct run was a diff; a file with a stray top-level line was compared as
Antimony's empty__mainmodule. Both engines' checks now read the file as
the load does: in the C locale, and the module the load takes for main. -
steady_state()could reportconverged=Trueat a state a run leaves,
when theatolpassed was coarser than the model (issue #1895).
BIOMD0000000609, every species below 1.4e-13, asked at its SED-ML file's
atol=1e-9with its adduct accumulator left out bymask=, came back
converged at a root with four species below zero, from which a run
diverges. A scalaratolis still taken as given for the march, but the run
the convergence test takes now reads it asrun()does: a ceiling per
species from the solve's start, and for a species below zero from the state
too. Such a state is refused. A saddle a run from it rests on still passes.
steady_state_batch()shares the test, but for a burst-free Newton solve
(newton_burst=False), which takes none and reports the root's stability.
To solve such a model, leaveatolunset or pass one at its scale. -
An ODE run over a span near the largest double hung, or returned NaN rows,
with no error (issue #1838). CVODE's step, or its clock, overflowed before
the run ended:(0, 7e307)never returned andtimeout=5did not stop it,
and(1e308, 1.7e308)of a model that reads the clock came back as
[1, 0, nan, nan, nan]. Such a run now raisesUsageError
(usage.span_out_of_reach, naming the row of arun_batchor the point of
a scan) where that happens, as does one that failed there with a CVODE
error, and a grid of output times that cannot be finite is refused before
it starts: measure time in a larger unit. Every run whose clock stayed
finite returns the same rows. Andtimeout=is now read inside the solver too,
every 256 right-hand-side evaluations, so a run that spends its budget
between two output points raisesSimulationTimeout. -
An ODE run that took steps too small to move its clock returned a wrong
answer with no error and no Python warning (issue #1837). Far fromt = 0
CVODE takes a step wheret + h == tanyway, moving the state and not the
clock: a decay readingtime()from1e15returnedA(+5) = 0.000587for
0.00674. Such a run now warnsbngsim.RoundoffStepWarning, naming the first
row after one and the spacing of the doubles there, and keeps it on
result.notices(solver.roundoff_steps) or on the error of a run that
fails;solver_stats["n_roundoff_steps"]holds the count. A run can take
them and be right:result.check()tells. A system-SUNDIALS build counts none. -
A forward-sensitivity run failed to build under clang when the generated C
nested brackets more than 256 deep (issue #1814). A table of daily values
written as a chain,if(time()<=1, v1, if(time()<=2, v2, ...)), got two
brackets deeper perif(), past clang's limit at 128; a plain run fell back to
the interpreter. Anif()that is all of another's false branch is now the
next link of one flat?:chain, which computes the same values, and clang is
given-fbracket-depthfor a source near the limit or past it, such as a
chain through the true branches. A chain of about a thousand, which every
codegen build refused with aRecursionError, builds too, and
jacobian="jax"writes a chain as one call, where 200if()s raised "too
many nested parentheses". From 99if()s the analytic sensitivity RHS is
still not built: the run uses CVODES' difference quotient where the
conditions allow it, and refuses as before where they read the state. A
failed build now says it was the compiled right-hand side. -
mratio(a, b, z)no longer returns a wrong value whenais a tiny
positive number below abunder 1 andzis past -20 (issue #1793). The
continued fraction still ran there and lost up to all of the ratio:
mratio(1e-30, 2e-12, -3e4)returned 7.047e-17 for 6.667e-17, and some
answers had the wrong sign. The corner issue #1080 sums as two series out to
z = -700, and leaves to the asymptotic expansion beyond, is now
0 < b - a < 1withb < 1, which takes these too; the error there is
below 1e-13. At the subnormal doubles, where main was also wrong in places,
by factors and even returning inf, every answer is now right: withb < 1,
the series sums its denominator times 2^54 wherealphaoralpha*zis
subnormal (alpha = aforz > 0,b - aforz < 0), and it forms a
subnormalb's last product the same way, somratio(5e-324, 1e-322, 10),
3.1e-3 off before, is now exact. Whereband|alpha*z|are both
subnormal and|alpha| >= 1, the fraction, wrong there at about one sampled
triple in five, is refused. Both engines. BNG's own arguments are
unaffected, bit for bit. -
Model.jacobian()no longer raises for a rate law calling
mratio(a, b, z)where the compiled code differentiates it (issue #1793).
The interpreter's derivative ofmratiolet a refusal of its second call,
mratio(a+1, b+1, z), escape, where the generated code falls back to Kummer's
contiguous relation, so the two engines disagreed: withzread from a
species atmratio(-0.5, 2.5, -1000)the interpreter raised and the
generated code returned 2.4900224650e-06, right to 1.5e-12. The interpreter
now takes the same fallback, which its header always described. -
sbml_to_bngldropped the events of a comp submodel and still reported
ok=True(issue #1787).Model.from_sbmlflattens a comp document before
reading it, but the events-to-actions translation read the unflattened file,
whose top model has no events, so the.bnglhad no actions block: an event
setting A = 100 at t = 5 was lost, and BNG2.pl ran the file to A(10) = 3.68
for 60.65. The translation now reads the flattened document, so a
submodel's fixed-time events become actions and its state-triggered ones are
refused. A model with an event the translation did not read is refused
rather than converted without it. -
A
required="true"package in the file acompsubmodel is read from was
dropped without a word (issue #1786). A document declaringmultiis
refused, but the same model pulled in through anExternalModelDefinition
lost the package in flattening, and its core layer loaded and ran
(A(10) = 36.79). Every file the flattener reads a submodel from, nested and
chained ones included, is now checked as the loaded file is, and the
ModelErrornames the file and theExternalModelDefinitionthat reads it.
BNGSIM_ALLOW_UNSUPPORTED_CONSTRUCTS=1opts out as before. For any file,
the loaded one too, the check of the root element now reads a.gz,
.bz2or.zipfile decompressed, as libSBML does, takes
required="1"as true, and no longer passes a namespace only because a
segment of it sayscomp. -
sbml_to_bnglignored a trigger'sinitialValueand the event
priority, and reportedok=True(issue #1785).at (time >= 0): A = 5,
which never fires since its trigger is true from the start, became a dose at
t = 0, and two events at t = 1 were written in document order, so the one
of lower priority, which the run executes last, was overwritten. A trigger
true at the start now fires there only if itsinitialValueis false, and
events at one time are written in the order the run executes them: by
priority, an unset one counting as 0, and delayed events among equal
priorities as the run orders them, each time and priority read as the run's
evaluator reads it. Where the run's random draw among equal priorities can
decide a species' value, or its rounding can, as for events due almost at
once or a stricttime > T, which it reads a little past T, the conversion
is refused. -
sbml_to_bnglread an event's trigger time, delay and assigned values
from each parameter's declared value, and reportedok=True(issue
#1784). A parameter an initialAssignment or a rule sets, or another event
changes, was folded at its declaration:at d after (time >= 1), with d
declared 0 and set to 1 by an initialAssignment, became a dose at t = 1 for
t = 2. These values are now the ones the run computes, from an
initialAssignment or from an assignment rule over constants. An event is
refused where the run's arithmetic and the SBML's folded give different
values, or where its trigger time, delay or value reads a parameter a rate
rule or another event changes.
BIOMD0000000806, whose events step a parameter up and down, is refused
rather than written with the steps wrong. -
An x86_64 Python under Rosetta on an Apple Silicon Mac could not load any
library codegen compiled (issue #1759). Apple'sccbuilt arm64 whatever
process started it, so forward sensitivities andcodegen=Truefailed at
dlopen with "incompatible architecture". Every codegen compile and link on
macOS now passes-archwith the Python's own architecture (all but the
BNGSIM_SSA_PROP_CC=1ablation, which compiles in C++); a native build is
unchanged, byte for byte. A compiler that builds for another architecture all
the same is refused as a broken toolchain, with a message that names both and
the fix, and its library is not cached.CCis now split as the shell splits
it on macOS and Linux, soCC="ccache cc"works (quote a path with a space,
unlessCCis that path alone); on Windows it is one path, as before. The
arm64 libraries an x86_64 Python cached before are not read again (the cache
key moved);bngsim-cache prune --orphanedremoves them. -
After an SSA or PSA run, an ODE run, a steady-state solve,
get_concentrationandset_concentrationread a species in a resized
compartment as its stored count over the load-time size (issue #1754). 150
molecules atc = 4, stored as 75 over the load-time 2, started the ODE run
from 300, andset_concentration("X", 10)started the next SSA run from 20
molecules for 40. Each now reads that state at the size the compartment has
now, as the SSA run does;get_state()andset_state()still take the
values as stored, andSimulator.snapshot()keeps them so. Under SSA and
PSA, a compartment an assignment rule sizes from a concentration in a
resized compartment (c2 := V0 + Y) is now sized on that concentration, in
event assignments and in each row's observables and expressions:
S = 20stores 160 molecules where it stored 260, as the ODE run does.
validate_for_ssaandSimulator(method="ssa")now count a concentration
at the size its compartment was written to, so they warn of a fractional
start they passed over (cwritten to 3.01: 150.5 molecules). -
The rr_parity and AMICI ODE matrices drew a row as NO TRUTH where its
no-ground-truth entry did not apply (issue #1719). Where both engines raised
on a model with aNO_GROUND_TRUTHentry, the row's only comment was the note
that the entry did not apply, which begins with the same words as an applied
entry's note, and both pages read it as one: each engine got a NO TRUTH badge
and a footnote saying it ran. The pages now match only an applied entry's
note, so such a row reads as two engines that rejected the model. The
rr_parity page no longer calls that note non-scoring either, on a row that
still scores, such as a DIFF whosemax_relis not finite, andrr_run's
progress line no longer tags that DIFF→BADTEST*. No verdict, tally or exit
code changes. -
The Python examples in the user guide, the reference pages and the README now run as written (issue #1693). Pasted in page order into an empty directory, 71 of the guides' 104 blocks raised: most lacked
import bngsim, or used a model, a parameter or a file the page never gave. Each page now builds the small model its blocks use, frombngsim.examplesor a file it writes, and examples that were wrong are corrected, among them a fit loop whose new initial conditions never took effect and a table-function file used under two indexes. The suite now runs every page top to bottom and checks the value a comment states on a one-line statement; the few blocks that need BNG2.pl or the network are passed over by name. -
method="nfsim"fired nothing while a model's total propensity was 1e-9 or less in its own time unit (issue #1672). NFsim took such a total for zero and returned the state it had, with no warning:0 -> Dat 5e-10 gave D = 0 where the mean is 20, and 100 A decaying at 1e-10 stopped at exactly 10. The threshold was absolute, so a model written in a short time unit, or a decay followed long enough, kept its last molecules. The vendored NFsim now fires at any total above 0, and a run no longer depends on the model's time unit. -
method="nfsim"lost a slow channel, or ran it about twice as fast, once a fast channel beside it had emptied (issue #1666). NFsim keeps its total propensity as a running sum, and a rate many orders below the largest total of the run was rounded away in it:0 -> Dat 1e-6 besideA + B -> Cat kf from 1000 of each gave D(2e7) = 0 at kf = 1e5 and 38 at kf = 1e4, for a mean of 20, with no warning. The vendored NFsim now sums the total afresh once it falls far below its peak, and every 4096 updates, and D has mean 20 at every kf. -
Model.from_bnglandbngsim.run_bnglcapped a file's network with the
limits of agenerate_networkafter its first ODE, SSA, PLA or PSA run
(issue #1480). BNG2.pl generates the network at that run with its defaults,
but the loader forwarded the file's lastgenerate_network:
simulate({method=>"ode",...})followed bygenerate_network({max_iter=>3})
loaded a network cut off at 3 iterations. The limits now come from the first
generate_network, unless such a run,writeMDL()or areaction_network
visualizecomes before it. A network-free run generates nothing, so the
call after it still applies. Amethod=>"nf"run with apoplevelnow runs
as PSA, as in BNG2.pl, where it was refused as an NFsim run.
ProtocolSpec.network_gen, whichwrite_bngl_protocoland PyBNF read,
follows the same rule: it was the last call before anyquit(), and is now
that one, read pastquit()as the loader does, orNonewhen the network
is generated first.combine_protocolskeeps thatNonefrom a first spec
whose network is generated first, where it took a later spec's cap. -
Three rough edges an agent meets on first use. Setting an observable that counts one species once, such as the
Aof a.netgroupA 1, now names that species in the message and as a remedy (use_name, oruse_callwithset_concentrationfromset_param), where the remedies were empty.bngsim doctorandcapabilities()["missing"]no longer cite issue numbers for a feature a published wheel can lack; the KLU entry no longer says a macOS wheel is dense-only (every wheel has KLU), and the vivarium entry namespip install 'bngsim[vivarium]'. TheLiveStartWarningno longer ends with an issue number. -
Model.from_bnglran aLinearParameterSensitivitythat came before the
file'sgenerate_network. BNG2.pl got it with the rest of the model, and
it runs ODE simulations of copies read from a.net, writing their output
beside that file, during the load. It is now left out, like the file's runs,
without stopping the actions after it. -
bngsim runandbngsim checkrefused--seedand--xmlwith
--method nf_rejectornf_exact. The command knew onlynf,nfsim,
rmandrulemonkeyas network-free, whereSimulatortakes those too. It
now reads the listSimulatorresolves.nf_fixed,dynstocanddsget
Simulator's own message that the method is unavailable here, from every
command. -
An ODE run that starts too far from t = 0 for its model is refused before it steps, where it failed in CVODE or silently lost a species. The doubles near a time t0 are about t0·2.2e-16 apart: a clock-reading
A -> Batk = 1is right from t0 = 1e26 down, fails in CVODE from about 1.05e26, and from about 1e55 returned A = B = 0 beside aRoundoffStepWarningalone. Over (1e308, 1.7e308) it returned A = B = 0 on a compiled right-hand side and was refused only by chance on the interpreted one, which the nightly forced-JIT suite showed. A run starting more than 1e26 of its model's time scales from 0 is nowUsageError(usage.span_out_of_reach), the time scale read from how fast its rates change at the start; a rate that does not change, such asA' = 1, is not refused. -
bngsim.run_bnglran aparameter_scanorbifurcatewith
method=>"protocol"and apoplevelas a PSA scan. Such a scan runs the
file'sbegin protocolblock at each point, and BNG2.pl hands the block's
lines none of the scan's options, so thepoplevelreaches no run. The scan
keeps itsprotocolmethod now, and is refused, as it is without a
poplevel, as one a protocol replay does not run.