Skip to content

Commit

Permalink
Merge pull request #29 from Jan-David-Black/master
Browse files Browse the repository at this point in the history
Change deprecated `np.complex`
  • Loading branch information
ianwilliamson authored Feb 5, 2023
2 parents 5da9df1 + 6c402fd commit 5ba726c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: false
language: python
python: 3.7
python: 3.7.13
install:
pip install --quiet -r requirements.txt
script:
Expand Down
2 changes: 1 addition & 1 deletion ceviche/modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def insert_mode(omega, dx, x, y, epsr, target=None, npml=0, m=1, filtering=False
inserted into it.
"""
if target is None:
target = np.zeros(epsr.shape, dtype=np.complex)
target = np.zeros(epsr.shape, dtype=complex)

epsr_cross = epsr[x, y]
_, mode_field = get_modes(epsr_cross, omega, dx, npml, m=m, filtering=filtering)
Expand Down

0 comments on commit 5ba726c

Please sign in to comment.