File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,18 +163,18 @@ const SubmissionFormCOR = (props: {
163163 parameters : { } ,
164164 } ,
165165 {
166- method : 'FBP3d_tomobar ' ,
167- module_path : 'httomolibgpu .recon.algorithm' ,
166+ method : 'recon ' ,
167+ module_path : 'tomopy .recon.algorithm' ,
168168 parameters : {
169169 center : {
170170 start : formParams . start ,
171171 stop : formParams . stop ,
172172 step : formParams . step ,
173173 } ,
174- filter_freq_cutoff : 0.35 ,
175- recon_size : null ,
176- recon_mask_radius : 0.95 ,
177- neglog : false ,
174+ sinogram_order : false ,
175+ algorithm : "gridrec" ,
176+ init_recon : null
177+
178178 } ,
179179 } ,
180180 ] ;
@@ -210,9 +210,10 @@ const SubmissionFormCOR = (props: {
210210
211211 // Validate against schema
212212 const validate = ajv . compile ( schema ) ;
213- const ok = validate ( validationObject ) ;
214-
215- if ( ! ok ) {
213+ if ( validate ( validationObject ) ) {
214+ console . log ( "AJV validation succussful" ) ;
215+ }
216+ else {
216217 setErrorMessages ( formatAjvErrors ( validate . errors , validationObject ) ) ;
217218 return ; // Stop submission
218219 }
@@ -223,7 +224,7 @@ const SubmissionFormCOR = (props: {
223224 config : JSON . stringify ( configArray )
224225 } ;
225226
226- // Step 6: Submit
227+ // Submit
227228 props . onSubmit ( visit , finalParams , ( workflowName : string ) => {
228229 setSubmittedWorkflowName ( workflowName ) ;
229230 setSubmittedVisit ( visit ) ;
Original file line number Diff line number Diff line change 1- import Ajv , { ErrorObject } from 'ajv' ;
21import addFormats from 'ajv-formats' ;
2+ import Ajv , { ErrorObject } from 'ajv/dist/2020.js'
33
44// Build one AJV per schema instance so defaults/coercions are accurate per template
55export function buildAjv ( ) {
66 const ajv = new Ajv ( {
77 allErrors : true ,
88 useDefaults : true ,
99 coerceTypes : false ,
10- strict : false ,
10+ strict : true ,
1111 } ) ;
1212 addFormats ( ajv ) ;
1313 return ajv ;
You can’t perform that action at this time.
0 commit comments