Skip to content

Commit

Permalink
changes needed to use branch main
Browse files Browse the repository at this point in the history
  • Loading branch information
scottprahl committed May 8, 2024
1 parent c4d2073 commit c9e0302
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 38 deletions.
4 changes: 2 additions & 2 deletions docs/02-Background.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"\n",
"import laserbeamsize as lbs\n",
" \n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\"\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\"\n",
"\n",
"%config InlineBackend.figure_format = 'retina'"
]
Expand Down Expand Up @@ -589,7 +589,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/03-Background.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"import matplotlib.pyplot as plt\n",
"import laserbeamsize as lbs\n",
" \n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\"\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\"\n",
"\n",
"%config InlineBackend.figure_format = 'retina'"
]
Expand Down Expand Up @@ -387,7 +387,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/04-Test-Beam.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"import matplotlib.pyplot as plt\n",
"import laserbeamsize as lbs\n",
"\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\"\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\"\n",
"\n",
"def side_by_side_plot(h,v,xc,yc,dx,dy,phi,noise=0,offset=0):\n",
" \"\"\"Creates plot of original and of fitted beam.\"\"\"\n",
Expand Down Expand Up @@ -655,7 +655,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/05-Experiment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"\n",
"\n",
"pixel_size_µm = 3.75 # microns\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\"\n"
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\"\n"
]
},
{
Expand Down Expand Up @@ -397,7 +397,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/06-Fixed-Rotation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"import laserbeamsize as lbs\n",
" \n",
"pixel_size_µm = 3.75 # pixel size in microns for the camera\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\""
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\""
]
},
{
Expand Down Expand Up @@ -248,7 +248,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/07-Easy-Images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"import laserbeamsize as lbs\n",
" \n",
"pixel_size_µm = 3.75 # pixel size in microns for the camera\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\""
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\""
]
},
{
Expand Down Expand Up @@ -210,7 +210,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/08-Harder-Images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"import laserbeamsize as lbs\n",
" \n",
"pixel_size_µm = 3.75 # microns\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\""
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\""
]
},
{
Expand Down Expand Up @@ -327,7 +327,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
13 changes: 2 additions & 11 deletions docs/09-Razor-Blade.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@
"In this notebook, we compare the results from `lbs.beam_size()` with that from a fit to a simulated razor blade experiment done on the same image.\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"#!pip install --user laserbeamsize"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand All @@ -39,7 +30,7 @@
"import laserbeamsize as lbs\n",
" \n",
"pixel_size_mm = 3.75/1000 # pixel size in mm for the camera\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\""
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\""
]
},
{
Expand Down Expand Up @@ -415,7 +406,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/10-Beam-Waist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"import laserbeamsize as lbs\n",
"\n",
"pixel_size_µm = 3.75\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\""
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\""
]
},
{
Expand Down Expand Up @@ -329,7 +329,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/15-M2-Problems.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"pixel_size_mm = pixel_size * 1e3\n",
"pixel_size_µm = pixel_size * 1e6\n",
"\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\""
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\""
]
},
{
Expand Down Expand Up @@ -406,7 +406,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Binary file modified docs/astigmatic-report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/hene-report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/m2fit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/readme_images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"import laserbeamsize as lbs\n",
"%config InlineBackend.figure_format='retina'\n",
"\n",
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/master/docs/\""
"repo = \"https://github.com/scottprahl/laserbeamsize/raw/main/docs/\""
]
},
{
Expand All @@ -54,7 +54,7 @@
}
],
"source": [
"# file at https://github.com/scottprahl/laserbeamsize/blob/master/docs/t-hene.pgm\n",
"# file at https://github.com/scottprahl/laserbeamsize/blob/main/docs/t-hene.pgm\n",
" \n",
"beam = iio.imread(\"t-hene.pgm\")\n",
"x, y, dx, dy, phi = lbs.beam_size(beam)\n",
Expand Down Expand Up @@ -352,7 +352,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Binary file modified docs/sbfit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sbmontage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/tem02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion laserbeamsize/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
>>> import imageio.v3 as iio
>>> import laserbeamsize as lbs
>>>
>>> file = "https://github.com/scottprahl/laserbeamsize/raw/master/docs/t-hene.pgm"
>>> file = "https://github.com/scottprahl/laserbeamsize/raw/main/docs/t-hene.pgm"
>>> image = iio.imread(file)
>>>
>>> x, y, dx, dy, phi = lbs.beam_size(image)
Expand Down
4 changes: 2 additions & 2 deletions laserbeamsize/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>>> import imageio.v3 as iio
>>> import laserbeamsize as lbs
>>>
>>> file = "https://github.com/scottprahl/laserbeamsize/raw/master/docs/t-hene.pgm"
>>> file = "https://github.com/scottprahl/laserbeamsize/raw/main/docs/t-hene.pgm"
>>> image = iio.imread(file)
>>>
>>> mean, stdev = lbs.corner_background(image)
Expand All @@ -25,7 +25,7 @@
>>> import imageio.v3 as iio
>>> import laserbeamsize as lbs
>>>
>>> file = "https://github.com/scottprahl/laserbeamsize/raw/master/docs/t-hene.pgm"
>>> file = "https://github.com/scottprahl/laserbeamsize/raw/main/docs/t-hene.pgm"
>>> image = iio.imread(file)
>>>
>>> clean_image = subtract_iso_background(image)
Expand Down
4 changes: 2 additions & 2 deletions laserbeamsize/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
>>> import matplotlib.pyplot as plt
>>> import laserbeamsize as lbs
>>>
>>> repo = "https://github.com/scottprahl/laserbeamsize/raw/master/docs/"
>>> repo = "https://github.com/scottprahl/laserbeamsize/raw/main/docs/"
>>> image = iio.imread(repo + 't-hene.pgm')
>>>
>>> lbs.plot_image_analysis(image)
Expand All @@ -22,7 +22,7 @@
>>> import numpy as np
>>> import laserbeamsize as lbs
>>>
>>> repo = "https://github.com/scottprahl/laserbeamsize/raw/master/docs/"
>>> repo = "https://github.com/scottprahl/laserbeamsize/raw/main/docs/"
>>> z1 = np.array([168,210,280,348,414,480], dtype=float)
>>> fn1 = [repo + "t-%dmm.pgm" % number for number in z1]
>>> images = [iio.imread(fn) for fn in fn1]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_all_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
The original can be located at::
https://github.com/alchemyst/Dynamics-and-Control/blob/master/test_all_notebooks.py
https://github.com/alchemyst/Dynamics-and-Control/blob/main/test_all_notebooks.py
"""
import os.path
import pathlib
Expand Down

0 comments on commit c9e0302

Please sign in to comment.