Skip to content
GSoc Blog [Radis-App]
TwitterGithubProject

Advanced options

Advanced options , 6th week, Feature1 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 radis
2radis.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 :

Alt text

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.tsx
2const UseSimulateSlit = () => (
3 <Controller
4 name="useSimulateSlit"
5 control={control}
6 render={() => (
7 <FormControlLabel
8 label="Apply Simulate Slit"
9 control={
10 <Switch
11 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 //validation
27 simulate_slit: yup
28 .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: yup
35 .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 }),

Alt text

The option popups users may apply the slit that they want `(Slit value must me <30 nm` && in `absorbance` It is unavailable.)

Alt text

DS : it has some bugs we are working on to intrgrate .

Thanks .

© 2022 by GSoc Blog [Radis-App]. All rights reserved.
Theme by LekoArts