Skip to content

Commit

Permalink
refactor to match schematic
Browse files Browse the repository at this point in the history
  • Loading branch information
Patarimi committed Nov 8, 2023
1 parent 5d628ae commit 7f8624e
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 206 deletions.
Empty file.
2 changes: 1 addition & 1 deletion hades/devices/inductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def update_cell(self, dimensions: Parameters) -> gdstk.Cell:
def update_accurate(self, sim_file: Path) -> Parameters:
f_0 = self.specifications["f_0"]
Y = self.em.compute(sim_file, self.name, f_0)
return {"L": -(1 / Y.y[0,0,1]).imag / (2 * pi * float(f_0)), "f_0": f_0}
return {"L": -(1 / Y.y[0, 0, 1]).imag / (2 * pi * float(f_0)), "f_0": f_0}

def recalibrate_model(self, performances: Parameters) -> Parameters:
def ind_k1(x):
Expand Down
Loading

0 comments on commit 7f8624e

Please sign in to comment.