Skip to content

Commit

Permalink
Updating the recording, README and transformation submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanaksit committed Dec 23, 2019
1 parent 62c2db8 commit f54a521
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ pip3 install -i https://test.pypi.org/simple/ odak
```

### Usage
It is easy as in this recorded session. Import it to your code and start using it!
It is easy as in this recorded session. Import it to your code and start designing Optics!

[![asciicast](https://asciinema.org/a/290014.svg)](https://asciinema.org/a/290014)
[![asciicast](https://asciinema.org/a/290015.svg)](https://asciinema.org/a/290015)

## Citing
If you use Odak in a research project leading to a publication, please acknowledge this fact by using our ready-made [bibtex citation entry](citations/odak.bib) or [plain text citation entry](citations/odak.txt).
4 changes: 2 additions & 2 deletions odak/tools/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def tilt_towards(location,lookat):
dy = location[1]-lookat[1]
dz = location[2]-lookat[2]
dist = np.sqrt(dx**2+dy**2+dz**2)
phi = np.atan2(dy,dx)
theta = np.acos(dz/dist)
phi = np.arctan2(dy,dx)
theta = np.arccos(dz/dist)
angles = [
0,
np.degrees(theta),
Expand Down
4 changes: 2 additions & 2 deletions recordings/odak_101.cast
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{"version": 2, "width": 98, "height": 16, "timestamp": 1577139739, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}}
[0.033653, "o", "\u001b]0;kaksit@kaksit-P9X79: ~\u0007\u001b[01;32mkaksit@kaksit-P9X79\u001b[00m:\u001b[01;34m~\u001b[00m$ "]
[0.033653, "o", "\u001b]0;funny@bunny: ~\u0007\u001b[01;32mfunny@bunny\u001b[00m:\u001b[01;34m~\u001b[00m$ "]
[0.726516, "o", "i"]
[1.270527, "o", "p"]
[1.382206, "o", "y"]
Expand Down Expand Up @@ -444,7 +444,7 @@
[103.361946, "o", "\u001b[?25l\u001b[?7l\u001b[0mt\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"]
[103.594176, "o", "\u001b[?25l\u001b[?7l\u001b[12D\u001b[0m\u001b[J\u001b[0;38;5;28mIn [\u001b[0;38;5;10;1m9\u001b[0;38;5;28m]: \u001b[0mexit\u001b[12D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"]
[103.594558, "o", "\u001b[?2004l"]
[103.751901, "o", "\u001b]0;kaksit@kaksit-P9X79: ~\u0007\u001b[01;32mkaksit@kaksit-P9X79\u001b[00m:\u001b[01;34m~\u001b[00m$ "]
[103.751901, "o", "\u001b]0;funny@bunny: ~\u0007\u001b[01;32mfunny@bunny\u001b[00m:\u001b[01;34m~\u001b[00m$ "]
[104.014784, "o", "e"]
[104.24707, "o", "x"]
[104.374499, "o", "i"]
Expand Down

0 comments on commit f54a521

Please sign in to comment.