The dated record of the work on this tool: findings, decisions with their reasons and the options set aside, work done. Taken from the diff-ref-struct project's log, which records every step of the project. Feed: log.xml.
17 entries about this tool, newest first, from the project’s log; 6 more concern a team’s unpublished data and are not shown here.
2026-10-27 · work
After L442: publish-web.yml published 1.1.0 (build 1005d96, core 0.82.0, checked live); the tag web-v1.1.0 ran publish-source.yml (the public main 288dc6c, tagged v1.1.0); the release v1.1.0 created on it with the notes of the record; Zenodo archived it (its webhook’s release event accepted) as 10.5281/zenodo.23683238, a version of the concept 10.5281/zenodo.23682726. The DOI written into the record (Appendix B), CITATION.cff, the guide’s About and the project’s releases; the guide and the source published again with it.
https://github.com/jmigartua/diff-ref-struct-web/releases/tag/v1.1.0 · https://doi.org/10.5281/zenodo.23683238 · L442
2026-10-27 · work
At Josu’s word, after L441: the core branch (0.82.0, PL42, with main in it) merged into main through the web branch, and diff-ref-struct Web released as 1.1.0. The page’s core package rebuilt at 0.82.0 (1307 kB); a set file’s x_interval = [from, to] checked in the page on a copy of the Tb₂Pd₂Sn folder cut to 24–36° (its Map from 24 to 36°, the cut set’s colour range 2.982–4.605 log₁₀ counts). W11 met by 0.82.0 (the patterns’ member); the page’s rename kept as a fallback. The record (web/site/data/releases.yml 1.1.0, the roadmap: the page’s control for the interval and a test of the core’s shapes decided), the conventions (x interval), the manual (§13, §20), the quick reference, the hold recipe, the team’s use case (the first degree cut by x_interval) and CITATION.cff updated; every PDF rebuilt. The release gate with the views: every line OK (versions, notes, PDFs, the guide’s links and guard, the source’s guard, licences, 39 tests, 9 of 9 views). Published by publish-web.yml and, by the tag web-v1.1.0, publish-source.yml; released as v1.1.0 on the public repository for Zenodo.
web/site/data/releases.yml 1.1.0 · core/CHANGELOG.md 0.82.0 · web/manual/user-manual.md §13 · L434, L435, L441
2026-10-27 · work
At Josu’s word, in the core’s worktree: the branch (e436fadd, 0.82.0, L435) merged with main (L436–L440). The three files both sides changed (core/src/plots.rs, core/tests/plots_propose.rs, core/wasm/tests/map.test.mjs) merged without conflict; the log’s two tails (L435 and L436–L440) kept in order, LOG.md and the log’s page regenerated. 0.82.0’s new test core/tests/plots_sets.rs took three of the ESRF run’s names for the files it writes; made neutral as W13 made the others (scan_…), what it checks unchanged, so that the public source stays clean (web/tools/source.mjs: 0 of 8 guarded words). On the merge, with the run’s folder named: plots_esrf 2 of 2, plots_propose 5 of 5, plots_sets 14 of 14, the package’s tests 10 of 10 (PL42’s among them). The branch is ready to merge into main; diff-ref-struct Web’s next release then takes core 0.82.0 (its record, the release gate).
core branch (merge of main into e436fadd) · core/tests/plots_sets.rs · web/tools/source.mjs · L435, L439, L440
2026-10-27 · work
At Josu’s word, after W13 (L439): publish-source.yml run by hand (its guard 0 of 8 words in 469 files, Pages serving gh-pages, the source pushed to the public repository’s main as 95054a7; a fresh clone guarded again, no hit). Josu linked Zenodo to the repository (the switch on after a reload of Zenodo’s GitHub page; its webhook active, on releases). The release v1.0.0 created on the public main with 1.0.0’s notes from the record; Zenodo archived it as software, “Igartua, Josu M.”, Apache-2.0, the source zip (10.2 MB), documented by the guide: version DOI 10.5281/zenodo.23682727, concept DOI 10.5281/zenodo.23682726 (it resolves to the latest version). The DOIs written into CITATION.cff, the release record (Appendix B of the manual, its PDF rebuilt), the guide’s About, and the public README’s badge; the guide and the source published again with them.
https://github.com/jmigartua/diff-ref-struct-web/releases/tag/v1.0.0 · https://doi.org/10.5281/zenodo.23682727 · web/public/CITATION.cff · web/site/data/releases.yml · L437, L438, L439
2026-10-27 · work
At Josu’s word (“do it for me”, the publication of L438), done here rather than by the core stream, on core 0.81.0 (the core of diff-ref-struct Web 1.0.0): in core/tests/plots_esrf.rs the run’s 101 names made neutral (scan_<seq>_T<temp>C_t<seconds>s_<class>.xye, the same structure, so W8’s rules are tested as before), the scan’s number read from the token before its temperature or background (the run’s own names and the neutral alike), the folder taken from DRS_ESRF_RENAMED only and listed in name order; the same in core/wasm/tests/map.test.mjs (the background matched by its sequence and suffix) and core/tests/plots_propose.rs; two comments of core/src/plots.rs say “a team’s ESRF run”. With the folder named: plots_esrf 2 of 2, plots_propose 5 of 5, the package’s tests 9 of 9; web/tools/source.mjs finds no guarded word, and web/site/tools/release.py says 1.0.0 is ready on every line. The core stream’s 0.82.0 (e436fadd, L435) touches plots.rs, plots_propose.rs and map.test.mjs too: it merges main before its own merge.
core/tests/plots_esrf.rs · core/tests/plots_propose.rs · core/wasm/tests/map.test.mjs · core/src/plots.rs · web/REQUESTS.md W13 · web/site/tools/release.py · L435, L438
2026-10-27 · work
Josu asked the four publication steps of L437. Main fast-forwarded to the web branch (3c942b52, 16 commits; no other stream merged: the core’s 0.82.0 (PL42) and Plots’ step 24 wait for their own merge, so that 1.0.0 stays on core 0.81.0 as its record says). The push runs publish-web.yml, which writes the page and the guide to the public repository’s new gh-pages branch; the Pages source switched from main to gh-pages; the page and the guide then checked live. The source is not published: publish-source.yml stops on the four core files of W13, by design. Zenodo needs Josu’s login to link the repository (the DOI per release).
main 3c942b52 · .github/workflows/publish-web.yml · web/REQUESTS.md W13, W14 · L436, L437
2026-10-26 · decision
Josu, 26 October 2026, on web/PROPOSAL-open-tool.md: “go for all your recommendations”, the AI-assistance statement with a proposed wording, English only for now. Decided: - the code under the Apache License 2.0, the guide, manuals, screenshots and example data under CC BY 4.0; CITATION.cff and a Zenodo DOI per release. Set aside: MIT (no patent grant, no NOTICE), GPL-3.0 (no reuse in closed tools); - the public repository diff-ref-struct-web: its main holds the source subset (the core, the page’s files of app/ui, web/) published by an Action, its gh-pages the built page and guide. Set aside: the whole private repository made public (other programs’ manuals, a team’s unpublished data); - requests as the public repository’s issues (bug and feature forms) with an e-mail path; a third-party form set aside (users’ words to a server we do not control); - the vocabulary appendix named Conventions (words, files and suffixes, naming scans, units, versions and ids); - semantic versions from diff-ref-struct Web 1.0.0, the core’s version and the build beside it; - the example computed by the core; FullProf’s tutorial files linked, not hosted (the ILL’s to distribute); - the statement in NOTICE and the guide’s About: written with AI assistance (Claude, through Claude Code) under Josu’s direction, every number the core’s and checked by its tests, the responsibility the author’s; - the open-tool kit as the standard of every public tool of the family, with its skill _OPENTOOL.
web/PROPOSAL-open-tool.md · web/public/NOTICE · web/REQUESTS.md W14 · L436
2026-10-26 · work
The web stream (web branch, 16 commits from eb9d2813 to 3c942b52) wrote the user manual of the page (web/manual/user-manual.md, 22 sections), a one-page quick reference, and a team’s worked use case of the ESRF ID22 run (web/manual/team/, PDF and one HTML page, never published). Then the guide: a Quarto site in the family kit (web/site/), published with the app at /guide/: overview, start in five minutes (a browser check, the Tb₂Pd₂Sn tutorial folder), the manual and quick reference with their PDFs (LuaLaTeX in the kit’s typefaces), five recipes, how it works, formats, conventions, releases, log, roadmap, requests, about, privacy and accessibility; screenshots taken from the app by web/site/tools/shots.mjs (Chrome over the DevTools protocol, each view at 3× in both themes). Version 1.0.0 applies the open-tool kit (web/PROPOSAL-open-tool.md): releases, roadmap and conventions as records rendered in the guide and in three appendices of every manual; the page’s Help ▾ menu (the manual at the view shown, report a problem, ask for a feature, cite this view), Try the example (21 scans computed by drs simulate, web/examples/tools/make_example.py), the guide kept offline by the page’s worker; open source files in web/public/ (Apache-2.0, CC BY 4.0, NOTICE, CITATION.cff, issue forms), the public selection web/tools/source.mjs guarded by web/private/guard.txt, the Actions publish-web.yml (page and guide to gh-pages) and publish-source.yml (source to main, by hand or a tag); the release gate web/site/tools/release.py. Found while taking the screenshots and fixed in the host: the Overlay drew no curves on the public page (0.4.0: the package’s plots_patterns says index where the module reads member; W11 to the core), and Sum, Average, Difference of Members computed and never saved (now downloaded). The proposals against time open by temperature (W10, measured on core 0.81.0). The gate on 1.0.0: every line OK (versions, notes, PDFs, the guide’s links and guard, licences, 39 tests, 9 of 9 views drawn) but the source’s guard, which stops on four of the core’s files that name the team’s run (W13). Also the skill _OPENTOOL, created through CreateSkill, for the next public tool.
web branch eb9d2813…3c942b52 · web/README.md steps 6 and 7 · web/DESIGN.md · web/REQUESTS.md W10–W14 · web/PROPOSAL-open-tool.md · ~/.claude/skills/_OPENTOOL
2026-10-26 · work
The order of L434 for the core. - SetFile::x_interval (x_interval = [from, to], in the set file’s x quantity; absent by default): read (a pair in order, refused backwards), written only when given, described (“the analysis cut to 2theta 2 to 20 on opening: every member’s points outside it left out, the files untouched”). - PlotSet::cut(interval, quantity): every member keeps its points from from to to and only those, its facts (points, range, step) the cut scan’s. The interval is converted to a member’s own x with its file’s λ when the set file’s quantity is another, as a region’s bounds are (PL37), and refused by name when a λ is lacking. A member left with fewer than two points inside is refused by name (“its range, 21 to 27, does not reach the x interval 2 to 20”). A set cut again keeps the narrower interval. PlotSet keeps x_interval (and the quantity it is in), so SetFile::of writes it back. - Applied on opening: - SetFile::open* apply the file’s interval before its rebin (W9). - open, open_from and open_buf keep their signatures: their callers cut on opening (drs plots, drs-wasm, and the app’s bindings once Plots adds the argument). - propose(files, x_interval) cuts each file as it reads it, so the facts are the cut scans’ and every proposal’s set file carries the interval; a file the interval leaves without points is named. - Every function of plots then works on the cut set with no change of its own (the grid, map, difference map, displacements, projection, series, derive, CSV, page_data), with one exception, windows: a window outside the interval is refused as such (“window "beamstop", 0.5 to 1.5, lies outside the analysis’s x interval 2 to 20”), where without the check it would fail on no points. - drs plots … --x-interval a:b on every plots command that opens a set (on a .drv, in its x quantity, after its own interval; save writes it; propose gives it to its proposals). - drs-wasm: - plots_open_from, plots_open_buffer_from, plots_open_set_from and plots_propose take xInterval: [a, b]; files added to a cut set are cut alike; save writes the interval. - The commands test found the app’s plots_rebin (Plots’ step 22) missing: ported. The browser has no files to read again, so it keeps the measured set the first time the step changes; a set opened rebinned refuses another step. - plots_patterns now gives the app’s PatternView (member, the members shown only), since the app wrote its binding with that shape. Settings carries y_interval as the app’s does. - 30 commands and describe, the app’s list met. - For Plots, no new Tauri command, but the arguments of three: - plots_open_files, plots_open_buffer and plots_open_set take xInterval: Option<[f64; 2]> and call set.cut(iv, quantity) after opening: none for files, SetFile::x_quantity() for a set file; - plots_add cuts the added files to the set’s interval (set.x_interval, set.x_interval_in); - save and plots_rebin keep it with no change (SetFile::of, then open, cut again). - For Publish: its figures read the set file through SetFile::open (publish/src/patterns.rs:42) and so draw the cut set already. What it must add is the note: one line per figure from op.file.x_interval, as it notes the displacement, so that the figure says the data are cut. - Tests: - plots_sets::pl42_the_x_interval_of_the_analysis: - three files with the ESRF names (0–27° in 0.01°, written there) cut to 2–20° give a map whose 1801 columns run from exactly 2 to 20, in °C from the names; - a window at 0.5–1.5° is refused and one inside is read; a member reaching only 21–27° is refused by name; - a .drv without the field reads and writes as before, and the proposals carry the interval; - Tb₂Pd₂Sn cut to 18–34° gives a map equal to map_region’s block of those columns on the whole map, every row to the bit, the range equal; drs plots map --x-interval 18:34 gives the same columns, and drs plots describe --x-interval says the cut. - core/wasm/tests/map.test.mjs, 10 cases: the cut map equal to drs plots map --x-interval --json to the bit; the interval saved, opened again and narrowed; refused out of range; carried by the proposals; plots_patterns and plots_rebin as the app’s.
core/src/plots.rs (PlotSet::cut, interval_of, x_interval, x_interval_in; SetFile::x_interval; windows; propose) · core/src/main.rs (–x-interval) · core/tests/plots_sets.rs · core/wasm/src/host.rs, lib.rs, tests/map.test.mjs, tests/commands.rs, README.md · app/src-tauri/src/modules/plots.rs (plots_rebin, plots_patterns, Settings.y_interval) · publish/src/patterns.rs:42 · plots/REQUESTS.md PL42 · L434
2026-10-26 · finding
Checked on the public page right after the Action published web a1c308d (Plots’ step 23 in it; the page’s viewer/map.js holds stripFrames, the live and the cached copy alike, the worker current): the Tb₂Pd₂Sn files dropped, the Map shown, the cursors pinned at 29.9°. The map’s frame ends at the colour bar (its right margin measured for the bar and the right-hand axis), the row strip’s frame runs on to the canvas’s edge less its own 16 px: in the capture the map’s 44° sits where the strip draws 42°, and the strip’s y label reads “counts (log) (log)”; the column strip’s bottom is its own x axis, not the map’s bottom. A forced resize and a wheel zoom changed nothing. So what the step’s self-check measured in the Tauri host (the frames equal, the unit once) does not happen in the browser host: the two hosts differ in something the viewer’s draw depends on (the order of the map’s draw and the strips’, the plot the host hands over, the frame call reaching the strips’ plots), and the step’s check ran in the app only. Capture: ~/Downloads/interceptor-capture-20261026-081600-60098.png. For Plots’ step 24: reproduce in the browser host (serve the repository root, open app/ui/host-web/index.html, drop the Tb files through a DataTransfer in eval, pin a cursor) and fix where the hosts part; the web host’s node tests gain a check of the strips’ frames.
https://jmigartua.github.io/diff-ref-struct-web/ (web a1c308d, core 0.81.0) · ~/Downloads/interceptor-capture-20261026-081600-60098.png · app/ui/viewer/map.js · L431, L432
2026-10-26 · work
Plots’ step 23 (plots branch 6770438c), fast-forwarded into main. At each draw the row strip under the map takes the map plot’s frame (plot.state.geom, the left fixed and the right measured for the colour bar and the right-hand axis) through the shared plot’s new setAxes({ frame }), with the map’s x view, so a peak sits under its column whatever room the bar and the second axis take; the frame is taken again on the map’s resize and on every change of its view. The column strip is drawn with the variable up and the core’s values across, its top and bottom and its y view the map’s, so each point sits on its row. The scale’s word is added once, by the shared plot (“counts (√)”, “√counts”). Self-check 161 OK, 0 FAIL, relaunch 168 OK, 0 FAIL, Josu’s files unchanged; the check gives the plot area 960 × 640 px for its duration so that the strips are shown. On main: the UI suite 268, the viewer’s assets fresh. The web app takes it at this push; the Mac app at its next release.
plots branch 6770438c (README twenty-third step, PL13s) · app/ui/viewer/map.js · app/ui/plot.js · app/ui/mapclip.js (stripFrames) · L431
2026-10-26 · finding
Josu, on diff-ref-struct Web with the ESRF temperature series: the strip under the map that draws the member under the pointer should share the map’s vertical lines, so that what the user sees in the map coincides with the profile below; as it is there is a shift. Seen in his capture and in the viewer’s code: the map’s plot has its right margin measured for the right-hand axis (the second variable, t) and the colour bar, so its frame ends well before the canvas’s edge, while the row strip is a second instance of the shared plot with its own margins (right: 16, its own measured left for its y ticks), so its frame runs to the edge: the two x scales differ and a reflection at 14.5° in the map sits over 15.5° in the strip. The column strip beside the map has the same fault in height against the map’s rows. A second small thing in the capture: the strip’s y label reads “counts (√) (√)”, the unit’s root said twice.
The fix is the viewer’s (the shared module, both hosts): at each draw the row strip takes the map’s frame edges (the map plot’s measured left and right, plot.state.geom) as its own and the same x view, and the column strip the map’s top and bottom and the same y view; the shared plot takes explicit margins as an additive option (PL13s). Plots’ step 23, a short one; it reaches the web app at the next push and the Mac app at its next release.
Josu's capture of the web app, 26 October 2026 · app/ui/viewer/map.js:151–166 (the strips' createPlot) · app/ui/plot.js (the measured margins, PL30) · L406, L412
2026-10-25 · work
The release cycle of L418 on main b26709c2: the self-check bundle built with its own identifier, Plots’ self-check run on a copy to its quit and relaunched: 165 OK, 0 FAIL, then 150 OK, 0 FAIL; Josu’s own files of the app unchanged. The release bundle built under eus.ehu.diffrefstruct as 0.54.0 and installed in /Applications, 0.53.1 to the Trash. Josu’s app now holds, on core 0.81.0 and drs-publish 0.36.1, what the web round brought to the shared module (L425–L428): the y interval shared or own, the members table with icons, checkboxes, all/none/class/range and three orders, the right-hand axis from a member’s second variable, the shell’s host object, the patterns asked when drawn, a hundred raw scans opened and overlaid in seconds with the core’s rebin offered. The desktop app and the web app are now the same module on the same core.
scratchpad self0540 (run.log) · app/src-tauri/target/release/bundle/macos · data/releases.yml app 0.54.0 · L418, L421, L429
2026-10-25 · work
The three orders of L427 came back and are merged into main: core 0.81.0 (core branch f0cc2149, L428: the ESRF names read, the exposure classes by σ²/y, propose giving the run’s three sets scan for scan as they were built by hand, a large set rebinned on opening, the patterns out of every SetView), Plots’ step 22 (plots branch 616a660d: the patterns asked and not carried, the overlay in slices, the core’s rebin offered on opening; the ESRF folder’s overlay from 31.3 s with the window blocked to 1.69 s to the first frame; self-check 150 OK, 0 FAIL, relaunch 167 OK, 0 FAIL), the web host’s steps 4 and 5 (web branch 6fbc5632: live mode growing a proposal’s set from a folder read again, the service worker and the install manifest, the view in the address, the staged site with its licences, publish-web.yml with the deploy key, the first publication by hand).
Three seams closed here: the host’s local function ask (a message to the worker) renamed, since the app’s dialogs test reads every ask( as a dialog; the wasm test’s 10 s budget for opening the run’s 100 scans made a reported time with a 60 s ceiling (9.7 s in the cloud, 12.4 then 14.8 s on this throttled Mac: a budget, not a tolerance); and the Action’s node --test web/tests/, which Node 22 on the runner does not expand, made a glob. Then every suite on main: core wasm 9, UI 267, web 38, app Rust 100, assets fresh. Pushed; the Action published the app from main for the first time (web 24d8619, core 0.81.0, 2 min 32 s; the first run failed on the glob).
Checked on the public page (Interceptor, the isolated profile; the 101 ESRF files served read-only from a local server with CORS and dropped on the page through a DataTransfer, so that the public origin read them as a user’s drop would): the page first showed core 0.80.0 — the worker of the stream’s hand publication kept serving its cache, and the raw-scan path of that build blocked the tab for minutes; a fresh tab with the registration updated showed 0.81.0 (the worker’s take-over on a new version is for the web stream to make visible: a line and a reload). On 0.81.0: the 101 files (111.8 MB) listed by kind, opened as one set of 101 members in the Overlay with the core’s difference of first and last scan below (the overlay drawn, the page answering throughout); through the host’s own dispatcher, plots_propose on the 101 texts in 38 s gave the three titles of L428 exactly, the background scan left out; the hold opened rebinned in 1 s and mapped in under a second: 39 rows, 2699 columns, 0 to 28.26 √counts, the desktop’s numbers (L021). Loose files dropped open as one set; the proposals come with a folder (Open Folder…), as the stream’s own check with a directory handle showed. Capture: ~/Downloads/interceptor-capture-20261025-154334-44870.png.
I10 migrated with its version. For Josu: the core’s choice of σ²/y for the exposure classes (L428) is his to accept; and the ESRF files are now analysable at the public address by anyone with the folder: Open Folder…, the three proposals, the Map with the clip and the regions.
core branch f0cc2149 (L428) · plots branch 616a660d (README twenty-second step) · web branch 6fbc5632 (README steps 4 and 5) · .github/workflows/publish-web.yml · app/ui/host-web/host.js · core/wasm/tests/map.test.mjs · https://jmigartua.github.io/diff-ref-struct-web/version.json · data/ideas.yml I10 · L427
2026-10-25 · work
The three orders of L423 came back the same morning and are merged into main: core 0.79.0 (core branch 4c5fc3fe, L424: plots::open_from, a member’s other variables, the crate drs-wasm with the Plots module’s commands, 1184 kB of wasm, the Tb₂Pd₂Sn map to the bit in node), Plots’ step 20 (plots branch 440db714: the y interval shared or own, the members’ list richer with icons, checkboxes, all/none/class/range and three orders, the right axis built for W3 and absent until 0.79.0 reaches the app; PL41 filed: y_interval in the set file and plots::extent), the web host’s step 2 (web branch 1c2e68da: app/ui/host-web/, the shell’s files and the module loaded from app/ui/ as they are behind dispatch.js, the inspector at the left with < and the separator, a folder picked or dropped, the stub refusing in one sentence; W5–W7 filed: the path commands as text and plots_names_in, the host taken from the page instead of a Tauri stand-in, plots.adopt and Save’s words).
Checked on main: the app’s UI suite (263), the viewer’s assets fresh, the web host’s node tests (16 of 17: the one that asks the stub’s manifest fails only while a built package sits in wasm/, an environment matter for the stream to make explicit), the wasm package’s node test (5 of 5 once the command line was rebuilt at 0.79.0: its two failures against a stale 0.78.0 binary were mine). Then the whole thing in the real browser (Interceptor): web/tools/build-wasm.sh put the package in app/ui/host-web/wasm/; the page loaded with “core 0.79.0 in WebAssembly”; the first call failed on one line of the dispatcher, which parsed the package’s answer as JSON text while dispatch returns a promise of the parsed value (W5 asked for text, the core answered with values): patched here to await and take either, the stream told. Then, through the page’s own dispatcher, the Tb₂Pd₂Sn buffer and its twenty files opened in the wasm core and gave the map as the desktop does (19 rows, 301 columns, 2.957 to 4.837 on log, one member apart); and through the user’s path, the twenty files dropped on the page opened as a set of 20 members with the seven views, the Map drawn by the core, the clip’s marks and controls, the members table with its checkboxes, the line that nothing leaves the machine (~/Downloads/interceptor-capture-20261025-100052-92634.png). Two things found for the next orders: a .buf dropped with its files goes to the data reader and is refused (the host must route a buffer or a .drv through plots_open_buffer_from / plots_open_set_from, W5’s plots_names_in telling it which files they name); and the package lacks plots_extent, which Plots’ step 20 added to the app’s Rust side after host.rs was ported from app 0.53.0, so the y toggle’s shared interval is refused in the browser until the core ports it (PL41 (b) gives it properly). Next: core 0.80.0 (W2 the series detector, W5’s text commands and plots_names_in, PL41, plots_extent, W3’s t), the web host’s step 3 (the routing, W6 and W7 with Plots, the proposals offered), then live mode and the public repository.
core branch 4c5fc3fe (L424) · plots branch 440db714 (README twentieth step, PL13p, PL41) · web branch 1c2e68da (README step 2, W5–W7) · app/ui/host-web/dispatch.js (the await) · core/wasm/tests/map.test.mjs · ~/Downloads/interceptor-capture-20261025-100052-92634.png · L423
2026-10-25 · work
The web stream’s W1 and W3 (I10, R34; L422, L423), in a cloud session: the wasm32-unknown-unknown target and wasm-pack 0.15.0 installed in the session’s container, as they are on the Mac (L423). - W1 (a), a set from files given by name and content, with no path touched: - plots::open_from(&[OpenedFile { name, text, comment, variable }], reader, title) and open_from_with (Data’s operations, the files they name taken by name); OpenedFile‘s comment is a buffer’s text, variable a typed value with its note. - plots::open_with (and so open, open_buf) now reads the paths’ bytes and calls the same reader, members_of, as open_from. It is not routed through open_from itself: a binary file (Bruker RAW, BRML) passed as text would not be its bytes. - SetFile::open_from gives a .drv’s members from files given by name and refuses a missing one by name; open and open_from share open_by. - W3, a member’s other variables with their sources: - Member::others (Other { name, value, found }); in the .drv, variables = { T = { value, source } } in a member’s table, absent by default and written back by to_text and SetFile::of. - Refused: an other variable without its source, the set’s own variable as an other, one given twice. - When the set’s variable is not T and a member types no T, PL2’s sources (the header, the buffer’s comment, the title, the name) fill T with their source. t has no source in the core yet: W2’s. - plots::map gives each row its member’s others as RowOther { name, value, source }, the source in Found::words. - W1 (b), the crate core/wasm (drs-wasm 0.79.0, wasm-bindgen 0.2.129, js-sys): - src/host.rs is the app’s app/src-tauri/src/modules/plots.rs (app 0.53.0) ported. The sets are kept by id and the view rule, SetView, Settings and RegionView are as the app’s, generated from its lines with the changes asserted, so the two can be compared line for line. - Where a browser has no path: plots_open_from (for plots_open_files), plots_open_buffer_from, plots_add_from, plots_open_set_from, plots_temperatures_from take files by name and text. plots_save returns { relative, text } in place of writing, and plots_derive adds the derived file’s text. - Not ported: Data’s operations and a control file’s λ (the project’s), .seq, the results series, the CSV export, reload, write_text, figure widths. - describe { name, text } gives { kind, id, name, role, source } from formats::project::describe; the app has no such command to copy. - dispatch(cmd, argsJson) returns a promise of the parsed result, rejected with the core’s words; each command is also exported by its name; commands() and version(). - Built with wasm-pack build --target web --release: 1155 kB for the .wasm, without wasm-opt. The core’s own crate compiles to wasm32 unchanged in what it computes. - Tests: - plots_open_from (3 cases): the Tb₂Pd₂Sn files by name and text give the same set and the same map as by path; the buffer’s comments as open_buf gives them; a typed value; an operation’s file taken by name or refused; a .drv’s members by name equal to SetFile::open from a project on disk; W3 read, written back, opened, carried by the map’s rows, refused. - core/wasm/tests/map.test.mjs (node, npm test, 5 cases): the package loaded; the Tb files as text; the map equal to drs plots map --json’s to the bit, linear and the √ difference map against tb_t20; a region (rows 8–14, columns 30–32), a warning, the set file saved as text and opened again, describe, the stack, the projection, the windows, a derived pattern; refusals in the core’s words; the size printed. - plots_page’s key list of a map row takes others beside the viewer contract’s keys. - The Python package’s version follows the core’s (L411).
core/src/plots.rs (OpenedFile, open_from, open_from_with, members_of, Other, RowOther, SetMember::variables, SetFile::open_from, open_by) · core/wasm/ (Cargo.toml, src/lib.rs, src/host.rs, tests/map.test.mjs, package.json, README.md) · core/tests/plots_open_from.rs · app/src-tauri/src/modules/plots.rs (ported) · web/REQUESTS.md W1, W3 · L422, L423
2026-10-25 · decision
Josu, on the assessment of I10 (L422): yes to all, let’s start, everything by the morning, the files are waiting to be analysed; the fifth ask answered: a stream of its own. So decided and done here: - R34 appended to the brief (a group of its own, “The analysis in the browser”); I10 green with it. - The web stream opened: web/ (README with the charter and the five steps, DESIGN.md with what is settled, REQUESTS.md), branch web, worktree ../20261009_diff-ref-str-web; it owns web/, app/ui/host-web/ and the Action publish-web.yml; CLAUDE.md’s layout and streams table carry it. The public repository diff-ref-struct-web created empty for step 5, to hold the built app only. - Filed by this session: W1 to the core (a set from names and text, plots::open_from; a drs-wasm crate exporting the plots subset with the Tauri commands’ names and JSON, built with wasm-pack; a node test that the Tb₂Pd₂Sn map equals drs plots map’s to the bit), W2 (the series detector plots::propose, tested on the ESRF run’s 101 files and Tb₂Pd₂Sn’s buffer), W3 (a second variable per member with its source, for the map’s right-hand axis), W4 to Plots (step 0’s controls: the shared/own y toggle, the right axis from W3, the richer members table). - The toolchain on the Mac: the wasm32-unknown-unknown target and wasm-pack installed for the core’s local worktree. The order of work, for speed: three sessions at once — the core (W1 and W3 first, then W2, as 0.79.0 and 0.80.0), Plots (W4, its step 20, the right axis last when 0.79.0 is merged), the web host (step 2 scaffolded on the dispatcher’s stub, the inspector, the file access, then wired to the wasm when W1 is merged); then steps 3 to 5 as the pieces land. Set aside: the Plots stream widened to the browser host (one stream carrying the module and two hosts would serialise what can run in parallel tonight).
data/ideas.yml I10 · data/brief.yml R34 · web/README.md, DESIGN.md, REQUESTS.md W1–W4 · CLAUDE.md · L422