Skip to content

ViSR: Tomography form, and better controls drawer capability - #157

Open
tomkane-dls wants to merge 9 commits into
mainfrom
tomo-form
Open

ViSR: Tomography form, and better controls drawer capability#157
tomkane-dls wants to merge 9 commits into
mainfrom
tomo-form

Conversation

@tomkane-dls

Copy link
Copy Markdown
Contributor

Change controls drawer so that it can accept one set of controls or a list. A list of objects will be displayed side by side in the drawer.
Created new tomography form to submit bluesky plans
Added the form to the controls drawer on the tomography page alongside the old controls which have now been simplified

volumeVisible is just left as always True for now, and all the state handlers have been removed. When plans can be submitted we can discuss how we want to hide/reset figures

we could disable plan buttons when light off is selected but i think this is unnecessary .

@tomkane-dls tomkane-dls changed the title Tomography form, and better controls drawer capability ViSR: Tomography form, and better controls drawer capability Aug 14, 2026
@tomkane-dls
tomkane-dls marked this pull request as ready for review August 14, 2026 16:36
@Abigail-Yates

Copy link
Copy Markdown
Collaborator

This looks good to me.
Only thing is the page now has a scroll bar - I can look into a way to make the rowHeight of the ReactGridLayout of the plots dynamic if wanted?

@EmsArnold EmsArnold left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the form itself works well - just a few minor changes to match up with the new plans in test-rig-bluesky.

}}
>
<RunPlanButton
name="calibration"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the calibration plan in test-rig-bluesky is called collect_calibration_images, rather than just calibration

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will make sure these match thanks! I decided to ask Yousef what would be the correct name for the process as i feel calibration is not quite right

>
<RunPlanButton
name="calibration"
params={formData}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently passing through the number of projections as well - I don't know enough about the background/dark field needs for tomography to comment, but do you need exactly as many projections, or can you make do with fewer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, no we don't need that many, we only need 1. The plan will set a number like 20 as standard and they can be averaged, but the number of projections is meaningless here

name="calibration"
params={formData}
instrumentSession={instrumentSession}
buttonText="Take Dark/Flat"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to say something like "Calibrate For Scan", to make it more clear for people who just turn up. Potentially also good to get feedback from Comms

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes i will wait for Yousef and go with what he thinks, and then will make a note to ask Comms about this in future

Comment on lines +76 to +79
// if (intervalRef.current) clearInterval(intervalRef.current);
// setVolumeVisible(false);
// setProgress(0);
// };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the plan to put this back at some point? If not, can this just be deleted rather than commented out?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right, we will delete and if we do re-implement something similar it will likely be different anyway

@tomkane-dls

Copy link
Copy Markdown
Contributor Author

All of Emily's points addressed. Exact form data and plan names may change but these plans are not active currently

Working out whether drawer or plots should be really controlling heights we will approach in another PR

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.

3 participants