Skip to content

Commit

Permalink
Add comments and code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CongliWANG committed Apr 10, 2023
1 parent 2dd118b commit 5ed56fa
Show file tree
Hide file tree
Showing 4 changed files with 286 additions and 151 deletions.
7 changes: 3 additions & 4 deletions diffoptics/basics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import math
from enum import Enum
import torch
import numpy as np
Expand Down Expand Up @@ -186,9 +185,9 @@ def __init__(self, name=None):

# This table is hard-coded. TODO: Import glass libraries from Zemax.
self.MATERIAL_TABLE = { # [nD, Abbe number]
"vacuum": [1., math.inf],
"air": [1.000293, math.inf],
"occluder": [1., math.inf],
"vacuum": [1., np.inf],
"air": [1.000293, np.inf],
"occluder": [1., np.inf],
"f2": [1.620, 36.37],
"f15": [1.60570, 37.831],
"uvfs": [1.458, 67.82],
Expand Down
Loading

0 comments on commit 5ed56fa

Please sign in to comment.