Fri 29 Nov 2024 04:38:58 PM CET

This commit is contained in:
sbosse 2024-11-29 16:39:02 +01:00
parent d8dd0fb688
commit 7ab92a6f50

View File

@ -0,0 +1 @@
[{"Config":{"clearAuto":true,"strictScope":false,"group":"anonymous","mode":"r","file":"rbook.numpy.viewer","fontSize":14,"thisthat":true,"turbo":true,"user":"kapideje","docUrl":"localhost:5558","projUrl":"edu-9.de:5550","webclipTime":300,"webclipUrl":"localhost:9176","webxUrl":"localhost:9177","modules":["math.plugin","image.plugin"],"workdir":"/","nw":"0.41.3","version":"1.15.7","wex":{"http":"http://localhost:11111","ws":"ws://localhost:11112"},"evalUser":"RRun","overlay":true,"strict":true,"reload":"rbook.numpy.viewer"}},{"Notes":[]},{},{"options":{"eval":"_PxEnUf_ZnVuY3Rpb24gKHRleHQpIHsKICAgICAgICAgIHZhciBjb250ZXh0ID0gUi5jb250ZXh0OwogICAgICAgICAgUi5ydW4odGV4dCxjb250ZXh0KQogICAgICAgICAgaWYgKFIud29ya2VyLmN1cnJlbnQpIHNldFRpbWVvdXQoZnVuY3Rpb24gKCkgewogICAgICAgICAgICAvLyB1cGRhdGUgd29ya2VyIGNvbnRleHQKICAgICAgICAgICAgdmFyIGluaXRzID0ge30sbW9kcz1bXTsKICAgICAgICAgICAgZm9yICh2YXIgaSBpbiBSLmxpYi5tb2R1bGVzKSB7CiAgICAgICAgICAgICAgdmFyIG1vZCA9IFIubGliLm1vZHVsZXNbaV0sCiAgICAgICAgICAgICAgICAgIE1PRCA9IG1vZC50b1VwcGVyQ2FzZSgpLAogICAgICAgICAgICAgICAgICBmb28gPSBNT0QrJyRJbml0JzsKICAgICAgICAgICAgICAvLyBDb2RlLnByaW50KCJVcGRhdGluZyB3b3JrZXIgUiAuLiAiLG1vZCk7CiAgICAgICAgICAgICAgaWYgKF9nbG9iYWxbZm9vXSkgIHsgbW9kcy5wdXNoKG1vZCk7IGluaXRzW2Zvb109X2dsb2JhbFtmb29dIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBSLndvcmtlci5jdXJyZW50Lm1vZHVsZShpbml0cykKICAgICAgICAgIH0sMTAwKQogICAgICAgIH0=","label":"Install Libraries","mode":"r","overlay":2,"heightC":100,"heightE":10,"collapsed":false},"code":"install.packages({\"math\",\"image\"})"},{"options":{"eval":"_PxEnUf_ZnVuY3Rpb24gKHRleHQpIHsKICAgICAgICAgIHZhciBjb250ZXh0ID0gUi5jb250ZXh0OwogICAgICAgICAgUi5ydW4odGV4dCxjb250ZXh0KQogICAgICAgIH0=","label":"Start Worker","mode":"r","overlay":2,"heightC":100,"heightE":10,"collapsed":false},"code":"worker()"},{"options":{"label":"Load Volume Data","mode":"r","overlay":1,"evalUser":"RRun","heightC":30,"heightE":10,"collapsed":false},"code":"use math,imager,numpy,plot\noptions(digits=4)\nvol = read.np('/tmp/numpy-signal-Txx.npy')\nlogg(typeof(vol))\nlogg(minMax(vol))\nlogg(mean(vol))"},{"options":{"eval":"_PxEnUf_ZnVuY3Rpb24gKHRleHQsZW52KSB7CiAgICAgICAgICAgICAgICAganNTY29wZS5ydW4odGV4dCxlbnYpCiAgICAgICAgICAgICAgICB9","mode":"r","evalUser":"RRun","overlay":1,"label":"Plot Image","heightC":30,"heightE":10,"collapsed":false},"code":"use plot\nindex = 10\nprint(minMax(vol[,,index]))\n# convert to matrix to get rid of teh C layout of array\nplot(as.matrix(vol[,,index]),auto.scale=TRUE)"},{"options":{"eval":"_PxEnUf_ZnVuY3Rpb24gKHRleHQsZW52KSB7CiAgICAgICAgICAgICAgICAganNTY29wZS5ydW4odGV4dCxlbnYpCiAgICAgICAgICAgICAgICB9","mode":"r","evalUser":"RRun","overlay":1,"label":"Load Image Data","heightC":100,"heightE":10,"collapsed":false},"code":"use math,imager,numpy,plot\noptions(digits=4)\nvol = read.np('/tmp/numpy-signal-Txx-00040.npy')\nlogg(typeof(vol))\nlogg(minMax(vol))\nlogg(mean(vol))\nplot(vol,auto.scale=TRUE)"},{"options":{"label":" R+ Command Interpreter","evalUser":"RRun","height":20},"shell":true}]