Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Card, Stack, TextField } from "@mui/material";
import { Card, InputAdornment, Stack, TextField } from "@mui/material";
import { useEffect, useState } from "react";
import { TemplateComponentProps } from "../../types";

Expand All @@ -12,14 +12,24 @@ export const PtyrexParameterConfiguration = ({

useEffect(() => {
setParameters({
config_json: configPath,
config_json: visitDirpath + configPath,
scan_number: scanIds[0],
proj_number: projectionNumber,
nprocs: 4,
memory: "32Gi",
});
}, [configPath, projectionNumber]);

const displayVisitDir = {
input: {
startAdornment: (
<InputAdornment position="start" sx={{ mr: 0 }}>
{visitDirpath}
</InputAdornment>
),
},
};

return (
<>
<Card
Expand All @@ -33,12 +43,15 @@ export const PtyrexParameterConfiguration = ({
>
<Stack direction="column" spacing={1}>
<TextField
label={"Ptyrex config file path"}
size="small"
label="Ptyrex config file path"
value={configPath}
onChange={(e) => setConfigPath(e.target.value)}
slotProps={displayVisitDir}
/>
<TextField
label={"Projection Number"}
size="small"
label="Projection Number"
value={projectionNumber}
onChange={(e) => setProjectionNumber(e.target.value)}
/>
Expand Down
Loading