From c43eb424750b82e44656c3deb625f79d01cd3f2d Mon Sep 17 00:00:00 2001 From: Yousef Moazzam Date: Wed, 30 Sep 2026 09:55:42 +0100 Subject: [PATCH] Update template params when loader params change In particular, replacing changes made in #204. --- .../Fbp180ParameterConfiguration.tsx | 10 ++-------- .../TomoParameterConfiguration.tsx | 10 ++-------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/frontend/unified/src/components/ParameterConfiguration/Fbp180ParameterConfiguration.tsx b/frontend/unified/src/components/ParameterConfiguration/Fbp180ParameterConfiguration.tsx index 4b5dce24..1d2f1324 100644 --- a/frontend/unified/src/components/ParameterConfiguration/Fbp180ParameterConfiguration.tsx +++ b/frontend/unified/src/components/ParameterConfiguration/Fbp180ParameterConfiguration.tsx @@ -38,13 +38,7 @@ export const Fbp180ParameterConfiguration: React.FC = ({ { method: loaderMethod, module_path: loaderModulePath, - parameters: { - data_path: "/entry1/tomo_entry/data/data", - image_key_path: "/entry1/tomo_entry/instrument/detector/image_key", - rotation_angles: { - data_path: "/entry1/tomo_entry/data/rotation_angle", - }, - }, + parameters: loaderParams, }, { method: "remove_outlier", @@ -165,7 +159,7 @@ export const Fbp180ParameterConfiguration: React.FC = ({ nprocs: 4, memory: "200Gi", }); - }, [applyStripeRemoval, stripeRemovalParameters, outputFolder]); + }, [applyStripeRemoval, stripeRemovalParameters, outputFolder, loaderParams]); return ( <> diff --git a/frontend/unified/src/components/ParameterConfiguration/TomoParameterConfiguration.tsx b/frontend/unified/src/components/ParameterConfiguration/TomoParameterConfiguration.tsx index 4d9565ec..901659d1 100644 --- a/frontend/unified/src/components/ParameterConfiguration/TomoParameterConfiguration.tsx +++ b/frontend/unified/src/components/ParameterConfiguration/TomoParameterConfiguration.tsx @@ -38,13 +38,7 @@ export const CorSweepParameterConfiguration = ({ { method: loaderMethod, module_path: loaderModulePath, - parameters: { - data_path: "/entry/imaging/data", - image_key_path: "/entry/instrument/imaging/image_key", - rotation_angles: { - data_path: "/entry/diamond_scan/keys/rotpanda", - }, - }, + parameters: loaderParams, }, { method: "recon", @@ -84,7 +78,7 @@ export const CorSweepParameterConfiguration = ({ "httomo-outdir-name": HTTOMO_OUTDIR_NAME, output: visitDirpath + outputFolder, }); - }, [applyNormalisation, sweepValues, outputFolder]); + }, [applyNormalisation, sweepValues, outputFolder, loaderParams]); return ( <>