-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor done but sim results are broken
- Loading branch information
1 parent
0f8ff49
commit 8630efa
Showing
7 changed files
with
85 additions
and
74 deletions.
There are no files selected for viewing
File renamed without changes.
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
from photonics import SimulatedDM, SimulatedLanternCamera, Experiments | ||
from photonics.simulations.optics import Optics | ||
from hcipy import imshow_field | ||
from matplotlib import pyplot as plt | ||
|
||
from photonics import SimulatedDM, SimulatedLanternCamera, Experiments | ||
from photonics.simulations.optics import Optics | ||
from photonics.linearity import plot_linearity | ||
|
||
optics = Optics(lantern_fnumber=10) # so I flood the input/can see all the ports | ||
dm = SimulatedDM(optics.pupil_grid) | ||
pl = SimulatedLanternCamera(dm, optics, "spie24_sim_pl") | ||
exp = Experiments(dm, pl) | ||
|
||
pl.measure_dark() | ||
pl.set_centroids(pl.get_image()) | ||
img = pl.get_image() | ||
pl.set_centroids(img, rerun=False) # set to True if we want to redo centroiding | ||
exp.measure_pl_flat() | ||
exp.make_interaction_matrix(9) | ||
amps, all_recon = exp.measure_linearity(3) |