Skip to content

Commit

Permalink
Merge pull request #462 from gdsfactory/rename_validate_call
Browse files Browse the repository at this point in the history
rename validate call
  • Loading branch information
joamatab authored Aug 7, 2024
2 parents e9447f3 + d364ffa commit 60503bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gplugins/modes/find_coupling_vs_gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def coupling_length(
return wavelength / (np.pi * dneff) * np.arcsin(np.sqrt(power_ratio))


@pydantic.validate_arguments
@pydantic.validate_call
def find_coupling(
gap: float = 0.2, power_ratio: float = 1.0, wavelength: float = 1.55, **kwargs
) -> float:
Expand All @@ -57,7 +57,7 @@ def find_coupling(
)


@pydantic.validate_arguments
@pydantic.validate_call
def find_coupling_vs_gap(
gap1: float = 0.2,
gap2: float = 0.4,
Expand Down
2 changes: 1 addition & 1 deletion gplugins/modes/find_neff_vs_width.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from gplugins.modes.find_modes import find_modes_waveguide


@pydantic.validate_arguments
@pydantic.validate_call
def find_neff_vs_width(
width1: float = 0.2,
width2: float = 1.0,
Expand Down
4 changes: 2 additions & 2 deletions gplugins/sax/plot_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

import matplotlib.pyplot as plt
import numpy as np
from pydantic import validate_arguments
from pydantic import validate_call
from sax.saxtypes import Model


@validate_arguments
@validate_call
def plot_model(
model: Model,
port1: str = "o1",
Expand Down

0 comments on commit 60503bb

Please sign in to comment.