From wildgrubercu at ornl.gov Mon Jan 4 14:48:48 2021 From: wildgrubercu at ornl.gov (Wildgruber, Christoph U.) Date: Mon, 4 Jan 2021 13:48:48 +0000 Subject: [mcstas-users] Using mcset_ncount(nnn) Message-ID: <2024BD81-57CE-4C2C-AC71-F4D1EB502BA7@ornl.gov> Hi, I have a quick question which I am not sure I found the correct answer for in the docs? If I use 'mcset_ncount(nnn)? in the mcstas instrument definition with the intent to improve load balancing on a heterogeneous cluster will the run result reflect the newly set number of source neutrons (nnn)? Thanks, Uli From pkwi at fysik.dtu.dk Mon Jan 4 15:08:32 2021 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Mon, 4 Jan 2021 14:08:32 +0000 Subject: [mcstas-users] Using mcset_ncount(nnn) In-Reply-To: <2024BD81-57CE-4C2C-AC71-F4D1EB502BA7@ornl.gov> References: <2024BD81-57CE-4C2C-AC71-F4D1EB502BA7@ornl.gov> Message-ID: <2F40670B-E828-4BD6-8142-59DED52B3B4A@fysik.dtu.dk> Hi Uli, As you have probably figured out yourself, our MPI-approach is quite naive in the sense that: 1) The ?mother? process collects / decides the ?full? ncount of the problem to be simulated (e.g. Nfull) 2) On the k used mpi processors, the partition Nfull / k is simulated If I understand you correctly, you are asking if one could redefine the ncount in INITIALIZE? - I guess this should in fact be possible, provided that the same Nfull is simulated over the k processors. You will of course have to do some logic in the INITIALIZE section to up / downscale the node-dependent ncount as you propose, figuring out how many processors that are of each type and assigning the correct, scaled number locally. Best Peter On 4 Jan 2021, at 14.48, Wildgruber, Christoph U. > wrote: Hi, I have a quick question which I am not sure I found the correct answer for in the docs? If I use 'mcset_ncount(nnn)? in the mcstas instrument definition with the intent to improve load balancing on a heterogeneous cluster will the run result reflect the newly set number of source neutrons (nnn)? Thanks, Uli _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From wildgrubercu at ornl.gov Fri Jan 22 17:16:47 2021 From: wildgrubercu at ornl.gov (Wildgruber, Christoph U.) Date: Fri, 22 Jan 2021 16:16:47 +0000 Subject: [mcstas-users] Download link broken? Message-ID: <6CD2C5AD-1876-4826-821C-80AE727F0037@ornl.gov> Hi, it looks like the link 'http://download.mcstas.org/mcstas-2.7/linux/mcstas-2.7-rpm64-Centos_7.7/? on the github page 'https://github.com/McStasMcXtrace/McCode/tree/master/INSTALL-McStas-2.x/Linux/centos? does not exist (anymore) ? I am getting a ?Not Found - The requested URL was not found on this server? response. What am I missing? Thanks, Uli From pkwi at fysik.dtu.dk Fri Jan 22 17:44:18 2021 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 22 Jan 2021 16:44:18 +0000 Subject: [mcstas-users] Download link broken? In-Reply-To: <6CD2C5AD-1876-4826-821C-80AE727F0037@ornl.gov> References: <6CD2C5AD-1876-4826-821C-80AE727F0037@ornl.gov> Message-ID: <55E806E4-2595-447F-AC6B-1C349A3A3D2D@fysik.dtu.dk> Hi Uli, So sorry, this is simply a side-effect of manual directory-creation / markup-editing? The files are located here: http://download.mcstas.org/mcstas-2.7/linux/centos/ - BTW a small tip for everyone on the list: You may find it easier to simply browse your way from http://download.mcstas.org/ Have a nice weekend, Peter On 22 Jan 2021, at 17.16, Wildgruber, Christoph U. > wrote: Hi, it looks like the link 'http://download.mcstas.org/mcstas-2.7/linux/mcstas-2.7-rpm64-Centos_7.7/? on the github page 'https://github.com/McStasMcXtrace/McCode/tree/master/INSTALL-McStas-2.x/Linux/centos? does not exist (anymore) ? I am getting a ?Not Found - The requested URL was not found on this server? response. What am I missing? Thanks, Uli _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From wildgrubercu at ornl.gov Fri Jan 22 17:58:48 2021 From: wildgrubercu at ornl.gov (Wildgruber, Christoph U.) Date: Fri, 22 Jan 2021 16:58:48 +0000 Subject: [mcstas-users] [EXTERNAL] Re: Download link broken? In-Reply-To: <55E806E4-2595-447F-AC6B-1C349A3A3D2D@fysik.dtu.dk> References: <6CD2C5AD-1876-4826-821C-80AE727F0037@ornl.gov> <55E806E4-2595-447F-AC6B-1C349A3A3D2D@fysik.dtu.dk> Message-ID: <304EF7EE-12F8-4AB8-B099-FC561FD0B56B@ornl.gov> Hi Peter, I was not brave enough to click this link in 'http://mcstas.org/download/?... The page says to use this link for older distribution packages :-) Thanks so much? wishing you a great weekend too! Uli > On 22 Jan 2021, at 11:44, Peter Kj?r Willendrup wrote: > > Hi Uli, > > So sorry, this is simply a side-effect of manual directory-creation / markup-editing? > > The files are located here: > http://download.mcstas.org/mcstas-2.7/linux/centos/ > > - BTW a small tip for everyone on the list: You may find it easier to simply browse your way from http://download.mcstas.org/ > > Have a nice weekend, > Peter > >> On 22 Jan 2021, at 17.16, Wildgruber, Christoph U. wrote: >> >> Hi, >> >> >> it looks like the link 'http://download.mcstas.org/mcstas-2.7/linux/mcstas-2.7-rpm64-Centos_7.7/? >> >> on the github page 'https://github.com/McStasMcXtrace/McCode/tree/master/INSTALL-McStas-2.x/Linux/centos? >> >> does not exist (anymore) ? >> >> I am getting a ?Not Found - The requested URL was not found on this server? response. >> >> What am I missing? >> >> >> Thanks, >> >> Uli >> >> _______________________________________________ >> mcstas-users mailing list >> mcstas-users at mcstas.org >> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users > > > Peter Kj?r Willendrup > Forskningsingeni?r, Specialkonsulent > N?stformand for DTU Fysik LSU > > DTU Physics > > > > > > Technical University of Denmark > > > > > > > Department of Physics > Fysikvej > Building 307 > DK-2800 Kongens Lyngby > Direct +45 2125 4612 > Mobil +45 2125 4612 > Fax +45 4593 2399 > pkwi at fysik.dtu.dk > From marta.klepacka at amu.edu.pl Fri Jan 29 23:17:33 2021 From: marta.klepacka at amu.edu.pl (Marta Klepacka) Date: Sat, 30 Jan 2021 01:17:33 +0300 Subject: [mcstas-users] Fwd: mcresplot results In-Reply-To: <725adaaf05959dc228392bb7be667c65@amu.edu.pl> References: <1134833a7e8e756c39a6f790c549f200@amu.edu.pl> <725adaaf05959dc228392bb7be667c65@amu.edu.pl> Message-ID: <31b021af6b938269c839024678db0d11@amu.edu.pl> Hello, I am having some problems with interpretation of mcresplot results. I am simulating an inverted geometry tof instrument and I placed Tof_Res_Sample and Res_Monitor in my simulation. I expected to get energy resolution, something like a plot of dE/E=f(E_transfer), but I got some Q,E data instead. I am attaching the results. If I should provide more files or information, let me know, I will send it asap. I didn't want to bother You and I really tried to figure it out myself, but I have to ask for your advice. Looking forward to hearing from you, Marta Klepacka Physics Faculty A. Mickiewicz University Poznan, Poland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Figure_1.png Type: image/png Size: 43444 bytes Desc: not available URL: -------------- next part -------------- mcresplot "/home/marta/Pulpit/secondary_spectrometer/15002/4_rows_15002_Copy_20210129_211139/restest.res" This is a covariance matrix calculator using neutron events, written by T. Weber , 30 March 2019. Mean (Q, E) vector in lab system: [5.2324940450139295, 0.29598555016649797, -38.645890277061035, -6310.849331806677] Covariance matrix in lab system: [[ 2.1476e+01 1.4710e+00 -1.7184e+02 -7.6140e+04] [ 1.4710e+00 1.0770e-01 -1.0778e+01 -1.2386e+03] [-1.7184e+02 -1.0778e+01 1.5163e+03 1.1763e+06] [-7.6140e+04 -1.2386e+03 1.1763e+06 2.5450e+09]] Resolution matrix in lab system: [[ 1.5630e+14 7.3766e+14 2.9701e+13 -8.6927e+09] [-1.2545e+15 2.7677e+16 1.1418e+14 -7.6835e+10] [ 8.7961e+12 3.9406e+14 5.3710e+12 -2.0276e+09] [-0.0000e+00 -1.4660e+11 -1.5384e+09 6.3970e+05]] Qpara = [ 0.1342 0.0076 -0.9909] Qperp = [-0.9909 0.0000 -0.1342] Qup = [0 1 0] Transformation into (Qpara, Qperp, Qup, E) system: [[ 0.1342 -0.9909 0.0000 0.0000] [ 0.0076 0.0000 1.0000 0.0000] [-0.9909 -0.1342 0.0000 0.0000] [ 0.0000 0.0000 0.0000 1.0000]] Mean (Q, E) vector in (Qpara, Qperp, Qup, E) system: [ 3.9000e+01 0.0000e+00 2.9599e-01 -6.3108e+03] Covariance matrix in (Qpara, Qperp, Qup, E) system: [[ 1.5352e+03 3.3098e+01 1.0879e+01 -1.1759e+06] [ 3.3098e+01 2.6912e+00 -1.1483e-02 -8.2377e+04] [ 1.0879e+01 -1.1483e-02 1.0770e-01 -1.2386e+03] [-1.1759e+06 -8.2377e+04 -1.2386e+03 2.5450e+09]] Resolution matrix in (Qpara, Qperp, Qup, E) system: [[-4.6656e+12 8.4142e+12 4.5305e+14 -1.6628e+09] [-1.7013e+13 1.8156e+14 1.7247e+15 -1.1448e+09] [ 4.4081e+14 -7.2232e+14 -4.2769e+16 1.5947e+11] [-2.4918e+09 9.4126e+09 2.4434e+11 -7.2773e+05]] 4d resolution ellipsoid diagonal elements fwhm (coherent-elastic scattering) lengths: [1.0902e-06 1.7476e-07 1.1387e-08 2.7604e-03] 4d resolution ellipsoid principal axes fwhm: [1.1934e-06 1.7514e-07] Incoherent-elastic fwhm: 131892.3742 meV Qx,E sliced ellipse fwhm and slope angle: [1.0902e-06 5.8804e-03], -179.9694 Qy,E sliced ellipse fwhm and slope angle: [1.7476e-07 2.8804e-03], 0.0030 Qz,E sliced ellipse fwhm and slope angle: [1.1387e-08 5.4999e-03], 179.9997 Qx,Qy sliced ellipse fwhm and slope angle: [1.1934e-06 1.7514e-07], -174.7583 Qx,E projected ellipse fwhm and slope angle: [1.0785e-06 1.2405e-02], -179.9712 Qy,E projected ellipse fwhm and slope angle: [1.7289e-07 6.0760e-03], 0.0035 Qz,E projected ellipse fwhm and slope angle: [3.5902e-07 3.6401e-04], 0.0604 Qx,Qy projected ellipse fwhm and slope angle: [2.6552e-06 1.6426e-07], -171.9703 -------------- next part -------------- # Format: McCode list with text headers # URL: http://www.mccode.org # Creator: McStas 2.7 - Nov. 27, 2020 # Instrument: 4_rows_15002_Copy.instr # Ncount: 10000000 # Trace: no # Gravitation: no # Seed: 1611952212 # Directory: /home/marta/Pulpit/secondary_spectrometer/15002/4_rows_15002_Copy_20210129_211139 # Param: part=1 # Param: source_lambda_min=0.1 # Param: source_lambda_max=20 # Param: source_pulse_number=3 # Param: source_optics_dist=5.5 # Param: guide_width=0.05 # Param: guide_height=0.16 # Date: Fri Jan 29 21:12:36 2021 (1611943956) # type: array_2d(11, 9) # Source: Nera (4_rows_15002_Copy.instr) # component: res_monitor # position: 0 0 0 # title: Intensity Position Velocity Spin Position Velocity Spin Position Velocity Spin Time_Of_Flight Monitor (Cylinder) [out] # Ncount: 10000000 # filename: restest.res # statistics: X0=0; dX=0; Y0=0; dY=0; # signal: Min=1.2395; Max=1.2395; Mean=0; # values: 0 0 0 # xvar: List # yvar: ki_x # xlabel: List of neutron events # ylabel: ki_x ki_y ki_z kf_x kf_y kf_z x y z p_i p_f # zvar: I # zlabel: Signal per bin # xylimits: 1 9 1 11 # variables: ki_x ki_y ki_z kf_x kf_y kf_z x y z p_i p_f # Data [res_monitor/restest.res] I: 1.239498242 0.01690790451 -0.0004617789973 -9.288420034 -0.6633113503 77.94551438 0.04054290853 0.008073102541 -0.02180912406 17686.92445 0.003358985711 1.446941162 -0.005785209556 -0.01385896096 0.3512177675 0.002894918929 2.877395978 -0.03324841251 0.006397586638 0.006463173007 4.774440251e-21 0.003358747968 1.447398948 0.01921151188 -0.01654320729 51.49461665 22.98233239 1091.142589 0.0209750188 -0.01929927341 0.02071586491 2.269504935e-55 0.003358960867 1.08248737 -0.004678240083 -0.01480273937 5.321046412 -0.1179329566 53.7700472 -0.0299902984 0.005472553688 0.01489358203 8.11931672e-46 0.003358665934 2.898283139 0.0266541818 -0.02344560354 0.002162261097 0.04455602534 4.653730835 0.04224900672 -0.01585723621 -0.00827661431 6.706761293e-96 0.003358923371 1.734101061 0.02494991257 0.02377737745 48.38589574 8.246529936 456.0693384 -0.04024061637 -0.02046127145 -0.01749918358 2.785927544e-170 0.003358985711 1.446584857 0.02475078952 -0.008994862538 -62.00512013 0.6975900223 1211.344079 0.0383377619 -0.008899033634 0.003862788702 11.36121833 0.003358862109 1.444951341 -0.01807339577 0.007458500591 0.0999411382 -0.03441644628 9.455524275 -0.04879574176 0.00383166824 0.00918955748 24264.9544 0.003358685419 1.746259797 0.02136162654 -0.01151025526 -0.0662447808 -0.008596918781 1.464674551 0.0190632282 0.01399680023 0.02097933971 0.006341862102 0.8883759638 From wagnerrichard at ill.fr Wed Feb 3 10:00:54 2021 From: wagnerrichard at ill.fr (Richard Wagner) Date: Wed, 3 Feb 2021 10:00:54 +0100 Subject: [mcstas-users] McStas 3.0 - problem starting mcgui on Ubuntu 20.04 In-Reply-To: <34229bab-f8b2-ac95-3273-fcd7a6277e99@ill.fr> References: <34229bab-f8b2-ac95-3273-fcd7a6277e99@ill.fr> Message-ID: <2ee679c1-d421-c183-5363-ef56b2ade6c4@ill.fr> Hi, just installed McStas 3.0 and have the following problem after an install on Ubuntu 20.04. with cd /etc/apt/sources.list.d sudo wgethttp://packages.mccode.org/debian/mccode.list sudo apt-get update sudo apt-get install mcstas-suite-python-ng mcgui wont start and gives the following error message: /usr/bin/mcgui: 14: [[: not found Traceback (most recent call last): ? File "", line 1, in ImportError: /usr/local/lib/python3.8/dist-packages/PyQt5/Qt/lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/local/lib/python3.8/dist-packages/PyQt5/Qsci.abi3.so) I'm completely new to the software, so perhaps I'm missing something completely obvious. Any hints would be highly appreciated. thanks in advance Richard -- *Richard Wagner* Research Engineer Nuclear and Particle Physics Group Institut Laue-Langevin - ILL 71, avenue des Martyrs CS 20156 38042 Grenoble Cedex 9 France +33 (0)47620 7492 www.ill.eu -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Wed Feb 3 11:07:07 2021 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Wed, 3 Feb 2021 10:07:07 +0000 Subject: [mcstas-users] McStas 3.0 - problem starting mcgui on Ubuntu 20.04 In-Reply-To: <2ee679c1-d421-c183-5363-ef56b2ade6c4@ill.fr> References: <34229bab-f8b2-ac95-3273-fcd7a6277e99@ill.fr> <2ee679c1-d421-c183-5363-ef56b2ade6c4@ill.fr> Message-ID: <08AF574C-E6DB-4470-8D5F-469B8332C2B9@fysik.dtu.dk> Dear Richard, Based on the ImportError reference to /usr/local/lib/python3.8/dist-packages/, this to me looks like a clash with locally installed Python-modules? Our Debian-packages rely on the Debian/Ubuntu-provided version of PyQt, Qscintilla etc., you may have installed these earlier as a local version for some other software. My guess is that if you (as an experiment) rename your /usr/local/lib/python3.8/ folder to e.g. /usr/local/lib/python3.8.GONE mcgui will run just fine. Best, Peter On 3 Feb 2021, at 10.00, Richard Wagner > wrote: Hi, just installed McStas 3.0 and have the following problem after an install on Ubuntu 20.04. with cd /etc/apt/sources.list.d sudo wget http://packages.mccode.org/debian/mccode.list sudo apt-get update sudo apt-get install mcstas-suite-python-ng mcgui wont start and gives the following error message: /usr/bin/mcgui: 14: [[: not found Traceback (most recent call last): File "", line 1, in ImportError: /usr/local/lib/python3.8/dist-packages/PyQt5/Qt/lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/local/lib/python3.8/dist-packages/PyQt5/Qsci.abi3.so) I'm completely new to the software, so perhaps I'm missing something completely obvious. Any hints would be highly appreciated. thanks in advance Richard _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From wagnerrichard at ill.fr Wed Feb 3 13:17:03 2021 From: wagnerrichard at ill.fr (Richard Wagner) Date: Wed, 3 Feb 2021 13:17:03 +0100 Subject: [mcstas-users] McStas 3.0 - problem starting mcgui on Ubuntu 20.04 In-Reply-To: <08AF574C-E6DB-4470-8D5F-469B8332C2B9@fysik.dtu.dk> References: <34229bab-f8b2-ac95-3273-fcd7a6277e99@ill.fr> <2ee679c1-d421-c183-5363-ef56b2ade6c4@ill.fr> <08AF574C-E6DB-4470-8D5F-469B8332C2B9@fysik.dtu.dk> Message-ID: <59e9286a-b830-ac43-ef67-b39ff7aa92f0@ill.fr> Dear Peter, thanks for the fast answer. With your suggestion below I can start mcgui. Only downside is that now my Jupyter installation is not working anymore. But I'll try to find a solution for that. Best, Richard On 03.02.21 11:07, Peter Kj?r Willendrup wrote: > Dear Richard, > > > Based on the ImportError reference to > /usr/local/lib/python3.8/dist-packages/, this to me looks like a clash > with locally installed Python-modules? > > Our Debian-packages rely on the Debian/Ubuntu-provided version of > PyQt, Qscintilla etc., you may have installed these earlier as a local > version for some other software. > > My guess is that if you (as an experiment) rename > your?/usr/local/lib/python3.8/ folder to e.g. > /usr/local/lib/python3.8.GONE mcgui will run just fine. > > > > Best, > Peter > > > >> On 3 Feb 2021, at 10.00, Richard Wagner > > wrote: >> >> Hi, >> >> just installed McStas 3.0 and have the following problem after an >> install on Ubuntu 20.04. >> >> with >> cd /etc/apt/sources.list.d >> sudo wgethttp://packages.mccode.org/debian/mccode.list >> sudo apt-get update >> >> sudo apt-get install mcstas-suite-python-ng >> >> >> mcgui wont start and gives the following error message: >> >> /usr/bin/mcgui: 14: [[: not found >> Traceback (most recent call last): >> ? File "", line 1, in >> ImportError: >> /usr/local/lib/python3.8/dist-packages/PyQt5/Qt/lib/libQt5Core.so.5: >> version `Qt_5.15' not found (required by >> /usr/local/lib/python3.8/dist-packages/PyQt5/Qsci.abi3.so) >> >> I'm completely new to the software, so >> perhaps I'm missing something completely obvious. >> Any hints would be highly appreciated. >> >> thanks in advance >> >> Richard >> _______________________________________________ >> mcstas-users mailing list >> mcstas-users at mcstas.org >> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users > > > > > Peter Kj?r Willendrup > Forskningsingeni?r, Specialkonsulent > N?stformand for DTU Fysik LSU > > DTU Physics > > > > > > Technical University of Denmark > > > > > > > Department of?Physics > Fysikvej > Building 307 > DK-2800 Kongens Lyngby > Direct +45 2125 4612 > Mobil +45 2125 4612 > Fax +45 4593 2399 > pkwi at fysik.dtu.dk > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: not available URL: From wagnerrichard at ill.fr Wed Feb 3 17:37:11 2021 From: wagnerrichard at ill.fr (Richard Wagner) Date: Wed, 3 Feb 2021 17:37:11 +0100 Subject: [mcstas-users] McStas 3.0 - problem starting mcgui on Ubuntu 20.04 In-Reply-To: <04DD6E2A-DDD3-4AD4-ABB8-0C035EAE01FC@fysik.dtu.dk> References: <34229bab-f8b2-ac95-3273-fcd7a6277e99@ill.fr> <2ee679c1-d421-c183-5363-ef56b2ade6c4@ill.fr> <08AF574C-E6DB-4470-8D5F-469B8332C2B9@fysik.dtu.dk> <59e9286a-b830-ac43-ef67-b39ff7aa92f0@ill.fr> <04DD6E2A-DDD3-4AD4-ABB8-0C035EAE01FC@fysik.dtu.dk> Message-ID: <25533602-0611-f035-ed40-553fe6110f0b@ill.fr> Dear Peter, just to let you know. I managed to? get it working with an installation of pyqt5-tools for my system: sudo pip3 install pyqt5-tools Best, Richard ps - I CCed to mcstas-users in case someone else has the same issue On 03.02.21 13:39, Peter Kj?r Willendrup wrote: > Dear Richard, > > > This is indeed a pity, perhaps you can find a way to hack the > shell-script executing mcgui (/usr/bin/mcgui) to hard-code using the > system-provided Python libs only? > > > Best > Peter > > >> On 3 Feb 2021, at 13.17, Richard Wagner > > wrote: >> >> Dear Peter, >> >> thanks for the fast answer. >> >> With your suggestion below I can start mcgui. >> >> Only downside is that now my Jupyter installation is not working anymore. >> >> But I'll try to find a solution for that. >> >> Best, >> >> Richard >> >> >> On 03.02.21 11:07, Peter Kj?r Willendrup wrote: >>> Dear Richard, >>> >>> >>> Based on the ImportError reference to >>> /usr/local/lib/python3.8/dist-packages/, this to me looks like a >>> clash with locally installed Python-modules? >>> >>> Our Debian-packages rely on the Debian/Ubuntu-provided version of >>> PyQt, Qscintilla etc., you may have installed these earlier as a >>> local version for some other software. >>> >>> My guess is that if you (as an experiment) rename >>> your?/usr/local/lib/python3.8/ folder to e.g. >>> /usr/local/lib/python3.8.GONE mcgui will run just fine. >>> >>> >>> >>> Best, >>> Peter >>> >>> >>> >>>> On 3 Feb 2021, at 10.00, Richard Wagner >>> > wrote: >>>> >>>> Hi, >>>> >>>> just installed McStas 3.0 and have the following problem after an >>>> install on Ubuntu 20.04. >>>> >>>> with >>>> cd /etc/apt/sources.list.d >>>> sudo wgethttp://packages.mccode.org/debian/mccode.list >>>> sudo apt-get update >>>> >>>> sudo apt-get install mcstas-suite-python-ng >>>> >>>> >>>> mcgui wont start and gives the following error message: >>>> >>>> /usr/bin/mcgui: 14: [[: not found >>>> Traceback (most recent call last): >>>> ? File "", line 1, in >>>> ImportError: >>>> /usr/local/lib/python3.8/dist-packages/PyQt5/Qt/lib/libQt5Core.so.5: >>>> version `Qt_5.15' not found (required by >>>> /usr/local/lib/python3.8/dist-packages/PyQt5/Qsci.abi3.so) >>>> >>>> I'm completely new to the software, so >>>> perhaps I'm missing something completely obvious. >>>> Any hints would be highly appreciated. >>>> >>>> thanks in advance >>>> >>>> Richard >>>> _______________________________________________ >>>> mcstas-users mailing list >>>> mcstas-users at mcstas.org >>>> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users >>> >>> >>> >>> >>> Peter Kj?r Willendrup >>> Forskningsingeni?r, Specialkonsulent >>> N?stformand for DTU Fysik LSU >>> >>> DTU Physics >>> >>> >>> >>> >>> >>> Technical University of Denmark >>> >>> >>> >>> >>> >>> >>> Department of?Physics >>> Fysikvej >>> Building 307 >>> DK-2800 Kongens Lyngby >>> Direct +45 2125 4612 >>> Mobil +45 2125 4612 >>> Fax +45 4593 2399 >>> pkwi at fysik.dtu.dk >>> >> >> _______________________________________________ >> mcstas-users mailing list >> mcstas-users at mcstas.org >> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users > > > Peter Kj?r Willendrup > Forskningsingeni?r, Specialkonsulent > N?stformand for DTU Fysik LSU > > DTU Physics > > > > > > Technical University of Denmark > > > > > > > Department of?Physics > Fysikvej > Building 307 > DK-2800 Kongens Lyngby > Direct +45 2125 4612 > Mobil +45 2125 4612 > Fax +45 4593 2399 > pkwi at fysik.dtu.dk > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: not available URL: From michal.dembski-villalta at tum.de Sat Feb 6 18:39:32 2021 From: michal.dembski-villalta at tum.de (Dembski-Villalta, Michal Piotr) Date: Sat, 6 Feb 2021 17:39:32 +0000 Subject: [mcstas-users] McStas 3.0 - running mcgui (WSL 1, Ubuntu 20.04 LTS) Message-ID: Dear McStas users, I'm writing with a problem, I believe similar to a recent issue (already resolved here https://mailman2.mcstas.org/pipermail/mcstas-users/2021q1/001391.html), however that solution did not help me. After installing McStas 3.0 on Windows 10 (WSL1, Ubuntu 20.04 LTS) I get the following error: .../McStas$ mcgui /usr/share/mcstas/3.0/bin/mcgui: 14: [[: not found /usr/share/mcstas/3.0/bin/mcgui: 27: export: Files/WindowsApps/CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program: bad variable name I would be grateful for any help with it. Kindly, Micha? Dembski-Villalta -------------- next part -------------- An HTML attachment was scrubbed... URL: From pwillendrup at gmail.com Sat Feb 6 20:50:22 2021 From: pwillendrup at gmail.com (Peter Willendrup) Date: Sat, 6 Feb 2021 20:50:22 +0100 Subject: [mcstas-users] McStas 3.0 - running mcgui (WSL 1, Ubuntu 20.04 LTS) In-Reply-To: References: Message-ID: <36970C72-7F98-41A0-9800-C51CD40415E6@gmail.com> Dear Micha?. Judging from the last line of the error-message, it looks like the shell-script could be picking up a path containing a space, i.e. Program Files? Could you try doing e.g. a cd /tmp before attempting to start mcgui to see if this changes anything? Alternatively you should be able to remove the lines 26-28 in the mcgui shell-script, i.e. replace else export PATH=$LIB/../miniconda3/bin:$PATH export LD_LIBRARY_PATH=$LIB/../miniconda3/lib:$LD_LIBRARY_PATH fi by fi only? Hope this helps, Peter > On 6 Feb 2021, at 18.39, Dembski-Villalta, Michal Piotr wrote: > > Dear McStas users, > > I?m writing with a problem, I believe similar to a recent issue (already resolved here https://mailman2.mcstas.org/pipermail/mcstas-users/2021q1/001391.html ), however that solution did not help me. After installing McStas 3.0 on Windows 10 (WSL1, Ubuntu 20.04 LTS) I get the following error: > > .../McStas$ mcgui > /usr/share/mcstas/3.0/bin/mcgui: 14: [[: not found > /usr/share/mcstas/3.0/bin/mcgui: 27: export: > Files/WindowsApps/CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program: bad variable name > > I would be grateful for any help with it. > Kindly, > Micha? Dembski-Villalta > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Sat Feb 6 22:06:02 2021 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Sat, 6 Feb 2021 21:06:02 +0000 Subject: [mcstas-users] McStas 3.0 - running mcgui (WSL 1, Ubuntu 20.04 LTS) In-Reply-To: <36970C72-7F98-41A0-9800-C51CD40415E6@gmail.com> References: <36970C72-7F98-41A0-9800-C51CD40415E6@gmail.com> Message-ID: <64F812AB-2B6B-4E29-A75E-C3E814EADE08@fysik.dtu.dk> Hello again Micha?, I successfully reproduced your issue in a virtual machine, and also found a series of workarounds. 1) (As root) I commented out lines 26-28 in /usr/bin/mcgui 2) Next, a problem loading libQt5Core.so.5 appeared: Traceback (most recent call last): File "/usr/share/mcstas/3.0/tools/Python/mcgui/mcgui.py", line 14, in from PyQt5 import QtCore, QtWidgets ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory - But in fact the file was present in /usr/lib/x86_64-linux-gnu/ ?! This turned out to be an issue with the kernel shipped with Ubuntu 20.04 on WSL, I followed the recommendation from this page: https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir and ran the command sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 - This all together allowed mcgui to run, see attachment. Best Peter [cid:E6578628-E379-4EA8-BE1C-EB49FA104559] On 6 Feb 2021, at 20.50, Peter Willendrup > wrote: Dear Micha?. Judging from the last line of the error-message, it looks like the shell-script could be picking up a path containing a space, i.e. Program Files? Could you try doing e.g. a cd /tmp before attempting to start mcgui to see if this changes anything? Alternatively you should be able to remove the lines 26-28 in the mcgui shell-script, i.e. replace else export PATH=$LIB/../miniconda3/bin:$PATH export LD_LIBRARY_PATH=$LIB/../miniconda3/lib:$LD_LIBRARY_PATH fi by fi only? Hope this helps, Peter On 6 Feb 2021, at 18.39, Dembski-Villalta, Michal Piotr > wrote: Dear McStas users, I?m writing with a problem, I believe similar to a recent issue (already resolved here https://mailman2.mcstas.org/pipermail/mcstas-users/2021q1/001391.html), however that solution did not help me. After installing McStas 3.0 on Windows 10 (WSL1, Ubuntu 20.04 LTS) I get the following error: .../McStas$ mcgui /usr/share/mcstas/3.0/bin/mcgui: 14: [[: not found /usr/share/mcstas/3.0/bin/mcgui: 27: export: Files/WindowsApps/CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program: bad variable name I would be grateful for any help with it. Kindly, Micha? Dembski-Villalta _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2021-02-06 at 21.58.24.png Type: image/png Size: 379956 bytes Desc: Screen Shot 2021-02-06 at 21.58.24.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From michal.dembski-villalta at tum.de Sun Feb 7 14:23:04 2021 From: michal.dembski-villalta at tum.de (Dembski-Villalta, Michal Piotr) Date: Sun, 7 Feb 2021 13:23:04 +0000 Subject: [mcstas-users] McStas 3.0 and NCrystal (WSL) Message-ID: <560548acbe724a038413f7da28cc282a@tum.de> Dear McStas users, Thank you for the help with previous issue, i.e. starting mcgui on Ubuntu 20.04, the solution made mcgui work. However, I encountered another problem, this time with NCrystal - I do not know, whether that is a different part of the same issue, or is it something entirely different. As I understand from the changes in Mcstas 3.0: "Updated version 2.2.2 NCrystal library from T. Kittelmann (ESS) and X.X. Cai (CSNS), distributed with McStas on Unix platforms only. With McStas 3.0, NCrystal is more tightly integrated and should run without using ncrystal_preparemcstasdir." However, I cannot get the NCrystal sample to work, using McStas on Windows 10 (WSL1 Ubuntu 20.04): " ./PANDA_Michal_DV_draft.c: At top level: ./PANDA_Michal_DV_draft.c:7890:10: fatal error: NCrystal/ncrystal.h: No such file or directory 7890 | #include "NCrystal/ncrystal.h" | ^~~~~~~~~~~~~~~~~~~~~ " Please find attached the log (together with running mcgui) as well as the .instr and .c files. I would be grateful for any help with it. Kindly, Micha? Dembski-Villalta -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: log.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: PANDA_Michal_DV_draft.c URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PANDA_Michal_DV_draft.instr Type: application/octet-stream Size: 22820 bytes Desc: PANDA_Michal_DV_draft.instr URL: From pkwi at fysik.dtu.dk Sun Feb 7 15:02:37 2021 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Sun, 7 Feb 2021 14:02:37 +0000 Subject: [mcstas-users] McStas 3.0 and NCrystal (WSL) In-Reply-To: <560548acbe724a038413f7da28cc282a@tum.de> References: <560548acbe724a038413f7da28cc282a@tum.de> Message-ID: Dear Micha?, Thank you for reporting this issue - which is indeed separate from the mcgui issue from yesterday. It turns out I must have left out the mcstas-ncrystal-3.0 package from the mcstas-suite-python-ng package? And hence the found issue is likely present on any Debian- or Ubuntu based system. To solve it, please 1) Install the ncrystal libraries: sudo apt-get install mcstas-ncrystal-3.0 2) Reinstall the core mcstas-3.0 package: sudo apt-get install --reinstall mcstas-3.0 After these steps, I was able to compile the instrument, see attachment. Best, Peter [cid:BBFA257A-7663-4131-99D3-A6B879F6DAA2] On 7 Feb 2021, at 14.23, Dembski-Villalta, Michal Piotr > wrote: Dear McStas users, Thank you for the help with previous issue, i.e. starting mcgui on Ubuntu 20.04, the solution made mcgui work. However, I encountered another problem, this time with NCrystal - I do not know, whether that is a different part of the same issue, or is it something entirely different. As I understand from the changes in Mcstas 3.0: "Updated version 2.2.2 NCrystal library from T. Kittelmann (ESS) and X.X. Cai (CSNS), distributed with McStas on Unix platforms only. With McStas 3.0, NCrystal is more tightly integrated and should run without using ncrystal_preparemcstasdir." However, I cannot get the NCrystal sample to work, using McStas on Windows 10 (WSL1 Ubuntu 20.04): " ./PANDA_Michal_DV_draft.c: At top level: ./PANDA_Michal_DV_draft.c:7890:10: fatal error: NCrystal/ncrystal.h: No such file or directory 7890 | #include "NCrystal/ncrystal.h" | ^~~~~~~~~~~~~~~~~~~~~ " Please find attached the log (together with running mcgui) as well as the .instr and .c files. I would be grateful for any help with it. Kindly, Micha? Dembski-Villalta _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2021-02-07 at 15.02.08.png Type: image/png Size: 569228 bytes Desc: Screen Shot 2021-02-07 at 15.02.08.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From wildgrubercu at ornl.gov Fri Feb 12 20:37:42 2021 From: wildgrubercu at ornl.gov (Wildgruber, Christoph U.) Date: Fri, 12 Feb 2021 19:37:42 +0000 Subject: [mcstas-users] mcgui issue Message-ID: <0E467B4B-9FFA-46EE-90E2-93436803578F@ornl.gov> Hi, I ran into a problem with mcgui after an update on a RHEL 7 machine... The error message is: [cwl at hellerldrd BER_SANS_Phase_II_eng_v1.0]$ mcgui & [1] 1072 [cwl at hellerldrd BER_SANS_Phase_II_eng_v1.0]$ Traceback (most recent call last): File "", line 1, in ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mcstas/2.7/miniconda3/lib/python3.8/site-packages/PyQt5/Qsci.abi3.so) I apologize If this issue came up on the list and I missed it? or the fix is documented somewhere... Any advice on how to fix that? Best wishes & many thanks, Uli From pkwi at fysik.dtu.dk Fri Feb 12 20:53:05 2021 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 12 Feb 2021 19:53:05 +0000 Subject: [mcstas-users] mcgui issue In-Reply-To: <0E467B4B-9FFA-46EE-90E2-93436803578F@ornl.gov> References: <0E467B4B-9FFA-46EE-90E2-93436803578F@ornl.gov> Message-ID: <923FFC6E-B3DC-42C2-82A7-D4D19B73741B@fysik.dtu.dk> Hi Uli, We did see the issue recently working with colleagues at ISIS and actually did an update of the CentOS / RHEL packages a few days ago. (The situation is identical for both the 2.7 and 3.0 releases.) So my best bet is that either 1) getting the fresh miniconda3 RPM from http://download.mcstas.org/mcstas-2.7/linux/centos/mcstas-miniconda3-2.7-rpm64.rpm and force-installing it over the existing or 2) clearing your yum cache using yum clean all , and force-reinstalling with yum reinstall mcstas-miniconda3-2.7 - ought to fix the issue. Please try this out - and let me know if you are succesful or not. Best, Peter On 12 Feb 2021, at 20.37, Wildgruber, Christoph U. > wrote: Hi, I ran into a problem with mcgui after an update on a RHEL 7 machine... The error message is: [cwl at hellerldrd BER_SANS_Phase_II_eng_v1.0]$ mcgui & [1] 1072 [cwl at hellerldrd BER_SANS_Phase_II_eng_v1.0]$ Traceback (most recent call last): File "", line 1, in ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mcstas/2.7/miniconda3/lib/python3.8/site-packages/PyQt5/Qsci.abi3.so) I apologize If this issue came up on the list and I missed it? or the fix is documented somewhere... Any advice on how to fix that? Best wishes & many thanks, Uli _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From wildgrubercu at ornl.gov Mon Feb 15 20:15:30 2021 From: wildgrubercu at ornl.gov (Wildgruber, Christoph U.) Date: Mon, 15 Feb 2021 19:15:30 +0000 Subject: [mcstas-users] [EXTERNAL] mcgui issue In-Reply-To: <923FFC6E-B3DC-42C2-82A7-D4D19B73741B@fysik.dtu.dk> References: <0E467B4B-9FFA-46EE-90E2-93436803578F@ornl.gov> <923FFC6E-B3DC-42C2-82A7-D4D19B73741B@fysik.dtu.dk> Message-ID: <48B0E2EA-A38D-4129-98B4-741C68D99EB0@ornl.gov> Hi Peter, we did a fresh instll and it looks like it fixed the problem!! Thanks again! Uli > On 12 Feb 2021, at 14:53, Peter Kj?r Willendrup wrote: > > Hi Uli, > > > We did see the issue recently working with colleagues at ISIS and actually did an update of the CentOS / RHEL packages a few days ago. > (The situation is identical for both the 2.7 and 3.0 releases.) > > > So my best bet is that either > > 1) getting the fresh miniconda3 RPM from http://download.mcstas.org/mcstas-2.7/linux/centos/mcstas-miniconda3-2.7-rpm64.rpm and force-installing it over the existing > > or > > 2) clearing your yum cache using > yum clean all > , and force-reinstalling with > yum reinstall mcstas-miniconda3-2.7 > > - ought to fix the issue. > > > Please try this out - and let me know if you are succesful or not. > > Best, > Peter > > >> On 12 Feb 2021, at 20.37, Wildgruber, Christoph U. wrote: >> >> Hi, >> >> I ran into a problem with mcgui after an update on a RHEL 7 machine... >> >> The error message is: >> >> [cwl at hellerldrd BER_SANS_Phase_II_eng_v1.0]$ mcgui & >> [1] 1072 >> [cwl at hellerldrd BER_SANS_Phase_II_eng_v1.0]$ Traceback (most recent call last): >> File "", line 1, in >> ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mcstas/2.7/miniconda3/lib/python3.8/site-packages/PyQt5/Qsci.abi3.so) >> >> >> I apologize If this issue came up on the list and I missed it? or the fix is documented somewhere... >> >> Any advice on how to fix that? >> >> >> Best wishes & many thanks, >> >> Uli >> >> _______________________________________________ >> mcstas-users mailing list >> mcstas-users at mcstas.org >> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users > > > Peter Kj?r Willendrup > Forskningsingeni?r, Specialkonsulent > N?stformand for DTU Fysik LSU > > DTU Physics > > > > > > Technical University of Denmark > > > > > > > Department of Physics > Fysikvej > Building 307 > DK-2800 Kongens Lyngby > Direct +45 2125 4612 > Mobil +45 2125 4612 > Fax +45 4593 2399 > pkwi at fysik.dtu.dk > From pkwi at fysik.dtu.dk Wed Mar 10 16:41:03 2021 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Wed, 10 Mar 2021 15:41:03 +0000 Subject: [mcstas-users] Video talks from Virtual McStas Seminar organised by MLZ Message-ID: <81A4DA53-40B8-4A4D-B488-DB091B04E330@fysik.dtu.dk> Dear all, The McStas team gave 3 talks at an MLZ Virtual McStas Seminar last week, arranged by Peter Link MLZ. The videos are now available on YouTube: McStas 3.0 - GPU support in McStas (Peter Willendrup) Abstract: The recent McStas 3.0 marks a big step forward with added support for acceleration on NVIDIA GPUs. The presentation will highlight the main changes between the McStas 2 and McStas 3 series and with emphasis on what modifications are needed to port an existing instrument or component. Finally the presentation will discuss the areas of McStas 3 that are not yet fully developed and mature. McStas Union components (Mads Bertelsen) Abstract: The McStas Union components is a set of components that are used in together to describe complex parts of neutron instruments where multiple scattering can be an important aspect. The user will describe scattering properties in a modular fashion to describe materials. Complex geometry can be described, allowing hollow regions, windows and similar with full multiple scattering, which is especially useful for simulating sample environments. The talk will have a focus on the practical use of these components, teaching the basic concepts, as well as showcasing what can be achieved. McStasScript (Mads Bertelsen) Abstract: As python has become the main language for scientific software, it was decided to introduce a python interface to McStas called McStasScript. Using McStasScript a user can describe an instrument, perform simulations and analyze the data directly from a python script. This simplifies including McStas in more advanced workflows. The talk will introduce McStasScript and show how it allows using McStas in a new way that appeals to both new and experienced users. All the best and enjoy, Peter Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From bigault at ill.fr Wed Mar 10 16:46:51 2021 From: bigault at ill.fr (Thierry Bigault) Date: Wed, 10 Mar 2021 16:46:51 +0100 Subject: [mcstas-users] Virtual source with fixed-m divergence Message-ID: <971c0405-169c-2469-b016-5f48e8619e7c@ill.fr> Dear McStas, Here is my problem: I would like to simulate the exit of a cold neutron guide with a source. The aim is to concentrate on the instrument optics, without having to calculate all the guide from the reactor. A simplified and quite general description of a guide exit is a beam with a fixed "m-value" divergence: for a given wavelength, the width of the angular divergence (either box-type, Gaussian or whatever) is essentially proportional to the m-value of the guide coating and to the wavelength. If the guide has different supermirror coatings on horizontal and on vertical faces, this leads to different angular widths. I assume the beam characteristics does not depend on the position at the guide exit in this approach. My question is : what is the simplest way to simulate such a secondary (or virtual) source in McStas ? I only found components where the angular width is geometrically fixed (in degrees), therefore wavelength-independent. Ideally I would also like to include a non-flat wavelength intensity distribution, but this can probably be done by adding a Filter_gen after the source. I am thinking of making several calculations at different wavelengths, but if anyone knows a all-in-one solution I am interested. Thierry -- Logo ILL Dr. Thierry BIGAULT Research Engineer Multlayer Neutron Optics *Institut Max von Laue - Paul Langevin (ILL)* 71, avenue des Martyrs - CS 20156 38042 Grenoble cedex 9 - France +33 (0)4 76 20 76 95 bigault at ill.eu -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Wed Mar 10 17:44:43 2021 From: pkwi at fysik.dtu.dk (=?Windows-1252?Q?Peter_Kj=E6r_Willendrup?=) Date: Wed, 10 Mar 2021 16:44:43 +0000 Subject: [mcstas-users] Virtual source with fixed-m divergence In-Reply-To: <971c0405-169c-2469-b016-5f48e8619e7c@ill.fr> References: <971c0405-169c-2469-b016-5f48e8619e7c@ill.fr> Message-ID: Dear Thierry, The first thing that comes to mind for me is the MCPL_output (which can store an event list at a given point in the instrument) and MCPL_input (which canvas such a file as a source). The weakness of this approach is that the files can become big, and are intrinsically limited in statistics, the strong point on the other hand is that all possible correlations between neutron parameters are preserved. MCPL_input has the option to ?smear? the events by MC (when repeating the events), i.e. in the form of a ?sphere of confusion?, slightly tuning energy, position and divergence, all at the discretion of the user... Other than that, one can envision to use any of the simpler analytical sources in McStas, possibly enriched with further adjustments in an EXTEND block (e.g. modify intensity or divergence based on position etc.) I am also thinking of machine-learning approaches to synthesize a ?semi-analytical? source from the content of an MCPL file, but this is so far not implemented in practice. Best Peter Hent Outlook til iOS ________________________________ Fra: mcstas-users p? vegne af Thierry Bigault Sendt: onsdag, marts 10, 2021 4:53 PM Til: mcstas-users at mcstas.org Emne: [mcstas-users] Virtual source with fixed-m divergence Dear McStas, Here is my problem: I would like to simulate the exit of a cold neutron guide with a source. The aim is to concentrate on the instrument optics, without having to calculate all the guide from the reactor. A simplified and quite general description of a guide exit is a beam with a fixed "m-value" divergence: for a given wavelength, the width of the angular divergence (either box-type, Gaussian or whatever) is essentially proportional to the m-value of the guide coating and to the wavelength. If the guide has different supermirror coatings on horizontal and on vertical faces, this leads to different angular widths. I assume the beam characteristics does not depend on the position at the guide exit in this approach. My question is : what is the simplest way to simulate such a secondary (or virtual) source in McStas ? I only found components where the angular width is geometrically fixed (in degrees), therefore wavelength-independent. Ideally I would also like to include a non-flat wavelength intensity distribution, but this can probably be done by adding a Filter_gen after the source. I am thinking of making several calculations at different wavelengths, but if anyone knows a all-in-one solution I am interested. Thierry -- [Logo ILL] Dr. Thierry BIGAULT Research Engineer Multlayer Neutron Optics Institut Max von Laue - Paul Langevin (ILL) 71, avenue des Martyrs - CS 20156 38042 Grenoble cedex 9 - France +33 (0)4 76 20 76 95 bigault at ill.eu -------------- next part -------------- An HTML attachment was scrubbed... URL: From wildes at ill.fr Thu Mar 11 10:20:28 2021 From: wildes at ill.fr (Andrew Wildes) Date: Thu, 11 Mar 2021 10:20:28 +0100 Subject: [mcstas-users] [BULK] Virtual source with fixed-m divergence In-Reply-To: <971c0405-169c-2469-b016-5f48e8619e7c@ill.fr> References: <971c0405-169c-2469-b016-5f48e8619e7c@ill.fr> Message-ID: <264C4C77-42BC-4FD3-9D9E-7D02ADC2C0A7@ill.fr> Hi Thierry, I?m a big fan of making relative comparisons using the simplest possible source. I first simulate a ?reference? instrument before playing with parameters. So long as the source characteristics stay the same, any changes in performance can be expressed by dividing the monitor counts for the modified instrument by the monitor counts for the reference instrument. Consequently, I?d solve your problem by using the Source_div component and have the focus as a variable defined in the INITIALIZE section, e.g.: DEFINE INSTRUMENT Thierry(lambda=6, dlambda=0.1,m=1) DECLARE %{ double DivSource_m; double SourceWid = 0.1; double SourceHi = 0.1; %} INITIALIZE %{ DivSource_m=m*0.1*lambda; %} TRACE COMPONENT Centre = Progress_bar() AT (0, 0, 0) ABSOLUTE /*******************************************************/ /******************* Source ****************************/ /*******************************************************/ COMPONENT source = Source_div( xwidth = SourceWid, yheight = SourceHi, focus_aw = DivSource_m, focus_ah = DivSource_m, lambda0 = lambda, dlambda = dlambda, gauss = 0) AT (0,0,0) ABSOLUTE END (Please forgive any direct programming errors). I suspect that there might be a problem with my relative comparisons if you change the source divergence between instruments as the flux at your target might change. Someone might be able to advise on that. Cheers, Andrew > On 10 Mar 2021, at 16:46, Thierry Bigault wrote: > > Dear McStas, > > Here is my problem: > I would like to simulate the exit of a cold neutron guide with a source. The aim is to concentrate on the instrument optics, without having to calculate all the guide from the reactor. > A simplified and quite general description of a guide exit is a beam with a fixed "m-value" divergence: for a given wavelength, the width of the angular divergence (either box-type, Gaussian or whatever) is essentially proportional to the m-value of the guide coating and to the wavelength. > If the guide has different supermirror coatings on horizontal and on vertical faces, this leads to different angular widths. > I assume the beam characteristics does not depend on the position at the guide exit in this approach. > My question is : what is the simplest way to simulate such a secondary (or virtual) source in McStas ? I only found components where the angular width is geometrically fixed (in degrees), therefore wavelength-independent. > Ideally I would also like to include a non-flat wavelength intensity distribution, but this can probably be done by adding a Filter_gen after the source. > I am thinking of making several calculations at different wavelengths, but if anyone knows a all-in-one solution I am interested. > > Thierry -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.voigt at fz-juelich.de Thu Mar 11 11:09:28 2021 From: j.voigt at fz-juelich.de (=?utf-8?B?Vm9pZ3QsIErDtnJn?=) Date: Thu, 11 Mar 2021 10:09:28 +0000 Subject: [mcstas-users] [BULK] Virtual source with fixed-m divergence In-Reply-To: <264C4C77-42BC-4FD3-9D9E-7D02ADC2C0A7@ill.fr> References: <971c0405-169c-2469-b016-5f48e8619e7c@ill.fr> <264C4C77-42BC-4FD3-9D9E-7D02ADC2C0A7@ill.fr> Message-ID: <027C77EF-9E60-4A0C-AE31-C07509612068@fz-juelich.de> Hi Thierry, can one realize this by a source that selects the transverse momentum k_x and k_y by a Monte Carlo choice? Simply ?Extending? the source component? Regards J?rg > On 11. Mar 2021, at 10:20, Andrew Wildes wrote: > > Hi Thierry, > > I?m a big fan of making relative comparisons using the simplest possible source. I first simulate a ?reference? instrument before playing with parameters. So long as the source characteristics stay the same, any changes in performance can be expressed by dividing the monitor counts for the modified instrument by the monitor counts for the reference instrument. > > Consequently, I?d solve your problem by using the Source_div component and have the focus as a variable defined in the INITIALIZE section, e.g.: > > DEFINE INSTRUMENT Thierry(lambda=6, dlambda=0.1,m=1) > > DECLARE > %{ > double DivSource_m; > double SourceWid = 0.1; > double SourceHi = 0.1; > > %} > > INITIALIZE > %{ > DivSource_m=m*0.1*lambda; > %} > > TRACE > COMPONENT Centre = Progress_bar() > AT (0, 0, 0) ABSOLUTE > > /*******************************************************/ > /******************* Source ****************************/ > /*******************************************************/ > COMPONENT source = Source_div( > xwidth = SourceWid, > yheight = SourceHi, > focus_aw = DivSource_m, > focus_ah = DivSource_m, > lambda0 = lambda, > dlambda = dlambda, > gauss = 0) > AT (0,0,0) ABSOLUTE > > END > > (Please forgive any direct programming errors). > > I suspect that there might be a problem with my relative comparisons if you change the source divergence between instruments as the flux at your target might change. Someone might be able to advise on that. > > Cheers, > > Andrew > > > >> On 10 Mar 2021, at 16:46, Thierry Bigault > wrote: >> >> Dear McStas, >> >> Here is my problem: >> I would like to simulate the exit of a cold neutron guide with a source. The aim is to concentrate on the instrument optics, without having to calculate all the guide from the reactor. >> A simplified and quite general description of a guide exit is a beam with a fixed "m-value" divergence: for a given wavelength, the width of the angular divergence (either box-type, Gaussian or whatever) is essentially proportional to the m-value of the guide coating and to the wavelength. >> If the guide has different supermirror coatings on horizontal and on vertical faces, this leads to different angular widths. >> I assume the beam characteristics does not depend on the position at the guide exit in this approach. >> My question is : what is the simplest way to simulate such a secondary (or virtual) source in McStas ? I only found components where the angular width is geometrically fixed (in degrees), therefore wavelength-independent. >> Ideally I would also like to include a non-flat wavelength intensity distribution, but this can probably be done by adding a Filter_gen after the source. >> I am thinking of making several calculations at different wavelengths, but if anyone knows a all-in-one solution I am interested. >> >> Thierry > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5209 bytes Desc: not available URL: From pkwi at fysik.dtu.dk Thu Mar 11 11:37:47 2021 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Thu, 11 Mar 2021 10:37:47 +0000 Subject: [mcstas-users] [BULK] Virtual source with fixed-m divergence In-Reply-To: <027C77EF-9E60-4A0C-AE31-C07509612068@fz-juelich.de> References: <971c0405-169c-2469-b016-5f48e8619e7c@ill.fr> <264C4C77-42BC-4FD3-9D9E-7D02ADC2C0A7@ill.fr> <027C77EF-9E60-4A0C-AE31-C07509612068@fz-juelich.de> Message-ID: <51F7D8D7-D1CA-4184-AC25-AEDBC8E14334@fysik.dtu.dk> Hi J?rg, Yes, this sort of thing is entirely possible. :-) The EXTEND block is simply glued on ?at the end? of the other stuff the component does within TRACE. Relevant building blocks are these: 1) The neutron state, x,y,z,vx,vy,vz,sx,sy,sz,t,p 2) Conversion factors from mcstas-r.h: #define AA2MS 629.622368 /* Convert k[1/AA] to v[m/s] */ #define MS2AA 1.58825361e-3 /* Convert v[m/s] to k[1/AA] */ #define K2V AA2MS #define V2K MS2AA #define Q2V AA2MS #define V2Q MS2AA #define SE2V 437.393377 /* Convert sqrt(E)[meV] to v[m/s] */ #define VS2E 5.22703725e-6 /* Convert (v[m/s])**2 to E[meV] */ 3) Our RNG functions like these rand01() rand0max() randpm1() randnorm() randtriangle() randminmax() randvec_target? functions like they are e.g. used in sources and samples Best Peter On 11 Mar 2021, at 11.09, Voigt, J?rg > wrote: Hi Thierry, can one realize this by a source that selects the transverse momentum k_x and k_y by a Monte Carlo choice? Simply ?Extending? the source component? Regards J?rg On 11. Mar 2021, at 10:20, Andrew Wildes > wrote: Hi Thierry, I?m a big fan of making relative comparisons using the simplest possible source. I first simulate a ?reference? instrument before playing with parameters. So long as the source characteristics stay the same, any changes in performance can be expressed by dividing the monitor counts for the modified instrument by the monitor counts for the reference instrument. Consequently, I?d solve your problem by using the Source_div component and have the focus as a variable defined in the INITIALIZE section, e.g.: DEFINE INSTRUMENT Thierry(lambda=6, dlambda=0.1,m=1) DECLARE %{ double DivSource_m; double SourceWid = 0.1; double SourceHi = 0.1; %} INITIALIZE %{ DivSource_m=m*0.1*lambda; %} TRACE COMPONENT Centre = Progress_bar() AT (0, 0, 0) ABSOLUTE /*******************************************************/ /******************* Source ****************************/ /*******************************************************/ COMPONENT source = Source_div( xwidth = SourceWid, yheight = SourceHi, focus_aw = DivSource_m, focus_ah = DivSource_m, lambda0 = lambda, dlambda = dlambda, gauss = 0) AT (0,0,0) ABSOLUTE END (Please forgive any direct programming errors). I suspect that there might be a problem with my relative comparisons if you change the source divergence between instruments as the flux at your target might change. Someone might be able to advise on that. Cheers, Andrew On 10 Mar 2021, at 16:46, Thierry Bigault > wrote: Dear McStas, Here is my problem: I would like to simulate the exit of a cold neutron guide with a source. The aim is to concentrate on the instrument optics, without having to calculate all the guide from the reactor. A simplified and quite general description of a guide exit is a beam with a fixed "m-value" divergence: for a given wavelength, the width of the angular divergence (either box-type, Gaussian or whatever) is essentially proportional to the m-value of the guide coating and to the wavelength. If the guide has different supermirror coatings on horizontal and on vertical faces, this leads to different angular widths. I assume the beam characteristics does not depend on the position at the guide exit in this approach. My question is : what is the simplest way to simulate such a secondary (or virtual) source in McStas ? I only found components where the angular width is geometrically fixed (in degrees), therefore wavelength-independent. Ideally I would also like to include a non-flat wavelength intensity distribution, but this can probably be done by adding a Filter_gen after the source. I am thinking of making several calculations at different wavelengths, but if anyone knows a all-in-one solution I am interested. Thierry _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: