Commit a46613d4 authored by Nick Sauerwein's avatar Nick Sauerwein
Browse files

bokeh added

parent 3d58f75e
File mode changed from 100644 to 100755
No preview for this file type
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
This diff is collapsed.
......@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"metadata": {
"hideCode": false,
"hidePrompt": false
......@@ -12,7 +12,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Using matplotlib backend: Qt5Agg\n"
"The autoreload extension is already loaded. To reload it, use:\n",
" %reload_ext autoreload\n"
]
}
],
......@@ -27,7 +28,7 @@
"import ipywidgets as widgets\n",
"\n",
"%autoreload 2\n",
"%matplotlib"
"%matplotlib qt5"
]
},
{
......@@ -83,23 +84,13 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"collapsed": true,
"hideCode": false,
"hidePrompt": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"available cameras:\n",
"<DeviceInfo Basler avA2300-25gmDSY (21547524)>\n",
"<DeviceInfo Basler acA3800-10gm (22005848)>\n",
"camera found =) Be happy\n"
]
}
],
"outputs": [],
"source": [
"from Devices.FocusCamera import FocusCamera\n",
"\n",
......@@ -115,7 +106,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {
"collapsed": true,
"hideCode": false,
......@@ -128,20 +119,13 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {
"collapsed": true,
"hideCode": false,
"hidePrompt": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.0 1.0\n"
]
}
],
"outputs": [],
"source": [
"focus.plot_measure(meas)\n",
"plt.show()"
......@@ -213,9 +197,9 @@
" 'pos_g_origin_z': 25./2,\n",
" 'deltaz_Mz': 0,\n",
" 'deltaz_Cz': 0,\n",
" 'sync_camera': True}\n",
" 'sync_camera': False}\n",
" \n",
"per = Periscope(per_config, home = False)"
"per = Periscope(per_config, home = True)"
]
},
{
......@@ -230,7 +214,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {
"collapsed": true,
"hideCode": false,
......@@ -275,23 +259,13 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {
"collapsed": true,
"hideCode": false,
"hidePrompt": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"available cameras:\n",
"<DeviceInfo Basler avA2300-25gmDSY (21547524)>\n",
"<DeviceInfo Basler acA3800-10gm (22005848)>\n",
"camera found =) Be happy\n"
]
}
],
"outputs": [],
"source": [
"from Devices.Interferometer import Interferometer\n",
"\n",
......@@ -309,7 +283,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {
"collapsed": true,
"hideCode": false,
......@@ -322,22 +296,14 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {
"collapsed": true,
"hideCode": false,
"hideOutput": true,
"hidePrompt": false
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/data/lwfaserver/Devices/InterferometerTools/routines.py:207: RuntimeWarning: divide by zero encountered in true_divide\n",
" return np.exp(-1./x**2*(6.*(x[1]-x[0]))**2)\n"
]
}
],
"outputs": [],
"source": [
"inter.plot_measure(measurement)"
]
......@@ -354,7 +320,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {
"collapsed": true,
"hideCode": false,
......@@ -377,23 +343,12 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {
"hideCode": false,
"hidePrompt": false
},
"outputs": [
{
"data": {
"text/plain": [
"{'time': '2017-04-26_13-08-41.419616'}"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"delay.measure()"
]
......@@ -410,7 +365,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 4,
"metadata": {
"collapsed": true,
"hideCode": false,
......@@ -441,7 +396,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 5,
"metadata": {
"hideCode": false,
"hidePrompt": false
......@@ -481,7 +436,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 10,
"metadata": {
"collapsed": true,
"hideCode": false,
......@@ -540,20 +495,12 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 11,
"metadata": {
"hideCode": false,
"hidePrompt": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Using matplotlib backend: Qt5Agg\n"
]
}
],
"outputs": [],
"source": [
"import DataManager as dm\n",
"import matplotlib.pyplot as plt\n",
......@@ -561,16 +508,15 @@
"\n",
"io = dm.IO('Data/')\n",
"\n",
"%matplotlib\n",
"%matplotlib qt5\n",
"\n",
"import GUI"
]
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 12,
"metadata": {
"collapsed": true,
"hideCode": false,
"hidePrompt": false,
"slideshow": {
......@@ -579,15 +525,15 @@
},
"outputs": [],
"source": [
"devices = [delay,inter,laser, drs, fara, blade, focus]#, per]#, blade] #use this to run the LWFA\n",
"#devices = [inter, per]\n",
"#devices = [delay,inter,laser, drs, fara, blade, focus]#, per]#, blade] #use this to run the LWFA\n",
"devices = [fara]\n",
"#devices = [per, para, laser, focus] #use this to do focus optimization\n",
"#devices = [td1, td2, delay]#, inter] #Use this do debug the gui and data menager"
]
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 13,
"metadata": {
"hideCode": false,
"hidePrompt": false,
......@@ -598,17 +544,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"DelayGenerator config time: 0.0025048255920410156\n",
"Interferometer config time: 0.0005848407745361328\n",
"Laser config time: 0.0013515949249267578\n",
"DRS4 config time: 0.0008580684661865234\n",
"FaradayCup config time: 3.5762786865234375e-06\n",
"BladePositioning config time: 0.6031394004821777\n",
"FocusCamera config time: 0.0006427764892578125\n",
"DelayGenerator measured\n",
"DelayGenerator measure time: 0.0013227462768554688\n",
"Interferometer measured\n",
"Interferometer measure time: 0.18958163261413574\n"
"FaradayCup config time: 2.6226043701171875e-06\n",
"FaradayCup measured\n",
"FaradayCup measure time: 0.001667022705078125\n"
]
}
],
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import pypylon"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment