diff --git a/frontend/unified/src/components/ParameterConfiguration/ParameterConfiguration.tsx b/frontend/unified/src/components/ParameterConfiguration/ParameterConfiguration.tsx index 456f255..8f39934 100644 --- a/frontend/unified/src/components/ParameterConfiguration/ParameterConfiguration.tsx +++ b/frontend/unified/src/components/ParameterConfiguration/ParameterConfiguration.tsx @@ -2,6 +2,7 @@ import { Button, Typography } from "@mui/material"; import { Option, Technique } from "../../types"; import OptionSelect from "../OptionSelect"; import { CorSweepParameterConfiguration } from "./TomoParameterConfiguration"; +import { PtyrexParameterConfiguration } from "./PtyrexParameterConfiguration"; import { ReactElement, useState } from "react"; import { LoaderProvider } from "../../../../tomography/src/contexts/LoaderContext"; import { SUBMIT_WORKFLOW_TEMPLATE } from "../../../../tomography/src/components/workflows/Submission"; @@ -68,6 +69,11 @@ export const ParameterConfiguration: React.FC = ({ [Technique.Dpc]: {}, [Technique.Nbed]: {}, [Technique.Ptycho]: {}, + [Technique.Ptyrex]: { + "ptyrex-submission": ( + + ), + }, [Technique.Tomo]: { "httomo-cor-sweep": ( diff --git a/frontend/unified/src/components/ParameterConfiguration/PtyrexParameterConfiguration.tsx b/frontend/unified/src/components/ParameterConfiguration/PtyrexParameterConfiguration.tsx new file mode 100644 index 0000000..98573ff --- /dev/null +++ b/frontend/unified/src/components/ParameterConfiguration/PtyrexParameterConfiguration.tsx @@ -0,0 +1,47 @@ +import { Card, Stack, TextField } from "@mui/material"; +import { useEffect, useState } from "react"; +import { TemplateComponentProps } from "../../types"; + +export const PtyrexParameterConfiguration = ({ + setParameters, +}: TemplateComponentProps) => { + const [configPath, setConfigPath] = useState(""); + const [projectionNumber, setProjectionNumber] = useState(""); + + useEffect(() => { + setParameters({ + config_json: configPath, + scan_number: 398894, + projection_number: projectionNumber, + nprocs: 4, + memory: "32Gi", + }); + }, [configPath, projectionNumber]); + + return ( + <> + + + setConfigPath(e.target.value)} + /> + setProjectionNumber(e.target.value)} + /> + + + + ); +}; diff --git a/frontend/unified/src/data/templates.ts b/frontend/unified/src/data/templates.ts index 42ffe81..7ccb925 100644 --- a/frontend/unified/src/data/templates.ts +++ b/frontend/unified/src/data/templates.ts @@ -36,6 +36,11 @@ export const templateOptions: Option[] = [ value: "ptycho-recon", desc: "simple ptyrex reconstruction", }, + { + label: "ptyrex", + value: "ptyrex-submission", + desc: "simple ptyrex reconstruction", + }, { label: "ptycho tomography", value: "ptycho-tomography", diff --git a/frontend/unified/src/types.ts b/frontend/unified/src/types.ts index 089cbbe..e90c2c5 100644 --- a/frontend/unified/src/types.ts +++ b/frontend/unified/src/types.ts @@ -2,6 +2,7 @@ export enum Technique { Dpc = "Dpc", Nbed = "Nbed", Ptycho = "Ptycho", + Ptyrex = "Ptyrex", Tomo = "Tomo", Xanes = "Xanes", Xrd = "Xrd",