[mcstas-users] A couple of new bugs - with workarounds/fixes
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Tue Nov 1 13:51:52 CET 2022
Dear all,
Firstly, several users have reported a bug related to our pyqtgraph plotter, that ends up crashing with e.g.
File "C:\mcstas-2.7.1\lib\tools\Python\mcplot\pyqtgraph\plotfuncs.py", line 203, in plot_Data2D
img.scale(dx,dy)
TypeError: scale(self): too many arguments'
If you are in this situation, replace your plotfuncs.py with this new version:
https://raw.githubusercontent.com/McStasMcXtrace/McCode/master/tools/Python/mcplot/pyqtgraph/plotfuncs.py
Secondly, if are on a Mac and upgrade to macOS 13 Ventura (intel/x86_64), your already installed Python tools of McStas/McXtrace and /Application bundles may not work after the upgrade.
A workaround is to:
* In a terminal, start your “McStas or McXtrace shell" (e.g. run mcstas-3.1-environment, /Applications/McXtrace-1.7-environment.command or /Applications/McXtrace-3.0.app/Contents/Resources/mcxtrace/3.0/environment)
* Issue the command
export PATH=$MCSTAS/miniconda3/bin:$PATH
* Next, you may issue the your gui command with either
*
*
mcgui or mxgui
New releases of McStas and McXtrace are in preparation and should be released during November or December.
Best and sorry for the inconvenience,
Peter Willendrup
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<mailto:pkwi at fysik.dtu.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20221101/a3726f8e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20221101/a3726f8e/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20221101/a3726f8e/attachment-0003.gif>
More information about the mcstas-users
mailing list