The bngsim command runs Simulator.run() alone: run_batch, parameter_scan, run_until, the steady-state calls and a BNGL file's own actions have no subcommand

Open
#1,890 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Start from the existing bngsim run and bngsim check commands (#1708), which already wrap Simulator.run(), --steady-state and --replicates (run_replicates). Each missing call needs its own subcommand or mode: run_batch, parameter_scan, run_until (where StopConditionMet must exit 0), the steady_state family (which needs a JSON form for SteadyStateResult), and run_bngl/run_protocol. Done means each path emits JSON on stdout, enforces the wall-clock limit, rejects unused options, and writes arrays only to --out.

Written by the indexing model from the issue text.

Description

bngsim run and bngsim check (#1708) cover Simulator.run(), with --steady-state and --replicates N (run_replicates). The other run calls have no command yet:

  • run_batch (rows of parameter sets) and parameter_scan: a stack per call, which the digest already summarizes (statistics across rows at the last time).
  • run_until with stop conditions: StopConditionMet is a success, not an error, and must exit 0 with the result it carries.
  • The steady_state family (steady_state, steady_state_batch, steady_states): a SteadyStateResult, which has no digest. It would need its own JSON form.
  • A BNGL file's own actions (run_bngl / run_protocol). bngsim run model.bngl asks for --network today, so that the caller says which of the two they mean.

Each needs the same rules as run: JSON on standard output, a wall-clock limit, options a call would not use refused, and arrays only to --out.

Part of #1710.

Dominant language
Python
Stars
3
Forks
6
Avg merge
1d 1h
Merged PRs (30d)
295

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lanl/bngsim

All issues in lanl/bngsim

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.