Ticket #10404 (closed: fixed)
Provide preview of reduction script
Reported by: | MarcusNoble | Owned by: | MarcusNoble |
---|---|---|---|
Priority: | major | Milestone: | Release 3.3 |
Component: | Tools | Keywords: | AUTOREDUCTION |
Cc: | doucetm@…, tom.griffin@…, nick.draper@…, anders.markvardsen@… | Blocked By: | |
Blocking: | Tester: | Anders Markvardsen |
Description (last modified by MarcusNoble) (diff)
Need some way of providing a preview of the reduction script as it will be used.
This could either be shown as text or as a download.
The variables in the script file should be replaced with the variables that are chosen.
Add a new url '/script' that can either take a reduction runs number and version as a get request or take form inputs as a post for when previewing the script when editing variables.
For Tester:
Note: Permissions may need to be altered for this to work as expected.
- Navigate to http://datareducedev.isis.cclrc.ac.uk/autoreduce_webapp/instrument/GEM/ (logging in if needed).
- Click the 'preview reduction script' link
- A python file should download with variables matching those shown on the page
Attachments
Change History
comment:2 Changed 6 years ago by MarcusNoble
- Status changed from assigned to verify
- Resolution set to fixed
- Description modified (diff)
comment:3 Changed 6 years ago by Anders Markvardsen
- Status changed from verify to verifying
- Tester set to Anders Markvardsen
comment:4 Changed 6 years ago by Anders Markvardsen
- Status changed from verifying to closed
Works as described - hence pass.
Note one output I get is:
import sys standard_vars = { 'a' : 1, 'Testing' : 'test', 'Incident energies' : [1, 2, 3], 'Whitebeam number' : 2, } advanced_vars = { 'Testing some advanced stuff' : 'one', 'b' : 'two', 'listy' : [1, 2, 3], 'bool' : True, 'floaty' : 1.2, }
From the attached screenshot consider have the advanced parameters the same way as you have in 'edit variables'.
Note on Internet Explorer the Runs 7777->7777 does not appear in the right place.