Skip to content

Pythonic script writer - #2

Open
dehoni wants to merge 90 commits into
ISISNeutronMuon:masterfrom
dehoni:pythonic_script_writer
Open

Pythonic script writer#2
dehoni wants to merge 90 commits into
ISISNeutronMuon:masterfrom
dehoni:pythonic_script_writer

Conversation

@dehoni

@dehoni dehoni commented Aug 13, 2026

Copy link
Copy Markdown

This PR adds a python rewrite of the script_writer for generating instrument scripts used by LARMOR, SANS2D and LOQ.

What changed

Implemented core script generation routines. The table of the script writer has also a few new tools (e.g. to populate whole rows etc). It is designed to be a non-breaking (and rather subtle) change for existing users.

Why

Makes the working of the script writer easier to understand and read by using a language which everyone in the group has some kind of knowledge. Improves testability and confidence in output and potential issues can be quicker resolved.

How to test

1)Checkout the branch: git checkout pythonic_script_writer
2)Build the solution: see Readme.md for instructions
3)Create example for typical scripts and confirm the generated script(s) match expected output.

Related issues

#1

@github-project-automation github-project-automation Bot moved this to Flash Review in Tasks Aug 13, 2026
@Tom-Willemsen Tom-Willemsen removed this from Tasks Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants