kScenarios documents ising as taking a nested params object, but run_scenario rejects that shape
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
Research direction
Start with the ising entry in kScenarios, then trace how the scenario catalog is generated from the Rust request type and how flattened parameters are represented. Compare it with ising_wolff and the schrodinger entry to identify the intended parameter shapes. Done means the catalog exposes the fields accepted by Session::run_scenario; verify with the documented repro and the existing scenario tests.
Written by the indexing model from the issue text.
Description
The kScenarios entry for ising says the request reads a nested params object plus seed, but Session::run_scenario("ising", ...) rejects that shape and only accepts the flat width/height/temperature/mc_steps/seed object — so the catalog's parameter list is unusable for the one scenario that needs it.
// repro.cpp
#include <cstdio>
#include "rssn/client.hpp"
#include "rssn/scenarios.hpp"
using namespace rssn::client;
static void run(const char *label, const char *params) {
try { std::printf("%-18s OK %s\n", label, Session::run_scenario("ising", params).substr(0,30).c_str()); }
catch (const Error &e) { std::printf("%-18s %s: %s\n", label, status_name(e.status()), e.what()); }
}
int main() {
std::printf("params = \"%s\"\n", lookup_scenario("ising")->params);
run("documented", R"({"params":{"width":8,"height":8,"temperature":2.0,"mc_steps":10},"seed":3})");
run("flat", R"({"width":8,"height":8,"temperature":2.0,"mc_steps":10,"seed":3})");
}
Actual output (twice, identical):
params = "params:ising_statistical::IsingParameters; seed:int|null"
documented simulation: invalid parameters: missing field `width` at line 1 column 74
flat OK {"magnetization":0.84375,"spi
Why it is wrong: ScenarioDef::params is documented as "the parameters its request type reads, as field:type[=default] separated by ;", and run_scenario "takes the name and a JSON object of those parameters" (scenarios.hpp:11-19). Following the ising entry produces a request the engine rejects; the flat object is what works, and it is the only place width, height, temperature and mc_steps are discoverable (the README example passes them, the catalog does not mention them). For comparison, schrodinger genuinely does read a nested params ({"params":{...}} gets past that field and fails later on ny), so ising is the odd one out rather than a deliberate convention.
Mechanism: the entry is generated from the Rust request type, where IsingParameters is a flattened/#[serde(flatten)]-style member, so the generator emitted the type name instead of the fields it contributes — the same reason ising_wolff (which lists width:int; height:int; ... explicitly) is correct while ising is not.
rssn 0.3.0, C++ client (header-only) over the release C library, Windows x86_64.
- Dominant language
- Rust
- Stars
- 36
- Forks
- 3
- Avg merge
- 14h 51m
- Merged PRs (30d)
- 29
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Apich-Organization/rssn
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothOpenarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#383 ·
Maintainers usually reply within 1 day
-
area/numerical good first issue help wanted kind/doc-mismatch severity/5-trivial
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Apich-Organization/rssn#373 ·
Maintainers usually reply within 1 day
-
area/numerical good first issue help wanted kind/doc-mismatch severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#371 ·
Maintainers usually reply within 1 day
-
json_encode() re-emits a decoded empty JSON object as [], so {} and {"":1} are not round-trip stableOpenarea/api-bindings good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#361 ·
Maintainers usually reply within 1 day
-
area/statistics good first issue help wanted kind/wrong-result severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Apich-Organization/rssn#362 ·
Maintainers usually reply within 1 day
All issues in Apich-Organization/rssn
Similar issues
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Possibly taken @flyingrobots claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flyingrobots/edict#457 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
approved
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
fritzprix/libr-agent#3266 ·
Maintainers usually reply within 1 day
-
Frame::second_to_frame truncates f32 product, causing periodic off-by-one framesPossibly taken @ShamanicArts claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
dmtrKovalenko/fframes#296 ·
Maintainers usually reply within 1 day