Skip to content

adding ptyrex configuration component - #178

Open
fallars wants to merge 3 commits into
DiamondLightSource:mainfrom
fallars:Main2
Open

fallars wants to merge 3 commits into
DiamondLightSource:mainfrom
fallars:Main2

Conversation

@fallars

@fallars fallars commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

adding basic ptyrex component which uses workflows to submit a ptyrex reconstruction. this should correlate to using the following workflow:
workflows.diamond.ac.uk/templates/ptyrex-submission

See the screen shot of the component below
image

@yousefmoazzam yousefmoazzam left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a few unnecessary bits of code that can be removed I think, otherwise it looks good.

One thing we need to keep in mind is that the resource parameters were hardcoded in the top-level ParameterConfiguration component when I was developing for a single workflow template. Now that we have multiple workflow templates going through the ParameterConfiguration component, we'll need to pass a setter for the resourceParameters state to all the child param config components like we do for the templateParameters state.

But as long as this works for you locally to submit a job with the correct template parameters, that work can be deferred to a later PR.

import { useEffect, useState } from "react";
import { TemplateComponentProps } from "../../types";

const HTTOMO_OUTDIR_NAME = "sweep-run";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this is not needed and is probably leftover from copying code from TomoParameterConfiguration.tsx?

Comment on lines +1 to +9
import {
Card,
Stack,
Checkbox,
FormControlLabel,
FormGroup,
TextField,
Typography,
} from "@mui/material";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think there are some unused imports that can be removed.

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