Skip to content

Commit 05b3e52

Browse files
committed
Remove =+1 -> =1 since mcstas-pygen -> McStasscript may experience issues in e.g. instr.show_diagram(analysis=True)
1 parent cbb6c92 commit 05b3e52

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

mcstas-comps/sources/Moderator.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
DEFINE COMPONENT Moderator
4141

42-
SETTING PARAMETERS (radius=0.07, Emin, Emax, dist=0, focus_xw=0.02, focus_yh=0.02, t0=37.15, Ec=9.0, gamma=39.1, int target_index=+1, flux=1)
42+
SETTING PARAMETERS (radius=0.07, Emin, Emax, dist=0, focus_xw=0.02, focus_yh=0.02, t0=37.15, Ec=9.0, gamma=39.1, int target_index=1, flux=1)
4343

4444
/* Neutron parameters: (x,y,z,vx,vy,vz,t,sx,sy,sz,p) */
4545
DECLARE

mcstas-comps/sources/Source_Maxwell_3.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ DEFINE COMPONENT Source_Maxwell_3
6060
SETTING PARAMETERS (size=0, yheight=0, xwidth=0, Lmin, Lmax, dist,
6161
focus_xw, focus_yh,
6262
T1, T2=300, T3=300, I1, I2=0, I3=0,
63-
int target_index=+1,lambda0=0, dlambda=0)
63+
int target_index=1,lambda0=0, dlambda=0)
6464

6565

6666
/* Neutron parameters: (x,y,z,vx,vy,vz,t,sx,sy,sz,p) */

mcstas-comps/sources/Source_adapt.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ SETTING PARAMETERS (
9696
xmin=0, xmax=0, ymin=0, ymax=0, xwidth=0, yheight=0,
9797
string filename=0, dist=0, focus_xw=0.05, focus_yh=0.1,
9898
E0=0, dE=0, lambda0=0, dlambda=0, flux=1e13,
99-
int target_index=+1, alpha=0.25, beta=0.25)
99+
int target_index=1, alpha=0.25, beta=0.25)
100100

101101

102102
/* Neutron parameters: (x,y,z,vx,vy,vz,t,sx,sy,sz,p) */

mcstas-comps/sources/Source_simple.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ DEFINE COMPONENT Source_simple
5252
SETTING PARAMETERS (radius=0.1, yheight=0, xwidth=0,
5353
dist=0, focus_xw=.045, focus_yh=.12,
5454
E0=0, dE=0, lambda0=0, dlambda=0,
55-
flux=1, gauss=0, int target_index=+1)
55+
flux=1, gauss=0, int target_index=1)
5656

5757
/* Neutron parameters: (x,y,z,vx,vy,vz,t,sx,sy,sz,p) */
5858
DECLARE

0 commit comments

Comments
 (0)