Advanced options
— Advanced options , 6th week, Feature — 1 min read
Impove default resolution of ploted spectrum
In wstep = “auto”
radis app gives slitly low res. for that reasons plotted spectrum
is slitly in low res. for that we just need to update the config .
1import radis2radis.config["GRIDPOINTS_PER_LINEWIDTH_WARN_THRESHOLD"] = 7
Simulate Slit
There is a pre-configured slit of 5 nm
that users can only apply in the previous version of the Radis app, which prevents users from applying the slit they desire.
Older Version :
Newer Version :
However, in the more recent version, the issues have been resolved, and now users merely need to flip the Apply Simulate Slit
option in order to apply a slit.
1//calspectrum.tsx2const UseSimulateSlit = () => (3 <Controller4 name="useSimulateSlit"5 control={control}6 render={() => (7 <FormControlLabel8 label="Apply Simulate Slit"9 control={10 <Switch11 checked={useSlit}12 onChange={(e) => {13 setUseSlit(e.target.checked);14 if (e.target.checked) {15 setValue("simulate_slit", 5);16 } else {17 setValue("simulate_slit", undefined);18 }19 }}20 />21 }22 />23 )}24 />25 );26 //validation27 simulate_slit: yup28 .number()29 .typeError("Simulate slit must be defined")30 .min(0, "Simulate slit must be positive")31 .max(30, "Simulate slit must be less than 30")32 .when("useSlitSwitch", {33 is: true,34 then: yup35 .number()36 .typeError("Simulate slit must be defined")37 .min(0, "Simulate slit must be positive")38 .max(30, "Simulate slit must be less than 30"),39 }),
Thanks .