Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _getStartLine(line_list, pattern): | |
"""return the line number that is the starting line | |
for the data of interest, identified by the regex | |
pattern | |
Parameters | |
---------- | |
line_list : list | |
list of lines in the file returned by ``_readLinesFromFile()`` | |
pattern : string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyzdde.zdde as pyz | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import re | |
# Helper functions | |
def _getStartLine(line_list, pattern): | |
"""return the line number that is the starting line | |
for the data of interest, identified by the regex | |
pattern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "OpticStudio_Tests" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
File: simpleLensScaling.py | |
Purpose : Calculate two-point resolution using Rayleigh criterion and | |
study the effect of lens scaling on Rayleigh resolution. | |
Assumption: First order optical analysis, specifically they are: | |
1. The system is diffraction limited (aberrations are not considered) | |
2. The aperture is circular | |
3. A simple single lens system is considered, thus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division, print_function | |
import numpy as np | |
from numba import double, jit | |
def jinc1(rho): | |
"""Internal implementation of the jinc function over a radial grid `rho` | |
The `jinc(rho)` is defined as `2*(J_1(2*pi*rho)/2*pi*rho)` and `jinc(0)=1.0`. | |
""" | |
mask = rho != 0.0 | |
result = np.ones(rho.shape) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "pyZDDE_Usage_Test_In_Notebook" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.