Closed mrakitin closed 8 years ago
@ochubar, I have no problem with PowerShell:
PS C:\bin\mrakitin\sirepo_bugs\issue_335> python SRWLIB_VirtBL_ESM_01.py --ws --op_fin=KBFH_zSF --op_S0_pp=[0,0,1,0,0,0.5,4.0,0.5,4.0,0,0,0]
DCM Crystal #1 Orientation (original):
t = [-0.21970072159264517, 5.886858114731097e-09, 0.9755673185032753] s = [2.6794896585028633e-08, 0.9999999999999997, 0.0] n = [-0.9755673185032749, 2.614022541102895e-08, -0.21970072159264525]
DCM Crystal #1 Outgoing Beam Frame:
ex = [0.9034631858633416, -2.420820263358875e-08, 0.4286656876747431] ey = [2.6794896585028633e-08, 0.9999999999999997, -0.0] ez = [-0.42866568767474295, 1.1486052770794924e-08, 0.903463185863342]
Total transformation matrix after DCM Crystal #1:
[0.9034631858633416, -2.420820263358875e-08, 0.4286656876747431]
[2.6794896585028633e-08, 0.9999999999999997, -0.0]
[-0.42866568767474295, 1.1486052770794924e-08, 0.903463185863342]
Crystal #2 Orientation (original):
t = [0.21970072159264517, 5.886858114731097e-09, 0.9755673185032753] s = [2.6794896585028633e-08, -0.9999999999999997, 0.0] n = [0.9755673185032749, 2.614022541102895e-08, -0.21970072159264525]
DCM Crystal #2 Outgoing Beam Frame:
ex = [0.9034631858633416, 2.420820263358875e-08, -0.4286656876747431] ey = [-2.6794896585028633e-08, 0.9999999999999997, -0.0] ez = [0.42866568767474295, 1.1486052770794924e-08, 0.903463185863342]
Total transformation matrix after DCM Crystal #2:
[0.9999999999999999, -2.5866939514398794e-09, -1.6653345369377348e-16]
[2.5866939514398827e-09, 1.0, -1.1486052770794924e-08]
[1.6653345369377348e-16, 1.1486052770794924e-08, 0.9999999999999999]
Single-electron SR calculatiton ... completed (lasted 28.307148 s)
Extracting intensity and saving it to a file ... completed (lasted 0.036067 s)
Propagation ... completed (lasted 0.174462 s)
Saving Propagation Results ... completed (lasted 0 s)
PS C:\bin\mrakitin\sirepo_bugs\issue_335>
Please try the following command in your environment and let me know if it works:
python SRWLIB_VirtBL_ESM_01.py --ws --op_fin=KBFH_zSF --op_S0_pp=[0,0,1,0,0,0.5,4.0,0.5,4.0,0,0,0]
You can also put propagation parameters in double quotes, so that spaces can be used inside:
python SRWLIB_VirtBL_ESM_01.py --ws --op_fin=KBFH_zSF --op_S0_pp="[0, 0, 1, 0, 0, 0.5, 4.0, 0.5, 4.0, 0, 0, 0]"
Works in both standard Windows command prompt and in the Power Shell.
The behavior of the new argparser is different in Windows command line (
cmd
) and in the PowerShell if we pass the list of options like propagation parameters.